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

Commit 4d02d9c

Browse files
authored
Merge pull request #123 from noahamac/master
calls liquid fill gauge without animation when printing
2 parents abe1cf6 + 7b3f3d8 commit 4d02d9c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

dist/liquid_fill_gauge.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/examples/liquid_fill_gauge/liquid_fill_gauge.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@ const vis: LiquidFillGaugeVisualization = {
249249
this.svg.attr('width', element.clientWidth - 20)
250250
this.svg.attr('height', element.clientHeight - 20)
251251

252+
// @ts-ignore
253+
if (details['print']) {
254+
Object.assign(gaugeConfig, {
255+
valueCountUp: false,
256+
waveAnimateTime: 0,
257+
waveRiseTime: 0,
258+
waveAnimate: false,
259+
waveRise: false
260+
})
261+
}
252262
// @ts-ignore
253263
d3.liquidfillgauge(this.svg, value, gaugeConfig)
254264

0 commit comments

Comments
 (0)