move tab code out of client

This commit is contained in:
Stewart Allen 2025-07-06 13:32:51 -04:00
commit 24e67e114d
7 changed files with 260 additions and 249 deletions

View file

@ -1,7 +1,7 @@
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
import { api } from '../../kiri/api.js';
import { env } from './client.js';
import { env, isDark } from './client.js';
import { space as SPACE } from '../../moto/space.js';
const { ui: UI } = api;
@ -82,7 +82,7 @@ export function updateStock() {
position.x = center.x;
position.y = center.y;
position.z = center.z;
lines.material.color = new THREE.Color(env.isDark() ? 0x555555 : 0xaaaaaa);
lines.material.color = new THREE.Color(isDark() ? 0x555555 : 0xaaaaaa);
}
SPACE.world.remove(env.camZTop);