@fraczled/sdk 1.16.0 → 1.17.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.
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-CzB_EwwQ.js";
1
+ import { c as Da, _ as Va, g as il } from "./index-Ct4AiWol.js";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/index.d.ts CHANGED
@@ -81,6 +81,21 @@ export type QRCornerDotType = 'square' | 'dot';
81
81
 
82
82
  export type CornerRadius = number | { tl: number; tr: number; bl: number; br: number };
83
83
 
84
+ export type NormalizedCrop = {
85
+ x: number;
86
+ y: number;
87
+ width: number;
88
+ height: number;
89
+ };
90
+
91
+ export type LegacyCrop = {
92
+ x: number;
93
+ y: number;
94
+ scale: number;
95
+ };
96
+
97
+ export type CropState = NormalizedCrop | LegacyCrop;
98
+
84
99
  export interface Point {
85
100
  x: number;
86
101
  y: number;
@@ -146,11 +161,7 @@ export interface CanvasElement {
146
161
  textStrokeStyle?: 'round' | 'flat';
147
162
  cornerRadius?: CornerRadius;
148
163
  clipShape?: string;
149
- crop?: {
150
- x: number;
151
- y: number;
152
- scale: number;
153
- };
164
+ crop?: CropState;
154
165
  qrMargin?: number;
155
166
  qrCorrectionLevel?: 'L' | 'M' | 'Q' | 'H';
156
167
  qrDotsType?: QRDotsType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraczled/sdk",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Fraczled Design Studio SDK - Embed a powerful design editor in your application",
5
5
  "scripts": {
6
6
  "build": "vite build --config ../vite.sdk.config.ts && vite build --config ../vite.sdk.umd.config.ts",