leafer-ui 2.1.8 → 2.1.9

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.
@@ -6984,7 +6984,7 @@ class LeafLevelList {
6984
6984
  }
6985
6985
  }
6986
6986
 
6987
- const version = "2.1.8";
6987
+ const version = "2.1.9";
6988
6988
 
6989
6989
  const debug$5 = Debug.get("LeaferCanvas");
6990
6990
 
@@ -7335,7 +7335,10 @@ class Watcher {
7335
7335
  if (this.running) this.target.emit(RenderEvent.REQUEST);
7336
7336
  }
7337
7337
  __onAttrChange(event) {
7338
- if (this.config.usePartLayout) this.__updatedList.add(event.target);
7338
+ this.add(event.target);
7339
+ }
7340
+ add(leaf) {
7341
+ if (this.config.usePartLayout) this.__updatedList.add(leaf);
7339
7342
  this.update();
7340
7343
  }
7341
7344
  __onChildEvent(event) {
@@ -8374,11 +8377,7 @@ class PolygonData extends UIData {
8374
8377
  }
8375
8378
  }
8376
8379
 
8377
- class StarData extends UIData {
8378
- get __boxStroke() {
8379
- return !this.__pathInputed;
8380
- }
8381
- }
8380
+ class StarData extends UIData {}
8382
8381
 
8383
8382
  class PathData extends UIData {
8384
8383
  get __pathInputed() {
@@ -12534,13 +12533,9 @@ function createPattern(paint, ui, canvas, renderOptions) {
12534
12533
  if (fixScale) scaleX *= fixScale, scaleY *= fixScale;
12535
12534
  width *= scaleX;
12536
12535
  height *= scaleY;
12537
- if (gap) {
12536
+ if (gap && !brush) {
12538
12537
  xGap = gap.x * scaleX / abs$1(data.scaleX || 1);
12539
12538
  yGap = gap.y * scaleY / abs$1(data.scaleY || 1);
12540
- if (brush) {
12541
- const brushScale = PaintImage.getBrushScale(paint, ui);
12542
- xGap /= brushScale, yGap /= brushScale;
12543
- }
12544
12539
  }
12545
12540
  if (transform || scaleX !== 1 || scaleY !== 1) {
12546
12541
  scaleX *= getFloorScale(width + (xGap || 0));