@antv/g-lite 1.3.0-next.14 → 1.3.0-next.16
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 +9 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -13
- 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 +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -11647,16 +11647,7 @@ var entityCounter = 0;
|
|
|
11647
11647
|
function resetEntityCounter() {
|
|
11648
11648
|
entityCounter = 0;
|
|
11649
11649
|
}
|
|
11650
|
-
|
|
11651
|
-
// ElementEvent.INSERTED,
|
|
11652
|
-
// null,
|
|
11653
|
-
// '',
|
|
11654
|
-
// '',
|
|
11655
|
-
// '',
|
|
11656
|
-
// 0,
|
|
11657
|
-
// '',
|
|
11658
|
-
// '',
|
|
11659
|
-
// );
|
|
11650
|
+
var insertedEvent = new MutationEvent(ElementEvent.INSERTED, null, '', '', '', 0, '', '');
|
|
11660
11651
|
var removedEvent = new MutationEvent(ElementEvent.REMOVED, null, '', '', '', 0, '', '');
|
|
11661
11652
|
var destroyEvent = new CustomEvent(ElementEvent.DESTROY);
|
|
11662
11653
|
/**
|
|
@@ -11896,8 +11887,11 @@ var Element = /** @class */ (function (_super) {
|
|
|
11896
11887
|
if ((_a = this.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView) {
|
|
11897
11888
|
this.ownerDocument.defaultView.mountChildren(child);
|
|
11898
11889
|
}
|
|
11899
|
-
//
|
|
11900
|
-
|
|
11890
|
+
// @ts-ignore
|
|
11891
|
+
if (this.isMutationObserved) {
|
|
11892
|
+
insertedEvent.relatedNode = this;
|
|
11893
|
+
child.dispatchEvent(insertedEvent);
|
|
11894
|
+
}
|
|
11901
11895
|
return child;
|
|
11902
11896
|
};
|
|
11903
11897
|
Element.prototype.insertBefore = function (newChild, refChild) {
|
|
@@ -14712,6 +14706,7 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14712
14706
|
}
|
|
14713
14707
|
PrepareRendererPlugin.prototype.apply = function (context) {
|
|
14714
14708
|
var _this = this;
|
|
14709
|
+
var _a;
|
|
14715
14710
|
var renderingService = context.renderingService, renderingContext = context.renderingContext, rBushRoot = context.rBushRoot;
|
|
14716
14711
|
var canvas = renderingContext.root.ownerDocument.defaultView;
|
|
14717
14712
|
this.rBush = rBushRoot;
|
|
@@ -14770,11 +14765,12 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14770
14765
|
canvas.removeEventListener(ElementEvent.BOUNDS_CHANGED, handleBoundsChanged);
|
|
14771
14766
|
_this.toSync.clear();
|
|
14772
14767
|
});
|
|
14768
|
+
var ric = (_a = runtime.globalThis.requestIdleCallback) !== null && _a !== void 0 ? _a : raf.bind(runtime.globalThis);
|
|
14773
14769
|
renderingService.hooks.endFrame.tap(PrepareRendererPlugin.tag, function () {
|
|
14774
14770
|
if (_this.isFirstTimeRendering) {
|
|
14775
14771
|
_this.isFirstTimeRendering = false;
|
|
14776
14772
|
_this.syncing = true;
|
|
14777
|
-
|
|
14773
|
+
ric(function () {
|
|
14778
14774
|
_this.syncRTree(true);
|
|
14779
14775
|
});
|
|
14780
14776
|
}
|