@pirireis/webglobeplugins 0.10.0-alpha → 0.10.1-alpha
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/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PointCoordinatesDataCalculator1 from "./pointcoordinatesdatacalculator1";
|
|
2
2
|
import HeatWaveDataManager from "./datamanager";
|
|
3
|
-
export { HeatWaveDataManager,
|
|
3
|
+
export { HeatWaveDataManager, PointCoordinatesDataCalculator1 }; // TODO: delete pointcoordinatesdatacalculator1.js
|
|
@@ -51,7 +51,7 @@ export default class PointCoordinatesDataCalculator {
|
|
|
51
51
|
return false;
|
|
52
52
|
this._pointObjects[key].long = long;
|
|
53
53
|
this._pointObjects[key].lat = lat;
|
|
54
|
-
const index = this._metaCalculater.
|
|
54
|
+
const index = this._metaCalculater.getFlooredIndex(long, lat);
|
|
55
55
|
this._pointObjects[key].posIndex = index;
|
|
56
56
|
const { data0, data1, interpolated } = this._findAPoint(index);
|
|
57
57
|
this._pointObjects[key].callback(data0, data1, interpolated);
|
|
@@ -120,7 +120,7 @@ export class TexturePointSampler {
|
|
|
120
120
|
const { posIndex, callback } = pointObject;
|
|
121
121
|
const data0 = this._textures[0][posIndex];
|
|
122
122
|
if (this._textureCount === 1) {
|
|
123
|
-
callback(data0,
|
|
123
|
+
callback(data0, data0, data0);
|
|
124
124
|
}
|
|
125
125
|
else if (this._textureCount === 2) {
|
|
126
126
|
const data1 = this._textures[1][posIndex];
|
package/wind/plugin.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as util from "../util";
|
|
5
5
|
import imageToMagnitude from "./imagetovectorfieldandmagnitude";
|
|
6
|
-
import {
|
|
6
|
+
import { TexturePointSampler } from "../util/heatwavedatamanager/texture-point-sampler";
|
|
7
7
|
/**
|
|
8
8
|
* Shader Dökümanı:
|
|
9
9
|
* * Vektör alan haritasında kaçış değeri
|
|
@@ -538,7 +538,7 @@ export default class WindPlugin {
|
|
|
538
538
|
}
|
|
539
539
|
_createPointCoordinatesDataCalculator() {
|
|
540
540
|
const { bbox, width, height } = this._windDataMeta;
|
|
541
|
-
this.coordinatesDataCalculator = new
|
|
541
|
+
this.coordinatesDataCalculator = new TexturePointSampler(bbox, width, height);
|
|
542
542
|
this._setCoorcinatesDataCalculatorData();
|
|
543
543
|
}
|
|
544
544
|
_setCoorcinatesDataCalculatorData() {
|