Skip to main content

maintainSize

Typeboolean
Defaultfalse

Whether to retain 3D model's visual size on canvas resize.

Example

maintainSize: false
maintainSize: true
{
src: "/egjs-view3d/model/draco/alarm.glb",
poster: "/egjs-view3d/poster/alarm_default.png",
maintainSize: false
}
{
src: "/egjs-view3d/model/draco/alarm.glb",
poster: "/egjs-view3d/poster/alarm_default.png",
maintainSize: true
}