Releases
1.5.0
Compare
Sorry, something went wrong.
No results found
New
Added pele/global, a browser script that exposes the full API as the global pele for use with a <script> tag.
Added a sanitize option to mount() for passing SVG through your app鈥檚 sanitizer before insertion.
Added an onError callback to mount() for render failures after resizing, font loading, or showing a hidden diagram.
Improvements
refresh() re-renders only when the container width or fonts have changed.
Hidden diagrams defer updates until shown, while parsing errors are still reported immediately.
Mounted diagrams share one resize observer with their zoom controls.
Diagrams that cannot be zoomed no longer attach wheel or gesture listeners, avoiding unnecessary delays when scrolling.
Fixes
Fixed diagrams using outdated font measurements after a web font loads while they are hidden.
Fixed failed updates losing track of font changes.
Prevented pending font loads from keeping removed diagrams in memory.
Fixed rendering failures caused by newer JavaScript methods unavailable in Safari 15.0.
Fixed zoom focus handling in browsers without :focus-visible support.
Breaking changes
Removed watch from mount() and enableZoom(). Container resizing is now always observed.
Removed Mounted.fit(). Use refresh() instead.
Mounted.update() and Mounted.refresh() no longer return a result. Read Mounted.result for the current drawing.
Removed Zoom.resized().
You can鈥檛 perform that action at this time.