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

Method updateStrokeAndOpacities

js/src/Hist.ts:139–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 private updateStrokeAndOpacities() {
140 const stroke = this.model.get('stroke');
141 const opacities = this.model.get('opacities');
142 this.d3el
143 .selectAll('.rect')
144 .style('stroke', stroke)
145 .style('opacity', (d: BinData) => {
146 return opacities[d.index];
147 });
148 }
149
150 private computeBarWidth() {
151 const xScale = this.scales.sample;

Callers 2

drawMethod · 0.95
set_default_styleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected