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 lines
2.0 KiB
1 lines
2.0 KiB
{"ast":null,"code":"import { LatLngBounds } from 'leaflet';\nexport function updateMediaOverlay(overlay, props, prevProps) {\n if (props.bounds instanceof LatLngBounds && props.bounds !== prevProps.bounds) {\n overlay.setBounds(props.bounds);\n }\n\n if (props.opacity != null && props.opacity !== prevProps.opacity) {\n overlay.setOpacity(props.opacity);\n }\n\n if (props.zIndex != null && props.zIndex !== prevProps.zIndex) {\n // @ts-ignore missing in definition but inherited from ImageOverlay\n overlay.setZIndex(props.zIndex);\n }\n}","map":{"version":3,"names":["LatLngBounds","updateMediaOverlay","overlay","props","prevProps","bounds","setBounds","opacity","setOpacity","zIndex","setZIndex"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/@react-leaflet/core/lib/media-overlay.js"],"sourcesContent":["import { LatLngBounds } from 'leaflet';\nexport function updateMediaOverlay(overlay, props, prevProps) {\n if (props.bounds instanceof LatLngBounds && props.bounds !== prevProps.bounds) {\n overlay.setBounds(props.bounds);\n }\n if (props.opacity != null && props.opacity !== prevProps.opacity) {\n overlay.setOpacity(props.opacity);\n }\n if (props.zIndex != null && props.zIndex !== prevProps.zIndex) {\n // @ts-ignore missing in definition but inherited from ImageOverlay\n overlay.setZIndex(props.zIndex);\n }\n}\n"],"mappings":"AAAA,SAASA,YAAT,QAA6B,SAA7B;AACA,OAAO,SAASC,kBAAT,CAA4BC,OAA5B,EAAqCC,KAArC,EAA4CC,SAA5C,EAAuD;EAC1D,IAAID,KAAK,CAACE,MAAN,YAAwBL,YAAxB,IAAwCG,KAAK,CAACE,MAAN,KAAiBD,SAAS,CAACC,MAAvE,EAA+E;IAC3EH,OAAO,CAACI,SAAR,CAAkBH,KAAK,CAACE,MAAxB;EACH;;EACD,IAAIF,KAAK,CAACI,OAAN,IAAiB,IAAjB,IAAyBJ,KAAK,CAACI,OAAN,KAAkBH,SAAS,CAACG,OAAzD,EAAkE;IAC9DL,OAAO,CAACM,UAAR,CAAmBL,KAAK,CAACI,OAAzB;EACH;;EACD,IAAIJ,KAAK,CAACM,MAAN,IAAgB,IAAhB,IAAwBN,KAAK,CAACM,MAAN,KAAiBL,SAAS,CAACK,MAAvD,EAA+D;IAC3D;IACAP,OAAO,CAACQ,SAAR,CAAkBP,KAAK,CAACM,MAAxB;EACH;AACJ"},"metadata":{},"sourceType":"module"} |