@antv/g-lite 1.3.0-next.14 → 1.3.0-next.15
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 +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- 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.js
CHANGED
|
@@ -14733,6 +14733,7 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14733
14733
|
}
|
|
14734
14734
|
PrepareRendererPlugin.prototype.apply = function (context) {
|
|
14735
14735
|
var _this = this;
|
|
14736
|
+
var _a;
|
|
14736
14737
|
var renderingService = context.renderingService, renderingContext = context.renderingContext, rBushRoot = context.rBushRoot;
|
|
14737
14738
|
var canvas = renderingContext.root.ownerDocument.defaultView;
|
|
14738
14739
|
this.rBush = rBushRoot;
|
|
@@ -14791,11 +14792,12 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14791
14792
|
canvas.removeEventListener(exports.ElementEvent.BOUNDS_CHANGED, handleBoundsChanged);
|
|
14792
14793
|
_this.toSync.clear();
|
|
14793
14794
|
});
|
|
14795
|
+
var ric = (_a = runtime.globalThis.requestIdleCallback) !== null && _a !== void 0 ? _a : raf.bind(runtime.globalThis);
|
|
14794
14796
|
renderingService.hooks.endFrame.tap(PrepareRendererPlugin.tag, function () {
|
|
14795
14797
|
if (_this.isFirstTimeRendering) {
|
|
14796
14798
|
_this.isFirstTimeRendering = false;
|
|
14797
14799
|
_this.syncing = true;
|
|
14798
|
-
|
|
14800
|
+
ric(function () {
|
|
14799
14801
|
_this.syncRTree(true);
|
|
14800
14802
|
});
|
|
14801
14803
|
}
|