MCPcopy Index your code
hub / github.com/bqplot/bqplot / set_positional_scales

Method set_positional_scales

js/src/Graph.ts:110–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 set_positional_scales() {
111 this.listenTo(
112 this.scales.x || this.parent.scale_x,
113 'domain_changed',
114 function () {
115 if (!this.model.dirty) {
116 this.updatePosition();
117 }
118 }
119 );
120 this.listenTo(
121 this.scales.y || this.parent.scale_y,
122 'domain_changed',
123 function () {
124 if (!this.model.dirty) {
125 this.updatePosition();
126 }
127 }
128 );
129 }
130
131 relayout() {
132 this.updatePosition();

Callers

nothing calls this directly

Calls 1

updatePositionMethod · 0.95

Tested by

no test coverage detected