Re-exports the adapter's API, exposes it as window.maidrObservable for
script-tag usage, and — the part that makes a Quarto document work without
being edited — starts watching the page for Plot charts as soon as it loads.
Remarks
Loading this bundle is the whole integration. A Quarto author adds two
script tags in the document header and every {ojs} cell that draws with
Observable Plot becomes navigable, including cells that re-run when a
viewof input changes.
Set window.maidrObservableAutoInit = falsebefore the bundle loads to
keep the exported functions and skip the watcher, then call
initObservablePlots or bindObservablePlot yourself.
Example
# _quarto.yml — or the document's own YAML header format: html: include-in-header: - text: | <script src="https://cdn.jsdelivr.net/npm/maidr/dist/maidr.js"></script> <script src="https://cdn.jsdelivr.net/npm/maidr/dist/observable.js"></script>
Observable Plot adapter entry point for MAIDR.
Re-exports the adapter's API, exposes it as
window.maidrObservablefor script-tag usage, and — the part that makes a Quarto document work without being edited — starts watching the page for Plot charts as soon as it loads.Remarks
Loading this bundle is the whole integration. A Quarto author adds two script tags in the document header and every
{ojs}cell that draws with Observable Plot becomes navigable, including cells that re-run when aviewofinput changes.Set
window.maidrObservableAutoInit = falsebefore the bundle loads to keep the exported functions and skip the watcher, then call initObservablePlots or bindObservablePlot yourself.Example