getBBox() results calculated for multiple SVG elements with same viewBox but with different width and height. Aspect remains the same.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function test(name, depths = 1) { | |
| console.log(name); | |
| if (depths > 0) { | |
| setImmediate(() => test(`${name} > setImmediate`, depths - 1)); | |
| setTimeout(() => test(`${name} > setTimeout`, depths - 1)); | |
| process.nextTick(() => test(`${name} > nextTick`, depths - 1)); | |
| Promise.resolve().then(() => test(`${name} > resolve`, depths - 1)); | |
| } | |
| } |