@asc-mitc/fdl — Node.js API
    Preparing search index...

    Class Context

    Hierarchy

    • HandleWrapper
      • Context
    Index

    Constructors

    • Parameters

      • opts: { canvases?: object; contextCreator?: string | null; label: string }

      Returns Context

    Properties

    _addon: NativeAddon

    Cached addon reference.

    _docRef: OwnedHandle | null

    Strong reference to the owning document. Prevents GC of the document while this child handle lives. For OwnedHandle, this is this (self-referencing).

    Accessors

    • get contextCreator(): string | null

      contextCreator

      Returns string | null

    Methods

    • Check that the handle is still valid. Throws if closed.

      Returns void

    • Add a canvas to this context.

      Parameters

      • id: string
      • label: string
      • sourceCanvasId: string
      • dimensions: DimensionsInt
      • anamorphicSqueeze: number

      Returns Canvas

    • Returns Record<string, unknown>

    • Parameters

      • indent: number = 0

      Returns string

    • Parameters

      • name: string

      Returns boolean

    • Parameters

      • name: string

      Returns boolean

    • Returns Record<string, unknown>