modern-canvas 0.14.22 → 0.14.23

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4166,7 +4166,7 @@ class x extends de {
4166
4166
  }
4167
4167
  }
4168
4168
  updateSize() {
4169
- this.width || (this.width = this.sourceWidth / this.pixelRatio), this.height || (this.height = this.sourceHeight / this.pixelRatio);
4169
+ this.width || (this.width = Math.floor(this.sourceWidth / this.pixelRatio)), this.height || (this.height = Math.floor(this.sourceHeight / this.pixelRatio));
4170
4170
  }
4171
4171
  activate(e, t) {
4172
4172
  return this.isValid() ? (e.texture.bind(this, t), !0) : !1;
@@ -7978,8 +7978,8 @@ class F extends Ee {
7978
7978
  if (this.linearGradient || this.radialGradient)
7979
7979
  this.texture = new $t(
7980
7980
  this.linearGradient ?? this.radialGradient,
7981
- this.parent.size.width,
7982
- this.parent.size.height
7981
+ Math.floor(this.parent.size.width),
7982
+ Math.floor(this.parent.size.height)
7983
7983
  );
7984
7984
  else if (V(this.image))
7985
7985
  this.animatedTexture = void 0, this.texture = void 0;
@@ -9165,10 +9165,10 @@ let mr = class extends qs {
9165
9165
  _updateStyleProperty(r, e, t) {
9166
9166
  switch (super._updateStyleProperty(r, e, t), r) {
9167
9167
  case "width":
9168
- this.texture.width = this.style.width;
9168
+ this.texture.width = Math.floor(this.style.width);
9169
9169
  break;
9170
9170
  case "height":
9171
- this.texture.height = this.style.height;
9171
+ this.texture.height = Math.floor(this.style.height);
9172
9172
  break;
9173
9173
  }
9174
9174
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.14.22",
4
+ "version": "0.14.23",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",