@pirireis/webglobeplugins 0.7.3 → 0.7.4

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.
@@ -49,7 +49,6 @@ export class PixelPaddingCompassTextWriter {
49
49
  this.northFont = northFont;
50
50
  this.doDraw = doDraw;
51
51
  this.angle = angle;
52
- console.log("CSMeasureTextPositionTypes", CSMeasureTextPositionTypes);
53
52
  this.angles = []
54
53
  this.texts = []
55
54
  this.positions = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -39,7 +39,8 @@ class PointHeatmapPlugin {
39
39
  this.globe = globe;
40
40
  this.gl = gl;
41
41
  this.flow = new PointHeatmapFlow(globe);
42
-
42
+ this.setGeometry();
43
+ this.resize();
43
44
  }
44
45
 
45
46
 
@@ -62,11 +63,8 @@ class PointHeatmapPlugin {
62
63
  if (this.gl === null) {
63
64
  throw new Error('Plugin not initialized');
64
65
  };
65
- console.log(values, thresholds, mode);
66
66
  const rampData = getColorRampModed(values, thresholds, mode);
67
- console.log(rampData);
68
67
  const texture = createTexture(gl, gl.LINEAR, rampData, 256, 1);
69
- console.log(texture);
70
68
  if (this._legendTexture) {
71
69
  this.gl.deleteTexture(this._legendTexture);
72
70
  }
@@ -24,7 +24,8 @@ class PointHeatmapPlugin {
24
24
  this.globe = globe;
25
25
  this.gl = gl;
26
26
  this.flow = new PointHeatmapFlow(globe);
27
-
27
+ this.setGeometry();
28
+ this.resize();
28
29
  }
29
30
 
30
31
 
@@ -47,11 +48,8 @@ class PointHeatmapPlugin {
47
48
  if (this.gl === null) {
48
49
  throw new Error('Plugin not initialized');
49
50
  };
50
- console.log(values, thresholds, mode);
51
51
  const rampData = getColorRampModed(values, thresholds, mode);
52
- console.log(rampData);
53
52
  const texture = createTexture(gl, gl.LINEAR, rampData, 256, 1);
54
- console.log(texture);
55
53
  if (this._legendTexture) {
56
54
  this.gl.deleteTexture(this._legendTexture);
57
55
  }
@@ -364,18 +364,4 @@ export default class RangeRingAngleText {
364
364
  this._updateData(updateBucket, CSObjectArrayUpdateTypes.UPDATE);
365
365
  }
366
366
 
367
- }
368
-
369
-
370
-
371
- const realCircle = (globe, longitude, latitude, radius, stepAngle) => {
372
- const pointsLongLat = globe.Math.F(
373
- longitude,
374
- latitude,
375
- radius,
376
- radius,
377
- 0,
378
- stepAngle);
379
- console.log("pointsLongLat", stepAngle, pointsLongLat)
380
- return pointsLongLat;
381
- }
367
+ }
@@ -178,7 +178,6 @@ export default class TimeTrackMultiColorPlugin {
178
178
  * Check Class constructor
179
179
  */
180
180
  setData(data) {
181
- console.log(data);
182
181
  if (this.gl) {
183
182
  this._ready = false;
184
183
  this.setDataAsFloat32Array(data);
@@ -42,7 +42,6 @@ class TimeTrackInterpolator {
42
42
  }
43
43
 
44
44
  setTimetracks(timeTracks) {
45
- console.log("timetracks:", timeTracks);
46
45
  this.timeTracks = timeTracks;
47
46
  }
48
47
 
@@ -89,7 +89,6 @@ class TimeTrackInterpolator {
89
89
  }
90
90
 
91
91
  setTimetracks(timeTracks) {
92
- console.log("timetracks:", timeTracks);
93
92
  this.timeTracks = timeTracks;
94
93
  }
95
94
 
@@ -51,7 +51,7 @@ export function createProgramWrapper(gl, vertexSource, fragmentSource) {
51
51
 
52
52
  gl.linkProgram(program);
53
53
  if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
54
- console.log(gl.getProgramInfoLog(program));
54
+ // console.log(gl.getProgramInfoLog(program));
55
55
  throw new Error(gl.getProgramInfoLog(program));
56
56
  }
57
57