Skip to main content

Class: CompoundBlueprint

Implements

Constructors

constructor

new CompoundBlueprint(blueprints)

Parameters

NameType
blueprintsBlueprint[]

Defined in

blueprints/CompoundBlueprint.ts:17

Properties

blueprints

blueprints: Blueprint[]

Defined in

blueprints/CompoundBlueprint.ts:14

Accessors

boundingBox

get boundingBox(): BoundingBox2d

Returns

BoundingBox2d

Implementation of

DrawingInterface.boundingBox

Defined in

blueprints/CompoundBlueprint.ts:26

Methods

clone

clone(): CompoundBlueprint

Returns

CompoundBlueprint

Implementation of

DrawingInterface.clone

Defined in

blueprints/CompoundBlueprint.ts:22


mirror

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

Parameters

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

Returns

CompoundBlueprint

Implementation of

DrawingInterface.mirror

Defined in

blueprints/CompoundBlueprint.ts:64


rotate

rotate(angle, center): CompoundBlueprint

Parameters

NameType
anglenumber
centerPoint2D

Returns

CompoundBlueprint

Implementation of

DrawingInterface.rotate

Defined in

blueprints/CompoundBlueprint.ts:45


scale

scale(scaleFactor, center): CompoundBlueprint

Parameters

NameType
scaleFactornumber
centerPoint2D

Returns

CompoundBlueprint

Defined in

blueprints/CompoundBlueprint.ts:51


sketchOnFace

sketchOnFace(face, scaleMode?): CompoundSketch

Parameters

NameType
faceFace
scaleMode?ScaleMode

Returns

CompoundSketch

Implementation of

DrawingInterface.sketchOnFace

Defined in

blueprints/CompoundBlueprint.ts:85


sketchOnPlane

sketchOnPlane(plane?, origin?): CompoundSketch

Parameters

NameType
plane?Plane | PlaneName
origin?number | Point

Returns

CompoundSketch

Implementation of

DrawingInterface.sketchOnPlane

Defined in

blueprints/CompoundBlueprint.ts:74


stretch

stretch(ratio, direction, origin): CompoundBlueprint

Parameters

NameType
rationumber
directionPoint2D
originPoint2D

Returns

CompoundBlueprint

Implementation of

DrawingInterface.stretch

Defined in

blueprints/CompoundBlueprint.ts:35


toSVG

toSVG(margin?): string

Parameters

NameTypeDefault value
marginnumber1

Returns

string

Implementation of

DrawingInterface.toSVG

Defined in

blueprints/CompoundBlueprint.ts:105


toSVGGroup

toSVGGroup(): string

Returns

string

Defined in

blueprints/CompoundBlueprint.ts:101


toSVGPaths

toSVGPaths(): string[]

Returns

string[]

Implementation of

DrawingInterface.toSVGPaths

Defined in

blueprints/CompoundBlueprint.ts:97


toSVGViewBox

toSVGViewBox(margin?): string

Parameters

NameTypeDefault value
marginnumber1

Returns

string

Implementation of

DrawingInterface.toSVGViewBox

Defined in

blueprints/CompoundBlueprint.ts:93


translate

translate(xDist, yDist): CompoundBlueprint

Parameters

NameType
xDistnumber
yDistnumber

Returns

CompoundBlueprint

Implementation of

DrawingInterface.translate

Defined in

blueprints/CompoundBlueprint.ts:58