@turnix-co/konva-editor 3.0.55 → 4.0.1

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 CHANGED
@@ -152,6 +152,7 @@ type Shape = {
152
152
  height: number;
153
153
  rotation: number;
154
154
  color?: string;
155
+ hasBorder?: boolean;
155
156
  locked?: boolean;
156
157
  link?: string;
157
158
  altText?: string;
@@ -288,6 +289,7 @@ type MultipleChoice = {
288
289
  correctIndex: number[];
289
290
  selectedIndices?: number[];
290
291
  isCorrect?: boolean;
292
+ attempts?: number;
291
293
  };
292
294
  };
293
295
  x: number;
@@ -296,6 +298,10 @@ type MultipleChoice = {
296
298
  x: number;
297
299
  y: number;
298
300
  };
301
+ optionDragDropPos?: Record<number, {
302
+ x: number;
303
+ y: number;
304
+ }>;
299
305
  scaleX?: number;
300
306
  scaleY?: number;
301
307
  width: number;
@@ -318,8 +324,9 @@ type TrueFalse = {
318
324
  responseOptions: {
319
325
  options: string[];
320
326
  correctAnswer: boolean;
321
- selectedResponse: boolean;
322
- isCorrect: boolean;
327
+ selectedResponse?: boolean;
328
+ isCorrect?: boolean;
329
+ attempts?: number;
323
330
  };
324
331
  };
325
332
  x: number;
@@ -328,6 +335,16 @@ type TrueFalse = {
328
335
  x: number;
329
336
  y: number;
330
337
  };
338
+ optionDragDropPos?: {
339
+ true?: {
340
+ x: number;
341
+ y: number;
342
+ };
343
+ false?: {
344
+ x: number;
345
+ y: number;
346
+ };
347
+ };
331
348
  width: number;
332
349
  height: number;
333
350
  rotation: number;
@@ -350,6 +367,7 @@ type ShortAnswer = {
350
367
  correctShortAnswer: string;
351
368
  userAnswer?: string;
352
369
  isCorrect?: boolean;
370
+ attempts?: number;
353
371
  };
354
372
  };
355
373
  x: number;
@@ -401,6 +419,7 @@ type FillInTheBlanks = {
401
419
  correctShortAnswer: string;
402
420
  userAnswer?: string;
403
421
  isCorrect?: boolean;
422
+ attempts?: number;
404
423
  };
405
424
  };
406
425
  x: number;