Methods
create(points, style, _viewController) → {object}
Create a roi shape to be displayed.
Parameters:
Name | Type | Description |
---|---|---|
points | Array | The points from which to extract the line. |
style | object | The drawing style. |
_viewController | object | The associated view controller. |
- Source
Returns:
The Konva group.
- Type:
- object
getAnchors(shape, style) → {Array}
Get anchors to update a roi shape.
Parameters:
Name | Type | Description |
---|---|---|
shape | object | The associated shape. |
style | object | The application style. |
- Source
Returns:
A list of anchors.
- Type:
- Array
getGroupName() → {string}
Get the name of the shape group.
- Source
Returns:
The name.
- Type:
- string
getNPoints() → {number|undefined}
Get the number of points needed to build the shape.
- Source
Returns:
The number of points.
- Type:
- number |
undefined
getTimeout() → {number}
Get the timeout between point storage.
- Source
Returns:
The timeout in milliseconds.
- Type:
- number
isFactoryGroup(group) → {boolean}
Is the input group a group of this factory?
Parameters:
Name | Type | Description |
---|---|---|
group | object | The group to test. |
- Source
Returns:
True if the group is from this fcatory.
- Type:
- boolean
update(anchor, style, _viewController)
Update a roi shape.
Parameters:
Name | Type | Description |
---|---|---|
anchor | object | The active anchor. |
style | object | The app style. |
_viewController | object | The associated view controller. |
- Source