@turnix-co/konva-editor 3.0.56 → 4.0.2
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/dist/index.d.ts +26 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -240,6 +240,8 @@ type PhotoFrameElement = {
|
|
|
240
240
|
capturedImageUrl?: string;
|
|
241
241
|
x: number;
|
|
242
242
|
y: number;
|
|
243
|
+
scaleX?: number;
|
|
244
|
+
scaleY?: number;
|
|
243
245
|
width: number;
|
|
244
246
|
height: number;
|
|
245
247
|
rotation: number;
|
|
@@ -298,6 +300,10 @@ type MultipleChoice = {
|
|
|
298
300
|
x: number;
|
|
299
301
|
y: number;
|
|
300
302
|
};
|
|
303
|
+
optionDragDropPos?: Record<number, {
|
|
304
|
+
x: number;
|
|
305
|
+
y: number;
|
|
306
|
+
}>;
|
|
301
307
|
scaleX?: number;
|
|
302
308
|
scaleY?: number;
|
|
303
309
|
width: number;
|
|
@@ -320,17 +326,29 @@ type TrueFalse = {
|
|
|
320
326
|
responseOptions: {
|
|
321
327
|
options: string[];
|
|
322
328
|
correctAnswer: boolean;
|
|
323
|
-
selectedResponse
|
|
324
|
-
isCorrect
|
|
329
|
+
selectedResponse?: boolean;
|
|
330
|
+
isCorrect?: boolean;
|
|
325
331
|
attempts?: number;
|
|
326
332
|
};
|
|
327
333
|
};
|
|
328
334
|
x: number;
|
|
329
335
|
y: number;
|
|
336
|
+
scaleX?: number;
|
|
337
|
+
scaleY?: number;
|
|
330
338
|
dragDropPos?: {
|
|
331
339
|
x: number;
|
|
332
340
|
y: number;
|
|
333
341
|
};
|
|
342
|
+
optionDragDropPos?: {
|
|
343
|
+
true?: {
|
|
344
|
+
x: number;
|
|
345
|
+
y: number;
|
|
346
|
+
};
|
|
347
|
+
false?: {
|
|
348
|
+
x: number;
|
|
349
|
+
y: number;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
334
352
|
width: number;
|
|
335
353
|
height: number;
|
|
336
354
|
rotation: number;
|
|
@@ -358,6 +376,8 @@ type ShortAnswer = {
|
|
|
358
376
|
};
|
|
359
377
|
x: number;
|
|
360
378
|
y: number;
|
|
379
|
+
scaleX?: number;
|
|
380
|
+
scaleY?: number;
|
|
361
381
|
width: number;
|
|
362
382
|
height: number;
|
|
363
383
|
rotation: number;
|
|
@@ -383,6 +403,8 @@ type LongAnswer = {
|
|
|
383
403
|
};
|
|
384
404
|
x: number;
|
|
385
405
|
y: number;
|
|
406
|
+
scaleX?: number;
|
|
407
|
+
scaleY?: number;
|
|
386
408
|
width: number;
|
|
387
409
|
height: number;
|
|
388
410
|
rotation: number;
|
|
@@ -410,6 +432,8 @@ type FillInTheBlanks = {
|
|
|
410
432
|
};
|
|
411
433
|
x: number;
|
|
412
434
|
y: number;
|
|
435
|
+
scaleX?: number;
|
|
436
|
+
scaleY?: number;
|
|
413
437
|
width: number;
|
|
414
438
|
height: number;
|
|
415
439
|
rotation: number;
|