leafer-draw 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/web.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
  const debug$5 = Debug.get('LeaferCanvas');
@@ -6956,6 +6959,8 @@ var LeaferUI = (function (exports) {
6956
6959
  this.__drawRenderPath(canvas);
6957
6960
  if (fill && !ignoreFill)
6958
6961
  this.__.__pixelFill ? Paint.fills(fill, this, canvas) : Paint.fill('#000000', this, canvas);
6962
+ if (this.__.__isCanvas)
6963
+ this.__drawAfterFill(canvas, options);
6959
6964
  if (stroke && !ignoreStroke)
6960
6965
  this.__.__pixelStroke ? Paint.strokes(stroke, this, canvas) : Paint.stroke('#000000', this, canvas);
6961
6966
  }
@@ -7378,6 +7383,9 @@ var LeaferUI = (function (exports) {
7378
7383
  __decorate([
7379
7384
  dataType()
7380
7385
  ], exports.UI.prototype, "disabledStyle", void 0);
7386
+ __decorate([
7387
+ dataType({})
7388
+ ], exports.UI.prototype, "data", void 0);
7381
7389
  __decorate([
7382
7390
  rewrite(exports.Leaf.prototype.reset)
7383
7391
  ], exports.UI.prototype, "reset", null);
@@ -8220,7 +8228,7 @@ var LeaferUI = (function (exports) {
8220
8228
  super(data);
8221
8229
  this.canvas = Creator.canvas(this.__);
8222
8230
  this.context = this.canvas.context;
8223
- this.__.__drawAfterFill = true;
8231
+ this.__.__isCanvas = this.__.__drawAfterFill = true;
8224
8232
  }
8225
8233
  draw(ui, offset, scale, rotation) {
8226
8234
  ui.__layout.update();
@@ -8288,9 +8296,6 @@ var LeaferUI = (function (exports) {
8288
8296
  __decorate([
8289
8297
  resizeType()
8290
8298
  ], exports.Canvas.prototype, "contextSettings", void 0);
8291
- __decorate([
8292
- hitType('all')
8293
- ], exports.Canvas.prototype, "hitFill", void 0);
8294
8299
  exports.Canvas = __decorate([
8295
8300
  registerUI()
8296
8301
  ], exports.Canvas);