diff options
author | bobzel <zzzman@gmail.com> | 2020-08-12 22:44:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 22:44:02 -0400 |
commit | 2d3f72210df626f099379f2f2c6e47fb1d415d82 (patch) | |
tree | a73be52ee7e82fb3b9c18c4935e423c843917e4f /src/client/views/nodes/AudioBox.tsx | |
parent | 575ed4504f8bd5da42d209bcc313a4fc766247e3 (diff) | |
parent | 80269d9af07ff78aa8ecdbaa586d932ce8cc15f1 (diff) |
Merge pull request #579 from browngraphicslab/presentation_updates
Presentation updates
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r-- | src/client/views/nodes/AudioBox.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx index 289388320..011b6ff87 100644 --- a/src/client/views/nodes/AudioBox.tsx +++ b/src/client/views/nodes/AudioBox.tsx @@ -85,6 +85,7 @@ export class AudioBox extends ViewBoxAnnotatableComponent<FieldViewProps, AudioD constructor(props: Readonly<FieldViewProps>) { super(props); + AudioBox.Instance = this; // onClick play scripts AudioBox.RangeScript = AudioBox.RangeScript || ScriptField.MakeScript(`scriptContext.playFrom((this.audioStart), (this.audioEnd))`, { scriptContext: "any" })!; @@ -509,6 +510,7 @@ export class AudioBox extends ViewBoxAnnotatableComponent<FieldViewProps, AudioD labelScript = () => AudioBox.LabelScript; render() { + AudioBox.Instance = this; const interactive = SnappingManager.GetIsDragging() || this.active() ? "-interactive" : ""; this._first = true; // for indicating the first marker that is rendered this.path && this._buckets.length !== 100 ? this.peaks : null; // render waveform if audio is done recording |