This is an abstract class that Shapes have to extend that to insert or draw their own
editor.board.shapes.circle.insert({ x: 100, y: 100, radius: 10, fill: 'red'}) Copy
editor.board.shapes.circle.insert({ x: 100, y: 100, radius: 10, fill: 'red'})
editor.board.shapes.circle.draw() Copy
editor.board.shapes.circle.draw()
editor.board.shapes.circle.stopDrawing() Copy
editor.board.shapes.circle.stopDrawing()
Creates a new svg builder component
The [[Board]]
Reperesents the configuration of the shape that is drawing that
Demonstrates the svg node that is being created
Reperesents the start point of the drawing shape
Checks wheather the current shape is drawing or not
Enables the drawing mode
The initial [[ShapeModel]] config
Returns current position of the shape
the current position of the shape as a [[Point]]
Creates a new shape and insert that into the [[Board]]
The [[ShapeModel]] configuration
The created [[ShapeModel]]
Stops drawing mode
This is an abstract class that Shapes have to extend that to insert or draw their own
Example
Example
Example