8000 [geometry-2] Add DOMPolygon · Issue #603 · w3c/fxtf-drafts · GitHub
[go: up one dir, main page]

Skip to content

[geometry-2] Add DOMPolygon #603

@lukewarlow

Description

@lukewarlow

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.

Image

Originally posted by @OrionReed in #602 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0