Interface BaseSettings

interface BaseSettings {
    container?: HTMLDivElement;
    containerClassName: string;
    cropper: Partial<CropperOptions>;
    disableCanvasContextMenu: boolean;
    drawing: Partial<{
        autoSelect: boolean;
        keyboard: {
            cancelOnEscape: boolean;
        };
    }>;
    height: number;
    history: Partial<{
        keyboard: {
            enabled: boolean;
        };
    }>;
    measurement: Partial<Nullable<{
        background: TagConfig;
        margin: number;
        text: TextConfig;
    }>>;
    selection: Partial<{
        interactive: boolean;
        keyboard: Partial<Nullable<{
            enabled: boolean;
            map: Partial<Nullable<{
                delete?: string[];
                deselect?: string[];
                moveDown?: string[];
                moveLeft?: string[];
                moveRight?: string[];
                moveUp?: string[];
            }>>;
            movingSpaces: number;
        }>>;
        transformer: TransformerConfig;
        zone: RectConfig;
    }>;
    snapToGrid: Nullable<LineConfig>;
    transformer: TransformerConfig;
    width: number;
}

Properties

container?: HTMLDivElement
containerClassName: string
cropper: Partial<CropperOptions>
disableCanvasContextMenu: boolean
drawing: Partial<{
    autoSelect: boolean;
    keyboard: {
        cancelOnEscape: boolean;
    };
}>

Type declaration

  • autoSelect: boolean
  • keyboard: {
        cancelOnEscape: boolean;
    }
    • cancelOnEscape: boolean
height: number
history: Partial<{
    keyboard: {
        enabled: boolean;
    };
}>

Type declaration

  • keyboard: {
        enabled: boolean;
    }
    • enabled: boolean
measurement: Partial<Nullable<{
    background: TagConfig;
    margin: number;
    text: TextConfig;
}>>
selection: Partial<{
    interactive: boolean;
    keyboard: Partial<Nullable<{
        enabled: boolean;
        map: Partial<Nullable<{
            delete?: string[];
            deselect?: string[];
            moveDown?: string[];
            moveLeft?: string[];
            moveRight?: string[];
            moveUp?: string[];
        }>>;
        movingSpaces: number;
    }>>;
    transformer: TransformerConfig;
    zone: RectConfig;
}>

Type declaration

  • interactive: boolean
  • keyboard: Partial<Nullable<{
        enabled: boolean;
        map: Partial<Nullable<{
            delete?: string[];
            deselect?: string[];
            moveDown?: string[];
            moveLeft?: string[];
            moveRight?: string[];
            moveUp?: string[];
        }>>;
        movingSpaces: number;
    }>>
  • transformer: TransformerConfig
  • zone: RectConfig
snapToGrid: Nullable<LineConfig>
transformer: TransformerConfig
width: number