@dsebastien/music-notation 0.1.2 → 0.2.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 +14 -6
- package/dist/blocks/block-source.d.ts +5 -0
- package/dist/blocks/renderers.d.ts +11 -1
- package/dist/chord/guitar.d.ts +5 -0
- package/dist/fretboard/fretboard.d.ts +5 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1603 -1
- package/dist/index.js.map +21 -3
- package/dist/keyboard/keyboard.d.ts +3 -0
- package/dist/music-notation.css +80 -0
- package/dist/music-notation.publish.min.js +84 -3
- package/dist/publish/auto.d.ts +2 -0
- package/dist/publish/index.js +450 -167
- package/dist/publish/index.js.map +13 -10
- package/dist/render/dom.d.ts +4 -0
- package/dist/render/layout.d.ts +57 -0
- package/dist/render/render-block.d.ts +4 -2
- package/dist/voicings/index.js +80 -6
- package/dist/voicings/index.js.map +6 -4
- package/package.json +2 -2
- package/dist/chunks/index-26cddyf5.js +0 -82
- package/dist/chunks/index-26cddyf5.js.map +0 -11
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
import { type NotationLanguage, type RenderOptions } from '../blocks/renderers.js';
|
|
3
3
|
export declare const LANGUAGES: NotationLanguage[];
|
|
4
4
|
export declare const isNotationLanguage: (language: string) => language is NotationLanguage;
|
|
5
|
+
/** More diagrams than this in one block is an error, so a page stays quick to draw. */
|
|
6
|
+
export declare const MAX_DIAGRAMS = 32;
|
|
5
7
|
export interface RenderResult {
|
|
6
8
|
ok: boolean;
|
|
7
9
|
/** The block's container, appended to the host. */
|
|
8
10
|
el: HTMLElement;
|
|
9
|
-
/** The message shown when ok is false. */
|
|
11
|
+
/** The message shown when ok is false (every failing diagram's, for a row). */
|
|
10
12
|
error: string | null;
|
|
11
13
|
/** Removes what was rendered. */
|
|
12
14
|
destroy(): void;
|
|
13
15
|
}
|
|
14
|
-
export declare function renderBlock(language: NotationLanguage, source: string, host: HTMLElement,
|
|
16
|
+
export declare function renderBlock(language: NotationLanguage, source: string, host: HTMLElement, given?: RenderOptions): RenderResult;
|