Type Definitions
axis
Defines axis
Type:
- 'x' | 'y'
controlsOpts
Defines rectangle constructor options
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
y |
Number | |||
width |
Number | |||
height |
Number | |||
type |
'vertical' | 'horizontal' | |||
isDraggable |
Boolean |
<optional> |
true | |
polygon |
SVGPolygon |
- Source:
coordinates
Defines coordinates object
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number |
- Source:
LineSegment
Type:
- Array
Properties:
Name | Type | Description |
---|---|---|
LineSegment[0 |
Point | |
LineSegment[1 |
Point |
Point
Type:
- Array
Properties:
Name | Type | Description |
---|---|---|
Point[0 |
Number | X coordinate |
Point[1 |
Number | Y coordinate |
polygonOpts
Defines polygon constructor options
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
points |
Array | |||
cssClass |
String |
<optional> |
'svg-polygon' | CSS classes separated by space |
isDraggable |
Boolean |
<optional> |
true |
- Source:
rectOpts
Defines rectangle constructor options
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x |
Number | |||
y |
Number | |||
width |
Number | |||
height |
Number | |||
cssClass |
String |
<optional> |
'svg-resizable-rectangle' | CSS classes separated by space |
isDraggable |
Boolean |
<optional> |
true |
rectOpts
Defines rectangle constructor options
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x |
Number | |||
y |
Number | |||
width |
Number | |||
height |
Number | |||
cssClass |
String |
<optional> |
'svg-bordered-rect' | CSS classes separated by space |
backgroundColor |
String |
<optional> |
'#00d' | |
isDraggable |
Boolean |
<optional> |
true |
- Source:
rectOpts
Defines rectangle constructor options
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x |
Number | |||
y |
Number | |||
width |
Number | |||
height |
Number | |||
isDraggable |
Boolean |
<optional> |
true |
- Source:
resolution
Defines resolution object
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
width |
Number | |
height |
Number |
- Source:
vertexOpts
Defines rectangle constructor options
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x |
Number | |||
y |
Number | |||
width |
Number | |||
height |
Number | |||
isDraggable |
Boolean |
<optional> |
true | |
polygon |
SVGPolygon |
- Source: