@leafer-ui/miniapp 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
  class LeaferCanvas extends LeaferCanvasBase {
6990
6990
  get allowBackgroundColor() {
@@ -7300,7 +7300,10 @@ class Watcher {
7300
7300
  if (this.running) this.target.emit(RenderEvent.REQUEST);
7301
7301
  }
7302
7302
  __onAttrChange(event) {
7303
- if (this.config.usePartLayout) this.__updatedList.add(event.target);
7303
+ this.add(event.target);
7304
+ }
7305
+ add(leaf) {
7306
+ if (this.config.usePartLayout) this.__updatedList.add(leaf);
7304
7307
  this.update();
7305
7308
  }
7306
7309
  __onChildEvent(event) {
@@ -8339,11 +8342,7 @@ class PolygonData extends UIData {
8339
8342
  }
8340
8343
  }
8341
8344
 
8342
- class StarData extends UIData {
8343
- get __boxStroke() {
8344
- return !this.__pathInputed;
8345
- }
8346
- }
8345
+ class StarData extends UIData {}
8347
8346
 
8348
8347
  class PathData extends UIData {
8349
8348
  get __pathInputed() {
@@ -12278,13 +12277,9 @@ function createPattern(paint, ui, canvas, renderOptions) {
12278
12277
  if (fixScale) scaleX *= fixScale, scaleY *= fixScale;
12279
12278
  width *= scaleX;
12280
12279
  height *= scaleY;
12281
- if (gap) {
12280
+ if (gap && !brush) {
12282
12281
  xGap = gap.x * scaleX / abs$1(data.scaleX || 1);
12283
12282
  yGap = gap.y * scaleY / abs$1(data.scaleY || 1);
12284
- if (brush) {
12285
- const brushScale = PaintImage.getBrushScale(paint, ui);
12286
- xGap /= brushScale, yGap /= brushScale;
12287
- }
12288
12283
  }
12289
12284
  if (transform || scaleX !== 1 || scaleY !== 1) {
12290
12285
  scaleX *= getFloorScale(width + (xGap || 0));