mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Format the layer lifecycle, standalone application and Bhote Koshi event with Prettier
This commit is contained in:
1 parent
62296a833c
commit
0c190c3a15
3 files changed
+65
-29
No files matched your search
@@ -152,9 +152,13 @@ export class LayerLifecycle {
|
||||
const entry = this.layers.get(layer.id);
|
||||
if (!entry) this.register(layer);
|
||||
else {
|
||||
if (entry.module !== layer) throw new Error(`Layer owner changed: ${layer.id}`);
|
||||
if (entry.module !== layer)
|
||||
throw new Error(`Layer owner changed: ${layer.id}`);
|
||||
if (entry.initialized) {
|
||||
const ready = layer.attachRenderer(viewer, { ...this._moduleContext(), ...options });
|
||||
const ready = layer.attachRenderer(viewer, {
|
||||
...this._moduleContext(),
|
||||
...options,
|
||||
});
|
||||
if (ready?.then) attachments.push(ready);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user