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

Method update_marker_style

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

Source from the content-addressed store, hash-verified

770 }
771
772 update_marker_style() {
773 const that = this;
774 const fillColor = this.model.get('fill_colors');
775 const opacities = this.model.get('opacities');
776 this.d3el.selectAll('.curve').each(function (d, i) {
777 const curve = d3.select(this);
778 curve
779 .selectAll('.dot')
780 .style('opacity', opacities[i])
781 .style('fill', that.get_mark_color(d, i) || fillColor[i]);
782 });
783 }
784
785 update_marker(model, marker): void {
786 if (marker) {

Callers 2

update_styleMethod · 0.95
update_markerMethod · 0.95

Calls 1

get_mark_colorMethod · 0.80

Tested by

no test coverage detected