@leapfrog/interactive-canvas 1.10.0 → 1.10.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.
@@ -3352,7 +3352,9 @@ var AbstractInteractiveCanvas = /** @class */ (function () {
3352
3352
  _a.sent();
3353
3353
  _a.label = 2;
3354
3354
  case 2:
3355
- this.setBackgroundColor(canvasState.backgroundColor);
3355
+ if (canvasState.backgroundColor)
3356
+ this.setBackgroundColor(canvasState.backgroundColor);
3357
+ this.backgroundColor$.next(this.fabricCanvas.backgroundColor);
3356
3358
  this.bindFields(canvasState.objects);
3357
3359
  this.removePersistedBullets();
3358
3360
  this.layoutManager$.value.onInit();
@@ -3352,7 +3352,9 @@ var AbstractInteractiveCanvas = /** @class */ (function () {
3352
3352
  _a.sent();
3353
3353
  _a.label = 2;
3354
3354
  case 2:
3355
- this.setBackgroundColor(canvasState.backgroundColor);
3355
+ if (canvasState.backgroundColor)
3356
+ this.setBackgroundColor(canvasState.backgroundColor);
3357
+ this.backgroundColor$.next(this.fabricCanvas.backgroundColor);
3356
3358
  this.bindFields(canvasState.objects);
3357
3359
  this.removePersistedBullets();
3358
3360
  this.layoutManager$.value.onInit();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapfrog/interactive-canvas",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Leapfrog interactive canvas",
5
5
  "files": [
6
6
  "dist"