modern-canvas 0.14.21 → 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.
- package/dist/index.js +7 -7
- 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;
|
|
@@ -5204,12 +5204,12 @@ let Ge = class extends q {
|
|
|
5204
5204
|
this.needsPaint = !0, this.requestRender();
|
|
5205
5205
|
}
|
|
5206
5206
|
_updateGlobalVisible() {
|
|
5207
|
-
this._parentGlobalVisible = this.getParent()?.globalVisible, this._globalVisible = (this._parentGlobalVisible ?? !0) && this.visible && this.insideTimeRange;
|
|
5207
|
+
this._parentGlobalVisible = this.getParent()?.globalVisible, this._globalVisible = (this._parentGlobalVisible ?? !0) && this.visible && this.insideTimeRange, this.updateRenderable();
|
|
5208
5208
|
}
|
|
5209
5209
|
_updateGlobalOpacity() {
|
|
5210
5210
|
this._parentGlobalOpacity = this.getParent()?.opacity;
|
|
5211
5211
|
const r = ce(this.opacity, 0, 1) * (this._parentGlobalOpacity ?? 1);
|
|
5212
|
-
this._globalOpacity !== r && (this._globalOpacity = r, this.requestPaint());
|
|
5212
|
+
this._globalOpacity !== r && (this._globalOpacity = r, this.requestPaint(), this.updateRenderable());
|
|
5213
5213
|
}
|
|
5214
5214
|
_draw() {
|
|
5215
5215
|
this.emit("draw");
|
|
@@ -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
|
}
|