ARScaleControl
class ARScaleControl implements ARControl
Model's scale controller which works on AR(WebXR) mode.
constructor
new ARScaleControl(options, options.min, options.max)
Create new instance of ARScaleControl
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
options | ARScaleControlOptions | ✔️ | {} | Options |
options.min | number | ✔️ | 0.05 | Minimum scale, default is 0.05(5%) |
options.max | number | ✔️ | 5 | Maximum scale, default is 5(500%) |
Properties
enabled
Whether this control is enabled or not
range
Range of the scale
Methods
enable
Enable this control
disable
Disable this control