Skip to main content

translate

Typeboolean | TranslateControlOptions
Defaulttrue

Options for the TranslateControl.
If false is given, it will disable the translate control.

NameTypeDefaultDescription
scalenumber1Scale factor for rotation
durationnumber0Duration of the input animation (ms)
easingfunctionEASING.EASE_OUT_CUBICEasing function of the animation

Example

translate: true (default)

{
src: "/egjs-view3d/model/draco/alarm.glb",
translate: true
}

translate: false

{
src: "/egjs-view3d/model/draco/alarm.glb",
translate: false
}

Detailed options

{
src: "/egjs-view3d/model/draco/alarm.glb",
translate: {
scale: 2,
duration: 2000
}
}