Shouldn't this draw a vertical line?
new Line({ lineOrientation : VERTICAL, thickness: 15 }).center()
Shouldn't this draw a vertical line?
new Line({ lineOrientation : VERTICAL, thickness: 15 }).center()
That is the direction of the two outside lines if drawing with lineType corner or curve. To make a vertical line, make a new Line and rotate it - or make a new Line between points that are vertical.
STYLE = {thickness:5};
new Line({length:200}).rot(90).pos(200,100)
new Line({
lineType:"corner",
lineOrientation : HORIZONTAL,
startLength:50
}).setPoints(0,0,300,300).center()
new Line({
lineType:"curve",
lineOrientation : VERTICAL,
startLength:100
}).setPoints(0,0,300,300).pos(100,200,RIGHT,BOTTOM);
Thanks. I had tried the rot() and it worked but was messing up my calculations. I went back and readjusted those and we are back in business.
Thanks,