mirror of https://github.com/sveltejs/svelte
draw: scale getTotalLength() by CTM when vector-effect is non-scaling-stroke When vector-effect: non-scaling-stroke is set the stroke is rendered in screen pixels but getTotalLength() returns SVG user units. Without the correction the dasharray/dashoffset values are in the wrong unit space, causing the path to animate in discontinuous segments. Scale len by the x-basis magnitude of the CTM (sqrt(a²+b²)) to match the rendered length. Fixes #6868 crossfade: add mix-blend-mode: plus-lighter to eliminate opacity dip At the midpoint of a standard-alpha crossfade (t=0.5, opacity=1) the two elements' opacities sum to 0.5 + (1-0.5)*0.5 = 0.75, producing a visible dim flash. With additive (plus-lighter) blending the opacities sum linearly: 0.5 + 0.5 = 1.0 at every point in the transition. Fixes #6668pull/18889/head
parent
890d7f8b98
commit
be74d2781d
Loading…
Reference in new issue