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(): number
bounds
readonly
from Geometry2d
get bounds(): Box
center
readonly
from Geometry2d
get center(): Vec
children
children: Geometry2d[]
debugColor
optional
from Geometry2d
debugColor?: string
ignore
optional
from Geometry2d
ignore?: boolean
ignoredChildren
ignoredChildren: Geometry2d[]
isClosed
from Geometry2d
isClosed: boolean
isFilled
from Geometry2d
isFilled: boolean
isLabel
from Geometry2d
isLabel: boolean
length
readonly
from Geometry2d
get length(): number
vertices
readonly
from Geometry2d
get vertices(): Vec[]
Methods
distanceToLineSegment()
from Geometry2d
Parameters
Returns
number
distanceToPoint()
distanceToPoint(point: Vec, hitInside?: boolean): number
Parameters
Name | Description |
---|---|
| |
|
|
Returns
number
getArea()
getArea(): number
getBounds()
from Geometry2d
getBounds(): Box
getLength()
getLength(): number
getSvgPathData()
getSvgPathData(): string
getVertices()
getVertices(): Vec[]
hitTestLineSegment()
Parameters
Returns
boolean
hitTestPoint()
hitTestPoint(point: Vec, margin: number, hitInside: boolean): boolean
Parameters
Name | Description |
---|---|
| |
|
|
|
|
Returns
boolean
isPointInBounds()
from Geometry2d
isPointInBounds(point: Vec, margin?: number): boolean
Parameters
Name | Description |
---|---|
| |
|
|
Returns
boolean
nearestPoint()
Parameters
Name | Description |
---|---|
|
Returns
nearestPointOnLineSegment()
from Geometry2d
Parameters
Returns
toSimpleSvgPath()
toSimpleSvgPath(): string
Prev
Geometry2dNext
GroupShapeUtil