draw icon indicating copy to clipboard operation
draw copied to clipboard

Dimension object

Open tmpvar opened this issue 11 years ago • 2 comments

Provide a way to represent a dimension helper

_api signature

Dimension(a, b, value)

Creates a dimension between a and b and binds to their .change emitter. When either changes, or the dimension changes via .val(), update the appropriate things

val([val])

get/set value

remove()

remove this dimension

render(ctx)

renders a visual representation of the dimension

undo manager support will need to be added. when a user undoes the addition of a dimension, we will want to restore a/b to their original location.

tmpvar avatar Feb 04 '14 02:02 tmpvar

super primitive support in c2160f84848beb465d37dc904e7135acdb03e396

screen shot 2014-02-05 at 12 35 59 pm

tmpvar avatar Feb 05 '14 19:02 tmpvar

Currently only works on points, needs support for lines/circles

tmpvar avatar Feb 05 '14 19:02 tmpvar