(hex)
| 314 | } |
| 315 | |
| 316 | setGridColor(hex) { |
| 317 | try { |
| 318 | this.gridColor = new THREE.Color(hex); |
| 319 | this.gridMajorColor = this.gridColor.clone().lerp(new THREE.Color(0xffffff), 0.35); |
| 320 | if (this.lastBounds && this.lastRawExtents) { |
| 321 | this.updateGroundPlane(this.lastBounds, this.lastRawExtents, this.lastFlipOptions, this.labelScaleFactor); |
| 322 | } |
| 323 | } catch (error) { |
| 324 | // ignore invalid colors |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | setGridSpacing(value) { |
| 329 | const numeric = Number(value); |
no test coverage detected