Patch object accepted by designer.api.updateView(...).

interface AsukaViewUpdatePatch {
    dpi?: number;
    engine?: AsukaRenderEngineKind;
    height?: number;
    name?: string;
    physicalSize?: AsukaPhysicalSize;
    scene3d?: any;
    unit?:
        | "px"
        | "mm"
        | "cm"
        | "in";
    width?: number;
}

Hierarchy (view full)

Properties

dpi?: number

Dots per inch metadata used by exports and size conversions.

Rendering engine used by this view. Defaults to the root engine.

height?: number

Export/canvas height.

name?: string

Human-readable view name shown in the UI.

physicalSize?: AsukaPhysicalSize

Real-world extent represented by the view when no drawing area has its own calibration.

scene3d?: any

Initial 3D scene state for 3D views.

unit?:
    | "px"
    | "mm"
    | "cm"
    | "in"

Unit used by the view dimensions.

width?: number

Export/canvas width.