Skip to content

Commit

Permalink
fix: use default marker color only if none is set
Browse files Browse the repository at this point in the history
  • Loading branch information
katharinawuensche committed Dec 4, 2024
1 parent 311133c commit 0d5d814
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion components/geojson-map-toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const { colors, addColor, setColor } = useColorsStore();
(value) => {
column.toggleVisibility(!!value);
column.setFilterValue([]);
addColor(column.id);
if (!colors.has(column.id)) addColor(column.id);
}
"
>
Expand Down
3 changes: 0 additions & 3 deletions stores/use-colors-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ export const useColorsStore = defineStore("colors", () => {
}

function addColor(id: ColorInterface["id"]) {
//colorjs unfortunately has some typescript issues which will hopefully be fixed soon in version 0.6.0

const lastColor = new Color(refColor.value).to("lch");

lastColor.h += 79;
const color: ColorInterface = {
id: id,
Expand Down

0 comments on commit 0d5d814

Please sign in to comment.