Options for document import.

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

Properties

clearCanvas: boolean

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

layout?: LayoutType

Defines the layout how the imported structure will be placed on the canvas.
Accepted values: 'DEFAULT' | 'GRID';

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' | 'LEFT_BELOW';

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