modern-canvas 0.14.13 → 0.14.14
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4933,7 +4933,7 @@ let I = class extends Pe {
|
|
|
4933
4933
|
return this;
|
|
4934
4934
|
(r.hasParent() && !this.equal(r.parent) || r.internalMode !== t) && r.remove();
|
|
4935
4935
|
const s = this._children.getInternal(t), i = s.indexOf(r);
|
|
4936
|
-
return i !== e && (i > -1 && (s.splice(i, 1), e
|
|
4936
|
+
return e = Math.max(0, e), i !== e && (i > -1 && (s.splice(i, 1), e = Math.max(0, e - 1), this.emit("removeChild", r, i)), r.setParent(this), e < s.length ? s.splice(e, 0, r) : s.push(r), this.emit("addChild", r, e)), r.internalMode !== t && (r.internalMode = t), this;
|
|
4937
4937
|
}
|
|
4938
4938
|
removeChild(r) {
|
|
4939
4939
|
const e = r.getIndex();
|