@antv/g2 5.1.6-beta.1 → 5.1.7
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 +24 -0
- 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/api/utils.d.ts +6 -2
- package/esm/api/utils.js +18 -6
- package/esm/api/utils.js.map +1 -1
- package/esm/exports.d.ts +1 -0
- package/esm/exports.js +1 -0
- package/esm/exports.js.map +1 -1
- package/esm/interaction/utils.js +1 -5
- package/esm/interaction/utils.js.map +1 -1
- package/esm/lib/index.d.ts +0 -1
- package/esm/lib/index.js +0 -1
- package/esm/lib/index.js.map +1 -1
- package/esm/mark/index.d.ts +0 -1
- package/esm/mark/index.js +0 -1
- package/esm/mark/index.js.map +1 -1
- package/esm/runtime/component.js +4 -2
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/layout.js +7 -1
- package/esm/runtime/layout.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/theme/create.d.ts +1 -4
- package/esm/theme/create.js +1 -4
- package/esm/theme/create.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/api/utils.d.ts +6 -2
- package/lib/api/utils.js +19 -7
- package/lib/api/utils.js.map +1 -1
- package/lib/exports.d.ts +1 -0
- package/lib/exports.js +7 -1
- package/lib/exports.js.map +1 -1
- package/lib/interaction/utils.js +1 -5
- package/lib/interaction/utils.js.map +1 -1
- package/lib/lib/index.d.ts +0 -1
- package/lib/lib/index.js +1 -3
- package/lib/lib/index.js.map +1 -1
- package/lib/mark/index.d.ts +0 -1
- package/lib/mark/index.js +1 -3
- package/lib/mark/index.js.map +1 -1
- package/lib/runtime/component.js +4 -2
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/layout.js +7 -1
- package/lib/runtime/layout.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/theme/create.d.ts +1 -4
- package/lib/theme/create.js +1 -4
- package/lib/theme/create.js.map +1 -1
- package/package.json +4 -4
- 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/api/utils.ts +28 -6
- package/src/exports.ts +2 -0
- package/src/interaction/utils.ts +1 -5
- package/src/lib/index.ts +0 -1
- package/src/mark/index.ts +0 -1
- package/src/runtime/component.ts +10 -2
- package/src/runtime/layout.ts +6 -1
- 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/theme/create.ts +1 -4
- 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/mark/auto.d.ts +0 -1
- package/esm/mark/auto.js +0 -26
- package/esm/mark/auto.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/mark/auto.d.ts +0 -1
- package/lib/mark/auto.js +0 -30
- package/lib/mark/auto.js.map +0 -1
- package/src/lib/auto.ts +0 -7
- package/src/mark/auto.ts +0 -22
package/esm/mark/auto.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { Advisor } from '@antv/ava';
|
|
13
|
-
import { deepMix } from '@antv/util';
|
|
14
|
-
export const Auto = (options) => {
|
|
15
|
-
const chartAdvisor = new Advisor();
|
|
16
|
-
const { data, dataProps, fields, options: o, colorOptions } = options, rest = __rest(options, ["data", "dataProps", "fields", "options", "colorOptions"]);
|
|
17
|
-
const results = chartAdvisor.advise({
|
|
18
|
-
data,
|
|
19
|
-
dataProps,
|
|
20
|
-
fields,
|
|
21
|
-
options: o,
|
|
22
|
-
colorOptions,
|
|
23
|
-
});
|
|
24
|
-
return deepMix({}, rest, results === null || results === void 0 ? void 0 : results[0].spec);
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=auto.js.map
|
package/esm/mark/auto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto.js","sourceRoot":"src/","sources":["mark/auto.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,EAAE;IAC9B,MAAM,YAAY,GAAG,IAAI,OAAO,EAAE,CAAC;IACnC,MAAM,EACJ,IAAI,EACJ,SAAS,EACT,MAAM,EACN,OAAO,EAAE,CAAC,EACV,YAAY,KAEV,OAAO,EADN,IAAI,UACL,OAAO,EAPL,0DAOL,CAAU,CAAC;IACZ,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC;QAClC,IAAI;QACJ,SAAS;QACT,MAAM;QACN,OAAO,EAAE,CAAC;QACV,YAAY;KACb,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC,CAAC"}
|
package/lib/lib/auto.d.ts
DELETED
package/lib/lib/auto.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.autolib = void 0;
|
|
4
|
-
const auto_1 = require("../mark/auto");
|
|
5
|
-
function autolib() {
|
|
6
|
-
return {
|
|
7
|
-
'mark.auto': auto_1.Auto,
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
exports.autolib = autolib;
|
|
11
|
-
//# sourceMappingURL=auto.js.map
|
package/lib/lib/auto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto.js","sourceRoot":"src/","sources":["lib/auto.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,SAAgB,OAAO;IACrB,OAAO;QACL,WAAW,EAAE,WAAI;KACT,CAAC;AACb,CAAC;AAJD,0BAIC"}
|
package/lib/mark/auto.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Auto: (options: any) => any;
|
package/lib/mark/auto.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Auto = void 0;
|
|
15
|
-
const ava_1 = require("@antv/ava");
|
|
16
|
-
const util_1 = require("@antv/util");
|
|
17
|
-
const Auto = (options) => {
|
|
18
|
-
const chartAdvisor = new ava_1.Advisor();
|
|
19
|
-
const { data, dataProps, fields, options: o, colorOptions } = options, rest = __rest(options, ["data", "dataProps", "fields", "options", "colorOptions"]);
|
|
20
|
-
const results = chartAdvisor.advise({
|
|
21
|
-
data,
|
|
22
|
-
dataProps,
|
|
23
|
-
fields,
|
|
24
|
-
options: o,
|
|
25
|
-
colorOptions,
|
|
26
|
-
});
|
|
27
|
-
return (0, util_1.deepMix)({}, rest, results === null || results === void 0 ? void 0 : results[0].spec);
|
|
28
|
-
};
|
|
29
|
-
exports.Auto = Auto;
|
|
30
|
-
//# sourceMappingURL=auto.js.map
|
package/lib/mark/auto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto.js","sourceRoot":"src/","sources":["mark/auto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAAoC;AACpC,qCAAqC;AAE9B,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,EAAE;IAC9B,MAAM,YAAY,GAAG,IAAI,aAAO,EAAE,CAAC;IACnC,MAAM,EACJ,IAAI,EACJ,SAAS,EACT,MAAM,EACN,OAAO,EAAE,CAAC,EACV,YAAY,KAEV,OAAO,EADN,IAAI,UACL,OAAO,EAPL,0DAOL,CAAU,CAAC;IACZ,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC;QAClC,IAAI;QACJ,SAAS;QACT,MAAM;QACN,OAAO,EAAE,CAAC;QACV,YAAY;KACb,CAAC,CAAC;IACH,OAAO,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC,CAAC;AAlBW,QAAA,IAAI,QAkBf"}
|
package/src/lib/auto.ts
DELETED
package/src/mark/auto.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Advisor } from '@antv/ava';
|
|
2
|
-
import { deepMix } from '@antv/util';
|
|
3
|
-
|
|
4
|
-
export const Auto = (options) => {
|
|
5
|
-
const chartAdvisor = new Advisor();
|
|
6
|
-
const {
|
|
7
|
-
data,
|
|
8
|
-
dataProps,
|
|
9
|
-
fields,
|
|
10
|
-
options: o,
|
|
11
|
-
colorOptions,
|
|
12
|
-
...rest
|
|
13
|
-
} = options;
|
|
14
|
-
const results = chartAdvisor.advise({
|
|
15
|
-
data,
|
|
16
|
-
dataProps,
|
|
17
|
-
fields,
|
|
18
|
-
options: o,
|
|
19
|
-
colorOptions,
|
|
20
|
-
});
|
|
21
|
-
return deepMix({}, rest, results?.[0].spec);
|
|
22
|
-
};
|