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.umd.js
CHANGED
|
@@ -3610,7 +3610,6 @@
|
|
|
3610
3610
|
(function (BatchedDataGetter) {
|
|
3611
3611
|
var Getter = /** @class */ (function () {
|
|
3612
3612
|
function Getter(data, viewPort, batchSize) {
|
|
3613
|
-
var _this = this;
|
|
3614
3613
|
this.viewPortRemoval = null;
|
|
3615
3614
|
this.viewRect = null;
|
|
3616
3615
|
this.viewCenter = null;
|
|
@@ -3618,10 +3617,6 @@
|
|
|
3618
3617
|
this.data = data;
|
|
3619
3618
|
this.viewPort = viewPort;
|
|
3620
3619
|
this.batchSize = batchSize;
|
|
3621
|
-
this.viewPortRemoval = this.viewPort.Updated().Subscribe(function () {
|
|
3622
|
-
_this.updateViewport();
|
|
3623
|
-
});
|
|
3624
|
-
this.updateViewport();
|
|
3625
3620
|
}
|
|
3626
3621
|
Object.defineProperty(Getter.prototype, "OnUpdate", {
|
|
3627
3622
|
get: function () {
|
|
@@ -3633,14 +3628,21 @@
|
|
|
3633
3628
|
enumerable: false,
|
|
3634
3629
|
configurable: true
|
|
3635
3630
|
});
|
|
3636
|
-
Getter.prototype.
|
|
3637
|
-
this
|
|
3638
|
-
this.
|
|
3631
|
+
Getter.prototype.Start = function () {
|
|
3632
|
+
var _this = this;
|
|
3633
|
+
this.viewPortRemoval = this.viewPort.Updated().Subscribe(function () {
|
|
3634
|
+
_this.updateViewport();
|
|
3635
|
+
});
|
|
3636
|
+
this.updateViewport();
|
|
3639
3637
|
};
|
|
3640
3638
|
Getter.prototype.Dispose = function () {
|
|
3641
3639
|
var _a;
|
|
3642
3640
|
(_a = this.viewPortRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
3643
3641
|
};
|
|
3642
|
+
Getter.prototype.updateViewport = function () {
|
|
3643
|
+
this.updateBounds();
|
|
3644
|
+
this.startGetterLoop();
|
|
3645
|
+
};
|
|
3644
3646
|
Getter.prototype.updateBounds = function () {
|
|
3645
3647
|
var viewRect = this.viewPort.GetBounds();
|
|
3646
3648
|
var poi = this.viewPort.GetTarget();
|