autovisualizer 0.7.0 → 0.8.0
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 +1 -1
- package/package.json +1 -1
- package/public/embed/assets/auto-visualizer-DcCZ31qP.js +89 -0
- package/public/embed/assets/{auto-visualizer-DkhOYX-5.js.map → auto-visualizer-DcCZ31qP.js.map} +1 -1
- package/public/embed/assets/{in-page-zm6-zy05.js → in-page-BaljT-zn.js} +2 -2
- package/public/embed/assets/{in-page-zm6-zy05.js.map → in-page-BaljT-zn.js.map} +1 -1
- package/public/embed/embed.js +1 -1
- package/public/embed/assets/auto-visualizer-DkhOYX-5.js +0 -89
- package/public/embed/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/public/embed/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/public/embed/assets/style-SUVdCO2G.css +0 -3
package/README.md
CHANGED
|
@@ -155,7 +155,7 @@ The events `events` and a walkthrough send are drawn as a path: each transition
|
|
|
155
155
|
|
|
156
156
|
From React, set `walkthrough`, `counts`, `input` and `context` as JSON strings with `setAttribute` (or as attributes in markup). React renders before `embed.js` defines the element, so an object passed as a prop arrives as the text `[object Object]`.
|
|
157
157
|
|
|
158
|
-
The chart shows states and events only, so it leaves the machine's name to your page. The mouse wheel and a one-finger swipe scroll the page; drag with the mouse, or use two fingers, to pan and zoom the chart. Charts load as they near the viewport, so a page with ten charts loads the ones your readers reach. Without a `height` in your CSS, the element sizes itself to the chart, between 240px and 720px tall plus the walkthrough bar, so a phone gets a short box instead of a tiny chart in empty space. A `height` in your CSS overrides that. It renders in a shadow root, so your page's styles don't reach in and its styles don't leak out. A chart written as code runs it in its own Web Worker, which needs the page served over HTTP; a chart from a definition runs on the page. `embed.d.ts` and `embed.react.d.ts` next to `embed.js` type the element for TypeScript and JSX.
|
|
158
|
+
The chart shows states and events only, so it leaves the machine's name to your page. The mouse wheel and a one-finger swipe scroll the page; drag with the mouse, or use two fingers, to pan and zoom the chart. The button in the top-right corner shows the chart full screen; inside an iframe, give the iframe `allow="fullscreen"` to show it. Charts load as they near the viewport, so a page with ten charts loads the ones your readers reach. Without a `height` in your CSS, the element sizes itself to the chart, between 240px and 720px tall plus the walkthrough bar, so a phone gets a short box instead of a tiny chart in empty space. A `height` in your CSS overrides that. It renders in a shadow root, so your page's styles don't reach in and its styles don't leak out. `embed.js` carries its own stylesheet and fonts, so a page whose Content Security Policy allows only that script still gets a styled chart. A chart written as code runs it in its own Web Worker, which needs the page served over HTTP; a chart from a definition runs on the page. `embed.d.ts` and `embed.react.d.ts` next to `embed.js` type the element for TypeScript and JSX.
|
|
159
159
|
|
|
160
160
|
### In READMEs, issues and pull requests
|
|
161
161
|
|