Skip to main content

Class: Drawing

Implements

Constructors

constructor

new Drawing(innerShape?)

Parameters

NameTypeDefault value
innerShapeShape2Dnull

Defined in

draw.ts:29

Properties

innerShape

Private innerShape: Shape2D

Defined in

draw.ts:27

Accessors

boundingBox

get boundingBox(): BoundingBox2d

Returns

BoundingBox2d

Implementation of

DrawingInterface.boundingBox

Defined in

draw.ts:37

Methods

clone

clone(): Drawing

Returns

Drawing

Implementation of

DrawingInterface.clone

Defined in

draw.ts:33


cut

cut(other): Drawing

Parameters

NameType
otherDrawing

Returns

Drawing

Defined in

draw.ts:82


fuse

fuse(other): Drawing

Parameters

NameType
otherDrawing

Returns

Drawing

Defined in

draw.ts:86


mirror

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

Parameters

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

Returns

Drawing

Implementation of

DrawingInterface.mirror

Defined in

draw.ts:55


rotate

rotate(angle, center): Drawing

Parameters

NameType
anglenumber
centerPoint2D

Returns

Drawing

Implementation of

DrawingInterface.rotate

Defined in

draw.ts:46


sketchOnFace

sketchOnFace(face, scaleMode): Sketches | SketchInterface

Parameters

NameType
faceFace
scaleModeScaleMode

Returns

Sketches | SketchInterface

Implementation of

DrawingInterface.sketchOnFace

Defined in

draw.ts:77


sketchOnPlane

sketchOnPlane(inputPlane): Sketches | SketchInterface

Parameters

NameType
inputPlanePlane

Returns

Sketches | SketchInterface

Implementation of

DrawingInterface.sketchOnPlane

Defined in

draw.ts:64

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

Parameters

NameType
inputPlane?PlaneName
origin?number | Point

Returns

Sketches | SketchInterface

Implementation of

DrawingInterface.sketchOnPlane

Defined in

draw.ts:65


stretch

stretch(ratio, direction, origin): Drawing

Parameters

NameType
rationumber
directionPoint2D
originPoint2D

Returns

Drawing

Implementation of

DrawingInterface.stretch

Defined in

draw.ts:41


toSVG

toSVG(margin): string

Parameters

NameType
marginnumber

Returns

string

Implementation of

DrawingInterface.toSVG

Defined in

draw.ts:90


toSVGPaths

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

Returns

string[] | string[][]

Implementation of

DrawingInterface.toSVGPaths

Defined in

draw.ts:98


toSVGViewBox

toSVGViewBox(margin?): string

Parameters

NameTypeDefault value
marginnumber1

Returns

string

Implementation of

DrawingInterface.toSVGViewBox

Defined in

draw.ts:94


translate

translate(xDist, yDist): Drawing

Parameters

NameType
xDistnumber
yDistnumber

Returns

Drawing

Implementation of

DrawingInterface.translate

Defined in

draw.ts:50