example/public/ueditor/third-party/highcharts/highcharts.src.js
function (skipAxes) {
		var chart = this,
			inverted = chart.inverted,
			renderer = chart.renderer,
			chartWidth = chart.chartWidth,
			chartHeight = chart.chartHeight,
			optionsChart = chart.options.chart,
			spacing = chart.spacing,
			clipOffset = chart.clipOffset,
			clipX,
			clipY,
			plotLeft,
			plotTop,
			plotWidth,
			plotHeight,
			plotBorderWidth;

		chart.plotLeft = plotLeft = mathRound(chart.plotLeft);
		chart.plotTop = plotTop = mathRound(chart.plotTop);
		chart.plotWidth = plotWidth = mathMax(0, mathRound(chartWidth - plotLeft - chart.marginRight));
		chart.plotHeight = plotHeight = mathMax(0, mathRound(chartHeight - plotTop - chart.marginBottom));

		chart.plotSizeX = inverted ? plotHeight : plotWidth;
		chart.plotSizeY = inverted ? plotWidth : plotHeight;
		
		chart.plotBorderWidth = optionsChart.plotBorderWidth || 0;

		// Set boxes used for alignment
		chart.spacingBox = renderer.spacingBox = {
			x: spacing[3],
			y: spacing[0],
			width: chartWidth - spacing[3] - spacing[1],
			height: chartHeight - spacing[0] - spacing[2]
		};
		chart.plotBox = renderer.plotBox = {
			x: plotLeft,
			y: plotTop,
			width: plotWidth,
			height: plotHeight
		};

		plotBorderWidth = 2 * mathFloor(chart.plotBorderWidth / 2);
		clipX = mathCeil(mathMax(plotBorderWidth, clipOffset[3]) / 2);
		clipY = mathCeil(mathMax(plotBorderWidth, clipOffset[0]) / 2);
		chart.clipBox = {
			x: clipX, 
			y: clipY, 
			width: mathFloor(chart.plotSizeX - mathMax(plotBorderWidth, clipOffset[1]) / 2 - clipX), 
			height: mathFloor(chart.plotSizeY - mathMax(plotBorderWidth, clipOffset[2]) / 2 - clipY)
		};

		if (!skipAxes) {
			each(chart.axes, function (axis) {
				axis.setAxisSize();
				axis.setAxisTranslation();
			});
		}
	}
function (skipAxes) {
		var chart = this,
			inverted = chart.inverted,
			renderer = chart.renderer,
			chartWidth = chart.chartWidth,
			chartHeight = chart.chartHeight,
			optionsChart = chart.options.chart,
			spacing = chart.spacing,
			clipOffset = chart.clipOffset,
			clipX,
			clipY,
			plotLeft,
			plotTop,
			plotWidth,
			plotHeight,
			plotBorderWidth;

		chart.plotLeft = plotLeft = mathRound(chart.plotLeft);
		chart.plotTop = plotTop = mathRound(chart.plotTop);
		chart.plotWidth = plotWidth = mathMax(0, mathRound(chartWidth - plotLeft - chart.marginRight));
		chart.plotHeight = plotHeight = mathMax(0, mathRound(chartHeight - plotTop - chart.marginBottom));

		chart.plotSizeX = inverted ? plotHeight : plotWidth;
		chart.plotSizeY = inverted ? plotWidth : plotHeight;
		
		chart.plotBorderWidth = optionsChart.plotBorderWidth || 0;

		// Set boxes used for alignment
		chart.spacingBox = renderer.spacingBox = {
			x: spacing[3],
			y: spacing[0],
			width: chartWidth - spacing[3] - spacing[1],
			height: chartHeight - spacing[0] - spacing[2]
		};
		chart.plotBox = renderer.plotBox = {
			x: plotLeft,
			y: plotTop,
			width: plotWidth,
			height: plotHeight
		};

		plotBorderWidth = 2 * mathFloor(chart.plotBorderWidth / 2);
		clipX = mathCeil(mathMax(plotBorderWidth, clipOffset[3]) / 2);
		clipY = mathCeil(mathMax(plotBorderWidth, clipOffset[0]) / 2);
		chart.clipBox = {
			x: clipX, 
			y: clipY, 
			width: mathFloor(chart.plotSizeX - mathMax(plotBorderWidth, clipOffset[1]) / 2 - clipX), 
			height: mathFloor(chart.plotSizeY - mathMax(plotBorderWidth, clipOffset[2]) / 2 - clipY)
		};

		if (!skipAxes) {
			each(chart.axes, function (axis) {
				axis.setAxisSize();
				axis.setAxisTranslation();
			});
		}
	}
function ( skipAxes ) { var chart = this , inverted = chart . inverted , renderer = chart . renderer , chartWidth = chart . chartWidth , chartHeight = chart . chartHeight , optionsChart = chart . options . chart , spacing = chart . spacing , clipOffset = chart . clipOffset , clipX , clipY , plotLeft , plotTop , plotWidth , plotHeight , plotBorderWidth ; chart . plotLeft = plotLeft = mathRound ( chart . plotLeft ) ; chart . plotTop = plotTop = mathRound ( chart . plotTop ) ; chart . plotWidth = plotWidth = mathMax ( 0 , mathRound ( chartWidth - plotLeft - chart . marginRight ) ) ; chart . plotHeight = plotHeight = mathMax ( 0 , mathRound ( chartHeight - plotTop - chart . marginBottom ) ) ; chart . plotSizeX = inverted ? plotHeight : plotWidth ; chart . plotSizeY = inverted ? plotWidth : plotHeight ; chart . plotBorderWidth = optionsChart . plotBorderWidth || 0 ; // Set boxes used for alignment chart . spacingBox = renderer . spacingBox = { x : spacing [ 3 ] , y : spacing [ 0 ] , width : chartWidth - spacing [ 3 ] - spacing [ 1 ] , height : chartHeight - spacing [ 0 ] - spacing [ 2 ] } ; chart . plotBox = renderer . plotBox = { x : plotLeft , y : plotTop , width : plotWidth , height : plotHeight } ; plotBorderWidth = 2 * mathFloor ( chart . plotBorderWidth / 2 ) ; clipX = mathCeil ( mathMax ( plotBorderWidth , clipOffset [ 3 ] ) / 2 ) ; clipY = mathCeil ( mathMax ( plotBorderWidth , clipOffset [ 0 ] ) / 2 ) ; chart . clipBox = { x : clipX , y : clipY , width : mathFloor ( chart . plotSizeX - mathMax ( plotBorderWidth , clipOffset [ 1 ] ) / 2 - clipX ) , height : mathFloor ( chart . plotSizeY - mathMax ( plotBorderWidth , clipOffset [ 2 ] ) / 2 - clipY ) } ; if ( ! skipAxes ) { each ( chart . axes , function ( axis ) { axis . setAxisSize ( ) ; axis . setAxisTranslation ( ) ; } ) ; } }
Set the public chart properties. This is done before and after the pre-render
to determine margin sizes
Set the public chart properties . This is done before and after the pre - render to determine margin sizes