12 lines
482 B
JavaScript
12 lines
482 B
JavaScript
const MAP_LIVE_DATA_SLOT_KINDS = new Set(["entity-stream", "zone-stream", "subject-aspect-stream"]);
|
|
|
|
/**
|
|
* Map runtime bindings may only target slots that deliver canonical live
|
|
* entity facts. Point entities, zones and non-spatial selected-subject aspects
|
|
* have distinct template slots, but share the same provider-neutral
|
|
* snapshot/patch transport contract.
|
|
*/
|
|
export function isMapLiveDataSlot(slot) {
|
|
return Boolean(slot && MAP_LIVE_DATA_SLOT_KINDS.has(slot.kind));
|
|
}
|