ducjs - v4.4.2
    Preparing search index...

    Interface ModelViewConfig

    Specification for rendering a model view thumbnail/frame.

    interface ModelViewConfig {
        background?: string;
        camera?: Partial<Viewer3DCamera>;
        cameraPreset?: CameraPreset;
        clipping?: Partial<Viewer3DClipping>;
        display?: Partial<Viewer3DDisplay>;
        dxfViewArea?: {
            margin?: number;
            maxX: number;
            maxY: number;
            minX: number;
            minY: number;
        };
        explode?: Partial<Viewer3DExplode>;
        format?: "png" | "webp" | "jpeg";
        height?: number;
        hiddenLayers?: string[];
        material?: Partial<Viewer3DMaterial>;
        pixelRatio?: number;
        targetLongEdge?: number;
        trimPaddingPx?: number;
        trimTransparentBounds?: boolean;
        visibleLayers?: string[];
        width?: number;
        zebra?: Partial<Viewer3DZebra>;
    }
    Index
    background?: string

    Background color or "transparent".

    "transparent"
    
    camera?: Partial<Viewer3DCamera>

    Explicit camera options overriding presets or existing viewerState.

    cameraPreset?: CameraPreset

    Predefined camera perspective. If set, provides standard coordinate transforms.

    clipping?: Partial<Viewer3DClipping>

    Clipping plane states along X, Y, and Z axes.

    display?: Partial<Viewer3DDisplay>

    Display options such as wireframe, axes, and grid.

    dxfViewArea?: {
        margin?: number;
        maxX: number;
        maxY: number;
        minX: number;
        minY: number;
    }

    DXF specific view bounding box to frame or zoom into a specific sub-region / section.

    explode?: Partial<Viewer3DExplode>

    CAD explosion animation state.

    format?: "png" | "webp" | "jpeg"

    Output image encoding format.

    "png"
    
    height?: number

    Target rendered pixel height.

    768
    
    hiddenLayers?: string[]

    DXF layer names to hide.

    material?: Partial<Viewer3DMaterial>

    Material and lighting properties for 3D surfaces and edges.

    pixelRatio?: number

    Device pixel ratio (1 for standard offscreen rendering).

    1
    
    targetLongEdge?: number

    Target long edge size in pixels when trimming/scaling.

    1200
    
    trimPaddingPx?: number

    Padding in pixels around the trimmed content.

    2
    
    trimTransparentBounds?: boolean

    Whether to trim excess transparent border pixels from the output thumbnail. Directly mirrors packages/client/ui/blocks/core/three/lib/thumbnail-capture.ts.

    true
    
    visibleLayers?: string[]

    DXF layer names to display exclusively.

    width?: number

    Target rendered pixel width.

    1024
    
    zebra?: Partial<Viewer3DZebra>

    Surface curvature zebra stripe inspection configuration.