-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is CropTarget name too generic? #18
Comments
|
Thinking further, CropTarget is nothing but a way to get live element bounding rect. |
That also begs the question of the actual definition of CropTarget in the spec, it should probably relate to existing HTML/CSS structures. |
|
Another name: |
Consider a Web-developer who is not interest in cropping at all.
I think that |
I don't think we've landed on a name better than |
I am not sure looking at it from a web developer inspecting each property is the right angle here. Either we augment CropTarget to expose more of Elements (say its name) and it is better to have a name that clarifies that this is tied to an element. It could for instance be reused in other APIs (dom element capture track can be exposed to workers and has an API to get its element for instance). Or we might augment CropTarget API to allow cropping for various sources using the same CropTarget. Of course, who knows the future. But in any case, these are the kind of discussion I'd like to have to validate the name selection. |
I have not yet heard a suggestion for a name better than CropTarget. I've added the documentation of our lack of consensus to PR #27. You're welcome to continue this discussion and bring up additional suggestions, but I hope this won't block us making more progress toward FPWD and beyond. |
I agree that CropTarget is the best name suggestion I've seen so far for this field. We have been using the region capture API at Google (I represent the Google Docs editors) and CropTarget would be a natural fit for how this object is used in code. Thanks! |
I don't think we have a robust way of cropping windows wrt changes to window-internal layout. But should we find something in the future, that future mechanism could rely on a token that is marked as a sub-class of CropTarget. Or CropTarget could be extended to support that adjacent use-case too. I don't think the name will be an issue.
Please let me know if I have failed to address any of your points, if you still think we should go with any of the ideas you've already brought up, or if you have new naming ideas that you'd like to discuss. |
@youennf, I'd like to conclude this discussion. Nobody else has stepped forth who is interested in changing the current naming scheme. May we close this issue? |
Consider a Web-developer who today writes and ships code that sends a CropTarget over postMessage(). That developer assumes that CropTarget exposes nothing, and can only be used for cropping (shaving off information). This greatly simplifies how that developer can reason about the safety of posting CropTarget around. If we were to reuse CropTarget in the future, it would run the risk of breaking that developer's reasonable assumption. CropTarget is intentionally crop-specific. Reuse for other APIs is not intended, and so we don't need a name that lends itself to arbitrary reuse. |
@youennf, there been no activity here for a while, and you have yourself suggested |
Ping @youennf, let's please close this. |
Discussed at today's editor's call. |
I'm not sure I can make the next interim. I'll let you know. |
Discussed during interim meeting of June 2022. |
As it is, CropTarget is a generic term that could be applied to any region of a video frame, say for instance a head region from a camera feed, or a window in an application getDisplayMedia track.
As currently defined, CropTarget is more something like an element viewport.
In that sense, it might be good to think of renaming it to something more specific, for instance 'Viewport'.
The text was updated successfully, but these errors were encountered: