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).
Methods of every object that lives in the wasm module (router, shapes, junctions, connectors, pins). This memory is not garbage collected, but the router owns everything added to it: only the router needs delete() (or a
usingdeclaration), and it frees all of it.