@orbcharts/core 3.0.0-beta.6 → 3.0.0-beta.8

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 (69) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-core.es.js +486 -483
  3. package/dist/orbcharts-core.umd.js +3 -3
  4. package/dist/src/defaults.d.ts +1 -1
  5. package/lib/core-types.ts +7 -7
  6. package/package.json +42 -42
  7. package/src/AbstractChart.ts +57 -57
  8. package/src/GridChart.ts +24 -24
  9. package/src/MultiGridChart.ts +24 -24
  10. package/src/MultiValueChart.ts +24 -24
  11. package/src/RelationshipChart.ts +24 -24
  12. package/src/SeriesChart.ts +24 -24
  13. package/src/TreeChart.ts +24 -24
  14. package/src/base/createBaseChart.ts +505 -505
  15. package/src/base/createBasePlugin.ts +153 -153
  16. package/src/base/validators/chartOptionsValidator.ts +23 -23
  17. package/src/base/validators/chartParamsValidator.ts +133 -133
  18. package/src/base/validators/elementValidator.ts +13 -13
  19. package/src/base/validators/pluginsValidator.ts +14 -14
  20. package/src/defaults.ts +238 -235
  21. package/src/defineGridPlugin.ts +3 -3
  22. package/src/defineMultiGridPlugin.ts +3 -3
  23. package/src/defineMultiValuePlugin.ts +3 -3
  24. package/src/defineNoneDataPlugin.ts +4 -4
  25. package/src/defineRelationshipPlugin.ts +3 -3
  26. package/src/defineSeriesPlugin.ts +3 -3
  27. package/src/defineTreePlugin.ts +3 -3
  28. package/src/grid/computedDataFn.ts +129 -129
  29. package/src/grid/contextObserverCallback.ts +176 -176
  30. package/src/grid/dataFormatterValidator.ts +101 -101
  31. package/src/grid/dataValidator.ts +12 -12
  32. package/src/index.ts +20 -20
  33. package/src/multiGrid/computedDataFn.ts +123 -123
  34. package/src/multiGrid/contextObserverCallback.ts +41 -41
  35. package/src/multiGrid/dataFormatterValidator.ts +115 -115
  36. package/src/multiGrid/dataValidator.ts +12 -12
  37. package/src/multiValue/computedDataFn.ts +110 -110
  38. package/src/multiValue/contextObserverCallback.ts +160 -160
  39. package/src/multiValue/dataFormatterValidator.ts +9 -9
  40. package/src/multiValue/dataValidator.ts +9 -9
  41. package/src/relationship/computedDataFn.ts +144 -144
  42. package/src/relationship/contextObserverCallback.ts +80 -80
  43. package/src/relationship/dataFormatterValidator.ts +9 -9
  44. package/src/relationship/dataValidator.ts +9 -9
  45. package/src/series/computedDataFn.ts +88 -88
  46. package/src/series/contextObserverCallback.ts +100 -100
  47. package/src/series/dataFormatterValidator.ts +41 -41
  48. package/src/series/dataValidator.ts +12 -12
  49. package/src/tree/computedDataFn.ts +129 -129
  50. package/src/tree/contextObserverCallback.ts +58 -58
  51. package/src/tree/dataFormatterValidator.ts +13 -13
  52. package/src/tree/dataValidator.ts +13 -13
  53. package/src/utils/commonUtils.ts +55 -55
  54. package/src/utils/d3Scale.ts +198 -198
  55. package/src/utils/errorMessage.ts +42 -42
  56. package/src/utils/gridObservables.ts +683 -683
  57. package/src/utils/index.ts +9 -9
  58. package/src/utils/multiGridObservables.ts +392 -392
  59. package/src/utils/multiValueObservables.ts +661 -661
  60. package/src/utils/observables.ts +219 -219
  61. package/src/utils/orbchartsUtils.ts +377 -377
  62. package/src/utils/relationshipObservables.ts +84 -84
  63. package/src/utils/seriesObservables.ts +175 -175
  64. package/src/utils/treeObservables.ts +105 -105
  65. package/src/utils/validator.ts +126 -126
  66. package/tsconfig.base.json +13 -13
  67. package/tsconfig.json +2 -2
  68. package/vite-env.d.ts +6 -6
  69. 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,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
- 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
+ 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
+ }