bruce-models 0.5.5 → 0.5.6
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 +10 -8
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +10 -8
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/entity/getters/batched-data-getter.js +10 -8
- package/dist/lib/entity/getters/batched-data-getter.js.map +1 -1
- package/dist/types/entity/getters/batched-data-getter.d.ts +2 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3716,7 +3716,6 @@ var BatchedDataGetter;
|
|
|
3716
3716
|
(function (BatchedDataGetter) {
|
|
3717
3717
|
var Getter = /** @class */ (function () {
|
|
3718
3718
|
function Getter(data, viewPort, batchSize) {
|
|
3719
|
-
var _this = this;
|
|
3720
3719
|
this.viewPortRemoval = null;
|
|
3721
3720
|
this.viewRect = null;
|
|
3722
3721
|
this.viewCenter = null;
|
|
@@ -3724,10 +3723,6 @@ var BatchedDataGetter;
|
|
|
3724
3723
|
this.data = data;
|
|
3725
3724
|
this.viewPort = viewPort;
|
|
3726
3725
|
this.batchSize = batchSize;
|
|
3727
|
-
this.viewPortRemoval = this.viewPort.Updated().Subscribe(function () {
|
|
3728
|
-
_this.updateViewport();
|
|
3729
|
-
});
|
|
3730
|
-
this.updateViewport();
|
|
3731
3726
|
}
|
|
3732
3727
|
Object.defineProperty(Getter.prototype, "OnUpdate", {
|
|
3733
3728
|
get: function () {
|
|
@@ -3739,14 +3734,21 @@ var BatchedDataGetter;
|
|
|
3739
3734
|
enumerable: false,
|
|
3740
3735
|
configurable: true
|
|
3741
3736
|
});
|
|
3742
|
-
Getter.prototype.
|
|
3743
|
-
this
|
|
3744
|
-
this.
|
|
3737
|
+
Getter.prototype.Start = function () {
|
|
3738
|
+
var _this = this;
|
|
3739
|
+
this.viewPortRemoval = this.viewPort.Updated().Subscribe(function () {
|
|
3740
|
+
_this.updateViewport();
|
|
3741
|
+
});
|
|
3742
|
+
this.updateViewport();
|
|
3745
3743
|
};
|
|
3746
3744
|
Getter.prototype.Dispose = function () {
|
|
3747
3745
|
var _a;
|
|
3748
3746
|
(_a = this.viewPortRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
3749
3747
|
};
|
|
3748
|
+
Getter.prototype.updateViewport = function () {
|
|
3749
|
+
this.updateBounds();
|
|
3750
|
+
this.startGetterLoop();
|
|
3751
|
+
};
|
|
3750
3752
|
Getter.prototype.updateBounds = function () {
|
|
3751
3753
|
var viewRect = this.viewPort.GetBounds();
|
|
3752
3754
|
var poi = this.viewPort.GetTarget();
|