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