Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
njdehoog committed Oct 25, 2024
1 parent 7211091 commit 7fbfe2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class TextLayer {
* @constructor
* @param {Object} params
* @param {VectorSource} params.source
* @param {Style | (() => Style)} [params.style=undefined]
* @param {Style | ((feature: import('../Feature').Feature, zoom: number, isHovering: boolean) => Style)} [params.style=undefined]
* @param {number} [params.minZoom=0]
* @param {number} [params.opacity=1]
* @param {boolean} [params.declutter=true]
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/molecules/canvas-map/lib/util/toRgba.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ export function toRgba(color, opacity = 1) {
return `rgba(${r}, ${g}, ${b}, ${a})`
}

throw new Error("Unsupported color format")
throw new Error(`Unsupported color format: ${color}`)
}

0 comments on commit 7fbfe2b

Please sign in to comment.