@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.
- package/Math/angle-calculation.js +8 -8
- package/Math/arc.js +18 -18
- package/Math/bounds/line-bbox.js +80 -78
- package/Math/constants.js +3 -3
- package/Math/juction/arc-plane.js +23 -23
- package/Math/juction/line-sphere.js +11 -11
- package/Math/juction/plane-plane.js +11 -11
- package/Math/line.js +16 -14
- package/Math/methods.js +72 -67
- package/Math/plane.js +18 -16
- package/Math/quaternion.js +49 -45
- package/Math/utils.js +2 -2
- package/Math/vec3.js +45 -42
- package/algorithms/search-binary.js +4 -4
- package/altitude-locator/draw-subset-obj.js +8 -7
- package/altitude-locator/plugin.js +113 -97
- package/arrowfield/adaptor.js +4 -3
- package/arrowfield/index.js +2 -2
- package/arrowfield/plugin.js +65 -62
- package/bearing-line/index.js +1 -1
- package/bearing-line/plugin.js +225 -200
- package/circle-line-chain/chain-list-map.js +88 -82
- package/circle-line-chain/plugin.js +154 -129
- package/circle-line-chain/util.js +1 -1
- package/compass-rose/compass-rose-padding-flat.js +126 -104
- package/compass-rose/compass-text-writer.js +70 -62
- package/compass-rose/index.js +2 -2
- package/compassrose/compassrose.js +50 -46
- package/compassrose/index.js +1 -1
- package/heatwave/index.js +2 -2
- package/heatwave/isobar/objectarraylabels.js +48 -44
- package/heatwave/isobar/plugin.js +123 -104
- package/heatwave/isobar/quadtreecontours.js +92 -76
- package/heatwave/plugins/heatwaveglobeshell.js +87 -69
- package/index.js +11 -11
- package/package.json +1 -1
- package/partialrings/buffer-manager.js +64 -32
- package/partialrings/index.js +1 -1
- package/partialrings/plugin.js +84 -48
- package/partialrings/program.js +47 -136
- package/pin/pin-object-array.js +86 -83
- package/pin/pin-point-totem.js +22 -21
- package/point-heat-map/adaptors/timetracksplugin-format-to-this.js +10 -10
- package/point-heat-map/plugin-webworker.js +45 -40
- package/point-heat-map/point-to-heat-map-flow.js +42 -40
- package/point-tracks/key-methods.js +1 -1
- package/point-tracks/plugin.js +142 -127
- package/programs/arrowfield/index.js +1 -1
- package/programs/arrowfield/logic.js +62 -170
- package/programs/arrowfield/object.js +35 -33
- package/programs/data2legend/density-to-legend.js +21 -45
- package/programs/data2legend/point-to-density-texture.js +27 -52
- package/programs/float2legendwithratio/index.js +1 -1
- package/programs/float2legendwithratio/logic.js +42 -88
- package/programs/float2legendwithratio/object.js +46 -43
- package/programs/globe-util/is-globe-moved.js +11 -10
- package/programs/globeshell/index.js +1 -1
- package/programs/globeshell/wiggle/index.js +1 -1
- package/programs/globeshell/wiggle/logic.js +98 -191
- package/programs/globeshell/wiggle/object.js +35 -33
- package/programs/helpers/blender/program.js +19 -36
- package/programs/helpers/fadeaway/index.js +1 -1
- package/programs/helpers/fadeaway/logic.js +13 -35
- package/programs/helpers/fadeaway/object.js +10 -9
- package/programs/helpers/index.js +1 -1
- package/programs/index.js +8 -8
- package/programs/line-on-globe/angled-line.js +32 -91
- package/programs/line-on-globe/circle-accurate-3d.js +32 -82
- package/programs/line-on-globe/circle-accurate-flat.js +50 -108
- package/programs/line-on-globe/circle-accurate.js +33 -103
- package/programs/line-on-globe/circle.js +32 -97
- package/programs/line-on-globe/degree-padding-around-circle-3d.js +33 -83
- package/programs/line-on-globe/lines-color-instanced-flat.js +34 -79
- package/programs/line-on-globe/linestrip.js +39 -100
- package/programs/line-on-globe/naive-accurate-flexible.js +48 -118
- package/programs/line-on-globe/to-the-surface.js +29 -58
- package/programs/line-on-globe/util.js +1 -1
- package/programs/picking/pickable-renderer.js +33 -117
- package/programs/point-on-globe/element-globe-surface-glow.js +38 -78
- package/programs/point-on-globe/element-point-glow.js +35 -103
- package/programs/point-on-globe/square-pixel-point.js +27 -76
- package/programs/programcache.js +13 -13
- package/programs/rings/distancering/circleflatprogram.js +21 -63
- package/programs/rings/distancering/circlepaddingfreeangleprogram.js +145 -156
- package/programs/rings/distancering/circlepaddysharedbuffer.js +197 -121
- package/programs/rings/distancering/index.js +4 -4
- package/programs/rings/distancering/paddyflatprogram.js +20 -73
- package/programs/rings/distancering/paddyflatprogram2d.js +22 -75
- package/programs/rings/distancering/paddyflatprogram3d.js +20 -73
- package/programs/rings/partial-ring/piece-of-pie.js +35 -137
- package/programs/totems/camerauniformblock.js +51 -64
- package/programs/totems/canvas-webglobe-info.js +40 -48
- package/programs/totems/gpu-selection-uniform-block.js +40 -44
- package/programs/totems/index.js +1 -1
- package/programs/two-d/pixel-padding-for-compass.js +29 -90
- package/programs/util.js +7 -6
- package/programs/vectorfields/index.js +1 -1
- package/programs/vectorfields/logics/drawrectangleparticles.js +29 -70
- package/programs/vectorfields/logics/index.js +3 -3
- package/programs/vectorfields/logics/pixelbased.js +35 -91
- package/programs/vectorfields/logics/ubo.js +25 -31
- package/programs/vectorfields/pingpongbuffermanager.js +34 -30
- package/rangerings/index.js +4 -4
- package/rangerings/plugin.js +252 -202
- package/rangerings/rangeringangletext.js +120 -108
- package/rangerings/ring-account.js +69 -52
- package/shaders/fragment-toy/firework.js +1 -55
- package/shaders/fragment-toy/singularity.js +1 -55
- package/timetracks/adaptors-line-strip.js +37 -26
- package/timetracks/adaptors.js +61 -47
- package/timetracks/index.js +4 -4
- package/timetracks/plugin-line-strip.js +63 -59
- package/timetracks/plugin.js +69 -65
- package/timetracks/program-line-strip.js +103 -296
- package/timetracks/program.js +113 -419
- package/timetracks/programpoint-line-strip.js +44 -97
- package/timetracks/programpoint.js +44 -90
- package/util/account/bufferoffsetmanager.js +95 -72
- package/util/account/index.js +1 -1
- package/util/account/single-attribute-buffer-management/buffer-manager.js +43 -39
- package/util/account/single-attribute-buffer-management/buffer-orchestrator.js +94 -64
- package/util/account/single-attribute-buffer-management/index.js +3 -3
- package/util/account/single-attribute-buffer-management/object-store.js +30 -28
- package/util/account/util.js +4 -2
- package/util/algorithms/search-binary.js +4 -4
- package/util/check/get.js +5 -5
- package/util/check/typecheck.js +15 -13
- package/util/geometry/index.js +11 -9
- package/util/gl-util/buffer/attribute-loader.js +20 -8
- package/util/gl-util/buffer/index.js +1 -1
- package/util/gl-util/draw-options/methods.js +7 -7
- package/util/gl-util/uniform-block/manager.js +67 -55
- package/util/heatwavedatamanager/datamanager.js +116 -56
- package/util/heatwavedatamanager/index.js +2 -2
- package/util/heatwavedatamanager/pointcoordinatesdatacalculator.js +40 -37
- package/util/heatwavedatamanager/pointcoordsmeta.js +10 -9
- package/util/index.js +6 -6
- package/util/interpolation/timetrack/index.js +1 -1
- package/util/interpolation/timetrack/timetrack-interpolator.js +29 -27
- package/util/interpolation/timetrack/web-worker-str.js +1 -179
- package/util/interpolation/timetrack/web-worker.js +4 -4
- package/util/jshelpers/data-filler.js +7 -7
- package/util/jshelpers/timefilters.js +7 -7
- package/util/picking/fence.js +7 -7
- package/util/picking/picker-displayer.js +52 -46
- package/util/programs/draw-texture-on-canvas.js +21 -39
- package/util/programs/shapesonglobe.js +64 -104
- package/util/programs/supersampletotextures.js +39 -45
- package/util/programs/texturetoglobe.js +48 -98
- package/util/shaderfunctions/geometrytransformations.js +27 -322
- package/util/shaderfunctions/nodata.js +1 -7
- package/util/shaderfunctions/noisefunctions.js +9 -39
- package/util/surface-line-data/arcs-to-cuts.js +23 -20
- package/util/webglobe/rasteroverlay.js +37 -35
- package/util/webglobjectbuilders.js +60 -55
- package/util/webglobjectbuilders1.js +49 -48
- package/waveparticles/adaptor.js +7 -6
- package/waveparticles/index.js +2 -2
- package/waveparticles/plugin.js +84 -79
- package/wind/imagetovectorfieldandmagnitude.js +15 -15
- package/wind/index.js +4 -4
- package/wind/plugin.js +251 -453
- package/wind/vectorfieldimage.js +5 -5
- package/write-text/attached-text-writer.js +48 -46
- package/write-text/context-text.js +58 -51
- 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
|
-
|
|
11
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
tfs.
|
|
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,
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
vaos.
|
|
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,
|
|
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(
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
for (
|
|
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;
|
package/rangerings/index.js
CHANGED
|
@@ -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
|
-
|
|
7
|
+
var plugin_1 = require("./plugin");
|
|
8
8
|
Object.defineProperty(exports, "RangeRings", { enumerable: true, get: function () { return plugin_1.RangeRings; } });
|
|
9
|
-
|
|
9
|
+
var ring_account_1 = require("./ring-account");
|
|
10
10
|
Object.defineProperty(exports, "ringKeyMethod", { enumerable: true, get: function () { return ring_account_1.ringKeyMethod; } });
|
|
11
|
-
|
|
11
|
+
var rangeringangletext_1 = __importDefault(require("./rangeringangletext"));
|
|
12
12
|
exports.RangeRingAngleText = rangeringangletext_1.default;
|
|
13
|
-
|
|
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; } });
|