@orbcharts/plugins-basic 3.0.0-alpha.52 → 3.0.0-alpha.53
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.
- package/dist/orbcharts-plugins-basic.es.js +164 -161
- package/dist/orbcharts-plugins-basic.umd.js +7 -7
- package/dist/src/multiGrid/defaults.d.ts +2 -1
- package/dist/src/multiGrid/plugins/OverlappingValueStackAxes.d.ts +1 -1
- package/dist/src/multiGrid/types.d.ts +2 -0
- package/package.json +2 -2
- package/src/multiGrid/defaults.ts +6 -1
- package/src/multiGrid/plugins/OverlappingValueStackAxes.ts +2 -2
- package/src/multiGrid/types.ts +2 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MultiGridLegendParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiLinesParams, MultiLineAreasParams, MultiDotsParams, MultiGroupAxisParams, MultiValueAxisParams, MultiValueStackAxisParams, OverlappingValueAxesParams } from './types';
|
1
|
+
import { MultiGridLegendParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiLinesParams, MultiLineAreasParams, MultiDotsParams, MultiGroupAxisParams, MultiValueAxisParams, MultiValueStackAxisParams, OverlappingValueAxesParams, OverlappingValueStackAxesParams } from './types';
|
2
2
|
|
3
3
|
export declare const DEFAULT_MULTI_GRID_LEGEND_PARAMS: MultiGridLegendParams;
|
4
4
|
export declare const DEFAULT_MULTI_GROUP_AXIS_PARAMS: MultiGroupAxisParams;
|
@@ -11,3 +11,4 @@ export declare const DEFAULT_MULTI_LINES_PARAMS: MultiLinesParams;
|
|
11
11
|
export declare const DEFAULT_MULTI_LINE_AREAS_PARAMS: MultiLineAreasParams;
|
12
12
|
export declare const DEFAULT_MULTI_DOTS_PARAMS: MultiDotsParams;
|
13
13
|
export declare const DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS: OverlappingValueAxesParams;
|
14
|
+
export declare const DEFAULT_OVERLAPPING_VALUE_STACK_AXES_PARAMS: OverlappingValueStackAxesParams;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const OverlappingValueStackAxes: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').
|
1
|
+
export declare const OverlappingValueStackAxes: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').OverlappingValueStackAxesParams>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orbcharts/plugins-basic",
|
3
|
-
"version": "3.0.0-alpha.
|
3
|
+
"version": "3.0.0-alpha.53",
|
4
4
|
"description": "plugins for OrbCharts",
|
5
5
|
"author": "Blue Planet Inc.",
|
6
6
|
"license": "Apache-2.0",
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"vite-plugin-dts": "^3.7.3"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@orbcharts/core": "^3.0.0-alpha.
|
38
|
+
"@orbcharts/core": "^3.0.0-alpha.49",
|
39
39
|
"d3": "^7.8.5",
|
40
40
|
"rxjs": "^7.8.1"
|
41
41
|
}
|
@@ -9,7 +9,8 @@ import type {
|
|
9
9
|
MultiGroupAxisParams,
|
10
10
|
MultiValueAxisParams,
|
11
11
|
MultiValueStackAxisParams,
|
12
|
-
OverlappingValueAxesParams
|
12
|
+
OverlappingValueAxesParams,
|
13
|
+
OverlappingValueStackAxesParams
|
13
14
|
} from './types'
|
14
15
|
|
15
16
|
export const DEFAULT_MULTI_GRID_LEGEND_PARAMS: MultiGridLegendParams = {
|
@@ -151,3 +152,7 @@ export const DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS: OverlappingValueAxesParams =
|
|
151
152
|
},
|
152
153
|
gridIndexes: [0, 1]
|
153
154
|
}
|
155
|
+
|
156
|
+
export const DEFAULT_OVERLAPPING_VALUE_STACK_AXES_PARAMS: OverlappingValueStackAxesParams = {
|
157
|
+
...DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS
|
158
|
+
}
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
import type { ContextObserverMultiGrid, DataFormatterGrid, DataFormatterTypeMap, Layout } from '@orbcharts/core'
|
14
14
|
import {
|
15
15
|
defineMultiGridPlugin } from '@orbcharts/core'
|
16
|
-
import {
|
16
|
+
import { DEFAULT_OVERLAPPING_VALUE_STACK_AXES_PARAMS } from '../defaults'
|
17
17
|
import { createBaseValueAxis } from '../../base/BaseValueAxis'
|
18
18
|
import { multiGridPluginDetailObservables } from '../multiGridObservables'
|
19
19
|
import { getClassName, getUniID } from '../../utils/orbchartsUtils'
|
@@ -24,7 +24,7 @@ const pluginName = 'OverlappingValueStackAxes'
|
|
24
24
|
const gridClassName = getClassName(pluginName, 'grid')
|
25
25
|
|
26
26
|
// 第一個圖軸使用堆疊的資料,第二個圖軸使用原始資料
|
27
|
-
export const OverlappingValueStackAxes = defineMultiGridPlugin(pluginName,
|
27
|
+
export const OverlappingValueStackAxes = defineMultiGridPlugin(pluginName, DEFAULT_OVERLAPPING_VALUE_STACK_AXES_PARAMS)(({ selection, name, subject, observer }) => {
|
28
28
|
const destroy$ = new Subject()
|
29
29
|
|
30
30
|
const unsubscribeFnArr: (() => void)[] = []
|