{"version":3,"file":"context.cjs","sources":["../../src/utils/context.ts"],"sourcesContent":["import type { Accessor } from 'solid-js'\nimport { createContext, useContext } from 'solid-js'\n\ntype VisContainerContextType =\n  | 'component'\n  | 'axis'\n  | 'tooltip'\n  | 'annotations'\n  | 'crosshair'\n\nexport type VisContainerContextProps = {\n  update: (key: VisContainerContextType, value: Accessor<unknown>) => void\n  destroy: (key: VisContainerContextType, value?: unknown) => void\n  dirty: VoidFunction\n}\n\nexport const VisContainerContext = createContext<VisContainerContextProps>({\n  update: () => null,\n  destroy: () => null,\n  dirty: () => null,\n})\n\nexport const useVisContainer = () => useContext(VisContainerContext)\n"],"names":["VisContainerContext","createContext","useVisContainer","useContext"],"mappings":"4GAgBaA,EAAsBC,EAAAA,cAAwC,CACzE,OAAQ,IAAM,KACd,QAAS,IAAM,KACf,MAAO,IAAM,IACf,CAAC,EAEYC,EAAkB,IAAMC,EAAAA,WAAWH,CAAmB"}