@pooder/kit 3.0.0 → 3.1.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/CHANGELOG.md +13 -0
- package/dist/index.d.mts +7 -12
- package/dist/index.d.ts +7 -12
- package/dist/index.js +266 -210
- package/dist/index.mjs +266 -210
- package/package.json +2 -2
- package/src/dieline.ts +38 -103
- package/src/geometry.ts +90 -2
- package/src/hole.ts +215 -165
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -23,9 +23,13 @@ declare class BackgroundTool implements Extension {
|
|
|
23
23
|
private updateBackground;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
type PositionAnchor = "top-left" | "top-center" | "top-right" | "center-left" | "center" | "center-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
26
27
|
interface HoleData {
|
|
27
|
-
x
|
|
28
|
-
y
|
|
28
|
+
x?: number;
|
|
29
|
+
y?: number;
|
|
30
|
+
anchor?: PositionAnchor;
|
|
31
|
+
offsetX?: number;
|
|
32
|
+
offsetY?: number;
|
|
29
33
|
innerRadius: number;
|
|
30
34
|
outerRadius: number;
|
|
31
35
|
}
|
|
@@ -121,9 +125,6 @@ declare class HoleTool implements Extension {
|
|
|
121
125
|
metadata: {
|
|
122
126
|
name: string;
|
|
123
127
|
};
|
|
124
|
-
private innerRadius;
|
|
125
|
-
private outerRadius;
|
|
126
|
-
private style;
|
|
127
128
|
private holes;
|
|
128
129
|
private constraintTarget;
|
|
129
130
|
private canvasService?;
|
|
@@ -134,13 +135,7 @@ declare class HoleTool implements Extension {
|
|
|
134
135
|
private handleDielineChange;
|
|
135
136
|
private currentGeometry;
|
|
136
137
|
constructor(options?: Partial<{
|
|
137
|
-
|
|
138
|
-
outerRadius: number;
|
|
139
|
-
style: "solid" | "dashed";
|
|
140
|
-
holes: Array<{
|
|
141
|
-
x: number;
|
|
142
|
-
y: number;
|
|
143
|
-
}>;
|
|
138
|
+
holes: HoleData[];
|
|
144
139
|
constraintTarget: "original" | "bleed";
|
|
145
140
|
}>);
|
|
146
141
|
activate(context: ExtensionContext): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,9 +23,13 @@ declare class BackgroundTool implements Extension {
|
|
|
23
23
|
private updateBackground;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
type PositionAnchor = "top-left" | "top-center" | "top-right" | "center-left" | "center" | "center-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
26
27
|
interface HoleData {
|
|
27
|
-
x
|
|
28
|
-
y
|
|
28
|
+
x?: number;
|
|
29
|
+
y?: number;
|
|
30
|
+
anchor?: PositionAnchor;
|
|
31
|
+
offsetX?: number;
|
|
32
|
+
offsetY?: number;
|
|
29
33
|
innerRadius: number;
|
|
30
34
|
outerRadius: number;
|
|
31
35
|
}
|
|
@@ -121,9 +125,6 @@ declare class HoleTool implements Extension {
|
|
|
121
125
|
metadata: {
|
|
122
126
|
name: string;
|
|
123
127
|
};
|
|
124
|
-
private innerRadius;
|
|
125
|
-
private outerRadius;
|
|
126
|
-
private style;
|
|
127
128
|
private holes;
|
|
128
129
|
private constraintTarget;
|
|
129
130
|
private canvasService?;
|
|
@@ -134,13 +135,7 @@ declare class HoleTool implements Extension {
|
|
|
134
135
|
private handleDielineChange;
|
|
135
136
|
private currentGeometry;
|
|
136
137
|
constructor(options?: Partial<{
|
|
137
|
-
|
|
138
|
-
outerRadius: number;
|
|
139
|
-
style: "solid" | "dashed";
|
|
140
|
-
holes: Array<{
|
|
141
|
-
x: number;
|
|
142
|
-
y: number;
|
|
143
|
-
}>;
|
|
138
|
+
holes: HoleData[];
|
|
144
139
|
constraintTarget: "original" | "bleed";
|
|
145
140
|
}>);
|
|
146
141
|
activate(context: ExtensionContext): void;
|