svgdom icon indicating copy to clipboard operation
svgdom copied to clipboard

Straightforward DOM implementation to make SVG.js run headless on Node.js

Results 23 svgdom issues
Sort by recently updated
recently updated
newest added

`M 216.1027854225359 271.1209756706295 A 46.283096266347606 28.725390201836586 2.166914683186652 0 1 287.49723659993464 261.4021001840497` `M 164.16806031012334 277.88997477304815 A 112.78408575681235 76.52010425131027 -175.93248043341987 1 1 158.42630883977398 299.49871866124164` `RangeError: Maximum call stack size exceeded` I believe...

Hello, I noticed while using `svg.js` that `getBBox` was returning different measurements in node or browser (I already opened an [issue](https://github.com/svgdotjs/svg.js/issues/1267) about it). I suspected the issue came from svgdom...

A library I am using has this code to measure text. ``` const element = document.createElement('canvas'); const ctx = element.getContext("2d"); ctx.font = `${this.opts.fontSizeLarge}pt Helvetica, Arial, sans-serif` let textMetrics = ctx.measureText(text)...

When I try to apply a transform to an element that has a use element as a child I get the following error: `Error: Getting bbox of element "g" is...

It seems that when `` or `` elements have a font-size which includes a unit, this library renders their `.bbox()` as an empty rect (all 0's). The following example illustrates...

``` $ node Welcome to Node.js v13.2.0. Type ".help" for more information. > require('svgdom') Thrown: Error: No valid exports main found for '.../node_modules/svgdom' at resolveExportsTarget (internal/modules/cjs/loader.js:611:9) at applyExports (internal/modules/cjs/loader.js:492:14) at...

When using svgdom with TypeScript (ts-jest), it fails in module resolution, because `main` points to a `.cjs` file. If I change it to reference `main-module.js` everything works. As the likely...

I did this in `utils/pathUtils.js` on the off-chance it might have fixed the strange behaviour I was seeing with getting an arc's centre...

Hello, I'm not sure should it be done this way... but on my app on node.js function text.bbox() is not working without this change (height comes as NaN). Let me...