@orbcharts/plugins-basic 3.0.2 → 3.0.3
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/LICENSE +200 -200
- package/dist/lib/gridObservables.d.ts +1 -0
- package/dist/orbcharts-plugins-basic.es.js +14800 -13543
- package/dist/orbcharts-plugins-basic.umd.js +129 -99
- package/dist/src/base/BaseOrdinalBubbles.d.ts +26 -0
- package/dist/src/base/BaseRacingBars.d.ts +2 -1
- package/dist/src/base/BaseRacingLabels.d.ts +1 -0
- package/dist/src/base/BaseXZoom.d.ts +18 -0
- package/dist/src/grid/gridObservables.d.ts +4 -7
- package/dist/src/multiValue/defaults.d.ts +5 -1
- package/dist/src/multiValue/index.d.ts +4 -0
- package/dist/src/multiValue/multiValueObservables.d.ts +14 -1
- package/dist/src/multiValue/plugins/OrdinalAux.d.ts +3 -0
- package/dist/src/multiValue/plugins/OrdinalAxis.d.ts +3 -0
- package/dist/src/multiValue/plugins/OrdinalBubbles.d.ts +3 -0
- package/dist/src/multiValue/plugins/OrdinalZoom.d.ts +1 -0
- package/lib/core-types.ts +7 -7
- package/lib/core.ts +6 -6
- package/lib/gridObservables.ts +6 -0
- package/lib/plugins-basic-types.ts +6 -6
- package/package.json +48 -48
- package/src/base/BaseBars.ts +765 -765
- package/src/base/BaseBarsTriangle.ts +676 -676
- package/src/base/BaseDots.ts +464 -464
- package/src/base/BaseGroupAxis.ts +691 -691
- package/src/base/BaseLegend.ts +684 -684
- package/src/base/BaseLineAreas.ts +629 -629
- package/src/base/BaseLines.ts +706 -706
- package/src/base/BaseOrdinalBubbles.ts +728 -0
- package/src/base/BaseRacingBars.ts +582 -551
- package/src/base/BaseRacingLabels.ts +404 -396
- package/src/base/BaseRacingValueLabels.ts +403 -403
- package/src/base/BaseStackedBars.ts +782 -782
- package/src/base/BaseTooltip.ts +386 -386
- package/src/base/BaseValueAxis.ts +600 -600
- package/src/base/BaseXAxis.ts +427 -427
- package/src/base/BaseXZoom.ts +242 -0
- package/src/base/BaseYAxis.ts +389 -389
- package/src/base/types.ts +2 -2
- package/src/const.ts +30 -30
- package/src/grid/defaults.ts +213 -213
- package/src/grid/gridObservables.ts +635 -612
- package/src/grid/index.ts +16 -16
- package/src/grid/plugins/Bars.ts +69 -69
- package/src/grid/plugins/BarsPN.ts +66 -66
- package/src/grid/plugins/BarsTriangle.ts +73 -73
- package/src/grid/plugins/Dots.ts +68 -68
- package/src/grid/plugins/GridLegend.ts +107 -107
- package/src/grid/plugins/GridTooltip.ts +66 -66
- package/src/grid/plugins/GroupAux.ts +1095 -1120
- package/src/grid/plugins/GroupAxis.ts +73 -73
- package/src/grid/plugins/GroupZoom.ts +218 -218
- package/src/grid/plugins/LineAreas.ts +65 -65
- package/src/grid/plugins/Lines.ts +59 -59
- package/src/grid/plugins/StackedBars.ts +64 -64
- package/src/grid/plugins/StackedValueAxis.ts +96 -96
- package/src/grid/plugins/ValueAxis.ts +94 -94
- package/src/index.ts +6 -6
- package/src/multiGrid/defaults.ts +244 -244
- package/src/multiGrid/index.ts +14 -14
- package/src/multiGrid/multiGridObservables.ts +50 -50
- package/src/multiGrid/plugins/MultiBars.ts +108 -108
- package/src/multiGrid/plugins/MultiBarsTriangle.ts +114 -114
- package/src/multiGrid/plugins/MultiDots.ts +102 -102
- package/src/multiGrid/plugins/MultiGridLegend.ts +169 -169
- package/src/multiGrid/plugins/MultiGridTooltip.ts +66 -66
- package/src/multiGrid/plugins/MultiGroupAxis.ts +137 -137
- package/src/multiGrid/plugins/MultiLineAreas.ts +107 -107
- package/src/multiGrid/plugins/MultiLines.ts +101 -101
- package/src/multiGrid/plugins/MultiStackedBars.ts +106 -106
- package/src/multiGrid/plugins/MultiStackedValueAxis.ts +134 -134
- package/src/multiGrid/plugins/MultiValueAxis.ts +134 -134
- package/src/multiGrid/plugins/OverlappingStackedValueAxes.ts +300 -300
- package/src/multiGrid/plugins/OverlappingValueAxes.ts +300 -300
- package/src/multiValue/defaults.ts +523 -431
- package/src/multiValue/index.ts +16 -12
- package/src/multiValue/multiValueObservables.ts +781 -666
- package/src/multiValue/plugins/MultiValueLegend.ts +107 -107
- package/src/multiValue/plugins/MultiValueTooltip.ts +66 -66
- package/src/multiValue/plugins/OrdinalAux.ts +661 -0
- package/src/multiValue/plugins/OrdinalAxis.ts +525 -0
- package/src/multiValue/plugins/OrdinalBubbles.ts +226 -0
- package/src/multiValue/plugins/OrdinalZoom.ts +57 -0
- package/src/multiValue/plugins/RacingBars.ts +375 -373
- package/src/multiValue/plugins/RacingCounterTexts.ts +300 -300
- package/src/multiValue/plugins/RacingValueAxis.ts +114 -114
- package/src/multiValue/plugins/Scatter.ts +486 -426
- package/src/multiValue/plugins/ScatterBubbles.ts +635 -554
- package/src/multiValue/plugins/XAxis.ts +107 -107
- package/src/multiValue/plugins/XYAux.ts +683 -682
- package/src/multiValue/plugins/XYAxes.ts +194 -194
- package/src/multiValue/plugins/XYAxes_legacy.ts +683 -683
- package/src/multiValue/plugins/XZoom.ts +40 -299
- package/src/noneData/defaults.ts +102 -102
- package/src/noneData/index.ts +3 -3
- package/src/noneData/plugins/Container.ts +27 -27
- package/src/noneData/plugins/Tooltip.ts +373 -373
- package/src/relationship/defaults.ts +221 -221
- package/src/relationship/index.ts +5 -5
- package/src/relationship/plugins/ForceDirected.ts +1173 -1173
- package/src/relationship/plugins/ForceDirectedBubbles.ts +1411 -1411
- package/src/relationship/plugins/RelationshipLegend.ts +100 -100
- package/src/relationship/plugins/RelationshipTooltip.ts +66 -66
- package/src/relationship/relationshipObservables.ts +49 -49
- package/src/series/defaults.ts +221 -221
- package/src/series/index.ts +9 -9
- package/src/series/plugins/Bubbles.ts +636 -636
- package/src/series/plugins/Pie.ts +623 -623
- package/src/series/plugins/PieEventTexts.ts +284 -284
- package/src/series/plugins/PieLabels.ts +640 -640
- package/src/series/plugins/Rose.ts +516 -516
- package/src/series/plugins/RoseLabels.ts +600 -600
- package/src/series/plugins/SeriesLegend.ts +107 -107
- package/src/series/plugins/SeriesTooltip.ts +66 -66
- package/src/series/seriesObservables.ts +145 -145
- package/src/series/seriesUtils.ts +51 -51
- package/src/tree/defaults.ts +102 -102
- package/src/tree/index.ts +4 -4
- package/src/tree/plugins/TreeLegend.ts +100 -100
- package/src/tree/plugins/TreeMap.ts +341 -341
- package/src/tree/plugins/TreeTooltip.ts +66 -66
- package/src/utils/commonUtils.ts +31 -31
- package/src/utils/d3Graphics.ts +176 -176
- package/src/utils/d3Utils.ts +92 -92
- package/src/utils/observables.ts +14 -14
- package/src/utils/orbchartsUtils.ts +129 -129
- package/tsconfig.base.json +13 -13
- package/tsconfig.json +2 -2
- package/vite.config.js +22 -22
- package/dist/src/multiValue/plugins/OrdinalXAxis.d.ts +0 -0
- package/dist/src/multiValue/plugins/RankingAxis_legacy.d.ts +0 -0
- package/src/multiValue/plugins/OrdinalXAxis.ts +0 -0
- package/src/multiValue/plugins/RankingAxis_legacy.ts +0 -109
@@ -1,109 +0,0 @@
|
|
1
|
-
// import * as d3 from 'd3'
|
2
|
-
// import {
|
3
|
-
// Observable,
|
4
|
-
// Subject,
|
5
|
-
// combineLatest,
|
6
|
-
// takeUntil,
|
7
|
-
// map,
|
8
|
-
// distinctUntilChanged,
|
9
|
-
// switchMap,
|
10
|
-
// shareReplay
|
11
|
-
// } from 'rxjs'
|
12
|
-
// import type {
|
13
|
-
// ColorType,
|
14
|
-
// ChartParams,
|
15
|
-
// ComputedDatumMultiValue,
|
16
|
-
// ComputedDataMultiValue,
|
17
|
-
// ComputedXYDatumMultiValue,
|
18
|
-
// ContainerPositionScaled,
|
19
|
-
// DataFormatterMultiValue,
|
20
|
-
// DefinePluginConfig,
|
21
|
-
// TransformData,
|
22
|
-
// Layout
|
23
|
-
// } from '../../../lib/core-types'
|
24
|
-
// import { defineMultiValuePlugin } from '../../../lib/core'
|
25
|
-
// import { createBaseRacingAxis } from '../../base/BaseRacingAxis'
|
26
|
-
// import { DEFAULT_RANKING_AXIS_PARAMS } from '../defaults'
|
27
|
-
// import { LAYER_INDEX_OF_AXIS } from '../../const'
|
28
|
-
|
29
|
-
// const pluginName = 'RacingAxis'
|
30
|
-
|
31
|
-
// const pluginConfig: DefinePluginConfig<typeof pluginName, typeof DEFAULT_RANKING_AXIS_PARAMS> = {
|
32
|
-
// name: pluginName,
|
33
|
-
// defaultParams: DEFAULT_RANKING_AXIS_PARAMS,
|
34
|
-
// layerIndex: LAYER_INDEX_OF_AXIS,
|
35
|
-
// validator: (params, { validateColumns }) => {
|
36
|
-
// const result = validateColumns(params, {
|
37
|
-
// labelOffset: {
|
38
|
-
// toBe: '[number, number]',
|
39
|
-
// test: (value: any) => {
|
40
|
-
// return Array.isArray(value)
|
41
|
-
// && value.length === 2
|
42
|
-
// && typeof value[0] === 'number'
|
43
|
-
// && typeof value[1] === 'number'
|
44
|
-
// }
|
45
|
-
// },
|
46
|
-
// labelColorType: {
|
47
|
-
// toBeOption: 'ColorType',
|
48
|
-
// },
|
49
|
-
// axisLineVisible: {
|
50
|
-
// toBeTypes: ['boolean']
|
51
|
-
// },
|
52
|
-
// axisLineColorType: {
|
53
|
-
// toBeOption: 'ColorType',
|
54
|
-
// },
|
55
|
-
// // ticks: {
|
56
|
-
// // toBeTypes: ['number', 'null']
|
57
|
-
// // },
|
58
|
-
// // tickFormat: {
|
59
|
-
// // toBeTypes: ['string', 'Function']
|
60
|
-
// // },
|
61
|
-
// tickLineVisible: {
|
62
|
-
// toBeTypes: ['boolean']
|
63
|
-
// },
|
64
|
-
// tickPadding: {
|
65
|
-
// toBeTypes: ['number']
|
66
|
-
// },
|
67
|
-
// // tickFullLine: {
|
68
|
-
// // toBeTypes: ['boolean']
|
69
|
-
// // },
|
70
|
-
// // tickFullLineDasharray: {
|
71
|
-
// // toBeTypes: ['string']
|
72
|
-
// // },
|
73
|
-
// tickColorType: {
|
74
|
-
// toBeOption: 'ColorType',
|
75
|
-
// },
|
76
|
-
// tickTextColorType: {
|
77
|
-
// toBeOption: 'ColorType',
|
78
|
-
// }
|
79
|
-
// })
|
80
|
-
// if (result.status === 'error') {
|
81
|
-
// return result
|
82
|
-
// }
|
83
|
-
// return result
|
84
|
-
// }
|
85
|
-
// }
|
86
|
-
|
87
|
-
// export const RacingAxis = defineMultiValuePlugin(pluginConfig)(({ selection, name, observer, subject }) => {
|
88
|
-
|
89
|
-
// const destroy$ = new Subject()
|
90
|
-
|
91
|
-
// const unsubscribeBaseRacingAxis = createBaseRacingAxis(pluginName, {
|
92
|
-
// selection,
|
93
|
-
// computedData$: observer.computedData$,
|
94
|
-
// visibleComputedData$: observer.visibleComputedData$,
|
95
|
-
// fullParams$: observer.fullParams$,
|
96
|
-
// fullDataFormatter$: observer.fullDataFormatter$,
|
97
|
-
// fullChartParams$: observer.fullChartParams$,
|
98
|
-
// xyMinMax$: observer.xyMinMax$,
|
99
|
-
// textSizePx$: observer.textSizePx$,
|
100
|
-
// layout$: observer.layout$,
|
101
|
-
// containerPosition$: observer.containerPosition$,
|
102
|
-
// isCategorySeprate$: observer.isCategorySeprate$,
|
103
|
-
// })
|
104
|
-
|
105
|
-
// return () => {
|
106
|
-
// destroy$.next(undefined)
|
107
|
-
// unsubscribeBaseRacingAxis()
|
108
|
-
// }
|
109
|
-
// })
|