kcl → types

Path

A path.

This schema accepts exactly one of the following:

A path that goes to a point.

Type: object

Properties

PropertyTypeDescriptionRequired
typeenum: ToPointNo
from[number, number]The from point.No
to[number, number]The to point.No
tagTagDeclaratorThe tag of the path.No
__geoMetaGeoMetaMetadata.No

A arc that is tangential to the last path segment that goes to a point

Type: object

Properties

PropertyTypeDescriptionRequired
typeenum: TangentialArcToNo
center[number, number]the arc's centerNo
ccwbooleanarc's directionNo
from[number, number]The from point.No
to[number, number]The to point.No
tagTagDeclaratorThe tag of the path.No
__geoMetaGeoMetaMetadata.No

A arc that is tangential to the last path segment

Type: object

Properties

PropertyTypeDescriptionRequired
typeenum: TangentialArcNo
center[number, number]the arc's centerNo
ccwbooleanarc's directionNo
from[number, number]The from point.No
to[number, number]The to point.No
tagTagDeclaratorThe tag of the path.No
__geoMetaGeoMetaMetadata.No

a complete arc

Type: object

Properties

PropertyTypeDescriptionRequired
typeenum: CircleNo
center[number, number]the arc's centerNo
radiusnumberthe arc's radiusNo
ccwbooleanarc's direction This is used to compute the tangential angle.No
from[number, number]The from point.No
to[number, number]The to point.No
tagTagDeclaratorThe tag of the path.No
__geoMetaGeoMetaMetadata.No

A path that is horizontal.

Type: object

Properties

PropertyTypeDescriptionRequired
typeenum: HorizontalNo
xnumberThe x coordinate.No
from[number, number]The from point.No
to[number, number]The to point.No
tagTagDeclaratorThe tag of the path.No
__geoMetaGeoMetaMetadata.No

An angled line to.

Type: object

Properties

PropertyTypeDescriptionRequired
typeenum: AngledLineToNo
xnumberThe x coordinate.No
ynumberThe y coordinate.No
from[number, number]The from point.No
to[number, number]The to point.No
tagTagDeclaratorThe tag of the path.No
__geoMetaGeoMetaMetadata.No

A base path.

Type: object

Properties

PropertyTypeDescriptionRequired
typeenum: BaseNo
from[number, number]The from point.No
to[number, number]The to point.No
tagTagDeclaratorThe tag of the path.No
__geoMetaGeoMetaMetadata.No

A circular arc, not necessarily tangential to the current point.

Type: object

Properties

PropertyTypeDescriptionRequired
typeenum: ArcNo
center[number, number]Center of the circle that this arc is drawn on.No
radiusnumberRadius of the circle that this arc is drawn on.No
ccwbooleanTrue if the arc is counterclockwise.No
from[number, number]The from point.No
to[number, number]The to point.No
tagTagDeclaratorThe tag of the path.No
__geoMetaGeoMetaMetadata.No