@pirireis/webglobeplugins 0.1.3 → 0.1.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.
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ out vec4 v_color;
|
|
|
32
32
|
void main() {
|
|
33
33
|
if( flag == 1.0 || radius == 0.0 ) return; // 1.0 is hide
|
|
34
34
|
v_color = color;
|
|
35
|
-
if ( pad_angle == 0.0 ) v_color.rgb
|
|
35
|
+
if ( pad_angle == 0.0 ) v_color.rgb -= 0.2;
|
|
36
36
|
gl_PointSize = 2.0;
|
|
37
37
|
|
|
38
38
|
float odd = mod(float(gl_VertexID), 2.0);
|
|
@@ -292,8 +292,8 @@ export default class RangeRingAngleText {
|
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
let aci = stepAngle;
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
for (let i = 1; i < coords_.length; i++) {
|
|
296
|
+
if (aci >= 360) break;
|
|
297
297
|
const { long, lat } = coords_[i];
|
|
298
298
|
coords.push(long, lat);
|
|
299
299
|
coordsZ.push(0);
|
package/rangerings/rangerings.js
CHANGED
|
@@ -100,7 +100,7 @@ export default class {
|
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* @typedef {Array<{ringID, radius, paddingRange}>} rings
|
|
103
|
-
* @param {Array<centerID:string, x:number, y:number,
|
|
103
|
+
* @param {Array<centerID:string, x:number, y:number, stepAngle:number, rgba:[4 numbers], rings:rings} items
|
|
104
104
|
*/
|
|
105
105
|
insertBulk(items) {
|
|
106
106
|
const insertData = ringItemsToCircleBufferInsertDataAdaptor(items);
|
|
@@ -132,7 +132,6 @@ export default class {
|
|
|
132
132
|
|
|
133
133
|
// TODO: test
|
|
134
134
|
removeCenters(centerIds) {
|
|
135
|
-
|
|
136
135
|
this.bufferManager.removeCenters(centerIds);
|
|
137
136
|
this.paddingBufferManager.removeCenters(centerIds);
|
|
138
137
|
this._textPlugin?.removeCenters(centerIds);
|