@hestia-earth/ui-components 0.36.22 → 0.36.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.
|
@@ -12919,7 +12919,7 @@ class HierarchyChartComponent {
|
|
|
12919
12919
|
// 3. Calculate Scale
|
|
12920
12920
|
const padding = 0.95; // 5% padding
|
|
12921
12921
|
const scale = padding / Math.max(bounds.width / width, bounds.height / height);
|
|
12922
|
-
const transform = zoomIdentity.scale(scale);
|
|
12922
|
+
const transform = zoomIdentity.translate(10, 10).scale(scale);
|
|
12923
12923
|
// Transition the SVG to this new state
|
|
12924
12924
|
this.svg
|
|
12925
12925
|
.transition()
|