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

Method update_display

js/src/ColorAxis.ts:107–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 update_display() {
108 this.g_axisline.remove();
109 this.create_axis();
110 this.g_axisline = this.d3el
111 .select('#colorBarG' + this.cid)
112 .append('g')
113 .attr('class', 'axis');
114 this.rescale_axis();
115 this.d3el
116 .select('#colorBarG' + this.cid)
117 .attr('transform', this.get_colorbar_transform());
118 this.d3el
119 .select('#colorBarG' + this.cid)
120 .select('.g-rect')
121 .attr('transform', this.vertical ? 'rotate(-90)' : '');
122 this.redraw_axisline();
123 }
124
125 set_scale(model: ColorScaleModel) {
126 // Sets the child scale

Callers

nothing calls this directly

Calls 5

create_axisMethod · 0.95
rescale_axisMethod · 0.95
redraw_axislineMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected