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

Interface: I3DItem

Provides properties that are used to visualize 3D models.

For more details, you can refer to the 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": {
            "items": [{
                "images": [
                    "https://example.com/800/600",
                    "https://example.com/1000/601"
                ],
                "model": "http://localhost:8081/box.dae"
            }]
        }
    }]
}

Hierarchy

  • I3DItem

Index

Properties

Properties

Optional animation

animation? : string

Animation of elements (an autogenerated property of a model).


images

images: string[]

Images that are applied to the model as textures. For two-side models, the first image will be applied to the front surface and the second image - to the back surface.


model

model: string

A link to a .dae file.


Optional position

position? : string

A position of the element (an autogenerated property of a model).