Group2d
See source codeTable of contents
- area
- bounds
- boundsVertices
- center
- children
- debugColor
- excludeFromShapeBounds
- ignore
- ignoredChildren
- isClosed
- isEmptyLabel
- isFilled
- isInternal
- isLabel
- length
- vertices
- Properties
- Methods
- distanceToLineSegment
- distanceToPoint
- getArea
- getBounds
- getBoundsVertices
- getLength
- getSvgPathData
- getVertices
- hitTestLineSegment
- hitTestPoint
- interpolateAlongEdge
- intersectCircle
- intersectLineSegment
- intersectPolygon
- intersectPolyline
- isExcludedByFilter
- isPointInBounds
- nearestPoint
- overlapsPolygon
- 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(): BoxboundsVertices
readonly
from Geometry2d
get boundsVertices(): Vec[]center
readonly
from Geometry2d
get center(): Vecchildren
children: Geometry2d[]debugColor
optional
from Geometry2d
debugColor?: stringexcludeFromShapeBounds
from Geometry2d
excludeFromShapeBounds: booleanignore
optional
from Geometry2d
ignore?: booleanignoredChildren
ignoredChildren: Geometry2d[]isClosed
from Geometry2d
isClosed: booleanisEmptyLabel
from Geometry2d
isEmptyLabel: 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(): BoxgetBoundsVertices( )
getBoundsVertices(): Vec[]getLength( )
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
overlapsPolygon( )
overlapsPolygon(polygon: VecLike[]): booleanParameters
| Name | Description |
|---|---|
| |
Returns
booleantoSimpleSvgPath( )
toSimpleSvgPath(): stringtransform( )
transform(transform: Mat): Geometry2dParameters
| Name | Description |
|---|---|
|
Returns
uninterpolateAlongEdge( )
uninterpolateAlongEdge(point: VecLike, filters?: Geometry2dFilters): numberParameters
| Name | Description |
|---|---|
| |
|
Returns
numberPrev
Geometry2dNext
GroupShapeUtil