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

Commit

Permalink
Merge pull request #123 from noahamac/master
Browse files Browse the repository at this point in the history
calls liquid fill gauge without animation when printing
  • Loading branch information
noahamac authored Jan 15, 2020
2 parents abe1cf6 + 7b3f3d8 commit 4d02d9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/liquid_fill_gauge.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/examples/liquid_fill_gauge/liquid_fill_gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ const vis: LiquidFillGaugeVisualization = {
this.svg.attr('width', element.clientWidth - 20)
this.svg.attr('height', element.clientHeight - 20)

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

Expand Down

0 comments on commit 4d02d9c

Please sign in to comment.