@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/fastboard-core",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "description": "A tiny wrapper of white-web-sdk and @netless/window-manager and @netless/appliance-plugin.",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -519,7 +519,8 @@ export class FastboardApp<TEventData extends Record<string, any> = any> extends
519
519
  const { centerX, centerY } = this.manager.camera;
520
520
  width *= scale;
521
521
  height *= scale;
522
- this.manager.mainView.insertImage({
522
+ const obj = this.appliancePlugin || this.manager.mainView;
523
+ obj.insertImage({
523
524
  uuid,
524
525
  centerX,
525
526
  centerY,
@@ -528,7 +529,7 @@ export class FastboardApp<TEventData extends Record<string, any> = any> extends
528
529
  locked: false,
529
530
  crossOrigin,
530
531
  });
531
- this.manager.mainView.completeImageUpload(uuid, url);
532
+ obj.completeImageUpload(uuid, url);
532
533
 
533
534
  // 2. move camera to fit image **height**
534
535
  width /= 0.8;