{"version":3,"file":"init.mjs","sources":["../../../../../packages/overlay/rectangle/use/init.ts"],"sourcesContent":["import { toBounds } from \"~/utils/converter\";\r\nimport type { Props } from \"./\";\r\n\r\nexport function useInit(props: Props) {\r\n  const { bounds, color, weight, opacity, lineStyle, fillColor, fillOpacity } = props;\r\n  return new T.Rectangle(toBounds(bounds), {\r\n    color,\r\n    weight,\r\n    opacity,\r\n    lineStyle,\r\n    fillColor,\r\n    fillOpacity\r\n  });\r\n}\r\n"],"names":["useInit","props","bounds","color","weight","opacity","lineStyle","fillColor","fillOpacity","toBounds"],"mappings":";AAGO,SAASA,EAAQC,GAAc;AAC9B,QAAA,EAAE,QAAAC,GAAQ,OAAAC,GAAO,QAAAC,GAAQ,SAAAC,GAAS,WAAAC,GAAW,WAAAC,GAAW,aAAAC,MAAgBP;AAC9E,SAAO,IAAI,EAAE,UAAUQ,EAASP,CAAM,GAAG;AAAA,IACvC,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,EAAA,CACD;AACH;"}