replicad-pantograph 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.d.ts +8 -0
- package/dist/es/replicad-pantograph.js +791 -423
- package/dist/es/replicad-pantograph.js.map +1 -1
- package/dist/studio/replicad-pantograph.js +791 -423
- package/package.json +3 -3
package/dist/es/index.d.ts
CHANGED
|
@@ -42,4 +42,12 @@ declare class ReDrawingPen extends DrawingPen {
|
|
|
42
42
|
closeWithMirror(): Drawing;
|
|
43
43
|
}
|
|
44
44
|
declare function redraw(p?: Point2D): ReDrawingPen;
|
|
45
|
+
export declare function wrapDrawing<TThis, TArgs extends any[]>(fn: (this: TThis, ...args: TArgs) => Diagram): (this: TThis, ...args: TArgs) => Drawing;
|
|
46
|
+
export declare const drawCircle: (this: unknown, radius: number) => Drawing;
|
|
47
|
+
export declare const drawRect: (this: unknown, width: number, height: number, r?: number | {
|
|
48
|
+
rx?: number;
|
|
49
|
+
ry?: number;
|
|
50
|
+
} | undefined) => Drawing;
|
|
51
|
+
export declare const drawEllipse: (this: unknown, rx: number, ry: number) => Drawing;
|
|
52
|
+
export declare const drawPolysides: (this: unknown, radius: number, sidesCount: number, sagitta?: number | undefined) => Drawing;
|
|
45
53
|
export { sketchOnPlane, initStudioIntegration, drawShape, pantograph, Drawing, ReDrawingPen, redraw, };
|