Skip to main content

Interface: DrawingInterface

Implemented by

Properties

boundingBox

boundingBox: BoundingBox2d

Defined in

blueprints/lib.ts:136

Methods

clone

clone(): DrawingInterface

Returns

DrawingInterface

Defined in

blueprints/lib.ts:135


mirror

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

Parameters

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

Returns

DrawingInterface

Defined in

blueprints/lib.ts:147


rotate

rotate(angle, center): DrawingInterface

Parameters

NameType
anglenumber
centerPoint2D

Returns

DrawingInterface

Defined in

blueprints/lib.ts:139


sketchOnFace

sketchOnFace(face, scaleMode): Sketches | SketchInterface

Parameters

NameType
faceFace
scaleModeScaleMode

Returns

Sketches | SketchInterface

Defined in

blueprints/lib.ts:178


sketchOnPlane

sketchOnPlane(inputPlane): Sketches | SketchInterface

Parameters

NameType
inputPlanePlane

Returns

Sketches | SketchInterface

Defined in

blueprints/lib.ts:156

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

Parameters

NameType
inputPlane?PlaneName
origin?number | Point

Returns

Sketches | SketchInterface

Defined in

blueprints/lib.ts:157

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

Parameters

NameType
inputPlane?Plane | PlaneName
origin?number | Point

Returns

Sketches | SketchInterface

Defined in

blueprints/lib.ts:161


stretch

stretch(ratio, direction, origin): DrawingInterface

Parameters

NameType
rationumber
directionPoint2D
originPoint2D

Returns

DrawingInterface

Defined in

blueprints/lib.ts:137


toSVG

toSVG(margin): string

Parameters

NameType
marginnumber

Returns

string

Defined in

blueprints/lib.ts:183


toSVGPaths

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

Returns

string[] | string[][]

Defined in

blueprints/lib.ts:193


toSVGViewBox

toSVGViewBox(margin?): string

Parameters

NameType
margin?number

Returns

string

Defined in

blueprints/lib.ts:188


translate

translate(xDist, yDist): DrawingInterface

Parameters

NameType
xDistnumber
yDistnumber

Returns

DrawingInterface

Defined in

blueprints/lib.ts:140