@leapfrog/interactive-canvas 2.0.24-beta-6 → 2.0.24-beta-7

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.
@@ -3582,7 +3582,12 @@ class AbstractInteractiveCanvas {
3582
3582
  }
3583
3583
  syncObjectList() {
3584
3584
  const newObjectList = _(this.fabricCanvas.getObjects())
3585
- .map((obj) => this.findObject(obj.id))
3585
+ .map((obj) => {
3586
+ if (obj.type === "textbox") {
3587
+ obj.splitByGrapheme = true;
3588
+ }
3589
+ return this.findObject(obj.id);
3590
+ })
3586
3591
  .filter((x) => x !== undefined)
3587
3592
  .value();
3588
3593
  this.objects$.next(newObjectList);
@@ -3603,7 +3603,12 @@ class AbstractInteractiveCanvas {
3603
3603
  }
3604
3604
  syncObjectList() {
3605
3605
  const newObjectList = _(this.fabricCanvas.getObjects())
3606
- .map((obj) => this.findObject(obj.id))
3606
+ .map((obj) => {
3607
+ if (obj.type === "textbox") {
3608
+ obj.splitByGrapheme = true;
3609
+ }
3610
+ return this.findObject(obj.id);
3611
+ })
3607
3612
  .filter((x) => x !== undefined)
3608
3613
  .value();
3609
3614
  this.objects$.next(newObjectList);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapfrog/interactive-canvas",
3
- "version": "2.0.24-beta-6",
3
+ "version": "2.0.24-beta-7",
4
4
  "description": "Leapfrog interactive canvas",
5
5
  "files": [
6
6
  "dist"