@leafer-draw/worker 1.0.6 → 1.0.7
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/worker.js +5 -9
- package/dist/worker.min.js +1 -1
- package/dist/worker.module.js +5 -9
- package/dist/worker.module.min.js +1 -1
- package/package.json +6 -6
package/dist/worker.module.js
CHANGED
|
@@ -4426,13 +4426,10 @@ class LeafLayout {
|
|
|
4426
4426
|
update() {
|
|
4427
4427
|
const { leafer } = this.leaf;
|
|
4428
4428
|
if (leafer) {
|
|
4429
|
-
if (leafer.ready)
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
}
|
|
4433
|
-
else {
|
|
4429
|
+
if (leafer.ready)
|
|
4430
|
+
leafer.watcher.changed && leafer.layouter.layout();
|
|
4431
|
+
else
|
|
4434
4432
|
leafer.start();
|
|
4435
|
-
}
|
|
4436
4433
|
}
|
|
4437
4434
|
else {
|
|
4438
4435
|
let root = this.leaf;
|
|
@@ -5959,7 +5956,7 @@ class LeafLevelList {
|
|
|
5959
5956
|
}
|
|
5960
5957
|
}
|
|
5961
5958
|
|
|
5962
|
-
const version = "1.0.
|
|
5959
|
+
const version = "1.0.7";
|
|
5963
5960
|
|
|
5964
5961
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
5965
5962
|
get allowBackgroundColor() { return true; }
|
|
@@ -8380,9 +8377,8 @@ let Text = class Text extends UI {
|
|
|
8380
8377
|
layout.renderChanged = true;
|
|
8381
8378
|
setList(data.__textBoxBounds = {}, [b, bounds]);
|
|
8382
8379
|
}
|
|
8383
|
-
else
|
|
8380
|
+
else
|
|
8384
8381
|
data.__textBoxBounds = contentBounds;
|
|
8385
|
-
}
|
|
8386
8382
|
}
|
|
8387
8383
|
__updateRenderSpread() {
|
|
8388
8384
|
let width = super.__updateRenderSpread();
|