mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(street-level): retire lookups and preserve embedded photos
Clear cancelled lookup loading over an existing photo, release caller abort listeners on internal retirement, surface embedded errors, and permit embedded photos over the clean globe. Add seven regression cases and update runtime documentation. Preserve the published localization and other review fixes.
This commit is contained in:
1 parent
0ec57057fa
commit
7703090d90
10 files changed
+175
-12
No files matched your search
@@ -19,6 +19,8 @@ export const useStreetLevelStore = defineStore('gev-street-level', () => {
|
||||
const expanded = shallowRef(null);
|
||||
/** False on a page with neither element fullscreen nor popovers. */
|
||||
const expandAvailable = shallowRef(true);
|
||||
/** Whether the photo is shown over the globe on an embedded page. */
|
||||
const embedOverlay = shallowRef(false);
|
||||
/** @type {{handlers: StreetLevelHandlers}|null} */
|
||||
let owner = null;
|
||||
|
||||
@@ -47,6 +49,11 @@ export const useStreetLevelStore = defineStore('gev-street-level', () => {
|
||||
expandAvailable.value = Boolean(available);
|
||||
}
|
||||
|
||||
/** @param {boolean} on */
|
||||
function setEmbedOverlay(on) {
|
||||
embedOverlay.value = Boolean(on);
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop forwarding actions to the owner holding `token`. The panel keeps
|
||||
* its last render, as the page did when its controls were wired by hand.
|
||||
@@ -69,10 +76,12 @@ export const useStreetLevelStore = defineStore('gev-street-level', () => {
|
||||
view,
|
||||
expanded,
|
||||
expandAvailable,
|
||||
embedOverlay,
|
||||
attach,
|
||||
publish,
|
||||
setExpanded,
|
||||
setExpandAvailable,
|
||||
setEmbedOverlay,
|
||||
detach,
|
||||
act,
|
||||
describeSinceStop,
|
||||
|
||||
Reference in new issue
Block a user