SplitPopup

Popup UI for splitting a transcript segment at a chosen word boundary and time. Manages its own DOM, event listeners, waveform rendering, and playback state.

Constructor

new SplitPopup(segIdx, anchorEl, project, workspace, callbacksopt)

Creates and displays a SplitPopup.
Parameters:
NameTypeAttributesDefaultDescription
segIdxnumberIndex of the segment in segments
anchorElElement | nullElement to position the popup near
projectobjectThe active project instance
workspaceobjectThe workspace controller instance
callbacksobject<optional>
{}Callback functions for split actions
Properties
NameTypeAttributesDescription
onSplitfunction<optional>
Called with (segA, segB) when the split is confirmed
onCancelfunction<optional>
Called when the popup is cancelled or dismissed

Classes

SplitPopup

Members

previewFrac

Returns the current split preview state for use by the waveform panel.

Methods

destroy()

Fully removes the popup from the DOM and cleans up all listeners and state.