Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace <internal>

Index

Type aliases

ContextMenuRenderCallback: (diagramMakerContainer: HTMLElement, consumerContainer?: HTMLElement | void) => HTMLElement | undefined | void

Type declaration

    • (diagramMakerContainer: HTMLElement, consumerContainer?: HTMLElement | void): HTMLElement | undefined | void
    • This callback is called to render context menu for elements without IDs like workspace. Since, we have different callbacks for node, edge, panel, it is assumed that the type of the element is known before hand.

      Parameters

      • diagramMakerContainer: HTMLElement

        The container in which the consumer renders the context menu. This is an empty container with only the position set correctly. Could diff against content already present in the container using React, Preact or any other VDOM.

      • Optional consumerContainer: HTMLElement | void

        This is passed only if the consumer returned this in prior calls to this callback. Useful for Preact, where you need to provide the element within the container to diff against.

      Returns HTMLElement | undefined | void

      • HTMLElement in case of Preact, or void or undefined everywhere else.
ContextMenuRenderCallbackWithId: (id: string | undefined, diagramMakerContainer: HTMLElement, consumerContainer?: HTMLElement | void) => HTMLElement | undefined | void

Type declaration

    • (id: string | undefined, diagramMakerContainer: HTMLElement, consumerContainer?: HTMLElement | void): HTMLElement | undefined | void
    • This callback is called to render context menu for elements with IDs like node, edge, panel.

      Parameters

      • id: string | undefined

        The ID of the element which was clicked. Since, we have different callbacks for node, edge, panel, it is assumed that the type of the element is known before hand.

      • diagramMakerContainer: HTMLElement

        The container in which the consumer renders the context menu. This is an empty container with only the position set correctly. Could diff against content already present in the container using React, Preact or any other VDOM.

      • Optional consumerContainer: HTMLElement | void

        This is passed only if the consumer returned this in prior calls to this callback. Useful for Preact, where you need to provide the element within the container to diff against.

      Returns HTMLElement | undefined | void

      • HTMLElement in case of Preact, or void or undefined everywhere else.
ObserverCallback: (...args: any[]) => void

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

Generated using TypeDoc