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