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

Method update_style

js/src/Map.ts:417–424  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415 }
416
417 update_style() {
418 const color_data = this.model.get('color');
419 if (!this.is_object_empty(color_data)) {
420 this.fill_g.selectAll('path').style('fill', (d, i) => {
421 return this.fill_g_colorfill(d, i);
422 });
423 }
424 }
425
426 is_object_empty(object: any) {
427 return Object.keys(object).length === 0 && object.constructor === Object;

Callers 1

Calls 2

is_object_emptyMethod · 0.95
fill_g_colorfillMethod · 0.95

Tested by

no test coverage detected