@orbcharts/plugins-basic 3.0.0-alpha.69 → 3.0.0-alpha.71

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.
Files changed (121) hide show
  1. package/dist/lib/core-types.d.ts +1 -0
  2. package/dist/lib/core.d.ts +1 -0
  3. package/dist/orbcharts-plugins-basic.es.js +8861 -7395
  4. package/dist/orbcharts-plugins-basic.umd.js +19 -15
  5. package/dist/src/base/BaseBarStack.d.ts +1 -1
  6. package/dist/src/base/BaseBars.d.ts +1 -1
  7. package/dist/src/base/BaseBarsTriangle.d.ts +1 -1
  8. package/dist/src/base/BaseDots.d.ts +1 -1
  9. package/dist/src/base/BaseGroupAxis.d.ts +1 -1
  10. package/dist/src/base/BaseLegend.d.ts +1 -1
  11. package/dist/src/base/BaseLineAreas.d.ts +1 -1
  12. package/dist/src/base/BaseLines.d.ts +1 -1
  13. package/dist/src/base/BaseValueAxis.d.ts +1 -1
  14. package/dist/src/const.d.ts +10 -0
  15. package/dist/src/grid/gridObservables.d.ts +1 -1
  16. package/dist/src/grid/plugins/BarStack.d.ts +1 -1
  17. package/dist/src/grid/plugins/Bars.d.ts +1 -1
  18. package/dist/src/grid/plugins/BarsPN.d.ts +1 -1
  19. package/dist/src/grid/plugins/BarsTriangle.d.ts +1 -1
  20. package/dist/src/grid/plugins/Dots.d.ts +1 -1
  21. package/dist/src/grid/plugins/GridLegend.d.ts +1 -1
  22. package/dist/src/grid/plugins/GroupAux.d.ts +1 -1
  23. package/dist/src/grid/plugins/GroupAxis.d.ts +1 -1
  24. package/dist/src/grid/plugins/LineAreas.d.ts +1 -1
  25. package/dist/src/grid/plugins/Lines.d.ts +1 -1
  26. package/dist/src/grid/plugins/ScalingArea.d.ts +1 -1
  27. package/dist/src/grid/plugins/ValueAxis.d.ts +1 -1
  28. package/dist/src/grid/plugins/ValueStackAxis.d.ts +1 -1
  29. package/dist/src/grid/types.d.ts +1 -1
  30. package/dist/src/multiGrid/multiGridObservables.d.ts +1 -1
  31. package/dist/src/multiGrid/plugins/MultiBarStack.d.ts +1 -1
  32. package/dist/src/multiGrid/plugins/MultiBars.d.ts +1 -1
  33. package/dist/src/multiGrid/plugins/MultiBarsTriangle.d.ts +1 -1
  34. package/dist/src/multiGrid/plugins/MultiDots.d.ts +1 -1
  35. package/dist/src/multiGrid/plugins/MultiGridLegend.d.ts +1 -1
  36. package/dist/src/multiGrid/plugins/MultiGroupAxis.d.ts +1 -1
  37. package/dist/src/multiGrid/plugins/MultiLineAreas.d.ts +1 -1
  38. package/dist/src/multiGrid/plugins/MultiLines.d.ts +1 -1
  39. package/dist/src/multiGrid/plugins/MultiValueAxis.d.ts +1 -1
  40. package/dist/src/multiGrid/plugins/MultiValueStackAxis.d.ts +1 -1
  41. package/dist/src/multiGrid/plugins/OverlappingValueAxes.d.ts +1 -1
  42. package/dist/src/multiGrid/plugins/OverlappingValueStackAxes.d.ts +1 -1
  43. package/dist/src/multiGrid/types.d.ts +1 -1
  44. package/dist/src/noneData/plugins/Container.d.ts +1 -1
  45. package/dist/src/noneData/plugins/Tooltip.d.ts +2 -2
  46. package/dist/src/noneData/types.d.ts +1 -1
  47. package/dist/src/series/plugins/Bubbles.d.ts +1 -1
  48. package/dist/src/series/plugins/Pie.d.ts +1 -1
  49. package/dist/src/series/plugins/PieEventTexts.d.ts +1 -1
  50. package/dist/src/series/plugins/PieLabels.d.ts +1 -1
  51. package/dist/src/series/plugins/Rose.d.ts +2 -2
  52. package/dist/src/series/plugins/RoseLabels.d.ts +1 -1
  53. package/dist/src/series/plugins/SeriesLegend.d.ts +1 -1
  54. package/dist/src/series/seriesObservables.d.ts +1 -1
  55. package/dist/src/series/seriesUtils.d.ts +1 -1
  56. package/dist/src/series/types.d.ts +1 -1
  57. package/dist/src/tree/plugins/TreeLegend.d.ts +1 -1
  58. package/dist/src/tree/plugins/TreeMap.d.ts +1 -1
  59. package/dist/src/tree/types.d.ts +1 -1
  60. package/dist/src/utils/orbchartsUtils.d.ts +1 -1
  61. package/lib/core-types.ts +7 -0
  62. package/lib/core.ts +6 -0
  63. package/package.json +3 -2
  64. package/src/base/BaseBarStack.ts +1 -1
  65. package/src/base/BaseBars.ts +1 -1
  66. package/src/base/BaseBarsTriangle.ts +1 -1
  67. package/src/base/BaseDots.ts +1 -1
  68. package/src/base/BaseGroupAxis.ts +7 -4
  69. package/src/base/BaseLegend.ts +1 -1
  70. package/src/base/BaseLineAreas.ts +1 -2
  71. package/src/base/BaseLines.ts +1 -1
  72. package/src/base/BaseValueAxis.ts +2 -2
  73. package/src/const.ts +30 -0
  74. package/src/grid/gridObservables.ts +5 -3
  75. package/src/grid/plugins/BarStack.ts +23 -2
  76. package/src/grid/plugins/Bars.ts +27 -2
  77. package/src/grid/plugins/BarsPN.ts +27 -2
  78. package/src/grid/plugins/BarsTriangle.ts +33 -2
  79. package/src/grid/plugins/Dots.ts +33 -2
  80. package/src/grid/plugins/GridLegend.ts +39 -2
  81. package/src/grid/plugins/GroupAux.ts +115 -31
  82. package/src/grid/plugins/GroupAxis.ts +63 -2
  83. package/src/grid/plugins/LineAreas.ts +27 -2
  84. package/src/grid/plugins/Lines.ts +21 -2
  85. package/src/grid/plugins/ScalingArea.ts +105 -61
  86. package/src/grid/plugins/ValueAxis.ts +60 -3
  87. package/src/grid/plugins/ValueStackAxis.ts +60 -3
  88. package/src/grid/types.ts +1 -1
  89. package/src/multiGrid/multiGridObservables.ts +1 -1
  90. package/src/multiGrid/plugins/MultiBarStack.ts +30 -2
  91. package/src/multiGrid/plugins/MultiBars.ts +33 -2
  92. package/src/multiGrid/plugins/MultiBarsTriangle.ts +39 -2
  93. package/src/multiGrid/plugins/MultiDots.ts +39 -2
  94. package/src/multiGrid/plugins/MultiGridLegend.ts +61 -2
  95. package/src/multiGrid/plugins/MultiGroupAxis.ts +69 -2
  96. package/src/multiGrid/plugins/MultiLineAreas.ts +33 -3
  97. package/src/multiGrid/plugins/MultiLines.ts +27 -3
  98. package/src/multiGrid/plugins/MultiValueAxis.ts +66 -2
  99. package/src/multiGrid/plugins/MultiValueStackAxis.ts +66 -2
  100. package/src/multiGrid/plugins/OverlappingValueAxes.ts +133 -4
  101. package/src/multiGrid/plugins/OverlappingValueStackAxes.ts +133 -4
  102. package/src/multiGrid/types.ts +1 -1
  103. package/src/noneData/defaults.ts +8 -8
  104. package/src/noneData/plugins/Container.ts +19 -2
  105. package/src/noneData/plugins/Tooltip.ts +46 -4
  106. package/src/noneData/types.ts +1 -1
  107. package/src/series/defaults.ts +1 -1
  108. package/src/series/plugins/Bubbles.ts +61 -3
  109. package/src/series/plugins/Pie.ts +43 -4
  110. package/src/series/plugins/PieEventTexts.ts +25 -4
  111. package/src/series/plugins/PieLabels.ts +39 -3
  112. package/src/series/plugins/Rose.ts +38 -3
  113. package/src/series/plugins/RoseLabels.ts +32 -3
  114. package/src/series/plugins/SeriesLegend.ts +39 -2
  115. package/src/series/seriesObservables.ts +1 -1
  116. package/src/series/seriesUtils.ts +1 -1
  117. package/src/series/types.ts +1 -1
  118. package/src/tree/plugins/TreeLegend.ts +39 -2
  119. package/src/tree/plugins/TreeMap.ts +31 -3
  120. package/src/tree/types.ts +1 -1
  121. 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 '@orbcharts/core';
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 '@orbcharts/core';
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 '@orbcharts/core';
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 '@orbcharts/core';
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 '@orbcharts/core';
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 '@orbcharts/core';
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 '@orbcharts/core';
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 '@orbcharts/core';
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 '@orbcharts/core';
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 '@orbcharts/core';
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", string, import('..').BarStackParams>;
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", string, import('..').BarsParams>;
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", string, import('..').BarsParams>;
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", string, import('..').BarsTriangleParams>;
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", string, import('..').DotsParams>;
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", string, import('..').GridLegendParams>;
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", string, GroupAuxParams>;
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", string, import('..').GroupAxisParams>;
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", string, import('..').LineAreasParams>;
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", string, import('..').LinesParams>;
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", string, import('..').ScalingAreaParams>;
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", string, import('..').ValueAxisParams>;
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", string, import('..').ValueStackAxisParams>;
1
+ export declare const ValueStackAxis: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"grid", "ValueStackAxis", import('..').ValueStackAxisParams>;
@@ -1,4 +1,4 @@
1
- import { ColorType } from '@orbcharts/core';
1
+ import { ColorType } from '../../lib/core-types';
2
2
 
3
3
  export interface LinesParams {
4
4
  lineCurve: string;
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ContextObserverMultiGrid, ContextObserverMultiGridDetail } from '@orbcharts/core';
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", string, import('..').MultiBarStackParams>;
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", string, import('..').MultiBarsParams>;
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", string, import('..').MultiBarsTriangleParams>;
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", string, import('..').MultiDotsParams>;
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", string, import('..').MultiGridLegendParams>;
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", string, import('..').MultiGroupAxisParams>;
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", string, import('..').MultiLineAreasParams>;
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", string, import('..').MultiLinesParams>;
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", string, import('..').MultiValueAxisParams>;
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", string, import('..').MultiValueAxisParams>;
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", string, import('..').OverlappingValueAxesParams>;
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", string, import('..').OverlappingValueStackAxesParams>;
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 '@orbcharts/core';
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, string, import('..').ContainerPluginParams>;
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 '@orbcharts/core';
1
+ import { PluginConstructor } from '../../../lib/core-types';
2
2
 
3
- export declare const Tooltip: PluginConstructor<any, string, any>;
3
+ export declare const Tooltip: PluginConstructor<any, "Tooltip", import('..').TooltipParams>;
@@ -1,4 +1,4 @@
1
- import { ColorType, ChartType, EventTypeMap } from '@orbcharts/core';
1
+ import { ColorType, ChartType, EventTypeMap } from '../../lib/core-types';
2
2
 
3
3
  export interface ContainerPluginParams {
4
4
  header: {
@@ -1,3 +1,3 @@
1
1
  import { BubblesParams } from '../types';
2
2
 
3
- export declare const Bubbles: import('@orbcharts/core').PluginConstructor<"series", string, BubblesParams>;
3
+ export declare const Bubbles: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"series", "Bubbles", BubblesParams>;
@@ -1,3 +1,3 @@
1
1
  import { PieParams } from '../types';
2
2
 
3
- export declare const Pie: import('@orbcharts/core').PluginConstructor<"series", string, PieParams>;
3
+ export declare const Pie: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"series", "Pie", PieParams>;
@@ -1,3 +1,3 @@
1
1
  import { PieEventTextsParams } from '../types';
2
2
 
3
- export declare const PieEventTexts: import('@orbcharts/core').PluginConstructor<"series", string, PieEventTextsParams>;
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", string, PieLabelsParams>;
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 '@orbcharts/core';
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", string, RoseParams>;
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", string, RoseLabelsParams>;
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", string, import('..').SeriesLegendParams>;
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 '@orbcharts/core';
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,4 +1,4 @@
1
- import { ComputedDatumSeries } from '@orbcharts/core';
1
+ import { ComputedDatumSeries } from '../../lib/core-types';
2
2
 
3
3
  export interface D3PieDatum {
4
4
  data: any;
@@ -1,4 +1,4 @@
1
- import { ComputedDatumSeries, EventSeries, EventName, ColorType } from '@orbcharts/core';
1
+ import { ComputedDatumSeries, EventSeries, EventName, ColorType } from '../../lib/core-types';
2
2
 
3
3
  export type ArcScaleType = 'area' | 'radius';
4
4
  export interface BubblesParams {
@@ -1 +1 @@
1
- export declare const TreeLegend: import('@orbcharts/core').PluginConstructor<"tree", string, import('..').TreeLegendParams>;
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", string, TreeMapParams>;
3
+ export declare const TreeMap: import('@orbcharts/core-types/dist/src/types/Plugin').PluginConstructor<"tree", "TreeMap", TreeMapParams>;
@@ -1,4 +1,4 @@
1
- import { ColorType, ComputedDataTree } from '@orbcharts/core';
1
+ import { ColorType, ComputedDataTree } from '../../lib/core-types';
2
2
 
3
3
  export interface TreeMapParams {
4
4
  paddingInner: number;
@@ -1,4 +1,4 @@
1
- import { AxisPosition, ColorType, ChartParams, ComputedDatumBase, ComputedDatumCategoryValue } from '@orbcharts/core';
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;
@@ -0,0 +1,7 @@
1
+
2
+
3
+ export * from '@orbcharts/core-types'
4
+
5
+ // test
6
+ // export * from '../../orbcharts-core-types/src'
7
+
package/lib/core.ts ADDED
@@ -0,0 +1,6 @@
1
+
2
+
3
+ export * from '@orbcharts/core'
4
+
5
+ // test
6
+ // export * from '../../orbcharts-core/src'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbcharts/plugins-basic",
3
- "version": "3.0.0-alpha.69",
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.61",
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
  }
@@ -19,7 +19,7 @@ import type {
19
19
  ChartParams,
20
20
  GridContainerPosition,
21
21
  Layout,
22
- TransformData } from '@orbcharts/core'
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'
@@ -18,7 +18,7 @@ import type {
18
18
  EventGrid,
19
19
  ChartParams,
20
20
  Layout,
21
- TransformData } from '@orbcharts/core'
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 '@orbcharts/core'
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'
@@ -17,7 +17,7 @@ import type {
17
17
  GridContainerPosition,
18
18
  Layout,
19
19
  TransformData,
20
- ColorType } from '@orbcharts/core'
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 } from '@orbcharts/core'
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
- xAxisEl
239
+ xAxisSelection
237
240
  .selectAll('.tick text')
238
241
  .each((groupIndex: number, i, n) => {
239
242
  // const groupLabel = groupLabels[groupIndex] ?? '' // 非整數index不顯示
@@ -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 '@orbcharts/core'
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 '@orbcharts/core'
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'
@@ -19,7 +19,7 @@ import type {
19
19
  GridContainerPosition,
20
20
  ChartParams,
21
21
  Layout,
22
- TransformData } from '@orbcharts/core'
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 '@orbcharts/core'
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 '@orbcharts/core'
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 '@orbcharts/core'
24
- import { createAxisQuantizeScale } from '@orbcharts/core'
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.scaleRangeGroupLabels[groupIndex] ?? ''
322
+ groupLabel: data.groupLabels[groupIndex] ?? ''
321
323
  }
322
324
  }
323
325