@orbcharts/core 3.0.0-beta.3 → 3.0.0-beta.4

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 (77) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-core.es.js +2623 -2338
  3. package/dist/orbcharts-core.umd.js +4 -4
  4. package/dist/src/utils/d3Scale.d.ts +28 -0
  5. package/dist/src/utils/gridObservables.d.ts +29 -19
  6. package/dist/src/utils/index.d.ts +1 -1
  7. package/dist/src/utils/multiGridObservables.d.ts +2 -2
  8. package/dist/src/utils/multiValueObservables.d.ts +73 -0
  9. package/dist/src/utils/orbchartsUtils.d.ts +19 -5
  10. package/dist/src/utils/seriesObservables.d.ts +4 -4
  11. package/dist/src/utils/treeObservables.d.ts +2 -5
  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 +505 -505
  22. package/src/base/createBasePlugin.ts +153 -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 +235 -232
  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 +176 -155
  37. package/src/grid/dataFormatterValidator.ts +101 -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 +41 -41
  42. package/src/multiGrid/dataFormatterValidator.ts +115 -115
  43. package/src/multiGrid/dataValidator.ts +12 -12
  44. package/src/multiValue/computedDataFn.ts +110 -176
  45. package/src/multiValue/contextObserverCallback.ts +160 -12
  46. package/src/multiValue/dataFormatterValidator.ts +9 -9
  47. package/src/multiValue/dataValidator.ts +9 -9
  48. package/src/relationship/computedDataFn.ts +125 -125
  49. package/src/relationship/contextObserverCallback.ts +12 -12
  50. package/src/relationship/dataFormatterValidator.ts +9 -9
  51. package/src/relationship/dataValidator.ts +9 -9
  52. package/src/series/computedDataFn.ts +88 -88
  53. package/src/series/contextObserverCallback.ts +100 -100
  54. package/src/series/dataFormatterValidator.ts +41 -41
  55. package/src/series/dataValidator.ts +12 -12
  56. package/src/tree/computedDataFn.ts +129 -130
  57. package/src/tree/contextObserverCallback.ts +58 -61
  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 -0
  62. package/src/utils/errorMessage.ts +42 -42
  63. package/src/utils/gridObservables.ts +671 -614
  64. package/src/utils/index.ts +9 -9
  65. package/src/utils/multiGridObservables.ts +392 -366
  66. package/src/utils/multiValueObservables.ts +643 -0
  67. package/src/utils/observables.ts +219 -219
  68. package/src/utils/orbchartsUtils.ts +377 -352
  69. package/src/utils/seriesObservables.ts +175 -175
  70. package/src/utils/treeObservables.ts +105 -94
  71. package/src/utils/validator.ts +126 -125
  72. package/tsconfig.base.json +13 -13
  73. package/tsconfig.json +2 -2
  74. package/vite-env.d.ts +6 -6
  75. package/vite.config.js +22 -22
  76. package/dist/src/utils/d3Utils.d.ts +0 -19
  77. package/src/utils/d3Utils.ts +0 -108
@@ -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 { getMinAndMaxValue, 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.grid)
80
-
81
- const seriesLabels = createGridSeriesLabels({
82
- transposedDataGrid,
83
- dataFormatterGrid: dataFormatter.grid,
84
- chartType: 'grid'
85
- })
86
- const groupLabels = createGridGroupLabels({
87
- transposedDataGrid,
88
- dataFormatterGrid: dataFormatter.grid,
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 { getMinAndMaxValue, 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.grid)
80
+
81
+ const seriesLabels = createGridSeriesLabels({
82
+ transposedDataGrid,
83
+ dataFormatterGrid: dataFormatter.grid,
84
+ chartType: 'grid'
85
+ })
86
+ const groupLabels = createGridGroupLabels({
87
+ transposedDataGrid,
88
+ dataFormatterGrid: dataFormatter.grid,
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,155 +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
- gridAxesTransformObservable,
11
- gridAxesReverseTransformObservable,
12
- gridGraphicTransformObservable,
13
- gridGraphicReverseScaleObservable,
14
- gridAxesSizeObservable,
15
- gridSeriesLabelsObservable,
16
- gridVisibleComputedDataObservable,
17
- gridVisibleComputedLayoutDataObservable,
18
- // isSeriesSeprateObservable,
19
- gridContainerPositionObservable,
20
- computedStackedDataObservables } from '../utils/gridObservables'
21
-
22
- export const contextObserverCallback: ContextObserverCallback<'grid'> = ({ subject, observer }) => {
23
-
24
- const textSizePx$ = textSizePxObservable(observer.fullChartParams$).pipe(
25
- shareReplay(1)
26
- )
27
-
28
- const isSeriesSeprate$ = observer.fullDataFormatter$.pipe(
29
- map(d => d.grid.separateSeries),
30
- distinctUntilChanged(),
31
- shareReplay(1)
32
- )
33
-
34
- const gridContainerPosition$ = gridContainerPositionObservable({
35
- computedData$: observer.computedData$,
36
- fullDataFormatter$: observer.fullDataFormatter$,
37
- layout$: observer.layout$,
38
- })
39
-
40
- const gridAxesTransform$ = gridAxesTransformObservable({
41
- fullDataFormatter$: observer.fullDataFormatter$,
42
- layout$: observer.layout$
43
- }).pipe(
44
- shareReplay(1)
45
- )
46
-
47
- const gridAxesReverseTransform$ = gridAxesReverseTransformObservable({
48
- gridAxesTransform$
49
- }).pipe(
50
- shareReplay(1)
51
- )
52
-
53
- const gridGraphicTransform$ = gridGraphicTransformObservable({
54
- computedData$: observer.computedData$,
55
- fullDataFormatter$: observer.fullDataFormatter$,
56
- layout$: observer.layout$
57
- }).pipe(
58
- shareReplay(1)
59
- )
60
-
61
- const gridGraphicReverseScale$ = gridGraphicReverseScaleObservable({
62
- gridContainerPosition$: gridContainerPosition$,
63
- gridAxesTransform$: gridAxesTransform$,
64
- gridGraphicTransform$: gridGraphicTransform$,
65
- })
66
-
67
- const gridAxesSize$ = gridAxesSizeObservable({
68
- fullDataFormatter$: observer.fullDataFormatter$,
69
- layout$: observer.layout$
70
- }).pipe(
71
- shareReplay(1)
72
- )
73
-
74
- const datumList$ = observer.computedData$.pipe(
75
- map(d => d.flat())
76
- ).pipe(
77
- shareReplay(1)
78
- )
79
-
80
- const gridHighlight$ = highlightObservable({
81
- datumList$,
82
- fullChartParams$: observer.fullChartParams$,
83
- event$: subject.event$
84
- }).pipe(
85
- shareReplay(1)
86
- )
87
-
88
- const seriesLabels$ = gridSeriesLabelsObservable({
89
- computedData$: observer.computedData$,
90
- })
91
-
92
- const SeriesDataMap$ = seriesDataMapObservable({
93
- datumList$: datumList$
94
- }).pipe(
95
- shareReplay(1)
96
- )
97
-
98
- const GroupDataMap$ = groupDataMapObservable({
99
- datumList$: datumList$
100
- }).pipe(
101
- shareReplay(1)
102
- )
103
-
104
- const computedLayoutData$ = gridComputedLayoutDataObservable({
105
- computedData$: observer.computedData$,
106
- fullDataFormatter$: observer.fullDataFormatter$,
107
- layout$: observer.layout$,
108
- }).pipe(
109
- shareReplay(1)
110
- )
111
-
112
- const visibleComputedData$ = gridVisibleComputedDataObservable({
113
- computedData$: observer.computedData$,
114
- }).pipe(
115
- shareReplay(1)
116
- )
117
-
118
- const visibleComputedLayoutData$ = gridVisibleComputedLayoutDataObservable({
119
- computedLayoutData$: computedLayoutData$,
120
- }).pipe(
121
- shareReplay(1)
122
- )
123
-
124
- const computedStackedData$ = computedStackedDataObservables({
125
- computedData$: observer.computedData$,
126
- isSeriesSeprate$: isSeriesSeprate$
127
- }).pipe(
128
- shareReplay(1)
129
- )
130
-
131
-
132
- return {
133
- fullParams$: observer.fullParams$,
134
- fullChartParams$: observer.fullChartParams$,
135
- fullDataFormatter$: observer.fullDataFormatter$,
136
- computedData$: observer.computedData$,
137
- layout$: observer.layout$,
138
- textSizePx$,
139
- isSeriesSeprate$,
140
- gridContainerPosition$,
141
- gridAxesTransform$,
142
- gridAxesReverseTransform$,
143
- gridGraphicTransform$,
144
- gridGraphicReverseScale$,
145
- gridAxesSize$,
146
- gridHighlight$,
147
- seriesLabels$,
148
- SeriesDataMap$,
149
- GroupDataMap$,
150
- computedLayoutData$,
151
- visibleComputedData$,
152
- visibleComputedLayoutData$,
153
- computedStackedData$,
154
- }
155
- }
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.grid.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
+ }