Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/bbc/peaks.js
/ getDuration
Function
getDuration
src/segment-shape.js:681–683 ·
view source on GitHub ↗
(segment)
Source
from the content-addressed store, hash-verified
679
};
680
681
function
getDuration(segment) {
682
return
segment.endTime - segment.startTime;
683
}
684
685
SegmentShape.prototype._segmentStartMarkerDragMove =
function
(segmentMarker, event) {
686
const
width = this._view.getWidth();
Callers
1
segment-shape.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected