Skip to main content

Interface: DrawingInterface

Implemented by

Properties

boundingBox

boundingBox: BoundingBox2d

Defined in

blueprints/lib.ts:138

Methods

clone

clone(): DrawingInterface

Returns

DrawingInterface

Defined in

blueprints/lib.ts:137


mirror

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

Parameters

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

Returns

DrawingInterface

Defined in

blueprints/lib.ts:151


rotate

rotate(angle, center): DrawingInterface

Parameters

NameType
anglenumber
centerPoint2D

Returns

DrawingInterface

Defined in

blueprints/lib.ts:141


sketchOnFace

sketchOnFace(face, scaleMode): Sketches | SketchInterface

Parameters

NameType
faceFace
scaleModeScaleMode

Returns

Sketches | SketchInterface

Defined in

blueprints/lib.ts:182


sketchOnPlane

sketchOnPlane(inputPlane): Sketches | SketchInterface

Parameters

NameType
inputPlanePlane

Returns

Sketches | SketchInterface

Defined in

blueprints/lib.ts:160

sketchOnPlane(inputPlane?, origin?): Sketches | SketchInterface

Parameters

NameType
inputPlane?PlaneName
origin?number | Point

Returns

Sketches | SketchInterface

Defined in

blueprints/lib.ts:161

sketchOnPlane(inputPlane?, origin?): Sketches | SketchInterface

Parameters

NameType
inputPlane?Plane | PlaneName
origin?number | Point

Returns

Sketches | SketchInterface

Defined in

blueprints/lib.ts:165


stretch

stretch(ratio, direction, origin): DrawingInterface

Parameters

NameType
rationumber
directionPoint2D
originPoint2D

Returns

DrawingInterface

Defined in

blueprints/lib.ts:139


toSVG

toSVG(margin): string

Parameters

NameType
marginnumber

Returns

string

Defined in

blueprints/lib.ts:187


toSVGPaths

toSVGPaths(): string[] | string[][]

Returns

string[] | string[][]

Defined in

blueprints/lib.ts:197


toSVGViewBox

toSVGViewBox(margin?): string

Parameters

NameType
margin?number

Returns

string

Defined in

blueprints/lib.ts:192


translate

translate(xDist, yDist): DrawingInterface

Parameters

NameType
xDistnumber
yDistnumber

Returns

DrawingInterface

Defined in

blueprints/lib.ts:143

translate(translationVector): DrawingInterface

Parameters

NameType
translationVectorPoint2D

Returns

DrawingInterface

Defined in

blueprints/lib.ts:144