This module contains classes for controls which let you control the UI with your JS code.
The base class is Controls.control, which also exports a few helper functions, e.g. getPixelSize which may be used in other controls.
import Control from './control'; class MyCustomControl extends Control { initialize(rootelem, params) { // ... } } Copy
import Control from './control'; class MyCustomControl extends Control { initialize(rootelem, params) { // ... } }
This module contains classes for controls which let you control the UI with your JS code.
The base class is Controls.control, which also exports a few helper functions, e.g. getPixelSize which may be used in other controls.