@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/lib/component/slider.js
CHANGED
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.Slider = void 0;
|
|
15
|
-
const
|
|
15
|
+
const component_1 = require("@antv/component");
|
|
16
16
|
const d3_format_1 = require("d3-format");
|
|
17
17
|
const coordinate_1 = require("../utils/coordinate");
|
|
18
18
|
const scale_1 = require("../utils/scale");
|
|
@@ -46,7 +46,7 @@ const Slider = (options) => {
|
|
|
46
46
|
const reverse = (0, coordinate_1.isTranspose)(coordinate) && isHorizontal;
|
|
47
47
|
const { trackSize = sliderTheme.trackSize } = style;
|
|
48
48
|
const [x0, y0] = inferPosition(bbox, position, trackSize);
|
|
49
|
-
return new
|
|
49
|
+
return new component_1.Slider({
|
|
50
50
|
className: 'slider',
|
|
51
51
|
style: Object.assign({}, sliderTheme, Object.assign(Object.assign({ x: x0, y: y0, trackLength: isHorizontal ? width : height, orientation, formatter: (v) => {
|
|
52
52
|
const f = formatter || defaultFormatter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.js","sourceRoot":"src/","sources":["component/slider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"slider.js","sourceRoot":"src/","sources":["component/slider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+CAA4D;AAC5D,yCAAmC;AAEnC,oDAAkD;AAElD,0CAAwC;AAOxC,SAAS,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS;IAC9C,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACrC,IAAI,QAAQ,KAAK,MAAM;QAAE,OAAO,CAAC,CAAC,GAAG,KAAK,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;IAC3D,IAAI,QAAQ,KAAK,OAAO;QAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxC,IAAI,QAAQ,KAAK,QAAQ;QAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACzC,IAAI,QAAQ,KAAK,KAAK;QAAE,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAC7D,CAAC;AAED;;GAEG;AACI,MAAM,MAAM,GAAuB,CAAC,OAAO,EAAE,EAAE;IACpD,oBAAoB;IACpB,MAAM,EACJ,WAAW,EACX,cAAc,EACd,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,QAAQ,KAEN,OAAO,EADN,IAAI,UACL,OAAO,EAPL,8DAOL,CAAU,CAAC;IAEZ,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE;;QACvD,MAAM,EAAE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AAE,EAAE,IAAI,CAAC,CAAC;oBACrC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;gBACjB,CAAC,IACE,KAAK,GACL,IAAI,EACP;SACH,CAA6B,CAAC;IACjC,CAAC,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,MAAM,UA4CjB;AAEF,cAAM,CAAC,KAAK,GAAG;IACb,eAAe,EAAE,QAAQ;IACzB,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,CAAC;IACf,mBAAmB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IAC7B,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACzB,CAAC"}
|
package/lib/component/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomElement, Group } from '@antv/g';
|
|
2
|
-
import { Layout } from '@antv/
|
|
2
|
+
import { Layout } from '@antv/component';
|
|
3
3
|
import { FlexLayout, GuideComponentComponent, GuideComponentOrientation, GuideComponentPosition, Scale } from '../runtime';
|
|
4
4
|
import { G2Element, Selection } from '../utils/selection';
|
|
5
5
|
type Descriptor<T> = {
|
package/lib/component/utils.js
CHANGED
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.adaptor = exports.domainOf = exports.inferComponentShape = exports.isVertical = exports.isHorizontal = exports.scaleOf = exports.LegendCategoryLayout = exports.G2Layout = exports.inferComponentLayout = exports.titleContent = exports.maybeAppend = exports.createComponent = void 0;
|
|
15
15
|
const g_1 = require("@antv/g");
|
|
16
|
-
const
|
|
16
|
+
const component_1 = require("@antv/component");
|
|
17
17
|
const util_1 = require("@antv/util");
|
|
18
18
|
const selection_1 = require("../utils/selection");
|
|
19
19
|
function createComponent(descriptor) {
|
|
@@ -68,7 +68,7 @@ function inferComponentLayout(position, userDefinitions) {
|
|
|
68
68
|
alignItems }, userDefinitions);
|
|
69
69
|
}
|
|
70
70
|
exports.inferComponentLayout = inferComponentLayout;
|
|
71
|
-
class G2Layout extends
|
|
71
|
+
class G2Layout extends component_1.Layout {
|
|
72
72
|
get child() {
|
|
73
73
|
var _a;
|
|
74
74
|
return (_a = this.children) === null || _a === void 0 ? void 0 : _a[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"src/","sources":["component/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+BAAoE;AACpE
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"src/","sources":["component/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+BAAoE;AACpE,+CAAyC;AACzC,qCAAiD;AAQjD,kDAAkE;AAMlE,SAAgB,eAAe,CAAI,UAAyB;IAC1D,OAAO,KAAM,SAAQ,iBAAgB;QAGnC,YAAY,MAA8B;YACxC,KAAK,CAAC,MAAM,CAAC,CAAC;YACd,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC/B,CAAC;QAED,iBAAiB;;YACf,MAAA,MAAA,IAAI,CAAC,UAAU,EAAC,MAAM,mDAAG,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAClD,CAAC;QAEM,MAAM,CAAC,GAAG,GAAG,EAAE;;YACpB,IAAI,CAAC,IAAI,CAAC,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC;YAC7C,MAAA,MAAA,IAAI,CAAC,UAAU,EAAC,MAAM,mDAAG,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAClD,CAAC;KACF,CAAC;AACJ,CAAC;AAlBD,0CAkBC;AAED,SAAgB,WAAW,CACzB,MAAa,EACb,QAAgB,EAChB,IAAkD;IAElD,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE;QACnC,OAAO,IAAA,kBAAM,EAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,C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ACX,OAAO;QACP,MAAM;QACN,MAAM;QACN,KAAK;QACL,OAAO;QACP,OAAO;KACR,CAAC;IACF,aAAa;IACb,MAAM,EAAE,KAAK,EAAE,MAAM,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAlC,SAA0B,CAAQ,CAAC;IACzC,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC5C,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,UAAU,CAAC,OAAO,IAAA,iBAAU,EAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC;SAC9C;;YAAM,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACjC,CAAC,CAAC,CAAC;IACH,uCACK,UAAU,GACV,MAAM,EACT;AACJ,CAAC;AA3BD,0BA2BC"}
|
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"}
|
|
@@ -15,7 +15,7 @@ exports.Tooltip = exports.tooltip = exports.seriesTooltip = void 0;
|
|
|
15
15
|
const g_1 = require("@antv/g");
|
|
16
16
|
const d3_array_1 = require("d3-array");
|
|
17
17
|
const util_1 = require("@antv/util");
|
|
18
|
-
const
|
|
18
|
+
const component_1 = require("@antv/component");
|
|
19
19
|
const scale_1 = require("@antv/scale");
|
|
20
20
|
const helper_1 = require("../utils/helper");
|
|
21
21
|
const coordinate_1 = require("../utils/coordinate");
|
|
@@ -56,7 +56,7 @@ function createTooltip(container, x0, y0, position, enterable, bounding, contain
|
|
|
56
56
|
'text-overflow': 'ellipsis',
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
|
-
const tooltipElement = new
|
|
59
|
+
const tooltipElement = new component_1.Tooltip({
|
|
60
60
|
className: 'tooltip',
|
|
61
61
|
style: {
|
|
62
62
|
x: x0,
|
|
@@ -612,7 +612,6 @@ single = true, position, enterable, datum, view, mount, bounding, theme, shared
|
|
|
612
612
|
root.removeEventListener('pointermove', pointerover);
|
|
613
613
|
root.removeEventListener('pointerout', pointerout);
|
|
614
614
|
}
|
|
615
|
-
destroyTooltip({ root, single });
|
|
616
615
|
};
|
|
617
616
|
const onTooltipShow = ({ nativeEvent, data }) => {
|
|
618
617
|
if (nativeEvent)
|