Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
cleaning up solution and adding dist file
Browse files Browse the repository at this point in the history
  • Loading branch information
noahamac committed Jan 14, 2020
1 parent abe1cf6 commit 68b0fe5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/liquid_fill_gauge.js

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion src/examples/liquid_fill_gauge/liquid_fill_gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,22 @@ const vis: LiquidFillGaugeVisualization = {
this.svg.attr('height', element.clientHeight - 20)

// @ts-ignore
d3.liquidfillgauge(this.svg, value, gaugeConfig)
if (details['print']) {
Object.assign(gaugeConfig, {
valueCountUp: false,
waveAnimateTime: 0,
waveRiseTime: 0,
waveAnimate: false,
waveRise: false
})
// @ts-ignore
d3.liquidfillgauge(this.svg, value, gaugeConfig)
return
} else {
// @ts-ignore
d3.liquidfillgauge(this.svg, value, gaugeConfig)
return
}

}
}
Expand Down

0 comments on commit 68b0fe5

Please sign in to comment.