svgutils icon indicating copy to clipboard operation
svgutils copied to clipboard

Optimize calcul of boundingbox

Open throrin19 opened this issue 11 years ago • 2 comments

Optimize phantom execution, memory and process childs for big svg file

throrin19 avatar Dec 03 '13 15:12 throrin19

start optimizing by test all possible DOM manipulator mudules on nodeJS and, all of them do not work with getBoundingClientRect.

So, i optimize phantomJS usage and removed jquery inclusion but, if the svg is so big, nodejs crash and all phantomJS childs are not killed

throrin19 avatar Dec 04 '13 15:12 throrin19

now changed engine. phantomJS has removed, jsdom not used, i calculate all of boundingbox. Except for Text, tspan and group. They are fixed.

For group, it's comming soon but for text, it's depend of police size, font, tspan positions, ...

throrin19 avatar Dec 05 '13 09:12 throrin19