energy-visualization-sankey 1.0.22 → 1.0.24
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 +3 -4
- package/dist/sankey.esm.js.map +1 -1
- package/dist/sankey.umd.js +3 -4
- package/dist/sankey.umd.js.map +1 -1
- package/dist/types/services/AnimationService.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/Sankey.ts +1 -1
- package/src/services/AnimationService.ts +1 -3
package/dist/sankey.esm.js
CHANGED
|
@@ -7058,6 +7058,7 @@ class Sankey {
|
|
|
7058
7058
|
* Creates the DOM structure needed for controls, timeline, and chart display
|
|
7059
7059
|
*/
|
|
7060
7060
|
injectHTML() {
|
|
7061
|
+
var _a;
|
|
7061
7062
|
const country = this.options.country;
|
|
7062
7063
|
const firstYear = this.services.dataService.firstYear;
|
|
7063
7064
|
const lastYear = this.services.dataService.lastYear;
|
|
@@ -7098,7 +7099,7 @@ class Sankey {
|
|
|
7098
7099
|
</div>
|
|
7099
7100
|
</div>
|
|
7100
7101
|
</div>
|
|
7101
|
-
<div class="evs-us-energy-sankey-wrapper">
|
|
7102
|
+
<div class="evs-us-energy-sankey-wrapper" style="width: ${(_a = this.services['configurationService']) === null || _a === void 0 ? void 0 : _a.WIDTH}px;">
|
|
7102
7103
|
<div class="evs-sankey" style="line-height: 0;"></div>
|
|
7103
7104
|
`;
|
|
7104
7105
|
if (this.options.includeTimeline) {
|
|
@@ -7641,9 +7642,7 @@ class AnimationService {
|
|
|
7641
7642
|
animationServiceRef.updateSliderIndicator();
|
|
7642
7643
|
});
|
|
7643
7644
|
// Create timeline sliders
|
|
7644
|
-
|
|
7645
|
-
this.sliderWidth = rangeSliderElement ?
|
|
7646
|
-
rangeSliderElement.getBoundingClientRect().width : 1200;
|
|
7645
|
+
this.sliderWidth = this.configService.WIDTH;
|
|
7647
7646
|
// Top year labels
|
|
7648
7647
|
const svgTopYear = select('#evs-axis-top')
|
|
7649
7648
|
.style('margin', '-5px')
|