A Spec is basically an Object that translates data ( map/unmap), secures that the data fits a specification (constrain). This Spec holds functions to enact these duties.
Creates a FuncSpec
mapFunc |
a Function to be called on map |
unmapFunc |
a Function to be called on unmap |
constrainFunc |
a Function to be called on constrain |
defaultFunc |
a Function to be called on default |
a FuncSpec
The instance methods are the most important of ControlSpec
A simple example that could be also with a ControlSpec