@antv/g2 5.1.4 → 5.1.5
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 +436 -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 -163
- package/esm/api/library.d.ts +1 -162
- 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 +1 -0
- package/esm/api/utils.js +25 -6
- package/esm/api/utils.js.map +1 -1
- package/esm/composition/repeatMatrix.js +4 -1
- package/esm/composition/repeatMatrix.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/fisheye.js +3 -1
- package/esm/interaction/fisheye.js.map +1 -1
- package/esm/interaction/legendFilter.d.ts +1 -1
- package/esm/interaction/legendFilter.js +72 -31
- package/esm/interaction/legendFilter.js.map +1 -1
- package/esm/interaction/tooltip.d.ts +2 -2
- package/esm/interaction/tooltip.js +37 -21
- 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/core.d.ts +1 -0
- package/esm/lib/core.js +2 -1
- package/esm/lib/core.js.map +1 -1
- 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 +30 -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 +11 -4
- 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/spec/index.d.ts +3 -3
- package/esm/spec/mark.d.ts +4 -2
- package/esm/theme/academy.js +30 -358
- package/esm/theme/academy.js.map +1 -1
- package/esm/theme/classic.js +4 -433
- package/esm/theme/classic.js.map +1 -1
- package/esm/theme/classicDark.js +3 -404
- package/esm/theme/classicDark.js.map +1 -1
- package/esm/theme/create.d.ts +437 -0
- package/esm/theme/create.js +421 -0
- package/esm/theme/create.js.map +1 -0
- package/esm/theme/dark.d.ts +3 -0
- package/esm/theme/dark.js +76 -0
- package/esm/theme/dark.js.map +1 -0
- package/esm/theme/index.d.ts +1 -0
- package/esm/theme/index.js +1 -0
- package/esm/theme/index.js.map +1 -1
- package/esm/theme/light.js +52 -470
- 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/lib/api/chart.d.ts +2 -163
- package/lib/api/library.d.ts +1 -162
- 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 +1 -0
- package/lib/api/utils.js +26 -7
- package/lib/api/utils.js.map +1 -1
- package/lib/composition/repeatMatrix.js +4 -1
- package/lib/composition/repeatMatrix.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/fisheye.js +3 -1
- package/lib/interaction/fisheye.js.map +1 -1
- package/lib/interaction/legendFilter.d.ts +1 -1
- package/lib/interaction/legendFilter.js +72 -31
- package/lib/interaction/legendFilter.js.map +1 -1
- package/lib/interaction/tooltip.d.ts +2 -2
- package/lib/interaction/tooltip.js +37 -21
- 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/core.d.ts +1 -0
- package/lib/lib/core.js +1 -0
- package/lib/lib/core.js.map +1 -1
- 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 +30 -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 +11 -4
- package/lib/runtime/plot.js.map +1 -1
- package/lib/shape/connector/connector.js +1 -1
- package/lib/shape/connector/connector.js.map +1 -1
- package/lib/shape/index.d.ts +1 -1
- package/lib/spec/index.d.ts +3 -3
- package/lib/spec/mark.d.ts +4 -2
- package/lib/theme/academy.js +30 -358
- package/lib/theme/academy.js.map +1 -1
- package/lib/theme/classic.js +4 -433
- package/lib/theme/classic.js.map +1 -1
- package/lib/theme/classicDark.js +3 -404
- package/lib/theme/classicDark.js.map +1 -1
- package/lib/theme/create.d.ts +437 -0
- package/lib/theme/create.js +425 -0
- package/lib/theme/create.js.map +1 -0
- package/lib/theme/dark.d.ts +3 -0
- package/lib/theme/dark.js +80 -0
- package/lib/theme/dark.js.map +1 -0
- package/lib/theme/index.d.ts +1 -0
- package/lib/theme/index.js +3 -1
- package/lib/theme/index.js.map +1 -1
- package/lib/theme/light.js +52 -470
- 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/package.json +23 -8
- 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 +22 -6
- package/src/composition/repeatMatrix.ts +11 -2
- package/src/exports.ts +32 -0
- package/src/index.ts +13 -41
- package/src/interaction/fisheye.ts +3 -1
- package/src/interaction/legendFilter.ts +81 -48
- package/src/interaction/tooltip.ts +56 -33
- package/src/lib/auto.ts +7 -0
- package/src/lib/core.ts +2 -1
- 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 +34 -7
- package/src/shape/connector/connector.ts +1 -1
- package/src/shape/index.ts +1 -1
- package/src/spec/index.ts +3 -3
- package/src/spec/mark.ts +4 -0
- package/src/theme/academy.ts +74 -399
- package/src/theme/classic.ts +11 -438
- package/src/theme/classicDark.ts +10 -409
- package/src/theme/create.ts +439 -0
- package/src/theme/dark.ts +85 -0
- package/src/theme/index.ts +1 -0
- package/src/theme/light.ts +53 -473
- package/src/utils/event.ts +32 -45
- package/dist/g2-lite.min.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repeatMatrix.js","sourceRoot":"src/","sources":["composition/repeatMatrix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAqC;
|
|
1
|
+
{"version":3,"file":"repeatMatrix.js","sourceRoot":"src/","sources":["composition/repeatMatrix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAqC;AAQrC,kDAA+C;AAC/C,4CAA2C;AAC3C,0CAAyC;AACzC,2CAMqB;AACrB,mCAAgE;AAIhE,MAAM,QAAQ,GAAG,IAAA,yBAAiB,EAAa,CAAC,OAAO,EAAE,EAAE;IACzD,OAAO;QACL,KAAK,EAAE;YACL,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE;YACtD,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,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;aACb,IAAI,CAAC,wBAAY,CAAC;aAClB,IAAI,CAAC,oBAAQ,CAAC;aACd,IAAI,CAAC,QAAQ,CAAC;aACd,KAAK,EAAE,CAAC;QACX,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,YAAY,gBAavB"}
|
package/lib/exports.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { render, renderToMountedElement, MAIN_LAYER_CLASS_NAME, LABEL_LAYER_CLASS_NAME, ELEMENT_CLASS_NAME, VIEW_CLASS_NAME, PLOT_CLASS_NAME, COMPONENT_CLASS_NAME, LABEL_CLASS_NAME, AREA_CLASS_NAME, MASK_CLASS_NAME, } from './runtime';
|
|
2
|
+
export { type MarkNode, type CompositionNode, register, Runtime, extend, type ChartOptions, } from './api';
|
|
3
|
+
export { ChartEvent } from './utils/event';
|
|
4
|
+
export type { G2Context } from './runtime';
|
|
5
|
+
export * from './spec';
|
package/lib/exports.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ChartEvent = exports.extend = exports.Runtime = exports.register = exports.MASK_CLASS_NAME = exports.AREA_CLASS_NAME = exports.LABEL_CLASS_NAME = exports.COMPONENT_CLASS_NAME = exports.PLOT_CLASS_NAME = exports.VIEW_CLASS_NAME = exports.ELEMENT_CLASS_NAME = exports.LABEL_LAYER_CLASS_NAME = exports.MAIN_LAYER_CLASS_NAME = exports.renderToMountedElement = exports.render = void 0;
|
|
18
|
+
const g_1 = require("@antv/g");
|
|
19
|
+
g_1.runtime.enableCSSParsing = false;
|
|
20
|
+
var runtime_1 = require("./runtime");
|
|
21
|
+
Object.defineProperty(exports, "render", { enumerable: true, get: function () { return runtime_1.render; } });
|
|
22
|
+
Object.defineProperty(exports, "renderToMountedElement", { enumerable: true, get: function () { return runtime_1.renderToMountedElement; } });
|
|
23
|
+
Object.defineProperty(exports, "MAIN_LAYER_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.MAIN_LAYER_CLASS_NAME; } });
|
|
24
|
+
Object.defineProperty(exports, "LABEL_LAYER_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.LABEL_LAYER_CLASS_NAME; } });
|
|
25
|
+
Object.defineProperty(exports, "ELEMENT_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.ELEMENT_CLASS_NAME; } });
|
|
26
|
+
Object.defineProperty(exports, "VIEW_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.VIEW_CLASS_NAME; } });
|
|
27
|
+
Object.defineProperty(exports, "PLOT_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.PLOT_CLASS_NAME; } });
|
|
28
|
+
Object.defineProperty(exports, "COMPONENT_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.COMPONENT_CLASS_NAME; } });
|
|
29
|
+
Object.defineProperty(exports, "LABEL_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.LABEL_CLASS_NAME; } });
|
|
30
|
+
Object.defineProperty(exports, "AREA_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.AREA_CLASS_NAME; } });
|
|
31
|
+
Object.defineProperty(exports, "MASK_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.MASK_CLASS_NAME; } });
|
|
32
|
+
var api_1 = require("./api");
|
|
33
|
+
Object.defineProperty(exports, "register", { enumerable: true, get: function () { return api_1.register; } });
|
|
34
|
+
Object.defineProperty(exports, "Runtime", { enumerable: true, get: function () { return api_1.Runtime; } });
|
|
35
|
+
Object.defineProperty(exports, "extend", { enumerable: true, get: function () { return api_1.extend; } });
|
|
36
|
+
var event_1 = require("./utils/event");
|
|
37
|
+
Object.defineProperty(exports, "ChartEvent", { enumerable: true, get: function () { return event_1.ChartEvent; } });
|
|
38
|
+
__exportStar(require("./spec"), exports);
|
|
39
|
+
//# sourceMappingURL=exports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"src/","sources":["exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+BAAkC;AAElC,WAAO,CAAC,gBAAgB,GAAG,KAAK,CAAC;AAEjC,qCAYmB;AAXjB,iGAAA,MAAM,OAAA;AACN,iHAAA,sBAAsB,OAAA;AACtB,gHAAA,qBAAqB,OAAA;AACrB,iHAAA,sBAAsB,OAAA;AACtB,6GAAA,kBAAkB,OAAA;AAClB,0GAAA,eAAe,OAAA;AACf,0GAAA,eAAe,OAAA;AACf,+GAAA,oBAAoB,OAAA;AACpB,2GAAA,gBAAgB,OAAA;AAChB,0GAAA,eAAe,OAAA;AACf,0GAAA,eAAe,OAAA;AAGjB,6BAOe;AAJb,+FAAA,QAAQ,OAAA;AACR,8FAAA,OAAO,OAAA;AACP,6FAAA,MAAM,OAAA;AAIR,uCAA2C;AAAlC,mGAAA,UAAU,OAAA;AAInB,yCAAuB"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,338 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { corelib, plotlib, graphlib, geolib, stdlib, threedlib } from './lib';
|
|
2
|
+
import { API, CompositionAPI } from './api/extend';
|
|
3
|
+
import { G2Spec } from './spec';
|
|
4
|
+
export { corelib, plotlib, graphlib, geolib, stdlib, threedlib };
|
|
5
|
+
export * from './exports';
|
|
6
|
+
/**
|
|
7
|
+
* G2 standard library initial all the libs except 3D and auto.
|
|
8
|
+
*/
|
|
9
|
+
declare const library: {
|
|
10
|
+
'data.fetch': import("./runtime").DataComponent<import("./data").FetchOptions>;
|
|
11
|
+
'data.inline': import("./runtime").DataComponent<import("./data").InlineOptions>;
|
|
12
|
+
'data.sortBy': import("./runtime").DataComponent<import("./data").SortByOptions>;
|
|
13
|
+
'data.sort': import("./runtime").DataComponent<import("./data").SortOptions>;
|
|
14
|
+
'data.filter': import("./runtime").DataComponent<import("./data").FilterDataOptions>;
|
|
15
|
+
'data.pick': import("./runtime").DataComponent<import("./data").PickOptions>;
|
|
16
|
+
'data.rename': import("./runtime").DataComponent<import("./data").RenameOptions>;
|
|
17
|
+
'data.fold': import("./runtime").DataComponent<import("./data").FoldOptions>;
|
|
18
|
+
'data.slice': import("./runtime").DataComponent<import("./data").SliceOptions>;
|
|
19
|
+
'data.custom': import("./runtime").DataComponent<import("./data").CustomOptions>;
|
|
20
|
+
'data.map': import("./runtime").DataComponent<import("./data").MapOptions>;
|
|
21
|
+
'data.join': import("./runtime").DataComponent<import("./data").JoinOptions>;
|
|
22
|
+
'data.kde': import("./runtime").DataComponent<import("./data").KDEOptions>;
|
|
23
|
+
'data.log': import("./runtime").DataComponent<import("./data").LogDataOptions>;
|
|
24
|
+
'transform.stackY': import("./runtime").TransformComponent<import("./transform").StackYOptions>;
|
|
25
|
+
'transform.binX': import("./runtime").TransformComponent<import("./transform").BinXOptions>;
|
|
26
|
+
'transform.bin': import("./runtime").TransformComponent<import("./transform").BinOptions>;
|
|
27
|
+
'transform.dodgeX': import("./runtime").TransformComponent<import("./transform").DodgeXOptions>;
|
|
28
|
+
'transform.jitter': import("./runtime").TransformComponent<import("./transform").JitterOptions>;
|
|
29
|
+
'transform.jitterX': import("./runtime").TransformComponent<import("./transform").JitterXOptions>;
|
|
30
|
+
'transform.symmetryY': import("./runtime").TransformComponent<import("./transform").SymmetryYOptions>;
|
|
31
|
+
'transform.diffY': import("./runtime").TransformComponent<import("./transform").DiffYOptions>;
|
|
32
|
+
'transform.stackEnter': import("./runtime").TransformComponent<import("./transform").StackEnterOptions>;
|
|
33
|
+
'transform.normalizeY': import("./runtime").TransformComponent<import("./transform").NormalizeYOptions>;
|
|
34
|
+
'transform.select': import("./runtime").TransformComponent<import("./transform").SelectOptions>;
|
|
35
|
+
'transform.selectX': import("./runtime").TransformComponent<import("./transform").SelectXOptions>;
|
|
36
|
+
'transform.selectY': import("./runtime").TransformComponent<import("./transform").SelectYOptions>;
|
|
37
|
+
'transform.groupX': import("./runtime").TransformComponent<import("./transform").GroupXOptions>;
|
|
38
|
+
'transform.groupY': import("./runtime").TransformComponent<import("./transform").GroupYOptions>;
|
|
39
|
+
'transform.groupColor': import("./runtime").TransformComponent<import("./transform").GroupColorOptions>;
|
|
40
|
+
'transform.group': import("./runtime").TransformComponent<import("./transform").GroupOptions>;
|
|
41
|
+
'transform.sortX': import("./runtime").TransformComponent<import("./transform").SortXOptions>;
|
|
42
|
+
'transform.sortY': import("./runtime").TransformComponent<import("./transform").SortYOptions>;
|
|
43
|
+
'transform.sortColor': import("./runtime").TransformComponent<import("./transform").SortColorOptions>;
|
|
44
|
+
'transform.flexX': import("./runtime").TransformComponent<import("./transform").FlexXOptions>;
|
|
45
|
+
'transform.pack': import("./runtime").TransformComponent<import("./transform").PackOptions>;
|
|
46
|
+
'transform.sample': import("./runtime").TransformComponent<import("./transform").SampleOptions>;
|
|
47
|
+
'transform.filter': import("./runtime").TransformComponent<import("./transform").FilterOptions>;
|
|
48
|
+
'coordinate.cartesian': import("./runtime").CoordinateComponent<import("./coordinate").CartesianOptions>;
|
|
49
|
+
'coordinate.polar': import("./runtime").CoordinateComponent<import("./coordinate").PolarOptions>;
|
|
50
|
+
'coordinate.transpose': import("./runtime").CoordinateComponent<import("./coordinate").TransposeOptions>;
|
|
51
|
+
'coordinate.theta': import("./runtime").CoordinateComponent<import("./spec").ThetaCoordinate>;
|
|
52
|
+
'coordinate.parallel': import("./runtime").CoordinateComponent<import("./coordinate").ParallelOptions>;
|
|
53
|
+
'coordinate.fisheye': import("./runtime").CoordinateComponent<import("./spec").FisheyeCoordinate>;
|
|
54
|
+
'coordinate.radial': import("./runtime").CoordinateComponent<import("./coordinate").RadialOptions>;
|
|
55
|
+
'coordinate.radar': import("./runtime").CoordinateComponent<import("./spec").RadarCoordinate>;
|
|
56
|
+
'encode.constant': import("./runtime").EncodeComponent<import("./encode").ConstantOptions>;
|
|
57
|
+
'encode.field': import("./runtime").EncodeComponent<import("./encode").FieldOptions>;
|
|
58
|
+
'encode.transform': import("./runtime").EncodeComponent<import("./encode").TransformOptions>;
|
|
59
|
+
'encode.column': import("./runtime").EncodeComponent<import("./encode").ColumnOptions>;
|
|
60
|
+
'mark.interval': import("./runtime").MarkComponent<import("./mark").IntervalOptions>;
|
|
61
|
+
'mark.rect': import("./runtime").MarkComponent<import("./mark").RectOptions>;
|
|
62
|
+
'mark.line': import("./runtime").MarkComponent<import("./mark").LineOptions>;
|
|
63
|
+
'mark.point': import("./runtime").MarkComponent<import("./mark").PointOptions>;
|
|
64
|
+
'mark.text': import("./runtime").MarkComponent<import("./mark").TextOptions>;
|
|
65
|
+
'mark.cell': import("./runtime").MarkComponent<import("./mark").CellOptions>;
|
|
66
|
+
'mark.area': import("./runtime").MarkComponent<import("./mark").AreaOptions>;
|
|
67
|
+
'mark.link': import("./runtime").MarkComponent<import("./mark").LinkOptions>;
|
|
68
|
+
'mark.image': import("./runtime").MarkComponent<import("./mark").ImageOptions>;
|
|
69
|
+
'mark.polygon': import("./runtime").MarkComponent<import("./mark").PolygonOptions>;
|
|
70
|
+
'mark.box': import("./runtime").MarkComponent<import("./mark").BoxOptions>;
|
|
71
|
+
'mark.vector': import("./runtime").MarkComponent<import("./mark").VectorOptions>;
|
|
72
|
+
'mark.lineX': import("./runtime").MarkComponent<import("./mark").LineXOptions>;
|
|
73
|
+
'mark.lineY': import("./runtime").MarkComponent<import("./mark").LineYOptions>;
|
|
74
|
+
'mark.connector': import("./runtime").MarkComponent<import("./mark").ConnectorOptions>;
|
|
75
|
+
'mark.range': import("./runtime").MarkComponent<import("./mark").RangeOptions>;
|
|
76
|
+
'mark.rangeX': import("./runtime").MarkComponent<import("./mark").RangeXOptions>;
|
|
77
|
+
'mark.rangeY': import("./runtime").MarkComponent<import("./mark").RangeYOptions>;
|
|
78
|
+
'mark.path': import("./runtime").MarkComponent<import("./mark/path").PathOptions>;
|
|
79
|
+
'mark.shape': import("./runtime").MarkComponent<import("./mark").ShapeOptions>;
|
|
80
|
+
'mark.density': import("./runtime").MarkComponent<import("./mark").DensityOptions>;
|
|
81
|
+
'mark.heatmap': import("./runtime").MarkComponent<import("./mark").HeatmapOptions>;
|
|
82
|
+
'palette.category10': import("./runtime").PaletteComponent<import("./palette").Category10Options>;
|
|
83
|
+
'palette.category20': import("./runtime").PaletteComponent<import("./palette").Category20Options>;
|
|
84
|
+
'scale.linear': import("./runtime").ScaleComponent<import("./scale").LinearOptions>;
|
|
85
|
+
'scale.ordinal': import("./runtime").ScaleComponent<import("./scale").OrdinalOptions>;
|
|
86
|
+
'scale.band': import("./runtime").ScaleComponent<import("./scale").BandOptions>;
|
|
87
|
+
'scale.identity': import("./runtime").ScaleComponent<import("./scale").IdentityOptions>;
|
|
88
|
+
'scale.point': import("./runtime").ScaleComponent<import("./scale").PointOptions>;
|
|
89
|
+
'scale.time': import("./runtime").ScaleComponent<import("./scale").TimeOptions>;
|
|
90
|
+
'scale.log': import("./runtime").ScaleComponent<import("./scale").LogOptions>;
|
|
91
|
+
'scale.pow': import("./runtime").ScaleComponent<import("./scale").PowOptions>;
|
|
92
|
+
'scale.sqrt': import("./runtime").ScaleComponent<import("./scale").SqrtOptions>;
|
|
93
|
+
'scale.threshold': import("./runtime").ScaleComponent<import("./scale").ThresholdOptions>;
|
|
94
|
+
'scale.quantile': import("./runtime").ScaleComponent<import("./scale").QuantileOptions>;
|
|
95
|
+
'scale.quantize': import("./runtime").ScaleComponent<import("./scale").QuantizeOptions>;
|
|
96
|
+
'scale.sequential': import("./runtime").ScaleComponent<import("./scale").SequentialOptions>;
|
|
97
|
+
'scale.constant': import("./runtime").ScaleComponent<import("./scale").ConstantOptions>;
|
|
98
|
+
'theme.classic': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
99
|
+
'theme.classicDark': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
100
|
+
'theme.academy': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
101
|
+
'theme.light': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
102
|
+
'theme.dark': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
103
|
+
'component.axisX': import("./runtime").GuideComponentComponent<import("./component/axis").AxisOptions>;
|
|
104
|
+
'component.axisY': import("./runtime").GuideComponentComponent<import("./component/axis").AxisOptions>;
|
|
105
|
+
'component.legendCategory': import("./runtime").GuideComponentComponent<import("./component").LegendCategoryOptions>;
|
|
106
|
+
'component.legendContinuous': import("./runtime").GuideComponentComponent<import("./component").LegendContinuousOptions>;
|
|
107
|
+
'component.legends': import("./runtime").GuideComponentComponent<import("./component").LegendsOptions>;
|
|
108
|
+
'component.title': import("./runtime").GuideComponentComponent<import("./runtime").G2Title>;
|
|
109
|
+
'component.sliderX': import("./runtime").GuideComponentComponent<import("./component/slider").SliderOptions>;
|
|
110
|
+
'component.sliderY': import("./runtime").GuideComponentComponent<import("./component/slider").SliderOptions>;
|
|
111
|
+
'component.scrollbarX': import("./runtime").GuideComponentComponent<import("./component/scrollbar").ScrollbarOptions>;
|
|
112
|
+
'component.scrollbarY': import("./runtime").GuideComponentComponent<import("./component/scrollbar").ScrollbarOptions>;
|
|
113
|
+
'animation.scaleInX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
114
|
+
'animation.scaleOutX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
115
|
+
'animation.scaleInY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
116
|
+
'animation.scaleOutY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
117
|
+
'animation.waveIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
118
|
+
'animation.fadeIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
119
|
+
'animation.fadeOut': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
120
|
+
'animation.zoomIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
121
|
+
'animation.zoomOut': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
122
|
+
'animation.pathIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
123
|
+
'animation.morphing': import("./runtime").AnimationComponent<import("./animation").MorphingOptions>;
|
|
124
|
+
'animation.growInX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
125
|
+
'animation.growInY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
126
|
+
'interaction.elementHighlight': typeof import("./interaction").ElementHighlight;
|
|
127
|
+
'interaction.elementHighlightByX': typeof import("./interaction").ElementHighlightByX;
|
|
128
|
+
'interaction.elementHighlightByColor': typeof import("./interaction").ElementHighlightByColor;
|
|
129
|
+
'interaction.elementSelect': typeof import("./interaction").ElementSelect;
|
|
130
|
+
'interaction.elementSelectByX': typeof import("./interaction").ElementSelectByX;
|
|
131
|
+
'interaction.elementSelectByColor': typeof import("./interaction").ElementSelectByColor;
|
|
132
|
+
'interaction.fisheye': typeof import("./interaction").Fisheye;
|
|
133
|
+
'interaction.chartIndex': typeof import("./interaction").ChartIndex;
|
|
134
|
+
'interaction.tooltip': typeof import("./interaction").Tooltip;
|
|
135
|
+
'interaction.legendFilter': typeof import("./interaction").LegendFilter;
|
|
136
|
+
'interaction.legendHighlight': typeof import("./interaction").LegendHighlight;
|
|
137
|
+
'interaction.brushHighlight': typeof import("./interaction").BrushHighlight;
|
|
138
|
+
'interaction.brushXHighlight': typeof import("./interaction").BrushXHighlight;
|
|
139
|
+
'interaction.brushYHighlight': typeof import("./interaction").BrushYHighlight;
|
|
140
|
+
'interaction.brushAxisHighlight': typeof import("./interaction").BrushAxisHighlight;
|
|
141
|
+
'interaction.brushFilter': typeof import("./interaction").BrushFilter;
|
|
142
|
+
'interaction.brushXFilter': typeof import("./interaction").BrushXFilter;
|
|
143
|
+
'interaction.brushYFilter': typeof import("./interaction").BrushYFilter;
|
|
144
|
+
'interaction.sliderFilter': typeof import("./interaction").SliderFilter;
|
|
145
|
+
'interaction.scrollbarFilter': typeof import("./interaction").ScrollbarFilter;
|
|
146
|
+
'interaction.poptip': typeof import("./interaction").Poptip;
|
|
147
|
+
'composition.spaceLayer': import("./runtime").CompositionComponent<import("./composition").SpaceLayerOptions>;
|
|
148
|
+
'composition.spaceFlex': import("./runtime").CompositionComponent<import("./composition").SpaceFlexOptions>;
|
|
149
|
+
'composition.facetRect': import("./runtime").CompositionComponent<import("./composition").FacetRectOptions>;
|
|
150
|
+
'composition.repeatMatrix': import("./runtime").CompositionComponent<import("./spec").RepeatMatrixComposition>;
|
|
151
|
+
'composition.facetCircle': import("./runtime").CompositionComponent<import("./spec").FacetCircleComposition>;
|
|
152
|
+
'composition.timingKeyframe': import("./runtime").CompositionComponent<import("./composition").TimingKeyframeOptions>;
|
|
153
|
+
'labelTransform.overlapHide': import("./runtime").LabelTransformComponent<import("./label-transform").OverlapHideOptions>;
|
|
154
|
+
'labelTransform.overlapDodgeY': import("./runtime").LabelTransformComponent<import("./label-transform").OverlapDodgeYOptions>;
|
|
155
|
+
'labelTransform.overflowHide': import("./runtime").LabelTransformComponent<import("./label-transform").OverflowHideOptions>;
|
|
156
|
+
'labelTransform.contrastReverse': import("./runtime").LabelTransformComponent<import("./label-transform").ContrastReverseOptions>;
|
|
157
|
+
'data.venn': import("./runtime").DataComponent<import("./data").VennOptions>;
|
|
158
|
+
'mark.boxplot': import("./runtime").CompositeMarkComponent<import("./mark/boxplot").BoxPlotOptions>;
|
|
159
|
+
'mark.gauge': import("./runtime").CompositeMarkComponent<import("./mark").GaugeOptions>;
|
|
160
|
+
'mark.wordCloud': import("./runtime").CompositeMarkComponent<import("./mark").WordCloudOptions>;
|
|
161
|
+
'mark.liquid': import("./runtime").CompositeMarkComponent<import("./mark").LiquidOptions>;
|
|
162
|
+
'data.arc': import("./runtime").DataComponent<import("./data").ArcOptions>;
|
|
163
|
+
'data.cluster': import("./runtime").DataComponent<import("./data").ClusterOptions>;
|
|
164
|
+
'mark.forceGraph': import("./runtime").CompositeMarkComponent<import("./mark").ForceGraphOptions>;
|
|
165
|
+
'mark.tree': import("./runtime").CompositeMarkComponent<import("./mark").TreeOptions>;
|
|
166
|
+
'mark.pack': import("./runtime").CompositionComponent<import("./mark").PackOptions>;
|
|
167
|
+
'mark.sankey': import("./runtime").CompositeMarkComponent<import("./mark").SankeyOptions>;
|
|
168
|
+
'mark.treemap': import("./runtime").CompositionComponent<import("./mark").TreemapOptions>;
|
|
169
|
+
'composition.geoView': import("./runtime").CompositionComponent<import("./composition/geoView").GeoViewOptions>;
|
|
170
|
+
'composition.geoPath': import("./runtime").CompositionComponent<import("./composition/geoPath").GeoPathOptions>;
|
|
171
|
+
};
|
|
172
|
+
export declare const Chart: new (options?: import("./api/runtime").RuntimeOptions) => API<G2Spec, {
|
|
173
|
+
'data.fetch': import("./runtime").DataComponent<import("./data").FetchOptions>;
|
|
174
|
+
'data.inline': import("./runtime").DataComponent<import("./data").InlineOptions>;
|
|
175
|
+
'data.sortBy': import("./runtime").DataComponent<import("./data").SortByOptions>;
|
|
176
|
+
'data.sort': import("./runtime").DataComponent<import("./data").SortOptions>;
|
|
177
|
+
'data.filter': import("./runtime").DataComponent<import("./data").FilterDataOptions>;
|
|
178
|
+
'data.pick': import("./runtime").DataComponent<import("./data").PickOptions>;
|
|
179
|
+
'data.rename': import("./runtime").DataComponent<import("./data").RenameOptions>;
|
|
180
|
+
'data.fold': import("./runtime").DataComponent<import("./data").FoldOptions>;
|
|
181
|
+
'data.slice': import("./runtime").DataComponent<import("./data").SliceOptions>;
|
|
182
|
+
'data.custom': import("./runtime").DataComponent<import("./data").CustomOptions>;
|
|
183
|
+
'data.map': import("./runtime").DataComponent<import("./data").MapOptions>;
|
|
184
|
+
'data.join': import("./runtime").DataComponent<import("./data").JoinOptions>;
|
|
185
|
+
'data.kde': import("./runtime").DataComponent<import("./data").KDEOptions>;
|
|
186
|
+
'data.log': import("./runtime").DataComponent<import("./data").LogDataOptions>;
|
|
187
|
+
'transform.stackY': import("./runtime").TransformComponent<import("./transform").StackYOptions>;
|
|
188
|
+
'transform.binX': import("./runtime").TransformComponent<import("./transform").BinXOptions>;
|
|
189
|
+
'transform.bin': import("./runtime").TransformComponent<import("./transform").BinOptions>;
|
|
190
|
+
'transform.dodgeX': import("./runtime").TransformComponent<import("./transform").DodgeXOptions>;
|
|
191
|
+
'transform.jitter': import("./runtime").TransformComponent<import("./transform").JitterOptions>;
|
|
192
|
+
'transform.jitterX': import("./runtime").TransformComponent<import("./transform").JitterXOptions>;
|
|
193
|
+
'transform.symmetryY': import("./runtime").TransformComponent<import("./transform").SymmetryYOptions>;
|
|
194
|
+
'transform.diffY': import("./runtime").TransformComponent<import("./transform").DiffYOptions>;
|
|
195
|
+
'transform.stackEnter': import("./runtime").TransformComponent<import("./transform").StackEnterOptions>;
|
|
196
|
+
'transform.normalizeY': import("./runtime").TransformComponent<import("./transform").NormalizeYOptions>;
|
|
197
|
+
'transform.select': import("./runtime").TransformComponent<import("./transform").SelectOptions>;
|
|
198
|
+
'transform.selectX': import("./runtime").TransformComponent<import("./transform").SelectXOptions>;
|
|
199
|
+
'transform.selectY': import("./runtime").TransformComponent<import("./transform").SelectYOptions>;
|
|
200
|
+
'transform.groupX': import("./runtime").TransformComponent<import("./transform").GroupXOptions>;
|
|
201
|
+
'transform.groupY': import("./runtime").TransformComponent<import("./transform").GroupYOptions>;
|
|
202
|
+
'transform.groupColor': import("./runtime").TransformComponent<import("./transform").GroupColorOptions>;
|
|
203
|
+
'transform.group': import("./runtime").TransformComponent<import("./transform").GroupOptions>;
|
|
204
|
+
'transform.sortX': import("./runtime").TransformComponent<import("./transform").SortXOptions>;
|
|
205
|
+
'transform.sortY': import("./runtime").TransformComponent<import("./transform").SortYOptions>;
|
|
206
|
+
'transform.sortColor': import("./runtime").TransformComponent<import("./transform").SortColorOptions>;
|
|
207
|
+
'transform.flexX': import("./runtime").TransformComponent<import("./transform").FlexXOptions>;
|
|
208
|
+
'transform.pack': import("./runtime").TransformComponent<import("./transform").PackOptions>;
|
|
209
|
+
'transform.sample': import("./runtime").TransformComponent<import("./transform").SampleOptions>;
|
|
210
|
+
'transform.filter': import("./runtime").TransformComponent<import("./transform").FilterOptions>;
|
|
211
|
+
'coordinate.cartesian': import("./runtime").CoordinateComponent<import("./coordinate").CartesianOptions>;
|
|
212
|
+
'coordinate.polar': import("./runtime").CoordinateComponent<import("./coordinate").PolarOptions>;
|
|
213
|
+
'coordinate.transpose': import("./runtime").CoordinateComponent<import("./coordinate").TransposeOptions>;
|
|
214
|
+
'coordinate.theta': import("./runtime").CoordinateComponent<import("./spec").ThetaCoordinate>;
|
|
215
|
+
'coordinate.parallel': import("./runtime").CoordinateComponent<import("./coordinate").ParallelOptions>;
|
|
216
|
+
'coordinate.fisheye': import("./runtime").CoordinateComponent<import("./spec").FisheyeCoordinate>;
|
|
217
|
+
'coordinate.radial': import("./runtime").CoordinateComponent<import("./coordinate").RadialOptions>;
|
|
218
|
+
'coordinate.radar': import("./runtime").CoordinateComponent<import("./spec").RadarCoordinate>;
|
|
219
|
+
'encode.constant': import("./runtime").EncodeComponent<import("./encode").ConstantOptions>;
|
|
220
|
+
'encode.field': import("./runtime").EncodeComponent<import("./encode").FieldOptions>;
|
|
221
|
+
'encode.transform': import("./runtime").EncodeComponent<import("./encode").TransformOptions>;
|
|
222
|
+
'encode.column': import("./runtime").EncodeComponent<import("./encode").ColumnOptions>;
|
|
223
|
+
'mark.interval': import("./runtime").MarkComponent<import("./mark").IntervalOptions>;
|
|
224
|
+
'mark.rect': import("./runtime").MarkComponent<import("./mark").RectOptions>;
|
|
225
|
+
'mark.line': import("./runtime").MarkComponent<import("./mark").LineOptions>;
|
|
226
|
+
'mark.point': import("./runtime").MarkComponent<import("./mark").PointOptions>;
|
|
227
|
+
'mark.text': import("./runtime").MarkComponent<import("./mark").TextOptions>;
|
|
228
|
+
'mark.cell': import("./runtime").MarkComponent<import("./mark").CellOptions>;
|
|
229
|
+
'mark.area': import("./runtime").MarkComponent<import("./mark").AreaOptions>;
|
|
230
|
+
'mark.link': import("./runtime").MarkComponent<import("./mark").LinkOptions>;
|
|
231
|
+
'mark.image': import("./runtime").MarkComponent<import("./mark").ImageOptions>;
|
|
232
|
+
'mark.polygon': import("./runtime").MarkComponent<import("./mark").PolygonOptions>;
|
|
233
|
+
'mark.box': import("./runtime").MarkComponent<import("./mark").BoxOptions>;
|
|
234
|
+
'mark.vector': import("./runtime").MarkComponent<import("./mark").VectorOptions>;
|
|
235
|
+
'mark.lineX': import("./runtime").MarkComponent<import("./mark").LineXOptions>;
|
|
236
|
+
'mark.lineY': import("./runtime").MarkComponent<import("./mark").LineYOptions>;
|
|
237
|
+
'mark.connector': import("./runtime").MarkComponent<import("./mark").ConnectorOptions>;
|
|
238
|
+
'mark.range': import("./runtime").MarkComponent<import("./mark").RangeOptions>;
|
|
239
|
+
'mark.rangeX': import("./runtime").MarkComponent<import("./mark").RangeXOptions>;
|
|
240
|
+
'mark.rangeY': import("./runtime").MarkComponent<import("./mark").RangeYOptions>;
|
|
241
|
+
'mark.path': import("./runtime").MarkComponent<import("./mark/path").PathOptions>;
|
|
242
|
+
'mark.shape': import("./runtime").MarkComponent<import("./mark").ShapeOptions>;
|
|
243
|
+
'mark.density': import("./runtime").MarkComponent<import("./mark").DensityOptions>;
|
|
244
|
+
'mark.heatmap': import("./runtime").MarkComponent<import("./mark").HeatmapOptions>;
|
|
245
|
+
'palette.category10': import("./runtime").PaletteComponent<import("./palette").Category10Options>;
|
|
246
|
+
'palette.category20': import("./runtime").PaletteComponent<import("./palette").Category20Options>;
|
|
247
|
+
'scale.linear': import("./runtime").ScaleComponent<import("./scale").LinearOptions>;
|
|
248
|
+
'scale.ordinal': import("./runtime").ScaleComponent<import("./scale").OrdinalOptions>;
|
|
249
|
+
'scale.band': import("./runtime").ScaleComponent<import("./scale").BandOptions>;
|
|
250
|
+
'scale.identity': import("./runtime").ScaleComponent<import("./scale").IdentityOptions>;
|
|
251
|
+
'scale.point': import("./runtime").ScaleComponent<import("./scale").PointOptions>;
|
|
252
|
+
'scale.time': import("./runtime").ScaleComponent<import("./scale").TimeOptions>;
|
|
253
|
+
'scale.log': import("./runtime").ScaleComponent<import("./scale").LogOptions>;
|
|
254
|
+
'scale.pow': import("./runtime").ScaleComponent<import("./scale").PowOptions>;
|
|
255
|
+
'scale.sqrt': import("./runtime").ScaleComponent<import("./scale").SqrtOptions>;
|
|
256
|
+
'scale.threshold': import("./runtime").ScaleComponent<import("./scale").ThresholdOptions>;
|
|
257
|
+
'scale.quantile': import("./runtime").ScaleComponent<import("./scale").QuantileOptions>;
|
|
258
|
+
'scale.quantize': import("./runtime").ScaleComponent<import("./scale").QuantizeOptions>;
|
|
259
|
+
'scale.sequential': import("./runtime").ScaleComponent<import("./scale").SequentialOptions>;
|
|
260
|
+
'scale.constant': import("./runtime").ScaleComponent<import("./scale").ConstantOptions>;
|
|
261
|
+
'theme.classic': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
262
|
+
'theme.classicDark': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
263
|
+
'theme.academy': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
264
|
+
'theme.light': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
265
|
+
'theme.dark': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
|
|
266
|
+
'component.axisX': import("./runtime").GuideComponentComponent<import("./component/axis").AxisOptions>;
|
|
267
|
+
'component.axisY': import("./runtime").GuideComponentComponent<import("./component/axis").AxisOptions>;
|
|
268
|
+
'component.legendCategory': import("./runtime").GuideComponentComponent<import("./component").LegendCategoryOptions>;
|
|
269
|
+
'component.legendContinuous': import("./runtime").GuideComponentComponent<import("./component").LegendContinuousOptions>;
|
|
270
|
+
'component.legends': import("./runtime").GuideComponentComponent<import("./component").LegendsOptions>;
|
|
271
|
+
'component.title': import("./runtime").GuideComponentComponent<import("./runtime").G2Title>;
|
|
272
|
+
'component.sliderX': import("./runtime").GuideComponentComponent<import("./component/slider").SliderOptions>;
|
|
273
|
+
'component.sliderY': import("./runtime").GuideComponentComponent<import("./component/slider").SliderOptions>;
|
|
274
|
+
'component.scrollbarX': import("./runtime").GuideComponentComponent<import("./component/scrollbar").ScrollbarOptions>;
|
|
275
|
+
'component.scrollbarY': import("./runtime").GuideComponentComponent<import("./component/scrollbar").ScrollbarOptions>;
|
|
276
|
+
'animation.scaleInX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
277
|
+
'animation.scaleOutX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
278
|
+
'animation.scaleInY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
279
|
+
'animation.scaleOutY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
280
|
+
'animation.waveIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
281
|
+
'animation.fadeIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
282
|
+
'animation.fadeOut': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
283
|
+
'animation.zoomIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
284
|
+
'animation.zoomOut': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
285
|
+
'animation.pathIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
286
|
+
'animation.morphing': import("./runtime").AnimationComponent<import("./animation").MorphingOptions>;
|
|
287
|
+
'animation.growInX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
288
|
+
'animation.growInY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
|
|
289
|
+
'interaction.elementHighlight': typeof import("./interaction").ElementHighlight;
|
|
290
|
+
'interaction.elementHighlightByX': typeof import("./interaction").ElementHighlightByX;
|
|
291
|
+
'interaction.elementHighlightByColor': typeof import("./interaction").ElementHighlightByColor;
|
|
292
|
+
'interaction.elementSelect': typeof import("./interaction").ElementSelect;
|
|
293
|
+
'interaction.elementSelectByX': typeof import("./interaction").ElementSelectByX;
|
|
294
|
+
'interaction.elementSelectByColor': typeof import("./interaction").ElementSelectByColor;
|
|
295
|
+
'interaction.fisheye': typeof import("./interaction").Fisheye;
|
|
296
|
+
'interaction.chartIndex': typeof import("./interaction").ChartIndex;
|
|
297
|
+
'interaction.tooltip': typeof import("./interaction").Tooltip;
|
|
298
|
+
'interaction.legendFilter': typeof import("./interaction").LegendFilter;
|
|
299
|
+
'interaction.legendHighlight': typeof import("./interaction").LegendHighlight;
|
|
300
|
+
'interaction.brushHighlight': typeof import("./interaction").BrushHighlight;
|
|
301
|
+
'interaction.brushXHighlight': typeof import("./interaction").BrushXHighlight;
|
|
302
|
+
'interaction.brushYHighlight': typeof import("./interaction").BrushYHighlight;
|
|
303
|
+
'interaction.brushAxisHighlight': typeof import("./interaction").BrushAxisHighlight;
|
|
304
|
+
'interaction.brushFilter': typeof import("./interaction").BrushFilter;
|
|
305
|
+
'interaction.brushXFilter': typeof import("./interaction").BrushXFilter;
|
|
306
|
+
'interaction.brushYFilter': typeof import("./interaction").BrushYFilter;
|
|
307
|
+
'interaction.sliderFilter': typeof import("./interaction").SliderFilter;
|
|
308
|
+
'interaction.scrollbarFilter': typeof import("./interaction").ScrollbarFilter;
|
|
309
|
+
'interaction.poptip': typeof import("./interaction").Poptip;
|
|
310
|
+
'composition.spaceLayer': import("./runtime").CompositionComponent<import("./composition").SpaceLayerOptions>;
|
|
311
|
+
'composition.spaceFlex': import("./runtime").CompositionComponent<import("./composition").SpaceFlexOptions>;
|
|
312
|
+
'composition.facetRect': import("./runtime").CompositionComponent<import("./composition").FacetRectOptions>;
|
|
313
|
+
'composition.repeatMatrix': import("./runtime").CompositionComponent<import("./spec").RepeatMatrixComposition>;
|
|
314
|
+
'composition.facetCircle': import("./runtime").CompositionComponent<import("./spec").FacetCircleComposition>;
|
|
315
|
+
'composition.timingKeyframe': import("./runtime").CompositionComponent<import("./composition").TimingKeyframeOptions>;
|
|
316
|
+
'labelTransform.overlapHide': import("./runtime").LabelTransformComponent<import("./label-transform").OverlapHideOptions>;
|
|
317
|
+
'labelTransform.overlapDodgeY': import("./runtime").LabelTransformComponent<import("./label-transform").OverlapDodgeYOptions>;
|
|
318
|
+
'labelTransform.overflowHide': import("./runtime").LabelTransformComponent<import("./label-transform").OverflowHideOptions>;
|
|
319
|
+
'labelTransform.contrastReverse': import("./runtime").LabelTransformComponent<import("./label-transform").ContrastReverseOptions>;
|
|
320
|
+
'data.venn': import("./runtime").DataComponent<import("./data").VennOptions>;
|
|
321
|
+
'mark.boxplot': import("./runtime").CompositeMarkComponent<import("./mark/boxplot").BoxPlotOptions>;
|
|
322
|
+
'mark.gauge': import("./runtime").CompositeMarkComponent<import("./mark").GaugeOptions>;
|
|
323
|
+
'mark.wordCloud': import("./runtime").CompositeMarkComponent<import("./mark").WordCloudOptions>;
|
|
324
|
+
'mark.liquid': import("./runtime").CompositeMarkComponent<import("./mark").LiquidOptions>;
|
|
325
|
+
'data.arc': import("./runtime").DataComponent<import("./data").ArcOptions>;
|
|
326
|
+
'data.cluster': import("./runtime").DataComponent<import("./data").ClusterOptions>;
|
|
327
|
+
'mark.forceGraph': import("./runtime").CompositeMarkComponent<import("./mark").ForceGraphOptions>;
|
|
328
|
+
'mark.tree': import("./runtime").CompositeMarkComponent<import("./mark").TreeOptions>;
|
|
329
|
+
'mark.pack': import("./runtime").CompositionComponent<import("./mark").PackOptions>;
|
|
330
|
+
'mark.sankey': import("./runtime").CompositeMarkComponent<import("./mark").SankeyOptions>;
|
|
331
|
+
'mark.treemap': import("./runtime").CompositionComponent<import("./mark").TreemapOptions>;
|
|
332
|
+
'composition.geoView': import("./runtime").CompositionComponent<import("./composition/geoView").GeoViewOptions>;
|
|
333
|
+
'composition.geoPath': import("./runtime").CompositionComponent<import("./composition/geoPath").GeoPathOptions>;
|
|
334
|
+
}>;
|
|
335
|
+
export interface Chart extends API<G2Spec, typeof library> {
|
|
336
|
+
}
|
|
337
|
+
export interface CompositionNode extends CompositionAPI<typeof library> {
|
|
338
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -14,36 +14,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
19
|
-
g_1.runtime.enableCSSParsing = false;
|
|
20
|
-
var runtime_1 = require("./runtime");
|
|
21
|
-
Object.defineProperty(exports, "render", { enumerable: true, get: function () { return runtime_1.render; } });
|
|
22
|
-
Object.defineProperty(exports, "renderToMountedElement", { enumerable: true, get: function () { return runtime_1.renderToMountedElement; } });
|
|
23
|
-
Object.defineProperty(exports, "MAIN_LAYER_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.MAIN_LAYER_CLASS_NAME; } });
|
|
24
|
-
Object.defineProperty(exports, "LABEL_LAYER_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.LABEL_LAYER_CLASS_NAME; } });
|
|
25
|
-
Object.defineProperty(exports, "ELEMENT_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.ELEMENT_CLASS_NAME; } });
|
|
26
|
-
Object.defineProperty(exports, "VIEW_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.VIEW_CLASS_NAME; } });
|
|
27
|
-
Object.defineProperty(exports, "PLOT_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.PLOT_CLASS_NAME; } });
|
|
28
|
-
Object.defineProperty(exports, "COMPONENT_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.COMPONENT_CLASS_NAME; } });
|
|
29
|
-
Object.defineProperty(exports, "LABEL_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.LABEL_CLASS_NAME; } });
|
|
30
|
-
Object.defineProperty(exports, "AREA_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.AREA_CLASS_NAME; } });
|
|
31
|
-
Object.defineProperty(exports, "MASK_CLASS_NAME", { enumerable: true, get: function () { return runtime_1.MASK_CLASS_NAME; } });
|
|
32
|
-
var lib_1 = require("./lib");
|
|
17
|
+
exports.Chart = exports.threedlib = exports.stdlib = exports.geolib = exports.graphlib = exports.plotlib = exports.corelib = void 0;
|
|
18
|
+
const lib_1 = require("./lib");
|
|
33
19
|
Object.defineProperty(exports, "corelib", { enumerable: true, get: function () { return lib_1.corelib; } });
|
|
34
|
-
Object.defineProperty(exports, "stdlib", { enumerable: true, get: function () { return lib_1.stdlib; } });
|
|
35
|
-
Object.defineProperty(exports, "litelib", { enumerable: true, get: function () { return lib_1.litelib; } });
|
|
36
|
-
Object.defineProperty(exports, "graphlib", { enumerable: true, get: function () { return lib_1.graphlib; } });
|
|
37
20
|
Object.defineProperty(exports, "plotlib", { enumerable: true, get: function () { return lib_1.plotlib; } });
|
|
21
|
+
Object.defineProperty(exports, "graphlib", { enumerable: true, get: function () { return lib_1.graphlib; } });
|
|
38
22
|
Object.defineProperty(exports, "geolib", { enumerable: true, get: function () { return lib_1.geolib; } });
|
|
23
|
+
Object.defineProperty(exports, "stdlib", { enumerable: true, get: function () { return lib_1.stdlib; } });
|
|
39
24
|
Object.defineProperty(exports, "threedlib", { enumerable: true, get: function () { return lib_1.threedlib; } });
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Object.
|
|
46
|
-
|
|
47
|
-
Object.defineProperty(exports, "ChartEvent", { enumerable: true, get: function () { return event_1.ChartEvent; } });
|
|
48
|
-
__exportStar(require("./spec"), exports);
|
|
25
|
+
const api_1 = require("./api");
|
|
26
|
+
__exportStar(require("./exports"), exports);
|
|
27
|
+
/**
|
|
28
|
+
* G2 standard library initial all the libs except 3D and auto.
|
|
29
|
+
*/
|
|
30
|
+
const library = Object.assign({}, (0, lib_1.stdlib)());
|
|
31
|
+
exports.Chart = (0, api_1.extend)(api_1.Runtime, library);
|
|
49
32
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+BAA8E;AAKrE,wFALA,aAAO,OAKA;AAAE,wFALA,aAAO,OAKA;AAAE,yFALA,cAAQ,OAKA;AAAE,uFALA,YAAM,OAKA;AAAE,uFALA,YAAM,OAKA;AAAE,0FALA,eAAS,OAKA;AAJ9D,+BAAwC;AAMxC,4CAA0B;AAE1B;;GAEG;AACH,MAAM,OAAO,qBAAQ,IAAA,YAAM,GAAE,CAAE,CAAC;AAEnB,QAAA,KAAK,GAAG,IAAA,YAAM,EAAC,aAAO,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -32,7 +32,9 @@ function Fisheye({ wait = 30, leading, trailing = false, }) {
|
|
|
32
32
|
setState('fisheye', (options) => {
|
|
33
33
|
// Clone options and mutate it.
|
|
34
34
|
// Disable animation.
|
|
35
|
-
const clonedOptions = (0, util_1.deepMix)({}, options
|
|
35
|
+
const clonedOptions = (0, util_1.deepMix)({}, options, {
|
|
36
|
+
interaction: { tooltip: { preserve: true } },
|
|
37
|
+
});
|
|
36
38
|
for (const mark of clonedOptions.marks)
|
|
37
39
|
mark.animate = false;
|
|
38
40
|
const [x, y] = focus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fisheye.js","sourceRoot":"src/","sources":["interaction/fisheye.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAC/C,mCAAwD;AAExD,SAAS,eAAe,CAAC,OAAO;IAC9B,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,UAAU,CAAC;IACtC,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IAC5D,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC;IAC5B,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IACvC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;IAChC,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;GAEG;AACH,SAAgB,OAAO,CAAC,EACtB,IAAI,GAAG,EAAE,EACT,OAAO,EACP,QAAQ,GAAG,KAAK,GACI;IACpB,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;QACzD,MAAM,QAAQ,GAAG,IAAA,sBAAc,EAAC,SAAS,CAAC,CAAC;QAE3C,MAAM,WAAW,GAAG,IAAA,eAAQ,EAC1B,C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,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAEvD,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;YAC1D,QAAQ,CAAC,mBAAmB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;YACzD,QAAQ,CAAC,mBAAmB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAC5D,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAhDD,0BAgDC"}
|
|
@@ -10,4 +10,4 @@ export declare function legendsOf(root: any): any;
|
|
|
10
10
|
export declare function legendsContinuousOf(root: any): any;
|
|
11
11
|
export declare function dataOf(root: any): any;
|
|
12
12
|
export declare function attributesOf(root: any): any;
|
|
13
|
-
export declare function LegendFilter(): (context: any,
|
|
13
|
+
export declare function LegendFilter(): (context: any, contexts: any, emitter: any) => () => void;
|