@bendyline/squisq-react 2.11.15 → 2.11.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -164,6 +164,18 @@ the player as a self-contained string constant (`PLAYER_BUNDLE`) with the
164
164
  shared icon styles composed once. It is used by `@bendyline/squisq-formats`
165
165
  and the CLI to produce single-file HTML and rendered video exports.
166
166
 
167
+ ## Diagram Pictures
168
+
169
+ `@bendyline/squisq-react/diagram-pictures` draws diagrams as PNG for document
170
+ exports (browser only): `renderMermaidPicture`, `renderSquisqDiagramPicture`
171
+ (ASCII diagrams and timelines, drawing, layout and diagram blocks, cropped to
172
+ their content without slide chrome), `renderTreePicture`, and
173
+ `createDiagramPictureRenderer`, the renderer `rasterizeDiagrams` in
174
+ `@bendyline/squisq-formats/diagrams` takes. Pictures are plain SVG drawn to a
175
+ canvas — Mermaid with SVG-text labels, no `<foreignObject>` — so the read-back
176
+ works in every browser, and text uses system fonts because a picture cannot
177
+ load the page's web fonts.
178
+
167
179
  ## Styles
168
180
 
169
181
  Import the package CSS for block transitions and Font Awesome inline icons:
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  MermaidDiagram
3
- } from "./chunk-WLUZTUNZ.js";
3
+ } from "./chunk-QXZXQPL3.js";
4
4
  import {
5
5
  useMediaProvider,
6
6
  useMediaUrl
7
- } from "./chunk-LR3AIGDD.js";
7
+ } from "./chunk-63G5OJWY.js";
8
8
 
9
9
  // src/hooks/FenceRendererContext.tsx
10
10
  import { createContext, useContext } from "react";