PathContainment

Represents a path and the paths it contains.

A path is contained within another path if every point on it lies inside, and it does not cross the other path.

Constructors

PathContainment(path)PathContainment
path

Properties

.containedPathContainment[]

Paths contained within this containment.

.pathPath

The boundary of the containment.

.box(BoundingBox | undefined)

The tight bounding box of the containment boundary.

Methods inherited from Containment

.maximumDepth()number

Returns the maximum depth of this containment. Depth indicates how deeply nested the hierarchy is. If depth is zero, nothing is contained within this containment.

.allPaths()Path[]

Returns all paths contained within this containment and its contained, recursively.