1.2, h hides labels too
Build and Publish Docker Image / Build and Push Docker Image (push) Successful in 1m32s
Details
Build and Publish Docker Image / Build and Push Docker Image (push) Successful in 1m32s
Details
This commit is contained in:
parent
a165e5f408
commit
eb590b05b5
|
|
@ -216,7 +216,12 @@ document.getElementById('btn-speed-up').addEventListener('click', () => {
|
||||||
document.addEventListener('keydown', (e) => {
|
document.addEventListener('keydown', (e) => {
|
||||||
if (e.target.tagName.toLowerCase() === 'input') return;
|
if (e.target.tagName.toLowerCase() === 'input') return;
|
||||||
if (e.key === 'h' || e.key === 'H') {
|
if (e.key === 'h' || e.key === 'H') {
|
||||||
document.body.classList.toggle('ui-hidden');
|
const isHidden = document.body.classList.toggle('ui-hidden');
|
||||||
|
nodeMeshes.forEach(mesh => {
|
||||||
|
if (mesh.isSprite || mesh.type === 'Sprite') {
|
||||||
|
mesh.visible = !isHidden;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -583,6 +588,7 @@ function build3DCluster(data) {
|
||||||
const sprite = createTextSprite(n.data.name, fontSize, textColor, bgColor, true, isControlPlane);
|
const sprite = createTextSprite(n.data.name, fontSize, textColor, bgColor, true, isControlPlane);
|
||||||
sprite.position.set(centerX, isControlPlane ? 16 : 14, centerZ - nh / 2 - 2);
|
sprite.position.set(centerX, isControlPlane ? 16 : 14, centerZ - nh / 2 - 2);
|
||||||
sprite.userData = nodeUserData;
|
sprite.userData = nodeUserData;
|
||||||
|
sprite.visible = !document.body.classList.contains('ui-hidden');
|
||||||
const labelHit = sprite.getObjectByName('labelHitMesh');
|
const labelHit = sprite.getObjectByName('labelHitMesh');
|
||||||
if (labelHit) {
|
if (labelHit) {
|
||||||
labelHit.userData = nodeUserData;
|
labelHit.userData = nodeUserData;
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
version = 1.1
|
version = 1.2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue