energy-visualization-sankey 1.0.18 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sankey.esm.js +1 -1
- package/dist/sankey.esm.js.map +1 -1
- package/dist/sankey.umd.js +1 -1
- package/dist/sankey.umd.js.map +1 -1
- package/package.json +1 -1
- package/rollup.config.js +3 -0
- package/src/services/AnimationService.ts +1 -1
- package/tsconfig.json +2 -0
package/dist/sankey.esm.js
CHANGED
|
@@ -8159,7 +8159,7 @@ class AnimationService {
|
|
|
8159
8159
|
const effectiveWidth = sliderRect.width - thumbWidth;
|
|
8160
8160
|
const thumbCenter = (thumbWidth / 2) + (progress * effectiveWidth);
|
|
8161
8161
|
// Center 54px indicator over thumb
|
|
8162
|
-
return thumbCenter -
|
|
8162
|
+
return thumbCenter - 28; // 54px / 2 = 26px
|
|
8163
8163
|
}
|
|
8164
8164
|
applyIndicatorPosition(indicator, position, year) {
|
|
8165
8165
|
indicator.style.left = `${position}px`;
|