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