Group2d
See source codeTable of contents
Extends Geometry2d.
class Group2d extends Geometry2d {}Constructor
Constructs a new instance of the Group2d class
Parameters
| Name | Description |
|---|---|
| |
Properties
area
readonly
from Geometry2d
get area(): numberbounds
readonly
from Geometry2d
get bounds(): Boxcenter
readonly
from Geometry2d
get center(): Vecchildren
children: Geometry2d[]debugColor
optional
from Geometry2d
debugColor?: stringignore
optional
from Geometry2d
ignore?: booleanignoredChildren
ignoredChildren: Geometry2d[]isClosed
from Geometry2d
isClosed: booleanisFilled
from Geometry2d
isFilled: booleanisLabel
from Geometry2d
isLabel: booleanlength
readonly
from Geometry2d
get length(): numbervertices
readonly
from Geometry2d
get vertices(): Vec[]Methods
distanceToLineSegment()
from Geometry2d
Parameters
Returns
numberdistanceToPoint()
distanceToPoint(point: Vec, hitInside?: boolean): numberParameters
| Name | Description |
|---|---|
| |
| |
Returns
numbergetArea()
getArea(): numbergetBounds()
from Geometry2d
getBounds(): BoxgetLength()
getLength(): numbergetSvgPathData()
getSvgPathData(): stringgetVertices()
getVertices(): Vec[]hitTestLineSegment()
Parameters
Returns
booleanhitTestPoint()
hitTestPoint(point: Vec, margin: number, hitInside: boolean): booleanParameters
| Name | Description |
|---|---|
| |
| |
| |
Returns
booleanisPointInBounds()
from Geometry2d
isPointInBounds(point: Vec, margin?: number): booleanParameters
| Name | Description |
|---|---|
| |
| |
Returns
booleannearestPoint()
Parameters
| Name | Description |
|---|---|
|
Returns
nearestPointOnLineSegment()
from Geometry2d
Parameters
Returns
toSimpleSvgPath()
toSimpleSvgPath(): stringPrev
Geometry2dNext
GroupShapeUtil