pivotick - v1.5.0
    Preparing search index...

    Interface PivotickPlugin

    A Pivotick plugin: a self-contained bundle of UI elements, keybindings and lifecycle hooks that installs itself into a graph without the core needing to know it exists.

    Register one either declaratively via GraphOptions.plugins, or imperatively via Graph.use:

    const minimap: PivotickPlugin = {
    name: 'minimap',
    install(ctx) {
    ctx.addElement(new MinimapPanel(ctx.ui), ctx.layout?.canvas)
    ctx.addKeybinding({ key: 'm', callback: () => ... })
    },
    }
    new Graph(el, data, { plugins: [minimap] })
    // or
    graph.use(minimap)
    interface PivotickPlugin {
        name: string;
        install(ctx: PluginContext): void;
    }
    Index

    Methods

    Properties

    Methods

    Properties

    name: string

    Stable identifier, used for logging and de-duplication.