{"version":3,"file":"init.mjs","sources":["../../../../../packages/overlay/label/use/init.ts"],"sourcesContent":["import { toLngLat, toPoint } from \"~/utils/converter\";\nimport type { Props } from \"./\";\n\nexport function useInit(props: Props) {\n  const { position, offset, text } = props;\n  return new T.Label({\n    position: toLngLat(position),\n    offset: toPoint(offset),\n    text\n  });\n}\n"],"names":["useInit","props","position","offset","text","toLngLat","toPoint"],"mappings":";AAGO,SAASA,EAAQC,GAAc;AACpC,QAAM,EAAE,UAAAC,GAAU,QAAAC,GAAQ,MAAAC,EAAS,IAAAH;AAC5B,SAAA,IAAI,EAAE,MAAM;AAAA,IACjB,UAAUI,EAASH,CAAQ;AAAA,IAC3B,QAAQI,EAAQH,CAAM;AAAA,IACtB,MAAAC;AAAA,EAAA,CACD;AACH;"}