Creates a new instance of Transform with an optional set of options to override the default values.
The options to apply to the new instance.
The option which determines whether only common or any group are valid.
To only include common units this value must be true
and to include
common and uncommon this value must be false
.
Whether conversions should convert the rate unit.
Whether conversions should convert the main unit.
Whether the minimum or maximum value of a range is used when producing conversions.
Whether ranges without units are considered valid for the transformation.
The maximum allowed value for the transformation.
The mimimum allowed value for the transformation.
An array of class names that define the invalid ranges for a transformation.
An array of units that define the invalid ranges for a transformation.
An array of class names that define the valid ranges for a transformation.
An array of units that define the valid ranges for a transformation.
The desired system for the transformation.
Returns a Transform instance which matches the desired options. If no options are specified the reference to this instance is returned. If the options are already an instance of Transform its returned. If options are specified a new instance is created with the options of this instance, and the given options applied with Transform.set.
The options desired.
An instance of this class which matches the desired options.
Determines whether the given class matches the classes options on this instance.
The class to test.
True if the class matches the classes options, otherwise false.
Determines whether the given group matches the common option on this instance.
The group to test.
True if the group matches the common option, otherwise false.
Determines whether the given group matches the unit options on this instance.
The group to test.
True if the group matches the unit options, otherwise false.
Determines whether the given range is valid according to this instance.
The range to test.
True if the range matches this transform, otherwise false.
Overrides values in this instance with ones specified in input.
The values to override.
The reference to this instance.
Generated using TypeDoc
THe class which controls which units and values are acceptable when transforming a set of ranges.
Base.normalize
Base.compact
Base.expand
Base.conversions
Base.filter