You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.2 KiB

2 years ago
{"ast":null,"code":"import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { Rectangle as LeafletRectangle } from 'leaflet';\nexport const Rectangle = createPathComponent(function createRectangle(_ref, ctx) {\n let {\n bounds,\n ...options\n } = _ref;\n const rectangle = new LeafletRectangle(bounds, options);\n return createElementObject(rectangle, extendContext(ctx, {\n overlayContainer: rectangle\n }));\n}, function updateRectangle(layer, props, prevProps) {\n if (props.bounds !== prevProps.bounds) {\n layer.setBounds(props.bounds);\n }\n});","map":{"version":3,"names":["createElementObject","createPathComponent","extendContext","Rectangle","LeafletRectangle","createRectangle","ctx","bounds","options","rectangle","overlayContainer","updateRectangle","layer","props","prevProps","setBounds"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/react-leaflet/lib/Rectangle.js"],"sourcesContent":["import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { Rectangle as LeafletRectangle } from 'leaflet';\nexport const Rectangle = createPathComponent(function createRectangle({ bounds , ...options }, ctx) {\n const rectangle = new LeafletRectangle(bounds, options);\n return createElementObject(rectangle, extendContext(ctx, {\n overlayContainer: rectangle\n }));\n}, function updateRectangle(layer, props, prevProps) {\n if (props.bounds !== prevProps.bounds) {\n layer.setBounds(props.bounds);\n }\n});\n"],"mappings":"AAAA,SAASA,mBAAT,EAA8BC,mBAA9B,EAAmDC,aAAnD,QAAwE,qBAAxE;AACA,SAASC,SAAS,IAAIC,gBAAtB,QAA8C,SAA9C;AACA,OAAO,MAAMD,SAAS,GAAGF,mBAAmB,CAAC,SAASI,eAAT,OAAkDC,GAAlD,EAAuD;EAAA,IAA9B;IAAEC,MAAF;IAAW,GAAGC;EAAd,CAA8B;EAChG,MAAMC,SAAS,GAAG,IAAIL,gBAAJ,CAAqBG,MAArB,EAA6BC,OAA7B,CAAlB;EACA,OAAOR,mBAAmB,CAACS,SAAD,EAAYP,aAAa,CAACI,GAAD,EAAM;IACrDI,gBAAgB,EAAED;EADmC,CAAN,CAAzB,CAA1B;AAGH,CAL2C,EAKzC,SAASE,eAAT,CAAyBC,KAAzB,EAAgCC,KAAhC,EAAuCC,SAAvC,EAAkD;EACjD,IAAID,KAAK,CAACN,MAAN,KAAiBO,SAAS,CAACP,MAA/B,EAAuC;IACnCK,KAAK,CAACG,SAAN,CAAgBF,KAAK,CAACN,MAAtB;EACH;AACJ,CAT2C,CAArC"},"metadata":{},"sourceType":"module"}