@orbcharts/plugins-basic 3.0.0-alpha.69 → 3.0.0-alpha.71
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/core-types.d.ts +1 -0
- package/dist/lib/core.d.ts +1 -0
- package/dist/orbcharts-plugins-basic.es.js +8861 -7395
- package/dist/orbcharts-plugins-basic.umd.js +19 -15
- package/dist/src/base/BaseBarStack.d.ts +1 -1
- package/dist/src/base/BaseBars.d.ts +1 -1
- package/dist/src/base/BaseBarsTriangle.d.ts +1 -1
- package/dist/src/base/BaseDots.d.ts +1 -1
- package/dist/src/base/BaseGroupAxis.d.ts +1 -1
- package/dist/src/base/BaseLegend.d.ts +1 -1
- package/dist/src/base/BaseLineAreas.d.ts +1 -1
- package/dist/src/base/BaseLines.d.ts +1 -1
- package/dist/src/base/BaseValueAxis.d.ts +1 -1
- package/dist/src/const.d.ts +10 -0
- package/dist/src/grid/gridObservables.d.ts +1 -1
- package/dist/src/grid/plugins/BarStack.d.ts +1 -1
- package/dist/src/grid/plugins/Bars.d.ts +1 -1
- package/dist/src/grid/plugins/BarsPN.d.ts +1 -1
- package/dist/src/grid/plugins/BarsTriangle.d.ts +1 -1
- package/dist/src/grid/plugins/Dots.d.ts +1 -1
- package/dist/src/grid/plugins/GridLegend.d.ts +1 -1
- package/dist/src/grid/plugins/GroupAux.d.ts +1 -1
- package/dist/src/grid/plugins/GroupAxis.d.ts +1 -1
- package/dist/src/grid/plugins/LineAreas.d.ts +1 -1
- package/dist/src/grid/plugins/Lines.d.ts +1 -1
- package/dist/src/grid/plugins/ScalingArea.d.ts +1 -1
- package/dist/src/grid/plugins/ValueAxis.d.ts +1 -1
- package/dist/src/grid/plugins/ValueStackAxis.d.ts +1 -1
- package/dist/src/grid/types.d.ts +1 -1
- package/dist/src/multiGrid/multiGridObservables.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiBarStack.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiBars.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiBarsTriangle.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiDots.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiGridLegend.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiGroupAxis.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiLineAreas.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiLines.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiValueAxis.d.ts +1 -1
- package/dist/src/multiGrid/plugins/MultiValueStackAxis.d.ts +1 -1
- package/dist/src/multiGrid/plugins/OverlappingValueAxes.d.ts +1 -1
- package/dist/src/multiGrid/plugins/OverlappingValueStackAxes.d.ts +1 -1
- package/dist/src/multiGrid/types.d.ts +1 -1
- package/dist/src/noneData/plugins/Container.d.ts +1 -1
- package/dist/src/noneData/plugins/Tooltip.d.ts +2 -2
- package/dist/src/noneData/types.d.ts +1 -1
- package/dist/src/series/plugins/Bubbles.d.ts +1 -1
- package/dist/src/series/plugins/Pie.d.ts +1 -1
- package/dist/src/series/plugins/PieEventTexts.d.ts +1 -1
- package/dist/src/series/plugins/PieLabels.d.ts +1 -1
- package/dist/src/series/plugins/Rose.d.ts +2 -2
- package/dist/src/series/plugins/RoseLabels.d.ts +1 -1
- package/dist/src/series/plugins/SeriesLegend.d.ts +1 -1
- package/dist/src/series/seriesObservables.d.ts +1 -1
- package/dist/src/series/seriesUtils.d.ts +1 -1
- package/dist/src/series/types.d.ts +1 -1
- package/dist/src/tree/plugins/TreeLegend.d.ts +1 -1
- package/dist/src/tree/plugins/TreeMap.d.ts +1 -1
- package/dist/src/tree/types.d.ts +1 -1
- package/dist/src/utils/orbchartsUtils.d.ts +1 -1
- package/lib/core-types.ts +7 -0
- package/lib/core.ts +6 -0
- package/package.json +3 -2
- package/src/base/BaseBarStack.ts +1 -1
- package/src/base/BaseBars.ts +1 -1
- package/src/base/BaseBarsTriangle.ts +1 -1
- package/src/base/BaseDots.ts +1 -1
- package/src/base/BaseGroupAxis.ts +7 -4
- package/src/base/BaseLegend.ts +1 -1
- package/src/base/BaseLineAreas.ts +1 -2
- package/src/base/BaseLines.ts +1 -1
- package/src/base/BaseValueAxis.ts +2 -2
- package/src/const.ts +30 -0
- package/src/grid/gridObservables.ts +5 -3
- package/src/grid/plugins/BarStack.ts +23 -2
- package/src/grid/plugins/Bars.ts +27 -2
- package/src/grid/plugins/BarsPN.ts +27 -2
- package/src/grid/plugins/BarsTriangle.ts +33 -2
- package/src/grid/plugins/Dots.ts +33 -2
- package/src/grid/plugins/GridLegend.ts +39 -2
- package/src/grid/plugins/GroupAux.ts +115 -31
- package/src/grid/plugins/GroupAxis.ts +63 -2
- package/src/grid/plugins/LineAreas.ts +27 -2
- package/src/grid/plugins/Lines.ts +21 -2
- package/src/grid/plugins/ScalingArea.ts +105 -61
- package/src/grid/plugins/ValueAxis.ts +60 -3
- package/src/grid/plugins/ValueStackAxis.ts +60 -3
- package/src/grid/types.ts +1 -1
- package/src/multiGrid/multiGridObservables.ts +1 -1
- package/src/multiGrid/plugins/MultiBarStack.ts +30 -2
- package/src/multiGrid/plugins/MultiBars.ts +33 -2
- package/src/multiGrid/plugins/MultiBarsTriangle.ts +39 -2
- package/src/multiGrid/plugins/MultiDots.ts +39 -2
- package/src/multiGrid/plugins/MultiGridLegend.ts +61 -2
- package/src/multiGrid/plugins/MultiGroupAxis.ts +69 -2
- package/src/multiGrid/plugins/MultiLineAreas.ts +33 -3
- package/src/multiGrid/plugins/MultiLines.ts +27 -3
- package/src/multiGrid/plugins/MultiValueAxis.ts +66 -2
- package/src/multiGrid/plugins/MultiValueStackAxis.ts +66 -2
- package/src/multiGrid/plugins/OverlappingValueAxes.ts +133 -4
- package/src/multiGrid/plugins/OverlappingValueStackAxes.ts +133 -4
- package/src/multiGrid/types.ts +1 -1
- package/src/noneData/defaults.ts +8 -8
- package/src/noneData/plugins/Container.ts +19 -2
- package/src/noneData/plugins/Tooltip.ts +46 -4
- package/src/noneData/types.ts +1 -1
- package/src/series/defaults.ts +1 -1
- package/src/series/plugins/Bubbles.ts +61 -3
- package/src/series/plugins/Pie.ts +43 -4
- package/src/series/plugins/PieEventTexts.ts +25 -4
- package/src/series/plugins/PieLabels.ts +39 -3
- package/src/series/plugins/Rose.ts +38 -3
- package/src/series/plugins/RoseLabels.ts +32 -3
- package/src/series/plugins/SeriesLegend.ts +39 -2
- package/src/series/seriesObservables.ts +1 -1
- package/src/series/seriesUtils.ts +1 -1
- package/src/series/types.ts +1 -1
- package/src/tree/plugins/TreeLegend.ts +39 -2
- package/src/tree/plugins/TreeMap.ts +31 -3
- package/src/tree/types.ts +1 -1
- package/src/utils/orbchartsUtils.ts +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable, Subject } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
|
-
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, ChartParams, GridContainerPosition, TransformData } from '
|
3
|
+
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, ChartParams, GridContainerPosition, TransformData } from '../../lib/core-types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseBarStackParams {
|
6
6
|
barWidth: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable, Subject } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
|
-
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, GridContainerPosition, EventGrid, ChartParams, TransformData } from '
|
3
|
+
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, GridContainerPosition, EventGrid, ChartParams, TransformData } from '../../lib/core-types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseBarsParams {
|
6
6
|
barWidth: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable, Subject } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
|
-
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterTypeMap, EventGrid, ChartParams, GridContainerPosition, TransformData } from '
|
3
|
+
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterTypeMap, EventGrid, ChartParams, GridContainerPosition, TransformData } from '../../lib/core-types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseBarsTriangleParams {
|
6
6
|
barWidth: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable, Subject } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
|
-
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, EventGrid, ChartParams, GridContainerPosition, TransformData, ColorType } from '
|
3
|
+
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, EventGrid, ChartParams, GridContainerPosition, TransformData, ColorType } from '../../lib/core-types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseDotsParams {
|
6
6
|
radius: number;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Observable } from 'rxjs';
|
2
|
-
import { ColorType, ComputedDataGrid, GridContainerPosition, DataFormatterGrid, ChartParams, TransformData } from '
|
2
|
+
import { ColorType, ComputedDataGrid, GridContainerPosition, DataFormatterGrid, ChartParams, TransformData } from '../../lib/core-types';
|
3
3
|
import { BasePluginFn } from './types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseGroupAxisParams {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
|
-
import { ChartParams, Layout, ColorType } from '
|
3
|
+
import { ChartParams, Layout, ColorType } from '../../lib/core-types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseLegendParams {
|
6
6
|
position: 'top' | 'bottom' | 'left' | 'right';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable, Subject } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
|
-
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, GridContainerPosition, ChartParams, Layout, TransformData } from '
|
3
|
+
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, GridContainerPosition, ChartParams, Layout, TransformData } from '../../lib/core-types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseLineAreasParams {
|
6
6
|
lineCurve: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable, Subject } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
|
-
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, GridContainerPosition, ChartParams, Layout, TransformData } from '
|
3
|
+
import { ComputedDatumGrid, ComputedDataGrid, ComputedLayoutDataGrid, DataFormatterGrid, EventGrid, GridContainerPosition, ChartParams, Layout, TransformData } from '../../lib/core-types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseLinesParams {
|
6
6
|
lineCurve: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable } from 'rxjs';
|
2
2
|
import { BasePluginFn } from './types';
|
3
|
-
import { ComputedDataGrid, DataFormatterGrid, ChartParams, GridContainerPosition, TransformData, ColorType } from '
|
3
|
+
import { ComputedDataGrid, DataFormatterGrid, ChartParams, GridContainerPosition, TransformData, ColorType } from '../../lib/core-types';
|
4
4
|
import * as d3 from 'd3';
|
5
5
|
export interface BaseValueAxisParams {
|
6
6
|
labelOffset: [number, number];
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export declare const LAYER_INDEX_OF_ROOT = 0;
|
2
|
+
export declare const LAYER_INDEX_OF_BG = 1;
|
3
|
+
export declare const LAYER_INDEX_OF_AXIS = 2;
|
4
|
+
export declare const LAYER_INDEX_OF_AUX = 3;
|
5
|
+
export declare const LAYER_INDEX_OF_GRAPHIC_GROUND = 4;
|
6
|
+
export declare const LAYER_INDEX_OF_GRAPHIC = 5;
|
7
|
+
export declare const LAYER_INDEX_OF_GRAPHIC_COVER = 6;
|
8
|
+
export declare const LAYER_INDEX_OF_LABEL = 7;
|
9
|
+
export declare const LAYER_INDEX_OF_INFO = 8;
|
10
|
+
export declare const LAYER_INDEX_OF_TOOLTIP = 9;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Observable } from 'rxjs';
|
2
|
-
import { ChartParams, DataFormatterGrid, ComputedDataGrid, TransformData, GridContainerPosition, Layout } from '
|
2
|
+
import { ChartParams, DataFormatterGrid, ComputedDataGrid, TransformData, GridContainerPosition, Layout } from '../../lib/core-types';
|
3
3
|
import * as d3 from 'd3';
|
4
4
|
export declare const gridSelectionsObservable: ({ selection, pluginName, clipPathID, seriesLabels$, gridContainerPosition$, gridAxesTransform$, gridGraphicTransform$ }: {
|
5
5
|
selection: d3.Selection<any, unknown, any, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const BarStack: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const BarStack: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "BarStack", import('..').BarStackParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const Bars: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const Bars: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "Bars", import('..').BarsParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const BarsPN: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const BarsPN: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "BarsPN", import('..').BarsParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const BarsTriangle: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const BarsTriangle: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "BarsTriangle", import('..').BarsTriangleParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const Dots: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const Dots: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "Dots", import('..').DotsParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const GridLegend: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const GridLegend: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "GridLegend", import('..').GridLegendParams>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { GroupAuxParams } from '../types';
|
2
2
|
|
3
|
-
export declare const GroupAux: import('@orbcharts/core').PluginConstructor<"grid",
|
3
|
+
export declare const GroupAux: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "GroupAux", GroupAuxParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const GroupAxis: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const GroupAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "GroupAxis", import('..').GroupAxisParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const LineAreas: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const LineAreas: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "LineAreas", import('..').LineAreasParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const Lines: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const Lines: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "Lines", import('..').LinesParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const ScalingArea: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const ScalingArea: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "ScalingArea", import('..').ScalingAreaParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const ValueAxis: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const ValueAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "ValueAxis", import('..').ValueAxisParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const ValueStackAxis: import('@orbcharts/core').PluginConstructor<"grid",
|
1
|
+
export declare const ValueStackAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "ValueStackAxis", import('..').ValueStackAxisParams>;
|
package/dist/src/grid/types.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Observable } from 'rxjs';
|
2
|
-
import { ContextObserverMultiGrid, ContextObserverMultiGridDetail } from '
|
2
|
+
import { ContextObserverMultiGrid, ContextObserverMultiGridDetail } from '../../lib/core-types';
|
3
3
|
|
4
4
|
interface MultiGridPluginParams {
|
5
5
|
gridIndexes: number[] | 'all';
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiBarStack: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiBarStack: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiBarStack", import('..').MultiBarStackParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiBars: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiBars: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiBars", import('..').MultiBarsParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiBarsTriangle: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiBarsTriangle: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiBarsTriangle", import('..').MultiBarsTriangleParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiDots: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiDots: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiDots", import('..').MultiDotsParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiGridLegend: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiGridLegend: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiGridLegend", import('..').MultiGridLegendParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiGroupAxis: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiGroupAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiGroupAxis", import('..').MultiGroupAxisParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiLineAreas: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiLineAreas: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiLineAreas", import('..').MultiLineAreasParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiLines: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiLines: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiLines", import('..').MultiLinesParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiValueAxis: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiValueAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiValueAxis", import('..').MultiValueAxisParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const MultiValueStackAxis: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const MultiValueStackAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "MultiValueStackAxis", import('..').MultiValueAxisParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const OverlappingValueAxes: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const OverlappingValueAxes: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "OverlappingValueAxes", import('..').OverlappingValueAxesParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const OverlappingValueStackAxes: import('@orbcharts/core').PluginConstructor<"multiGrid",
|
1
|
+
export declare const OverlappingValueStackAxes: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"multiGrid", "OverlappingValueStackAxes", import('..').OverlappingValueStackAxesParams>;
|
@@ -6,7 +6,7 @@ import { BaseLineAreasParams } from '../base/BaseLineAreas';
|
|
6
6
|
import { BaseDotsParams } from '../base/BaseDots';
|
7
7
|
import { BaseGroupAxisParams } from '../base/BaseGroupAxis';
|
8
8
|
import { BaseValueAxisParams } from '../base/BaseValueAxis';
|
9
|
-
import { ColorType } from '
|
9
|
+
import { ColorType } from '../../lib/core-types';
|
10
10
|
|
11
11
|
export interface MultiGridLegendParams {
|
12
12
|
position: 'top' | 'bottom' | 'left' | 'right';
|
@@ -1 +1 @@
|
|
1
|
-
export declare const Container: import('@orbcharts/core').PluginConstructor<any,
|
1
|
+
export declare const Container: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<any, "Container", import('..').ContainerPluginParams>;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { PluginConstructor } from '
|
1
|
+
import { PluginConstructor } from '../../../lib/core-types';
|
2
2
|
|
3
|
-
export declare const Tooltip: PluginConstructor<any,
|
3
|
+
export declare const Tooltip: PluginConstructor<any, "Tooltip", import('..').TooltipParams>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BubblesParams } from '../types';
|
2
2
|
|
3
|
-
export declare const Bubbles: import('@orbcharts/core').PluginConstructor<"series",
|
3
|
+
export declare const Bubbles: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"series", "Bubbles", BubblesParams>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PieEventTextsParams } from '../types';
|
2
2
|
|
3
|
-
export declare const PieEventTexts: import('@orbcharts/core').PluginConstructor<"series",
|
3
|
+
export declare const PieEventTexts: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"series", "PieEventTexts", PieEventTextsParams>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PieLabelsParams } from '../types';
|
2
2
|
|
3
|
-
export declare const PieLabels: import('@orbcharts/core').PluginConstructor<"series",
|
3
|
+
export declare const PieLabels: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"series", "PieLabels", PieLabelsParams>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ComputedDatumSeries } from '
|
1
|
+
import { ComputedDatumSeries } from '../../../lib/core-types';
|
2
2
|
import { D3PieDatum } from '../seriesUtils';
|
3
3
|
import { RoseParams } from '../types';
|
4
4
|
|
@@ -7,4 +7,4 @@ export interface PieDatum extends D3PieDatum {
|
|
7
7
|
id: string;
|
8
8
|
prevValue: number;
|
9
9
|
}
|
10
|
-
export declare const Rose: import('@orbcharts/core').PluginConstructor<"series",
|
10
|
+
export declare const Rose: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"series", "Rose", RoseParams>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { RoseLabelsParams } from '../types';
|
2
2
|
|
3
|
-
export declare const RoseLabels: import('@orbcharts/core').PluginConstructor<"series",
|
3
|
+
export declare const RoseLabels: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"series", "RoseLabels", RoseLabelsParams>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const SeriesLegend: import('@orbcharts/core').PluginConstructor<"series",
|
1
|
+
export declare const SeriesLegend: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"series", "SeriesLegend", import('..').SeriesLegendParams>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Observable } from 'rxjs';
|
2
|
-
import { SeriesContainerPosition } from '
|
2
|
+
import { SeriesContainerPosition } from '../../lib/core-types';
|
3
3
|
import * as d3 from 'd3';
|
4
4
|
export declare const seriesStartSelectionObservable: ({ selection, pluginName, separateSeries$, seriesLabels$, seriesContainerPosition$ }: {
|
5
5
|
selection: d3.Selection<any, unknown, any, unknown>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const TreeLegend: import('@orbcharts/core').PluginConstructor<"tree",
|
1
|
+
export declare const TreeLegend: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"tree", "TreeLegend", import('..').TreeLegendParams>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TreeMapParams } from '../types';
|
2
2
|
|
3
|
-
export declare const TreeMap: import('@orbcharts/core').PluginConstructor<"tree",
|
3
|
+
export declare const TreeMap: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"tree", "TreeMap", TreeMapParams>;
|
package/dist/src/tree/types.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AxisPosition, ColorType, ChartParams, ComputedDatumBase, ComputedDatumCategoryValue } from '
|
1
|
+
import { AxisPosition, ColorType, ChartParams, ComputedDatumBase, ComputedDatumCategoryValue } from '../../lib/core-types';
|
2
2
|
|
3
3
|
export declare function getMinAndMaxValue(data: ComputedDatumBase[]): [number, number];
|
4
4
|
export declare function getColor(colorType: ColorType, fullChartParams: ChartParams): string;
|
package/lib/core.ts
ADDED
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.71",
|
4
4
|
"description": "plugins for OrbCharts",
|
5
5
|
"author": "Blue Planet Inc.",
|
6
6
|
"license": "Apache-2.0",
|
@@ -35,7 +35,8 @@
|
|
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.64",
|
39
|
+
"@orbcharts/core-types": "^3.0.0-alpha.3",
|
39
40
|
"d3": "^7.8.5",
|
40
41
|
"rxjs": "^7.8.1"
|
41
42
|
}
|
package/src/base/BaseBarStack.ts
CHANGED
@@ -19,7 +19,7 @@ import type {
|
|
19
19
|
ChartParams,
|
20
20
|
GridContainerPosition,
|
21
21
|
Layout,
|
22
|
-
TransformData } from '
|
22
|
+
TransformData } from '../../lib/core-types'
|
23
23
|
import { getD3TransitionEase } from '../utils/d3Utils'
|
24
24
|
import { getClassName, getUniID } from '../utils/orbchartsUtils'
|
25
25
|
import { gridSelectionsObservable } from '../grid/gridObservables'
|
package/src/base/BaseBars.ts
CHANGED
@@ -18,7 +18,7 @@ import type {
|
|
18
18
|
EventGrid,
|
19
19
|
ChartParams,
|
20
20
|
Layout,
|
21
|
-
TransformData } from '
|
21
|
+
TransformData } from '../../lib/core-types'
|
22
22
|
import { getD3TransitionEase } from '../utils/d3Utils'
|
23
23
|
import { getClassName, getUniID } from '../utils/orbchartsUtils'
|
24
24
|
import { gridSelectionsObservable } from '../grid/gridObservables'
|
@@ -19,7 +19,7 @@ import type {
|
|
19
19
|
ChartParams,
|
20
20
|
GridContainerPosition,
|
21
21
|
Layout,
|
22
|
-
TransformData } from '
|
22
|
+
TransformData } from '../../lib/core-types'
|
23
23
|
import { getD3TransitionEase } from '../utils/d3Utils'
|
24
24
|
import { getClassName, getUniID } from '../utils/orbchartsUtils'
|
25
25
|
import { gridSelectionsObservable } from '../grid/gridObservables'
|
package/src/base/BaseDots.ts
CHANGED
@@ -17,7 +17,7 @@ import type {
|
|
17
17
|
GridContainerPosition,
|
18
18
|
Layout,
|
19
19
|
TransformData,
|
20
|
-
ColorType } from '
|
20
|
+
ColorType } from '../../lib/core-types'
|
21
21
|
import { getDatumColor, getClassName, getUniID } from '../utils/orbchartsUtils'
|
22
22
|
import { gridSelectionsObservable } from '../grid/gridObservables'
|
23
23
|
|
@@ -10,13 +10,16 @@ import {
|
|
10
10
|
shareReplay,
|
11
11
|
Observable,
|
12
12
|
Subject } from 'rxjs'
|
13
|
-
import type { ColorType, ComputedDataGrid, GridContainerPosition } from '@orbcharts/core'
|
14
|
-
import type { BasePluginFn } from './types'
|
15
13
|
import type {
|
14
|
+
ColorType,
|
15
|
+
ComputedDataGrid,
|
16
|
+
GridContainerPosition,
|
16
17
|
ComputedDatumGrid,
|
17
18
|
DataFormatterGrid,
|
18
19
|
ChartParams,
|
19
|
-
TransformData
|
20
|
+
TransformData
|
21
|
+
} from '../../lib/core-types'
|
22
|
+
import type { BasePluginFn } from './types'
|
20
23
|
import { parseTickFormatValue } from '../utils/d3Utils'
|
21
24
|
import { getColor, getClassName } from '../utils/orbchartsUtils'
|
22
25
|
import { renderTspansOnAxis } from '../utils/d3Graphics'
|
@@ -233,7 +236,7 @@ function renderAxis ({ selection, xAxisClassName, fullParams, tickTextAlign, gri
|
|
233
236
|
.call(xAxis)
|
234
237
|
.on('end', (self, t) => {
|
235
238
|
// 先等transition結束再處理文字,否則會被原本的文字覆蓋
|
236
|
-
|
239
|
+
xAxisSelection
|
237
240
|
.selectAll('.tick text')
|
238
241
|
.each((groupIndex: number, i, n) => {
|
239
242
|
// const groupLabel = groupLabels[groupIndex] ?? '' // 非整數index不顯示
|
package/src/base/BaseLegend.ts
CHANGED
@@ -9,7 +9,7 @@ import {
|
|
9
9
|
Subject } from 'rxjs'
|
10
10
|
import type { BasePluginFn } from './types'
|
11
11
|
import type {
|
12
|
-
ChartParams, Layout, ColorType } from '
|
12
|
+
ChartParams, Layout, ColorType } from '../../lib/core-types'
|
13
13
|
import { getClassName, getColor, getDatumColor } from '../utils/orbchartsUtils'
|
14
14
|
import { measureTextWidth } from '../utils/commonUtils'
|
15
15
|
|
@@ -19,8 +19,7 @@ import type {
|
|
19
19
|
GridContainerPosition,
|
20
20
|
ChartParams,
|
21
21
|
Layout,
|
22
|
-
TransformData } from '
|
23
|
-
import { createAxisLinearScale } from '@orbcharts/core'
|
22
|
+
TransformData } from '../../lib/core-types'
|
24
23
|
import { getD3TransitionEase } from '../utils/d3Utils'
|
25
24
|
import { getClassName, getUniID, getMinAndMaxValue } from '../utils/orbchartsUtils'
|
26
25
|
import { gridGroupPositionFnObservable } from '../grid/gridObservables'
|
package/src/base/BaseLines.ts
CHANGED
@@ -19,7 +19,7 @@ import type {
|
|
19
19
|
GridContainerPosition,
|
20
20
|
ChartParams,
|
21
21
|
Layout,
|
22
|
-
TransformData } from '
|
22
|
+
TransformData } from '../../lib/core-types'
|
23
23
|
import { getD3TransitionEase } from '../utils/d3Utils'
|
24
24
|
import { getClassName, getUniID } from '../utils/orbchartsUtils'
|
25
25
|
import { gridGroupPositionFnObservable } from '../grid/gridObservables'
|
@@ -8,7 +8,7 @@ import {
|
|
8
8
|
takeUntil,
|
9
9
|
Observable,
|
10
10
|
Subject } from 'rxjs'
|
11
|
-
import { createAxisLinearScale } from '
|
11
|
+
import { createAxisLinearScale } from '../../lib/core'
|
12
12
|
import type { BasePluginFn } from './types'
|
13
13
|
import type {
|
14
14
|
ComputedDataGrid,
|
@@ -18,7 +18,7 @@ import type {
|
|
18
18
|
GridContainerPosition,
|
19
19
|
TransformData,
|
20
20
|
EventGrid,
|
21
|
-
ColorType } from '
|
21
|
+
ColorType } from '../../lib/core-types'
|
22
22
|
import { parseTickFormatValue } from '../utils/d3Utils'
|
23
23
|
import { getColor, getMinAndMaxValue, getClassName, getUniID } from '../utils/orbchartsUtils'
|
24
24
|
|
package/src/const.ts
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
// 圖層索引 - 底層(無圖型)
|
3
|
+
export const LAYER_INDEX_OF_ROOT = 0
|
4
|
+
|
5
|
+
// 圖層索引 - 背景 *預留
|
6
|
+
export const LAYER_INDEX_OF_BG = 1
|
7
|
+
|
8
|
+
// 圖層索引 - 圖軸
|
9
|
+
export const LAYER_INDEX_OF_AXIS = 2
|
10
|
+
|
11
|
+
// 圖層索引 - 輔助線、圖軸的輔助資訊
|
12
|
+
export const LAYER_INDEX_OF_AUX = 3
|
13
|
+
|
14
|
+
// 圖層索引 - 底層圖型
|
15
|
+
export const LAYER_INDEX_OF_GRAPHIC_GROUND = 4
|
16
|
+
|
17
|
+
// 圖層索引 - 一般圖型
|
18
|
+
export const LAYER_INDEX_OF_GRAPHIC = 5
|
19
|
+
|
20
|
+
// 圖層索引 - 覆蓋圖型
|
21
|
+
export const LAYER_INDEX_OF_GRAPHIC_COVER = 6
|
22
|
+
|
23
|
+
// 圖層索引 - 圖型上的標籤文字
|
24
|
+
export const LAYER_INDEX_OF_LABEL = 7
|
25
|
+
|
26
|
+
// 圖層索引 - 圖例、圖表上的文字
|
27
|
+
export const LAYER_INDEX_OF_INFO = 8
|
28
|
+
|
29
|
+
// 圖層索引 - Tooltip、事件觸發的覆蓋圖型
|
30
|
+
export const LAYER_INDEX_OF_TOOLTIP = 9
|
@@ -20,8 +20,8 @@ import type {
|
|
20
20
|
ComputedDatumGrid,
|
21
21
|
TransformData,
|
22
22
|
GridContainerPosition,
|
23
|
-
Layout } from '
|
24
|
-
import { createAxisQuantizeScale } from '
|
23
|
+
Layout } from '../../lib/core-types'
|
24
|
+
import { createAxisQuantizeScale } from '../../lib/core'
|
25
25
|
import { getClassName, getUniID } from '../utils/orbchartsUtils'
|
26
26
|
import { d3EventObservable } from '../utils/observables'
|
27
27
|
|
@@ -274,6 +274,7 @@ export const gridGroupPositionFnObservable = ({ fullDataFormatter$, gridAxesSize
|
|
274
274
|
axisSize: gridAxesSize$,
|
275
275
|
fullChartParams: fullChartParams$,
|
276
276
|
scaleRangeGroupLabels: scaleRangeGroupLabels$,
|
277
|
+
groupLabels: groupLabels$,
|
277
278
|
groupScaleDomain: groupScaleDomain$,
|
278
279
|
columnAmount: columnAmount$,
|
279
280
|
rowAmount: rowAmount$,
|
@@ -315,9 +316,10 @@ export const gridGroupPositionFnObservable = ({ fullDataFormatter$, gridAxesSize
|
|
315
316
|
const xIndex = xIndexScale(axisValue)
|
316
317
|
const currentxIndexStart = Math.ceil(data.groupScaleDomain[0]) // 因為有padding所以會有小數點,所以要無條件進位
|
317
318
|
const groupIndex = xIndex + currentxIndexStart
|
319
|
+
|
318
320
|
return {
|
319
321
|
groupIndex,
|
320
|
-
groupLabel: data.
|
322
|
+
groupLabel: data.groupLabels[groupIndex] ?? ''
|
321
323
|
}
|
322
324
|
}
|
323
325
|
|