W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > March 2022

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

From: Elad Alon via GitHub <sysbot+gh@w3.org>
Date: Tue, 29 Mar 2022 13:13:00 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1081854969-1648559578-sysbot+gh@w3.org>
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 https://github.com/w3c/mediacapture-region/pull/32#issuecomment-1081854969 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 29 March 2022 13:13:02 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:56 UTC