leafer-draw 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$4 = 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) {
@@ -8174,11 +8177,7 @@ class PolygonData extends UIData {
8174
8177
  }
8175
8178
  }
8176
8179
 
8177
- class StarData extends UIData {
8178
- get __boxStroke() {
8179
- return !this.__pathInputed;
8180
- }
8181
- }
8180
+ class StarData extends UIData {}
8182
8181
 
8183
8182
  class PathData extends UIData {
8184
8183
  get __pathInputed() {
@@ -10471,13 +10470,9 @@ function createPattern(paint, ui, canvas, renderOptions) {
10471
10470
  if (fixScale) scaleX *= fixScale, scaleY *= fixScale;
10472
10471
  width *= scaleX;
10473
10472
  height *= scaleY;
10474
- if (gap) {
10473
+ if (gap && !brush) {
10475
10474
  xGap = gap.x * scaleX / abs$1(data.scaleX || 1);
10476
10475
  yGap = gap.y * scaleY / abs$1(data.scaleY || 1);
10477
- if (brush) {
10478
- const brushScale = PaintImage.getBrushScale(paint, ui);
10479
- xGap /= brushScale, yGap /= brushScale;
10480
- }
10481
10476
  }
10482
10477
  if (transform || scaleX !== 1 || scaleY !== 1) {
10483
10478
  scaleX *= getFloorScale(width + (xGap || 0));