bruce-models 0.5.3 → 0.5.5
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/bruce-models.es5.js +17 -7
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +17 -7
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/entity/getters/batched-data-getter.js +16 -7
- package/dist/lib/entity/getters/batched-data-getter.js.map +1 -1
- package/dist/lib/entity/getters/entity-filter-getter.js +1 -0
- package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -1
- package/dist/lib/project/menu-item.js.map +1 -1
- package/dist/types/entity/entity.d.ts +2 -1
- package/dist/types/entity/getters/batched-data-getter.d.ts +1 -0
- package/dist/types/project/menu-item.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -3357,6 +3357,7 @@
|
|
|
3357
3357
|
this.batchSize = batchSize;
|
|
3358
3358
|
this.viewPort = viewPort;
|
|
3359
3359
|
this.attrFilter = attrFilter;
|
|
3360
|
+
this.updateBounds();
|
|
3360
3361
|
}
|
|
3361
3362
|
Object.defineProperty(Getter.prototype, "OnUpdate", {
|
|
3362
3363
|
get: function () {
|
|
@@ -3618,9 +3619,9 @@
|
|
|
3618
3619
|
this.viewPort = viewPort;
|
|
3619
3620
|
this.batchSize = batchSize;
|
|
3620
3621
|
this.viewPortRemoval = this.viewPort.Updated().Subscribe(function () {
|
|
3621
|
-
_this.
|
|
3622
|
-
_this.startGetterLoop();
|
|
3622
|
+
_this.updateViewport();
|
|
3623
3623
|
});
|
|
3624
|
+
this.updateViewport();
|
|
3624
3625
|
}
|
|
3625
3626
|
Object.defineProperty(Getter.prototype, "OnUpdate", {
|
|
3626
3627
|
get: function () {
|
|
@@ -3632,6 +3633,10 @@
|
|
|
3632
3633
|
enumerable: false,
|
|
3633
3634
|
configurable: true
|
|
3634
3635
|
});
|
|
3636
|
+
Getter.prototype.updateViewport = function () {
|
|
3637
|
+
this.updateBounds();
|
|
3638
|
+
this.startGetterLoop();
|
|
3639
|
+
};
|
|
3635
3640
|
Getter.prototype.Dispose = function () {
|
|
3636
3641
|
var _a;
|
|
3637
3642
|
(_a = this.viewPortRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
@@ -3657,13 +3662,18 @@
|
|
|
3657
3662
|
return;
|
|
3658
3663
|
}
|
|
3659
3664
|
var index = 0;
|
|
3660
|
-
|
|
3665
|
+
var onTick = function () {
|
|
3661
3666
|
_this.processBatch(_this.data.slice(index, index + _this.batchSize));
|
|
3662
3667
|
index += _this.batchSize;
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3668
|
+
return index >= _this.data.length;
|
|
3669
|
+
};
|
|
3670
|
+
if (!onTick()) {
|
|
3671
|
+
this.getterInterval = setInterval(function () {
|
|
3672
|
+
if (onTick()) {
|
|
3673
|
+
clearInterval(_this.getterInterval);
|
|
3674
|
+
}
|
|
3675
|
+
}, GETTER_DELAY);
|
|
3676
|
+
}
|
|
3667
3677
|
};
|
|
3668
3678
|
Getter.prototype.processBatch = function (batch) {
|
|
3669
3679
|
var _a;
|