@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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @pooder/kit
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - feat: anchor position
8
+
9
+ ## 3.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+ - @pooder/core@1.1.0
15
+
3
16
  ## 3.0.0
4
17
 
5
18
  ### Major Changes
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: number;
28
- y: number;
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
- innerRadius: number;
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: number;
28
- y: number;
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
- innerRadius: number;
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;