Require the use of hex, rgb, rgba or rainbow for colors and refactor config types
This commit is contained in:
parent
436abf682f
commit
a96fa1622b
14 changed files with 178 additions and 147 deletions
|
|
@ -5,6 +5,8 @@ import Leaflet from "leaflet";
|
|||
import _ from "lodash";
|
||||
import parseIconName, { controlGetIcon } from "utils/parseIconName";
|
||||
|
||||
import type { Controls, Control } from "config/types";
|
||||
|
||||
export type Point = [number, number];
|
||||
|
||||
const convertPoint = ([y, x]: Point): Point => [-x, y];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue