"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useGlobalRadiusMouseUp=function(n,t){e.useEffect((function(){var e=function(){"none"!==t.current&&n()};return document.addEventListener("mouseup",e),function(){document.removeEventListener("mouseup",e)}}),[n,t])},exports.useResetOnInactive=function(n,t,u){e.useEffect((function(){n||(t.setCenter(null),u.centerRef.current=null,t.setRadiusMiles(null),u.radiusMilesRef.current=null,u.dragModeRef.current="none",u.dragOffsetRef.current=null,t.setIsDragging(!1),t.setIsHoveringEdge(!1),t.setIsHoveringInside(!1))}),[n,t,u])},exports.useSyncPlacingCenter=function(n,t,u,r,s){e.useEffect((function(){"placing-center"===n&&(t(null),r.current=null,u(null),s.current=null)}),[n,t,u,r,s])},exports.useSyncRadiusMilesRef=function(n,t){e.useEffect((function(){t.current=n}),[n,t])};
//# sourceMappingURL=useRadiusDrawingEffects.js.map
