From f45f4ff0860af29c07266640c49fef5d6f5f123b Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Fri, 14 Sep 2018 12:51:18 +0100 Subject: [PATCH] refactor(examples): update gradient def in svg-waveform --- examples/svg-waveform/src/components/waveform.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/svg-waveform/src/components/waveform.ts b/examples/svg-waveform/src/components/waveform.ts index 9a5a7923e2..7940b64fe2 100644 --- a/examples/svg-waveform/src/components/waveform.ts +++ b/examples/svg-waveform/src/components/waveform.ts @@ -35,8 +35,8 @@ export function waveform(ctx: AppContext, opts: WaveformOpts) { { ...ctx.ui.waveform, viewBox: `0 -5 ${opts.res} 10` }, defs( linearGradient( - "grad", 0, 0, 0, 1, - [[0, opts.fill2], [0.5, opts.fill1], [1, opts.fill2]] + "grad", [0, 0], [0, 1], + [[0, opts.fill2], [0.5, opts.fill1], [1, opts.fill2]], ) ), polyline(