Mapper types
Canvas mapper working with custom Canvas
types created and based on native JavaScript
types behavior.
Mapper has tree kind of types:
ReturnType
- type that mapper node returns. Has the next types:
Type | Description | Example |
---|---|---|
| Type that represents the string value. | “Some test string value” |
| Type that represents the number value. | 1 or 10 or -15 |
| Type that represents the boolean value. | true or false |
| Type that represents the model of some abstract object. | { |
| Type that represents the array of | [ |
| Type that represents the array of | [ |
| Type that represents the array of | [ |
| Type that represents the array of | [ |
| Type that represents any of possible types that can be existed in system. | true or 1 or “Value” or { id: 0 } or [1, 2, 3] etc. |
| Type that represents nothing. | You can find it in |
NodeType
- type of mapper node. Has the next types:
Type | Description | Example |
---|---|---|
| General model field. | [string] description |
| Value that not change through mapping process. | [string] testConstant = “Test Value” |
| Fixed value that not exist in model and shows only value without any key or position in the tree. | You can find it only through manual texting in input. |
| Function\Method. The same with JavaScript function. | [string] concat(testStringArray, “,”) |
| The same with | [array] filter(testArray, predicate) |
| Function assembled array exist only for function argument grouping. | You can find it only through manual texting in simple array inputs. |
ArgumentType
- type of mapper functions. Has the next types:
Type | Description | Example |
---|---|---|
| Type that represents predicate (some condition) value. | item.id == 0 |
| Type that represents argument value as a reference to node. | testConstant as a name of node that exist in source tree. |