modern-canvas 0.14.21 → 0.14.22

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -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");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.14.21",
4
+ "version": "0.14.22",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",