microboard-temp 0.14.50 → 0.14.51

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.
@@ -44486,6 +44486,7 @@ class RichText extends BaseItem {
44486
44486
  });
44487
44487
  return {
44488
44488
  resizedMbr: res?.resizedMbr ?? null,
44489
+ translation: res?.translation ?? null,
44489
44490
  onPointerUpCb: res?.onPointerUpCb
44490
44491
  };
44491
44492
  }
@@ -65530,6 +65531,33 @@ class Sticker extends BaseItem {
65530
65531
  getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
65531
65532
  return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
65532
65533
  }
65534
+ handleTransform(params) {
65535
+ const {
65536
+ board,
65537
+ mbr,
65538
+ resizeType,
65539
+ oppositePoint,
65540
+ isHeight,
65541
+ isWidth,
65542
+ isShiftPressed,
65543
+ beginTimeStamp,
65544
+ followingComments,
65545
+ startMbr
65546
+ } = params;
65547
+ return transformShape({
65548
+ board,
65549
+ mbr,
65550
+ resizeType,
65551
+ oppositePoint,
65552
+ isHeight,
65553
+ isWidth,
65554
+ isShiftPressed,
65555
+ beginTimeStamp,
65556
+ followingComments,
65557
+ startMbr,
65558
+ single: this
65559
+ });
65560
+ }
65533
65561
  getRichText() {
65534
65562
  return this.text;
65535
65563
  }
@@ -68989,7 +69017,6 @@ class Drawing extends BaseItem {
68989
69017
  this.linkTo.apply(op);
68990
69018
  } else {
68991
69019
  super.apply(op);
68992
- return;
68993
69020
  }
68994
69021
  const hint = this.calculateUpdateHint(op);
68995
69022
  this.updateVisuals(op, hint);
package/dist/cjs/index.js CHANGED
@@ -44486,6 +44486,7 @@ class RichText extends BaseItem {
44486
44486
  });
44487
44487
  return {
44488
44488
  resizedMbr: res?.resizedMbr ?? null,
44489
+ translation: res?.translation ?? null,
44489
44490
  onPointerUpCb: res?.onPointerUpCb
44490
44491
  };
44491
44492
  }
@@ -65530,6 +65531,33 @@ class Sticker extends BaseItem {
65530
65531
  getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
65531
65532
  return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
65532
65533
  }
65534
+ handleTransform(params) {
65535
+ const {
65536
+ board,
65537
+ mbr,
65538
+ resizeType,
65539
+ oppositePoint,
65540
+ isHeight,
65541
+ isWidth,
65542
+ isShiftPressed,
65543
+ beginTimeStamp,
65544
+ followingComments,
65545
+ startMbr
65546
+ } = params;
65547
+ return transformShape({
65548
+ board,
65549
+ mbr,
65550
+ resizeType,
65551
+ oppositePoint,
65552
+ isHeight,
65553
+ isWidth,
65554
+ isShiftPressed,
65555
+ beginTimeStamp,
65556
+ followingComments,
65557
+ startMbr,
65558
+ single: this
65559
+ });
65560
+ }
65533
65561
  getRichText() {
65534
65562
  return this.text;
65535
65563
  }
@@ -68989,7 +69017,6 @@ class Drawing extends BaseItem {
68989
69017
  this.linkTo.apply(op);
68990
69018
  } else {
68991
69019
  super.apply(op);
68992
- return;
68993
69020
  }
68994
69021
  const hint = this.calculateUpdateHint(op);
68995
69022
  this.updateVisuals(op, hint);
package/dist/cjs/node.js CHANGED
@@ -47025,6 +47025,7 @@ class RichText extends BaseItem {
47025
47025
  });
47026
47026
  return {
47027
47027
  resizedMbr: res?.resizedMbr ?? null,
47028
+ translation: res?.translation ?? null,
47028
47029
  onPointerUpCb: res?.onPointerUpCb
47029
47030
  };
47030
47031
  }
@@ -68003,6 +68004,33 @@ class Sticker extends BaseItem {
68003
68004
  getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
68004
68005
  return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
68005
68006
  }
68007
+ handleTransform(params) {
68008
+ const {
68009
+ board,
68010
+ mbr,
68011
+ resizeType,
68012
+ oppositePoint,
68013
+ isHeight,
68014
+ isWidth,
68015
+ isShiftPressed,
68016
+ beginTimeStamp,
68017
+ followingComments,
68018
+ startMbr
68019
+ } = params;
68020
+ return transformShape({
68021
+ board,
68022
+ mbr,
68023
+ resizeType,
68024
+ oppositePoint,
68025
+ isHeight,
68026
+ isWidth,
68027
+ isShiftPressed,
68028
+ beginTimeStamp,
68029
+ followingComments,
68030
+ startMbr,
68031
+ single: this
68032
+ });
68033
+ }
68006
68034
  getRichText() {
68007
68035
  return this.text;
68008
68036
  }
@@ -71462,7 +71490,6 @@ class Drawing extends BaseItem {
71462
71490
  this.linkTo.apply(op);
71463
71491
  } else {
71464
71492
  super.apply(op);
71465
- return;
71466
71493
  }
71467
71494
  const hint = this.calculateUpdateHint(op);
71468
71495
  this.updateVisuals(op, hint);
@@ -44259,6 +44259,7 @@ class RichText extends BaseItem {
44259
44259
  });
44260
44260
  return {
44261
44261
  resizedMbr: res?.resizedMbr ?? null,
44262
+ translation: res?.translation ?? null,
44262
44263
  onPointerUpCb: res?.onPointerUpCb
44263
44264
  };
44264
44265
  }
@@ -65303,6 +65304,33 @@ class Sticker extends BaseItem {
65303
65304
  getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
65304
65305
  return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
65305
65306
  }
65307
+ handleTransform(params) {
65308
+ const {
65309
+ board,
65310
+ mbr,
65311
+ resizeType,
65312
+ oppositePoint,
65313
+ isHeight,
65314
+ isWidth,
65315
+ isShiftPressed,
65316
+ beginTimeStamp,
65317
+ followingComments,
65318
+ startMbr
65319
+ } = params;
65320
+ return transformShape({
65321
+ board,
65322
+ mbr,
65323
+ resizeType,
65324
+ oppositePoint,
65325
+ isHeight,
65326
+ isWidth,
65327
+ isShiftPressed,
65328
+ beginTimeStamp,
65329
+ followingComments,
65330
+ startMbr,
65331
+ single: this
65332
+ });
65333
+ }
65306
65334
  getRichText() {
65307
65335
  return this.text;
65308
65336
  }
@@ -68762,7 +68790,6 @@ class Drawing extends BaseItem {
68762
68790
  this.linkTo.apply(op);
68763
68791
  } else {
68764
68792
  super.apply(op);
68765
- return;
68766
68793
  }
68767
68794
  const hint = this.calculateUpdateHint(op);
68768
68795
  this.updateVisuals(op, hint);
package/dist/esm/index.js CHANGED
@@ -44252,6 +44252,7 @@ class RichText extends BaseItem {
44252
44252
  });
44253
44253
  return {
44254
44254
  resizedMbr: res?.resizedMbr ?? null,
44255
+ translation: res?.translation ?? null,
44255
44256
  onPointerUpCb: res?.onPointerUpCb
44256
44257
  };
44257
44258
  }
@@ -65296,6 +65297,33 @@ class Sticker extends BaseItem {
65296
65297
  getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
65297
65298
  return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
65298
65299
  }
65300
+ handleTransform(params) {
65301
+ const {
65302
+ board,
65303
+ mbr,
65304
+ resizeType,
65305
+ oppositePoint,
65306
+ isHeight,
65307
+ isWidth,
65308
+ isShiftPressed,
65309
+ beginTimeStamp,
65310
+ followingComments,
65311
+ startMbr
65312
+ } = params;
65313
+ return transformShape({
65314
+ board,
65315
+ mbr,
65316
+ resizeType,
65317
+ oppositePoint,
65318
+ isHeight,
65319
+ isWidth,
65320
+ isShiftPressed,
65321
+ beginTimeStamp,
65322
+ followingComments,
65323
+ startMbr,
65324
+ single: this
65325
+ });
65326
+ }
65299
65327
  getRichText() {
65300
65328
  return this.text;
65301
65329
  }
@@ -68755,7 +68783,6 @@ class Drawing extends BaseItem {
68755
68783
  this.linkTo.apply(op);
68756
68784
  } else {
68757
68785
  super.apply(op);
68758
- return;
68759
68786
  }
68760
68787
  const hint = this.calculateUpdateHint(op);
68761
68788
  this.updateVisuals(op, hint);
package/dist/esm/node.js CHANGED
@@ -46786,6 +46786,7 @@ class RichText extends BaseItem {
46786
46786
  });
46787
46787
  return {
46788
46788
  resizedMbr: res?.resizedMbr ?? null,
46789
+ translation: res?.translation ?? null,
46789
46790
  onPointerUpCb: res?.onPointerUpCb
46790
46791
  };
46791
46792
  }
@@ -67764,6 +67765,33 @@ class Sticker extends BaseItem {
67764
67765
  getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
67765
67766
  return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
67766
67767
  }
67768
+ handleTransform(params) {
67769
+ const {
67770
+ board,
67771
+ mbr,
67772
+ resizeType,
67773
+ oppositePoint,
67774
+ isHeight,
67775
+ isWidth,
67776
+ isShiftPressed,
67777
+ beginTimeStamp,
67778
+ followingComments,
67779
+ startMbr
67780
+ } = params;
67781
+ return transformShape({
67782
+ board,
67783
+ mbr,
67784
+ resizeType,
67785
+ oppositePoint,
67786
+ isHeight,
67787
+ isWidth,
67788
+ isShiftPressed,
67789
+ beginTimeStamp,
67790
+ followingComments,
67791
+ startMbr,
67792
+ single: this
67793
+ });
67794
+ }
67767
67795
  getRichText() {
67768
67796
  return this.text;
67769
67797
  }
@@ -71223,7 +71251,6 @@ class Drawing extends BaseItem {
71223
71251
  this.linkTo.apply(op);
71224
71252
  } else {
71225
71253
  super.apply(op);
71226
- return;
71227
71254
  }
71228
71255
  const hint = this.calculateUpdateHint(op);
71229
71256
  this.updateVisuals(op, hint);
@@ -17,6 +17,7 @@ import type { SerializedItemData } from "../BaseItem/BaseItem";
17
17
  import { BaseItemOperation } from "../BaseItem/BaseItemOperation";
18
18
  import { UpdateHint } from "../BaseItem/UpdateHint";
19
19
  import { ColorValue } from "../../..";
20
+ import { TransformParams, TransformResult } from "../BaseItem/TransformContext";
20
21
  export declare const stickerColors: {
21
22
  [color: string]: string;
22
23
  };
@@ -75,6 +76,7 @@ export declare class Sticker extends BaseItem<Sticker> {
75
76
  mbr: Mbr;
76
77
  };
77
78
  getResizeType(point: Point, cameraScale: number, mbr: Mbr, anchorDistance?: number): ResizeType | undefined;
79
+ handleTransform(params: TransformParams): TransformResult;
78
80
  getRichText(): RichText;
79
81
  getLinkTo(): string | undefined;
80
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.14.50",
3
+ "version": "0.14.51",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",