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, clearPops } from './client.js';
import { CAM } from './driver-fe.js';
const DEG2RAD = Math.PI / 180;
@ -15,7 +15,7 @@ export function surfaceAdd(ev) {
if (surfaceOn) {
return surfaceDone();
}
env.clearPops();
clearPops();
alert = api.show.alert("analyzing surfaces...", 1000);
let surfaces = env.poppedRec.surfaces;
let radians = env.poppedRec.follow * DEG2RAD;