@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.js CHANGED
@@ -4910,16 +4910,16 @@ function convertToPath(object, transform) {
4910
4910
  var commands = [];
4911
4911
  switch (object.nodeName) {
4912
4912
  case exports.Shape.LINE:
4913
- var _a = object.parsedStyle, x1 = _a.x1, y1 = _a.y1, x2 = _a.x2, y2 = _a.y2;
4913
+ 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;
4914
4914
  commands = lineToCommands(x1, y1, x2, y2);
4915
4915
  break;
4916
4916
  case exports.Shape.CIRCLE: {
4917
- var _b = object.parsedStyle, r = _b.r, cx = _b.cx, cy = _b.cy;
4917
+ 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;
4918
4918
  commands = ellipseToCommands(r, r, cx, cy);
4919
4919
  break;
4920
4920
  }
4921
4921
  case exports.Shape.ELLIPSE: {
4922
- var _c = object.parsedStyle, rx = _c.rx, ry = _c.ry, cx = _c.cx, cy = _c.cy;
4922
+ 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;
4923
4923
  commands = ellipseToCommands(rx, ry, cx, cy);
4924
4924
  break;
4925
4925
  }
@@ -4929,7 +4929,7 @@ function convertToPath(object, transform) {
4929
4929
  commands = polygonToCommands(points.points, object.nodeName === exports.Shape.POLYGON);
4930
4930
  break;
4931
4931
  case exports.Shape.RECT:
4932
- var _d = object.parsedStyle, width_1 = _d.width, height_1 = _d.height, x = _d.x, y = _d.y, radius = _d.radius;
4932
+ 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;
4933
4933
  var hasRadius = radius && radius.some(function (r) { return r !== 0; });
4934
4934
  commands = rectToCommands(width_1, height_1, x, y, hasRadius &&
4935
4935
  radius.map(function (r) {