{"version":3,"file":"init.mjs","sources":["../../../../../packages/overlay/rectangle/use/init.ts"],"sourcesContent":["import { toBounds } from \"~/utils/converter\";\nimport type { Props } from \"./\";\n\nexport function useInit(props: Props) {\n  const { bounds, color, weight, opacity, lineStyle, fillColor, fillOpacity } = props;\n  return new T.Rectangle(toBounds(bounds), {\n    color,\n    weight,\n    opacity,\n    lineStyle,\n    fillColor,\n    fillOpacity\n  });\n}\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;"}