Skip to main content

Class: Blueprints

Implements

Constructors

constructor

new Blueprints(blueprints)

Parameters

NameType
blueprints(Blueprint | CompoundBlueprint)[]

Defined in

blueprints/Blueprints.ts:17

Properties

blueprints

blueprints: (Blueprint | CompoundBlueprint)[]

Defined in

blueprints/Blueprints.ts:15

Accessors

boundingBox

get boundingBox(): BoundingBox2d

Returns

BoundingBox2d

Implementation of

DrawingInterface.boundingBox

Defined in

blueprints/Blueprints.ts:26

Methods

clone

clone(): Blueprints

Returns

Blueprints

Implementation of

DrawingInterface.clone

Defined in

blueprints/Blueprints.ts:22


mirror

mirror(centerOrDirection, origin?, mode?): Blueprints

Parameters

NameType
centerOrDirectionPoint2D
origin?Point2D
mode?"center" | "plane"

Returns

Blueprints

Implementation of

DrawingInterface.mirror

Defined in

blueprints/Blueprints.ts:60


rotate

rotate(angle, center): Blueprints

Parameters

NameType
anglenumber
centerPoint2D

Returns

Blueprints

Implementation of

DrawingInterface.rotate

Defined in

blueprints/Blueprints.ts:41


scale

scale(scaleFactor, center?): Blueprints

Parameters

NameType
scaleFactornumber
center?Point2D

Returns

Blueprints

Defined in

blueprints/Blueprints.ts:47


sketchOnFace

sketchOnFace(face, scaleMode?): Sketches

Parameters

NameType
faceFace
scaleMode?ScaleMode

Returns

Sketches

Implementation of

DrawingInterface.sketchOnFace

Defined in

blueprints/Blueprints.ts:76


sketchOnPlane

sketchOnPlane(plane?, origin?): Sketches

Parameters

NameType
plane?Plane | PlaneName
origin?number | Point

Returns

Sketches

Implementation of

DrawingInterface.sketchOnPlane

Defined in

blueprints/Blueprints.ts:70


stretch

stretch(ratio, direction, origin): Blueprints

Parameters

NameType
rationumber
directionPoint2D
originPoint2D

Returns

Blueprints

Implementation of

DrawingInterface.stretch

Defined in

blueprints/Blueprints.ts:35


toSVG

toSVG(margin?): string

Parameters

NameTypeDefault value
marginnumber1

Returns

string

Implementation of

DrawingInterface.toSVG

Defined in

blueprints/Blueprints.ts:90


toSVGPaths

toSVGPaths(): string[][]

Returns

string[][]

Implementation of

DrawingInterface.toSVGPaths

Defined in

blueprints/Blueprints.ts:86


toSVGViewBox

toSVGViewBox(margin?): string

Parameters

NameTypeDefault value
marginnumber1

Returns

string

Implementation of

DrawingInterface.toSVGViewBox

Defined in

blueprints/Blueprints.ts:82


translate

translate(xDist, yDist): Blueprints

Parameters

NameType
xDistnumber
yDistnumber

Returns

Blueprints

Implementation of

DrawingInterface.translate

Defined in

blueprints/Blueprints.ts:54