vue-chrts 2.1.0-beta-8 → 2.1.0-beta-9
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/dist/components/AreaChart/AreaChart.d.ts +185 -0
- package/dist/components/AreaChart/AreaChart.js +1 -1
- package/dist/components/AreaChart/AreaChart.vue.d.ts +1 -1
- package/dist/components/AreaChart/index.d.ts +2 -0
- package/dist/components/BarChart/BarChart.d.ts +192 -0
- package/dist/components/BarChart/BarChart.js +1 -1
- package/dist/components/BarChart/BarChart.vue.d.ts +1 -1
- package/dist/components/BarChart/index.d.ts +2 -0
- package/dist/components/BubbleChart/BubbleChart.d.ts +173 -0
- package/dist/components/BubbleChart/BubbleChart.js +1 -1
- package/dist/components/BubbleChart/BubbleChart.vue.d.ts +1 -1
- package/dist/components/BubbleChart/index.d.ts +2 -0
- package/dist/components/DagreGraph/DagreGraph.d.ts +254 -0
- package/dist/components/DagreGraph/DagreGraph.js +1 -1
- package/dist/components/DagreGraph/DagreGraph.vue.d.ts +1 -1
- package/dist/components/DagreGraph/index.d.ts +2 -0
- package/dist/components/DagreGraph/types.d.ts +2 -1
- package/dist/components/DonutChart/DonutChart.d.ts +68 -0
- package/dist/components/DonutChart/DonutChart.js +4 -4
- package/dist/components/DonutChart/DonutChart.vue.d.ts +1 -1
- package/dist/components/DonutChart/DonutChart2.js +2 -2
- package/dist/components/DonutChart/DonutChart3.js +4 -0
- package/dist/components/DonutChart/index.d.ts +2 -0
- package/dist/components/DualChart/DualChart.d.ts +195 -0
- package/dist/components/DualChart/DualChart.js +1 -1
- package/dist/components/DualChart/DualChart.vue.d.ts +1 -1
- package/dist/components/DualChart/index.d.ts +2 -0
- package/dist/components/DualChart/types.d.ts +2 -2
- package/dist/components/GanttChart/GanttChart.d.ts +125 -0
- package/dist/components/GanttChart/GanttChart.js +1 -1
- package/dist/components/GanttChart/GanttChart.vue.d.ts +1 -1
- package/dist/components/GanttChart/index.d.ts +2 -0
- package/dist/components/LineChart/LineChart.d.ts +2 -0
- package/dist/components/LineChart/LineChart.vue.d.ts +1 -1
- package/dist/components/LineChart/index.d.ts +2 -0
- package/dist/components/Maps/DottedMap/DottedMap.vue.d.ts +2 -2
- package/dist/components/Maps/DottedMap/core.vue.d.ts +3 -3
- package/dist/components/Maps/DottedMap/mapUtils.js +22 -22
- package/dist/components/Maps/TopoJSONMap/TopoJSONMap.js +1 -1
- package/dist/components/Maps/TopoJSONMap/TopoJSONMap.vue.d.ts +2 -2
- package/dist/components/Maps/TopoJSONMap/types.d.ts +2 -1
- package/dist/components/Maps/index.d.ts +5 -0
- package/dist/components/SankeyChart/SankeyChart.d.ts +117 -0
- package/dist/components/SankeyChart/SankeyChart.js +1 -1
- package/dist/components/SankeyChart/SankeyChart.vue.d.ts +1 -1
- package/dist/components/SankeyChart/index.d.ts +2 -0
- package/dist/components/SankeyChart/types.d.ts +2 -1
- package/dist/enums.d.ts +32 -0
- package/dist/enums.js +6 -0
- package/dist/index.d.ts +12 -14
- package/dist/index.js +31 -31
- package/dist/types.d.ts +57 -7
- package/package.json +12 -12
- package/dist/components/AreaChart/types.d.ts +0 -1
- package/dist/components/BarChart/types.d.ts +0 -1
- package/dist/components/BubbleChart/types.d.ts +0 -1
- package/dist/components/DonutChart/types.d.ts +0 -2
- package/dist/components/GanttChart/types.d.ts +0 -1
- package/dist/components/LineChart/types.d.ts +0 -1
- package/dist/node_modules/.pnpm/@turf_boolean-point-in-polygon@7.3.2/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +0 -28
- package/dist/node_modules/.pnpm/@turf_invariant@7.3.2/node_modules/@turf/invariant/dist/esm/index.js +0 -20
- package/dist/node_modules/.pnpm/mgrs@1.0.0/node_modules/mgrs/mgrs.js +0 -222
- package/dist/node_modules/.pnpm/point-in-polygon-hao@1.2.4/node_modules/point-in-polygon-hao/dist/esm/index.js +0 -25
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Point.js +0 -24
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Proj.js +0 -46
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/adjust_axis.js +0 -31
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/checkSanity.js +0 -15
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lat.js +0 -8
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lon.js +0 -8
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_zone.js +0 -13
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinhy.js +0 -9
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinz.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens.js +0 -8
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens_cmplx.js +0 -10
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/cosh.js +0 -7
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e0fn.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e1fn.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e2fn.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e3fn.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gN.js +0 -7
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gatg.js +0 -8
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/hypot.js +0 -8
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/imlfn.js +0 -11
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/iqsfnz.js +0 -13
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/log1py.js +0 -7
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/mlfn.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/msfnz.js +0 -7
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/phi2z.js +0 -10
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_enfn.js +0 -10
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_inv_mlfn.js +0 -14
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_mlfn.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/qsfnz.js +0 -7
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sign.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sinh.js +0 -7
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/srat.js +0 -6
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/toPoint.js +0 -10
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/tsfnz.js +0 -8
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/vincenty.js +0 -33
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Datum.js +0 -1278
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Ellipsoid.js +0 -226
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/PrimeMeridian.js +0 -17
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/units.js +0 -25
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/values.js +0 -22
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/core.js +0 -65
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum.js +0 -8
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datumUtils.js +0 -82
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum_transform.js +0 -94
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/defs.js +0 -39
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/deriveConstants.js +0 -30
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/extend.js +0 -12
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/global.js +0 -9
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/index.js +0 -25
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/match.js +0 -11
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/nadgrid.js +0 -128
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/parseCode.js +0 -47
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projString.js +0 -119
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aea.js +0 -43
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aeqd.js +0 -36
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/bonne.js +0 -55
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cass.js +0 -52
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cea.js +0 -36
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqc.js +0 -27
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqdc.js +0 -48
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqearth.js +0 -30
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/etmerc.js +0 -54
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gauss.js +0 -27
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geocent.js +0 -26
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geos.js +0 -49
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gnom.js +0 -28
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/krovak.js +0 -31
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/laea.js +0 -134
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/lcc.js +0 -61
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/longlat.js +0 -19
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/merc.js +0 -49
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/mill.js +0 -26
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/moll.js +0 -37
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/nzmg.js +0 -48
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ob_tran.js +0 -173
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/omerc.js +0 -58
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ortho.js +0 -28
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/poly.js +0 -68
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/qsc.js +0 -67
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/robin.js +0 -104
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sinu.js +0 -47
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/somerc.js +0 -34
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/stere.js +0 -46
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sterea.js +0 -33
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tmerc.js +0 -60
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tpers.js +0 -110
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/utm.js +0 -22
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/vandg.js +0 -34
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections.js +0 -34
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/transform.js +0 -49
- package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/projs.js +0 -38
- package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/orient2d.js +0 -23
- package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/util.js +0 -30
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2015.js +0 -9
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2019.js +0 -20
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilderBase.js +0 -171
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/buildPROJJSON.js +0 -11
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/detectWKTVersion.js +0 -7
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/index.js +0 -104
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/parser.js +0 -117
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/process.js +0 -89
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/transformPROJJSON.js +0 -73
- package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/util.js +0 -12
- package/dist/packages/shared/dist/donut-chart.js +0 -7
- package/dist/packages/shared/dist/index.js +0 -19
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { BulletLegendItemInterface, CrosshairConfig, AxisConfig, TooltipConfig } from '../../types';
|
|
2
|
+
import { LegendPosition } from '../../enums';
|
|
3
|
+
export interface GanttChartProps<T> {
|
|
4
|
+
/**
|
|
5
|
+
* The data to be displayed in the timeline chart.
|
|
6
|
+
* Each element of the array represents a timeline event or item.
|
|
7
|
+
* The structure of 'T' should be compatible with the chart's rendering logic.
|
|
8
|
+
*/
|
|
9
|
+
data: T[];
|
|
10
|
+
/**
|
|
11
|
+
* The width of the label area in pixels.
|
|
12
|
+
* Default: 220
|
|
13
|
+
*/
|
|
14
|
+
labelWidth?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The height of the chart in pixels.
|
|
17
|
+
*/
|
|
18
|
+
height?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Optional title for the timeline chart.
|
|
21
|
+
*/
|
|
22
|
+
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* A record mapping category keys to `BulletLegendItemInterface` objects.
|
|
25
|
+
* This defines the visual representation and labels for each category in the chart's legend.
|
|
26
|
+
*/
|
|
27
|
+
categories: Record<string, BulletLegendItemInterface>;
|
|
28
|
+
/**
|
|
29
|
+
* Accessor function that returns the x-position (start time/value) for each timeline item.
|
|
30
|
+
* @param {T} d - The data item.
|
|
31
|
+
* @returns {number} The x-position value.
|
|
32
|
+
*/
|
|
33
|
+
x: (d: T) => number;
|
|
34
|
+
/**
|
|
35
|
+
* Accessor function that returns the length (duration) for each timeline item.
|
|
36
|
+
* @param {T} d - The data item.
|
|
37
|
+
* @returns {number} The length/duration value.
|
|
38
|
+
*/
|
|
39
|
+
length: (d: T) => number;
|
|
40
|
+
/**
|
|
41
|
+
* Accessor function that returns the type/category for each timeline item.
|
|
42
|
+
* This determines the color and style of the timeline bar.
|
|
43
|
+
* @param {T} d - The data item.
|
|
44
|
+
* @returns {string} The type/category identifier.
|
|
45
|
+
*/
|
|
46
|
+
type: (d: T) => string;
|
|
47
|
+
/**
|
|
48
|
+
* Use custom formatter for tooltip titles
|
|
49
|
+
*/
|
|
50
|
+
tooltipTitleFormatter?: (data: T) => string | number;
|
|
51
|
+
/**
|
|
52
|
+
* Optional custom tooltip text generator function.
|
|
53
|
+
* @param {string} label - The label of the item.
|
|
54
|
+
* @param {number} index - The index of the item in the data array.
|
|
55
|
+
* @param {T[]} data - The full data array.
|
|
56
|
+
* @returns {string} The formatted tooltip text.
|
|
57
|
+
*/
|
|
58
|
+
getTooltipText?: (label: string, index: number, data: T[]) => string;
|
|
59
|
+
/**
|
|
60
|
+
* The desired number of ticks on the x-axis.
|
|
61
|
+
*/
|
|
62
|
+
xNumTicks?: number;
|
|
63
|
+
/**
|
|
64
|
+
* If `true`, displays labels for each timeline row.
|
|
65
|
+
* Default: true
|
|
66
|
+
*/
|
|
67
|
+
showLabels?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* If `true`, hides the chart tooltip.
|
|
70
|
+
*/
|
|
71
|
+
hideTooltip?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Crosshair configuration object for customizing the appearance of the crosshair line.
|
|
74
|
+
*/
|
|
75
|
+
crosshairConfig?: CrosshairConfig;
|
|
76
|
+
/**
|
|
77
|
+
* The width of the timeline bars in pixels.
|
|
78
|
+
* Default: 12
|
|
79
|
+
*/
|
|
80
|
+
lineWidth?: number;
|
|
81
|
+
/**
|
|
82
|
+
* The height of each row in the timeline in pixels.
|
|
83
|
+
* Default: 24
|
|
84
|
+
*/
|
|
85
|
+
rowHeight?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Optional position for the legend, if applicable.
|
|
88
|
+
* See `LegendPosition` for available options.
|
|
89
|
+
* Default: LegendPosition.TopRight
|
|
90
|
+
*/
|
|
91
|
+
legendPosition?: LegendPosition;
|
|
92
|
+
/**
|
|
93
|
+
* Optional style object for the legend container. Allows custom CSS styling.
|
|
94
|
+
*/
|
|
95
|
+
legendStyle?: string | Record<string, string>;
|
|
96
|
+
/**
|
|
97
|
+
* If `true`, hides the chart legend.
|
|
98
|
+
*/
|
|
99
|
+
hideLegend?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* If `true`, displays tick lines on the x-axis.
|
|
102
|
+
*/
|
|
103
|
+
xTickLine?: boolean;
|
|
104
|
+
xTickFormat?: (tick: number | Date, i?: number, ticks?: number[] | Date[]) => string;
|
|
105
|
+
xMinMaxTicksOnly?: boolean;
|
|
106
|
+
xTickValues?: number[] | Date[];
|
|
107
|
+
xGridLine?: boolean;
|
|
108
|
+
xDomainLine?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Axis configuration object for customizing the appearance of the axes.
|
|
111
|
+
*/
|
|
112
|
+
xAxisConfig?: AxisConfig;
|
|
113
|
+
/**
|
|
114
|
+
* Axis configuration object for customizing the appearance of the axes.
|
|
115
|
+
*/
|
|
116
|
+
yAxisConfig?: AxisConfig;
|
|
117
|
+
/**
|
|
118
|
+
* Animation duration in milliseconds for the chart components.
|
|
119
|
+
*/
|
|
120
|
+
duration?: number;
|
|
121
|
+
/**
|
|
122
|
+
* Configuration object for the chart tooltip.
|
|
123
|
+
*/
|
|
124
|
+
tooltip?: TooltipConfig;
|
|
125
|
+
}
|
|
@@ -3,7 +3,7 @@ import { Timeline as x } from "@unovis/ts";
|
|
|
3
3
|
import { dateFormatter as D } from "../../utils.js";
|
|
4
4
|
import N from "../Tooltip.js";
|
|
5
5
|
import { VisXYContainer as j, VisTimeline as O, VisTooltip as $, VisAxis as G, VisBulletLegend as M } from "@unovis/vue";
|
|
6
|
-
import { LegendPosition as E } from "../../
|
|
6
|
+
import { LegendPosition as E } from "../../enums.js";
|
|
7
7
|
const J = /* @__PURE__ */ W({
|
|
8
8
|
__name: "GanttChart",
|
|
9
9
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LineChartProps } from './
|
|
1
|
+
import { LineChartProps } from './LineChart';
|
|
2
2
|
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & LineChartProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
4
4
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
@@ -28,13 +28,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
28
28
|
zoomOut: () => void;
|
|
29
29
|
resetView: () => void;
|
|
30
30
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
-
"point-click": (event: MouseEvent, point: MapPin) => any;
|
|
32
31
|
"pin-click": (pin: MapPin) => any;
|
|
32
|
+
"point-click": (event: MouseEvent, point: MapPin) => any;
|
|
33
33
|
"pin-add": (pin: MapPin) => any;
|
|
34
34
|
"pin-remove": (pin: MapPin, index: number) => any;
|
|
35
35
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
36
|
-
"onPoint-click"?: ((event: MouseEvent, point: MapPin) => any) | undefined;
|
|
37
36
|
"onPin-click"?: ((pin: MapPin) => any) | undefined;
|
|
37
|
+
"onPoint-click"?: ((event: MouseEvent, point: MapPin) => any) | undefined;
|
|
38
38
|
"onPin-add"?: ((pin: MapPin) => any) | undefined;
|
|
39
39
|
"onPin-remove"?: ((pin: MapPin, index: number) => any) | undefined;
|
|
40
40
|
}>, {
|
|
@@ -13,14 +13,14 @@ declare function __VLS_template(): {
|
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
15
|
declare const __VLS_component: import('vue').DefineComponent<DottedMapProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
-
"point-click": (event: MouseEvent, point: any) => any;
|
|
17
16
|
"pin-click": (point: any) => any;
|
|
17
|
+
"point-click": (event: MouseEvent, point: any) => any;
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<DottedMapProps> & Readonly<{
|
|
19
|
-
"onPoint-click"?: ((event: MouseEvent, point: any) => any) | undefined;
|
|
20
19
|
"onPin-click"?: ((point: any) => any) | undefined;
|
|
20
|
+
"onPoint-click"?: ((event: MouseEvent, point: any) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
color: string;
|
|
23
22
|
grid: "vertical" | "diagonal";
|
|
23
|
+
color: string;
|
|
24
24
|
avoidOuterPins: boolean;
|
|
25
25
|
dotSize: number;
|
|
26
26
|
strokeWidth: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import y from "
|
|
2
|
-
import Y from "
|
|
1
|
+
import y from "proj4";
|
|
2
|
+
import Y from "@turf/boolean-point-in-polygon";
|
|
3
3
|
y.defs("GOOGLE") || y.defs("GOOGLE", "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs");
|
|
4
4
|
const h = {
|
|
5
5
|
lat: { min: -56, max: 71 },
|
|
@@ -9,10 +9,10 @@ const h = {
|
|
|
9
9
|
o.geometry.type === "Polygon" ? [o.geometry.coordinates] : o.geometry.coordinates
|
|
10
10
|
),
|
|
11
11
|
[]
|
|
12
|
-
) } }),
|
|
12
|
+
) } }), x = (t) => {
|
|
13
13
|
const { type: n, features: c, geometry: o, coordinates: i } = t;
|
|
14
14
|
if (n === "FeatureCollection") {
|
|
15
|
-
const l = c.map(
|
|
15
|
+
const l = c.map(x);
|
|
16
16
|
return {
|
|
17
17
|
lat: {
|
|
18
18
|
min: Math.min(...l.map((e) => e.lat.min)),
|
|
@@ -25,14 +25,14 @@ const h = {
|
|
|
25
25
|
};
|
|
26
26
|
} else {
|
|
27
27
|
if (n === "Feature")
|
|
28
|
-
return
|
|
28
|
+
return x(o);
|
|
29
29
|
if (n === "MultiPolygon")
|
|
30
|
-
return
|
|
30
|
+
return x({
|
|
31
31
|
type: "Polygon",
|
|
32
32
|
coordinates: i.flat(1)
|
|
33
33
|
});
|
|
34
34
|
if (n === "Polygon") {
|
|
35
|
-
const l = i.flat(1), e = l.map(([
|
|
35
|
+
const l = i.flat(1), e = l.map(([m, r]) => r), a = l.map(([m, r]) => m);
|
|
36
36
|
return {
|
|
37
37
|
lat: {
|
|
38
38
|
min: Math.min(...e),
|
|
@@ -56,26 +56,26 @@ const h = {
|
|
|
56
56
|
}) => {
|
|
57
57
|
if (t <= 0 && n <= 0)
|
|
58
58
|
throw new Error("height or width is required");
|
|
59
|
-
const e = l.features.reduce((s,
|
|
59
|
+
const e = l.features.reduce((s, u) => (s[u.id] = u, s), {});
|
|
60
60
|
let a = l;
|
|
61
61
|
c.length > 0 ? (a = {
|
|
62
62
|
type: "FeatureCollection",
|
|
63
63
|
features: c.map((s) => e[s]).filter(Boolean)
|
|
64
|
-
}, o || (o =
|
|
65
|
-
const [
|
|
64
|
+
}, o || (o = x(a))) : o || (o = h), P(a);
|
|
65
|
+
const [m, r] = y("GOOGLE", [
|
|
66
66
|
o.lng.min,
|
|
67
67
|
o.lat.min
|
|
68
68
|
]), [d, f] = y("GOOGLE", [
|
|
69
69
|
o.lng.max,
|
|
70
70
|
o.lat.max
|
|
71
|
-
]), g = d -
|
|
72
|
-
n <= 0 ? n = Math.round(t * g /
|
|
71
|
+
]), g = d - m, M = f - r;
|
|
72
|
+
n <= 0 ? n = Math.round(t * g / M) : t <= 0 && (t = Math.round(n * M / g));
|
|
73
73
|
const E = {}, G = i === "diagonal" ? Math.sqrt(3) / 2 : 1;
|
|
74
74
|
for (let s = 0; s * G < t; s += 1)
|
|
75
|
-
for (let
|
|
76
|
-
const O = s % 2 === 0 && i === "diagonal" ?
|
|
77
|
-
O / n * g +
|
|
78
|
-
f - X / t *
|
|
75
|
+
for (let u = 0; u < n; u += 1) {
|
|
76
|
+
const O = s % 2 === 0 && i === "diagonal" ? u + 0.5 : u, X = s * G, L = [
|
|
77
|
+
O / n * g + m,
|
|
78
|
+
f - X / t * M
|
|
79
79
|
], p = y(
|
|
80
80
|
"GOOGLE",
|
|
81
81
|
"WGS84",
|
|
@@ -83,17 +83,17 @@ const h = {
|
|
|
83
83
|
), A = a.features.find((_) => Y(p, _));
|
|
84
84
|
if (A) {
|
|
85
85
|
const [_, N] = p;
|
|
86
|
-
E[[
|
|
86
|
+
E[[u, s].join(";")] = { x: O, y: X, lat: N, lng: _, countryId: A.id };
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
return {
|
|
90
90
|
points: E,
|
|
91
|
-
X_MIN:
|
|
91
|
+
X_MIN: m,
|
|
92
92
|
Y_MIN: r,
|
|
93
93
|
X_MAX: d,
|
|
94
94
|
Y_MAX: f,
|
|
95
95
|
X_RANGE: g,
|
|
96
|
-
Y_RANGE:
|
|
96
|
+
Y_RANGE: M,
|
|
97
97
|
region: o,
|
|
98
98
|
grid: i,
|
|
99
99
|
height: t,
|
|
@@ -108,8 +108,8 @@ const h = {
|
|
|
108
108
|
];
|
|
109
109
|
const a = Math.round(e / t.ystep);
|
|
110
110
|
a % 2 === 0 && t.grid === "diagonal" && (l -= 0.5);
|
|
111
|
-
const
|
|
112
|
-
let [r, d] = [
|
|
111
|
+
const m = Math.round(l);
|
|
112
|
+
let [r, d] = [m, Math.round(a) * t.ystep];
|
|
113
113
|
a % 2 === 0 && t.grid === "diagonal" && (r += 0.5);
|
|
114
114
|
const [f, g] = y(
|
|
115
115
|
"GOOGLE",
|
|
@@ -123,7 +123,7 @@ const h = {
|
|
|
123
123
|
};
|
|
124
124
|
export {
|
|
125
125
|
h as DEFAULT_WORLD_REGION,
|
|
126
|
-
|
|
126
|
+
x as computeGeojsonBox,
|
|
127
127
|
P as geojsonToMultiPolygons,
|
|
128
128
|
w as getMap,
|
|
129
129
|
F as getPin
|
|
@@ -2,7 +2,7 @@ import { defineComponent as M, useSlots as O, useTemplateRef as y, ref as C, com
|
|
|
2
2
|
import { VisSingleContainer as D, VisTopoJSONMap as K, VisTooltip as H, VisBulletLegend as q } from "@unovis/vue";
|
|
3
3
|
import { TopoJSONMap as s } from "@unovis/ts";
|
|
4
4
|
import G from "../../Tooltip.js";
|
|
5
|
-
import { LegendPosition as I } from "../../../
|
|
5
|
+
import { LegendPosition as I } from "../../../enums.js";
|
|
6
6
|
const Q = {
|
|
7
7
|
ref: "slotWrapper",
|
|
8
8
|
style: { display: "none" }
|
|
@@ -4,9 +4,9 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onMouseenter?: ((d: any) => any) | undefined;
|
|
6
6
|
readonly onMouseleave?: ((d: any) => any) | undefined;
|
|
7
|
-
readonly "onFeature-click"?: ((d: any, event: MouseEvent) => any) | undefined;
|
|
8
7
|
readonly "onPoint-click"?: ((d: MapPoint, event: MouseEvent) => any) | undefined;
|
|
9
|
-
|
|
8
|
+
readonly "onFeature-click"?: ((d: any, event: MouseEvent) => any) | undefined;
|
|
9
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onMouseenter" | "onMouseleave" | "onPoint-click" | "onFeature-click"> & MapsData<T> & Partial<{}>> & import('vue').PublicProps;
|
|
10
10
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
11
|
attrs: any;
|
|
12
12
|
slots: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GeoProjection } from 'd3-geo';
|
|
2
|
-
import { axisFormatter, BulletLegendItemInterface
|
|
2
|
+
import { axisFormatter, BulletLegendItemInterface } from '../../../types';
|
|
3
|
+
import { LegendPosition } from '../../../enums';
|
|
3
4
|
import { MapData, MapPoint } from '../types';
|
|
4
5
|
export type MapsData<T extends Record<string, any>> = {
|
|
5
6
|
mapFeatureKey: keyof T;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { BulletLegendItemInterface, TooltipConfig } from '../../types';
|
|
2
|
+
import { LegendPosition } from '../../enums';
|
|
3
|
+
import { SankeyInputNode, SankeyInputLink, SankeyNodeAlign } from '@unovis/ts';
|
|
4
|
+
export type SankeyChartProps<N extends SankeyInputNode, L extends SankeyInputLink> = {
|
|
5
|
+
/**
|
|
6
|
+
* The data to be displayed in the Sankey diagram.
|
|
7
|
+
* Contains nodes and links representing the flow between entities.
|
|
8
|
+
*/
|
|
9
|
+
data: {
|
|
10
|
+
nodes: N[];
|
|
11
|
+
links: L[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The height of the chart in pixels.
|
|
15
|
+
*/
|
|
16
|
+
height: number;
|
|
17
|
+
/**
|
|
18
|
+
* Optional padding applied to the chart.
|
|
19
|
+
* Allows specifying individual padding values for the top, right, bottom, and left sides.
|
|
20
|
+
*/
|
|
21
|
+
padding?: {
|
|
22
|
+
top: number;
|
|
23
|
+
right: number;
|
|
24
|
+
bottom: number;
|
|
25
|
+
left: number;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* A record mapping category keys to `BulletLegendItemInterface` objects.
|
|
29
|
+
* This defines the visual representation and labels for each category in the chart's legend.
|
|
30
|
+
*/
|
|
31
|
+
categories?: Record<string, BulletLegendItemInterface>;
|
|
32
|
+
/**
|
|
33
|
+
* If `true`, hides the chart legend.
|
|
34
|
+
*/
|
|
35
|
+
hideLegend?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Optional position for the legend, if applicable.
|
|
38
|
+
* See `LegendPosition` for available options.
|
|
39
|
+
*/
|
|
40
|
+
legendPosition?: LegendPosition;
|
|
41
|
+
/**
|
|
42
|
+
* Optional style object for the legend container. Allows custom CSS styling.
|
|
43
|
+
*/
|
|
44
|
+
legendStyle?: string | Record<string, string>;
|
|
45
|
+
/**
|
|
46
|
+
* Node label accessor function or value.
|
|
47
|
+
*/
|
|
48
|
+
label?: (node: N) => string;
|
|
49
|
+
/**
|
|
50
|
+
* Node sub-label accessor function or value.
|
|
51
|
+
*/
|
|
52
|
+
subLabel?: (node: N) => string;
|
|
53
|
+
/**
|
|
54
|
+
* Node color accessor function or value.
|
|
55
|
+
*/
|
|
56
|
+
nodeColor?: (node: N) => string;
|
|
57
|
+
/**
|
|
58
|
+
* Link color accessor function or value.
|
|
59
|
+
*/
|
|
60
|
+
linkColor?: (link: L) => string;
|
|
61
|
+
/**
|
|
62
|
+
* Link value accessor function or value.
|
|
63
|
+
*/
|
|
64
|
+
linkValue?: (link: L) => number;
|
|
65
|
+
/**
|
|
66
|
+
* Sankey node width in pixels. Default: 10
|
|
67
|
+
*/
|
|
68
|
+
nodeWidth?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Sankey node alignment method. Default: 'justify'
|
|
71
|
+
*/
|
|
72
|
+
nodeAlign?: SankeyNodeAlign;
|
|
73
|
+
/**
|
|
74
|
+
* Sankey vertical separation between nodes in pixels. Default: 10
|
|
75
|
+
*/
|
|
76
|
+
nodePadding?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Node sorting function.
|
|
79
|
+
*/
|
|
80
|
+
nodeSort?: (node1: any, node2: any) => number;
|
|
81
|
+
/**
|
|
82
|
+
* Link sorting function.
|
|
83
|
+
*/
|
|
84
|
+
linkSort?: (link1: any, link2: any) => number;
|
|
85
|
+
/**
|
|
86
|
+
* Sankey algorithm iterations. Default: 32
|
|
87
|
+
*/
|
|
88
|
+
iterations?: number;
|
|
89
|
+
/**
|
|
90
|
+
* If `true`, hides the chart tooltip.
|
|
91
|
+
*/
|
|
92
|
+
hideTooltip?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Configuration object for the chart tooltip.
|
|
95
|
+
*/
|
|
96
|
+
tooltip?: TooltipConfig;
|
|
97
|
+
/**
|
|
98
|
+
* Highlight the corresponding subtree on node / link hover. Default: false
|
|
99
|
+
*/
|
|
100
|
+
highlightSubtreeOnHover?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Label font size in pixels.
|
|
103
|
+
*/
|
|
104
|
+
labelFontSize?: number;
|
|
105
|
+
/**
|
|
106
|
+
* Label color accessor function or value.
|
|
107
|
+
*/
|
|
108
|
+
labelColor?: (node: N) => string;
|
|
109
|
+
/**
|
|
110
|
+
* Maximum label width in pixels. Default: 70
|
|
111
|
+
*/
|
|
112
|
+
labelMaxWidth?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Animation duration in milliseconds.
|
|
115
|
+
*/
|
|
116
|
+
duration?: number;
|
|
117
|
+
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as L, useSlots as p, useTemplateRef as P, ref as w, com
|
|
|
2
2
|
import { SankeyNodeAlign as H, Sankey as T } from "@unovis/ts";
|
|
3
3
|
import { VisSingleContainer as z, VisTooltip as M, VisSankey as O, VisBulletLegend as F } from "@unovis/vue";
|
|
4
4
|
import D from "../Tooltip.js";
|
|
5
|
-
import { LegendPosition as $ } from "../../
|
|
5
|
+
import { LegendPosition as $ } from "../../enums.js";
|
|
6
6
|
const j = {
|
|
7
7
|
ref: "slotWrapper",
|
|
8
8
|
style: { display: "none" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SankeyInputNode, SankeyInputLink } from '@unovis/ts';
|
|
2
|
-
import { SankeyChartProps } from './
|
|
2
|
+
import { SankeyChartProps } from './SankeyChart';
|
|
3
3
|
declare const _default: <N extends SankeyInputNode, L extends SankeyInputLink>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onClick?: ((event: MouseEvent) => any) | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BulletLegendItemInterface, TooltipConfig
|
|
1
|
+
import { BulletLegendItemInterface, TooltipConfig } from '../../types';
|
|
2
|
+
import { LegendPosition } from '../../enums';
|
|
2
3
|
import { SankeyInputNode, SankeyInputLink, SankeyNodeAlign } from '@unovis/ts';
|
|
3
4
|
export type SankeyChartProps<N extends SankeyInputNode, L extends SankeyInputLink> = {
|
|
4
5
|
/**
|
package/dist/enums.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare enum LegendPosition {
|
|
2
|
+
TopLeft = "top-left",
|
|
3
|
+
TopCenter = "top-center",
|
|
4
|
+
TopRight = "top-right",
|
|
5
|
+
BottomLeft = "bottom-left",
|
|
6
|
+
BottomCenter = "bottom-center",
|
|
7
|
+
BottomRight = "bottom-right"
|
|
8
|
+
}
|
|
9
|
+
export declare enum CurveType {
|
|
10
|
+
Basis = "basis",
|
|
11
|
+
BasisClosed = "basisClosed",
|
|
12
|
+
BasisOpen = "basisOpen",
|
|
13
|
+
Bundle = "bundle",
|
|
14
|
+
Cardinal = "cardinal",
|
|
15
|
+
CardinalClosed = "cardinalClosed",
|
|
16
|
+
CardinalOpen = "cardinalOpen",
|
|
17
|
+
CatmullRom = "catmullRom",
|
|
18
|
+
CatmullRomClosed = "catmullRomClosed",
|
|
19
|
+
CatmullRomOpen = "catmullRomOpen",
|
|
20
|
+
Linear = "linear",
|
|
21
|
+
LinearClosed = "linearClosed",
|
|
22
|
+
MonotoneX = "monotoneX",
|
|
23
|
+
MonotoneY = "monotoneY",
|
|
24
|
+
Natural = "natural",
|
|
25
|
+
Step = "step",
|
|
26
|
+
StepAfter = "stepAfter",
|
|
27
|
+
StepBefore = "stepBefore"
|
|
28
|
+
}
|
|
29
|
+
export declare enum Orientation {
|
|
30
|
+
Horizontal = "horizontal",
|
|
31
|
+
Vertical = "vertical"
|
|
32
|
+
}
|
package/dist/enums.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var o = /* @__PURE__ */ ((t) => (t.TopLeft = "top-left", t.TopCenter = "top-center", t.TopRight = "top-right", t.BottomLeft = "bottom-left", t.BottomCenter = "bottom-center", t.BottomRight = "bottom-right", t))(o || {}), a = /* @__PURE__ */ ((t) => (t.Basis = "basis", t.BasisClosed = "basisClosed", t.BasisOpen = "basisOpen", t.Bundle = "bundle", t.Cardinal = "cardinal", t.CardinalClosed = "cardinalClosed", t.CardinalOpen = "cardinalOpen", t.CatmullRom = "catmullRom", t.CatmullRomClosed = "catmullRomClosed", t.CatmullRomOpen = "catmullRomOpen", t.Linear = "linear", t.LinearClosed = "linearClosed", t.MonotoneX = "monotoneX", t.MonotoneY = "monotoneY", t.Natural = "natural", t.Step = "step", t.StepAfter = "stepAfter", t.StepBefore = "stepBefore", t))(a || {}), l = /* @__PURE__ */ ((t) => (t.Horizontal = "horizontal", t.Vertical = "vertical", t))(l || {});
|
|
2
|
+
export {
|
|
3
|
+
a as CurveType,
|
|
4
|
+
o as LegendPosition,
|
|
5
|
+
l as Orientation
|
|
6
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export type * from './types';
|
|
2
|
+
export * from './enums';
|
|
3
|
+
export * from './components/AreaChart';
|
|
4
|
+
export * from './components/LineChart';
|
|
5
|
+
export * from './components/BarChart';
|
|
6
|
+
export * from './components/DonutChart';
|
|
7
|
+
export * from './components/BubbleChart';
|
|
8
|
+
export * from './components/GanttChart';
|
|
9
|
+
export * from './components/DagreGraph';
|
|
10
|
+
export * from './components/DualChart';
|
|
11
|
+
export * from './components/SankeyChart';
|
|
12
|
+
export * from './components/Maps';
|
|
12
13
|
export { getMap, getPin } from './components/Maps/DottedMap/mapUtils';
|
|
13
|
-
export { LegendPosition, CurveType, Orientation, DonutType, } from './types';
|
|
14
|
-
export type { BulletLegendItemInterface, AreaChartProps, BarChartProps, BarChartPropsBase, ValueLabel, LineChartProps, DonutChartProps, BubbleChartProps, SizeOptions, GanttChartProps, axisFormatter, AxisConfig, MarkerConfig, CrosshairConfig, TooltipConfig, DagreGraphProps, GraphNodeDatum, GraphLinkDatum, GraphData, DagreLayoutSettings, DagreRankDir, DagreAlign, DagreRanker, NodeShape, LinkArrowPosition, SankeyChartProps, DualChartProps, MapsData, DottedMapProps, } from './types';
|
|
15
|
-
export { AreaChart, LineChart, BarChart, DonutChart, BubbleChart, GanttChart, DagreGraph, DualChart, SankeyChart, TopoJSONMap, DottedMap, };
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import {
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
1
|
+
import { CurveType as a, LegendPosition as e, Orientation as o } from "./enums.js";
|
|
2
|
+
import { default as p } from "./components/AreaChart/AreaChart.js";
|
|
3
|
+
import { default as m } from "./components/LineChart/LineChart.js";
|
|
4
|
+
import { default as d } from "./components/BarChart/BarChart.js";
|
|
5
|
+
import { default as s } from "./components/DonutChart/DonutChart.js";
|
|
6
|
+
import { DonutType as h } from "./components/DonutChart/DonutChart2.js";
|
|
7
|
+
import { default as i } from "./components/BubbleChart/BubbleChart.js";
|
|
8
|
+
import { default as g } from "./components/GanttChart/GanttChart.js";
|
|
9
|
+
import { default as M } from "./components/DagreGraph/DagreGraph.js";
|
|
10
|
+
import { default as b } from "./components/DualChart/DualChart.js";
|
|
11
|
+
import { default as G } from "./components/SankeyChart/SankeyChart.js";
|
|
12
|
+
import { default as O } from "./components/Maps/DottedMap/DottedMap.js";
|
|
13
|
+
import { default as S } from "./components/Maps/TopoJSONMap/TopoJSONMap.js";
|
|
14
|
+
import { getMap as v, getPin as A } from "./components/Maps/DottedMap/mapUtils.js";
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
p as AreaChart,
|
|
17
|
+
d as BarChart,
|
|
18
|
+
i as BubbleChart,
|
|
19
|
+
a as CurveType,
|
|
20
|
+
M as DagreGraph,
|
|
21
|
+
s as DonutChart,
|
|
22
|
+
h as DonutType,
|
|
23
|
+
O as DottedMap,
|
|
24
|
+
b as DualChart,
|
|
25
|
+
g as GanttChart,
|
|
26
|
+
e as LegendPosition,
|
|
27
|
+
m as LineChart,
|
|
28
|
+
o as Orientation,
|
|
29
|
+
G as SankeyChart,
|
|
30
|
+
S as TopoJSONMap,
|
|
31
|
+
v as getMap,
|
|
32
|
+
A as getPin
|
|
33
33
|
};
|