Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
init
Method · 0.95
waveform-overview.js
File · 0.45
segment-shape.js
File · 0.45
default-segment-marker.js
File · 0.45
points-layer.js
File · 0.45
highlight-layer.js
File · 0.45
segments-layer.js
File · 0.45
default-point-marker.js
File · 0.45
segment-marker.js
File · 0.45
waveform-view.js
File · 0.45
overlay-segment-marker.js
File · 0.45
PlayheadLayer
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected