@pirireis/webglobeplugins 0.1.2 → 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);
|
|
@@ -116,8 +116,7 @@ export default class RangeRingAngleText {
|
|
|
116
116
|
|
|
117
117
|
for (const { centerID, x, y, rings, stepAngle, hide = ENUM_HIDE.SHOW, textHide = ENUM_TEXT_HIDE.SHOW } of ringDatas) {
|
|
118
118
|
if (this._centerCollection.has(centerID)) {
|
|
119
|
-
|
|
120
|
-
this._fillDeleteBucket(centerID, stepAngle, deleteBucket);
|
|
119
|
+
this._fillDeleteBucket(centerID, deleteBucket);
|
|
121
120
|
}
|
|
122
121
|
const maxRadius = rings.reduce((acc, { radius }) => Math.max(acc, radius), 0);
|
|
123
122
|
const show = hide !== ENUM_HIDE.HIDE && textHide === ENUM_TEXT_HIDE.SHOW;
|
|
@@ -293,8 +292,8 @@ export default class RangeRingAngleText {
|
|
|
293
292
|
});
|
|
294
293
|
}
|
|
295
294
|
let aci = stepAngle;
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
for (let i = 1; i < coords_.length; i++) {
|
|
296
|
+
if (aci >= 360) break;
|
|
298
297
|
const { long, lat } = coords_[i];
|
|
299
298
|
coords.push(long, lat);
|
|
300
299
|
coordsZ.push(0);
|
package/rangerings/rangerings.js
CHANGED
|
@@ -22,11 +22,11 @@ const { CircleFlatProgram, PaddyFlatProgram, CirclePaddySharedBuffer } = rings;
|
|
|
22
22
|
|
|
23
23
|
export default class {
|
|
24
24
|
|
|
25
|
-
constructor(id, { oneDegreePadding = true, compass = COMPASS_MODES.COMPASS,
|
|
25
|
+
constructor(id, { oneDegreePadding = true, compass = COMPASS_MODES.COMPASS, showNumbers = true } = {}) {
|
|
26
26
|
this.id = id;
|
|
27
27
|
this.compass = compass;
|
|
28
28
|
this._showNumbers = showNumbers;
|
|
29
|
-
this.circleEdgeCount =
|
|
29
|
+
this.circleEdgeCount = 360;
|
|
30
30
|
this._onedegreepaddingOn = oneDegreePadding;
|
|
31
31
|
this.bufferManager = null;
|
|
32
32
|
}
|
|
@@ -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);
|