SVGcode icon indicating copy to clipboard operation
SVGcode copied to clipboard

Investigate better SVG code parsing

Open tomayac opened this issue 3 years ago • 2 comments

Maybe use https://github.com/WebReflection/linkedom for https://github.com/tomayac/SVGcode/blob/1def07ead10f94eb7756973eb1090c083a28ad80/src/js/colorworker.js#L69-L88.

tomayac avatar Jan 20 '22 23:01 tomayac

Well done, really great job... I'm interested in improving the performance/speed of this tool, do you have any pointers where I should start from?

xwiz avatar Aug 24 '22 09:08 xwiz

The present issue is purely about replacing string-based replacement with proper DOM parsing.

If you are interested in improving the performance: see https://github.com/tomayac/esm-potrace-wasm/issues/8. The latest version of esm-potrace-wasm is capable of dealing with color, but fails on too large inputs.

tomayac avatar Aug 24 '22 11:08 tomayac