TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

Interface: I3DViewerParams

Provides properties that are used to visualize 3D models.

For more details, you can refer to the [[AuWidget3DViewer|3D-Viewer widget].

The following example illustrates how you can specify a two-sided model in the 3D-Viewer widget.

{
    "widgets": [{
        "name": "preview",
        "type": "3d-viewer",
        "params": {
            "showAnimationButtons": false,
            "showCameraButtons": false,
            "items": [{
                "images": [
                    "https://example.com/800/600",
                    "https://example.com/1000/601"
                ],
                "model": "http://localhost:8081/box.dae"
            }]
        }
    }]
}

Hierarchy

  • I3DViewerParams

Index

Properties

Properties

Optional buttonsPosition

buttonsPosition? : ButtonsPosition

The position of the camera and animation button: left, right, or top. By default: left.


items

items: I3DItem[]

A collection of objects for visualization.


modelType

modelType: modelType

The model type: default or blender.


pauseAtEnd

pauseAtEnd: boolean

If true, pauses animation at the last frame.


Optional showAnimationButtons

showAnimationButtons? : boolean

If a model has several elements (for example, if a box consists of a container and a lid), you can set this parameter to true to enable buttons for opening and closing these elements.


Optional showAnimationControls

showAnimationControls? : boolean

if true, shows Play\Pause button, animation timeline and animation speed controls.


Optional showCameraButtons

showCameraButtons? : boolean

If true, enables camera buttons.