Require the use of hex, rgb, rgba or rainbow for colors and refactor config types

This commit is contained in:
uwap 2018-02-04 03:43:22 +01:00
parent 436abf682f
commit a96fa1622b
14 changed files with 178 additions and 147 deletions

View file

@ -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];