For the router: frees it and everything added to it. For other objects:
removes the object. Shapes, junctions and connectors are removed through
their router, like router.deleteShape(shape), with the same
restrictions; a pin is removed from its shape or junction immediately.
Everything the object owns goes with it. Using the object afterwards
throws.
Same as delete(), for using declarations.
True once the object was freed, whether by its own delete() or by deleting its owner (e.g. a pin's shape, or the router).
The unique id: options.id given when it was added, or one assigned by the router.
The obstacle's polygon, as a new array.
The centre of the shape's routing box, or the junction's position.
Bounding box of the polygon grown by the router's shapeBufferDistance,
i.e. the area connectors are routed around.
Adds a connection pin: a point on the shape that connectors can attach to. The pin moves with the shape and is deleted with it.
A shape (rectangle or polygon) that connectors are routed around. Created by
router.addShape.