@smartnet360/svelte-components 0.0.26 → 0.0.27

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.
@@ -54,12 +54,12 @@
54
54
 
55
55
  let { layout, data, mode, markers, plotlyLayout, enableAdaptation = true, showGlobalControls = true }: Props = $props();
56
56
 
57
- // Global runtime controls state
57
+ // Global runtime controls state - initialize from layout config
58
58
  let globalControls = $state<GlobalChartControls>({
59
59
  movingAverage: {
60
- enabled: true,
60
+ enabled: layout.movingAverage?.enabled ?? true,
61
61
  windowOverride: undefined,
62
- showOriginal: true
62
+ showOriginal: layout.movingAverage?.showOriginal ?? true
63
63
  }
64
64
  });
65
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartnet360/svelte-components",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",