Class: View
InkModel.View(model, rootIDopt)
new View(model, rootIDopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
model | InkModel | |||
rootID | string.<GUID> | <optional> | auto generated GUID | Root node ID |
Properties:
Name | Type | Description |
---|---|---|
name | string | View name |
min length: 3 symbols max length: 64 symbols should start with alpha letter symbols between first and last letters could be alpha-numeric, -, _ last symbol should be alpha-numeric | ||
type | InkModel.InkTree.Type | Model type |
Extends
Methods
addPath(path, parentopt) → InkModel.InkPath
Shorthand of createElement + appendChild
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
path | Stroke|InkInput.SensorData | Reference, already available in model | ||
parent | InkModel.InkGroup | <optional> | root | Where to add path |
Returns:
InkPath node
Type
createElement(content, fragmentopt) → InkModel.InkPath
Creates path nodes for underlying view
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
content | Stroke|InkInput.SensorData | ||
fragment | PathBuilding.SplineFragment | <optional> | Content part descriptor |
Returns:
InkPath node
Type
createGroup(idopt) → InkModel.InkGroup
Creates group nodes for underlying view
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id | string.<GUID> | <optional> | auto generated GUID | InkGroup ID |
Returns:
InkGroup node
Type
extractKnowledge() → {Array.<Semantics.SemanticTriple>}
Extracts knowledge for particular view from model knowledge graph
Returns:
underlying knowledge
Type
Array.<Semantics.SemanticTriple>