@dsebastien/music-notation 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The browser bundle (`music-notation.publish.min.js`): injects the styles and renders every
3
+ * notation block on the page, now and as it changes. Exposes the API as `window.MusicNotation`.
4
+ */
5
+ import * as api from '../index.js';
6
+ import { lookupGuitarVoicing } from '../voicings/index.js';
7
+ declare global {
8
+ interface Window {
9
+ musicNotationLoaded?: boolean;
10
+ MusicNotation?: typeof api & {
11
+ lookupGuitarVoicing: typeof lookupGuitarVoicing;
12
+ stop: () => void;
13
+ };
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ import type { RenderOptions } from '../blocks/renderers.js';
2
+ /** Render every block not rendered yet (or changed, or whose rendering vanished) under `root`. */
3
+ export declare function renderAll(root: ParentNode, options?: RenderOptions): number;
4
+ /** Render now and whenever the page changes. Returns a function that stops watching. */
5
+ export declare function autoRender(doc: Document, options?: RenderOptions): () => void;