@antv/g-lite 1.2.16 → 1.2.18
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/display-objects/Circle.d.ts +20 -0
- package/dist/display-objects/Image.d.ts +15 -1
- package/dist/display-objects/Line.d.ts +26 -0
- package/dist/display-objects/Path.d.ts +8 -0
- package/dist/display-objects/Polyline.d.ts +7 -0
- package/dist/index.esm.js +10 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -2
- 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.js
CHANGED
|
@@ -11903,8 +11903,16 @@ var Element = /** @class */ (function (_super) {
|
|
|
11903
11903
|
this.appendChild(newChild);
|
|
11904
11904
|
}
|
|
11905
11905
|
else {
|
|
11906
|
+
if (newChild.parentElement) {
|
|
11907
|
+
newChild.parentElement.removeChild(newChild);
|
|
11908
|
+
}
|
|
11906
11909
|
var index = this.childNodes.indexOf(refChild);
|
|
11907
|
-
|
|
11910
|
+
if (index === -1) {
|
|
11911
|
+
this.appendChild(newChild);
|
|
11912
|
+
}
|
|
11913
|
+
else {
|
|
11914
|
+
this.appendChild(newChild, index);
|
|
11915
|
+
}
|
|
11908
11916
|
}
|
|
11909
11917
|
return newChild;
|
|
11910
11918
|
};
|
|
@@ -13270,7 +13278,7 @@ var Line = /** @class */ (function (_super) {
|
|
|
13270
13278
|
var _this = this;
|
|
13271
13279
|
if (_a === void 0) { _a = {}; }
|
|
13272
13280
|
var style = _a.style, rest = tslib.__rest(_a, ["style"]);
|
|
13273
|
-
_this = _super.call(this, tslib.__assign({ type: exports.Shape.LINE, style: tslib.__assign({ x1: 0, y1: 0, x2: 0, y2: 0, z1: 0, z2: 0
|
|
13281
|
+
_this = _super.call(this, tslib.__assign({ type: exports.Shape.LINE, style: tslib.__assign({ x1: 0, y1: 0, x2: 0, y2: 0, z1: 0, z2: 0 }, style) }, rest)) || this;
|
|
13274
13282
|
_this.markerStartAngle = 0;
|
|
13275
13283
|
_this.markerEndAngle = 0;
|
|
13276
13284
|
var _b = _this.parsedStyle, markerStart = _b.markerStart, markerEnd = _b.markerEnd;
|