@antv/g2 5.1.6 → 5.1.8-beta.1
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/README.md +2 -2
- package/README.zh-CN.md +1 -1
- package/dist/g2.full.min.js +1 -1
- package/dist/g2.lite.min.js +1 -1
- package/dist/g2.min.js +1 -1
- package/esm/animation/growInX.js +0 -4
- package/esm/animation/growInX.js.map +1 -1
- package/esm/animation/growInY.js +0 -4
- package/esm/animation/growInY.js.map +1 -1
- package/esm/animation/scaleInX.js +5 -7
- package/esm/animation/scaleInX.js.map +1 -1
- package/esm/animation/scaleInY.js +5 -7
- package/esm/animation/scaleInY.js.map +1 -1
- package/esm/animation/scaleOutX.js +5 -7
- package/esm/animation/scaleOutX.js.map +1 -1
- package/esm/animation/scaleOutY.js +5 -7
- package/esm/animation/scaleOutY.js.map +1 -1
- package/esm/animation/zoomIn.js +4 -5
- package/esm/animation/zoomIn.js.map +1 -1
- package/esm/animation/zoomOut.js +4 -6
- package/esm/animation/zoomOut.js.map +1 -1
- package/esm/component/axis.js +1 -5
- package/esm/component/axis.js.map +1 -1
- package/esm/component/index.d.ts +0 -1
- package/esm/component/index.js +0 -1
- package/esm/component/index.js.map +1 -1
- package/esm/component/legendContinuous.js +1 -1
- package/esm/component/legendContinuous.js.map +1 -1
- package/esm/coordinate/index.d.ts +0 -2
- package/esm/coordinate/index.js +0 -1
- package/esm/coordinate/index.js.map +1 -1
- package/esm/exports.d.ts +6 -1
- package/esm/exports.js +4 -0
- package/esm/exports.js.map +1 -1
- package/esm/index.d.ts +114 -114
- package/esm/index.js +2 -2
- package/esm/index.js.map +1 -1
- package/esm/lib/builtinlib.d.ts +7 -7
- package/esm/lib/core.d.ts +32 -32
- package/esm/lib/index.d.ts +0 -2
- package/esm/lib/index.js +0 -2
- package/esm/lib/index.js.map +1 -1
- package/esm/lib/lite.d.ts +18 -18
- package/esm/lib/std.d.ts +56 -56
- package/esm/mark/index.d.ts +0 -4
- package/esm/mark/index.js +0 -4
- package/esm/mark/index.js.map +1 -1
- package/esm/mark/liquid.js +2 -1
- package/esm/mark/liquid.js.map +1 -1
- package/esm/runtime/component.js +1 -3
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/types/component.d.ts +1 -6
- package/esm/shape/index.d.ts +0 -4
- package/esm/shape/index.js +0 -4
- package/esm/shape/index.js.map +1 -1
- package/esm/shape/interval/color.d.ts +4 -0
- package/esm/shape/interval/color.js +10 -7
- package/esm/shape/interval/color.js.map +1 -1
- package/esm/shape/interval/rect.d.ts +4 -0
- package/esm/shape/interval/rect.js.map +1 -1
- package/esm/shape/line/smooth.js +8 -4
- package/esm/shape/line/smooth.js.map +1 -1
- package/esm/spec/coordinate.d.ts +1 -4
- package/esm/spec/mark.d.ts +1 -3
- package/esm/theme/create.d.ts +1 -0
- package/esm/theme/create.js +1 -0
- package/esm/theme/create.js.map +1 -1
- package/esm/transform/filter.js +3 -1
- package/esm/transform/filter.js.map +1 -1
- package/esm/transform/maybeTitle.js +6 -1
- package/esm/transform/maybeTitle.js.map +1 -1
- package/esm/utils/dateFormat.d.ts +1 -0
- package/esm/utils/dateFormat.js +18 -0
- package/esm/utils/dateFormat.js.map +1 -0
- package/esm/utils/number.d.ts +4 -0
- package/esm/utils/number.js +8 -0
- package/esm/utils/number.js.map +1 -1
- package/lib/animation/growInX.js +0 -4
- package/lib/animation/growInX.js.map +1 -1
- package/lib/animation/growInY.js +0 -4
- package/lib/animation/growInY.js.map +1 -1
- package/lib/animation/scaleInX.js +5 -7
- package/lib/animation/scaleInX.js.map +1 -1
- package/lib/animation/scaleInY.js +5 -7
- package/lib/animation/scaleInY.js.map +1 -1
- package/lib/animation/scaleOutX.js +5 -7
- package/lib/animation/scaleOutX.js.map +1 -1
- package/lib/animation/scaleOutY.js +5 -7
- package/lib/animation/scaleOutY.js.map +1 -1
- package/lib/animation/zoomIn.js +4 -5
- package/lib/animation/zoomIn.js.map +1 -1
- package/lib/animation/zoomOut.js +4 -6
- package/lib/animation/zoomOut.js.map +1 -1
- package/lib/component/axis.js +3 -7
- package/lib/component/axis.js.map +1 -1
- package/lib/component/index.d.ts +0 -1
- package/lib/component/index.js +1 -3
- package/lib/component/index.js.map +1 -1
- package/lib/component/legendContinuous.js +1 -1
- package/lib/component/legendContinuous.js.map +1 -1
- package/lib/coordinate/index.d.ts +0 -2
- package/lib/coordinate/index.js +1 -3
- package/lib/coordinate/index.js.map +1 -1
- package/lib/exports.d.ts +6 -1
- package/lib/exports.js +13 -1
- package/lib/exports.js.map +1 -1
- package/lib/index.d.ts +114 -114
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/lib/builtinlib.d.ts +7 -7
- package/lib/lib/core.d.ts +32 -32
- package/lib/lib/index.d.ts +0 -2
- package/lib/lib/index.js +1 -5
- package/lib/lib/index.js.map +1 -1
- package/lib/lib/lite.d.ts +18 -18
- package/lib/lib/std.d.ts +56 -56
- package/lib/mark/index.d.ts +0 -4
- package/lib/mark/index.js +1 -9
- package/lib/mark/index.js.map +1 -1
- package/lib/mark/liquid.js +2 -1
- package/lib/mark/liquid.js.map +1 -1
- package/lib/runtime/component.js +2 -4
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/types/component.d.ts +1 -6
- package/lib/shape/index.d.ts +0 -4
- package/lib/shape/index.js +6 -14
- package/lib/shape/index.js.map +1 -1
- package/lib/shape/interval/color.d.ts +4 -0
- package/lib/shape/interval/color.js +10 -7
- package/lib/shape/interval/color.js.map +1 -1
- package/lib/shape/interval/rect.d.ts +4 -0
- package/lib/shape/interval/rect.js.map +1 -1
- package/lib/shape/line/smooth.js +6 -2
- package/lib/shape/line/smooth.js.map +1 -1
- package/lib/spec/coordinate.d.ts +1 -4
- package/lib/spec/mark.d.ts +1 -3
- package/lib/theme/create.d.ts +1 -0
- package/lib/theme/create.js +1 -0
- package/lib/theme/create.js.map +1 -1
- package/lib/transform/filter.js +3 -1
- package/lib/transform/filter.js.map +1 -1
- package/lib/transform/maybeTitle.js +6 -1
- package/lib/transform/maybeTitle.js.map +1 -1
- package/lib/utils/dateFormat.d.ts +1 -0
- package/lib/utils/dateFormat.js +22 -0
- package/lib/utils/dateFormat.js.map +1 -0
- package/lib/utils/number.d.ts +4 -0
- package/lib/utils/number.js +10 -1
- package/lib/utils/number.js.map +1 -1
- package/package.json +10 -17
- package/src/animation/growInX.ts +1 -6
- package/src/animation/growInY.ts +1 -6
- package/src/animation/scaleInX.ts +8 -11
- package/src/animation/scaleInY.ts +8 -11
- package/src/animation/scaleOutX.ts +8 -11
- package/src/animation/scaleOutY.ts +8 -11
- package/src/animation/zoomIn.ts +4 -6
- package/src/animation/zoomOut.ts +4 -7
- package/src/component/axis.ts +1 -5
- package/src/component/index.ts +0 -1
- package/src/component/legendContinuous.ts +1 -1
- package/src/coordinate/index.ts +0 -2
- package/src/exports.ts +18 -2
- package/src/index.ts +2 -2
- package/src/lib/index.ts +0 -2
- package/src/mark/index.ts +0 -4
- package/src/mark/liquid.ts +2 -1
- package/src/runtime/component.ts +1 -4
- package/src/runtime/types/component.ts +2 -9
- package/src/shape/index.ts +0 -4
- package/src/shape/interval/color.ts +16 -4
- package/src/shape/interval/rect.ts +5 -0
- package/src/shape/line/smooth.ts +12 -4
- package/src/spec/coordinate.ts +0 -5
- package/src/spec/mark.ts +0 -3
- package/src/theme/create.ts +1 -0
- package/src/transform/filter.ts +3 -1
- package/src/transform/maybeTitle.ts +8 -1
- package/src/utils/dateFormat.ts +22 -0
- package/src/utils/number.ts +8 -0
- package/CHANGELOG.md +0 -417
- package/esm/component/axisZ.d.ts +0 -8
- package/esm/component/axisZ.js +0 -14
- package/esm/component/axisZ.js.map +0 -1
- package/esm/coordinate/cartesian3D.d.ts +0 -7
- package/esm/coordinate/cartesian3D.js +0 -6
- package/esm/coordinate/cartesian3D.js.map +0 -1
- package/esm/lib/auto.d.ts +0 -3
- package/esm/lib/auto.js +0 -7
- package/esm/lib/auto.js.map +0 -1
- package/esm/lib/threed.d.ts +0 -7
- package/esm/lib/threed.js +0 -13
- package/esm/lib/threed.js.map +0 -1
- package/esm/mark/auto.d.ts +0 -1
- package/esm/mark/auto.js +0 -26
- package/esm/mark/auto.js.map +0 -1
- package/esm/mark/interval3D.d.ts +0 -8
- package/esm/mark/interval3D.js +0 -65
- package/esm/mark/interval3D.js.map +0 -1
- package/esm/mark/line3D.d.ts +0 -7
- package/esm/mark/line3D.js +0 -65
- package/esm/mark/line3D.js.map +0 -1
- package/esm/mark/point3D.d.ts +0 -9
- package/esm/mark/point3D.js +0 -76
- package/esm/mark/point3D.js.map +0 -1
- package/esm/shape/interval3D/cube.d.ts +0 -6
- package/esm/shape/interval3D/cube.js +0 -71
- package/esm/shape/interval3D/cube.js.map +0 -1
- package/esm/shape/line3D/line.d.ts +0 -3
- package/esm/shape/line3D/line.js +0 -30
- package/esm/shape/line3D/line.js.map +0 -1
- package/esm/shape/point3D/cube.d.ts +0 -6
- package/esm/shape/point3D/cube.js +0 -70
- package/esm/shape/point3D/cube.js.map +0 -1
- package/esm/shape/point3D/sphere.d.ts +0 -6
- package/esm/shape/point3D/sphere.js +0 -70
- package/esm/shape/point3D/sphere.js.map +0 -1
- package/lib/component/axisZ.d.ts +0 -8
- package/lib/component/axisZ.js +0 -19
- package/lib/component/axisZ.js.map +0 -1
- package/lib/coordinate/cartesian3D.d.ts +0 -7
- package/lib/coordinate/cartesian3D.js +0 -10
- package/lib/coordinate/cartesian3D.js.map +0 -1
- package/lib/lib/auto.d.ts +0 -3
- package/lib/lib/auto.js +0 -11
- package/lib/lib/auto.js.map +0 -1
- package/lib/lib/threed.d.ts +0 -7
- package/lib/lib/threed.js +0 -17
- package/lib/lib/threed.js.map +0 -1
- package/lib/mark/auto.d.ts +0 -1
- package/lib/mark/auto.js +0 -30
- package/lib/mark/auto.js.map +0 -1
- package/lib/mark/interval3D.d.ts +0 -8
- package/lib/mark/interval3D.js +0 -69
- package/lib/mark/interval3D.js.map +0 -1
- package/lib/mark/line3D.d.ts +0 -7
- package/lib/mark/line3D.js +0 -69
- package/lib/mark/line3D.js.map +0 -1
- package/lib/mark/point3D.d.ts +0 -9
- package/lib/mark/point3D.js +0 -80
- package/lib/mark/point3D.js.map +0 -1
- package/lib/shape/interval3D/cube.d.ts +0 -6
- package/lib/shape/interval3D/cube.js +0 -75
- package/lib/shape/interval3D/cube.js.map +0 -1
- package/lib/shape/line3D/line.d.ts +0 -3
- package/lib/shape/line3D/line.js +0 -34
- package/lib/shape/line3D/line.js.map +0 -1
- package/lib/shape/point3D/cube.d.ts +0 -6
- package/lib/shape/point3D/cube.js +0 -74
- package/lib/shape/point3D/cube.js.map +0 -1
- package/lib/shape/point3D/sphere.d.ts +0 -6
- package/lib/shape/point3D/sphere.js +0 -74
- package/lib/shape/point3D/sphere.js.map +0 -1
- package/src/component/axisZ.ts +0 -25
- package/src/coordinate/cartesian3D.ts +0 -11
- package/src/lib/auto.ts +0 -7
- package/src/lib/threed.ts +0 -13
- package/src/mark/auto.ts +0 -22
- package/src/mark/interval3D.ts +0 -100
- package/src/mark/line3D.ts +0 -81
- package/src/mark/point3D.ts +0 -90
- package/src/shape/interval3D/cube.ts +0 -69
- package/src/shape/line3D/line.ts +0 -29
- package/src/shape/point3D/cube.ts +0 -68
- package/src/shape/point3D/sphere.ts +0 -68
package/lib/index.js
CHANGED
|
@@ -14,14 +14,13 @@ 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.Chart = exports.
|
|
17
|
+
exports.Chart = exports.stdlib = exports.geolib = exports.graphlib = exports.plotlib = exports.corelib = void 0;
|
|
18
18
|
const lib_1 = require("./lib");
|
|
19
19
|
Object.defineProperty(exports, "corelib", { enumerable: true, get: function () { return lib_1.corelib; } });
|
|
20
20
|
Object.defineProperty(exports, "plotlib", { enumerable: true, get: function () { return lib_1.plotlib; } });
|
|
21
21
|
Object.defineProperty(exports, "graphlib", { enumerable: true, get: function () { return lib_1.graphlib; } });
|
|
22
22
|
Object.defineProperty(exports, "geolib", { enumerable: true, get: function () { return lib_1.geolib; } });
|
|
23
23
|
Object.defineProperty(exports, "stdlib", { enumerable: true, get: function () { return lib_1.stdlib; } });
|
|
24
|
-
Object.defineProperty(exports, "threedlib", { enumerable: true, get: function () { return lib_1.threedlib; } });
|
|
25
24
|
const api_1 = require("./api");
|
|
26
25
|
__exportStar(require("./exports"), exports);
|
|
27
26
|
/**
|
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,+BAAmE;AAK1D,wFALA,aAAO,OAKA;AAAE,wFALA,aAAO,OAKA;AAAE,yFALA,cAAQ,OAKA;AAAE,uFALA,YAAM,OAKA;AAAE,uFALA,YAAM,OAKA;AAJnD,+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"}
|
package/lib/lib/builtinlib.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Event } from '../interaction/event';
|
|
2
2
|
export declare function builtinlib(): {
|
|
3
|
-
readonly 'component.axisRadar': import("
|
|
4
|
-
readonly 'component.axisLinear': import("
|
|
5
|
-
readonly 'component.axisArc': import("
|
|
6
|
-
readonly 'component.legendContinuousBlock': import("
|
|
7
|
-
readonly 'component.legendContinuousBlockSize': import("
|
|
8
|
-
readonly 'component.legendContinuousSize': import("
|
|
3
|
+
readonly 'component.axisRadar': import("..").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
|
|
4
|
+
readonly 'component.axisLinear': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
5
|
+
readonly 'component.axisArc': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
6
|
+
readonly 'component.legendContinuousBlock': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
7
|
+
readonly 'component.legendContinuousBlockSize': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
8
|
+
readonly 'component.legendContinuousSize': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
9
9
|
readonly 'interaction.event': typeof Event;
|
|
10
10
|
readonly 'composition.mark': import("../runtime").CompositionComponent<import("../composition").MarkOptions>;
|
|
11
11
|
readonly 'composition.view': import("../runtime").CompositionComponent<import("../composition").ViewOptions>;
|
|
12
|
-
readonly 'shape.label.label': import("
|
|
12
|
+
readonly 'shape.label.label': import("..").ShapeComponent<import("../shape").LabelShapeOptions>;
|
|
13
13
|
};
|
package/lib/lib/core.d.ts
CHANGED
|
@@ -50,28 +50,28 @@ export declare function corelib(): {
|
|
|
50
50
|
readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
|
|
51
51
|
readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
|
|
52
52
|
readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
|
|
53
|
-
readonly 'mark.interval': import("
|
|
54
|
-
readonly 'mark.rect': import("
|
|
55
|
-
readonly 'mark.line': import("
|
|
56
|
-
readonly 'mark.point': import("
|
|
57
|
-
readonly 'mark.text': import("
|
|
58
|
-
readonly 'mark.cell': import("
|
|
59
|
-
readonly 'mark.area': import("
|
|
60
|
-
readonly 'mark.link': import("
|
|
61
|
-
readonly 'mark.image': import("
|
|
62
|
-
readonly 'mark.polygon': import("
|
|
63
|
-
readonly 'mark.box': import("
|
|
64
|
-
readonly 'mark.vector': import("
|
|
65
|
-
readonly 'mark.lineX': import("
|
|
66
|
-
readonly 'mark.lineY': import("
|
|
67
|
-
readonly 'mark.connector': import("
|
|
68
|
-
readonly 'mark.range': import("
|
|
69
|
-
readonly 'mark.rangeX': import("
|
|
70
|
-
readonly 'mark.rangeY': import("
|
|
71
|
-
readonly 'mark.path': import("
|
|
72
|
-
readonly 'mark.shape': import("
|
|
73
|
-
readonly 'mark.density': import("
|
|
74
|
-
readonly 'mark.heatmap': import("
|
|
53
|
+
readonly 'mark.interval': import("..").MarkComponent<import("../mark").IntervalOptions>;
|
|
54
|
+
readonly 'mark.rect': import("..").MarkComponent<import("../mark").RectOptions>;
|
|
55
|
+
readonly 'mark.line': import("..").MarkComponent<import("../mark").LineOptions>;
|
|
56
|
+
readonly 'mark.point': import("..").MarkComponent<import("../mark").PointOptions>;
|
|
57
|
+
readonly 'mark.text': import("..").MarkComponent<import("../mark").TextOptions>;
|
|
58
|
+
readonly 'mark.cell': import("..").MarkComponent<import("../mark").CellOptions>;
|
|
59
|
+
readonly 'mark.area': import("..").MarkComponent<import("../mark").AreaOptions>;
|
|
60
|
+
readonly 'mark.link': import("..").MarkComponent<import("../mark").LinkOptions>;
|
|
61
|
+
readonly 'mark.image': import("..").MarkComponent<import("../mark").ImageOptions>;
|
|
62
|
+
readonly 'mark.polygon': import("..").MarkComponent<import("../mark").PolygonOptions>;
|
|
63
|
+
readonly 'mark.box': import("..").MarkComponent<import("../mark").BoxOptions>;
|
|
64
|
+
readonly 'mark.vector': import("..").MarkComponent<import("../mark").VectorOptions>;
|
|
65
|
+
readonly 'mark.lineX': import("..").MarkComponent<import("../mark").LineXOptions>;
|
|
66
|
+
readonly 'mark.lineY': import("..").MarkComponent<import("../mark").LineYOptions>;
|
|
67
|
+
readonly 'mark.connector': import("..").MarkComponent<import("../mark").ConnectorOptions>;
|
|
68
|
+
readonly 'mark.range': import("..").MarkComponent<import("../mark").RangeOptions>;
|
|
69
|
+
readonly 'mark.rangeX': import("..").MarkComponent<import("../mark").RangeXOptions>;
|
|
70
|
+
readonly 'mark.rangeY': import("..").MarkComponent<import("../mark").RangeYOptions>;
|
|
71
|
+
readonly 'mark.path': import("..").MarkComponent<import("../mark/path").PathOptions>;
|
|
72
|
+
readonly 'mark.shape': import("..").MarkComponent<import("../mark").ShapeOptions>;
|
|
73
|
+
readonly 'mark.density': import("..").MarkComponent<import("../mark").DensityOptions>;
|
|
74
|
+
readonly 'mark.heatmap': import("..").MarkComponent<import("../mark").HeatmapOptions>;
|
|
75
75
|
readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
|
|
76
76
|
readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
|
|
77
77
|
readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
|
|
@@ -93,16 +93,16 @@ export declare function corelib(): {
|
|
|
93
93
|
readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
94
94
|
readonly 'theme.light': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
95
95
|
readonly 'theme.dark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
96
|
-
readonly 'component.axisX': import("
|
|
97
|
-
readonly 'component.axisY': import("
|
|
98
|
-
readonly 'component.legendCategory': import("
|
|
99
|
-
readonly 'component.legendContinuous': import("
|
|
100
|
-
readonly 'component.legends': import("
|
|
101
|
-
readonly 'component.title': import("
|
|
102
|
-
readonly 'component.sliderX': import("
|
|
103
|
-
readonly 'component.sliderY': import("
|
|
104
|
-
readonly 'component.scrollbarX': import("
|
|
105
|
-
readonly 'component.scrollbarY': import("
|
|
96
|
+
readonly 'component.axisX': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
97
|
+
readonly 'component.axisY': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
98
|
+
readonly 'component.legendCategory': import("..").GuideComponentComponent<import("../component").LegendCategoryOptions>;
|
|
99
|
+
readonly 'component.legendContinuous': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
100
|
+
readonly 'component.legends': import("..").GuideComponentComponent<import("../component").LegendsOptions>;
|
|
101
|
+
readonly 'component.title': import("..").GuideComponentComponent<import("../runtime").G2Title>;
|
|
102
|
+
readonly 'component.sliderX': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
103
|
+
readonly 'component.sliderY': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
104
|
+
readonly 'component.scrollbarX': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
105
|
+
readonly 'component.scrollbarY': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
106
106
|
readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
107
107
|
readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
108
108
|
readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
package/lib/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,5 @@ export { corelib } from './core';
|
|
|
2
2
|
export { geolib } from './geo';
|
|
3
3
|
export { graphlib } from './graph';
|
|
4
4
|
export { plotlib } from './plot';
|
|
5
|
-
export { threedlib } from './threed';
|
|
6
5
|
export { stdlib } from './std';
|
|
7
6
|
export { litelib } from './lite';
|
|
8
|
-
export { autolib } from './auto';
|
package/lib/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.litelib = exports.stdlib = exports.plotlib = exports.graphlib = exports.geolib = exports.corelib = void 0;
|
|
4
4
|
var core_1 = require("./core");
|
|
5
5
|
Object.defineProperty(exports, "corelib", { enumerable: true, get: function () { return core_1.corelib; } });
|
|
6
6
|
var geo_1 = require("./geo");
|
|
@@ -9,12 +9,8 @@ var graph_1 = require("./graph");
|
|
|
9
9
|
Object.defineProperty(exports, "graphlib", { enumerable: true, get: function () { return graph_1.graphlib; } });
|
|
10
10
|
var plot_1 = require("./plot");
|
|
11
11
|
Object.defineProperty(exports, "plotlib", { enumerable: true, get: function () { return plot_1.plotlib; } });
|
|
12
|
-
var threed_1 = require("./threed");
|
|
13
|
-
Object.defineProperty(exports, "threedlib", { enumerable: true, get: function () { return threed_1.threedlib; } });
|
|
14
12
|
var std_1 = require("./std");
|
|
15
13
|
Object.defineProperty(exports, "stdlib", { enumerable: true, get: function () { return std_1.stdlib; } });
|
|
16
14
|
var lite_1 = require("./lite");
|
|
17
15
|
Object.defineProperty(exports, "litelib", { enumerable: true, get: function () { return lite_1.litelib; } });
|
|
18
|
-
var auto_1 = require("./auto");
|
|
19
|
-
Object.defineProperty(exports, "autolib", { enumerable: true, get: function () { return auto_1.autolib; } });
|
|
20
16
|
//# sourceMappingURL=index.js.map
|
package/lib/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["lib/index.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,6BAA+B;AAAtB,6FAAA,MAAM,OAAA;AACf,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA;AACjB,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["lib/index.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,6BAA+B;AAAtB,6FAAA,MAAM,OAAA;AACf,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA;AACjB,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,6BAA+B;AAAtB,6FAAA,MAAM,OAAA;AACf,+BAAiC;AAAxB,+FAAA,OAAO,OAAA"}
|
package/lib/lib/lite.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ export declare function litelib(): {
|
|
|
9
9
|
readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
|
|
10
10
|
readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
|
|
11
11
|
readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
|
|
12
|
-
readonly 'mark.interval': import("
|
|
13
|
-
readonly 'shape.label.label': import("
|
|
12
|
+
readonly 'mark.interval': import("..").MarkComponent<import("../mark").IntervalOptions>;
|
|
13
|
+
readonly 'shape.label.label': import("..").ShapeComponent<import("../shape").LabelShapeOptions>;
|
|
14
14
|
readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
|
|
15
15
|
readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
|
|
16
16
|
readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
|
|
@@ -28,22 +28,22 @@ export declare function litelib(): {
|
|
|
28
28
|
readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
|
|
29
29
|
readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
|
|
30
30
|
readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
31
|
-
readonly 'component.axisX': import("
|
|
32
|
-
readonly 'component.axisY': import("
|
|
33
|
-
readonly 'component.axisRadar': import("
|
|
34
|
-
readonly 'component.axisLinear': import("
|
|
35
|
-
readonly 'component.axisArc': import("
|
|
36
|
-
readonly 'component.legendCategory': import("
|
|
37
|
-
readonly 'component.legendContinuous': import("
|
|
38
|
-
readonly 'component.legendContinuousBlock': import("
|
|
39
|
-
readonly 'component.legendContinuousBlockSize': import("
|
|
40
|
-
readonly 'component.legendContinuousSize': import("
|
|
41
|
-
readonly 'component.legends': import("
|
|
42
|
-
readonly 'component.title': import("
|
|
43
|
-
readonly 'component.sliderX': import("
|
|
44
|
-
readonly 'component.sliderY': import("
|
|
45
|
-
readonly 'component.scrollbarX': import("
|
|
46
|
-
readonly 'component.scrollbarY': import("
|
|
31
|
+
readonly 'component.axisX': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
32
|
+
readonly 'component.axisY': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
33
|
+
readonly 'component.axisRadar': import("..").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
|
|
34
|
+
readonly 'component.axisLinear': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
35
|
+
readonly 'component.axisArc': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
36
|
+
readonly 'component.legendCategory': import("..").GuideComponentComponent<import("../component").LegendCategoryOptions>;
|
|
37
|
+
readonly 'component.legendContinuous': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
38
|
+
readonly 'component.legendContinuousBlock': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
39
|
+
readonly 'component.legendContinuousBlockSize': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
40
|
+
readonly 'component.legendContinuousSize': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
41
|
+
readonly 'component.legends': import("..").GuideComponentComponent<import("../component").LegendsOptions>;
|
|
42
|
+
readonly 'component.title': import("..").GuideComponentComponent<import("../runtime").G2Title>;
|
|
43
|
+
readonly 'component.sliderX': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
44
|
+
readonly 'component.sliderY': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
45
|
+
readonly 'component.scrollbarX': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
46
|
+
readonly 'component.scrollbarY': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
47
47
|
readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
48
48
|
readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
49
49
|
readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
package/lib/lib/std.d.ts
CHANGED
|
@@ -13,30 +13,30 @@ export declare function stdlib(): {
|
|
|
13
13
|
readonly 'data.join': import("../runtime").DataComponent<import("../data").JoinOptions>;
|
|
14
14
|
readonly 'data.kde': import("../runtime").DataComponent<import("../data").KDEOptions>;
|
|
15
15
|
readonly 'data.log': import("../runtime").DataComponent<import("../data").LogDataOptions>;
|
|
16
|
-
readonly 'transform.stackY': import("../runtime").TransformComponent<import("
|
|
17
|
-
readonly 'transform.binX': import("../runtime").TransformComponent<import("
|
|
18
|
-
readonly 'transform.bin': import("../runtime").TransformComponent<import("
|
|
19
|
-
readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("
|
|
20
|
-
readonly 'transform.jitter': import("../runtime").TransformComponent<import("
|
|
21
|
-
readonly 'transform.jitterX': import("../runtime").TransformComponent<import("
|
|
22
|
-
readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("
|
|
23
|
-
readonly 'transform.diffY': import("../runtime").TransformComponent<import("
|
|
24
|
-
readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("
|
|
25
|
-
readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("
|
|
26
|
-
readonly 'transform.select': import("../runtime").TransformComponent<import("
|
|
27
|
-
readonly 'transform.selectX': import("../runtime").TransformComponent<import("
|
|
28
|
-
readonly 'transform.selectY': import("../runtime").TransformComponent<import("
|
|
29
|
-
readonly 'transform.groupX': import("../runtime").TransformComponent<import("
|
|
30
|
-
readonly 'transform.groupY': import("../runtime").TransformComponent<import("
|
|
31
|
-
readonly 'transform.groupColor': import("../runtime").TransformComponent<import("
|
|
32
|
-
readonly 'transform.group': import("../runtime").TransformComponent<import("
|
|
33
|
-
readonly 'transform.sortX': import("../runtime").TransformComponent<import("
|
|
34
|
-
readonly 'transform.sortY': import("../runtime").TransformComponent<import("
|
|
35
|
-
readonly 'transform.sortColor': import("../runtime").TransformComponent<import("
|
|
36
|
-
readonly 'transform.flexX': import("../runtime").TransformComponent<import("
|
|
37
|
-
readonly 'transform.pack': import("../runtime").TransformComponent<import("
|
|
38
|
-
readonly 'transform.sample': import("../runtime").TransformComponent<import("
|
|
39
|
-
readonly 'transform.filter': import("../runtime").TransformComponent<import("
|
|
16
|
+
readonly 'transform.stackY': import("../runtime").TransformComponent<import("..").StackYOptions>;
|
|
17
|
+
readonly 'transform.binX': import("../runtime").TransformComponent<import("..").BinXOptions>;
|
|
18
|
+
readonly 'transform.bin': import("../runtime").TransformComponent<import("..").BinOptions>;
|
|
19
|
+
readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("..").DodgeXOptions>;
|
|
20
|
+
readonly 'transform.jitter': import("../runtime").TransformComponent<import("..").JitterOptions>;
|
|
21
|
+
readonly 'transform.jitterX': import("../runtime").TransformComponent<import("..").JitterXOptions>;
|
|
22
|
+
readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("..").SymmetryYOptions>;
|
|
23
|
+
readonly 'transform.diffY': import("../runtime").TransformComponent<import("..").DiffYOptions>;
|
|
24
|
+
readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("..").StackEnterOptions>;
|
|
25
|
+
readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("..").NormalizeYOptions>;
|
|
26
|
+
readonly 'transform.select': import("../runtime").TransformComponent<import("..").SelectOptions>;
|
|
27
|
+
readonly 'transform.selectX': import("../runtime").TransformComponent<import("..").SelectXOptions>;
|
|
28
|
+
readonly 'transform.selectY': import("../runtime").TransformComponent<import("..").SelectYOptions>;
|
|
29
|
+
readonly 'transform.groupX': import("../runtime").TransformComponent<import("..").GroupXOptions>;
|
|
30
|
+
readonly 'transform.groupY': import("../runtime").TransformComponent<import("..").GroupYOptions>;
|
|
31
|
+
readonly 'transform.groupColor': import("../runtime").TransformComponent<import("..").GroupColorOptions>;
|
|
32
|
+
readonly 'transform.group': import("../runtime").TransformComponent<import("..").GroupOptions>;
|
|
33
|
+
readonly 'transform.sortX': import("../runtime").TransformComponent<import("..").SortXOptions>;
|
|
34
|
+
readonly 'transform.sortY': import("../runtime").TransformComponent<import("..").SortYOptions>;
|
|
35
|
+
readonly 'transform.sortColor': import("../runtime").TransformComponent<import("..").SortColorOptions>;
|
|
36
|
+
readonly 'transform.flexX': import("../runtime").TransformComponent<import("..").FlexXOptions>;
|
|
37
|
+
readonly 'transform.pack': import("../runtime").TransformComponent<import("..").PackOptions>;
|
|
38
|
+
readonly 'transform.sample': import("../runtime").TransformComponent<import("..").SampleOptions>;
|
|
39
|
+
readonly 'transform.filter': import("../runtime").TransformComponent<import("..").FilterOptions>;
|
|
40
40
|
readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
|
|
41
41
|
readonly 'coordinate.polar': import("../runtime").CoordinateComponent<import("../coordinate").PolarOptions>;
|
|
42
42
|
readonly 'coordinate.transpose': import("../runtime").CoordinateComponent<import("../coordinate").TransposeOptions>;
|
|
@@ -49,28 +49,28 @@ export declare function stdlib(): {
|
|
|
49
49
|
readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
|
|
50
50
|
readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
|
|
51
51
|
readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
|
|
52
|
-
readonly 'mark.interval': import("
|
|
53
|
-
readonly 'mark.rect': import("
|
|
54
|
-
readonly 'mark.line': import("
|
|
55
|
-
readonly 'mark.point': import("
|
|
56
|
-
readonly 'mark.text': import("
|
|
57
|
-
readonly 'mark.cell': import("
|
|
58
|
-
readonly 'mark.area': import("
|
|
59
|
-
readonly 'mark.link': import("
|
|
60
|
-
readonly 'mark.image': import("
|
|
61
|
-
readonly 'mark.polygon': import("
|
|
62
|
-
readonly 'mark.box': import("
|
|
63
|
-
readonly 'mark.vector': import("
|
|
64
|
-
readonly 'mark.lineX': import("
|
|
65
|
-
readonly 'mark.lineY': import("
|
|
66
|
-
readonly 'mark.connector': import("
|
|
67
|
-
readonly 'mark.range': import("
|
|
68
|
-
readonly 'mark.rangeX': import("
|
|
69
|
-
readonly 'mark.rangeY': import("
|
|
70
|
-
readonly 'mark.path': import("
|
|
71
|
-
readonly 'mark.shape': import("
|
|
72
|
-
readonly 'mark.density': import("
|
|
73
|
-
readonly 'mark.heatmap': import("
|
|
52
|
+
readonly 'mark.interval': import("..").MarkComponent<import("../mark").IntervalOptions>;
|
|
53
|
+
readonly 'mark.rect': import("..").MarkComponent<import("../mark").RectOptions>;
|
|
54
|
+
readonly 'mark.line': import("..").MarkComponent<import("../mark").LineOptions>;
|
|
55
|
+
readonly 'mark.point': import("..").MarkComponent<import("../mark").PointOptions>;
|
|
56
|
+
readonly 'mark.text': import("..").MarkComponent<import("../mark").TextOptions>;
|
|
57
|
+
readonly 'mark.cell': import("..").MarkComponent<import("../mark").CellOptions>;
|
|
58
|
+
readonly 'mark.area': import("..").MarkComponent<import("../mark").AreaOptions>;
|
|
59
|
+
readonly 'mark.link': import("..").MarkComponent<import("../mark").LinkOptions>;
|
|
60
|
+
readonly 'mark.image': import("..").MarkComponent<import("../mark").ImageOptions>;
|
|
61
|
+
readonly 'mark.polygon': import("..").MarkComponent<import("../mark").PolygonOptions>;
|
|
62
|
+
readonly 'mark.box': import("..").MarkComponent<import("../mark").BoxOptions>;
|
|
63
|
+
readonly 'mark.vector': import("..").MarkComponent<import("../mark").VectorOptions>;
|
|
64
|
+
readonly 'mark.lineX': import("..").MarkComponent<import("../mark").LineXOptions>;
|
|
65
|
+
readonly 'mark.lineY': import("..").MarkComponent<import("../mark").LineYOptions>;
|
|
66
|
+
readonly 'mark.connector': import("..").MarkComponent<import("../mark").ConnectorOptions>;
|
|
67
|
+
readonly 'mark.range': import("..").MarkComponent<import("../mark").RangeOptions>;
|
|
68
|
+
readonly 'mark.rangeX': import("..").MarkComponent<import("../mark").RangeXOptions>;
|
|
69
|
+
readonly 'mark.rangeY': import("..").MarkComponent<import("../mark").RangeYOptions>;
|
|
70
|
+
readonly 'mark.path': import("..").MarkComponent<import("../mark/path").PathOptions>;
|
|
71
|
+
readonly 'mark.shape': import("..").MarkComponent<import("../mark").ShapeOptions>;
|
|
72
|
+
readonly 'mark.density': import("..").MarkComponent<import("../mark").DensityOptions>;
|
|
73
|
+
readonly 'mark.heatmap': import("..").MarkComponent<import("../mark").HeatmapOptions>;
|
|
74
74
|
readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
|
|
75
75
|
readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
|
|
76
76
|
readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
|
|
@@ -92,16 +92,16 @@ export declare function stdlib(): {
|
|
|
92
92
|
readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
93
93
|
readonly 'theme.light': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
94
94
|
readonly 'theme.dark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
|
|
95
|
-
readonly 'component.axisX': import("
|
|
96
|
-
readonly 'component.axisY': import("
|
|
97
|
-
readonly 'component.legendCategory': import("
|
|
98
|
-
readonly 'component.legendContinuous': import("
|
|
99
|
-
readonly 'component.legends': import("
|
|
100
|
-
readonly 'component.title': import("
|
|
101
|
-
readonly 'component.sliderX': import("
|
|
102
|
-
readonly 'component.sliderY': import("
|
|
103
|
-
readonly 'component.scrollbarX': import("
|
|
104
|
-
readonly 'component.scrollbarY': import("
|
|
95
|
+
readonly 'component.axisX': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
96
|
+
readonly 'component.axisY': import("..").GuideComponentComponent<import("..").AxisOptions>;
|
|
97
|
+
readonly 'component.legendCategory': import("..").GuideComponentComponent<import("../component").LegendCategoryOptions>;
|
|
98
|
+
readonly 'component.legendContinuous': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
|
|
99
|
+
readonly 'component.legends': import("..").GuideComponentComponent<import("../component").LegendsOptions>;
|
|
100
|
+
readonly 'component.title': import("..").GuideComponentComponent<import("../runtime").G2Title>;
|
|
101
|
+
readonly 'component.sliderX': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
102
|
+
readonly 'component.sliderY': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
|
|
103
|
+
readonly 'component.scrollbarX': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
104
|
+
readonly 'component.scrollbarY': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
|
|
105
105
|
readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
106
106
|
readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
|
107
107
|
readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
|
package/lib/mark/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export { Interval } from './interval';
|
|
2
2
|
export { Rect } from './rect';
|
|
3
3
|
export { Line } from './line';
|
|
4
|
-
export { Line3D } from './line3D';
|
|
5
4
|
export { Point } from './point';
|
|
6
|
-
export { Point3D } from './point3D';
|
|
7
|
-
export { Interval3D } from './interval3D';
|
|
8
5
|
export { Text } from './text';
|
|
9
6
|
export { Cell } from './cell';
|
|
10
7
|
export { Area } from './area';
|
|
@@ -32,7 +29,6 @@ export { Gauge } from './gauge';
|
|
|
32
29
|
export { Density } from './density';
|
|
33
30
|
export { Heatmap } from './heatmap';
|
|
34
31
|
export { Liquid } from './liquid';
|
|
35
|
-
export { Auto } from './auto';
|
|
36
32
|
export type { IntervalOptions } from './interval';
|
|
37
33
|
export type { RectOptions } from './rect';
|
|
38
34
|
export type { LineOptions } from './line';
|
package/lib/mark/index.js
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Liquid = exports.Heatmap = exports.Density = exports.Gauge = exports.WordCloud = exports.Tree = exports.ForceGraph = exports.Shape = exports.Boxplot = exports.Pack = exports.Treemap = exports.Path = exports.Sankey = exports.RangeY = exports.RangeX = exports.Range = exports.Connector = exports.LineX = exports.LineY = exports.Vector = exports.Box = exports.Polygon = exports.Image = exports.Link = exports.Area = exports.Cell = exports.Text = exports.Point = exports.Line = exports.Rect = exports.Interval = void 0;
|
|
4
4
|
var interval_1 = require("./interval");
|
|
5
5
|
Object.defineProperty(exports, "Interval", { enumerable: true, get: function () { return interval_1.Interval; } });
|
|
6
6
|
var rect_1 = require("./rect");
|
|
7
7
|
Object.defineProperty(exports, "Rect", { enumerable: true, get: function () { return rect_1.Rect; } });
|
|
8
8
|
var line_1 = require("./line");
|
|
9
9
|
Object.defineProperty(exports, "Line", { enumerable: true, get: function () { return line_1.Line; } });
|
|
10
|
-
var line3D_1 = require("./line3D");
|
|
11
|
-
Object.defineProperty(exports, "Line3D", { enumerable: true, get: function () { return line3D_1.Line3D; } });
|
|
12
10
|
var point_1 = require("./point");
|
|
13
11
|
Object.defineProperty(exports, "Point", { enumerable: true, get: function () { return point_1.Point; } });
|
|
14
|
-
var point3D_1 = require("./point3D");
|
|
15
|
-
Object.defineProperty(exports, "Point3D", { enumerable: true, get: function () { return point3D_1.Point3D; } });
|
|
16
|
-
var interval3D_1 = require("./interval3D");
|
|
17
|
-
Object.defineProperty(exports, "Interval3D", { enumerable: true, get: function () { return interval3D_1.Interval3D; } });
|
|
18
12
|
var text_1 = require("./text");
|
|
19
13
|
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return text_1.Text; } });
|
|
20
14
|
var cell_1 = require("./cell");
|
|
@@ -69,6 +63,4 @@ var heatmap_1 = require("./heatmap");
|
|
|
69
63
|
Object.defineProperty(exports, "Heatmap", { enumerable: true, get: function () { return heatmap_1.Heatmap; } });
|
|
70
64
|
var liquid_1 = require("./liquid");
|
|
71
65
|
Object.defineProperty(exports, "Liquid", { enumerable: true, get: function () { return liquid_1.Liquid; } });
|
|
72
|
-
var auto_1 = require("./auto");
|
|
73
|
-
Object.defineProperty(exports, "Auto", { enumerable: true, get: function () { return auto_1.Auto; } });
|
|
74
66
|
//# sourceMappingURL=index.js.map
|
package/lib/mark/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["mark/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["mark/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
package/lib/mark/liquid.js
CHANGED
|
@@ -14,6 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.Liquid = void 0;
|
|
15
15
|
const util_1 = require("@antv/util");
|
|
16
16
|
const helper_1 = require("../utils/helper");
|
|
17
|
+
const number_1 = require("../utils/number");
|
|
17
18
|
const shape_1 = require("../shape");
|
|
18
19
|
const DEFAULT_OPTIONS = {
|
|
19
20
|
axis: {
|
|
@@ -77,7 +78,7 @@ const Liquid = (options) => {
|
|
|
77
78
|
background }),
|
|
78
79
|
}, animate }, resOptions)),
|
|
79
80
|
(0, util_1.deepMix)({}, DEFAULT_TEXT_OPTIONS, {
|
|
80
|
-
style: Object.assign({ text: `${percent * 100} %` }, textStyle),
|
|
81
|
+
style: Object.assign({ text: `${(0, number_1.prettyNumber)(percent * 100)} %` }, textStyle),
|
|
81
82
|
animate,
|
|
82
83
|
}),
|
|
83
84
|
];
|
package/lib/mark/liquid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liquid.js","sourceRoot":"src/","sources":["mark/liquid.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA+C;AAC/C,4CAA4C;
|
|
1
|
+
{"version":3,"file":"liquid.js","sourceRoot":"src/","sources":["mark/liquid.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA+C;AAC/C,4CAA4C;AAC5C,4CAA+C;AAG/C,oCAAuC;AAEvC,MAAM,eAAe,GAAG;IACtB,IAAI,EAAE;QACJ,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;KACT;IACD,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,KAAK;IACd,MAAM,EAAE;QACN,CAAC,EAAE,MAAM;QACT,CAAC,EAAE,SAAS;KACb;IACD,KAAK,EAAE;QACL,CAAC,EAAE;YACD,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,mBAAW;KACnB;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,SAAS,EAAE,QAAQ;QACnB,YAAY,EAAE,QAAQ;QACtB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,MAAM;KACb;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAUK,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,EAAE;IACnD,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,KAAoB,OAAO,EAAtB,UAAU,UAAK,OAAO,EAA3D,4BAAiD,CAAU,CAAC;IAClE,6EAA6E;IAC7E,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAA,eAAQ,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,CAAC,CAAC;IAEnE,MAAM,OAAO,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAE9C,MAAM,SAAS,GAAG,IAAA,kBAAS,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3C,MAAM,OAAO,GAAG,IAAA,kBAAS,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC5C,MAAM,IAAI,GAAG,IAAA,kBAAS,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACtC,MAAM,UAAU,GAAG,IAAA,kBAAS,EAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IAElD,OAAO;QACL,IAAA,cAAO,EAAC,EAAE,EAAE,eAAe,kBACzB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE;gBACL,aAAa,EAAE;oBACb,OAAO;oBACP,WAAW,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK;iBAC1B;gBACD,YAAY,kCACP,KAAK,KACR,OAAO;oBACP,IAAI;oBACJ,UAAU,GACX;aACF,EACD,OAAO,IACJ,UAAU,EACb;QACF,IAAA,cAAO,EAAC,EAAE,EAAE,oBAAoB,EAAE;YAChC,KAAK,kBACH,IAAI,EAAE,GAAG,IAAA,qBAAY,EAAC,OAAO,GAAG,GAAG,CAAC,IAAI,IACrC,SAAS,CACb;YACD,OAAO;SACR,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAvCW,QAAA,MAAM,UAuCjB;AAEF,cAAM,CAAC,KAAK,GAAG,EAAE,CAAC"}
|
package/lib/runtime/component.js
CHANGED
|
@@ -18,6 +18,7 @@ const d3_format_1 = require("d3-format");
|
|
|
18
18
|
const g_1 = require("@antv/g");
|
|
19
19
|
const coordinate_1 = require("../coordinate");
|
|
20
20
|
const array_1 = require("../utils/array");
|
|
21
|
+
const number_1 = require("../utils/number");
|
|
21
22
|
const helper_1 = require("../utils/helper");
|
|
22
23
|
const constant_1 = require("../component/constant");
|
|
23
24
|
const coordinate_2 = require("./coordinate");
|
|
@@ -716,7 +717,7 @@ function ticksOf(scale, tickFilter) {
|
|
|
716
717
|
}
|
|
717
718
|
function labelsOf(scale, labelFormatter, tickFilter) {
|
|
718
719
|
const T = ticksOf(scale, tickFilter);
|
|
719
|
-
const ticks = T.map((d) => (typeof d === 'number' ? prettyNumber(d) : d));
|
|
720
|
+
const ticks = T.map((d) => (typeof d === 'number' ? (0, number_1.prettyNumber)(d) : d));
|
|
720
721
|
const formatter = labelFormatter
|
|
721
722
|
? typeof labelFormatter === 'string'
|
|
722
723
|
? (0, d3_format_1.format)(labelFormatter)
|
|
@@ -778,7 +779,4 @@ function normalizeLabel(d) {
|
|
|
778
779
|
return d;
|
|
779
780
|
return new g_1.Text({ style: { text: `${d}` } });
|
|
780
781
|
}
|
|
781
|
-
function prettyNumber(n) {
|
|
782
|
-
return Math.abs(n) < 1e-15 ? n : parseFloat(n.toFixed(15));
|
|
783
|
-
}
|
|
784
782
|
//# sourceMappingURL=component.js.map
|