feat(earth): toolbar and zoom improvements
- Add box-sizing/padding normalization to toolbar buttons - Remove zoom slider, implement click/hold zoom behavior (+/- buttons) - Add 10% step on click, 1% continuous on hold - Fix satellite init: show satellite points immediately, delay trail visibility - Fix breathing effect: faster pulse, wider opacity range - Add toggle-cables functionality with visibility state - Initialize satellites and cables as visible by default
This commit is contained in:
@@ -11,6 +11,7 @@ export let cableLines = [];
|
||||
export let landingPoints = [];
|
||||
export let lockedCable = null;
|
||||
let cableIdMap = new Map();
|
||||
let cablesVisible = true;
|
||||
|
||||
function getCableColor(properties) {
|
||||
if (properties.color) {
|
||||
@@ -406,3 +407,17 @@ export function resetLandingPointVisualState() {
|
||||
lp.scale.setScalar(1.0);
|
||||
});
|
||||
}
|
||||
|
||||
export function toggleCables(show) {
|
||||
cablesVisible = show;
|
||||
cableLines.forEach(cable => {
|
||||
cable.visible = cablesVisible;
|
||||
});
|
||||
landingPoints.forEach(lp => {
|
||||
lp.visible = cablesVisible;
|
||||
});
|
||||
}
|
||||
|
||||
export function getShowCables() {
|
||||
return cablesVisible;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user