Interface I3DItem
Provides properties that are used to visualize 3D models.
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"
}]
}
}]
}
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"
}]
}
}]
}
Package: ui-framework
Properties
animation
Animation of elements (an autogenerated property of a model).
Declaration
animation?: string
Property Value
Type | Description |
---|---|
string | Animation of elements (an autogenerated property of a model). |
images
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.
Declaration
images: string[]
Property Value
Type | Description |
---|---|
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. |
isPrivateMockup
Toggler for private/public 3d mockups.
Declaration
isPrivateMockup: boolean
Property Value
Type | Description |
---|---|
boolean | Toggler for private/public 3d mockups. |
model
A link to a .dae
file.
Declaration
model: string
Property Value
Type | Description |
---|---|
string | A link to a |
position
A position of the element (an autogenerated property of a model).
Declaration
position?: string
Property Value
Type | Description |
---|---|
string | A position of the element (an autogenerated property of a model). |