Methods
create(points, style, _viewController) → {object}
- Source:
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. |
Returns:
The Konva group.
- Type
- object
getAnchors(shape, style) → {Array}
- Source:
Get anchors to update a roi shape.
Parameters:
Name | Type | Description |
---|---|---|
shape |
object | The associated shape. |
style |
object | The application style. |
Returns:
A list of anchors.
- Type
- Array
getGroupName() → {string}
- Source:
Get the name of the shape group.
Returns:
The name.
- Type
- string
getNPoints() → {number}
- Source:
Get the number of points needed to build the shape.
Returns:
The number of points.
- Type
- number
getTimeout() → {number}
- Source:
Get the timeout between point storage.
Returns:
The timeout in milliseconds.
- Type
- number
isFactoryGroup(group) → {boolean}
- Source:
Is the input group a group of this factory?
Parameters:
Name | Type | Description |
---|---|---|
group |
object | The group to test. |
Returns:
True if the group is from this fcatory.
- Type
- boolean
update(anchor, style, _viewController)
- Source:
Update a roi shape. Warning: do NOT use 'this' here, this method is passed as is to the change command.
Parameters:
Name | Type | Description |
---|---|---|
anchor |
object | The active anchor. |
style |
object | The app style. |
_viewController |
object | The associated view controller. |