example/public/ueditor/third-party/highcharts/highcharts.src.js
function updateTextPadding() {
			var styles = wrapper.styles,
				textAlign = styles && styles.textAlign,
				x = paddingLeft + padding * (1 - alignFactor),
				y;

			// determin y based on the baseline
			y = baseline ? 0 : baselineOffset;

			// compensate for alignment
			if (defined(width) && (textAlign === 'center' || textAlign === 'right')) {
				x += { center: 0.5, right: 1 }[textAlign] * (width - bBox.width);
			}

			// update if anything changed
			if (x !== text.x || y !== text.y) {
				text.attr({
					x: x,
					y: y
				});
			}

			// record current values
			text.x = x;
			text.y = y;
		}
function updateTextPadding() {
			var styles = wrapper.styles,
				textAlign = styles && styles.textAlign,
				x = paddingLeft + padding * (1 - alignFactor),
				y;

			// determin y based on the baseline
			y = baseline ? 0 : baselineOffset;

			// compensate for alignment
			if (defined(width) && (textAlign === 'center' || textAlign === 'right')) {
				x += { center: 0.5, right: 1 }[textAlign] * (width - bBox.width);
			}

			// update if anything changed
			if (x !== text.x || y !== text.y) {
				text.attr({
					x: x,
					y: y
				});
			}

			// record current values
			text.x = x;
			text.y = y;
		}
function updateTextPadding ( ) { var styles = wrapper . styles , textAlign = styles && styles . textAlign , x = paddingLeft + padding * ( 1 - alignFactor ) , y ; // determin y based on the baseline y = baseline ? 0 : baselineOffset ; // compensate for alignment if ( defined ( width ) && ( textAlign === 'center' || textAlign === 'right' ) ) { x += { center : 0.5 , right : 1 } [ textAlign ] * ( width - bBox . width ) ; } // update if anything changed if ( x !== text . x || y !== text . y ) { text . attr ( { x : x , y : y } ) ; } // record current values text . x = x ; text . y = y ; }
This function runs after setting text or padding, but only if padding is changed
This function runs after setting text or padding but only if padding is changed