Group2d
See source codeTable of contents
- area
- bounds
- center
- children
- debugColor
- ignore
- ignoredChildren
- isClosed
- isFilled
- isInternal
- isLabel
- length
- vertices
- Properties
- Methods
- distanceToLineSegment
- distanceToPoint
- getArea
- getBounds
- getLength
- getSvgPathData
- getVertices
- hitTestLineSegment
- hitTestPoint
- interpolateAlongEdge
- intersectCircle
- intersectLineSegment
- intersectPolygon
- intersectPolyline
- isExcludedByFilter
- isPointInBounds
- nearestPoint
- nearestPointOnLineSegment
- toSimpleSvgPath
- transform
- uninterpolateAlongEdge
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: booleanisInternal
from Geometry2d
isInternal: booleanisLabel
from Geometry2d
isLabel: booleanlength
readonly
from Geometry2d
get length(): numbervertices
readonly
from Geometry2d
get vertices(): Vec[]Methods
distanceToLineSegment()
from Geometry2d
distanceToLineSegment(
A: VecLike,
B: VecLike,
filters?: Geometry2dFilters
): numberParameters
| Name | Description |
|---|---|
| |
| |
|
Returns
numberdistanceToPoint()
distanceToPoint(
point: VecLike,
hitInside?: boolean,
filters?: Geometry2dFilters
): numberParameters
| Name | Description |
|---|---|
| |
| |
|
Returns
numbergetArea()
getArea(): numbergetBounds()
from Geometry2d
getBounds(): BoxgetLength()
getLength(filters?: Geometry2dFilters): numberParameters
| Name | Description |
|---|---|
|
Returns
numbergetSvgPathData()
getSvgPathData(): stringgetVertices()
getVertices(filters: Geometry2dFilters): Vec[]Parameters
| Name | Description |
|---|---|
|
Returns
Vec[]hitTestLineSegment()
hitTestLineSegment(
A: VecLike,
B: VecLike,
zoom: number,
filters?: Geometry2dFilters
): booleanParameters
| Name | Description |
|---|---|
| |
| |
| |
|
Returns
booleanhitTestPoint()
hitTestPoint(
point: VecLike,
margin: number,
hitInside: boolean,
filters?: Geometry2dFilters
): booleanParameters
| Name | Description |
|---|---|
| |
| |
| |
|
Returns
booleaninterpolateAlongEdge()
interpolateAlongEdge(t: number, filters?: Geometry2dFilters): VecParameters
| Name | Description |
|---|---|
| |
|
Returns
intersectCircle()
intersectCircle(
center: VecLike,
radius: number,
filters?: Geometry2dFilters
): VecLike[]Parameters
| Name | Description |
|---|---|
| |
| |
|
Returns
VecLike[]intersectLineSegment()
intersectLineSegment(
A: VecLike,
B: VecLike,
filters?: Geometry2dFilters
): VecLike[]Parameters
| Name | Description |
|---|---|
| |
| |
|
Returns
VecLike[]intersectPolygon()
intersectPolygon(polygon: VecLike[], filters?: Geometry2dFilters): VecLike[]Parameters
| Name | Description |
|---|---|
| |
|
Returns
VecLike[]intersectPolyline()
intersectPolyline(polyline: VecLike[], filters?: Geometry2dFilters): VecLike[]Parameters
| Name | Description |
|---|---|
| |
|
Returns
VecLike[]isExcludedByFilter()
from Geometry2d
isExcludedByFilter(filters?: Geometry2dFilters): booleanParameters
| Name | Description |
|---|---|
|
Returns
booleanisPointInBounds()
from Geometry2d
isPointInBounds(point: VecLike, margin?: number): booleanParameters
| Name | Description |
|---|---|
| |
| |
Returns
booleannearestPoint()
nearestPoint(point: VecLike, filters?: Geometry2dFilters): VecParameters
| Name | Description |
|---|---|
| |
|
Returns
nearestPointOnLineSegment()
from Geometry2d
Deprecated: Iterate the vertices instead.
Parameters
Returns
toSimpleSvgPath()
toSimpleSvgPath(): stringtransform()
transform(transform: Mat): Geometry2dParameters
| Name | Description |
|---|---|
|
Returns
uninterpolateAlongEdge()
uninterpolateAlongEdge(point: VecLike, filters?: Geometry2dFilters): numberParameters
| Name | Description |
|---|---|
| |
|
Returns
numberPrev
Geometry2dNext
GroupShapeUtil