dacha 0.18.1 → 0.18.2

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.
@@ -97,7 +97,8 @@ export class RendererAPI {
97
97
  const inverseMatrix = this.worldContainer.worldTransform.clone().invert();
98
98
  VIEW_COMPONENTS.forEach((ViewComponent) => {
99
99
  const viewComponent = actor.getComponent(ViewComponent);
100
- if (!viewComponent?.renderData?.view?.__dacha.isReady) {
100
+ if (viewComponent?.disabled ||
101
+ !viewComponent?.renderData?.view?.__dacha.isReady) {
101
102
  return;
102
103
  }
103
104
  const bounds = convertBounds(viewComponent.renderData.view, inverseMatrix);
@@ -20,6 +20,7 @@ export interface Bounds {
20
20
  height: number;
21
21
  }
22
22
  export interface ViewComponent extends Component {
23
+ disabled?: boolean;
23
24
  renderData?: {
24
25
  view: ViewContainer;
25
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dacha",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "exports": {