@pirireis/webglobeplugins 0.0.8 → 0.0.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -23,16 +23,16 @@ export const ENUM_HIDE = Object.freeze({ SHOW: 0, HIDE: 1, HIDE_1_DEGREE_PADDING
23
23
 
24
24
  export default class {
25
25
 
26
- constructor(id, paddingOn = true, compass = 1, circleEdgeCount = 360) {
26
+ constructor(id, oneDegreePadding = true, compass = 1, circleEdgeCount = 360) {
27
27
  this.id = id;
28
28
  this.compass = compass;
29
29
  this.circleEdgeCount = circleEdgeCount;
30
- this._paddingOn = paddingOn;
30
+ this._onedegreepaddingOn = oneDegreePadding;
31
31
  this.bufferManager = null;
32
32
  }
33
33
 
34
- setPaddingOn(paddingOn) {
35
- this._paddingOn = paddingOn;
34
+ setOneDegreePaddingOn(oneDegreePadding) {
35
+ this._onedegreepaddingOn = oneDegreePadding;
36
36
  }
37
37
 
38
38
  init(globe, gl) {
@@ -61,7 +61,7 @@ export default class {
61
61
  // gl.enable(gl.BLEND);
62
62
  // gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
63
63
  circleFlatProgram.draw(bufferManager, compass, circleEdgeCount);
64
- if (this._paddingOn) paddyFlatProgram.draw(bufferManager, 360, compass);
64
+ if (this._onedegreepaddingOn) paddyFlatProgram.draw(bufferManager, 360, compass);
65
65
  paddingFreeAngleProgram.draw(paddingBufferManager, compass);
66
66
 
67
67
  gl.enable(gl.DEPTH_TEST);