From 7721fd634bc866732b3793d7f0a2109f9a479d31 Mon Sep 17 00:00:00 2001 From: pearmini Date: Mon, 22 Jul 2024 17:39:09 +0800 Subject: [PATCH] fix(slider): wrong position for labels --- .../api/chart-emit-scrollbar-filter/step0.svg | 58 +++---- .../api/chart-emit-scrollbar-filter/step1.svg | 64 +++---- .../api/chart-emit-slider-filter/step0.svg | 92 +++++----- .../api/chart-emit-slider-filter/step1.svg | 90 +++++----- .../step0.svg | 42 ++--- .../step1.svg | 48 ++--- .../aapl-line-slider-filter/step0.svg | 42 ++--- .../aapl-line-slider-filter/step1.svg | 48 ++--- .../aapl-line-slider-filter/step2.svg | 54 +++--- .../step1.svg | 26 +-- .../step0.svg | 52 +++--- .../step1.svg | 50 +++--- .../countries-bubble-multi-legends/step0.svg | 100 +++++------ .../countries-bubble-multi-legends/step1.svg | 108 ++++++------ .../mock-area-slider-filter-label/step0.svg | 26 +-- .../profit-interval-slider-filter/step0.svg | 42 ++--- .../profit-interval-slider-filter/step1.svg | 48 ++--- .../interaction/stocks-line-slider/step1.svg | 58 +++---- .../snapshots/static/aaplLineBasic.svg | 64 +++---- .../static/aaplLineIllegalDataSlider.svg | 120 ++++++------- .../snapshots/static/aaplLineScrollbar.svg | 40 ++--- .../static/aaplLineScrollbarValue.svg | 40 ++--- .../snapshots/static/aaplLineSlider.svg | 80 ++++----- .../static/aaplLineSliderTransposed.svg | 80 ++++----- .../snapshots/static/aaplLineSliderValues.svg | 68 ++++---- .../alphabetIntervalAutoPaddingSlider.svg | 164 +++++++++--------- .../static/weatherLineMultiSlider.svg | 154 ++++++++-------- src/interaction/sliderFilter.ts | 3 - 28 files changed, 923 insertions(+), 938 deletions(-) diff --git a/__tests__/integration/snapshots/api/chart-emit-scrollbar-filter/step0.svg b/__tests__/integration/snapshots/api/chart-emit-scrollbar-filter/step0.svg index edf8a41a22..6959e57748 100644 --- a/__tests__/integration/snapshots/api/chart-emit-scrollbar-filter/step0.svg +++ b/__tests__/integration/snapshots/api/chart-emit-scrollbar-filter/step0.svg @@ -7,7 +7,7 @@ > - + - + @@ -299,7 +299,7 @@ > - + - + - + @@ -316,7 +316,7 @@ > - + @@ -180,10 +180,10 @@ class="slider-handle start-handle" > - + - + - + - + diff --git a/__tests__/integration/snapshots/api/chart-emit-slider-filter/step1.svg b/__tests__/integration/snapshots/api/chart-emit-slider-filter/step1.svg index e034cf3462..83f3de68e8 100644 --- a/__tests__/integration/snapshots/api/chart-emit-slider-filter/step1.svg +++ b/__tests__/integration/snapshots/api/chart-emit-slider-filter/step1.svg @@ -7,7 +7,7 @@ > - + - + @@ -195,10 +195,10 @@ class="slider-handle start-handle" > - + - + - + - + diff --git a/__tests__/integration/snapshots/interaction/aapl-line-slider-filter-transpose/step0.svg b/__tests__/integration/snapshots/interaction/aapl-line-slider-filter-transpose/step0.svg index 94b1e62537..920cc8d7f8 100644 --- a/__tests__/integration/snapshots/interaction/aapl-line-slider-filter-transpose/step0.svg +++ b/__tests__/integration/snapshots/interaction/aapl-line-slider-filter-transpose/step0.svg @@ -7,7 +7,7 @@ > - - + + @@ -146,10 +146,10 @@ class="slider-handle start-handle" > - + - + - + - + - + - - + + - - + + @@ -158,10 +158,10 @@ class="slider-handle start-handle" > - + - + - + - + - + - - + + @@ -109,7 +109,7 @@ - + - + - + - + - + - - + + - - + + @@ -121,7 +121,7 @@ - + - + - + - + - + - - + + - - + + - - + + @@ -133,7 +133,7 @@ - + - + - + - + - + - - + + @@ -171,10 +171,10 @@ class="slider-handle start-handle" > - + - + - + - - + + @@ -174,10 +174,10 @@ class="slider-handle start-handle" > - + - + - + - + - + @@ -909,7 +909,7 @@ fill="none" transform="matrix(1,0,0,1,281.959991,0)" class="items-item" - x="281.9599999999999" + x="281.96" y="0" width="51.08000000000004" height="23" @@ -1004,7 +1004,7 @@ - - + + - - + + @@ -186,10 +186,10 @@ class="slider-handle start-handle" > - + - + - + - + - + - + - + - + - + - + @@ -952,9 +952,9 @@ fill="none" transform="matrix(1,0,0,1,136.240005,0)" class="items-item" - x="136.23999999999998" + x="136.24" y="0" - width="63.920000000000016" + width="63.91999999999999" height="23" > @@ -1032,7 +1032,7 @@ class="items-item" x="212.16" y="0" - width="57.79999999999998" + width="57.8" height="23" > @@ -1110,7 +1110,7 @@ class="items-item" x="281.96" y="0" - width="51.08000000000004" + width="51.08" height="23" > @@ -1307,7 +1307,7 @@ > - - + + @@ -389,10 +389,10 @@ class="slider-handle start-handle" > - + - + - + - + - + @@ -969,9 +969,9 @@ fill="none" transform="matrix(1,0,0,1,136.240005,0)" class="items-item" - x="136.23999999999998" + x="136.24" y="0" - width="63.920000000000016" + width="63.91999999999999" height="23" > @@ -1049,7 +1049,7 @@ class="items-item" x="212.16" y="0" - width="57.79999999999998" + width="57.8" height="23" > @@ -1127,7 +1127,7 @@ class="items-item" x="281.96" y="0" - width="51.08000000000004" + width="51.08" height="23" > @@ -1324,7 +1324,7 @@ > - - + + @@ -109,7 +109,7 @@ - + - + - + - - + + @@ -174,10 +174,10 @@ class="slider-handle start-handle" > - + - + - + - + - + - - + + - - + + @@ -186,10 +186,10 @@ class="slider-handle start-handle" > - + - + - + - + - + - - + + @@ -112,7 +112,7 @@ - + - + - + - + - + - + - + - - + + @@ -296,7 +296,7 @@ > - + - - + + @@ -313,7 +313,7 @@ > - + - + - + - + - + - + - + - + - + - - + + @@ -682,7 +682,7 @@ > - + - + - + - + - + - + - + - + - + - + - + { for (const [slider, handler] of sliderHandler) { slider.removeEventListener('valuechange', handler);