alexbol99 / flatten-js

Javascript library for 2d geometry
MIT License
535 stars 56 forks source link

Refactoring for svg attributes code #140

Closed alexbol99 closed 1 year ago

alexbol99 commented 1 year ago

Support any svg attribute in camelCase, convert attribute name from camelCase to kebab-case Support valueless attributes like "disabled"

alexbol99 commented 1 year ago

Hi, @edemaine , I will be happy if you find some time to review this PR This notebook illustrate the change https://observablehq.com/d/76f6be5777ed58a2 You can add arbitrary attributes, including "className" and "id"