Type Alias UIOptions

UIOptions: {
    locale?: Locale | "auto";
    unit?: Unit;
    ruler?: {
        enabled: boolean;
    };
}

Configuration options for the user interface.

Type declaration

  • Optionallocale?: Locale | "auto"

    The locale to use for displaying text, formatting numbers etc.

    auto will automatically detect the user's locale based on their browser settings. If this doesn't match a supported locale, it will fall back to en.

    auto

  • Optionalunit?: Unit

    The unit system for measurements shown in the UI.

    pt

  • Optionalruler?: {
        enabled: boolean;
    }

    Configuration for the ruler feature.

    • enabled: boolean

      Controls whether the ruler is shown by default when the editor loads.

      true