[fxtf-drafts] [geometry-2] Add DOMPolygon (#603)

lukewarlow has just created a new issue for https://github.com/w3c/fxtf-drafts:

== [geometry-2] Add DOMPolygon ==
I also want to 2nd the mention of a `DOMPolygon` interface and would value this a lot more than `DOMCircle` as it is a nice continuation of the straight line geometry of rects and quads. The web *almost* has the building blocks for rich geometry in the form of spatial canvases, hand drawing without a \<canvas> or systems that require collision detection. With a `DOMPolygon` interface and a few basic geometry utilities it would reduce the need to continually reimplement these basic affordances especially when you need them for rects, quads, and other geometry.

I've also been wondering about a `DOMPath` interface, which could equally (and perhaps better) be served by an `isClosed` property on a `DOMPolygon` interface. For the sake of completion, an `isSimple` property would round out the most basic geometry attributes.

<img width="400" height="244" alt="Image" src="https://github.com/user-attachments/assets/cfdf9380-28f8-4899-a98a-e7f919bb9c24" />

_Originally posted by @OrionReed in https://github.com/w3c/fxtf-drafts/issues/602#issuecomment-3040363550_

Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/603 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 5 July 2025 23:16:13 UTC