@pirireis/webglobeplugins 0.9.10 → 0.9.11

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.
Files changed (166) hide show
  1. package/Math/angle-calculation.js +8 -8
  2. package/Math/arc.js +18 -18
  3. package/Math/bounds/line-bbox.js +80 -78
  4. package/Math/constants.js +3 -3
  5. package/Math/juction/arc-plane.js +23 -23
  6. package/Math/juction/line-sphere.js +11 -11
  7. package/Math/juction/plane-plane.js +11 -11
  8. package/Math/line.js +16 -14
  9. package/Math/methods.js +72 -67
  10. package/Math/plane.js +18 -16
  11. package/Math/quaternion.js +49 -45
  12. package/Math/utils.js +2 -2
  13. package/Math/vec3.js +45 -42
  14. package/algorithms/search-binary.js +4 -4
  15. package/altitude-locator/draw-subset-obj.js +8 -7
  16. package/altitude-locator/plugin.js +113 -97
  17. package/arrowfield/adaptor.js +4 -3
  18. package/arrowfield/index.js +2 -2
  19. package/arrowfield/plugin.js +65 -62
  20. package/bearing-line/index.js +1 -1
  21. package/bearing-line/plugin.js +225 -200
  22. package/circle-line-chain/chain-list-map.js +88 -82
  23. package/circle-line-chain/plugin.js +154 -129
  24. package/circle-line-chain/util.js +1 -1
  25. package/compass-rose/compass-rose-padding-flat.js +126 -104
  26. package/compass-rose/compass-text-writer.js +70 -62
  27. package/compass-rose/index.js +2 -2
  28. package/compassrose/compassrose.js +50 -46
  29. package/compassrose/index.js +1 -1
  30. package/heatwave/index.js +2 -2
  31. package/heatwave/isobar/objectarraylabels.js +48 -44
  32. package/heatwave/isobar/plugin.js +123 -104
  33. package/heatwave/isobar/quadtreecontours.js +92 -76
  34. package/heatwave/plugins/heatwaveglobeshell.js +87 -69
  35. package/index.js +11 -11
  36. package/package.json +1 -1
  37. package/partialrings/buffer-manager.js +64 -32
  38. package/partialrings/index.js +1 -1
  39. package/partialrings/plugin.js +84 -48
  40. package/partialrings/program.js +47 -136
  41. package/pin/pin-object-array.js +86 -83
  42. package/pin/pin-point-totem.js +22 -21
  43. package/point-heat-map/adaptors/timetracksplugin-format-to-this.js +10 -10
  44. package/point-heat-map/plugin-webworker.js +45 -40
  45. package/point-heat-map/point-to-heat-map-flow.js +42 -40
  46. package/point-tracks/key-methods.js +1 -1
  47. package/point-tracks/plugin.js +142 -127
  48. package/programs/arrowfield/index.js +1 -1
  49. package/programs/arrowfield/logic.js +62 -170
  50. package/programs/arrowfield/object.js +35 -33
  51. package/programs/data2legend/density-to-legend.js +21 -45
  52. package/programs/data2legend/point-to-density-texture.js +27 -52
  53. package/programs/float2legendwithratio/index.js +1 -1
  54. package/programs/float2legendwithratio/logic.js +42 -88
  55. package/programs/float2legendwithratio/object.js +46 -43
  56. package/programs/globe-util/is-globe-moved.js +11 -10
  57. package/programs/globeshell/index.js +1 -1
  58. package/programs/globeshell/wiggle/index.js +1 -1
  59. package/programs/globeshell/wiggle/logic.js +98 -191
  60. package/programs/globeshell/wiggle/object.js +35 -33
  61. package/programs/helpers/blender/program.js +19 -36
  62. package/programs/helpers/fadeaway/index.js +1 -1
  63. package/programs/helpers/fadeaway/logic.js +13 -35
  64. package/programs/helpers/fadeaway/object.js +10 -9
  65. package/programs/helpers/index.js +1 -1
  66. package/programs/index.js +8 -8
  67. package/programs/line-on-globe/angled-line.js +32 -91
  68. package/programs/line-on-globe/circle-accurate-3d.js +32 -82
  69. package/programs/line-on-globe/circle-accurate-flat.js +50 -108
  70. package/programs/line-on-globe/circle-accurate.js +33 -103
  71. package/programs/line-on-globe/circle.js +32 -97
  72. package/programs/line-on-globe/degree-padding-around-circle-3d.js +33 -83
  73. package/programs/line-on-globe/lines-color-instanced-flat.js +34 -79
  74. package/programs/line-on-globe/linestrip.js +39 -100
  75. package/programs/line-on-globe/naive-accurate-flexible.js +48 -118
  76. package/programs/line-on-globe/to-the-surface.js +29 -58
  77. package/programs/line-on-globe/util.js +1 -1
  78. package/programs/picking/pickable-renderer.js +33 -117
  79. package/programs/point-on-globe/element-globe-surface-glow.js +38 -78
  80. package/programs/point-on-globe/element-point-glow.js +35 -103
  81. package/programs/point-on-globe/square-pixel-point.js +27 -76
  82. package/programs/programcache.js +13 -13
  83. package/programs/rings/distancering/circleflatprogram.js +21 -63
  84. package/programs/rings/distancering/circlepaddingfreeangleprogram.js +145 -156
  85. package/programs/rings/distancering/circlepaddysharedbuffer.js +197 -121
  86. package/programs/rings/distancering/index.js +4 -4
  87. package/programs/rings/distancering/paddyflatprogram.js +20 -73
  88. package/programs/rings/distancering/paddyflatprogram2d.js +22 -75
  89. package/programs/rings/distancering/paddyflatprogram3d.js +20 -73
  90. package/programs/rings/partial-ring/piece-of-pie.js +35 -137
  91. package/programs/totems/camerauniformblock.js +51 -64
  92. package/programs/totems/canvas-webglobe-info.js +40 -48
  93. package/programs/totems/gpu-selection-uniform-block.js +40 -44
  94. package/programs/totems/index.js +1 -1
  95. package/programs/two-d/pixel-padding-for-compass.js +29 -90
  96. package/programs/util.js +7 -6
  97. package/programs/vectorfields/index.js +1 -1
  98. package/programs/vectorfields/logics/drawrectangleparticles.js +29 -70
  99. package/programs/vectorfields/logics/index.js +3 -3
  100. package/programs/vectorfields/logics/pixelbased.js +35 -91
  101. package/programs/vectorfields/logics/ubo.js +25 -31
  102. package/programs/vectorfields/pingpongbuffermanager.js +34 -30
  103. package/rangerings/index.js +4 -4
  104. package/rangerings/plugin.js +252 -202
  105. package/rangerings/rangeringangletext.js +120 -108
  106. package/rangerings/ring-account.js +69 -52
  107. package/shaders/fragment-toy/firework.js +1 -55
  108. package/shaders/fragment-toy/singularity.js +1 -55
  109. package/timetracks/adaptors-line-strip.js +37 -26
  110. package/timetracks/adaptors.js +61 -47
  111. package/timetracks/index.js +4 -4
  112. package/timetracks/plugin-line-strip.js +63 -59
  113. package/timetracks/plugin.js +69 -65
  114. package/timetracks/program-line-strip.js +103 -296
  115. package/timetracks/program.js +113 -419
  116. package/timetracks/programpoint-line-strip.js +44 -97
  117. package/timetracks/programpoint.js +44 -90
  118. package/util/account/bufferoffsetmanager.js +95 -72
  119. package/util/account/index.js +1 -1
  120. package/util/account/single-attribute-buffer-management/buffer-manager.js +43 -39
  121. package/util/account/single-attribute-buffer-management/buffer-orchestrator.js +94 -64
  122. package/util/account/single-attribute-buffer-management/index.js +3 -3
  123. package/util/account/single-attribute-buffer-management/object-store.js +30 -28
  124. package/util/account/util.js +4 -2
  125. package/util/algorithms/search-binary.js +4 -4
  126. package/util/check/get.js +5 -5
  127. package/util/check/typecheck.js +15 -13
  128. package/util/geometry/index.js +11 -9
  129. package/util/gl-util/buffer/attribute-loader.js +20 -8
  130. package/util/gl-util/buffer/index.js +1 -1
  131. package/util/gl-util/draw-options/methods.js +7 -7
  132. package/util/gl-util/uniform-block/manager.js +67 -55
  133. package/util/heatwavedatamanager/datamanager.js +116 -56
  134. package/util/heatwavedatamanager/index.js +2 -2
  135. package/util/heatwavedatamanager/pointcoordinatesdatacalculator.js +40 -37
  136. package/util/heatwavedatamanager/pointcoordsmeta.js +10 -9
  137. package/util/index.js +6 -6
  138. package/util/interpolation/timetrack/index.js +1 -1
  139. package/util/interpolation/timetrack/timetrack-interpolator.js +29 -27
  140. package/util/interpolation/timetrack/web-worker-str.js +1 -179
  141. package/util/interpolation/timetrack/web-worker.js +4 -4
  142. package/util/jshelpers/data-filler.js +7 -7
  143. package/util/jshelpers/timefilters.js +7 -7
  144. package/util/picking/fence.js +7 -7
  145. package/util/picking/picker-displayer.js +52 -46
  146. package/util/programs/draw-texture-on-canvas.js +21 -39
  147. package/util/programs/shapesonglobe.js +64 -104
  148. package/util/programs/supersampletotextures.js +39 -45
  149. package/util/programs/texturetoglobe.js +48 -98
  150. package/util/shaderfunctions/geometrytransformations.js +27 -322
  151. package/util/shaderfunctions/nodata.js +1 -7
  152. package/util/shaderfunctions/noisefunctions.js +9 -39
  153. package/util/surface-line-data/arcs-to-cuts.js +23 -20
  154. package/util/webglobe/rasteroverlay.js +37 -35
  155. package/util/webglobjectbuilders.js +60 -55
  156. package/util/webglobjectbuilders1.js +49 -48
  157. package/waveparticles/adaptor.js +7 -6
  158. package/waveparticles/index.js +2 -2
  159. package/waveparticles/plugin.js +84 -79
  160. package/wind/imagetovectorfieldandmagnitude.js +15 -15
  161. package/wind/index.js +4 -4
  162. package/wind/plugin.js +251 -453
  163. package/wind/vectorfieldimage.js +5 -5
  164. package/write-text/attached-text-writer.js +48 -46
  165. package/write-text/context-text.js +58 -51
  166. package/write-text/context-text3.js +74 -69
@@ -7,8 +7,9 @@
7
7
  * update coords and draw particles programs will use this class.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- class default_1 {
11
- constructor(gl, particleCount, inPositionLocation = 0) {
10
+ var default_1 = /** @class */ (function () {
11
+ function default_1(gl, particleCount, inPositionLocation) {
12
+ if (inPositionLocation === void 0) { inPositionLocation = 0; }
12
13
  this.gl = gl;
13
14
  this._inPositionLocation = inPositionLocation;
14
15
  this._buffers = [gl.createBuffer(), gl.createBuffer()];
@@ -17,8 +18,8 @@ class default_1 {
17
18
  this.setParticleCount(particleCount);
18
19
  this._index = 0;
19
20
  }
20
- setParticleCount(count) {
21
- const gl = this.gl;
21
+ default_1.prototype.setParticleCount = function (count) {
22
+ var gl = this.gl;
22
23
  this.length = count;
23
24
  gl.bindBuffer(gl.ARRAY_BUFFER, this._buffers[0]);
24
25
  gl.bufferData(gl.ARRAY_BUFFER, randomNumbers(this.length * 2), gl.DYNAMIC_DRAW);
@@ -26,50 +27,53 @@ class default_1 {
26
27
  gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(this.length * 2), gl.DYNAMIC_DRAW);
27
28
  gl.bindBuffer(gl.ARRAY_BUFFER, null);
28
29
  this._index = 0;
29
- }
30
- _createTransformFeedbacksAndBindBuffers() {
31
- const gl = this.gl;
32
- const tfs = [gl.createTransformFeedback(), gl.createTransformFeedback()];
33
- tfs.forEach((tf, idx) => {
30
+ };
31
+ default_1.prototype._createTransformFeedbacksAndBindBuffers = function () {
32
+ var _this = this;
33
+ var gl = this.gl;
34
+ var tfs = [gl.createTransformFeedback(), gl.createTransformFeedback()];
35
+ tfs.forEach(function (tf, idx) {
34
36
  gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, tf);
35
- gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, this._buffers[idx]);
37
+ gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, _this._buffers[idx]);
36
38
  });
37
39
  gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, null);
38
40
  return tfs;
39
- }
40
- _createVaos() {
41
- const gl = this.gl;
42
- const vaos = [gl.createVertexArray(), gl.createVertexArray()];
43
- vaos.forEach((vao, idx) => {
41
+ };
42
+ default_1.prototype._createVaos = function () {
43
+ var _this = this;
44
+ var gl = this.gl;
45
+ var vaos = [gl.createVertexArray(), gl.createVertexArray()];
46
+ vaos.forEach(function (vao, idx) {
44
47
  gl.bindVertexArray(vao);
45
- gl.bindBuffer(gl.ARRAY_BUFFER, this._buffers[idx]);
48
+ gl.bindBuffer(gl.ARRAY_BUFFER, _this._buffers[idx]);
46
49
  gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);
47
50
  gl.vertexAttribDivisor(0, 1);
48
- gl.enableVertexAttribArray(this._inPositionLocation);
51
+ gl.enableVertexAttribArray(_this._inPositionLocation);
49
52
  gl.bindVertexArray(null);
50
53
  });
51
54
  return vaos;
52
- }
53
- getSourceVao() { return this._vaos[this._index]; }
54
- getTargetVao() { return this._vaos[1 - this._index]; }
55
- sourceBuffer() { return this._buffers[this._index]; }
56
- targetBuffer() { return this._buffers[1 - this._index]; }
57
- getTargetTF() { return this._tfs[1 - this._index]; }
58
- swap() { this._index = 1 - this._index; }
59
- free() {
55
+ };
56
+ default_1.prototype.getSourceVao = function () { return this._vaos[this._index]; };
57
+ default_1.prototype.getTargetVao = function () { return this._vaos[1 - this._index]; };
58
+ default_1.prototype.sourceBuffer = function () { return this._buffers[this._index]; };
59
+ default_1.prototype.targetBuffer = function () { return this._buffers[1 - this._index]; };
60
+ default_1.prototype.getTargetTF = function () { return this._tfs[1 - this._index]; };
61
+ default_1.prototype.swap = function () { this._index = 1 - this._index; };
62
+ default_1.prototype.free = function () {
60
63
  this.gl.deleteBuffer(this._buffers[0]);
61
64
  this.gl.deleteBuffer(this._buffers[1]);
62
65
  this.gl.deleteTransformFeedback(this._tfs[0]);
63
66
  this.gl.deleteTransformFeedback(this._tfs[1]);
64
67
  this.gl.deleteVertexArray(this._vaos[0]);
65
68
  this.gl.deleteVertexArray(this._vaos[1]);
66
- }
67
- }
69
+ };
70
+ return default_1;
71
+ }());
68
72
  exports.default = default_1;
69
73
  function randomNumbers(count) {
70
- const result = new Float32Array(count);
71
- const random = Math.random;
72
- for (let i = 0; i < count; i++) {
74
+ var result = new Float32Array(count);
75
+ var random = Math.random;
76
+ for (var i = 0; i < count; i++) {
73
77
  result[i] = random() * 2 - 1;
74
78
  }
75
79
  return result;
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ringKeyMethod = exports.RangeRingAngleText = exports.ENUM_TEXT_HIDE = exports.ENUM_HIDE = exports.RangeRings = void 0;
7
- const plugin_1 = require("./plugin");
7
+ var plugin_1 = require("./plugin");
8
8
  Object.defineProperty(exports, "RangeRings", { enumerable: true, get: function () { return plugin_1.RangeRings; } });
9
- const ring_account_1 = require("./ring-account");
9
+ var ring_account_1 = require("./ring-account");
10
10
  Object.defineProperty(exports, "ringKeyMethod", { enumerable: true, get: function () { return ring_account_1.ringKeyMethod; } });
11
- const rangeringangletext_1 = __importDefault(require("./rangeringangletext"));
11
+ var rangeringangletext_1 = __importDefault(require("./rangeringangletext"));
12
12
  exports.RangeRingAngleText = rangeringangletext_1.default;
13
- const enum_1 = require("./enum");
13
+ var enum_1 = require("./enum");
14
14
  Object.defineProperty(exports, "ENUM_HIDE", { enumerable: true, get: function () { return enum_1.ENUM_HIDE; } });
15
15
  Object.defineProperty(exports, "ENUM_TEXT_HIDE", { enumerable: true, get: function () { return enum_1.ENUM_TEXT_HIDE; } });