dielines 0.7.0 → 0.8.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.
@@ -0,0 +1,3 @@
1
+ import { Dieline } from '../src/Dieline.js';
2
+ export declare function basicRectangularBody(sectionWidth: number, height: number, sectionDepth: number, pasteFlapHeight: number): Dieline;
3
+ export declare function rectangularBodyWithEndTabs(sectionWidth: number, height: number, sectionDepth: number, pasteFlapHeight: number, endTabHeight: number): Dieline;
@@ -0,0 +1,4 @@
1
+ import { Dieline } from '../src/main';
2
+ export declare function noGlueTray(width: number, height: number, depth: number, { paperThickness }?: {
3
+ paperThickness?: number | undefined;
4
+ }): Dieline;
@@ -1,4 +1,4 @@
1
- import { Transformable, Diagram, Strand, TransformationMatrix, Stroke } from "pantograph2d/models";
1
+ import { Transformable, Diagram, Strand, TransformationMatrix, Stroke } from 'pantograph2d/models';
2
2
  export declare class Dieline extends Transformable<Dieline> {
3
3
  body: Diagram;
4
4
  cutLines: Stroke[];
@@ -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(): string;
22
+ asSVG(): any;
23
23
  }
@@ -1,5 +1,5 @@
1
- import { Diagram, Strand, Transformable, TransformationMatrix } from "pantograph2d/models";
2
- import { Dieline } from "./Dieline.js";
1
+ import { Diagram, Strand, Transformable, TransformationMatrix } from 'pantograph2d/models';
2
+ import { Dieline } from './Dieline.js';
3
3
  export declare class FoldLockBump extends Transformable<FoldLockBump> {
4
4
  cut: Strand;
5
5
  unfold: Diagram;
@@ -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): 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;
17
+ export declare function topFlap(width: number, height: number, options?: HorizontalFlapOptions): any;
18
+ export declare function bottomFlap(width: number, height: number, options?: HorizontalFlapOptions): any;
19
+ export declare function leftFlap(width: number, height: number, { contractionTop, contractionBottom, topContractionMode, bottomContractionMode, ...options }?: VerticalFlapTopOptions): any;
20
+ export declare function rightFlap(width: number, height: number, options?: VerticalFlapTopOptions): any;
21
21
  export declare const drawFlaps: {
22
22
  right: typeof rightFlap;
23
23
  left: typeof leftFlap;
@@ -1,5 +1,5 @@
1
- import { Vector } from "pantograph2d";
2
- import { Transformable, TransformationMatrix } from "pantograph2d/models";
1
+ import { Vector } from 'pantograph2d';
2
+ import { Transformable, TransformationMatrix } from 'pantograph2d/models';
3
3
  interface Clonable {
4
4
  clone(): this;
5
5
  }
@@ -0,0 +1,4 @@
1
+ export * from './Dieline.js';
2
+ export * from './drawFlaps.js';
3
+ export * from './FoldLockBump.js';
4
+ export * from './linearDistribution.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dielines",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Create dielines with pantograph APIs",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -33,16 +33,16 @@
33
33
  "url": "https://github.com/sgenoud/pantograph/issues"
34
34
  },
35
35
  "dependencies": {
36
- "pantograph2d": "^0.7.0"
36
+ "pantograph2d": "^0.8.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@typescript-eslint/eslint-plugin": "^5.55.0",
40
- "@typescript-eslint/parser": "^5.55.0",
41
- "eslint": "^8.36.0",
42
- "prettier": "^2.8.4",
43
- "typescript": "^5.0.2",
44
- "vite": "^4.1.4",
45
- "vite-plugin-dts": "^2.2.0"
39
+ "@typescript-eslint/eslint-plugin": "^8.12.2",
40
+ "@typescript-eslint/parser": "^8.12.2",
41
+ "eslint": "^9.13.0",
42
+ "prettier": "^3.3.3",
43
+ "typescript": "^5.6.3",
44
+ "vite": "^5.4.10",
45
+ "vite-plugin-dts": "^4.3.0"
46
46
  },
47
- "gitHead": "5505c6f393aaca0ce2966b82c79d15736158d4f3"
47
+ "gitHead": "0200850d2c53905501f843b24d1050286b2a0429"
48
48
  }
@@ -1,4 +0,0 @@
1
- export * from "./Dieline.js";
2
- export * from "./drawFlaps.js";
3
- export * from "./FoldLockBump.js";
4
- export * from "./linearDistribution.js";