Interface: DrawingInterface
Defined in: blueprints/lib.ts:136
Properties
boundingBox
boundingBox: BoundingBox2d;
Defined in: blueprints/lib.ts:138
Methods
clone()
clone(): DrawingInterface;
Defined in: blueprints/lib.ts:137
Returns
DrawingInterface
mirror()
mirror(
   centerOrDirection, 
   origin?, 
   mode?): DrawingInterface;
Defined in: blueprints/lib.ts:151
Returns the mirror image of this drawing made with a single point (in center mode, the default, or a plane, (plane mode, with both direction and origin of the plane).
Parameters
centerOrDirection
origin?
mode?
"center" | "plane"
Returns
DrawingInterface
rotate()
rotate(angle, center): DrawingInterface;
Defined in: blueprints/lib.ts:141
Parameters
angle
number
center
Returns
DrawingInterface
sketchOnFace()
sketchOnFace(face, scaleMode): 
  | SketchInterface
  | Sketches;
Defined in: blueprints/lib.ts:182
Returns the sketched version of the drawing, on a face.
The scale mode corresponds to the way the coordinates of the drawing are interpreted match with the face:
- originaluses global coordinates (1mm in the drawing is 1mm on the face). This is the default, but currently supported only for planar and circular faces
- boundsnormalises the UV parameters on the face to [0,1] intervals.
- nativeuses the default UV parameters of opencascade
Parameters
face
scaleMode
Returns
sketchOnPlane()
Call Signature
sketchOnPlane(inputPlane): 
  | SketchInterface
  | Sketches;
Defined in: blueprints/lib.ts:160
Returns the sketched version of the drawing, on a plane
Parameters
inputPlane
Returns
Call Signature
sketchOnPlane(inputPlane?, origin?): 
  | SketchInterface
  | Sketches;
Defined in: blueprints/lib.ts:161
Parameters
inputPlane?
origin?
number | Point
Returns
Call Signature
sketchOnPlane(inputPlane?, origin?): 
  | SketchInterface
  | Sketches;
Defined in: blueprints/lib.ts:165
Parameters
inputPlane?
origin?
number | Point
Returns
stretch()
stretch(
   ratio, 
   direction, 
   origin): DrawingInterface;
Defined in: blueprints/lib.ts:139
Parameters
ratio
number
direction
origin
Returns
DrawingInterface
toSVG()
toSVG(margin): string;
Defined in: blueprints/lib.ts:187
Formats the drawing as an SVG image
Parameters
margin
number
Returns
string
toSVGPaths()
toSVGPaths(): string[] | string[][];
Defined in: blueprints/lib.ts:197
Formats the drawing as a list of SVG paths
Returns
string[] | string[][]
toSVGViewBox()
toSVGViewBox(margin?): string;
Defined in: blueprints/lib.ts:192
Returns the SVG viewbox that corresponds to this drawing
Parameters
margin?
number
Returns
string
translate()
Call Signature
translate(xDist, yDist): DrawingInterface;
Defined in: blueprints/lib.ts:143
Parameters
xDist
number
yDist
number
Returns
DrawingInterface
Call Signature
translate(translationVector): DrawingInterface;
Defined in: blueprints/lib.ts:144
Parameters
translationVector
Returns
DrawingInterface