MCPcopy
hub / github.com/bbc/peaks.js / fitToView

Method fitToView

demo/custom-markers/simple-point-marker.js:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 fitToView() {
26 const height = this._options.layer.getHeight();
27
28 this._line.points([0.5, 0, 0.5, height]);
29 }
30
31 update(options) {
32 if (options.color !== undefined) {

Callers 14

initMethod · 0.95
segment-shape.jsFile · 0.45
points-layer.jsFile · 0.45
highlight-layer.jsFile · 0.45
segments-layer.jsFile · 0.45
segment-marker.jsFile · 0.45
waveform-view.jsFile · 0.45
PlayheadLayerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected