@netless/fastboard-core 0.3.20 → 0.3.21

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/lite.mjs CHANGED
@@ -245,7 +245,7 @@ for (const kind in DefaultApps) {
245
245
  WindowManager.register(__spreadValues({ kind }, options));
246
246
  }
247
247
  }
248
- var version = "0.3.20";
248
+ var version = "0.3.21";
249
249
  if (typeof window !== "undefined") {
250
250
  let str = window.__netlessUA || "";
251
251
  str += ` ${"@netless/fastboard"}@${version} `;
@@ -1475,7 +1475,8 @@ var FastboardApp = class extends FastboardAppBase {
1475
1475
  const { centerX, centerY } = this.manager.camera;
1476
1476
  width *= scale;
1477
1477
  height *= scale;
1478
- this.manager.mainView.insertImage({
1478
+ const obj = this.appliancePlugin || this.manager.mainView;
1479
+ obj.insertImage({
1479
1480
  uuid,
1480
1481
  centerX,
1481
1482
  centerY,
@@ -1484,7 +1485,7 @@ var FastboardApp = class extends FastboardAppBase {
1484
1485
  locked: false,
1485
1486
  crossOrigin
1486
1487
  });
1487
- this.manager.mainView.completeImageUpload(uuid, url);
1488
+ obj.completeImageUpload(uuid, url);
1488
1489
  width /= 0.8;
1489
1490
  height /= 0.8;
1490
1491
  const originX = centerX - width / 2;