-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(map): improve icon text coloring and alignment (#355)
* fix(graphql): remove local fields * feat(map): improve icon text coloring and alignment
- Loading branch information
1 parent
f9a9314
commit 5a48958
Showing
6 changed files
with
50 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
import { InMemoryCache, makeVar } from "@apollo/client"; | ||
|
||
// active drawing Layer | ||
export const activeLayerVar = makeVar<string>(""); | ||
|
||
// active Incident | ||
export const activeIncidentVar = makeVar<string>(""); | ||
|
||
|
||
export const cache: InMemoryCache = new InMemoryCache({ | ||
typePolicies: { | ||
Layers: { | ||
fields: { | ||
isActive: { | ||
read(_, { readField }) { | ||
const layerId = readField('id'); | ||
return layerId === activeLayerVar() | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}); | ||
export const cache: InMemoryCache = new InMemoryCache( | ||
// { | ||
// typePolicies: { | ||
// Layers: { | ||
// fields: { | ||
// isActive: { | ||
// read(_, { readField }) { | ||
// const layerId = readField('id'); | ||
// return layerId === activeLayerVar() | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters