Lines.js revision a95eb6fa4c28a6a3e6e893dd8a5cdfc3742ee651
function Lines(){}
/**
* @private
*/
_lineDefaults: null,
/**
* @private
*/
_getGraphic: function()
{
if(!this._lineGraphic)
{
this._lineGraphic = new Y.Graphic();
}
this._lineGraphic.clear();
this.autoSize = false;
return this._lineGraphic;
},
/**
* @private
*/
drawLines: function()
{
{
return;
}
lastValidX = lastX,
lastValidY = lastY,
i,
graphic = this._getGraphic();
for(i = 1; i < len; i = ++i)
{
{
lastValidX = nextX;
lastValidY = nextY;
continue;
}
if(lastValidX == lastX)
{
if(lineType != "dashed")
{
}
else
{
gapSpace);
}
}
else if(!connectDiscontinuousPoints)
{
}
else
{
if(discontinuousType != "solid")
{
}
else
{
}
}
}
},
/**
* @private
*/
drawSpline: function()
{
{
return;
}
cx1,
cx2,
cy1,
cy2,
x,
y,
i = 0,
graphic = this._getGraphic(),
for(; i < len; i = ++i)
{
x = curvecoords[i].endx;
y = curvecoords[i].endy;
}
},
/**
* Draws a dashed line between two points.
*
* @param xStart The x position of the start of the line
* @param yStart The y position of the start of the line
* @param xEnd The x position of the end of the line
* @param yEnd The y position of the end of the line
* @param dashSize the size of dashes, in pixels
* @param gapSize the size of gaps between dashes, in pixels
*/
{
i,
graphic = this._getGraphic();
for(i = 0; i < segmentCount; ++i)
{
}
{
}
else if(delta > 0)
{
}
},
_getLineDefaults: function()
{
return {
alpha: 1,
weight: 6,
lineType:"solid",
dashLength:10,
gapSpace:10,
discontinuousType:"solid",
};
}
};