Ulrich-Matthias Schäfer

Results 320 comments of Ulrich-Matthias Schäfer

Deciding ahead of time how many segments to use can lead to unprecise approximations for really large arcs. But yes, this is a problem and a bug. Just not sure...

That wouldnt work since this function is expected to return directly. Cant break user expectation here. I am not following dom standards to the max but this lib still remains...

or maybe rewrite the recursion as a while loop (which should be possible if it is tail call optimizable).

Did you install it? ```js $ node Welcome to Node.js v13.12.0. Type ".help" for more information. > require('svgdom') { defaults: Object [Module] { fontSize: [Getter], fontFamily: [Getter], fontDir: [Getter], fontFamilyMappings:...

Yes it will be quite sure the node version. However, all the stuff is backwards compatible. The `main` entry in the package.json points to `main-require.cjs` and that key is resolved...

Its strange. If you have a look at #60 you can see that the code seems to work with node 12 or even node 8. Maybe it is a bug...

I am using svg.js with typescript right now and have no problems whatsoever. If window is not defined in your typescript you might want to run typescript with the dom...

I obviously mixed up the repositories there... No, svgdom has no typescript definitions but you could just use the dom lib which typescripts provide. Its a dom after all ^^

I am swamped with work atm so I currently have no chance to check this PR. For everyone who needs this, they can install this branch directly via npm and...

@hippogrammer dist folder is not commited to git. Only the source files are. But You can just build it yourself locally