MCPcopy Create free account
hub / github.com/ImGoodBai/MapGoGoGo / addChangedCells

Function addChangedCells

frontend/src/maps.tsx:157–164  ·  view source on GitHub ↗
(previous: Set<string>, next: Set<string>, changed: Set<string>)

Source from the content-addressed store, hash-verified

155}
156
157function addChangedCells(previous: Set<string>, next: Set<string>, changed: Set<string>) {
158 for (const cellId of previous) {
159 if (!next.has(cellId)) changed.add(cellId);
160 }
161 for (const cellId of next) {
162 if (!previous.has(cellId)) changed.add(cellId);
163 }
164}
165
166function cloneCellStyleState(
167 unlocked: Set<string>,

Callers 1

AmapViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected