Options for document import.

interface ImportOptions {
    clearCanvas: boolean;
    placement?: PlacementType;
    scale?: ScaleType;
    select: boolean;
    throwError: boolean;
}

Properties

clearCanvas: boolean

Whether to clear the whole canvas prior importing the new structure.

placement?: PlacementType

Defines where the imported structure will be placed on the canvas.
Accepted values: 'CENTER' | 'TOP_LEFT' | 'TOP' | 'TOP_RIGHT' | 'RIGHT' | 'BOTTOM_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'LEFT';

scale?: ScaleType

Defines how the zoom is changed after the input. Accepted values: 'NONE' | 'SHRINK';

select: boolean

Whether to select the imported structure after successful import.

throwError: boolean

Whether to throw error if import fails.

Generated using TypeDoc