backend/web/js/vendor/lib/HighCharts/highcharts-gantt.src.js
/**
		 * Copy and append last point until the length matches the end length
		 */
Copy and append last point until the length matches the end length
Copy and append last point until the length matches the end length
function append(arr, other) {
			var i = (fullLength - arr.length) / numParams;
			while (i > 0 && i--) {
				slice = arr.slice().splice(
					(arr.length / positionFactor) - numParams, 
					numParams * positionFactor
				);
				slice[0] = other[fullLength - numParams - (i * numParams)];
				if (bezier) {
					slice[numParams - 6] = slice[numParams - 2];
					slice[numParams - 5] = slice[numParams - 1];
				}
				insertSlice(arr, slice, arr.length / positionFactor);
				if (isArea) {
					i--;
				}
			}
		}
function append ( arr , other ) { var i = ( fullLength - arr . length ) / numParams ; while ( i > 0 && i -- ) { slice = arr . slice ( ) . splice ( ( arr . length / positionFactor ) - numParams , numParams * positionFactor ) ; slice [ 0 ] = other [ fullLength - numParams - ( i * numParams ) ] ; if ( bezier ) { slice [ numParams - 6 ] = slice [ numParams - 2 ] ; slice [ numParams - 5 ] = slice [ numParams - 1 ] ; } insertSlice ( arr , slice , arr . length / positionFactor ) ; if ( isArea ) { i -- ; } } }
Copy and append last point until the length matches the end length
Copy and append last point until the length matches the end length
// Pull out the slice that is going to be appended or inserted. // In a line graph, the positionFactor is 1, and the last point // is sliced out. In an area graph, the positionFactor is 2, // causing the middle two points to be sliced out, since an area // path starts at left, follows the upper path then turns and // follows the bottom back.  // Move to, line to or curve to? // Disable first control point // Now insert the slice, either in the middle (for areas) or at // the end (for lines)