@fraczled/sdk 1.16.0 → 1.18.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-LSlUbxTM.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,8 @@ 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;
165
+ imageRotation?: number;
154
166
  qrMargin?: number;
155
167
  qrCorrectionLevel?: 'L' | 'M' | 'Q' | 'H';
156
168
  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.18.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",