Re: [mediacapture-region] Refer to getBoundingClientRect as a defintion of the actual crop area (#32)

I think the cleanest solution is to go back to the UUID **approach**. Namely, we associate both Element and CropTarget with a unique identifier (e.g. UUID, but not necessarily). We then say that cropTo(cropTarget) produces an effect that's dependent on the Element that's associated with that identifier. It's similar to using a "weak reference" but it's immediately apparent that no other action can be affected that uses or abuses this reference, since it's quick to verify that only `cropTo` even accepts a CropTarget, and cropTo() is patently safe.

GitHub Notification of comment by eladalon1983
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Tuesday, 29 March 2022 13:13:02 UTC