Closed macmcclain closed 3 years ago
Do you already have an example of drawing a line on a canvas with mouse down? I began trying out a custom controller... but reviewing the samples that are available, I think that an edit policy or a canvas policy is in order. Just not sure.
Thank you for your help.
Examples:
user picks the line element.
user starts to draw a line.
on complete I get a callback.
user picks the polygon element
user starts to draw a polygon.
I was able to resolve this. There is a demo project at http://freegroup.github.io/draw2d_js.app.shape_designer/ that shows how to do this nicely.
Thanks for all the hard work on this project!
Do you already have an example of drawing a line on a canvas with mouse down? I began trying out a custom controller... but reviewing the samples that are available, I think that an edit policy or a canvas policy is in order. Just not sure.
Thank you for your help.
Examples:
user picks the line element.
user starts to draw a line.
on complete I get a callback.
user picks the polygon element
user starts to draw a polygon.
on complete I get a callback.