dielines 0.8.0 → 0.9.0
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/LICENSE +7 -0
- package/dist/dielines.js +4080 -2894
- package/dist/dielines.js.map +1 -1
- package/dist/dielines.umd.cjs +14 -14
- package/dist/dielines.umd.cjs.map +1 -1
- package/dist/examples/motorGearPieces.d.ts +7 -0
- package/dist/src/Dieline.d.ts +2 -2
- package/dist/src/drawFlaps.d.ts +4 -4
- package/package.json +4 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dieline } from '../src/main.js';
|
|
2
|
+
export declare function toothedGear(outerRadius: number, toothDepth: number, teethCount?: number, mode?: string): Dieline;
|
|
3
|
+
export declare function teethStrip(toothWidth: number, toothHeight: number, toothDepth: number, teethCount: number): Dieline;
|
|
4
|
+
export declare function circleWithPasteFlaps(radius: number, flapHeight: number, flapWidth: number): Dieline;
|
|
5
|
+
export declare function smallPasteFlapsStrip(width: number, height: number, flapHeight?: number, flapWidth?: number): Dieline;
|
|
6
|
+
export declare function triangularFlap(partWidth: number, height: number, foldHeight: number): Dieline;
|
|
7
|
+
export declare function starExtrusionWithFlaps(extrusionDepth: any, sideLength: any, sides: any, flapHeight: any): Dieline;
|
package/dist/src/Dieline.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class Dieline extends Transformable<Dieline> {
|
|
|
10
10
|
foldLinesBackwards?: Stroke[];
|
|
11
11
|
foldLinesForwards?: Stroke[];
|
|
12
12
|
});
|
|
13
|
-
get foldLines():
|
|
13
|
+
get foldLines(): Stroke[];
|
|
14
14
|
clone(): Dieline;
|
|
15
15
|
addCutLine(cut: Strand): this;
|
|
16
16
|
addFoldLine(fold: Strand, direction?: "forwards" | "backwards"): void;
|
|
@@ -19,5 +19,5 @@ export declare class Dieline extends Transformable<Dieline> {
|
|
|
19
19
|
cutShape(shape: Diagram): this;
|
|
20
20
|
eraseFolds(shape: Diagram): void;
|
|
21
21
|
transform(matrix: TransformationMatrix): Dieline;
|
|
22
|
-
asSVG():
|
|
22
|
+
asSVG(): string;
|
|
23
23
|
}
|
package/dist/src/drawFlaps.d.ts
CHANGED
|
@@ -14,10 +14,10 @@ export type VerticalFlapTopOptions = HorizontalFlapOptions & {
|
|
|
14
14
|
topContractionMode?: FlapContractionMode;
|
|
15
15
|
bottomContractionMode?: FlapContractionMode;
|
|
16
16
|
};
|
|
17
|
-
export declare function topFlap(width: number, height: number, options?: HorizontalFlapOptions):
|
|
18
|
-
export declare function bottomFlap(width: number, height: number, options?: HorizontalFlapOptions):
|
|
19
|
-
export declare function leftFlap(width: number, height: number, { contractionTop, contractionBottom, topContractionMode, bottomContractionMode, ...options }?: VerticalFlapTopOptions):
|
|
20
|
-
export declare function rightFlap(width: number, height: number, options?: VerticalFlapTopOptions):
|
|
17
|
+
export declare function topFlap(width: number, height: number, options?: HorizontalFlapOptions): import('pantograph2d').Diagram;
|
|
18
|
+
export declare function bottomFlap(width: number, height: number, options?: HorizontalFlapOptions): import('pantograph2d').Diagram;
|
|
19
|
+
export declare function leftFlap(width: number, height: number, { contractionTop, contractionBottom, topContractionMode, bottomContractionMode, ...options }?: VerticalFlapTopOptions): import('pantograph2d').Diagram;
|
|
20
|
+
export declare function rightFlap(width: number, height: number, options?: VerticalFlapTopOptions): import('pantograph2d').Diagram;
|
|
21
21
|
export declare const drawFlaps: {
|
|
22
22
|
right: typeof rightFlap;
|
|
23
23
|
left: typeof leftFlap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dielines",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Create dielines with pantograph APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"author": "Steve Genoud <steve@sgenoud.com>",
|
|
13
13
|
"homepage": "https://github.com/sgenoud/pantograph#readme",
|
|
14
|
-
"license": "
|
|
14
|
+
"license": "MIT",
|
|
15
15
|
"main": "lib/dielines.js",
|
|
16
16
|
"directories": {
|
|
17
17
|
"lib": "lib",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"url": "https://github.com/sgenoud/pantograph/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"pantograph2d": "^0.
|
|
36
|
+
"pantograph2d": "^0.9.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"vite": "^5.4.10",
|
|
45
45
|
"vite-plugin-dts": "^4.3.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "ec23efee0bc0f6058b55fad89b4424faafad0e1e"
|
|
48
48
|
}
|