Re: [svgwg] New Interface SVGPathSegment: segments should be more editable (#974)

> Adding and removing segments is something you can do already. It's just creating them that's hard.

Correct me if I'm wrong, but the only way to create a segment on Firefox 137 is to use your own factory function that sets "d" attribute on a stub `<path>` and retrieves corresponding segment with `getPathData()`. 

> Perhaps SVGPathSegment should not be nointerface object and should have a constructor instead.

Or even better make `setPathData()` accept either `SVGPathSegment` instance or a segment-like plain object, in similar fashion to `DOMPoint.fromPoint()` which accepts `DOMPoint` or point-like object.

-- 
GitHub Notification of comment by jarek-foksa
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/974#issuecomment-2784752161 using your GitHub account


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

Received on Monday, 7 April 2025 22:15:42 UTC