@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/index.js
CHANGED
|
@@ -252,7 +252,7 @@ for (const kind in DefaultApps) {
|
|
|
252
252
|
windowManager.WindowManager.register(__spreadValues({ kind }, options));
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
var version = "0.3.
|
|
255
|
+
var version = "0.3.21";
|
|
256
256
|
if (typeof window !== "undefined") {
|
|
257
257
|
let str = window.__netlessUA || "";
|
|
258
258
|
str += ` ${"@netless/fastboard"}@${version} `;
|
|
@@ -1482,7 +1482,8 @@ var FastboardApp = class extends FastboardAppBase {
|
|
|
1482
1482
|
const { centerX, centerY } = this.manager.camera;
|
|
1483
1483
|
width *= scale;
|
|
1484
1484
|
height *= scale;
|
|
1485
|
-
this.manager.mainView
|
|
1485
|
+
const obj = this.appliancePlugin || this.manager.mainView;
|
|
1486
|
+
obj.insertImage({
|
|
1486
1487
|
uuid,
|
|
1487
1488
|
centerX,
|
|
1488
1489
|
centerY,
|
|
@@ -1491,7 +1492,7 @@ var FastboardApp = class extends FastboardAppBase {
|
|
|
1491
1492
|
locked: false,
|
|
1492
1493
|
crossOrigin
|
|
1493
1494
|
});
|
|
1494
|
-
|
|
1495
|
+
obj.completeImageUpload(uuid, url);
|
|
1495
1496
|
width /= 0.8;
|
|
1496
1497
|
height /= 0.8;
|
|
1497
1498
|
const originX = centerX - width / 2;
|