Group2d
Table of contents
Public class
Signature
class Group2d extends Geometry2d {}
References
Source
packages/editor/src/lib/primitives/geometry/Group2d.ts
Constructor
Public constructor
Constructs a new instance of the Group2d
class
Parameters
Name | Description |
---|---|
|
|
References
Properties
children
Public property
Signature
children: Geometry2d[]
References
ignoredChildren
Public property
Signature
ignoredChildren: Geometry2d[]
References
Methods
distanceToPoint()
Public method
Signature
distanceToPoint(point: Vec, hitInside?: boolean): number
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
number
References
getArea()
Public method
Signature
getArea(): number
getVertices()
Public method
Signature
getVertices(): Vec[]
References
hitTestLineSegment()
Public method
Signature
hitTestLineSegment(A: Vec, B: Vec, zoom: number): boolean
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
boolean
References
hitTestPoint()
Public method
Signature
hitTestPoint(point: Vec, margin: number, hitInside: boolean): boolean
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
boolean
References
nearestPoint()
Public method
Signature
nearestPoint(point: Vec): Vec
Parameters
Name | Description |
---|---|
|
|
Returns
Vec
References
toSimpleSvgPath()
Public method
Signature
toSimpleSvgPath(): string