@orbcharts/plugins-basic 3.0.0-alpha.52 → 3.0.0-alpha.53

Sign up to get free protection for your applications and to get access to all the features.
@@ -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('..').OverlappingValueAxesParams>;
1
+ export declare const OverlappingValueStackAxes: import('@orbcharts/core').PluginConstructor<"multiGrid", string, import('..').OverlappingValueStackAxesParams>;
@@ -57,3 +57,5 @@ export interface OverlappingValueAxesParams {
57
57
  secondAxis: BaseValueAxisParams;
58
58
  gridIndexes: [number, number];
59
59
  }
60
+ export interface OverlappingValueStackAxesParams extends OverlappingValueAxesParams {
61
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbcharts/plugins-basic",
3
- "version": "3.0.0-alpha.52",
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.48",
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 { DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS } from '../defaults'
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, DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS)(({ selection, name, subject, observer }) => {
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)[] = []
@@ -69,3 +69,5 @@ export interface OverlappingValueAxesParams {
69
69
  secondAxis: BaseValueAxisParams
70
70
  gridIndexes: [number, number]
71
71
  }
72
+
73
+ export interface OverlappingValueStackAxesParams extends OverlappingValueAxesParams {}