libraries/zo_revealingcontrol/zo_revealingcontrol.lua:14 -- self.maskSimulator:SetHandler("OnRectChanged", function(_, newLeft, newTop, newRight, newBottom)
if self.shape == SHAPE_BOX then
self:SetRectangularClip(newLeft, newTop, newRight, newBottom)
elseif self.shape == SHAPE_CIRCLE then
local radius = zo_distance(newRight, newBottom, newLeft, newTop) / 2
local centerX, centerY = self.maskSimulator:GetCenter()
self:SetCircularClip(centerX, centerY, radius)
end
end)