You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 568a279
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ Upgrading from 3.x? Upgrade to the latest 3.x release first, fix the deprecation
137
137
### Fixes
138
138
139
139
-`renderSVG()` bounds the points paths are made of: an arc between far-apart ends is drawn with at most 64 curves a turn (a 139-byte path, `M 1e25 100 A 40 30 20 1 1 160 100`, stroked, ran the process out of memory), and the curves of arcs and the points of all paths, also of each copy drawn through `<use>`, count against 2^25 points plus 4 per pixel of the output in one render and 2^21 in one path. Reading path data and placing text along a `<textPath>` count, too, and SVGs embedded as images share the budget of the render they are in. More throw a `LimitError` (which a text's layout no longer takes for a damaged font). A path drawn through `<use>` is read once a render instead of once a copy.
140
-
- SVG text: the glyph outlines of all texts count against the render's points before they are made, 16 points a command (20 texts of 1,000 characters of a complex font ran the process out of memory), so very long texts need a larger output; many `<tspan>`s in one `<text>` take linear time (10,000 took 20 s); a `<textPath>` on a long path renders at a normal size; bitmap emoji (CBDT, sbix) are decoded once a render instead of once a draw (copies through `<use>` took minutes).
140
+
- SVG text: the glyph outlines of all texts count against the render's points before they are made, 16 points a command (20 texts of 1,000 characters of a complex font ran the process out of memory), so very long texts need a larger output; many `<tspan>`s in one `<text>` take linear time (10,000 took 20 s); a `<textPath>` on a long path renders at a normal size; bitmap emoji (CBDT, sbix) are decoded once a render instead of once a draw (copies through `<use>` took minutes), at most 2048x2048 pixels each (larger ones aren't drawn, also in `renderText()`: one that said 16383x16383 ran the process out of memory).
141
141
-`renderText()` takes linear time for many combining marks and lines (400,000 lines took minutes).
142
142
- Very long text (50,000 characters in SVG, 200,000 combining marks or lines in `renderText()`) no longer overflows the call stack or says the font is damaged.
143
143
- Binary data and dates of other realms (iframes, `node:vm`, Jest) are accepted; objects that only claim to be one by `Symbol.toStringTag` aren't, and a detached buffer throws a `TypeError` that says so.
if(!error||error.name!=='LimitError'||!/markers/.test(error.message)||Date.now()-begin>30000*slack)panic(`120000 markers: expected the marker limit within 30 s, got ${error} after ${Date.now()-begin} ms`);
27
+
}
28
+
// what counts is what is painted, not the bounding boxes of the shapes: a chart of 1000 thin lines across the
29
+
// image renders (each line's box is the whole image)
if(!error||error.name!=='LimitError'||Date.now()-begin>30000*slack)panic(`${name}: expected a LimitError within 30 s, got ${error} after ${Date.now()-begin} ms`);
if(!error||error.name!=='LimitError'||!/markers/.test(error.message)||Date.now()-begin>30000*slack)panic(`120000 markers: expected the marker limit within 30 s, got ${error} after ${Date.now()-begin} ms`);
71
-
}
72
-
// what counts is what is painted, not the bounding boxes of the shapes: a chart of 1000 thin lines across the
73
-
// image renders (each line's box is the whole image)
if(!error||error.name!=='LimitError'||Date.now()-begin>30000*slack)panic(`${name}: expected a LimitError within 30 s, got ${error} after ${Date.now()-begin} ms`);
0 commit comments