@leafer-ui/draw 1.5.1 → 1.5.2

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/lib/draw.esm.js CHANGED
@@ -787,7 +787,7 @@ __decorate([
787
787
  strokeType()
788
788
  ], UI.prototype, "dashPattern", void 0);
789
789
  __decorate([
790
- strokeType()
790
+ strokeType(0)
791
791
  ], UI.prototype, "dashOffset", void 0);
792
792
  __decorate([
793
793
  strokeType(10)
@@ -880,6 +880,12 @@ let Group = class Group extends UI {
880
880
  __decorate([
881
881
  dataProcessor(GroupData)
882
882
  ], Group.prototype, "__", void 0);
883
+ __decorate([
884
+ boundsType(0)
885
+ ], Group.prototype, "width", void 0);
886
+ __decorate([
887
+ boundsType(0)
888
+ ], Group.prototype, "height", void 0);
883
889
  Group = __decorate([
884
890
  useModule(Branch),
885
891
  registerUI()
@@ -1295,7 +1301,7 @@ let Box = class Box extends Group {
1295
1301
  __updateRectBoxBounds() { }
1296
1302
  __updateBoxBounds(_secondLayout) {
1297
1303
  const data = this.__;
1298
- if (this.children.length) {
1304
+ if (this.children.length && !this.pathInputed) {
1299
1305
  if (data.__autoSide) {
1300
1306
  if (data.__hasSurface)
1301
1307
  this.__extraUpdate();
@@ -1364,6 +1370,12 @@ let Box = class Box extends Group {
1364
1370
  __decorate([
1365
1371
  dataProcessor(BoxData)
1366
1372
  ], Box.prototype, "__", void 0);
1373
+ __decorate([
1374
+ boundsType(100)
1375
+ ], Box.prototype, "width", void 0);
1376
+ __decorate([
1377
+ boundsType(100)
1378
+ ], Box.prototype, "height", void 0);
1367
1379
  __decorate([
1368
1380
  dataType(false)
1369
1381
  ], Box.prototype, "resizeChildren", void 0);