Format the layer lifecycle, standalone application and Bhote Koshi event with Prettier

This commit is contained in:
German Khokhlov committed 2026-11-03 14:36:31 +04:00
1 parent 62296a833c
commit 0c190c3a15
3 files changed
+65 -29

No files matched your search

+6 -2
View File
@@ -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);
}
}