Type Alias DucLocalState

DucLocalState: {
    currentItemBackground: ElementBackground;
    currentItemEndLineHead: LineHead | null;
    currentItemFontFamily: FontFamilyValues;
    currentItemFontSize: DucTextElement["fontSize"];
    currentItemOpacity: Percentage;
    currentItemRoundness: DucElement["roundness"];
    currentItemStartLineHead: LineHead | null;
    currentItemStroke: ElementStroke;
    currentItemTextAlign: TextAlign;
    decimalPlaces: number;
    gridModeEnabled: boolean;
    isBindingEnabled: boolean;
    manualSaveMode: boolean;
    objectsSnapModeEnabled: boolean;
    outlineModeEnabled: boolean;
    penMode: boolean;
    scope: Scope;
    scrollX: PrecisionValue;
    scrollY: PrecisionValue;
    viewModeEnabled: boolean;
    zoom: Zoom;
}

Type declaration

  • currentItemBackground: ElementBackground
  • currentItemEndLineHead: LineHead | null
  • currentItemFontFamily: FontFamilyValues
  • currentItemFontSize: DucTextElement["fontSize"]
  • currentItemOpacity: Percentage
  • currentItemRoundness: DucElement["roundness"]
  • currentItemStartLineHead: LineHead | null
  • currentItemStroke: ElementStroke
  • currentItemTextAlign: TextAlign
  • decimalPlaces: number
  • gridModeEnabled: boolean

    Available grids are visible

  • isBindingEnabled: boolean
  • manualSaveMode: boolean

    When enabled, the version graph is not updated automatically. The user needs to manually update the graph for new versions to be saved in version control.

  • objectsSnapModeEnabled: boolean

    Object snapping on the environment is enabled

  • outlineModeEnabled: boolean

    Wether to disable the fill on all shapes

  • penMode: boolean

    Pen mode is enabled, creates a better experience for drawing with a pen

  • scope: Scope

    The current scope of the design mm, cm, m, in, ft, yd, mi, etc...

  • scrollX: PrecisionValue
  • scrollY: PrecisionValue
  • viewModeEnabled: boolean

    In view mode the user is not allowed to edit the canvas.

  • zoom: Zoom