svg-pathdata
svg-pathdata copied to clipboard
Parse SVG PathDatas
Bumps [terser](https://github.com/terser/terser) from 5.7.1 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. Commits f545bdb 3.0.1 c57d4c2 fix a few old XO issues for backport 419250f Fix potential ReDoS (#37) See full diff in compare view [ from 1.0.1 to 1.0.3. Commits c3b28d3 1.0.3 6226c95 Merge pull request #4 from Trott/fix-it-again c77691d fix: remediate ReDOS further 76ca93c chore: pin mocha to version that works with...
## Converting simple arc to curve gives wrong result ### Expected behavior ### Actual behavior ### Steps to reproduce the behavior ```ts new SVGPathData(`M 30 30 A 30 30 90...
## Issue I'm a gentledev i: - [x] fully read the README recently - [x] searched for existing issues - [x] checked I'm up to date with the latest version...
## Issue I'm a gentledev i: - [ ] fully read the README recently - [ ] searched for existing issues - [ ] checked i'm up to date with...
According to the: https://www.w3.org/TR/svg-paths/ The browser will render broken path data until the first error has occurred. `For example, for the path data string 'M 10,10 L 20,20,30', there is...
The parser states can now be expressed with the binary litteral operator: https://github.com/nfroidure/svg-pathdata/blob/master/src/SVGPathDataParser.ts#L530-L541 http://2ality.com/2015/04/numbers-math-es6.html
Those methods are implemented here but I think would better sit in this module. https://github.com/nfroidure/svgicons2svgfont/blob/master/src/svgshapes2svgpath.js By example: ```js SVGPathData.fromRect(0, 0, 40, 30) ```
SVG2 could add new commands like the bearing one. https://svgwg.org/svg2-draft/paths.html#PathDataBearingCommands