MCPcopy Create free account
hub / github.com/DFin/palaeograph / setGridColor

Method setGridColor

src/sceneManager.js:316–326  ·  view source on GitHub ↗
(hex)

Source from the content-addressed store, hash-verified

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);

Callers 2

resetUIFunction · 0.80
main.jsFile · 0.80

Calls 1

updateGroundPlaneMethod · 0.95

Tested by

no test coverage detected