UNPKG

@recogito/annotorious

Version:

A JavaScript image annotation library

13 lines (12 loc) 368 B
import { DEFAULT_PALETTE as s } from "./annotorious-react.es27.js"; const a = () => { const o = [...s]; return { assignRandomColor: () => { const r = Math.floor(Math.random() * o.length), n = o[r]; return o.splice(r, 1), n; }, releaseColor: (r) => o.push(r) }; }; export { a as defaultColorProvider }; //# sourceMappingURL=annotorious-react.es8.js.map