Fill color of the shape.
D3 selection of the svg group defining the shape holder.
Id of the shape.
List of point in the shape.
D3 selection of the svg path representing this shape.
D3 selection of the svg group defining the shape.
Stroke color of the shape.
Stroke width of the shape.
Translate property of the shape
Adds a point to the shape.
The point to add.
Adds the shape to a canvas.
The canvas where to add the shape.
Gets fill
fill
Gets stroke
stroke
Gets stroke width
stroke width
Gets translate
translate
Determines whether the shape is picked
Point cliked on screen, use pageX and pageY
true if picked
Removes the shape from a canvas.
The canvas to remove from.
Repaints the free form
Selects the shape for a peer.
Peer that selected the shape.
Color of the rectangle around the shape.
Sets fill
Set the list of points of the shape.
List of points.
Sets stroke
Sets stroke width
Sets translate
Export the shape to json
json
Translates the shape by dx and dy.
X-axis translation value.
Y-axis translation value.
Unselects the shape for a peer.
Peer that unselected the shape.
Gets the list of selected shapes.
selected shapes.
Gets the shape from a d3 selection.
D3 selection to get the shape from.
shape
Determines whether a D3 selection is a shape.
The selection to test.
true if shape.
Generated using TypeDoc
A class to create a new free form shape.