@antv/g-lite 1.2.5 → 1.2.6
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/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4889,16 +4889,16 @@ function convertToPath(object, transform) {
|
|
|
4889
4889
|
var commands = [];
|
|
4890
4890
|
switch (object.nodeName) {
|
|
4891
4891
|
case Shape.LINE:
|
|
4892
|
-
var _a = object.parsedStyle,
|
|
4892
|
+
var _a = object.parsedStyle, _b = _a.x1, x1 = _b === void 0 ? 0 : _b, _c = _a.y1, y1 = _c === void 0 ? 0 : _c, _d = _a.x2, x2 = _d === void 0 ? 0 : _d, _e = _a.y2, y2 = _e === void 0 ? 0 : _e;
|
|
4893
4893
|
commands = lineToCommands(x1, y1, x2, y2);
|
|
4894
4894
|
break;
|
|
4895
4895
|
case Shape.CIRCLE: {
|
|
4896
|
-
var
|
|
4896
|
+
var _f = object.parsedStyle, _g = _f.r, r = _g === void 0 ? 0 : _g, _h = _f.cx, cx = _h === void 0 ? 0 : _h, _j = _f.cy, cy = _j === void 0 ? 0 : _j;
|
|
4897
4897
|
commands = ellipseToCommands(r, r, cx, cy);
|
|
4898
4898
|
break;
|
|
4899
4899
|
}
|
|
4900
4900
|
case Shape.ELLIPSE: {
|
|
4901
|
-
var
|
|
4901
|
+
var _k = object.parsedStyle, _l = _k.rx, rx = _l === void 0 ? 0 : _l, _m = _k.ry, ry = _m === void 0 ? 0 : _m, _o = _k.cx, cx = _o === void 0 ? 0 : _o, _p = _k.cy, cy = _p === void 0 ? 0 : _p;
|
|
4902
4902
|
commands = ellipseToCommands(rx, ry, cx, cy);
|
|
4903
4903
|
break;
|
|
4904
4904
|
}
|
|
@@ -4908,7 +4908,7 @@ function convertToPath(object, transform) {
|
|
|
4908
4908
|
commands = polygonToCommands(points.points, object.nodeName === Shape.POLYGON);
|
|
4909
4909
|
break;
|
|
4910
4910
|
case Shape.RECT:
|
|
4911
|
-
var
|
|
4911
|
+
var _q = object.parsedStyle, _r = _q.width, width_1 = _r === void 0 ? 0 : _r, _s = _q.height, height_1 = _s === void 0 ? 0 : _s, _t = _q.x, x = _t === void 0 ? 0 : _t, _u = _q.y, y = _u === void 0 ? 0 : _u, radius = _q.radius;
|
|
4912
4912
|
var hasRadius = radius && radius.some(function (r) { return r !== 0; });
|
|
4913
4913
|
commands = rectToCommands(width_1, height_1, x, y, hasRadius &&
|
|
4914
4914
|
radius.map(function (r) {
|