@leafer-draw/worker 1.0.0-rc.26 → 1.0.0-rc.27

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.
@@ -5189,6 +5189,9 @@ let Leaf = class Leaf {
5189
5189
  }
5190
5190
  set(_data) { }
5191
5191
  get(_name) { return undefined; }
5192
+ setAttr(name, value) { this[name] = value; }
5193
+ getAttr(name) { return this[name]; }
5194
+ getComputedAttr(name) { return this.__[name]; }
5192
5195
  toJSON() {
5193
5196
  return this.__.__getInputData();
5194
5197
  }
@@ -5749,7 +5752,7 @@ class LeafLevelList {
5749
5752
  }
5750
5753
  }
5751
5754
 
5752
- const version = "1.0.0-rc.26";
5755
+ const version = "1.0.0-rc.27";
5753
5756
  const inviteCode = {};
5754
5757
 
5755
5758
  class LeaferCanvas extends LeaferCanvasBase {
@@ -6819,6 +6822,8 @@ const UIRender = {
6819
6822
  this.__drawRenderPath(canvas);
6820
6823
  if (fill && !ignoreFill)
6821
6824
  this.__.__pixelFill ? Paint.fills(fill, this, canvas) : Paint.fill('#000000', this, canvas);
6825
+ if (this.__.__isCanvas)
6826
+ this.__drawAfterFill(canvas, options);
6822
6827
  if (stroke && !ignoreStroke)
6823
6828
  this.__.__pixelStroke ? Paint.strokes(stroke, this, canvas) : Paint.stroke('#000000', this, canvas);
6824
6829
  }
@@ -7241,6 +7246,9 @@ __decorate([
7241
7246
  __decorate([
7242
7247
  dataType()
7243
7248
  ], UI.prototype, "disabledStyle", void 0);
7249
+ __decorate([
7250
+ dataType({})
7251
+ ], UI.prototype, "data", void 0);
7244
7252
  __decorate([
7245
7253
  rewrite(Leaf.prototype.reset)
7246
7254
  ], UI.prototype, "reset", null);
@@ -8083,7 +8091,7 @@ let Canvas = class Canvas extends Rect {
8083
8091
  super(data);
8084
8092
  this.canvas = Creator.canvas(this.__);
8085
8093
  this.context = this.canvas.context;
8086
- this.__.__drawAfterFill = true;
8094
+ this.__.__isCanvas = this.__.__drawAfterFill = true;
8087
8095
  }
8088
8096
  draw(ui, offset, scale, rotation) {
8089
8097
  ui.__layout.update();
@@ -8151,9 +8159,6 @@ __decorate([
8151
8159
  __decorate([
8152
8160
  resizeType()
8153
8161
  ], Canvas.prototype, "contextSettings", void 0);
8154
- __decorate([
8155
- hitType('all')
8156
- ], Canvas.prototype, "hitFill", void 0);
8157
8162
  Canvas = __decorate([
8158
8163
  registerUI()
8159
8164
  ], Canvas);