libavoid-js
    Preparing search index...

    Interface Handle

    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 using declaration), and it frees all of it.

    interface Handle {
        delete(): void;
        "[dispose]"(): void;
        isDeleted(): boolean;
        isAliasOf(other: Handle): boolean;
    }

    Hierarchy (View Summary)

    Index
    • 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.

      Returns void

    • Same as delete(), for using declarations.

      Returns void

    • 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).

      Returns boolean

    • True if both handles refer to the same object.

      Parameters

      Returns boolean