@orbcharts/plugins-basic 3.0.0-alpha.51 → 3.0.0-alpha.53
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/orbcharts-plugins-basic.es.js +6763 -6809
- package/dist/orbcharts-plugins-basic.umd.js +9 -9
- 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/base/BaseGroupAxis.ts +1 -5
- package/src/base/BaseLineAreas.ts +4 -4
- package/src/grid/plugins/GroupAux.ts +432 -155
- package/src/multiGrid/defaults.ts +7 -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
|
}
|
@@ -122,11 +122,7 @@ function renderAxis ({ selection, xAxisClassName, groupingLabelClassName, params
|
|
122
122
|
|
123
123
|
// 計算所有範圍內groupLabels數量(顯示所有刻度)
|
124
124
|
const allTicksAmount = Math.floor(groupScaleDomain[1]) - Math.ceil(groupScaleDomain[0]) + 1
|
125
|
-
|
126
|
-
? allTicksAmount
|
127
|
-
: params.ticks > allTicksAmount
|
128
|
-
? allTicksAmount // 不顯示超過groupLabels數量的刻度
|
129
|
-
: params.ticks)
|
125
|
+
|
130
126
|
// 設定X軸刻度
|
131
127
|
// const xAxis = d3.axisBottom(groupScale)
|
132
128
|
const xAxis = d3.axisTop(groupScale)
|
@@ -485,7 +485,7 @@ export const createBaseLineAreas: BasePluginFn<BaseLineAreasContext> = (pluginNa
|
|
485
485
|
data.pathSelectionArr.forEach(pathSelection => {
|
486
486
|
pathSelection
|
487
487
|
.on('mouseover', (event, datum) => {
|
488
|
-
event.stopPropagation()
|
488
|
+
// event.stopPropagation()
|
489
489
|
|
490
490
|
const seriesLabel = datum[0] ? datum[0].seriesLabel : ''
|
491
491
|
const { groupIndex, groupLabel } = data.gridGroupPositionFn(event)
|
@@ -511,7 +511,7 @@ export const createBaseLineAreas: BasePluginFn<BaseLineAreasContext> = (pluginNa
|
|
511
511
|
})
|
512
512
|
})
|
513
513
|
.on('mousemove', (event, datum) => {
|
514
|
-
event.stopPropagation()
|
514
|
+
// event.stopPropagation()
|
515
515
|
|
516
516
|
const seriesLabel = datum[0] ? datum[0].seriesLabel : ''
|
517
517
|
const { groupIndex, groupLabel } = data.gridGroupPositionFn(event)
|
@@ -537,7 +537,7 @@ export const createBaseLineAreas: BasePluginFn<BaseLineAreasContext> = (pluginNa
|
|
537
537
|
})
|
538
538
|
})
|
539
539
|
.on('mouseout', (event, datum) => {
|
540
|
-
event.stopPropagation()
|
540
|
+
// event.stopPropagation()
|
541
541
|
|
542
542
|
const seriesLabel = datum[0] ? datum[0].seriesLabel : ''
|
543
543
|
const { groupIndex, groupLabel } = data.gridGroupPositionFn(event)
|
@@ -563,7 +563,7 @@ export const createBaseLineAreas: BasePluginFn<BaseLineAreasContext> = (pluginNa
|
|
563
563
|
})
|
564
564
|
})
|
565
565
|
.on('click', (event, datum) => {
|
566
|
-
event.stopPropagation()
|
566
|
+
// event.stopPropagation()
|
567
567
|
|
568
568
|
const seriesLabel = datum[0] ? datum[0].seriesLabel : ''
|
569
569
|
const { groupIndex, groupLabel } = data.gridGroupPositionFn(event)
|