@antv/g2 5.1.5-beta.0 → 5.1.6-beta.0
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/CHANGELOG.md +450 -0
- package/dist/g2.full.min.js +1 -0
- package/dist/g2.lite.min.js +1 -0
- package/dist/g2.min.js +1 -1
- package/esm/api/chart.d.ts +2 -164
- package/esm/api/library.d.ts +1 -163
- package/esm/api/library.js +1 -2
- package/esm/api/library.js.map +1 -1
- package/esm/api/runtime.d.ts +1 -1
- package/esm/api/runtime.js +6 -1
- package/esm/api/runtime.js.map +1 -1
- package/esm/api/utils.d.ts +0 -4
- package/esm/api/utils.js +4 -3
- package/esm/api/utils.js.map +1 -1
- package/esm/component/axis.js +1 -1
- package/esm/component/axis.js.map +1 -1
- package/esm/component/legendCategory.js +1 -1
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/component/legendContinuous.js +1 -1
- package/esm/component/legendContinuous.js.map +1 -1
- package/esm/component/scrollbar.js +1 -1
- package/esm/component/scrollbar.js.map +1 -1
- package/esm/component/slider.js +1 -1
- package/esm/component/slider.js.map +1 -1
- package/esm/component/utils.d.ts +1 -1
- package/esm/component/utils.js +1 -1
- package/esm/component/utils.js.map +1 -1
- package/esm/exports.d.ts +5 -0
- package/esm/exports.js +7 -0
- package/esm/exports.js.map +1 -0
- package/esm/index.d.ts +338 -7
- package/esm/index.js +9 -8
- package/esm/index.js.map +1 -1
- package/esm/interaction/tooltip.js +1 -2
- package/esm/interaction/tooltip.js.map +1 -1
- package/esm/lib/auto.d.ts +3 -0
- package/esm/lib/auto.js +7 -0
- package/esm/lib/auto.js.map +1 -0
- package/esm/lib/index.d.ts +1 -0
- package/esm/lib/index.js +1 -0
- package/esm/lib/index.js.map +1 -1
- package/esm/lib/std.d.ts +29 -29
- package/esm/mark/auto.d.ts +1 -0
- package/esm/mark/auto.js +26 -0
- package/esm/mark/auto.js.map +1 -0
- package/esm/mark/index.d.ts +1 -0
- package/esm/mark/index.js +1 -0
- package/esm/mark/index.js.map +1 -1
- package/esm/runtime/plot.js +2 -2
- package/esm/runtime/plot.js.map +1 -1
- package/esm/shape/connector/connector.js +1 -1
- package/esm/shape/connector/connector.js.map +1 -1
- package/esm/shape/index.d.ts +1 -1
- package/esm/shape/text/advance.js +1 -1
- package/esm/shape/text/advance.js.map +1 -1
- package/esm/shape/text/badge.js +1 -1
- package/esm/shape/text/badge.js.map +1 -1
- package/esm/spec/index.d.ts +3 -3
- package/esm/spec/interaction.d.ts +1 -1
- package/esm/spec/mark.d.ts +4 -2
- package/esm/theme/academy.d.ts +17 -0
- package/esm/theme/academy.js +27 -4
- package/esm/theme/academy.js.map +1 -1
- package/esm/theme/dark.d.ts +17 -0
- package/esm/theme/dark.js +3 -2
- package/esm/theme/dark.js.map +1 -1
- package/esm/theme/light.d.ts +17 -0
- package/esm/theme/light.js +4 -3
- package/esm/theme/light.js.map +1 -1
- package/esm/utils/event.d.ts +31 -32
- package/esm/utils/event.js +2 -12
- package/esm/utils/event.js.map +1 -1
- package/esm/utils/size.js +0 -1
- package/esm/utils/size.js.map +1 -1
- package/lib/api/chart.d.ts +2 -164
- package/lib/api/library.d.ts +1 -163
- package/lib/api/library.js +1 -2
- package/lib/api/library.js.map +1 -1
- package/lib/api/runtime.d.ts +1 -1
- package/lib/api/runtime.js +6 -1
- package/lib/api/runtime.js.map +1 -1
- package/lib/api/utils.d.ts +0 -4
- package/lib/api/utils.js +4 -3
- package/lib/api/utils.js.map +1 -1
- package/lib/component/axis.js +3 -3
- package/lib/component/axis.js.map +1 -1
- package/lib/component/legendCategory.js +2 -2
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/component/legendContinuous.js +2 -2
- package/lib/component/legendContinuous.js.map +1 -1
- package/lib/component/scrollbar.js +2 -2
- package/lib/component/scrollbar.js.map +1 -1
- package/lib/component/slider.js +2 -2
- package/lib/component/slider.js.map +1 -1
- package/lib/component/utils.d.ts +1 -1
- package/lib/component/utils.js +2 -2
- package/lib/component/utils.js.map +1 -1
- package/lib/exports.d.ts +5 -0
- package/lib/exports.js +39 -0
- package/lib/exports.js.map +1 -0
- package/lib/index.d.ts +338 -7
- package/lib/index.js +11 -28
- package/lib/index.js.map +1 -1
- package/lib/interaction/tooltip.js +2 -3
- package/lib/interaction/tooltip.js.map +1 -1
- package/lib/lib/auto.d.ts +3 -0
- package/lib/lib/auto.js +11 -0
- package/lib/lib/auto.js.map +1 -0
- package/lib/lib/index.d.ts +1 -0
- package/lib/lib/index.js +3 -1
- package/lib/lib/index.js.map +1 -1
- package/lib/lib/std.d.ts +29 -29
- package/lib/mark/auto.d.ts +1 -0
- package/lib/mark/auto.js +30 -0
- package/lib/mark/auto.js.map +1 -0
- package/lib/mark/index.d.ts +1 -0
- package/lib/mark/index.js +3 -1
- package/lib/mark/index.js.map +1 -1
- package/lib/runtime/plot.js +2 -2
- package/lib/runtime/plot.js.map +1 -1
- package/lib/shape/connector/connector.js +2 -2
- package/lib/shape/connector/connector.js.map +1 -1
- package/lib/shape/index.d.ts +1 -1
- package/lib/shape/text/advance.js +3 -3
- package/lib/shape/text/advance.js.map +1 -1
- package/lib/shape/text/badge.js +2 -2
- package/lib/shape/text/badge.js.map +1 -1
- package/lib/spec/index.d.ts +3 -3
- package/lib/spec/interaction.d.ts +1 -1
- package/lib/spec/mark.d.ts +4 -2
- package/lib/theme/academy.d.ts +17 -0
- package/lib/theme/academy.js +28 -5
- package/lib/theme/academy.js.map +1 -1
- package/lib/theme/dark.d.ts +17 -0
- package/lib/theme/dark.js +4 -3
- package/lib/theme/dark.js.map +1 -1
- package/lib/theme/light.d.ts +17 -0
- package/lib/theme/light.js +5 -4
- package/lib/theme/light.js.map +1 -1
- package/lib/utils/event.d.ts +31 -32
- package/lib/utils/event.js +2 -12
- package/lib/utils/event.js.map +1 -1
- package/lib/utils/size.js +0 -1
- package/lib/utils/size.js.map +1 -1
- package/package.json +24 -9
- package/src/api/chart.ts +1 -1
- package/src/api/library.ts +1 -2
- package/src/api/runtime.ts +7 -2
- package/src/api/utils.ts +4 -2
- package/src/component/axis.ts +1 -1
- package/src/component/legendCategory.ts +1 -1
- package/src/component/legendContinuous.ts +1 -1
- package/src/component/scrollbar.ts +1 -1
- package/src/component/slider.ts +1 -1
- package/src/component/utils.ts +1 -1
- package/src/exports.ts +32 -0
- package/src/index.ts +13 -41
- package/src/interaction/tooltip.ts +1 -2
- package/src/lib/auto.ts +7 -0
- package/src/lib/index.ts +1 -0
- package/src/mark/auto.ts +22 -0
- package/src/mark/index.ts +1 -0
- package/src/runtime/plot.ts +2 -2
- package/src/shape/connector/connector.ts +1 -1
- package/src/shape/index.ts +1 -1
- package/src/shape/text/advance.ts +1 -1
- package/src/shape/text/badge.ts +1 -1
- package/src/spec/index.ts +3 -3
- package/src/spec/interaction.ts +1 -1
- package/src/spec/mark.ts +4 -0
- package/src/theme/academy.ts +28 -4
- package/src/theme/dark.ts +4 -2
- package/src/theme/light.ts +5 -3
- package/src/utils/event.ts +32 -45
- package/src/utils/size.ts +0 -1
- package/dist/g2-lite.min.js +0 -1
package/esm/api/chart.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G2Spec } from '../spec';
|
|
1
|
+
import type { G2Spec } from '../spec';
|
|
2
2
|
import { API, CompositionAPI } from './extend';
|
|
3
3
|
import { library } from './library';
|
|
4
4
|
import { MarkNode as Node } from './mark';
|
|
@@ -9,167 +9,5 @@ export interface CompositionNode extends CompositionAPI<typeof library> {
|
|
|
9
9
|
}
|
|
10
10
|
export interface MarkNode extends Node {
|
|
11
11
|
}
|
|
12
|
-
export declare const Chart: new (options?: RuntimeOptions) => API<G2Spec, {
|
|
13
|
-
readonly 'data.fetch': import("../runtime").DataComponent<import("../data").FetchOptions>;
|
|
14
|
-
readonly 'data.inline': import("../runtime").DataComponent<import("../data").InlineOptions>;
|
|
15
|
-
readonly 'data.sortBy': import("../runtime").DataComponent<import("../data").SortByOptions>;
|
|
16
|
-
readonly 'data.sort': import("../runtime").DataComponent<import("../data").SortOptions>;
|
|
17
|
-
readonly 'data.filter': import("../runtime").DataComponent<import("../data").FilterDataOptions>;
|
|
18
|
-
readonly 'data.pick': import("../runtime").DataComponent<import("../data").PickOptions>;
|
|
19
|
-
readonly 'data.rename': import("../runtime").DataComponent<import("../data").RenameOptions>;
|
|
20
|
-
readonly 'data.fold': import("../runtime").DataComponent<import("../data").FoldOptions>;
|
|
21
|
-
readonly 'data.slice': import("../runtime").DataComponent<import("../data").SliceOptions>;
|
|
22
|
-
readonly 'data.custom': import("../runtime").DataComponent<import("../data").CustomOptions>;
|
|
23
|
-
readonly 'data.map': import("../runtime").DataComponent<import("../data").MapOptions>;
|
|
24
|
-
readonly 'data.join': import("../runtime").DataComponent<import("../data").JoinOptions>;
|
|
25
|
-
readonly 'data.kde': import("../runtime").DataComponent<import("../data").KDEOptions>;
|
|
26
|
-
readonly 'data.log': import("../runtime").DataComponent<import("../data").LogDataOptions>;
|
|
27
|
-
readonly 'transform.stackY': import("../runtime").TransformComponent<import("../transform").StackYOptions>;
|
|
28
|
-
readonly 'transform.binX': import("../runtime").TransformComponent<import("../transform").BinXOptions>;
|
|
29
|
-
readonly 'transform.bin': import("../runtime").TransformComponent<import("../transform").BinOptions>;
|
|
30
|
-
readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("../transform").DodgeXOptions>;
|
|
31
|
-
readonly 'transform.jitter': import("../runtime").TransformComponent<import("../transform").JitterOptions>;
|
|
32
|
-
readonly 'transform.jitterX': import("../runtime").TransformComponent<import("../transform").JitterXOptions>;
|
|
33
|
-
readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("../transform").SymmetryYOptions>;
|
|
34
|
-
readonly 'transform.diffY': import("../runtime").TransformComponent<import("../transform").DiffYOptions>;
|
|
35
|
-
readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("../transform").StackEnterOptions>;
|
|
36
|
-
readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("../transform").NormalizeYOptions>;
|
|
37
|
-
readonly 'transform.select': import("../runtime").TransformComponent<import("../transform").SelectOptions>;
|
|
38
|
-
readonly 'transform.selectX': import("../runtime").TransformComponent<import("../transform").SelectXOptions>;
|
|
39
|
-
readonly 'transform.selectY': import("../runtime").TransformComponent<import("../transform").SelectYOptions>;
|
|
40
|
-
readonly 'transform.groupX': import("../runtime").TransformComponent<import("../transform").GroupXOptions>;
|
|
41
|
-
readonly 'transform.groupY': import("../runtime").TransformComponent<import("../transform").GroupYOptions>;
|
|
42
|
-
readonly 'transform.groupColor': import("../runtime").TransformComponent<import("../transform").GroupColorOptions>;
|
|
43
|
-
readonly 'transform.group': import("../runtime").TransformComponent<import("../transform").GroupOptions>;
|
|
44
|
-
readonly 'transform.sortX': import("../runtime").TransformComponent<import("../transform").SortXOptions>;
|
|
45
|
-
readonly 'transform.sortY': import("../runtime").TransformComponent<import("../transform").SortYOptions>;
|
|
46
|
-
readonly 'transform.sortColor': import("../runtime").TransformComponent<import("../transform").SortColorOptions>;
|
|
47
|
-
readonly 'transform.flexX': import("../runtime").TransformComponent<import("../transform").FlexXOptions>;
|
|
48
|
-
readonly 'transform.pack': import("../runtime").TransformComponent<import("../transform").PackOptions>;
|
|
49
|
-
readonly 'transform.sample': import("../runtime").TransformComponent<import("../transform").SampleOptions>;
|
|
50
|
-
readonly 'transform.filter': import("../runtime").TransformComponent<import("../transform").FilterOptions>;
|
|
51
|
-
readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
|
|
52
|
-
readonly 'coordinate.polar': import("../runtime").CoordinateComponent<import("../coordinate").PolarOptions>;
|
|
53
|
-
readonly 'coordinate.transpose': import("../runtime").CoordinateComponent<import("../coordinate").TransposeOptions>;
|
|
54
|
-
readonly 'coordinate.theta': import("../runtime").CoordinateComponent<import("../spec").ThetaCoordinate>;
|
|
55
|
-
readonly 'coordinate.parallel': import("../runtime").CoordinateComponent<import("../coordinate").ParallelOptions>;
|
|
56
|
-
readonly 'coordinate.fisheye': import("../runtime").CoordinateComponent<import("../spec").FisheyeCoordinate>;
|
|
57
|
-
readonly 'coordinate.radial': import("../runtime").CoordinateComponent<import("../coordinate").RadialOptions>;
|
|
58
|
-
readonly 'coordinate.radar': import("../runtime").CoordinateComponent<import("../spec").RadarCoordinate>;
|
|
59
|
-
readonly 'encode.constant': import("../runtime").EncodeComponent<import("../encode").ConstantOptions>;
|
|
60
|
-
readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
|
|
61
|
-
readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
|
|
62
|
-
readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
|
|
63
|
-
readonly 'mark.interval': import("../runtime").MarkComponent<import("..").IntervalOptions>;
|
|
64
|
-
readonly 'mark.rect': import("../runtime").MarkComponent<import("..").RectOptions>;
|
|
65
|
-
readonly 'mark.line': import("../runtime").MarkComponent<import("..").LineOptions>;
|
|
66
|
-
readonly 'mark.point': import("../runtime").MarkComponent<import("..").PointOptions>;
|
|
67
|
-
readonly 'mark.text': import("../runtime").MarkComponent<import("..").TextOptions>;
|
|
68
|
-
readonly 'mark.cell': import("../runtime").MarkComponent<import("..").CellOptions>;
|
|
69
|
-
readonly 'mark.area': import("../runtime").MarkComponent<import("..").AreaOptions>;
|
|
70
|
-
readonly 'mark.link': import("../runtime").MarkComponent<import("..").LinkOptions>;
|
|
71
|
-
readonly 'mark.image': import("../runtime").MarkComponent<import("..").ImageOptions>;
|
|
72
|
-
readonly 'mark.polygon': import("../runtime").MarkComponent<import("..").PolygonOptions>;
|
|
73
|
-
readonly 'mark.box': import("../runtime").MarkComponent<import("..").BoxOptions>;
|
|
74
|
-
readonly 'mark.vector': import("../runtime").MarkComponent<import("..").VectorOptions>;
|
|
75
|
-
readonly 'mark.lineX': import("../runtime").MarkComponent<import("..").LineXOptions>;
|
|
76
|
-
readonly 'mark.lineY': import("../runtime").MarkComponent<import("..").LineYOptions>;
|
|
77
|
-
readonly 'mark.connector': import("../runtime").MarkComponent<import("..").ConnectorOptions>;
|
|
78
|
-
readonly 'mark.range': import("../runtime").MarkComponent<import("..").RangeOptions>;
|
|
79
|
-
readonly 'mark.rangeX': import("../runtime").MarkComponent<import("..").RangeXOptions>;
|
|
80
|
-
readonly 'mark.rangeY': import("../runtime").MarkComponent<import("..").RangeYOptions>;
|
|
81
|
-
readonly 'mark.path': import("../runtime").MarkComponent<import("../mark/path").PathOptions>;
|
|
82
|
-
readonly 'mark.shape': import("../runtime").MarkComponent<import("..").ShapeOptions>;
|
|
83
|
-
readonly 'mark.density': import("../runtime").MarkComponent<import("..").DensityOptions>;
|
|
84
|
-
readonly 'mark.heatmap': import("../runtime").MarkComponent<import("..").HeatmapOptions>;
|
|
85
|
-
readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
|
|
86
|
-
readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
|
|
87
|
-
readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
|
|
88
|
-
readonly 'scale.ordinal': import("../runtime").ScaleComponent<import("../scale").OrdinalOptions>;
|
|
89
|
-
readonly 'scale.band': import("../runtime").ScaleComponent<import("../scale").BandOptions>;
|
|
90
|
-
readonly 'scale.identity': import("../runtime").ScaleComponent<import("../scale").IdentityOptions>;
|
|
91
|
-
readonly 'scale.point': import("../runtime").ScaleComponent<import("../scale").PointOptions>;
|
|
92
|
-
readonly 'scale.time': import("../runtime").ScaleComponent<import("../scale").TimeOptions>;
|
|
93
|
-
readonly 'scale.log': import("../runtime").ScaleComponent<import("../scale").LogOptions>;
|
|
94
|
-
readonly 'scale.pow': import("../runtime").ScaleComponent<import("../scale").PowOptions>;
|
|
95
|
-
readonly 'scale.sqrt': import("../runtime").ScaleComponent<import("../scale").SqrtOptions>;
|
|
96
|
-
readonly 'scale.threshold': import("../runtime").ScaleComponent<import("../scale").ThresholdOptions>;
|
|
97
|
-
readonly 'scale.quantile': import("../runtime").ScaleComponent<import("../scale").QuantileOptions>;
|
|
98
|
-
readonly 'scale.quantize': import("../runtime").ScaleComponent<import("../scale").QuantizeOptions>;
|
|
99
|
-
readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
|
|
100
|
-
readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
|
|
101
|
-
readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
102
|
-
readonly 'theme.classicDark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
103
|
-
readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
104
|
-
readonly 'theme.light': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
105
|
-
readonly 'theme.dark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
106
|
-
readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
107
|
-
readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
108
|
-
readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
|
|
109
|
-
readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
110
|
-
readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
|
|
111
|
-
readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
|
|
112
|
-
readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
113
|
-
readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
114
|
-
readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
115
|
-
readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
116
|
-
readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
117
|
-
readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
118
|
-
readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
119
|
-
readonly 'animation.scaleOutY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
120
|
-
readonly 'animation.waveIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
121
|
-
readonly 'animation.fadeIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
122
|
-
readonly 'animation.fadeOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
123
|
-
readonly 'animation.zoomIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
124
|
-
readonly 'animation.zoomOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
125
|
-
readonly 'animation.pathIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
126
|
-
readonly 'animation.morphing': import("../runtime").AnimationComponent<import("../animation").MorphingOptions>;
|
|
127
|
-
readonly 'animation.growInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
128
|
-
readonly 'animation.growInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
129
|
-
readonly 'interaction.elementHighlight': typeof import("../interaction").ElementHighlight;
|
|
130
|
-
readonly 'interaction.elementHighlightByX': typeof import("../interaction").ElementHighlightByX;
|
|
131
|
-
readonly 'interaction.elementHighlightByColor': typeof import("../interaction").ElementHighlightByColor;
|
|
132
|
-
readonly 'interaction.elementSelect': typeof import("../interaction").ElementSelect;
|
|
133
|
-
readonly 'interaction.elementSelectByX': typeof import("../interaction").ElementSelectByX;
|
|
134
|
-
readonly 'interaction.elementSelectByColor': typeof import("../interaction").ElementSelectByColor;
|
|
135
|
-
readonly 'interaction.fisheye': typeof import("../interaction").Fisheye;
|
|
136
|
-
readonly 'interaction.chartIndex': typeof import("../interaction").ChartIndex;
|
|
137
|
-
readonly 'interaction.tooltip': typeof import("../interaction").Tooltip;
|
|
138
|
-
readonly 'interaction.legendFilter': typeof import("../interaction").LegendFilter;
|
|
139
|
-
readonly 'interaction.legendHighlight': typeof import("../interaction").LegendHighlight;
|
|
140
|
-
readonly 'interaction.brushHighlight': typeof import("../interaction").BrushHighlight;
|
|
141
|
-
readonly 'interaction.brushXHighlight': typeof import("../interaction").BrushXHighlight;
|
|
142
|
-
readonly 'interaction.brushYHighlight': typeof import("../interaction").BrushYHighlight;
|
|
143
|
-
readonly 'interaction.brushAxisHighlight': typeof import("../interaction").BrushAxisHighlight;
|
|
144
|
-
readonly 'interaction.brushFilter': typeof import("../interaction").BrushFilter;
|
|
145
|
-
readonly 'interaction.brushXFilter': typeof import("../interaction").BrushXFilter;
|
|
146
|
-
readonly 'interaction.brushYFilter': typeof import("../interaction").BrushYFilter;
|
|
147
|
-
readonly 'interaction.sliderFilter': typeof import("../interaction").SliderFilter;
|
|
148
|
-
readonly 'interaction.scrollbarFilter': typeof import("../interaction").ScrollbarFilter;
|
|
149
|
-
readonly 'interaction.poptip': typeof import("../interaction").Poptip;
|
|
150
|
-
readonly 'composition.spaceLayer': import("../runtime").CompositionComponent<import("../composition").SpaceLayerOptions>;
|
|
151
|
-
readonly 'composition.spaceFlex': import("../runtime").CompositionComponent<import("../composition").SpaceFlexOptions>;
|
|
152
|
-
readonly 'composition.facetRect': import("../runtime").CompositionComponent<import("../composition").FacetRectOptions>;
|
|
153
|
-
readonly 'composition.repeatMatrix': import("../runtime").CompositionComponent<import("../spec").RepeatMatrixComposition>;
|
|
154
|
-
readonly 'composition.facetCircle': import("../runtime").CompositionComponent<import("../spec").FacetCircleComposition>;
|
|
155
|
-
readonly 'composition.timingKeyframe': import("../runtime").CompositionComponent<import("../composition").TimingKeyframeOptions>;
|
|
156
|
-
readonly 'labelTransform.overlapHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapHideOptions>;
|
|
157
|
-
readonly 'labelTransform.overlapDodgeY': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapDodgeYOptions>;
|
|
158
|
-
readonly 'labelTransform.overflowHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverflowHideOptions>;
|
|
159
|
-
readonly 'labelTransform.contrastReverse': import("../runtime").LabelTransformComponent<import("../label-transform").ContrastReverseOptions>;
|
|
160
|
-
readonly 'data.venn': import("../runtime").DataComponent<import("../data").VennOptions>;
|
|
161
|
-
readonly 'mark.boxplot': import("../runtime").CompositeMarkComponent<import("../mark/boxplot").BoxPlotOptions>;
|
|
162
|
-
readonly 'mark.gauge': import("../runtime").CompositeMarkComponent<import("..").GaugeOptions>;
|
|
163
|
-
readonly 'mark.wordCloud': import("../runtime").CompositeMarkComponent<import("..").WordCloudOptions>;
|
|
164
|
-
readonly 'mark.liquid': import("../runtime").CompositeMarkComponent<import("..").LiquidOptions>;
|
|
165
|
-
readonly 'data.arc': import("../runtime").DataComponent<import("../data").ArcOptions>;
|
|
166
|
-
readonly 'data.cluster': import("../runtime").DataComponent<import("../data").ClusterOptions>;
|
|
167
|
-
readonly 'mark.forceGraph': import("../runtime").CompositeMarkComponent<import("..").ForceGraphOptions>;
|
|
168
|
-
readonly 'mark.tree': import("../runtime").CompositeMarkComponent<import("..").TreeOptions>;
|
|
169
|
-
readonly 'mark.pack': import("../runtime").CompositionComponent<import("..").PackOptions>;
|
|
170
|
-
readonly 'mark.sankey': import("../runtime").CompositeMarkComponent<import("..").SankeyOptions>;
|
|
171
|
-
readonly 'mark.treemap': import("../runtime").CompositionComponent<import("..").TreemapOptions>;
|
|
172
|
-
readonly 'composition.geoView': import("../runtime").CompositionComponent<import("../composition/geoView").GeoViewOptions>;
|
|
173
|
-
readonly 'composition.geoPath': import("../runtime").CompositionComponent<import("../composition/geoPath").GeoPathOptions>;
|
|
174
|
-
}>;
|
|
12
|
+
export declare const Chart: new (options?: RuntimeOptions) => API<G2Spec, {}>;
|
|
175
13
|
export type ChartOptions = Omit<RuntimeOptions, 'lib'>;
|
package/esm/api/library.d.ts
CHANGED
|
@@ -1,165 +1,3 @@
|
|
|
1
1
|
import { G2ComponentNamespaces, G2Component } from '../runtime';
|
|
2
|
-
export declare const library: {
|
|
3
|
-
readonly 'data.fetch': import("../runtime").DataComponent<import("../data").FetchOptions>;
|
|
4
|
-
readonly 'data.inline': import("../runtime").DataComponent<import("../data").InlineOptions>;
|
|
5
|
-
readonly 'data.sortBy': import("../runtime").DataComponent<import("../data").SortByOptions>;
|
|
6
|
-
readonly 'data.sort': import("../runtime").DataComponent<import("../data").SortOptions>;
|
|
7
|
-
readonly 'data.filter': import("../runtime").DataComponent<import("../data").FilterDataOptions>;
|
|
8
|
-
readonly 'data.pick': import("../runtime").DataComponent<import("../data").PickOptions>;
|
|
9
|
-
readonly 'data.rename': import("../runtime").DataComponent<import("../data").RenameOptions>;
|
|
10
|
-
readonly 'data.fold': import("../runtime").DataComponent<import("../data").FoldOptions>;
|
|
11
|
-
readonly 'data.slice': import("../runtime").DataComponent<import("../data").SliceOptions>;
|
|
12
|
-
readonly 'data.custom': import("../runtime").DataComponent<import("../data").CustomOptions>;
|
|
13
|
-
readonly 'data.map': import("../runtime").DataComponent<import("../data").MapOptions>;
|
|
14
|
-
readonly 'data.join': import("../runtime").DataComponent<import("../data").JoinOptions>;
|
|
15
|
-
readonly 'data.kde': import("../runtime").DataComponent<import("../data").KDEOptions>;
|
|
16
|
-
readonly 'data.log': import("../runtime").DataComponent<import("../data").LogDataOptions>;
|
|
17
|
-
readonly 'transform.stackY': import("../runtime").TransformComponent<import("../transform").StackYOptions>;
|
|
18
|
-
readonly 'transform.binX': import("../runtime").TransformComponent<import("../transform").BinXOptions>;
|
|
19
|
-
readonly 'transform.bin': import("../runtime").TransformComponent<import("../transform").BinOptions>;
|
|
20
|
-
readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("../transform").DodgeXOptions>;
|
|
21
|
-
readonly 'transform.jitter': import("../runtime").TransformComponent<import("../transform").JitterOptions>;
|
|
22
|
-
readonly 'transform.jitterX': import("../runtime").TransformComponent<import("../transform").JitterXOptions>;
|
|
23
|
-
readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("../transform").SymmetryYOptions>;
|
|
24
|
-
readonly 'transform.diffY': import("../runtime").TransformComponent<import("../transform").DiffYOptions>;
|
|
25
|
-
readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("../transform").StackEnterOptions>;
|
|
26
|
-
readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("../transform").NormalizeYOptions>;
|
|
27
|
-
readonly 'transform.select': import("../runtime").TransformComponent<import("../transform").SelectOptions>;
|
|
28
|
-
readonly 'transform.selectX': import("../runtime").TransformComponent<import("../transform").SelectXOptions>;
|
|
29
|
-
readonly 'transform.selectY': import("../runtime").TransformComponent<import("../transform").SelectYOptions>;
|
|
30
|
-
readonly 'transform.groupX': import("../runtime").TransformComponent<import("../transform").GroupXOptions>;
|
|
31
|
-
readonly 'transform.groupY': import("../runtime").TransformComponent<import("../transform").GroupYOptions>;
|
|
32
|
-
readonly 'transform.groupColor': import("../runtime").TransformComponent<import("../transform").GroupColorOptions>;
|
|
33
|
-
readonly 'transform.group': import("../runtime").TransformComponent<import("../transform").GroupOptions>;
|
|
34
|
-
readonly 'transform.sortX': import("../runtime").TransformComponent<import("../transform").SortXOptions>;
|
|
35
|
-
readonly 'transform.sortY': import("../runtime").TransformComponent<import("../transform").SortYOptions>;
|
|
36
|
-
readonly 'transform.sortColor': import("../runtime").TransformComponent<import("../transform").SortColorOptions>;
|
|
37
|
-
readonly 'transform.flexX': import("../runtime").TransformComponent<import("../transform").FlexXOptions>;
|
|
38
|
-
readonly 'transform.pack': import("../runtime").TransformComponent<import("../transform").PackOptions>;
|
|
39
|
-
readonly 'transform.sample': import("../runtime").TransformComponent<import("../transform").SampleOptions>;
|
|
40
|
-
readonly 'transform.filter': import("../runtime").TransformComponent<import("../transform").FilterOptions>;
|
|
41
|
-
readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
|
|
42
|
-
readonly 'coordinate.polar': import("../runtime").CoordinateComponent<import("../coordinate").PolarOptions>;
|
|
43
|
-
readonly 'coordinate.transpose': import("../runtime").CoordinateComponent<import("../coordinate").TransposeOptions>;
|
|
44
|
-
readonly 'coordinate.theta': import("../runtime").CoordinateComponent<import("..").ThetaCoordinate>;
|
|
45
|
-
readonly 'coordinate.parallel': import("../runtime").CoordinateComponent<import("../coordinate").ParallelOptions>;
|
|
46
|
-
readonly 'coordinate.fisheye': import("../runtime").CoordinateComponent<import("..").FisheyeCoordinate>;
|
|
47
|
-
readonly 'coordinate.radial': import("../runtime").CoordinateComponent<import("../coordinate").RadialOptions>;
|
|
48
|
-
readonly 'coordinate.radar': import("../runtime").CoordinateComponent<import("..").RadarCoordinate>;
|
|
49
|
-
readonly 'encode.constant': import("../runtime").EncodeComponent<import("../encode").ConstantOptions>;
|
|
50
|
-
readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
|
|
51
|
-
readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
|
|
52
|
-
readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
|
|
53
|
-
readonly 'mark.interval': import("../runtime").MarkComponent<import("..").IntervalOptions>;
|
|
54
|
-
readonly 'mark.rect': import("../runtime").MarkComponent<import("..").RectOptions>;
|
|
55
|
-
readonly 'mark.line': import("../runtime").MarkComponent<import("..").LineOptions>;
|
|
56
|
-
readonly 'mark.point': import("../runtime").MarkComponent<import("..").PointOptions>;
|
|
57
|
-
readonly 'mark.text': import("../runtime").MarkComponent<import("..").TextOptions>;
|
|
58
|
-
readonly 'mark.cell': import("../runtime").MarkComponent<import("..").CellOptions>;
|
|
59
|
-
readonly 'mark.area': import("../runtime").MarkComponent<import("..").AreaOptions>;
|
|
60
|
-
readonly 'mark.link': import("../runtime").MarkComponent<import("..").LinkOptions>;
|
|
61
|
-
readonly 'mark.image': import("../runtime").MarkComponent<import("..").ImageOptions>;
|
|
62
|
-
readonly 'mark.polygon': import("../runtime").MarkComponent<import("..").PolygonOptions>;
|
|
63
|
-
readonly 'mark.box': import("../runtime").MarkComponent<import("..").BoxOptions>;
|
|
64
|
-
readonly 'mark.vector': import("../runtime").MarkComponent<import("..").VectorOptions>;
|
|
65
|
-
readonly 'mark.lineX': import("../runtime").MarkComponent<import("..").LineXOptions>;
|
|
66
|
-
readonly 'mark.lineY': import("../runtime").MarkComponent<import("..").LineYOptions>;
|
|
67
|
-
readonly 'mark.connector': import("../runtime").MarkComponent<import("..").ConnectorOptions>;
|
|
68
|
-
readonly 'mark.range': import("../runtime").MarkComponent<import("..").RangeOptions>;
|
|
69
|
-
readonly 'mark.rangeX': import("../runtime").MarkComponent<import("..").RangeXOptions>;
|
|
70
|
-
readonly 'mark.rangeY': import("../runtime").MarkComponent<import("..").RangeYOptions>;
|
|
71
|
-
readonly 'mark.path': import("../runtime").MarkComponent<import("../mark/path").PathOptions>;
|
|
72
|
-
readonly 'mark.shape': import("../runtime").MarkComponent<import("..").ShapeOptions>;
|
|
73
|
-
readonly 'mark.density': import("../runtime").MarkComponent<import("..").DensityOptions>;
|
|
74
|
-
readonly 'mark.heatmap': import("../runtime").MarkComponent<import("..").HeatmapOptions>;
|
|
75
|
-
readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
|
|
76
|
-
readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
|
|
77
|
-
readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
|
|
78
|
-
readonly 'scale.ordinal': import("../runtime").ScaleComponent<import("../scale").OrdinalOptions>;
|
|
79
|
-
readonly 'scale.band': import("../runtime").ScaleComponent<import("../scale").BandOptions>;
|
|
80
|
-
readonly 'scale.identity': import("../runtime").ScaleComponent<import("../scale").IdentityOptions>;
|
|
81
|
-
readonly 'scale.point': import("../runtime").ScaleComponent<import("../scale").PointOptions>;
|
|
82
|
-
readonly 'scale.time': import("../runtime").ScaleComponent<import("../scale").TimeOptions>;
|
|
83
|
-
readonly 'scale.log': import("../runtime").ScaleComponent<import("../scale").LogOptions>;
|
|
84
|
-
readonly 'scale.pow': import("../runtime").ScaleComponent<import("../scale").PowOptions>;
|
|
85
|
-
readonly 'scale.sqrt': import("../runtime").ScaleComponent<import("../scale").SqrtOptions>;
|
|
86
|
-
readonly 'scale.threshold': import("../runtime").ScaleComponent<import("../scale").ThresholdOptions>;
|
|
87
|
-
readonly 'scale.quantile': import("../runtime").ScaleComponent<import("../scale").QuantileOptions>;
|
|
88
|
-
readonly 'scale.quantize': import("../runtime").ScaleComponent<import("../scale").QuantizeOptions>;
|
|
89
|
-
readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
|
|
90
|
-
readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
|
|
91
|
-
readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
92
|
-
readonly 'theme.classicDark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
93
|
-
readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
94
|
-
readonly 'theme.light': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
95
|
-
readonly 'theme.dark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
96
|
-
readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
97
|
-
readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
|
|
98
|
-
readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
|
|
99
|
-
readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
100
|
-
readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
|
|
101
|
-
readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
|
|
102
|
-
readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
103
|
-
readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
104
|
-
readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
105
|
-
readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
106
|
-
readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
107
|
-
readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
108
|
-
readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
109
|
-
readonly 'animation.scaleOutY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
110
|
-
readonly 'animation.waveIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
111
|
-
readonly 'animation.fadeIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
112
|
-
readonly 'animation.fadeOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
113
|
-
readonly 'animation.zoomIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
114
|
-
readonly 'animation.zoomOut': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
115
|
-
readonly 'animation.pathIn': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
116
|
-
readonly 'animation.morphing': import("../runtime").AnimationComponent<import("../animation").MorphingOptions>;
|
|
117
|
-
readonly 'animation.growInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
118
|
-
readonly 'animation.growInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
119
|
-
readonly 'interaction.elementHighlight': typeof import("../interaction").ElementHighlight;
|
|
120
|
-
readonly 'interaction.elementHighlightByX': typeof import("../interaction").ElementHighlightByX;
|
|
121
|
-
readonly 'interaction.elementHighlightByColor': typeof import("../interaction").ElementHighlightByColor;
|
|
122
|
-
readonly 'interaction.elementSelect': typeof import("../interaction").ElementSelect;
|
|
123
|
-
readonly 'interaction.elementSelectByX': typeof import("../interaction").ElementSelectByX;
|
|
124
|
-
readonly 'interaction.elementSelectByColor': typeof import("../interaction").ElementSelectByColor;
|
|
125
|
-
readonly 'interaction.fisheye': typeof import("../interaction").Fisheye;
|
|
126
|
-
readonly 'interaction.chartIndex': typeof import("../interaction").ChartIndex;
|
|
127
|
-
readonly 'interaction.tooltip': typeof import("../interaction").Tooltip;
|
|
128
|
-
readonly 'interaction.legendFilter': typeof import("../interaction").LegendFilter;
|
|
129
|
-
readonly 'interaction.legendHighlight': typeof import("../interaction").LegendHighlight;
|
|
130
|
-
readonly 'interaction.brushHighlight': typeof import("../interaction").BrushHighlight;
|
|
131
|
-
readonly 'interaction.brushXHighlight': typeof import("../interaction").BrushXHighlight;
|
|
132
|
-
readonly 'interaction.brushYHighlight': typeof import("../interaction").BrushYHighlight;
|
|
133
|
-
readonly 'interaction.brushAxisHighlight': typeof import("../interaction").BrushAxisHighlight;
|
|
134
|
-
readonly 'interaction.brushFilter': typeof import("../interaction").BrushFilter;
|
|
135
|
-
readonly 'interaction.brushXFilter': typeof import("../interaction").BrushXFilter;
|
|
136
|
-
readonly 'interaction.brushYFilter': typeof import("../interaction").BrushYFilter;
|
|
137
|
-
readonly 'interaction.sliderFilter': typeof import("../interaction").SliderFilter;
|
|
138
|
-
readonly 'interaction.scrollbarFilter': typeof import("../interaction").ScrollbarFilter;
|
|
139
|
-
readonly 'interaction.poptip': typeof import("../interaction").Poptip;
|
|
140
|
-
readonly 'composition.spaceLayer': import("../runtime").CompositionComponent<import("../composition").SpaceLayerOptions>;
|
|
141
|
-
readonly 'composition.spaceFlex': import("../runtime").CompositionComponent<import("../composition").SpaceFlexOptions>;
|
|
142
|
-
readonly 'composition.facetRect': import("../runtime").CompositionComponent<import("../composition").FacetRectOptions>;
|
|
143
|
-
readonly 'composition.repeatMatrix': import("../runtime").CompositionComponent<import("..").RepeatMatrixComposition>;
|
|
144
|
-
readonly 'composition.facetCircle': import("../runtime").CompositionComponent<import("..").FacetCircleComposition>;
|
|
145
|
-
readonly 'composition.timingKeyframe': import("../runtime").CompositionComponent<import("../composition").TimingKeyframeOptions>;
|
|
146
|
-
readonly 'labelTransform.overlapHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapHideOptions>;
|
|
147
|
-
readonly 'labelTransform.overlapDodgeY': import("../runtime").LabelTransformComponent<import("../label-transform").OverlapDodgeYOptions>;
|
|
148
|
-
readonly 'labelTransform.overflowHide': import("../runtime").LabelTransformComponent<import("../label-transform").OverflowHideOptions>;
|
|
149
|
-
readonly 'labelTransform.contrastReverse': import("../runtime").LabelTransformComponent<import("../label-transform").ContrastReverseOptions>;
|
|
150
|
-
readonly 'data.venn': import("../runtime").DataComponent<import("../data").VennOptions>;
|
|
151
|
-
readonly 'mark.boxplot': import("../runtime").CompositeMarkComponent<import("../mark/boxplot").BoxPlotOptions>;
|
|
152
|
-
readonly 'mark.gauge': import("../runtime").CompositeMarkComponent<import("..").GaugeOptions>;
|
|
153
|
-
readonly 'mark.wordCloud': import("../runtime").CompositeMarkComponent<import("..").WordCloudOptions>;
|
|
154
|
-
readonly 'mark.liquid': import("../runtime").CompositeMarkComponent<import("..").LiquidOptions>;
|
|
155
|
-
readonly 'data.arc': import("../runtime").DataComponent<import("../data").ArcOptions>;
|
|
156
|
-
readonly 'data.cluster': import("../runtime").DataComponent<import("../data").ClusterOptions>;
|
|
157
|
-
readonly 'mark.forceGraph': import("../runtime").CompositeMarkComponent<import("..").ForceGraphOptions>;
|
|
158
|
-
readonly 'mark.tree': import("../runtime").CompositeMarkComponent<import("..").TreeOptions>;
|
|
159
|
-
readonly 'mark.pack': import("../runtime").CompositionComponent<import("..").PackOptions>;
|
|
160
|
-
readonly 'mark.sankey': import("../runtime").CompositeMarkComponent<import("..").SankeyOptions>;
|
|
161
|
-
readonly 'mark.treemap': import("../runtime").CompositionComponent<import("..").TreemapOptions>;
|
|
162
|
-
readonly 'composition.geoView': import("../runtime").CompositionComponent<import("../composition/geoView").GeoViewOptions>;
|
|
163
|
-
readonly 'composition.geoPath': import("../runtime").CompositionComponent<import("../composition/geoPath").GeoPathOptions>;
|
|
164
|
-
};
|
|
2
|
+
export declare const library: {};
|
|
165
3
|
export declare function register(key: `${G2ComponentNamespaces}.${any}`, component: G2Component): void;
|
package/esm/api/library.js
CHANGED
package/esm/api/library.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.js","sourceRoot":"src/","sources":["api/library.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"library.js","sourceRoot":"src/","sources":["api/library.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC;AAE1B,uCAAuC;AACvC,MAAM,UAAU,QAAQ,CACtB,GAAsC,EACtC,SAAsB;IAEtB,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AAC/C,CAAC"}
|
package/esm/api/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRenderer, RendererPlugin, Canvas as GCanvas } from '@antv/g';
|
|
2
2
|
import { G2Context } from '../runtime';
|
|
3
3
|
import { G2Spec, ViewComposition } from '../spec';
|
|
4
|
-
import { G2Library } from '../runtime/types/options';
|
|
4
|
+
import type { G2Library } from '../runtime/types/options';
|
|
5
5
|
import { CompositionNode } from './composition';
|
|
6
6
|
export declare const G2_CHART_KEY = "G2_CHART_KEY";
|
|
7
7
|
export type RuntimeOptions = ViewComposition & {
|
package/esm/api/runtime.js
CHANGED
|
@@ -26,6 +26,7 @@ import { normalizeContainer, removeContainer, sizeOf, optionsOf, updateRoot, cre
|
|
|
26
26
|
import { CompositionNode } from './composition';
|
|
27
27
|
import { defineProps, nodeProps } from './define';
|
|
28
28
|
import { MarkNode } from './mark';
|
|
29
|
+
import { library } from './library';
|
|
29
30
|
export const G2_CHART_KEY = 'G2_CHART_KEY';
|
|
30
31
|
export class Runtime extends CompositionNode {
|
|
31
32
|
constructor(options) {
|
|
@@ -45,7 +46,11 @@ export class Runtime extends CompositionNode {
|
|
|
45
46
|
this._plugins = plugins || [];
|
|
46
47
|
this._container = normalizeContainer(container);
|
|
47
48
|
this._emitter = new EventEmitter();
|
|
48
|
-
this._context = {
|
|
49
|
+
this._context = {
|
|
50
|
+
library: Object.assign(Object.assign({}, lib), library),
|
|
51
|
+
emitter: this._emitter,
|
|
52
|
+
canvas,
|
|
53
|
+
};
|
|
49
54
|
this._create();
|
|
50
55
|
}
|
|
51
56
|
render() {
|
package/esm/api/runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"src/","sources":["api/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,OAAO,EAA6B,MAAM,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAa,MAAM,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,MAAM,EACN,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OA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AO,EAAE,CAAC;QAC/B,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAE5B,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,wCAAwC;YACxC,IAAI,CAAC,OAAO;gBAAE,IAAI,CAAC,cAAc,EAAE,CAAC;YACpC,OAAO;SACR;QAED,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;YAC5B,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;SACnD;IACH,CAAC;IAEO,cAAc;QACpB,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;YAC7B,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;SACtD;IACH,CAAC;CACF"}
|
package/esm/api/utils.d.ts
CHANGED
|
@@ -8,10 +8,6 @@ export declare function removeContainer(container: HTMLElement): void;
|
|
|
8
8
|
export declare function normalizeRoot(node: Node): Node<Record<string, any>, Record<string, any>, Record<string, any>>;
|
|
9
9
|
export declare function valueOf(node: Node): Record<string, any>;
|
|
10
10
|
export declare function sizeOf(options: any, container: any): {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
depth?: number;
|
|
14
|
-
} | {
|
|
15
11
|
width: any;
|
|
16
12
|
height: any;
|
|
17
13
|
depth: any;
|
package/esm/api/utils.js
CHANGED
|
@@ -70,9 +70,10 @@ export function valueOf(node) {
|
|
|
70
70
|
}
|
|
71
71
|
export function sizeOf(options, container) {
|
|
72
72
|
const { autoFit } = options;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
const { width = 640, height = 480 } = autoFit
|
|
74
|
+
? getContainerSize(container)
|
|
75
|
+
: options;
|
|
76
|
+
const { depth = 0 } = options;
|
|
76
77
|
return { width, height, depth };
|
|
77
78
|
}
|
|
78
79
|
export function optionsOf(node) {
|
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,MAAM,GAAG,IAAI,OAAO,CAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACzC,OAAO,GAAG,GAAG,CAAC;QACd,MAAM,GAAG,GAAG,CAAC;IACf,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACnC,CAAC"}
|
package/esm/component/axis.js
CHANGED
|
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { Axis as AxisComponent } from '@antv/
|
|
12
|
+
import { Axis as AxisComponent } from '@antv/component';
|
|
13
13
|
import { Linear as LinearScale } from '@antv/scale';
|
|
14
14
|
import { deepMix, omit, upperFirst } from '@antv/util';
|
|
15
15
|
import { extent } from 'd3-array';
|