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

Method update_marker

js/src/Lines.ts:785–799  ·  view source on GitHub ↗
(model, marker)

Source from the content-addressed store, hash-verified

783 }
784
785 update_marker(model, marker): void {
786 if (marker) {
787 this.draw_dots();
788 this.update_dots_xy(false);
789 this.update_marker_style();
790 if (this.legendEl) {
791 this.legendEl.select('.dot').attr('d', this.dot.type(marker).size(25));
792 }
793 } else {
794 this.d3el.selectAll('.dot').remove();
795 if (this.legendEl) {
796 this.legendEl.select('.dot').attr('d', this.dot.size(0));
797 }
798 }
799 }
800
801 update_marker_size(model, markerSize): void {
802 this.compute_view_padding();

Callers

nothing calls this directly

Calls 4

draw_dotsMethod · 0.95
update_dots_xyMethod · 0.95
update_marker_styleMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected