@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/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/lite.js +4 -3
- package/dist/lite.js.map +1 -1
- package/dist/lite.mjs +4 -3
- package/dist/lite.mjs.map +1 -1
- package/package.json +1 -1
- package/src/impl/FastboardApp.ts +3 -2
package/package.json
CHANGED
package/src/impl/FastboardApp.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
532
|
+
obj.completeImageUpload(uuid, url);
|
|
532
533
|
|
|
533
534
|
// 2. move camera to fit image **height**
|
|
534
535
|
width /= 0.8;
|