MCPcopy
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
681function getDuration(segment) {
682 return segment.endTime - segment.startTime;
683}
684
685SegmentShape.prototype._segmentStartMarkerDragMove = function(segmentMarker, event) {
686 const width = this._view.getWidth();

Callers 1

segment-shape.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected