Fill color of the shape.
D3 selection of the svg group defining the shape holder.
Id of the 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 the shape to a canvas.
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
Redraws the rectangles around the shape.
Removes the shape from a canvas.
The canvas to remove from.
Repaints the shape.
Selects the shape for a peer.
Peer that selected the shape.
Color of the rectangle around the shape.
Sets fill
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
Abstract class for every shapes in the canvas.