Skip to main content

Class: Blueprint

Implements​

Constructors​

constructor​

β€’ new Blueprint(curves)

Parameters​

NameType
curvesCurve2D[]

Defined in​

blueprints/Blueprint.ts:43

Properties​

curves​

β€’ curves: Curve2D[]

Defined in​

blueprints/Blueprint.ts:41

Accessors​

boundingBox​

β€’ get boundingBox(): BoundingBox2d

Returns​

BoundingBox2d

Implementation of​

DrawingInterface.boundingBox

Defined in​

blueprints/Blueprint.ts:57


firstPoint​

β€’ get firstPoint(): Point2D

Returns​

Point2D

Defined in​

blueprints/Blueprint.ts:191


lastPoint​

β€’ get lastPoint(): Point2D

Returns​

Point2D

Defined in​

blueprints/Blueprint.ts:195

Methods​

clone​

β–Έ clone(): Blueprint

Returns​

Blueprint

Implementation of​

DrawingInterface.clone

Defined in​

blueprints/Blueprint.ts:53


delete​

β–Έ delete(): void

Returns​

void

Defined in​

blueprints/Blueprint.ts:48


intersects​

β–Έ intersects(other): boolean

Parameters​

NameType
otherBlueprint

Returns​

boolean

Defined in​

blueprints/Blueprint.ts:225


isClosed​

β–Έ isClosed(): boolean

Returns​

boolean

Defined in​

blueprints/Blueprint.ts:221


isInside​

β–Έ isInside(point): boolean

Parameters​

NameType
pointPoint2D

Returns​

boolean

Defined in​

blueprints/Blueprint.ts:199


mirror​

β–Έ mirror(centerOrDirection, origin?, mode?): Blueprint

Parameters​

NameTypeDefault value
centerOrDirectionPoint2Dundefined
originPoint2Dundefined
mode"center" | "plane""center"

Returns​

Blueprint

Implementation of​

DrawingInterface.mirror

Defined in​

blueprints/Blueprint.ts:102


rotate​

β–Έ rotate(angle, center): Blueprint

Parameters​

NameType
anglenumber
centerPoint2D

Returns​

Blueprint

Implementation of​

DrawingInterface.rotate

Defined in​

blueprints/Blueprint.ts:83


scale​

β–Έ scale(scaleFactor, center?): Blueprint

Parameters​

NameType
scaleFactornumber
center?Point2D

Returns​

Blueprint

Defined in​

blueprints/Blueprint.ts:75


sketchOnFace​

β–Έ sketchOnFace(face, scaleMode?): Sketch

Parameters​

NameType
faceFace
scaleMode?ScaleMode

Returns​

Sketch

Implementation of​

DrawingInterface.sketchOnFace

Defined in​

blueprints/Blueprint.ts:133


sketchOnPlane​

β–Έ sketchOnPlane(inputPlane?, origin?): Sketch

Parameters​

NameType
inputPlane?Plane | PlaneName
origin?number | Point

Returns​

Sketch

Implementation of​

DrawingInterface.sketchOnPlane

Defined in​

blueprints/Blueprint.ts:115


stretch​

β–Έ stretch(ratio, direction, origin?): Blueprint

Parameters​

NameType
rationumber
directionPoint2D
originPoint2D

Returns​

Blueprint

Implementation of​

DrawingInterface.stretch

Defined in​

blueprints/Blueprint.ts:64


toSVG​

β–Έ toSVG(margin?): string

Parameters​

NameTypeDefault value
marginnumber1

Returns​

string

Implementation of​

DrawingInterface.toSVG

Defined in​

blueprints/Blueprint.ts:187


toSVGPath​

β–Έ toSVGPath(): string

Returns​

string

Defined in​

blueprints/Blueprint.ts:175


toSVGPathD​

β–Έ toSVGPathD(): string

Returns​

string

Defined in​

blueprints/Blueprint.ts:161


toSVGPaths​

β–Έ toSVGPaths(): string[]

Returns​

string[]

Implementation of​

DrawingInterface.toSVGPaths

Defined in​

blueprints/Blueprint.ts:183


toSVGViewBox​

β–Έ toSVGViewBox(margin?): string

Parameters​

NameTypeDefault value
marginnumber1

Returns​

string

Implementation of​

DrawingInterface.toSVGViewBox

Defined in​

blueprints/Blueprint.ts:179


translate​

β–Έ translate(xDist, yDist): Blueprint

Parameters​

NameType
xDistnumber
yDistnumber

Returns​

Blueprint

Implementation of​

DrawingInterface.translate

Defined in​

blueprints/Blueprint.ts:90

β–Έ translate(translationVector): Blueprint

Parameters​

NameType
translationVectorPoint2D

Returns​

Blueprint

Implementation of​

DrawingInterface.translate

Defined in​

blueprints/Blueprint.ts:91