@inweb/viewer-visualize
    Preparing search index...

    Interface IOptions

    Viewer options interface.

    interface IOptions {
        ambientOcclusion?: boolean;
        antialiasing?: boolean;
        cameraAnimation?: boolean;
        cameraAxisXSpeed?: number;
        cameraAxisYSpeed?: number;
        cuttingPlaneFillColor?: RGB;
        edgeModel: boolean;
        edgesColor?: { b: number; g: number; r: number };
        edgesOverlap?: boolean;
        edgesVisibility?: boolean;
        enableCustomHighlight?: boolean;
        enableGestures: boolean;
        enablePartialMode?: boolean;
        enableStreamingMode?: boolean;
        enableZoomWheel: boolean;
        facesColor?: { b: number; g: number; r: number };
        facesOverlap?: boolean;
        facesTransparancy?: number;
        geometryType?: string;
        groundShadow?: boolean;
        memoryLimit?: number;
        resetToDefaults?: (fields?: string[]) => void;
        reverseZoomWheel: boolean;
        rulerUnit: string;
        sceneGraph: boolean;
        shadows?: boolean;
        showWCS?: boolean;
    }
    Index

    Properties

    ambientOcclusion?: boolean

    Enable ambient occlusion.

    false
    
    antialiasing?: boolean

    Enable anti-aliasing using FXAA.

    true
    
    cameraAnimation?: boolean

    Enable camera animation.

    true
    
    cameraAxisXSpeed?: number

    Camera speed on X axis.

    4
    
    cameraAxisYSpeed?: number

    Camera speed on Y axis.

    1
    
    cuttingPlaneFillColor?: RGB

    Cutting planes fill color.

    { red: 0xff, green: 0x98, blue: 0x00 }
    
    edgeModel: boolean

    Show the edges of the model:

    • false - No model edges are displayed. Usefull for less memory consumption.
    • true - Display isolines.
    edgesColor?: { b: number; g: number; r: number }

    Edges highlight color.

    edgesOverlap?: boolean

    Show highlighted edges over drawing.

    edgesVisibility?: boolean

    Show highlighted edges.

    enableCustomHighlight?: boolean

    Enable custom highlight settings.

    enableGestures: boolean

    Enable touch gestures.

    This option will be ignored when mouse wheel zooming is disabled, since gestures contains touch zoom.

    enablePartialMode?: boolean

    Enable partial streaming mode to be able open large drawing.

    In partial streaming mode, the viewer keeps only visible objects in memory and loads other objects when the camera changes.

    Only used if streaming is enabled. If partial streaming is enabled, then scene graph will be disabled.

    false
    
    enableStreamingMode?: boolean

    Enable streaming of drawings from the server.

    If streaming is disabled, the file/assembly will be loaded in one go. The viewer will only update once the loading is complete, which may take a while.

    If streaming is enabled, partial streaming mode may be enabled as well.

    true
    
    enableZoomWheel: boolean

    Enable mouse wheel zooming.

    facesColor?: { b: number; g: number; r: number }

    Faces highlight color.

    facesOverlap?: boolean

    Show highlighted faces over drawing.

    facesTransparancy?: number

    Highlighted faces transparency value, from 0 to 255.

    geometryType?: string

    Deprecated since 25.8.

    groundShadow?: boolean

    Show ground shadows below the model.

    false
    
    memoryLimit?: number

    The size of the memory buffer for graphics data, in bytes.

    3294967296
    
    resetToDefaults?: (fields?: string[]) => void

    Resets options to default values.

    Type declaration

      • (fields?: string[]): void
      • Parameters

        • Optionalfields: string[]

          Name of fields to be reset.

        Returns void

    reverseZoomWheel: boolean

    Reverse the mouse wheel direction for zooming:

    • false - Moving the wheel up zooms in, moving down zooms out.
    • true - Moving the wheel up zooms out, moving down zooms in.
    rulerUnit: string

    Ruler unit.

    Available values: Default, Millimeters, Centimeters, Meters, Feet, Inches, Yards, Kilometers, Miles, Micrometers, MicroInches

    Default
    
    sceneGraph: boolean

    Enable scene graph.

    Scene graph increases perfomance improvement, but consumes memory. If scene graph is enabled, then partial streaming mode will be disabled.

    shadows?: boolean

    Enable ambient shadows.

    false
    
    showWCS?: boolean

    Show the world coordinate system axes in the bottom-left corner of the viewer.

    true