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

Method init

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

Source from the content-addressed store, hash-verified

6 }
7
8 init(group) {
9 this._group = group;
10
11 // Vertical Line - create with default y and points, the real values
12 // are set in fitToView().
13 this._line = new Line({
14 x: 0,
15 y: 0,
16 stroke: this._options.color,
17 strokeWidth: 1
18 });
19
20 group.add(this._line);
21
22 this.fitToView();
23 }
24
25 fitToView() {
26 const height = this._options.layer.getHeight();

Callers 15

api-views-spec.jsFile · 0.45
api-zoom-spec.jsFile · 0.45
point-spec.jsFile · 0.45
api-view-spec.jsFile · 0.45
api-points-spec.jsFile · 0.45
scrollbar-spec.jsFile · 0.45

Calls 1

fitToViewMethod · 0.95

Tested by

no test coverage detected