2

如何用 draw2d 绘制折线(javascript 不是 eclipse)?

(很遗憾,draw2d.org 上没有示例)

到目前为止,我尝试过:

var polyline = new draw2d.shape.basic.PolyLine();
polyline.addPoint(30, 0);
polyline.addPoint(30, 0);
polyline.addPoint(30, 70);
polyline.addPoint(50, 50);
polyline.addPoint(70, 70);
polyline.addPoint(70, 0);
canvas.addFigure(polyline);
4

0 回答 0