MCPcopy Create free account
hub / github.com/cartesiancs/map3d / mouseup

Function mouseup

src/components/map/SelectMap.tsx:59–67  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

57 }
58 },
59 mouseup(e) {
60 if (firstPoint) {
61 onDrawChange(new L.LatLngBounds(firstPoint, e.latlng));
62 onChange(
63 new L.LatLngBounds(adjustLng(firstPoint), adjustLng(e.latlng))
64 );
65 setFirstPoint(null);
66 }
67 },
68 });
69
70 useEffect(() => {

Callers

nothing calls this directly

Calls 1

adjustLngFunction · 0.85

Tested by

no test coverage detected