Module: ScaleController

is dat.GUI graphical user interface controller for control of the scale of threejs 3D object
Author:
  • Andrej Hristoliubov https://anhr.github.io/AboutMe/
License:
  • under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Source:
See:

Classes

ScaleController

Methods

(inner) ScaleControllers(folder, object, property, onChange, optionsopt)

dat.GUI graphical user interface controllers for manipulate or multiplication of the object's property
Parameters:
Name Type Attributes Description
folder GUI folder for new controllers
object Object The object to be manipulated
property String The name of the property to be manipulated
onChange function Callback function that take the new property of the object
options Object <optional>
the following options are available
Properties
Name Type Attributes Default Description
settings object <optional>
settings.
Properties
Name Type Attributes Description
zoomMultiplier number <optional>
control value. Default is 1.1
getLanguageCode function <optional>
language code of your browser returns the "primary language" subtag of the version of the browser.
text String <optional>
object's property name. Default is property name.
textTitle String <optional>
object's property title. Default is not title,
Source:

Type Definitions

onclick(customController, action)

Parameters:
Name Type Description
customController ScaleController this controller
action function action( value, zoom ) function for multiply or divide value to zoom
Source: