diff options
| author | bobzel <zzzman@gmail.com> | 2023-01-20 11:17:38 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-01-20 11:17:38 -0500 |
| commit | 84f728cffb94319b86be8d6cc478ce424ec45c2f (patch) | |
| tree | ef36f48f89d1d57f48aae20a1c43628eefc4c18c /src/client/views/nodes/AudioBox.tsx | |
| parent | d5f796b433d7e72130d4109a3775347ccb10c454 (diff) | |
removed tour map from lightbox. added option to create anchors without adding thm as annotations. made zoom of text an option for pres and links
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
| -rw-r--r-- | src/client/views/nodes/AudioBox.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx index d95668c89..1d59d3356 100644 --- a/src/client/views/nodes/AudioBox.tsx +++ b/src/client/views/nodes/AudioBox.tsx @@ -136,7 +136,7 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp return { la1, la2, linkTime }; } - getAnchor = () => { + getAnchor = (addAsAnnotation: boolean) => { return ( CollectionStackedTimeline.createAnchor( this.rootDoc, @@ -144,7 +144,10 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp this.annotationKey, '_timecodeToShow' /* audioStart */, '_timecodeToHide' /* audioEnd */, - this._ele?.currentTime || Cast(this.props.Document._currentTimecode, 'number', null) || (this.mediaState === media_state.Recording ? (Date.now() - (this.recordingStart || 0)) / 1000 : undefined) + this._ele?.currentTime || Cast(this.props.Document._currentTimecode, 'number', null) || (this.mediaState === media_state.Recording ? (Date.now() - (this.recordingStart || 0)) / 1000 : undefined), + undefined, + undefined, + addAsAnnotation ) || this.rootDoc ); }; |
