MCPcopy Create free account
hub / github.com/bqplot/bqplot / update_path_style

Method update_path_style

js/src/Lines.ts:280–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 }
279
280 update_path_style(): void {
281 const interpolation = this.get_interpolation();
282 this.line.curve(interpolation);
283 this.area.curve(interpolation);
284 this.d3el
285 .selectAll('.curve')
286 .select('.line')
287 .attr('d', (d: any) => {
288 return this.line(d.values) + this.path_closure();
289 });
290 this.d3el
291 .selectAll('.curve')
292 .select('.area')
293 .transition('update_path_style')
294 .duration(0) //FIXME
295 .attr('d', (d: any) => {
296 return this.area(d.values);
297 });
298 if (this.legendEl) {
299 this.legendLine.curve(interpolation);
300 this.legendEl
301 .selectAll('path')
302 .attr('d', this.legendLine(this.legendPathData) + this.path_closure());
303 }
304 }
305
306 relayout(): void {
307 this.set_ranges();

Callers

nothing calls this directly

Calls 2

get_interpolationMethod · 0.95
path_closureMethod · 0.95

Tested by

no test coverage detected