@leafer-draw/worker 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() {
@@ -7141,7 +7141,10 @@ class Watcher {
7141
7141
  if (this.running) this.target.emit(RenderEvent.REQUEST);
7142
7142
  }
7143
7143
  __onAttrChange(event) {
7144
- if (this.config.usePartLayout) this.__updatedList.add(event.target);
7144
+ this.add(event.target);
7145
+ }
7146
+ add(leaf) {
7147
+ if (this.config.usePartLayout) this.__updatedList.add(leaf);
7145
7148
  this.update();
7146
7149
  }
7147
7150
  __onChildEvent(event) {
@@ -7980,11 +7983,7 @@ class PolygonData extends UIData {
7980
7983
  }
7981
7984
  }
7982
7985
 
7983
- class StarData extends UIData {
7984
- get __boxStroke() {
7985
- return !this.__pathInputed;
7986
- }
7987
- }
7986
+ class StarData extends UIData {}
7988
7987
 
7989
7988
  class PathData extends UIData {
7990
7989
  get __pathInputed() {
@@ -10277,13 +10276,9 @@ function createPattern(paint, ui, canvas, renderOptions) {
10277
10276
  if (fixScale) scaleX *= fixScale, scaleY *= fixScale;
10278
10277
  width *= scaleX;
10279
10278
  height *= scaleY;
10280
- if (gap) {
10279
+ if (gap && !brush) {
10281
10280
  xGap = gap.x * scaleX / abs$1(data.scaleX || 1);
10282
10281
  yGap = gap.y * scaleY / abs$1(data.scaleY || 1);
10283
- if (brush) {
10284
- const brushScale = PaintImage.getBrushScale(paint, ui);
10285
- xGap /= brushScale, yGap /= brushScale;
10286
- }
10287
10282
  }
10288
10283
  if (transform || scaleX !== 1 || scaleY !== 1) {
10289
10284
  scaleX *= getFloorScale(width + (xGap || 0));