VALIDATION
- Description:
- Shared validation functions
- Source:
Methods
(static) Fill#_isRepetition(value) → {boolean}
- Description:
- Returns whether the passed value is a repetition value
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Repetition value |
Returns:
True || False
- Type
- boolean
(static) Group#_isCanvasLabObject(value) → {boolean}
- Description:
- Returns whether the passed value is a CanvasLab object; Line, Circle, Rectangle, Text
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | CanvasLab object; Line, Circle, Rectangle, Text |
Returns:
True || False
- Type
- boolean
(static) Position#_isNumber(value) → {boolean}
- Description:
- Returns whether the passed value is a Number value
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Number value |
Returns:
True || False
- Type
- boolean
(static) is256(value) → {boolean}
- Description:
- Returns whether the passed value is a 256 color value; 0 - 255
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | 256 color value; 0 - 255 |
Returns:
True || False
- Type
- boolean
(static) isAlign(value) → {boolean}
- Description:
- Returns whether the passed value is an Anchor alignment
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Anchor alignment |
Returns:
True || False
- Type
- boolean
(static) isAlpha(value) → {boolean}
- Description:
- Returns whether the passed value is an alpha value; 0.00 - 1
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Alpha value; 0.00 - 1 |
Returns:
True || False
- Type
- boolean
(static) isAnchor(value) → {boolean}
- Description:
- Returns whether the passed value is an Anchor alignment
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Anchor alignment |
Returns:
True || False
- Type
- boolean
(static) isAngle(value) → {boolean}
- Description:
- Returns whether the passed value is an Angle or equivalent value
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | number | Angle object or number value |
Returns:
True || False
- Type
- boolean
(static) isAspect(value) → {boolean}
- Description:
- Returns whether the passed value is an Aspect
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Aspect or object equivalent |
Returns:
True || False
- Type
- boolean
(static) isBlur(value) → {boolean}
- Description:
- Returns whether the passed value is a blur value
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Blur value |
Returns:
True || False
- Type
- boolean
(static) isCanvasLabObject(value) → {boolean}
- Description:
- Returns whether the passed value is a CanvasLab object; Line, Circle, Rectangle, Text
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | CanvasLab object; Line, Circle, Rectangle, Text |
Returns:
True || False
- Type
- boolean
(static) isColorModel(value) → {boolean}
- Description:
- Returns whether the passed value is a color model
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Color model or object equivalent |
Returns:
True || False
- Type
- boolean
(static) isColorName(value) → {boolean}
- Description:
- Returns whether the passed value is a CSS color name
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string | CSS color name |
Returns:
True || False
- Type
- boolean
(static) isControlPoint(value) → {boolean}
- Description:
- Returns whether the passed value is an array of Control Point values
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Array.<number> | Array of Control Points |
Returns:
True || False
- Type
- boolean
(static) isDecimal(value) → {boolean}
- Description:
- Returns whether the passed value is a decimal value; 0.00 - 1
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Decimal value; 0.00 - 1 |
Returns:
True || False
- Type
- boolean
(static) isDegree(value) → {boolean}
- Description:
- Returns whether the passed value is a degree
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Degree |
Returns:
True || False
- Type
- boolean
(static) isFill(value) → {boolean}
- Description:
- Returns whether the passed value is a Fill property object
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Fill |
Returns:
True || False
- Type
- boolean
(static) isFillType(value) → {boolean}
- Description:
- Returns whether the passed value is a fill type
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Fill type |
Returns:
True || False
- Type
- boolean
(static) isGradient(value) → {boolean}
- Description:
- Returns whether the passed value is a gradient object
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Gradient object |
Returns:
True || False
- Type
- boolean
(static) isInDom(value) → {boolean}
- Description:
- Returns whether the passed value is an element id within the DOM
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Element id |
Returns:
True || False
- Type
- boolean
(static) isNumber(value) → {boolean}
- Description:
- Returns whether the passed value is a Number value
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Number value |
Returns:
True || False
- Type
- boolean
(static) isPoint(value) → {boolean}
- Description:
- Returns whether the passed value is a Point
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Point or object equivalent |
Returns:
True || False
- Type
- boolean
(static) isPointNAspect(value) → {boolean}
- Description:
- Returns whether the passed value is a Point & Aspect
- Source:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
value |
Object | Object
Properties
|
Returns:
True || False
- Type
- boolean
(static) isRadian(value) → {boolean}
- Description:
- Returns whether the passed value is a radian; 0 - 6.28...
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Radian value; 0 - 6.28... |
Returns:
True || False
- Type
- boolean
(static) isRadius(value) → {boolean}
- Description:
- Returns whether the passed value is a radius value
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Radius value |
Returns:
True || False
- Type
- boolean
(static) isRepetition(value) → {boolean}
- Description:
- Returns whether the passed value is a repetition value
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Repetition value |
Returns:
True || False
- Type
- boolean
(static) isSegments(value) → {boolean}
- Description:
- Returns whether the passed value is an Array of segment values
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Array.<number> | Array of segment values |
Returns:
True || False
- Type
- boolean
(static) isStop(value) → {boolean}
- Description:
- Returns whether the passed value is a Stop or object equivalent
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Stop or object equivalent |
Returns:
True || False
- Type
- boolean
(static) isStroke(value) → {boolean}
- Description:
- Returns whether the passed value is a Stroke property object
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Stroke |
Returns:
True || False
- Type
- boolean
(static) isStrokeType(value) → {boolean}
- Description:
- Returns whether the passed value is a stroke type
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Stroke type |
Returns:
True || False
- Type
- boolean
(static) isTemplate(value) → {boolean}
- Description:
- Returns whether the passed value is a Template
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Template | Template object |
Returns:
True || False
- Type
- boolean
(static) isTransition(value) → {boolean}
- Description:
- Returns whether the passed value is a Transition
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Transition | Transition object |
Returns:
True || False
- Type
- boolean
(static) isWidth(value) → {boolean}
- Description:
- Returns whether the passed value is a width value
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number | Width value |
Returns:
True || False
- Type
- boolean