@orbcharts/core 3.0.0-beta.8 → 3.0.0

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.
Files changed (76) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-core.es.js +2734 -2353
  3. package/dist/orbcharts-core.umd.js +4 -4
  4. package/dist/src/defaults.d.ts +2 -1
  5. package/dist/src/utils/gridObservables.d.ts +8 -4
  6. package/dist/src/utils/index.d.ts +0 -3
  7. package/dist/src/utils/multiGridObservables.d.ts +3 -2
  8. package/dist/src/utils/multiValueObservables.d.ts +76 -29
  9. package/dist/src/utils/observables.d.ts +8 -1
  10. package/dist/src/utils/orbchartsUtils.d.ts +9 -9
  11. package/dist/src/utils/seriesObservables.d.ts +1 -1
  12. package/lib/core-types.ts +7 -7
  13. package/package.json +42 -42
  14. package/src/AbstractChart.ts +57 -57
  15. package/src/GridChart.ts +24 -24
  16. package/src/MultiGridChart.ts +24 -24
  17. package/src/MultiValueChart.ts +24 -24
  18. package/src/RelationshipChart.ts +24 -24
  19. package/src/SeriesChart.ts +24 -24
  20. package/src/TreeChart.ts +24 -24
  21. package/src/base/createBaseChart.ts +506 -505
  22. package/src/base/createBasePlugin.ts +154 -153
  23. package/src/base/validators/chartOptionsValidator.ts +23 -23
  24. package/src/base/validators/chartParamsValidator.ts +133 -133
  25. package/src/base/validators/elementValidator.ts +13 -13
  26. package/src/base/validators/pluginsValidator.ts +14 -14
  27. package/src/defaults.ts +282 -238
  28. package/src/defineGridPlugin.ts +3 -3
  29. package/src/defineMultiGridPlugin.ts +3 -3
  30. package/src/defineMultiValuePlugin.ts +3 -3
  31. package/src/defineNoneDataPlugin.ts +4 -4
  32. package/src/defineRelationshipPlugin.ts +3 -3
  33. package/src/defineSeriesPlugin.ts +3 -3
  34. package/src/defineTreePlugin.ts +3 -3
  35. package/src/grid/computedDataFn.ts +129 -129
  36. package/src/grid/contextObserverCallback.ts +198 -176
  37. package/src/grid/dataFormatterValidator.ts +120 -101
  38. package/src/grid/dataValidator.ts +12 -12
  39. package/src/index.ts +20 -20
  40. package/src/multiGrid/computedDataFn.ts +123 -123
  41. package/src/multiGrid/contextObserverCallback.ts +72 -41
  42. package/src/multiGrid/dataFormatterValidator.ts +115 -115
  43. package/src/multiGrid/dataValidator.ts +12 -12
  44. package/src/multiValue/computedDataFn.ts +113 -110
  45. package/src/multiValue/contextObserverCallback.ts +276 -160
  46. package/src/multiValue/dataFormatterValidator.ts +89 -9
  47. package/src/multiValue/dataValidator.ts +12 -9
  48. package/src/relationship/computedDataFn.ts +159 -144
  49. package/src/relationship/contextObserverCallback.ts +80 -80
  50. package/src/relationship/dataFormatterValidator.ts +13 -9
  51. package/src/relationship/dataValidator.ts +13 -9
  52. package/src/series/computedDataFn.ts +88 -88
  53. package/src/series/contextObserverCallback.ts +107 -100
  54. package/src/series/dataFormatterValidator.ts +41 -41
  55. package/src/series/dataValidator.ts +12 -12
  56. package/src/tree/computedDataFn.ts +129 -129
  57. package/src/tree/contextObserverCallback.ts +58 -58
  58. package/src/tree/dataFormatterValidator.ts +13 -13
  59. package/src/tree/dataValidator.ts +13 -13
  60. package/src/utils/commonUtils.ts +55 -55
  61. package/src/utils/d3Scale.ts +198 -198
  62. package/src/utils/errorMessage.ts +42 -42
  63. package/src/utils/gridObservables.ts +705 -683
  64. package/src/utils/index.ts +10 -10
  65. package/src/utils/multiGridObservables.ts +401 -392
  66. package/src/utils/multiValueObservables.ts +1044 -662
  67. package/src/utils/observables.ts +281 -219
  68. package/src/utils/orbchartsUtils.ts +377 -377
  69. package/src/utils/relationshipObservables.ts +84 -84
  70. package/src/utils/seriesObservables.ts +175 -175
  71. package/src/utils/treeObservables.ts +105 -105
  72. package/src/utils/validator.ts +126 -126
  73. package/tsconfig.base.json +13 -13
  74. package/tsconfig.json +2 -2
  75. package/vite-env.d.ts +6 -6
  76. package/vite.config.js +22 -22
@@ -1,129 +1,129 @@
1
- // import * as d3 from 'd3'
2
- import type { ComputedDataFn, DataGrid, DataGridDatum, DataFormatterGridGrid, ComputedDatumGrid } from '../../lib/core-types'
3
- import { formatValueToLabel, createDefaultDatumId, createDefaultSeriesLabel, createDefaultGroupLabel } from '../utils/orbchartsUtils'
4
- import { getMinMaxValue, transposeData, createGridSeriesLabels, createGridGroupLabels, seriesColorPredicate } from '../utils/orbchartsUtils'
5
-
6
- // 統一 DataGrid 格式、並欄列資料轉置為一致方式
7
- export function createTransposedDataGrid (data: DataGrid, dataFormatterGrid: DataFormatterGridGrid): DataGridDatum[][] {
8
- // const { data = [], dataFormatter, chartParams } = context
9
- if (!data.length) {
10
- return []
11
- }
12
- try {
13
- // 最多的array length
14
- const maxArrayLength = data.reduce((prev, current) => {
15
- return current.length > prev ? current.length : prev
16
- }, 0)
17
-
18
- // 補齊短少資料
19
- const fullData = data.map((d, i) => {
20
- if (d.length === maxArrayLength) {
21
- return d
22
- }
23
- const newD = Object.assign([], d)
24
- for (let _i = newD.length; _i < maxArrayLength; _i++) {
25
- newD[_i] = null
26
- }
27
- return newD
28
- })
29
-
30
- // 完整的資料格式
31
- const dataGrid: DataGridDatum[][] = fullData.map((d, i) => {
32
- return d.map((_d, _i) => {
33
-
34
- const datum: DataGridDatum = _d == null
35
- ? {
36
- id: '',
37
- label: '',
38
- data: {},
39
- value: null,
40
- }
41
- : typeof _d === 'number'
42
- ? {
43
- id: '',
44
- label: '',
45
- data: {},
46
- value: _d,
47
- }
48
- : {
49
- id: _d.id ?? '',
50
- label: _d.label ?? '',
51
- data: _d.data ?? {},
52
- value: _d.value,
53
- }
54
-
55
- return datum
56
- })
57
- })
58
-
59
- // 依seriesDirection轉置資料矩陣
60
- const transposedDataGrid = transposeData(dataFormatterGrid.seriesDirection, dataGrid)
61
-
62
- return transposedDataGrid
63
- } catch (e) {
64
- return []
65
- }
66
- }
67
-
68
- export const computedDataFn: ComputedDataFn<'grid'> = (context) => {
69
- const { data = [], dataFormatter, chartParams } = context
70
- if (!data.length) {
71
- return []
72
- }
73
-
74
- let computedDataGrid: ComputedDatumGrid[][]
75
-
76
- try {
77
-
78
- // 依seriesDirection轉置資料矩陣
79
- const transposedDataGrid = createTransposedDataGrid(data, dataFormatter)
80
-
81
- const seriesLabels = createGridSeriesLabels({
82
- transposedDataGrid,
83
- dataFormatterGrid: dataFormatter,
84
- chartType: 'grid'
85
- })
86
- const groupLabels = createGridGroupLabels({
87
- transposedDataGrid,
88
- dataFormatterGrid: dataFormatter,
89
- chartType: 'grid'
90
- })
91
-
92
- let _index = 0
93
- computedDataGrid = transposedDataGrid.map((seriesData, seriesIndex) => {
94
- return seriesData.map((groupDatum, groupIndex) => {
95
-
96
- const defaultId = createDefaultDatumId('grid', 0, seriesIndex, groupIndex)
97
- const groupLabel = groupLabels[groupIndex]
98
-
99
- const computedDatum: ComputedDatumGrid = {
100
- id: groupDatum.id ? groupDatum.id : defaultId,
101
- index: _index,
102
- label: groupDatum.label ? groupDatum.label : defaultId,
103
- description: groupDatum.description ?? '',
104
- data: groupDatum.data,
105
- value: groupDatum.value,
106
- gridIndex: 0,
107
- seriesIndex,
108
- seriesLabel: seriesLabels[seriesIndex],
109
- groupIndex,
110
- groupLabel,
111
- color: seriesColorPredicate(seriesIndex, chartParams),
112
- visible: true // 先給一個預設值
113
- }
114
-
115
- // 先建立物件再計算visible欄位
116
- computedDatum.visible = dataFormatter.visibleFilter(computedDatum, context)
117
-
118
- _index ++
119
-
120
- return computedDatum
121
- })
122
- })
123
-
124
- } catch (e) {
125
- throw Error(e)
126
- }
127
-
128
- return computedDataGrid
129
- }
1
+ // import * as d3 from 'd3'
2
+ import type { ComputedDataFn, DataGrid, DataGridDatum, DataFormatterGridGrid, ComputedDatumGrid } from '../../lib/core-types'
3
+ import { formatValueToLabel, createDefaultDatumId, createDefaultSeriesLabel, createDefaultGroupLabel } from '../utils/orbchartsUtils'
4
+ import { getMinMaxValue, transposeData, createGridSeriesLabels, createGridGroupLabels, seriesColorPredicate } from '../utils/orbchartsUtils'
5
+
6
+ // 統一 DataGrid 格式、並欄列資料轉置為一致方式
7
+ export function createTransposedDataGrid (data: DataGrid, dataFormatterGrid: DataFormatterGridGrid): DataGridDatum[][] {
8
+ // const { data = [], dataFormatter, chartParams } = context
9
+ if (!data.length) {
10
+ return []
11
+ }
12
+ try {
13
+ // 最多的array length
14
+ const maxArrayLength = data.reduce((prev, current) => {
15
+ return current.length > prev ? current.length : prev
16
+ }, 0)
17
+
18
+ // 補齊短少資料
19
+ const fullData = data.map((d, i) => {
20
+ if (d.length === maxArrayLength) {
21
+ return d
22
+ }
23
+ const newD = Object.assign([], d)
24
+ for (let _i = newD.length; _i < maxArrayLength; _i++) {
25
+ newD[_i] = null
26
+ }
27
+ return newD
28
+ })
29
+
30
+ // 完整的資料格式
31
+ const dataGrid: DataGridDatum[][] = fullData.map((d, i) => {
32
+ return d.map((_d, _i) => {
33
+
34
+ const datum: DataGridDatum = _d == null
35
+ ? {
36
+ id: '',
37
+ label: '',
38
+ data: {},
39
+ value: null,
40
+ }
41
+ : typeof _d === 'number'
42
+ ? {
43
+ id: '',
44
+ label: '',
45
+ data: {},
46
+ value: _d,
47
+ }
48
+ : {
49
+ id: _d.id ?? '',
50
+ label: _d.label ?? '',
51
+ data: _d.data ?? {},
52
+ value: _d.value,
53
+ }
54
+
55
+ return datum
56
+ })
57
+ })
58
+
59
+ // 依seriesDirection轉置資料矩陣
60
+ const transposedDataGrid = transposeData(dataFormatterGrid.seriesDirection, dataGrid)
61
+
62
+ return transposedDataGrid
63
+ } catch (e) {
64
+ return []
65
+ }
66
+ }
67
+
68
+ export const computedDataFn: ComputedDataFn<'grid'> = (context) => {
69
+ const { data = [], dataFormatter, chartParams } = context
70
+ if (!data.length) {
71
+ return []
72
+ }
73
+
74
+ let computedDataGrid: ComputedDatumGrid[][]
75
+
76
+ try {
77
+
78
+ // 依seriesDirection轉置資料矩陣
79
+ const transposedDataGrid = createTransposedDataGrid(data, dataFormatter)
80
+
81
+ const seriesLabels = createGridSeriesLabels({
82
+ transposedDataGrid,
83
+ dataFormatterGrid: dataFormatter,
84
+ chartType: 'grid'
85
+ })
86
+ const groupLabels = createGridGroupLabels({
87
+ transposedDataGrid,
88
+ dataFormatterGrid: dataFormatter,
89
+ chartType: 'grid'
90
+ })
91
+
92
+ let _index = 0
93
+ computedDataGrid = transposedDataGrid.map((seriesData, seriesIndex) => {
94
+ return seriesData.map((groupDatum, groupIndex) => {
95
+
96
+ const defaultId = createDefaultDatumId('grid', 0, seriesIndex, groupIndex)
97
+ const groupLabel = groupLabels[groupIndex]
98
+
99
+ const computedDatum: ComputedDatumGrid = {
100
+ id: groupDatum.id ? groupDatum.id : defaultId,
101
+ index: _index,
102
+ label: groupDatum.label ? groupDatum.label : defaultId,
103
+ description: groupDatum.description ?? '',
104
+ data: groupDatum.data,
105
+ value: groupDatum.value,
106
+ gridIndex: 0,
107
+ seriesIndex,
108
+ seriesLabel: seriesLabels[seriesIndex],
109
+ groupIndex,
110
+ groupLabel,
111
+ color: seriesColorPredicate(seriesIndex, chartParams),
112
+ visible: true // 先給一個預設值
113
+ }
114
+
115
+ // 先建立物件再計算visible欄位
116
+ computedDatum.visible = dataFormatter.visibleFilter(computedDatum, context)
117
+
118
+ _index ++
119
+
120
+ return computedDatum
121
+ })
122
+ })
123
+
124
+ } catch (e) {
125
+ throw Error(e)
126
+ }
127
+
128
+ return computedDataGrid
129
+ }
@@ -1,176 +1,198 @@
1
- import { map, shareReplay, distinctUntilChanged } from 'rxjs'
2
- import type { ContextObserverCallback } from '../../lib/core-types'
3
- import {
4
- highlightObservable,
5
- seriesDataMapObservable,
6
- groupDataMapObservable,
7
- textSizePxObservable } from '../utils/observables'
8
- import {
9
- gridComputedLayoutDataObservable,
10
- gridAxesSizeObservable,
11
- gridSeriesLabelsObservable,
12
- gridVisibleComputedDataObservable,
13
- gridVisibleComputedLayoutDataObservable,
14
- // isSeriesSeprateObservable,
15
- gridContainerPositionObservable,
16
- computedStackedDataObservables,
17
- groupScaleDomainValueObservable,
18
- filteredMinMaxValueObservable,
19
- gridAxesTransformObservable,
20
- gridAxesReverseTransformObservable,
21
- gridGraphicTransformObservable,
22
- gridGraphicReverseScaleObservable,
23
- } from '../utils/gridObservables'
24
-
25
- export const contextObserverCallback: ContextObserverCallback<'grid'> = ({ subject, observer }) => {
26
-
27
- const textSizePx$ = textSizePxObservable(observer.fullChartParams$).pipe(
28
- shareReplay(1)
29
- )
30
-
31
- const isSeriesSeprate$ = observer.fullDataFormatter$.pipe(
32
- map(d => d.separateSeries),
33
- distinctUntilChanged(),
34
- shareReplay(1)
35
- )
36
-
37
- const gridContainerPosition$ = gridContainerPositionObservable({
38
- computedData$: observer.computedData$,
39
- fullDataFormatter$: observer.fullDataFormatter$,
40
- layout$: observer.layout$,
41
- })
42
-
43
- const gridAxesSize$ = gridAxesSizeObservable({
44
- fullDataFormatter$: observer.fullDataFormatter$,
45
- layout$: observer.layout$
46
- }).pipe(
47
- shareReplay(1)
48
- )
49
-
50
- const datumList$ = observer.computedData$.pipe(
51
- map(d => d.flat())
52
- ).pipe(
53
- shareReplay(1)
54
- )
55
-
56
- const gridHighlight$ = highlightObservable({
57
- datumList$,
58
- fullChartParams$: observer.fullChartParams$,
59
- event$: subject.event$
60
- }).pipe(
61
- shareReplay(1)
62
- )
63
-
64
- const seriesLabels$ = gridSeriesLabelsObservable({
65
- computedData$: observer.computedData$,
66
- })
67
-
68
- const SeriesDataMap$ = seriesDataMapObservable({
69
- datumList$: datumList$
70
- }).pipe(
71
- shareReplay(1)
72
- )
73
-
74
- const GroupDataMap$ = groupDataMapObservable({
75
- datumList$: datumList$
76
- }).pipe(
77
- shareReplay(1)
78
- )
79
-
80
- const computedLayoutData$ = gridComputedLayoutDataObservable({
81
- computedData$: observer.computedData$,
82
- fullDataFormatter$: observer.fullDataFormatter$,
83
- layout$: observer.layout$,
84
- }).pipe(
85
- shareReplay(1)
86
- )
87
-
88
- const visibleComputedData$ = gridVisibleComputedDataObservable({
89
- computedData$: observer.computedData$,
90
- }).pipe(
91
- shareReplay(1)
92
- )
93
-
94
- const visibleComputedLayoutData$ = gridVisibleComputedLayoutDataObservable({
95
- computedLayoutData$: computedLayoutData$,
96
- }).pipe(
97
- shareReplay(1)
98
- )
99
-
100
- const computedStackedData$ = computedStackedDataObservables({
101
- computedData$: observer.computedData$,
102
- isSeriesSeprate$: isSeriesSeprate$
103
- }).pipe(
104
- shareReplay(1)
105
- )
106
-
107
- const groupScaleDomainValue$ = groupScaleDomainValueObservable({
108
- computedData$: observer.computedData$,
109
- fullDataFormatter$: observer.fullDataFormatter$,
110
- }).pipe(
111
- shareReplay(1)
112
- )
113
-
114
- const filteredMinMaxValue$ = filteredMinMaxValueObservable({
115
- computedData$: observer.computedData$,
116
- groupScaleDomainValue$: groupScaleDomainValue$,
117
- }).pipe(
118
- shareReplay(1)
119
- )
120
-
121
- const gridAxesTransform$ = gridAxesTransformObservable({
122
- fullDataFormatter$: observer.fullDataFormatter$,
123
- layout$: observer.layout$
124
- }).pipe(
125
- shareReplay(1)
126
- )
127
-
128
- const gridAxesReverseTransform$ = gridAxesReverseTransformObservable({
129
- gridAxesTransform$
130
- }).pipe(
131
- shareReplay(1)
132
- )
133
-
134
- const gridGraphicTransform$ = gridGraphicTransformObservable({
135
- computedData$: observer.computedData$,
136
- groupScaleDomainValue$: groupScaleDomainValue$,
137
- filteredMinMaxValue$: filteredMinMaxValue$,
138
- fullDataFormatter$: observer.fullDataFormatter$,
139
- layout$: observer.layout$
140
- }).pipe(
141
- shareReplay(1)
142
- )
143
-
144
- const gridGraphicReverseScale$ = gridGraphicReverseScaleObservable({
145
- gridContainerPosition$: gridContainerPosition$,
146
- gridAxesTransform$: gridAxesTransform$,
147
- gridGraphicTransform$: gridGraphicTransform$,
148
- })
149
-
150
-
151
- return {
152
- fullParams$: observer.fullParams$,
153
- fullChartParams$: observer.fullChartParams$,
154
- fullDataFormatter$: observer.fullDataFormatter$,
155
- computedData$: observer.computedData$,
156
- layout$: observer.layout$,
157
- textSizePx$,
158
- isSeriesSeprate$,
159
- gridContainerPosition$,
160
- gridAxesSize$,
161
- gridHighlight$,
162
- seriesLabels$,
163
- SeriesDataMap$,
164
- GroupDataMap$,
165
- computedLayoutData$,
166
- visibleComputedData$,
167
- visibleComputedLayoutData$,
168
- computedStackedData$,
169
- groupScaleDomainValue$,
170
- filteredMinMaxValue$,
171
- gridAxesTransform$,
172
- gridAxesReverseTransform$,
173
- gridGraphicTransform$,
174
- gridGraphicReverseScale$,
175
- }
176
- }
1
+ import { map, shareReplay, distinctUntilChanged } from 'rxjs'
2
+ import type { ContextObserverCallback } from '../../lib/core-types'
3
+ import {
4
+ highlightObservable,
5
+ seriesDataMapObservable,
6
+ groupDataMapObservable,
7
+ textSizePxObservable } from '../utils/observables'
8
+ import {
9
+ gridComputedAxesDataObservable,
10
+ gridAxesSizeObservable,
11
+ gridAxesContainerSizeObservable,
12
+ gridSeriesLabelsObservable,
13
+ gridVisibleComputedDataObservable,
14
+ gridVisibleComputedAxesDataObservable,
15
+ // isSeriesSeprateObservable,
16
+ gridContainerPositionObservable,
17
+ computedStackedDataObservables,
18
+ groupScaleDomainValueObservable,
19
+ filteredMinMaxValueObservable,
20
+ gridAxesTransformObservable,
21
+ gridAxesReverseTransformObservable,
22
+ gridGraphicTransformObservable,
23
+ gridGraphicReverseScaleObservable,
24
+ } from '../utils/gridObservables'
25
+ import { containerSizeObservable } from '../utils/observables'
26
+
27
+ export const contextObserverCallback: ContextObserverCallback<'grid'> = ({ subject, observer }) => {
28
+
29
+ const textSizePx$ = textSizePxObservable(observer.fullChartParams$).pipe(
30
+ shareReplay(1)
31
+ )
32
+
33
+ const isSeriesSeprate$ = observer.fullDataFormatter$.pipe(
34
+ map(d => d.separateSeries),
35
+ distinctUntilChanged(),
36
+ shareReplay(1)
37
+ )
38
+
39
+ const gridContainerPosition$ = gridContainerPositionObservable({
40
+ computedData$: observer.computedData$,
41
+ fullDataFormatter$: observer.fullDataFormatter$,
42
+ layout$: observer.layout$,
43
+ }).pipe(
44
+ shareReplay(1)
45
+ )
46
+
47
+ const containerSize$ = containerSizeObservable({
48
+ layout$: observer.layout$,
49
+ containerPosition$: gridContainerPosition$
50
+ }).pipe(
51
+ shareReplay(1)
52
+ )
53
+
54
+ const gridAxesSize$ = gridAxesSizeObservable({
55
+ fullDataFormatter$: observer.fullDataFormatter$,
56
+ layout$: observer.layout$
57
+ }).pipe(
58
+ shareReplay(1)
59
+ )
60
+
61
+ const gridAxesContainerSize$ = gridAxesContainerSizeObservable({
62
+ fullDataFormatter$: observer.fullDataFormatter$,
63
+ containerSize$: containerSize$
64
+ }).pipe(
65
+ shareReplay(1)
66
+ )
67
+
68
+ const datumList$ = observer.computedData$.pipe(
69
+ map(d => d.flat())
70
+ ).pipe(
71
+ shareReplay(1)
72
+ )
73
+
74
+ const gridHighlight$ = highlightObservable({
75
+ datumList$,
76
+ fullChartParams$: observer.fullChartParams$,
77
+ event$: subject.event$
78
+ }).pipe(
79
+ shareReplay(1)
80
+ )
81
+
82
+ const seriesLabels$ = gridSeriesLabelsObservable({
83
+ computedData$: observer.computedData$,
84
+ })
85
+
86
+ const SeriesDataMap$ = seriesDataMapObservable({
87
+ datumList$: datumList$
88
+ }).pipe(
89
+ shareReplay(1)
90
+ )
91
+
92
+ const GroupDataMap$ = groupDataMapObservable({
93
+ datumList$: datumList$
94
+ }).pipe(
95
+ shareReplay(1)
96
+ )
97
+
98
+ const computedAxesData$ = gridComputedAxesDataObservable({
99
+ computedData$: observer.computedData$,
100
+ fullDataFormatter$: observer.fullDataFormatter$,
101
+ layout$: observer.layout$,
102
+ }).pipe(
103
+ shareReplay(1)
104
+ )
105
+
106
+ const visibleComputedData$ = gridVisibleComputedDataObservable({
107
+ computedData$: observer.computedData$,
108
+ }).pipe(
109
+ shareReplay(1)
110
+ )
111
+
112
+ const visibleComputedAxesData$ = gridVisibleComputedAxesDataObservable({
113
+ computedAxesData$: computedAxesData$,
114
+ }).pipe(
115
+ shareReplay(1)
116
+ )
117
+
118
+ const computedStackedData$ = computedStackedDataObservables({
119
+ computedData$: observer.computedData$,
120
+ isSeriesSeprate$: isSeriesSeprate$
121
+ }).pipe(
122
+ shareReplay(1)
123
+ )
124
+
125
+ const groupScaleDomainValue$ = groupScaleDomainValueObservable({
126
+ computedData$: observer.computedData$,
127
+ fullDataFormatter$: observer.fullDataFormatter$,
128
+ }).pipe(
129
+ shareReplay(1)
130
+ )
131
+
132
+ const filteredMinMaxValue$ = filteredMinMaxValueObservable({
133
+ computedData$: observer.computedData$,
134
+ groupScaleDomainValue$: groupScaleDomainValue$,
135
+ }).pipe(
136
+ shareReplay(1)
137
+ )
138
+
139
+ const gridAxesTransform$ = gridAxesTransformObservable({
140
+ fullDataFormatter$: observer.fullDataFormatter$,
141
+ layout$: observer.layout$
142
+ }).pipe(
143
+ shareReplay(1)
144
+ )
145
+
146
+ const gridAxesReverseTransform$ = gridAxesReverseTransformObservable({
147
+ gridAxesTransform$
148
+ }).pipe(
149
+ shareReplay(1)
150
+ )
151
+
152
+ const gridGraphicTransform$ = gridGraphicTransformObservable({
153
+ computedData$: observer.computedData$,
154
+ groupScaleDomainValue$: groupScaleDomainValue$,
155
+ filteredMinMaxValue$: filteredMinMaxValue$,
156
+ fullDataFormatter$: observer.fullDataFormatter$,
157
+ layout$: observer.layout$
158
+ }).pipe(
159
+ shareReplay(1)
160
+ )
161
+
162
+ const gridGraphicReverseScale$ = gridGraphicReverseScaleObservable({
163
+ gridContainerPosition$: gridContainerPosition$,
164
+ gridAxesTransform$: gridAxesTransform$,
165
+ gridGraphicTransform$: gridGraphicTransform$,
166
+ }).pipe(
167
+ shareReplay(1)
168
+ )
169
+
170
+
171
+ return {
172
+ fullParams$: observer.fullParams$,
173
+ fullChartParams$: observer.fullChartParams$,
174
+ fullDataFormatter$: observer.fullDataFormatter$,
175
+ computedData$: observer.computedData$,
176
+ layout$: observer.layout$,
177
+ textSizePx$,
178
+ isSeriesSeprate$,
179
+ gridContainerPosition$,
180
+ containerSize$,
181
+ gridAxesSize$,
182
+ gridAxesContainerSize$,
183
+ gridHighlight$,
184
+ seriesLabels$,
185
+ SeriesDataMap$,
186
+ GroupDataMap$,
187
+ computedAxesData$,
188
+ visibleComputedData$,
189
+ visibleComputedAxesData$,
190
+ computedStackedData$,
191
+ groupScaleDomainValue$,
192
+ filteredMinMaxValue$,
193
+ gridAxesTransform$,
194
+ gridAxesReverseTransform$,
195
+ gridGraphicTransform$,
196
+ gridGraphicReverseScale$,
197
+ }
198
+ }