{"version":3,"file":"init.mjs","sources":["../../../../../packages/overlay/label/use/init.ts"],"sourcesContent":["import { toLngLat, toPoint } from \"~/utils/converter\";\r\nimport type { Props } from \"./\";\r\n\r\nexport function useInit(props: Props) {\r\n  const { position, offset, text } = props;\r\n  return new T.Label({\r\n    position: toLngLat(position),\r\n    offset: toPoint(offset),\r\n    text\r\n  });\r\n}\r\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;"}