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

    Class CanvasTemplate

    Hierarchy

    • HandleWrapper
      • CanvasTemplate
    Index

    Constructors

    • Parameters

      • opts: {
            alignmentMethodHorizontal?: HAlign;
            alignmentMethodVertical?: VAlign;
            fitMethod?: FitMethod;
            fitSource?: GeometryPath;
            id: string;
            label?: string;
            maximumDimensions?: DimensionsInt | null;
            padToMaximum?: boolean;
            preserveFromSourceCanvas?: GeometryPath | null;
            round?: RoundStrategy;
            targetAnamorphicSqueeze?: number;
            targetDimensions: DimensionsInt;
        }

      Returns CanvasTemplate

    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

    Methods

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

      Returns void

    • Apply this canvas template to a source canvas/framing decision.

      Parameters

      • sourceCanvas: Canvas
      • sourceFraming: FramingDecision
      • newCanvasId: string
      • newFdName: string
      • sourceContextLabel: string | null = null
      • contextCreator: string | null = null

      Returns TemplateResult