@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.
package/dist/worker.js CHANGED
@@ -5192,6 +5192,9 @@ var LeaferUI = (function (exports) {
5192
5192
  }
5193
5193
  set(_data) { }
5194
5194
  get(_name) { return undefined; }
5195
+ setAttr(name, value) { this[name] = value; }
5196
+ getAttr(name) { return this[name]; }
5197
+ getComputedAttr(name) { return this.__[name]; }
5195
5198
  toJSON() {
5196
5199
  return this.__.__getInputData();
5197
5200
  }
@@ -5752,7 +5755,7 @@ var LeaferUI = (function (exports) {
5752
5755
  }
5753
5756
  }
5754
5757
 
5755
- const version = "1.0.0-rc.26";
5758
+ const version = "1.0.0-rc.27";
5756
5759
  const inviteCode = {};
5757
5760
 
5758
5761
  class LeaferCanvas extends LeaferCanvasBase {
@@ -6822,6 +6825,8 @@ var LeaferUI = (function (exports) {
6822
6825
  this.__drawRenderPath(canvas);
6823
6826
  if (fill && !ignoreFill)
6824
6827
  this.__.__pixelFill ? Paint.fills(fill, this, canvas) : Paint.fill('#000000', this, canvas);
6828
+ if (this.__.__isCanvas)
6829
+ this.__drawAfterFill(canvas, options);
6825
6830
  if (stroke && !ignoreStroke)
6826
6831
  this.__.__pixelStroke ? Paint.strokes(stroke, this, canvas) : Paint.stroke('#000000', this, canvas);
6827
6832
  }
@@ -7244,6 +7249,9 @@ var LeaferUI = (function (exports) {
7244
7249
  __decorate([
7245
7250
  dataType()
7246
7251
  ], exports.UI.prototype, "disabledStyle", void 0);
7252
+ __decorate([
7253
+ dataType({})
7254
+ ], exports.UI.prototype, "data", void 0);
7247
7255
  __decorate([
7248
7256
  rewrite(exports.Leaf.prototype.reset)
7249
7257
  ], exports.UI.prototype, "reset", null);
@@ -8086,7 +8094,7 @@ var LeaferUI = (function (exports) {
8086
8094
  super(data);
8087
8095
  this.canvas = Creator.canvas(this.__);
8088
8096
  this.context = this.canvas.context;
8089
- this.__.__drawAfterFill = true;
8097
+ this.__.__isCanvas = this.__.__drawAfterFill = true;
8090
8098
  }
8091
8099
  draw(ui, offset, scale, rotation) {
8092
8100
  ui.__layout.update();
@@ -8154,9 +8162,6 @@ var LeaferUI = (function (exports) {
8154
8162
  __decorate([
8155
8163
  resizeType()
8156
8164
  ], exports.Canvas.prototype, "contextSettings", void 0);
8157
- __decorate([
8158
- hitType('all')
8159
- ], exports.Canvas.prototype, "hitFill", void 0);
8160
8165
  exports.Canvas = __decorate([
8161
8166
  registerUI()
8162
8167
  ], exports.Canvas);