@smartnet360/svelte-components 0.0.16 → 0.0.17
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.
@@ -86,9 +86,10 @@
|
|
86
86
|
}
|
87
87
|
|
88
88
|
// Merge external layout with defaults, then apply size adaptations
|
89
|
-
|
89
|
+
// Use structuredClone for deep copy to prevent mutation of defaultLayout
|
90
|
+
let finalLayout = structuredClone(plotlyLayout ?
|
90
91
|
{ ...defaultLayout, ...plotlyLayout } :
|
91
|
-
defaultLayout;
|
92
|
+
defaultLayout);
|
92
93
|
|
93
94
|
// Apply size-based adaptations using helper
|
94
95
|
finalLayout = adaptPlotlyLayout(
|