canvas-recorder-lib 0.5.0 → 0.7.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/BREAKING-CHANGES.md +24 -0
- package/README.md +131 -25
- package/dev/audio-builder.ts +69 -161
- package/dev/canvas-recorder.css +59 -0
- package/dev/canvas-recorder.ts +1006 -212
- package/dev/delay-files.ts +1 -1
- package/dev/font-utils.ts +8 -1
- package/dev/format-editor.ts +734 -0
- package/dev/format-string.ts +110 -0
- package/dev/local-file-row.ts +107 -0
- package/dev/multi-text-dialog.ts +360 -0
- package/dev/multi-text-panel.ts +11 -0
- package/dev/player-body.ts +94 -6
- package/dev/rect-snap.ts +9 -9
- package/dev/slide-panel.ts +1 -1
- package/dev/sound-clips.ts +3 -2
- package/dev/soundtrack.ts +434 -0
- package/dev/split-dialog.ts +13 -2
- package/dev/static-image-panel.ts +35 -5
- package/dev/timeline-display.ts +50 -5
- package/dev/transcripts.ts +5 -3
- package/dev/video-clip-panel.ts +202 -16
- package/dev/voice/chirp.ts +129 -0
- package/dev/voice/folder.ts +84 -0
- package/dev/voice/voice-panel.ts +513 -0
- package/dev/voice/voice-recorder.ts +603 -0
- package/dist/dev/audio-builder.d.ts +14 -31
- package/dist/dev/audio-builder.d.ts.map +1 -1
- package/dist/dev/audio-builder.js +62 -134
- package/dist/dev/audio-builder.js.map +1 -1
- package/dist/dev/canvas-recorder.css +59 -0
- package/dist/dev/canvas-recorder.js +926 -198
- package/dist/dev/canvas-recorder.js.map +1 -1
- package/dist/dev/delay-files.js +1 -1
- package/dist/dev/delay-files.js.map +1 -1
- package/dist/dev/font-utils.d.ts.map +1 -1
- package/dist/dev/font-utils.js +9 -1
- package/dist/dev/font-utils.js.map +1 -1
- package/dist/dev/format-editor.d.ts +75 -0
- package/dist/dev/format-editor.d.ts.map +1 -0
- package/dist/dev/format-editor.js +642 -0
- package/dist/dev/format-editor.js.map +1 -0
- package/dist/dev/format-string.d.ts +62 -0
- package/dist/dev/format-string.d.ts.map +1 -0
- package/dist/dev/format-string.js +86 -0
- package/dist/dev/format-string.js.map +1 -0
- package/dist/dev/local-file-row.d.ts +22 -0
- package/dist/dev/local-file-row.d.ts.map +1 -0
- package/dist/dev/local-file-row.js +84 -0
- package/dist/dev/local-file-row.js.map +1 -0
- package/dist/dev/multi-text-dialog.d.ts +30 -0
- package/dist/dev/multi-text-dialog.d.ts.map +1 -0
- package/dist/dev/multi-text-dialog.js +297 -0
- package/dist/dev/multi-text-dialog.js.map +1 -0
- package/dist/dev/multi-text-panel.d.ts +2 -0
- package/dist/dev/multi-text-panel.d.ts.map +1 -1
- package/dist/dev/multi-text-panel.js +4 -0
- package/dist/dev/multi-text-panel.js.map +1 -1
- package/dist/dev/player-body.d.ts +1 -1
- package/dist/dev/player-body.d.ts.map +1 -1
- package/dist/dev/player-body.js +94 -6
- package/dist/dev/player-body.js.map +1 -1
- package/dist/dev/rect-snap.d.ts +1 -1
- package/dist/dev/rect-snap.js +7 -7
- package/dist/dev/rect-snap.js.map +1 -1
- package/dist/dev/slide-panel.d.ts +1 -1
- package/dist/dev/slide-panel.d.ts.map +1 -1
- package/dist/dev/slide-panel.js +1 -1
- package/dist/dev/slide-panel.js.map +1 -1
- package/dist/dev/sound-clips.d.ts +3 -2
- package/dist/dev/sound-clips.d.ts.map +1 -1
- package/dist/dev/sound-clips.js +3 -2
- package/dist/dev/sound-clips.js.map +1 -1
- package/dist/dev/soundtrack.d.ts +115 -0
- package/dist/dev/soundtrack.d.ts.map +1 -0
- package/dist/dev/soundtrack.js +369 -0
- package/dist/dev/soundtrack.js.map +1 -0
- package/dist/dev/split-dialog.d.ts.map +1 -1
- package/dist/dev/split-dialog.js +14 -2
- package/dist/dev/split-dialog.js.map +1 -1
- package/dist/dev/static-image-panel.d.ts +2 -0
- package/dist/dev/static-image-panel.d.ts.map +1 -1
- package/dist/dev/static-image-panel.js +29 -5
- package/dist/dev/static-image-panel.js.map +1 -1
- package/dist/dev/timeline-display.d.ts +23 -2
- package/dist/dev/timeline-display.d.ts.map +1 -1
- package/dist/dev/timeline-display.js +47 -5
- package/dist/dev/timeline-display.js.map +1 -1
- package/dist/dev/transcripts.d.ts.map +1 -1
- package/dist/dev/transcripts.js +5 -3
- package/dist/dev/transcripts.js.map +1 -1
- package/dist/dev/video-clip-panel.d.ts +8 -0
- package/dist/dev/video-clip-panel.d.ts.map +1 -1
- package/dist/dev/video-clip-panel.js +176 -10
- package/dist/dev/video-clip-panel.js.map +1 -1
- package/dist/dev/voice/chirp.d.ts +27 -0
- package/dist/dev/voice/chirp.d.ts.map +1 -0
- package/dist/dev/voice/chirp.js +107 -0
- package/dist/dev/voice/chirp.js.map +1 -0
- package/dist/dev/voice/folder.d.ts +18 -0
- package/dist/dev/voice/folder.d.ts.map +1 -0
- package/dist/dev/voice/folder.js +68 -0
- package/dist/dev/voice/folder.js.map +1 -0
- package/dist/dev/voice/voice-panel.d.ts +44 -0
- package/dist/dev/voice/voice-panel.d.ts.map +1 -0
- package/dist/dev/voice/voice-panel.js +418 -0
- package/dist/dev/voice/voice-panel.js.map +1 -0
- package/dist/dev/voice/voice-recorder.d.ts +141 -0
- package/dist/dev/voice/voice-recorder.d.ts.map +1 -0
- package/dist/dev/voice/voice-recorder.js +506 -0
- package/dist/dev/voice/voice-recorder.js.map +1 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +3 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main-control.d.ts +50 -4
- package/dist/lib/main-control.d.ts.map +1 -1
- package/dist/lib/main-control.js +94 -12
- package/dist/lib/main-control.js.map +1 -1
- package/dist/src/binary-search.js +1 -1
- package/dist/src/binary-search.js.map +1 -1
- package/dist/src/corner-rounder.d.ts +17 -0
- package/dist/src/corner-rounder.d.ts.map +1 -0
- package/dist/src/corner-rounder.js +89 -0
- package/dist/src/corner-rounder.js.map +1 -0
- package/dist/src/cross-fade.d.ts +1 -1
- package/dist/src/cross-fade.d.ts.map +1 -1
- package/dist/src/cross-fade.js +3 -3
- package/dist/src/cross-fade.js.map +1 -1
- package/dist/src/fancy-text.d.ts +116 -0
- package/dist/src/fancy-text.d.ts.map +1 -0
- package/dist/src/fancy-text.js +211 -0
- package/dist/src/fancy-text.js.map +1 -0
- package/dist/src/glib/letters-base.d.ts +1 -1
- package/dist/src/glib/letters-base.d.ts.map +1 -1
- package/dist/src/glib/letters-base.js +4 -3
- package/dist/src/glib/letters-base.js.map +1 -1
- package/dist/src/glib/line-font.d.ts +2 -2
- package/dist/src/glib/line-font.d.ts.map +1 -1
- package/dist/src/glib/line-font.js +2 -2
- package/dist/src/glib/line-font.js.map +1 -1
- package/dist/src/glib/paragraph-layout.d.ts +2 -2
- package/dist/src/glib/paragraph-layout.d.ts.map +1 -1
- package/dist/src/glib/paragraph-layout.js +1 -1
- package/dist/src/glib/paragraph-layout.js.map +1 -1
- package/dist/src/glib/path-shape-splitter.d.ts +1 -1
- package/dist/src/glib/path-shape-splitter.d.ts.map +1 -1
- package/dist/src/glib/path-shape-splitter.js +1 -1
- package/dist/src/glib/path-shape-splitter.js.map +1 -1
- package/dist/src/glib/path-shape.js +2 -2
- package/dist/src/glib/path-shape.js.map +1 -1
- package/dist/src/interpolate.d.ts +2 -2
- package/dist/src/interpolate.d.ts.map +1 -1
- package/dist/src/interpolate.js +1 -1
- package/dist/src/interpolate.js.map +1 -1
- package/dist/src/lattice.d.ts +1 -1
- package/dist/src/lattice.d.ts.map +1 -1
- package/dist/src/local-files.d.ts +129 -0
- package/dist/src/local-files.d.ts.map +1 -0
- package/dist/src/local-files.js +327 -0
- package/dist/src/local-files.js.map +1 -0
- package/dist/src/morph-animation.d.ts +1 -1
- package/dist/src/morph-animation.d.ts.map +1 -1
- package/dist/src/morph-animation.js +2 -2
- package/dist/src/morph-animation.js.map +1 -1
- package/dist/src/peano-fourier/fourier-shared.d.ts +1 -1
- package/dist/src/peano-fourier/fourier-shared.d.ts.map +1 -1
- package/dist/src/peano-fourier/fourier-shared.js +17 -4
- package/dist/src/peano-fourier/fourier-shared.js.map +1 -1
- package/dist/src/schedule-helper.d.ts +4 -4
- package/dist/src/schedule-helper.d.ts.map +1 -1
- package/dist/src/schedule-helper.js +2 -2
- package/dist/src/schedule-helper.js.map +1 -1
- package/dist/src/showable.d.ts +45 -4
- package/dist/src/showable.d.ts.map +1 -1
- package/dist/src/showable.js +37 -1
- package/dist/src/showable.js.map +1 -1
- package/dist/src/slide-components/arrow.d.ts +4 -4
- package/dist/src/slide-components/arrow.d.ts.map +1 -1
- package/dist/src/slide-components/arrow.js +2 -2
- package/dist/src/slide-components/arrow.js.map +1 -1
- package/dist/src/slide-components/cross-fade-transition.d.ts +3 -3
- package/dist/src/slide-components/cross-fade-transition.d.ts.map +1 -1
- package/dist/src/slide-components/cross-fade-transition.js +3 -3
- package/dist/src/slide-components/cross-fade-transition.js.map +1 -1
- package/dist/src/slide-components/duration-agnostic.d.ts +3 -3
- package/dist/src/slide-components/duration-agnostic.d.ts.map +1 -1
- package/dist/src/slide-components/duration-agnostic.js +1 -1
- package/dist/src/slide-components/duration-agnostic.js.map +1 -1
- package/dist/src/slide-components/fixed-duration.d.ts +1 -1
- package/dist/src/slide-components/fixed-duration.d.ts.map +1 -1
- package/dist/src/slide-components/fixed-duration.js +1 -1
- package/dist/src/slide-components/fixed-duration.js.map +1 -1
- package/dist/src/slide-components/fourier.d.ts +6 -6
- package/dist/src/slide-components/fourier.d.ts.map +1 -1
- package/dist/src/slide-components/fourier.js +6 -6
- package/dist/src/slide-components/fourier.js.map +1 -1
- package/dist/src/slide-components/frame-counter.d.ts +2 -2
- package/dist/src/slide-components/frame-counter.d.ts.map +1 -1
- package/dist/src/slide-components/frame-counter.js +1 -1
- package/dist/src/slide-components/frame-counter.js.map +1 -1
- package/dist/src/slide-components/function-graph.d.ts +2 -2
- package/dist/src/slide-components/function-graph.d.ts.map +1 -1
- package/dist/src/slide-components/function-graph.js +3 -3
- package/dist/src/slide-components/function-graph.js.map +1 -1
- package/dist/src/slide-components/halftone-shadow.d.ts +4 -4
- package/dist/src/slide-components/halftone-shadow.d.ts.map +1 -1
- package/dist/src/slide-components/halftone-shadow.js +2 -2
- package/dist/src/slide-components/halftone-shadow.js.map +1 -1
- package/dist/src/slide-components/handwriting-effect.d.ts +5 -5
- package/dist/src/slide-components/handwriting-effect.d.ts.map +1 -1
- package/dist/src/slide-components/handwriting-effect.js +5 -5
- package/dist/src/slide-components/handwriting-effect.js.map +1 -1
- package/dist/src/slide-components/hold.d.ts +3 -3
- package/dist/src/slide-components/hold.d.ts.map +1 -1
- package/dist/src/slide-components/hold.js +3 -3
- package/dist/src/slide-components/hold.js.map +1 -1
- package/dist/src/slide-components/image.d.ts +3 -3
- package/dist/src/slide-components/image.d.ts.map +1 -1
- package/dist/src/slide-components/image.js +3 -3
- package/dist/src/slide-components/image.js.map +1 -1
- package/dist/src/slide-components/in-parallel.d.ts +3 -3
- package/dist/src/slide-components/in-parallel.d.ts.map +1 -1
- package/dist/src/slide-components/in-parallel.js +2 -2
- package/dist/src/slide-components/in-parallel.js.map +1 -1
- package/dist/src/slide-components/in-series.d.ts +4 -4
- package/dist/src/slide-components/in-series.d.ts.map +1 -1
- package/dist/src/slide-components/in-series.js +5 -1
- package/dist/src/slide-components/in-series.js.map +1 -1
- package/dist/src/slide-components/live-duration.d.ts +1 -1
- package/dist/src/slide-components/live-duration.d.ts.map +1 -1
- package/dist/src/slide-components/live-duration.js +1 -1
- package/dist/src/slide-components/live-duration.js.map +1 -1
- package/dist/src/slide-components/multi-text.d.ts +76 -15
- package/dist/src/slide-components/multi-text.d.ts.map +1 -1
- package/dist/src/slide-components/multi-text.js +170 -25
- package/dist/src/slide-components/multi-text.js.map +1 -1
- package/dist/src/slide-components/rectangle.d.ts +3 -3
- package/dist/src/slide-components/rectangle.d.ts.map +1 -1
- package/dist/src/slide-components/rectangle.js +1 -1
- package/dist/src/slide-components/rectangle.js.map +1 -1
- package/dist/src/slide-components/registry.d.ts +1 -1
- package/dist/src/slide-components/registry.d.ts.map +1 -1
- package/dist/src/slide-components/registry.js +18 -18
- package/dist/src/slide-components/registry.js.map +1 -1
- package/dist/src/slide-components/serialize.d.ts +1 -1
- package/dist/src/slide-components/serialize.d.ts.map +1 -1
- package/dist/src/slide-components/serialize.js +2 -2
- package/dist/src/slide-components/serialize.js.map +1 -1
- package/dist/src/slide-components/show-error.js +2 -2
- package/dist/src/slide-components/show-error.js.map +1 -1
- package/dist/src/slide-components/simple-text.d.ts +4 -4
- package/dist/src/slide-components/simple-text.d.ts.map +1 -1
- package/dist/src/slide-components/simple-text.js +4 -4
- package/dist/src/slide-components/simple-text.js.map +1 -1
- package/dist/src/slide-components/slide-component.d.ts +5 -5
- package/dist/src/slide-components/slide-component.d.ts.map +1 -1
- package/dist/src/slide-components/slide-component.js +4 -4
- package/dist/src/slide-components/slide-component.js.map +1 -1
- package/dist/src/slide-components/slide-left.d.ts +3 -3
- package/dist/src/slide-components/slide-left.d.ts.map +1 -1
- package/dist/src/slide-components/slide-left.js +3 -3
- package/dist/src/slide-components/slide-left.js.map +1 -1
- package/dist/src/slide-components/split-video-clip.d.ts +2 -2
- package/dist/src/slide-components/split-video-clip.d.ts.map +1 -1
- package/dist/src/slide-components/split-video-clip.js +3 -3
- package/dist/src/slide-components/split-video-clip.js.map +1 -1
- package/dist/src/slide-components/text-effect.d.ts +2 -2
- package/dist/src/slide-components/text-effect.d.ts.map +1 -1
- package/dist/src/slide-components/traditional-text.d.ts +4 -4
- package/dist/src/slide-components/traditional-text.d.ts.map +1 -1
- package/dist/src/slide-components/traditional-text.js +3 -3
- package/dist/src/slide-components/traditional-text.js.map +1 -1
- package/dist/src/slide-components/video-clip.d.ts +17 -5
- package/dist/src/slide-components/video-clip.d.ts.map +1 -1
- package/dist/src/slide-components/video-clip.js +52 -11
- package/dist/src/slide-components/video-clip.js.map +1 -1
- package/dist/src/slide-components/video-info.d.ts +11 -11
- package/dist/src/slide-components/video-info.d.ts.map +1 -1
- package/dist/src/slide-components/video-info.js +32 -21
- package/dist/src/slide-components/video-info.js.map +1 -1
- package/dist/src/slow-image-sources.d.ts +7 -1
- package/dist/src/slow-image-sources.d.ts.map +1 -1
- package/dist/src/slow-image-sources.js +36 -5
- package/dist/src/slow-image-sources.js.map +1 -1
- package/dist/src/snapshot.d.ts +2 -2
- package/dist/src/snapshot.d.ts.map +1 -1
- package/dist/src/snapshot.js +31 -15
- package/dist/src/snapshot.js.map +1 -1
- package/dist/src/stroke-colors.d.ts +1 -1
- package/dist/src/stroke-colors.d.ts.map +1 -1
- package/dist/src/stroke-colors.js +4 -4
- package/dist/src/stroke-colors.js.map +1 -1
- package/dist/src/utility.d.ts +3 -4
- package/dist/src/utility.d.ts.map +1 -1
- package/dist/src/utility.js +4 -4
- package/dist/src/utility.js.map +1 -1
- package/lib/index.ts +3 -0
- package/lib/main-control.ts +119 -12
- package/package.json +7 -5
- package/src/binary-search.ts +2 -2
- package/src/corner-rounder.ts +128 -0
- package/src/cross-fade.ts +3 -3
- package/src/fancy-text.ts +255 -0
- package/src/glib/letters-base.ts +4 -3
- package/src/glib/line-font.ts +2 -2
- package/src/glib/paragraph-layout.ts +2 -2
- package/src/glib/path-shape-splitter.ts +1 -1
- package/src/glib/path-shape.ts +2 -2
- package/src/interpolate.ts +3 -3
- package/src/lattice.ts +1 -1
- package/src/local-files.ts +389 -0
- package/src/morph-animation.ts +2 -2
- package/src/peano-fourier/fourier-shared.ts +17 -4
- package/src/schedule-helper.ts +4 -4
- package/src/showable.ts +63 -4
- package/src/slide-components/arrow.ts +4 -4
- package/src/slide-components/cross-fade-transition.ts +4 -4
- package/src/slide-components/duration-agnostic.ts +3 -3
- package/src/slide-components/fixed-duration.ts +1 -1
- package/src/slide-components/fourier.ts +9 -9
- package/src/slide-components/frame-counter.ts +2 -2
- package/src/slide-components/function-graph.ts +4 -4
- package/src/slide-components/halftone-shadow.ts +4 -4
- package/src/slide-components/handwriting-effect.ts +7 -7
- package/src/slide-components/hold.ts +4 -4
- package/src/slide-components/image.ts +5 -5
- package/src/slide-components/in-parallel.ts +4 -4
- package/src/slide-components/in-series.ts +7 -4
- package/src/slide-components/live-duration.ts +1 -1
- package/src/slide-components/multi-text.ts +195 -30
- package/src/slide-components/rectangle.ts +3 -3
- package/src/slide-components/registry.ts +19 -19
- package/src/slide-components/serialize.ts +2 -2
- package/src/slide-components/show-error.ts +2 -2
- package/src/slide-components/simple-text.ts +7 -7
- package/src/slide-components/slide-component.ts +7 -7
- package/src/slide-components/slide-left.ts +4 -4
- package/src/slide-components/split-video-clip.ts +4 -4
- package/src/slide-components/text-effect.ts +2 -2
- package/src/slide-components/traditional-text.ts +5 -5
- package/src/slide-components/video-clip.ts +64 -13
- package/src/slide-components/video-info.ts +33 -21
- package/src/slow-image-sources.ts +38 -6
- package/src/snapshot.ts +34 -19
- package/src/stroke-colors.ts +4 -4
- package/src/utility.ts +5 -5
|
@@ -37,6 +37,10 @@ export function buildTextFramePanel(text, hooks) {
|
|
|
37
37
|
return b;
|
|
38
38
|
};
|
|
39
39
|
// MARK: Controls
|
|
40
|
+
const editTextRow = line("margin-bottom:0.3em");
|
|
41
|
+
const editTextBtn = button(editTextRow, "✎ Edit Text…", "Type this text, with a menu in front of each part naming its format. " +
|
|
42
|
+
"The canvas follows as you type.");
|
|
43
|
+
editTextBtn.addEventListener("click", () => hooks.editText());
|
|
40
44
|
const canvasRow = line();
|
|
41
45
|
const viewBtn = button(canvasRow, "👁", "Show the frame on the canvas");
|
|
42
46
|
const editBtn = button(canvasRow, "✎", "Drag the frame on the canvas. Corners resize it; the middle moves it. " +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-text-panel.js","sourceRoot":"","sources":["../../dev/multi-text-panel.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,IAAI,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AK,CAAC,OAAO,CAAC,CAAC;QAClD,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,GAAG,CAAC,QAAQ,CAAC;QAEhD,OAAO,CAAC,IAAI,EAAE,CAAC;QAEf,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,CAAC,OAAe,EAAE,EAAE;YAC/B,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC1C,GAAG,CAAC,WAAW,GAAG,OAAO,CAAC;YAC1B,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC,CAAC;QACF,IAAI,CAAC,QAAQ;YAAE,IAAI,CAAC,MAAM,EAAY,CAAC,CAAC;QACxC,2EAA2E;QAC3E,gCAAgC;QAChC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,GAAG,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;YAC/C,IAAI,CACF,2CAA2C,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,0BAA0B,CACnG,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;YAChD,IAAI,CACF,4CAA4C,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,0BAA0B,CACpG,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** The contents of the player's `<body>`. {@link canvasRecorder.start} puts this in the page. */
|
|
2
|
-
export declare const playerBodyHtml = "\n <!-- \u2500\u2500 Left column \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div id=\"left-col\">\n <div id=\"top-left\">\n <div id=\"zoomControls\">\n <label\n >Zoom:\n <select id=\"zoomSelect\">\n <option value=\"fit\" selected>Fit</option>\n <option value=\"0.25\">25%</option>\n <option value=\"0.50\">50%</option>\n <option value=\"1.00\">100%</option>\n <option value=\"2.00\">200%</option>\n </select>\n </label>\n <button type=\"button\" id=\"loadJsonTestBtn\">\uD83D\uDCC2 Import</button>\n <!-- Each status is outside its label: clicking inside a label\n toggles the checkbox, and a status can hold buttons. -->\n <span style=\"white-space: nowrap\">\n <label\n title=\"Your work is always saved inside the browser (see Load). When this is checked, every one of those saves is also written to a JSON file on disk, for git and your editor. Checking it asks where.\"\n ><input type=\"checkbox\" id=\"jsonSyncCheckbox\" disabled /> Sync to\n file:</label\n >\n <span id=\"jsonSyncStatus\" style=\"font-size: 0.85em\">\u2026</span>\n </span>\n <button\n type=\"button\"\n id=\"saveCopyAsJsonBtn\"\n title=\"Write the current state to a file of your choosing, once. Doesn't change which file is synced.\"\n >\n \uD83D\uDCCB Save Copy As\u2026\n </button>\n <span style=\"white-space: nowrap\">\n <label\n title=\"The TypeScript defaults, written to a JSON file whenever they change. Compare with the synced file to see what the Visual Editor changed.\"\n ><input type=\"checkbox\" id=\"defaultsSyncCheckbox\" disabled /> Sync\n defaults to file:</label\n >\n <span id=\"defaultsSyncStatus\" style=\"font-size: 0.85em\">\u2026</span>\n </span>\n <span style=\"white-space: nowrap\">\n <label\n title=\"A readable list of every difference from the TypeScript defaults, with code you can paste, rewritten whenever the synced file is.\"\n ><input type=\"checkbox\" id=\"diffSyncCheckbox\" disabled /> Sync diffs\n to file:</label\n >\n <span id=\"diffSyncStatus\" style=\"font-size: 0.85em\">\u2026</span>\n </span>\n <label hidden\n ><input\n type=\"radio\"\n name=\"quality\"\n id=\"highQuality\"\n value=\"High Quality\"\n checked\n />\n High Quality</label\n >\n <label hidden\n ><input\n type=\"radio\"\n name=\"quality\"\n id=\"lowPower\"\n value=\"Low Power\"\n />\n Low Power</label\n >\n </div>\n <div id=\"canvasViewport\">\n <canvas id=\"main\"></canvas>\n <div id=\"canvasLoading\">Loading\u2026</div>\n </div>\n </div>\n <div class=\"hresize\" id=\"hresize-left\"></div>\n <div id=\"bottom-left\">\n <fieldset id=\"liveControls\">\n <fieldset id=\"play-controls\">\n <div class=\"range-container\">\n <label><input type=\"checkbox\" id=\"play\" />Play</label>\n <button id=\"back5s\" type=\"button\">\u23EE5s</button>\n <span style=\"background-color: lightcyan\"\n > (At end\n <label\n ><input\n type=\"radio\"\n name=\"onSectionEnd\"\n value=\"pause\"\n checked\n />Pause</label\n >\n <label\n ><input\n type=\"radio\"\n name=\"onSectionEnd\"\n value=\"repeat\"\n />Repeat</label\n >) </span\n >\n <input type=\"number\" id=\"playPositionSeconds\" value=\"0\" />\n <input type=\"range\" id=\"playPositionRange\" value=\"0\" step=\"any\" />\n </div>\n </fieldset>\n <div>\n <label\n title=\"The component the Visual Editor works on. Normally the play limits follow it.\"\n >Edit <select id=\"chapterSelector\"></select\n ></label>\n <label\n title=\"Picking another component to edit leaves the play limits where they are. For watching one section over and over while you fix things anywhere.\"\n ><input type=\"checkbox\" id=\"keepLimits\" />Keep play\n limits</label\n >\n </div>\n <div id=\"limitsRow\">\n <span id=\"limitsInfo\"></span>\n <button type=\"button\" id=\"playRootBtn\">Play this one</button>\n </div>\n <div\n id=\"autoplayFallbackMsg\"\n hidden\n style=\"\n background: #ffe0b2;\n border: 1px solid #e65100;\n border-radius: 4px;\n padding: 0.4em 0.75em;\n margin-bottom: 0.4em;\n \"\n >\n \u26A0\uFE0F Unexpected problem playing audio. Falling back to silent mode.\n </div>\n <div\n style=\"\n display: flex;\n align-items: center;\n gap: 0.75em;\n flex-wrap: wrap;\n \"\n >\n <label><input type=\"checkbox\" id=\"muteAudio\" /> Mute</label>\n <label\n >Vol\n <input\n type=\"range\"\n id=\"volumeAudio\"\n min=\"0\"\n max=\"1\"\n step=\"0.05\"\n value=\"1\"\n style=\"width: 5em\"\n /></label>\n <label\n >Speed\n <select id=\"speedAudio\">\n <option value=\"0.5\">0.5\u00D7</option>\n <option value=\"0.75\">0.75\u00D7</option>\n <option value=\"1\" selected>1\u00D7</option>\n <option value=\"1.25\">1.25\u00D7</option>\n <option value=\"1.5\">1.5\u00D7</option>\n <option value=\"2\">2\u00D7</option>\n </select>\n </label>\n </div>\n </fieldset>\n <div\n style=\"\n border: 0.3em inset rgb(178, 178, 178);\n padding: 0.5em;\n margin-top: 0.5em;\n \"\n >\n <button id=\"startRecording\">Record and Save Video</button>\n <button id=\"cancelRecording\" disabled>Stop Recording</button>\n <button id=\"recordJustSound\">Record Just Sound</button>\n <div id=\"info\"><i>status goes here</i>...</div>\n </div>\n <p>\n Hot keys: \u2325Space to play/pause. \u2325B to go back 5 seconds and play. \u23250\n to jump to the start of the current section. Alt instead of \u2325 on a PC.\n </p>\n <br />\n <h1>Debug Log</h1>\n <button id=\"debugLogClearBtn\" type=\"button\">Clear</button>\n <pre\n id=\"debugLog\"\n style=\"\n background: #f5f5f5;\n border: 1px solid #ccc;\n padding: 0.5em;\n overflow: auto;\n max-height: 20em;\n white-space: pre-wrap;\n word-break: break-all;\n font-size: 0.8em;\n \"\n ></pre>\n <br />\n <h1>Database Dump</h1>\n <button id=\"dumpDbBtn\" type=\"button\">\uD83D\uDDC4 Dump All DB State</button>\n <pre\n id=\"dbDump\"\n style=\"\n background: #f5f5f5;\n border: 1px solid #ccc;\n padding: 1em;\n overflow: auto;\n max-height: 40em;\n white-space: pre-wrap;\n word-break: break-all;\n font-size: 0.85em;\n \"\n ></pre>\n </div>\n </div>\n\n <!-- \u2500\u2500 Vertical resize handle \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div id=\"vresize\"></div>\n\n <!-- \u2500\u2500 Right column \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div id=\"right-col\">\n <div id=\"top-right\">\n <div id=\"tr-header\">\n <button id=\"reloadBtn\" type=\"button\">\u21BA Reload</button>\n <span id=\"scheduleHistoryControls\" hidden>\n <button\n id=\"openHistoryDialogBtn\"\n type=\"button\"\n title=\"Load / Browse History\"\n >\n \uD83D\uDCC2 Load\n </button>\n </span>\n <label\n title=\"Show what's said in each sound clip, word by word, on the timeline. Each sound file is transcribed once, on this computer, in the background. The first time downloads about 170 MB of speech models.\"\n >\n <input type=\"checkbox\" id=\"transcriptsCheckbox\" />\n \uD83D\uDDE3 Transcripts\n </label>\n <span id=\"transcriptsStatus\" style=\"font-size: 0.85em; color: #555\"></span>\n <label\n title=\"Show the sound clips' transcripts as text you can read, search and copy, in place of the timeline. Click a word to jump to it. Select words to cut them out.\"\n >\n <input type=\"checkbox\" id=\"transcriptViewCheckbox\" />\n \uD83D\uDCD6 Text\n </label>\n </div>\n <canvas\n id=\"timelineCanvas\"\n title=\"Click to seek \u00B7 Shift-drag to scrub \u00B7 Drag to pan \u00B7 Scroll to zoom \u00B7 Click block to select \u00B7 Click a word to play from just before it \u00B7 Dragged sound clip edges snap to the quiet moments between words (hold Alt to drag freely)\"\n ></canvas>\n <fieldset id=\"componentsEditor\" hidden>\n <!-- dynamically populated by canvas-recorder.ts -->\n </fieldset>\n </div>\n <div class=\"hresize\" id=\"hresize-right\"></div>\n <div id=\"bottom-right\">\n <fieldset id=\"scheduleEditor\">\n <p>Coming soon! Edit fields here. TODO.</p>\n </fieldset>\n </div>\n </div>\n\n <dialog id=\"historyDialog\" style=\"min-width: 30em; padding: 1em\">\n <h3 style=\"margin: 0 0 0.6em 0\">Load</h3>\n <div\n id=\"historyDialogHint\"\n style=\"\n margin-bottom: 0.5em;\n font-size: 0.85em;\n color: #555;\n font-style: italic;\n min-height: 1.2em;\n \"\n ></div>\n <ul\n id=\"historyList\"\n style=\"\n list-style: none;\n padding: 0;\n margin: 0 0 1em 0;\n max-height: 22em;\n overflow-y: auto;\n border: 1px solid #ccc;\n border-radius: 4px;\n min-height: 2em;\n \"\n ></ul>\n <div style=\"display: flex; gap: 0.5em; align-items: center\">\n <button\n id=\"historyDeleteBtn\"\n type=\"button\"\n disabled\n title=\"Remove this entry from the database\"\n >\n \uD83D\uDDD1 Delete\n </button>\n <div style=\"flex: 1\"></div>\n <button id=\"historyAbandonBtn\" type=\"button\" hidden>\n Switch & Abandon\n </button>\n <button id=\"historySaveBtn\" type=\"button\" hidden>\n Switch & Save\n </button>\n <button id=\"historyOkBtn\" type=\"button\">Keep</button>\n <button id=\"historyCancelBtn\" type=\"button\">Revert</button>\n </div>\n </dialog>\n\n <dialog id=\"saveDialog\" style=\"min-width: 28em\">\n <h2 style=\"margin-top: 0\">Save Video</h2>\n <div style=\"margin-bottom: 0.6em\">\n <label\n >Chapter:\n <select id=\"saveChapterSelect\" style=\"max-width: 28em\"></select>\n </label>\n \n <button type=\"button\" id=\"saveCopyChapterBtn\">Copy from viewer</button>\n \n <button type=\"button\" id=\"saveAllBtn\">Save All</button>\n </div>\n <div style=\"margin-bottom: 0.6em; display: flex; gap: 1.5em\">\n <label\n >Start (s):\n <input\n type=\"number\"\n id=\"saveStartSeconds\"\n step=\"0.001\"\n min=\"0\"\n style=\"width: 8em\"\n />\n </label>\n <label\n >End (s):\n <input\n type=\"number\"\n id=\"saveEndSeconds\"\n step=\"0.001\"\n min=\"0\"\n style=\"width: 8em\"\n />\n </label>\n </div>\n <table style=\"margin-bottom: 0.75em; border-collapse: collapse\">\n <tr>\n <td>Start:</td>\n <td\n id=\"saveInfoStart\"\n style=\"padding-left: 1em; font-family: monospace\"\n ></td>\n </tr>\n <tr>\n <td>End:</td>\n <td\n id=\"saveInfoEnd\"\n style=\"padding-left: 1em; font-family: monospace\"\n ></td>\n </tr>\n <tr>\n <td>Duration:</td>\n <td\n id=\"saveInfoDuration\"\n style=\"padding-left: 1em; font-family: monospace\"\n ></td>\n </tr>\n <tr>\n <td>Frames:</td>\n <td\n id=\"saveInfoFrames\"\n style=\"padding-left: 1em; font-family: monospace\"\n ></td>\n </tr>\n </table>\n <div>\n <button type=\"button\" id=\"saveOkBtn\">OK \u2014 Choose File</button>\n \n <button type=\"button\" id=\"saveDialogCancelBtn\">Cancel</button>\n </div>\n </dialog>\n ";
|
|
2
|
+
export declare const playerBodyHtml = "\n <!-- \u2500\u2500 Left column \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div id=\"left-col\">\n <div id=\"top-left\">\n <div id=\"zoomControls\">\n <label\n >Zoom:\n <select id=\"zoomSelect\">\n <option value=\"fit\" selected>Fit</option>\n <option value=\"0.25\">25%</option>\n <option value=\"0.50\">50%</option>\n <option value=\"1.00\">100%</option>\n <option value=\"2.00\">200%</option>\n </select>\n </label>\n <span\n id=\"videoSizeControls\"\n style=\"white-space: nowrap\"\n title=\"The size of the video. Pixels: the saved file. Units: the coordinates everything is drawn in. Remembered for this video.\"\n >Size:\n <input type=\"number\" id=\"videoPixelWidth\" min=\"2\" step=\"2\" style=\"width: 4.5em\" />\n \u00D7\n <input type=\"number\" id=\"videoPixelHeight\" min=\"2\" step=\"2\" style=\"width: 4.5em\" />\n px,\n <input type=\"number\" id=\"videoUnitWidth\" min=\"0\" step=\"any\" style=\"width: 3.5em\" />\n \u00D7\n <input type=\"number\" id=\"videoUnitHeight\" min=\"0\" step=\"any\" style=\"width: 3.5em\" />\n units\n <span id=\"videoSizeWarning\" style=\"color: #a06000\"></span>\n </span>\n <button\n type=\"button\"\n id=\"localFilesBtn\"\n hidden\n title=\"Some of this video's files are on your computer, and the browser needs your OK before it reads them again.\"\n >\n \uD83D\uDD13 Allow local files\n </button>\n <button type=\"button\" id=\"loadJsonTestBtn\">\uD83D\uDCC2 Import</button>\n <!-- Each status is outside its label: clicking inside a label\n toggles the checkbox, and a status can hold buttons. -->\n <span style=\"white-space: nowrap\">\n <label\n title=\"Your work is always saved inside the browser (see Load). When this is checked, every one of those saves is also written to a JSON file on disk, for git and your editor. Checking it asks where.\"\n ><input type=\"checkbox\" id=\"jsonSyncCheckbox\" disabled /> Sync to\n file:</label\n >\n <span id=\"jsonSyncStatus\" style=\"font-size: 0.85em\">\u2026</span>\n </span>\n <button\n type=\"button\"\n id=\"saveCopyAsJsonBtn\"\n title=\"Write the current state to a file of your choosing, once. Doesn't change which file is synced.\"\n >\n \uD83D\uDCCB Save Copy As\u2026\n </button>\n <span style=\"white-space: nowrap\">\n <label\n title=\"The TypeScript defaults, written to a JSON file whenever they change. Compare with the synced file to see what the Visual Editor changed.\"\n ><input type=\"checkbox\" id=\"defaultsSyncCheckbox\" disabled /> Sync\n defaults to file:</label\n >\n <span id=\"defaultsSyncStatus\" style=\"font-size: 0.85em\">\u2026</span>\n </span>\n <span style=\"white-space: nowrap\">\n <label\n title=\"A readable list of every difference from the TypeScript defaults, with code you can paste, rewritten whenever the synced file is.\"\n ><input type=\"checkbox\" id=\"diffSyncCheckbox\" disabled /> Sync diffs\n to file:</label\n >\n <span id=\"diffSyncStatus\" style=\"font-size: 0.85em\">\u2026</span>\n </span>\n <label hidden\n ><input\n type=\"radio\"\n name=\"quality\"\n id=\"highQuality\"\n value=\"High Quality\"\n checked\n />\n High Quality</label\n >\n <label hidden\n ><input\n type=\"radio\"\n name=\"quality\"\n id=\"lowPower\"\n value=\"Low Power\"\n />\n Low Power</label\n >\n </div>\n <div id=\"canvasViewport\">\n <canvas id=\"main\"></canvas>\n <div id=\"canvasLoading\">Loading\u2026</div>\n </div>\n </div>\n <div class=\"hresize\" id=\"hresize-left\"></div>\n <div id=\"bottom-left\">\n <fieldset id=\"liveControls\">\n <fieldset id=\"play-controls\">\n <div class=\"range-container\">\n <label><input type=\"checkbox\" id=\"play\" />Play</label>\n <button id=\"back5s\" type=\"button\">\u23EE5s</button>\n <span style=\"background-color: lightcyan\"\n > (At end\n <label\n ><input\n type=\"radio\"\n name=\"onSectionEnd\"\n value=\"pause\"\n checked\n />Pause</label\n >\n <label\n ><input\n type=\"radio\"\n name=\"onSectionEnd\"\n value=\"repeat\"\n />Repeat</label\n >) </span\n >\n <input\n type=\"number\"\n id=\"playPositionSeconds\"\n value=\"0\"\n title=\"The play position, in seconds. Option-\u2190 and Option-\u2192 step one frame.\"\n />\n <input type=\"range\" id=\"playPositionRange\" value=\"0\" step=\"any\" />\n </div>\n </fieldset>\n <div>\n <label\n title=\"The component the Visual Editor works on. Normally the play limits follow it.\"\n >Edit <select id=\"chapterSelector\"></select\n ></label>\n <label\n title=\"Picking another component to edit leaves the play limits where they are. For watching one section over and over while you fix things anywhere.\"\n ><input type=\"checkbox\" id=\"keepLimits\" />Keep play\n limits</label\n >\n </div>\n <div id=\"limitsRow\">\n <span id=\"limitsInfo\"></span>\n <button type=\"button\" id=\"playRootBtn\">Play this one</button>\n </div>\n <div\n id=\"autoplayFallbackMsg\"\n hidden\n style=\"\n background: #ffe0b2;\n border: 1px solid #e65100;\n border-radius: 4px;\n padding: 0.4em 0.75em;\n margin-bottom: 0.4em;\n \"\n >\n \u26A0\uFE0F Unexpected problem playing audio. Falling back to silent mode.\n </div>\n <div\n style=\"\n display: flex;\n align-items: center;\n gap: 0.75em;\n flex-wrap: wrap;\n \"\n >\n <label><input type=\"checkbox\" id=\"muteAudio\" /> Mute</label>\n <label\n >Vol\n <input\n type=\"range\"\n id=\"volumeAudio\"\n min=\"0\"\n max=\"1\"\n step=\"0.05\"\n value=\"1\"\n style=\"width: 5em\"\n /></label>\n <label\n >Speed\n <select id=\"speedAudio\">\n <option value=\"0.5\">0.5\u00D7</option>\n <option value=\"0.75\">0.75\u00D7</option>\n <option value=\"1\" selected>1\u00D7</option>\n <option value=\"1.25\">1.25\u00D7</option>\n <option value=\"1.5\">1.5\u00D7</option>\n <option value=\"2\">2\u00D7</option>\n </select>\n </label>\n <button\n type=\"button\"\n id=\"recordModeBtn\"\n title=\"Show or hide the voice recorder. It turns the mic on while it's showing.\"\n >\n \uD83C\uDF99 Record mode\n </button>\n </div>\n </fieldset>\n <div id=\"voicePanelHolder\"></div>\n <div\n style=\"\n border: 0.3em inset rgb(178, 178, 178);\n padding: 0.5em;\n margin-top: 0.5em;\n \"\n >\n <button id=\"startRecording\">Record and Save Video</button>\n <button id=\"cancelRecording\" disabled>Stop Recording</button>\n <button id=\"recordJustSound\">Record Just Sound</button>\n <div id=\"info\"><i>status goes here</i>...</div>\n </div>\n <div style=\"margin: 1em 0\">\n Hot keys:\n <ul style=\"margin: 0\">\n <li>\u2325Space to play or pause.</li>\n <li>\u2325B to go back 5 seconds and play.</li>\n <li>\u23250 to jump to the start of the current section.</li>\n <li>\u2325\u2190 and \u2325\u2192 to step one frame back or forward.</li>\n </ul>\n Alt instead of \u2325 on a PC.\n </div>\n <br />\n <h1>Debug Log</h1>\n <button id=\"debugLogClearBtn\" type=\"button\">Clear</button>\n <pre\n id=\"debugLog\"\n style=\"\n background: #f5f5f5;\n border: 1px solid #ccc;\n padding: 0.5em;\n overflow: auto;\n max-height: 20em;\n white-space: pre-wrap;\n word-break: break-all;\n font-size: 0.8em;\n \"\n ></pre>\n <br />\n <h1>Database Dump</h1>\n <button id=\"dumpDbBtn\" type=\"button\">\uD83D\uDDC4 Dump All DB State</button>\n <pre\n id=\"dbDump\"\n style=\"\n background: #f5f5f5;\n border: 1px solid #ccc;\n padding: 1em;\n overflow: auto;\n max-height: 40em;\n white-space: pre-wrap;\n word-break: break-all;\n font-size: 0.85em;\n \"\n ></pre>\n </div>\n </div>\n\n <!-- \u2500\u2500 Vertical resize handle \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div id=\"vresize\"></div>\n\n <!-- \u2500\u2500 Right column \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div id=\"right-col\">\n <div id=\"top-right\">\n <div id=\"tr-header\">\n <button id=\"reloadBtn\" type=\"button\">\u21BA Reload</button>\n <span id=\"scheduleHistoryControls\" hidden>\n <button\n id=\"openHistoryDialogBtn\"\n type=\"button\"\n title=\"Load / Browse History\"\n >\n \uD83D\uDCC2 Load\n </button>\n </span>\n <label\n title=\"Show what's said in each sound clip, word by word, on the timeline. Each sound file is transcribed once, on this computer, in the background. The first time downloads about 170 MB of speech models.\"\n >\n <input type=\"checkbox\" id=\"transcriptsCheckbox\" />\n \uD83D\uDDE3 Transcripts\n </label>\n <span id=\"transcriptsStatus\" style=\"font-size: 0.85em; color: #555\"></span>\n <label\n title=\"Show the sound clips' transcripts as text you can read, search and copy, in place of the timeline. Click a word to jump to it. Select words to cut them out.\"\n >\n <input type=\"checkbox\" id=\"transcriptViewCheckbox\" />\n \uD83D\uDCD6 Text\n </label>\n </div>\n <canvas\n id=\"timelineCanvas\"\n title=\"Click to seek \u00B7 Shift-drag to scrub \u00B7 Drag to pan \u00B7 Scroll to zoom \u00B7 Click block to select \u00B7 Click a word to play from just before it \u00B7 Dragged sound clip edges snap to the quiet moments between words (hold Alt to drag freely)\"\n ></canvas>\n <fieldset id=\"componentsEditor\" hidden>\n <!-- dynamically populated by canvas-recorder.ts -->\n </fieldset>\n </div>\n <div class=\"hresize\" id=\"hresize-right\"></div>\n <div id=\"bottom-right\">\n <fieldset id=\"scheduleEditor\">\n <p>Coming soon! Edit fields here. TODO.</p>\n </fieldset>\n </div>\n </div>\n\n <dialog id=\"historyDialog\" style=\"min-width: 30em; padding: 1em\">\n <h3 style=\"margin: 0 0 0.6em 0\">Load</h3>\n <div\n id=\"historyDialogHint\"\n style=\"\n margin-bottom: 0.5em;\n font-size: 0.85em;\n color: #555;\n font-style: italic;\n min-height: 1.2em;\n \"\n ></div>\n <ul\n id=\"historyList\"\n style=\"\n list-style: none;\n padding: 0;\n margin: 0 0 1em 0;\n max-height: 22em;\n overflow-y: auto;\n border: 1px solid #ccc;\n border-radius: 4px;\n min-height: 2em;\n \"\n ></ul>\n <div style=\"display: flex; gap: 0.5em; align-items: center\">\n <button\n id=\"historyDeleteBtn\"\n type=\"button\"\n disabled\n title=\"Remove this entry from the database\"\n >\n \uD83D\uDDD1 Delete\n </button>\n <div style=\"flex: 1\"></div>\n <button id=\"historyAbandonBtn\" type=\"button\" hidden>\n Switch & Abandon\n </button>\n <button id=\"historySaveBtn\" type=\"button\" hidden>\n Switch & Save\n </button>\n <button id=\"historyOkBtn\" type=\"button\">Keep</button>\n <button id=\"historyCancelBtn\" type=\"button\">Revert</button>\n </div>\n </dialog>\n\n <dialog id=\"saveDialog\" style=\"min-width: 28em\">\n <h2 style=\"margin-top: 0\">Save Video</h2>\n <div style=\"margin-bottom: 0.6em\">\n <label\n >Chapter:\n <select id=\"saveChapterSelect\" style=\"max-width: 28em\"></select>\n </label>\n \n <button type=\"button\" id=\"saveCopyChapterBtn\">Copy from viewer</button>\n \n <button type=\"button\" id=\"saveAllBtn\">Save All</button>\n </div>\n <div style=\"margin-bottom: 0.6em; display: flex; gap: 1.5em\">\n <label\n >Start (s):\n <input\n type=\"number\"\n id=\"saveStartSeconds\"\n step=\"0.001\"\n min=\"0\"\n style=\"width: 8em\"\n />\n </label>\n <label\n >End (s):\n <input\n type=\"number\"\n id=\"saveEndSeconds\"\n step=\"0.001\"\n min=\"0\"\n style=\"width: 8em\"\n />\n </label>\n </div>\n <div style=\"margin-bottom: 0.6em\">\n <label\n >Size:\n <input\n type=\"number\"\n id=\"saveWidth\"\n min=\"2\"\n step=\"2\"\n style=\"width: 6em\"\n />\n </label>\n \u00D7\n <label\n ><input\n type=\"number\"\n id=\"saveHeight\"\n min=\"2\"\n step=\"2\"\n style=\"width: 6em\"\n />\n px</label\n >\n \n <label\n title=\"Change the other number to match, keeping the video's shape. Uncheck to stretch or squish the picture.\"\n ><input type=\"checkbox\" id=\"saveKeepAspect\" checked /> Keep aspect\n ratio</label\n >\n \n <button\n type=\"button\"\n id=\"saveVideoSizeBtn\"\n title=\"Use the video's own size.\"\n >\n Video size\n </button>\n <div id=\"saveSizeNote\" style=\"font-size: 0.85em; min-height: 1.2em\"></div>\n </div>\n <table style=\"margin-bottom: 0.75em; border-collapse: collapse\">\n <tr>\n <td>Start:</td>\n <td\n id=\"saveInfoStart\"\n style=\"padding-left: 1em; font-family: monospace\"\n ></td>\n </tr>\n <tr>\n <td>End:</td>\n <td\n id=\"saveInfoEnd\"\n style=\"padding-left: 1em; font-family: monospace\"\n ></td>\n </tr>\n <tr>\n <td>Duration:</td>\n <td\n id=\"saveInfoDuration\"\n style=\"padding-left: 1em; font-family: monospace\"\n ></td>\n </tr>\n <tr>\n <td>Frames:</td>\n <td\n id=\"saveInfoFrames\"\n style=\"padding-left: 1em; font-family: monospace\"\n ></td>\n </tr>\n </table>\n <div\n id=\"saveLocalFilesRow\"\n hidden\n style=\"margin-bottom: 0.6em; color: #a06000\"\n >\n <span id=\"saveLocalFilesNote\"></span>\n <button type=\"button\" id=\"saveLocalFilesBtn\">\uD83D\uDD13 Allow</button>\n </div>\n <div>\n <button type=\"button\" id=\"saveOkBtn\">OK \u2014 Choose File</button>\n \n <button type=\"button\" id=\"saveDialogCancelBtn\">Cancel</button>\n </div>\n </dialog>\n ";
|
|
3
3
|
//# sourceMappingURL=player-body.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player-body.d.ts","sourceRoot":"","sources":["../../dev/player-body.ts"],"names":[],"mappings":"AAEA,kGAAkG;AAClG,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"player-body.d.ts","sourceRoot":"","sources":["../../dev/player-body.ts"],"names":[],"mappings":"AAEA,kGAAkG;AAClG,eAAO,MAAM,cAAc,6gjBAkdxB,CAAC"}
|
package/dist/dev/player-body.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Originally generated from canvas-recorder's canvas-recorder.html. This is the master copy now.
|
|
2
2
|
/** The contents of the player's `<body>`. {@link canvasRecorder.start} puts this in the page. */
|
|
3
3
|
export const playerBodyHtml = `
|
|
4
4
|
<!-- ── Left column ─────────────────────────────────────────────── -->
|
|
@@ -15,6 +15,29 @@ export const playerBodyHtml = `
|
|
|
15
15
|
<option value="2.00">200%</option>
|
|
16
16
|
</select>
|
|
17
17
|
</label>
|
|
18
|
+
<span
|
|
19
|
+
id="videoSizeControls"
|
|
20
|
+
style="white-space: nowrap"
|
|
21
|
+
title="The size of the video. Pixels: the saved file. Units: the coordinates everything is drawn in. Remembered for this video."
|
|
22
|
+
>Size:
|
|
23
|
+
<input type="number" id="videoPixelWidth" min="2" step="2" style="width: 4.5em" />
|
|
24
|
+
×
|
|
25
|
+
<input type="number" id="videoPixelHeight" min="2" step="2" style="width: 4.5em" />
|
|
26
|
+
px,
|
|
27
|
+
<input type="number" id="videoUnitWidth" min="0" step="any" style="width: 3.5em" />
|
|
28
|
+
×
|
|
29
|
+
<input type="number" id="videoUnitHeight" min="0" step="any" style="width: 3.5em" />
|
|
30
|
+
units
|
|
31
|
+
<span id="videoSizeWarning" style="color: #a06000"></span>
|
|
32
|
+
</span>
|
|
33
|
+
<button
|
|
34
|
+
type="button"
|
|
35
|
+
id="localFilesBtn"
|
|
36
|
+
hidden
|
|
37
|
+
title="Some of this video's files are on your computer, and the browser needs your OK before it reads them again."
|
|
38
|
+
>
|
|
39
|
+
🔓 Allow local files
|
|
40
|
+
</button>
|
|
18
41
|
<button type="button" id="loadJsonTestBtn">📂 Import</button>
|
|
19
42
|
<!-- Each status is outside its label: clicking inside a label
|
|
20
43
|
toggles the checkbox, and a status can hold buttons. -->
|
|
@@ -99,7 +122,12 @@ export const playerBodyHtml = `
|
|
|
99
122
|
/>Repeat</label
|
|
100
123
|
>) </span
|
|
101
124
|
>
|
|
102
|
-
<input
|
|
125
|
+
<input
|
|
126
|
+
type="number"
|
|
127
|
+
id="playPositionSeconds"
|
|
128
|
+
value="0"
|
|
129
|
+
title="The play position, in seconds. Option-← and Option-→ step one frame."
|
|
130
|
+
/>
|
|
103
131
|
<input type="range" id="playPositionRange" value="0" step="any" />
|
|
104
132
|
</div>
|
|
105
133
|
</fieldset>
|
|
@@ -162,8 +190,16 @@ export const playerBodyHtml = `
|
|
|
162
190
|
<option value="2">2×</option>
|
|
163
191
|
</select>
|
|
164
192
|
</label>
|
|
193
|
+
<button
|
|
194
|
+
type="button"
|
|
195
|
+
id="recordModeBtn"
|
|
196
|
+
title="Show or hide the voice recorder. It turns the mic on while it's showing."
|
|
197
|
+
>
|
|
198
|
+
🎙 Record mode
|
|
199
|
+
</button>
|
|
165
200
|
</div>
|
|
166
201
|
</fieldset>
|
|
202
|
+
<div id="voicePanelHolder"></div>
|
|
167
203
|
<div
|
|
168
204
|
style="
|
|
169
205
|
border: 0.3em inset rgb(178, 178, 178);
|
|
@@ -176,10 +212,16 @@ export const playerBodyHtml = `
|
|
|
176
212
|
<button id="recordJustSound">Record Just Sound</button>
|
|
177
213
|
<div id="info"><i>status goes here</i>...</div>
|
|
178
214
|
</div>
|
|
179
|
-
<
|
|
180
|
-
Hot keys:
|
|
181
|
-
|
|
182
|
-
|
|
215
|
+
<div style="margin: 1em 0">
|
|
216
|
+
Hot keys:
|
|
217
|
+
<ul style="margin: 0">
|
|
218
|
+
<li>⌥Space to play or pause.</li>
|
|
219
|
+
<li>⌥B to go back 5 seconds and play.</li>
|
|
220
|
+
<li>⌥0 to jump to the start of the current section.</li>
|
|
221
|
+
<li>⌥← and ⌥→ to step one frame back or forward.</li>
|
|
222
|
+
</ul>
|
|
223
|
+
Alt instead of ⌥ on a PC.
|
|
224
|
+
</div>
|
|
183
225
|
<br />
|
|
184
226
|
<h1>Debug Log</h1>
|
|
185
227
|
<button id="debugLogClearBtn" type="button">Clear</button>
|
|
@@ -342,6 +384,44 @@ export const playerBodyHtml = `
|
|
|
342
384
|
/>
|
|
343
385
|
</label>
|
|
344
386
|
</div>
|
|
387
|
+
<div style="margin-bottom: 0.6em">
|
|
388
|
+
<label
|
|
389
|
+
>Size:
|
|
390
|
+
<input
|
|
391
|
+
type="number"
|
|
392
|
+
id="saveWidth"
|
|
393
|
+
min="2"
|
|
394
|
+
step="2"
|
|
395
|
+
style="width: 6em"
|
|
396
|
+
/>
|
|
397
|
+
</label>
|
|
398
|
+
×
|
|
399
|
+
<label
|
|
400
|
+
><input
|
|
401
|
+
type="number"
|
|
402
|
+
id="saveHeight"
|
|
403
|
+
min="2"
|
|
404
|
+
step="2"
|
|
405
|
+
style="width: 6em"
|
|
406
|
+
/>
|
|
407
|
+
px</label
|
|
408
|
+
>
|
|
409
|
+
|
|
410
|
+
<label
|
|
411
|
+
title="Change the other number to match, keeping the video's shape. Uncheck to stretch or squish the picture."
|
|
412
|
+
><input type="checkbox" id="saveKeepAspect" checked /> Keep aspect
|
|
413
|
+
ratio</label
|
|
414
|
+
>
|
|
415
|
+
|
|
416
|
+
<button
|
|
417
|
+
type="button"
|
|
418
|
+
id="saveVideoSizeBtn"
|
|
419
|
+
title="Use the video's own size."
|
|
420
|
+
>
|
|
421
|
+
Video size
|
|
422
|
+
</button>
|
|
423
|
+
<div id="saveSizeNote" style="font-size: 0.85em; min-height: 1.2em"></div>
|
|
424
|
+
</div>
|
|
345
425
|
<table style="margin-bottom: 0.75em; border-collapse: collapse">
|
|
346
426
|
<tr>
|
|
347
427
|
<td>Start:</td>
|
|
@@ -372,6 +452,14 @@ export const playerBodyHtml = `
|
|
|
372
452
|
></td>
|
|
373
453
|
</tr>
|
|
374
454
|
</table>
|
|
455
|
+
<div
|
|
456
|
+
id="saveLocalFilesRow"
|
|
457
|
+
hidden
|
|
458
|
+
style="margin-bottom: 0.6em; color: #a06000"
|
|
459
|
+
>
|
|
460
|
+
<span id="saveLocalFilesNote"></span>
|
|
461
|
+
<button type="button" id="saveLocalFilesBtn">🔓 Allow</button>
|
|
462
|
+
</div>
|
|
375
463
|
<div>
|
|
376
464
|
<button type="button" id="saveOkBtn">OK — Choose File</button>
|
|
377
465
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player-body.js","sourceRoot":"","sources":["../../dev/player-body.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"player-body.js","sourceRoot":"","sources":["../../dev/player-body.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAElG,kGAAkG;AAClG,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkd3B,CAAC"}
|
package/dist/dev/rect-snap.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ReadOnlyRect } from "phil-lib/misc";
|
|
|
2
2
|
/**
|
|
3
3
|
* One button that moves or stretches a rectangle to the canvas.
|
|
4
4
|
*
|
|
5
|
-
* The canvas is taken to be the
|
|
5
|
+
* The canvas is taken to be the whole drawing area (see canvasRecorder.width), which is true
|
|
6
6
|
* unless it sits inside a transformed parent like a Slide.
|
|
7
7
|
*/
|
|
8
8
|
export type RectSnap = {
|
package/dist/dev/rect-snap.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { canvasHeightUnits, canvasWidthUnits, } from "../src/slide-components/video-info.js";
|
|
2
2
|
// MARK: The snaps
|
|
3
3
|
/** Snap the left edge, center or right edge to the canvas, keeping the size. */
|
|
4
4
|
export const ALIGN_HORIZONTALLY = [
|
|
@@ -10,12 +10,12 @@ export const ALIGN_HORIZONTALLY = [
|
|
|
10
10
|
{
|
|
11
11
|
text: "⇆",
|
|
12
12
|
title: "Center horizontally on the canvas",
|
|
13
|
-
place: (r) => ({ ...r, x: (
|
|
13
|
+
place: (r) => ({ ...r, x: (canvasWidthUnits() - r.width) / 2 }),
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
text: "⇥",
|
|
17
17
|
title: "Move the right edge to the right of the canvas",
|
|
18
|
-
place: (r) => ({ ...r, x:
|
|
18
|
+
place: (r) => ({ ...r, x: canvasWidthUnits() - r.width }),
|
|
19
19
|
},
|
|
20
20
|
];
|
|
21
21
|
/** Snap the top edge, middle or bottom edge to the canvas, keeping the size. */
|
|
@@ -28,12 +28,12 @@ export const ALIGN_VERTICALLY = [
|
|
|
28
28
|
{
|
|
29
29
|
text: "⇵",
|
|
30
30
|
title: "Center vertically on the canvas",
|
|
31
|
-
place: (r) => ({ ...r, y: (
|
|
31
|
+
place: (r) => ({ ...r, y: (canvasHeightUnits() - r.height) / 2 }),
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
text: "⤓",
|
|
35
35
|
title: "Move the bottom edge to the bottom of the canvas",
|
|
36
|
-
place: (r) => ({ ...r, y:
|
|
36
|
+
place: (r) => ({ ...r, y: canvasHeightUnits() - r.height }),
|
|
37
37
|
},
|
|
38
38
|
];
|
|
39
39
|
/** Make the rectangle span the canvas in one direction, leaving the other alone. */
|
|
@@ -41,12 +41,12 @@ export const STRETCH_TO_CANVAS = [
|
|
|
41
41
|
{
|
|
42
42
|
text: "↔",
|
|
43
43
|
title: "Stretch across the full width of the canvas",
|
|
44
|
-
place: (r) => ({ ...r, x: 0, width:
|
|
44
|
+
place: (r) => ({ ...r, x: 0, width: canvasWidthUnits() }),
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
text: "↕",
|
|
48
48
|
title: "Stretch across the full height of the canvas",
|
|
49
|
-
place: (r) => ({ ...r, y: 0, height:
|
|
49
|
+
place: (r) => ({ ...r, y: 0, height: canvasHeightUnits() }),
|
|
50
50
|
},
|
|
51
51
|
];
|
|
52
52
|
// MARK: Helpers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rect-snap.js","sourceRoot":"","sources":["../../dev/rect-snap.ts"],"names":[],"mappings":"AACA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"rect-snap.js","sourceRoot":"","sources":["../../dev/rect-snap.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,uCAAuC,CAAC;AAc/C,kBAAkB;A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AAC;QACpB,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACvB,CAAC,CAAC,CACH,CAAC;IAEF,SAAS,IAAI;QACX,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC;QACtB,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,OAAO,EAAE,CAAC;YACpC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC7B,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACpB,GAAG,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,QAAQ,IAAI,EAAE,CAAC;YAC1C,CAAC;iBAAM,CAAC;gBACN,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;gBAChD,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACzB,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,EAAE,CAAC;IACP,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC3B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlideComponent } from "../src/slide-components/slide-component";
|
|
1
|
+
import { SlideComponent } from "../src/slide-components/slide-component.ts";
|
|
2
2
|
/**
|
|
3
3
|
* Build the Transform Info panel shown at the top of the schedule editor
|
|
4
4
|
* when a {@link SlideComponent} is selected. Lists active placeholders,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-panel.d.ts","sourceRoot":"","sources":["../../dev/slide-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAEf,MAAM,
|
|
1
|
+
{"version":3,"file":"slide-panel.d.ts","sourceRoot":"","sources":["../../dev/slide-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAEf,MAAM,4CAA4C,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,cAAc,GACxB,WAAW,CA4Cb"}
|
package/dist/dev/slide-panel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TRANSFORM_PLACEHOLDERS, } from "../src/slide-components/slide-component";
|
|
1
|
+
import { TRANSFORM_PLACEHOLDERS, } from "../src/slide-components/slide-component.js";
|
|
2
2
|
/**
|
|
3
3
|
* Build the Transform Info panel shown at the top of the schedule editor
|
|
4
4
|
* when a {@link SlideComponent} is selected. Lists active placeholders,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-panel.js","sourceRoot":"","sources":["../../dev/slide-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,GACvB,MAAM,
|
|
1
|
+
{"version":3,"file":"slide-panel.js","sourceRoot":"","sources":["../../dev/slide-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,GACvB,MAAM,4CAA4C,CAAC;AAEpD;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,SAAyB;IAEzB,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACjD,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG,0CAA0C,CAAC;IACjE,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,CAAC,WAAW,GAAG,gBAAgB,CAAC;IACtC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAErB,MAAM,QAAQ,GAAG,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC;IAEnD,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,CAAC,WAAW,GAAG,gBAAgB,GAAG,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1E,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,0CAA0C,CAAC;IAClE,KAAK,CAAC,MAAM,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GAAG,iDAAiD,CAAC;IACzE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE7B,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -17,8 +17,9 @@ export type SoundOwner = {
|
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* Every Showable under `root` (including `root`) whose `soundClips` is
|
|
20
|
-
* defined, in tree order.
|
|
21
|
-
*
|
|
20
|
+
* defined, in tree order. Any Showable can hold sounds, but these are the
|
|
21
|
+
* ones that have a list, usually because they have, or had, a clip.
|
|
22
|
+
* That keeps the Owner menus short.
|
|
22
23
|
*
|
|
23
24
|
* This is the same walk the audio builder does, so the start times agree with
|
|
24
25
|
* what you hear. A Showable that appears more than once in the tree is listed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound-clips.d.ts","sourceRoot":"","sources":["../../dev/sound-clips.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;;;;GAOG;AAIH,uEAAuE;AACvE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAMF
|
|
1
|
+
{"version":3,"file":"sound-clips.d.ts","sourceRoot":"","sources":["../../dev/sound-clips.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;;;;GAOG;AAIH,uEAAuE;AACvE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAMF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,UAAU,EAAE,CAexD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAUhF;AAED,+DAA+D;AAC/D,wBAAgB,OAAO,CACrB,MAAM,EAAE,SAAS,UAAU,EAAE,EAC7B,IAAI,EAAE,SAAS,GACd,UAAU,GAAG,SAAS,CAExB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,UAAU,EAChB,EAAE,EAAE,UAAU,GACb,IAAI,CAYN;AAED,4FAA4F;AAC5F,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEzC;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,CAWzD"}
|
package/dist/dev/sound-clips.js
CHANGED
|
@@ -3,8 +3,9 @@ function displayName(showable) {
|
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
5
|
* Every Showable under `root` (including `root`) whose `soundClips` is
|
|
6
|
-
* defined, in tree order.
|
|
7
|
-
*
|
|
6
|
+
* defined, in tree order. Any Showable can hold sounds, but these are the
|
|
7
|
+
* ones that have a list, usually because they have, or had, a clip.
|
|
8
|
+
* That keeps the Owner menus short.
|
|
8
9
|
*
|
|
9
10
|
* This is the same walk the audio builder does, so the start times agree with
|
|
10
11
|
* what you hear. A Showable that appears more than once in the tree is listed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound-clips.js","sourceRoot":"","sources":["../../dev/sound-clips.ts"],"names":[],"mappings":"AAsBA,SAAS,WAAW,CAAC,QAAkB;IACrC,OAAO,QAAQ,CAAC,uBAAuB,IAAI,QAAQ,C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AAS,CAAC;IACnB,CAAC;IACD,MAAM,MAAM,GAAG,CAAC,KAAc,EAAE,EAAE,CAChC,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1E,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7B,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,EAAE;QAAE,OAAO,SAAS,CAAC;IAClE,MAAM,IAAI,GAAc;QACtB,MAAM;QACN,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC;KACvD,CAAC;IACF,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACvD,IAAI,eAAe,KAAK,SAAS;QAAE,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IAC1E,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzC,IAAI,QAAQ,KAAK,SAAS;QAAE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACrD,MAAM,KAAK,GACT,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;IACxE,IAAI,KAAK;QAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAC9B,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The video's sound, live: every sound clip in the tree, each played by its own
|
|
3
|
+
* `AudioBufferSourceNode`, mixed by the browser.
|
|
4
|
+
*
|
|
5
|
+
* - **Decoded files are kept** for the life of the page, mixed down to mono.
|
|
6
|
+
* An edit never fetches or decodes a file again.
|
|
7
|
+
* - **An edit only touches the clips it changed.** {@link Soundtrack.request} is
|
|
8
|
+
* cheap enough to call on every mouse move: when no clip moved, it does nothing,
|
|
9
|
+
* and otherwise it replaces only the nodes whose clips changed. Everything else
|
|
10
|
+
* keeps playing, sample for sample.
|
|
11
|
+
* - **A file that isn't decoded yet doesn't hold anything up.** Its clips join in
|
|
12
|
+
* when it's ready.
|
|
13
|
+
* - **The saved video gets one mixed buffer,** from {@link Soundtrack.mix}, after
|
|
14
|
+
* {@link Soundtrack.ready}.
|
|
15
|
+
*
|
|
16
|
+
* The clock belongs to the player. It says where the video is with an
|
|
17
|
+
* {@link Anchor}, and this follows.
|
|
18
|
+
*
|
|
19
|
+
* See development-plans/live-sound-mixing.md.
|
|
20
|
+
* @module
|
|
21
|
+
*/
|
|
22
|
+
import { Showable } from "../src/showable.ts";
|
|
23
|
+
import { AudioBuilder } from "./audio-builder.ts";
|
|
24
|
+
/**
|
|
25
|
+
* Every file is decoded at this rate, and the saved video's sound uses it too.
|
|
26
|
+
* So do the player's AudioContext and the voice recorder.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SAMPLE_RATE = 48000;
|
|
29
|
+
/** One sound clip, in the video's time. */
|
|
30
|
+
export type PlacedSoundClip = {
|
|
31
|
+
readonly source: string;
|
|
32
|
+
/** When the clip starts, in ms from the start of the video. Can be negative. */
|
|
33
|
+
readonly startMs: number;
|
|
34
|
+
/** Where in the file to start, in ms. Negative means silence first. */
|
|
35
|
+
readonly trimMs: number;
|
|
36
|
+
/** How much to play. Infinity plays to the end of the file. */
|
|
37
|
+
readonly lengthMs: number;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Every sound clip in the tree, in the video's time. Read only.
|
|
41
|
+
*
|
|
42
|
+
* A clip with no source yet is left out: a brand new clip, or a URL that's still
|
|
43
|
+
* being typed.
|
|
44
|
+
*/
|
|
45
|
+
export declare function collectSoundClips(root: Showable): PlacedSoundClip[];
|
|
46
|
+
/**
|
|
47
|
+
* Where the video is: at `contextTime`, in the audio context's clock, the video
|
|
48
|
+
* is at `mediaMs`, moving at `rate`.
|
|
49
|
+
*/
|
|
50
|
+
export type Anchor = {
|
|
51
|
+
readonly contextTime: number;
|
|
52
|
+
readonly mediaMs: number;
|
|
53
|
+
readonly rate: number;
|
|
54
|
+
};
|
|
55
|
+
export type SoundtrackOptions = {
|
|
56
|
+
/** Where the clips play. An `OfflineAudioContext` works too, for testing. */
|
|
57
|
+
readonly context: BaseAudioContext;
|
|
58
|
+
/** Usually a gain node, for the volume and mute controls. */
|
|
59
|
+
readonly destination: AudioNode;
|
|
60
|
+
/** The whole video. Read on every {@link Soundtrack.request}. */
|
|
61
|
+
readonly root: () => Showable;
|
|
62
|
+
/** A file finished decoding: its waveform and length are known now. */
|
|
63
|
+
readonly onDecoded?: () => void;
|
|
64
|
+
/** A clip names a file that wasn't in the list before. */
|
|
65
|
+
readonly onNewSource?: () => void;
|
|
66
|
+
};
|
|
67
|
+
export declare class Soundtrack {
|
|
68
|
+
#private;
|
|
69
|
+
constructor(options: SoundtrackOptions);
|
|
70
|
+
/**
|
|
71
|
+
* The decoded file, mono, or null if it hasn't been decoded yet (or can't be).
|
|
72
|
+
* Its length is the file's length.
|
|
73
|
+
*/
|
|
74
|
+
getDecodedBuffer(url: string): AudioBuffer | null;
|
|
75
|
+
/** Read and decode every file again, e.g. one re-recorded under the same name. */
|
|
76
|
+
forget(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Use `buffer` as the decoded file for `url`, instead of reading the file.
|
|
79
|
+
* For a file this page just wrote, like a voice recording, whose samples are
|
|
80
|
+
* already in memory. It must be mono, at {@link SAMPLE_RATE}, and exactly as
|
|
81
|
+
* long as the file.
|
|
82
|
+
*/
|
|
83
|
+
provide(url: string, buffer: AudioBuffer): void;
|
|
84
|
+
/** Try the files that couldn't be read again, e.g. after 🔓 Allow local files. */
|
|
85
|
+
forgetFailures(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Something may have changed: a clip, a component's timing, the tree.
|
|
88
|
+
*
|
|
89
|
+
* Call it as often as you like, even several times per mouse move. Calls in the
|
|
90
|
+
* same task are combined into one, and that one does almost nothing unless a clip
|
|
91
|
+
* moved. Nothing here allocates anything the size of the video.
|
|
92
|
+
*/
|
|
93
|
+
request(): void;
|
|
94
|
+
/**
|
|
95
|
+
* Resolves when every file the newest clip list names has been decoded, or has
|
|
96
|
+
* failed. The newest: if the list changes while this waits, it waits for that
|
|
97
|
+
* one too.
|
|
98
|
+
*/
|
|
99
|
+
ready(): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* The soundtrack from `fromMs` to `toMs`, mixed into one mono buffer, for saving.
|
|
102
|
+
* Call {@link ready} first, or clips whose file isn't decoded yet are left out.
|
|
103
|
+
*/
|
|
104
|
+
mix(fromMs: number, toMs: number): AudioBuilder;
|
|
105
|
+
/** Start playing at `anchor`, from scratch. */
|
|
106
|
+
play(anchor: Anchor): void;
|
|
107
|
+
/**
|
|
108
|
+
* Keep playing, at a new speed. `anchor` must agree with the old one about where
|
|
109
|
+
* the video is now, so nothing jumps.
|
|
110
|
+
*/
|
|
111
|
+
changeRate(anchor: Anchor): void;
|
|
112
|
+
/** Stop at once. */
|
|
113
|
+
stop(): void;
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=soundtrack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"soundtrack.d.ts","sourceRoot":"","sources":["../../dev/soundtrack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAQ,CAAC;AASjC,2CAA2C;AAC3C,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,iFAAiF;IACjF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;I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