Allow view change events to trigger re-render.

This commit is contained in:
Dermot Duffy
2022-01-14 21:31:16 -08:00
parent d064b6ea91
commit 16ac4146d7
9 changed files with 119 additions and 68 deletions
+10
View File
@@ -24,6 +24,16 @@ export class View {
this.previous = params?.previous;
}
public clone(): View {
return new View({
view: this.view,
camera: this.camera,
target: this.target,
childIndex: this.childIndex,
previous: this.previous
});
}
public is(name: string): boolean {
return this.view == name;
}