update file names, jsdoc

This commit is contained in:
Stewart Allen 2025-12-25 16:34:17 -05:00
commit d48b083cbc
7 changed files with 14 additions and 14 deletions

View file

@ -35,7 +35,7 @@ import { stats } from './stats.js';
import { types as load } from '../../load/file.js'; import { types as load } from '../../load/file.js';
import { UI } from './inputs.js'; import { UI } from './inputs.js';
import { updateTool } from '../mode/cam/tools.js'; import { updateTool } from '../mode/cam/tools.js';
import { view as viewModule } from './viewmode.js'; import { view as viewModule } from './view-mode.js';
import { visuals } from './visuals.js'; import { visuals } from './visuals.js';
import { widgets } from '../core/widgets.js'; import { widgets } from '../core/widgets.js';
import { workspace } from './workspace.js'; import { workspace } from './workspace.js';

View file

@ -10,7 +10,7 @@ import { settings as set_ctrl } from '../conf/manager.js';
import { settingsOps } from '../conf/settings.js'; import { settingsOps } from '../conf/settings.js';
import { space } from '../../../moto/space.js'; import { space } from '../../../moto/space.js';
import { VIEWS } from '../../core/consts.js'; import { VIEWS } from '../../core/consts.js';
import * as view_tools from '../tools.js'; import * as view_tools from '../face-tool.js';
const { SETUP, LOCAL } = api.const; const { SETUP, LOCAL } = api.const;
const { catalog, client, platform, selection, stats, ui } = api; const { catalog, client, platform, selection, stats, ui } = api;

View file

@ -48,7 +48,7 @@ function send(fn, data, onreply, zerocopy) {
// code is running in the browser / client context // code is running in the browser / client context
export const client = { export const client = {
send: send, send,
setWorkPath(path) { setWorkPath(path) {
workpath = path; workpath = path;

View file

@ -71,7 +71,7 @@ function auto_save() {
* @param {Widget|Array<Widget>} [sel] - Widget(s) to focus on (defaults to all) * @param {Widget|Array<Widget>} [sel] - Widget(s) to focus on (defaults to all)
* @param {object} [point] - Optional point {x, y, z} to focus on directly * @param {object} [point] - Optional point {x, y, z} to focus on directly
*/ */
function setFocus(sel, point) { function set_focus(sel, point) {
if (point) { if (point) {
SPACE.platform.setCenter(point.x, point.z, point.y); SPACE.platform.setCenter(point.x, point.z, point.y);
SPACE.view.setFocus(new THREE.Vector3(point.x, point.y, point.z)); SPACE.view.setFocus(new THREE.Vector3(point.x, point.y, point.z));
@ -111,7 +111,7 @@ function setFocus(sel, point) {
* Shows alert unless quiet=true. * Shows alert unless quiet=true.
* @param {boolean} [quiet] - Suppress "workspace saved" alert * @param {boolean} [quiet] - Suppress "workspace saved" alert
*/ */
function saveWorkspace(quiet) { function save(quiet) {
api.conf.save(); api.conf.save();
const newWidgets = []; const newWidgets = [];
const oldWidgets = js2o(SDB.getItem('ws-widgets'), []); const oldWidgets = js2o(SDB.getItem('ws-widgets'), []);
@ -147,7 +147,7 @@ function saveWorkspace(quiet) {
* @param {boolean} [skip_widget_load] - Skip loading widgets (config only) * @param {boolean} [skip_widget_load] - Skip loading widgets (config only)
* @returns {boolean} True if widgets were queued for loading * @returns {boolean} True if widgets were queued for loading
*/ */
function restoreWorkspace(ondone, skip_widget_load) { function restore(ondone, skip_widget_load) {
let newset = api.conf.restore(false), let newset = api.conf.restore(false),
camera = newset.controller.view, camera = newset.controller.view,
toload = ls2o('ws-widgets',[]), toload = ls2o('ws-widgets',[]),
@ -205,7 +205,7 @@ function restoreWorkspace(ondone, skip_widget_load) {
* Clear all widgets from workspace. * Clear all widgets from workspace.
* Clears worker cache/memory, selects all widgets, and deletes them. * Clears worker cache/memory, selects all widgets, and deletes them.
*/ */
function clearWorkspace() { function clear() {
// free up worker cache/mem // free up worker cache/mem
api.client.clear(); api.client.clear();
platform.select_all(); platform.select_all();
@ -221,12 +221,12 @@ function is_dark() {
} }
export const workspace = { export const workspace = {
reload,
auto_save, auto_save,
restore: restoreWorkspace, clear,
clear: clearWorkspace, is_dark,
save: saveWorkspace, reload,
set_focus: setFocus, restore,
save,
set_focus,
update: SPACE.update, update: SPACE.update,
is_dark
}; };

View file

@ -9,7 +9,7 @@ import { selectHoles } from './cl-hole.js';
import { selectHelical } from './cl-helical.js'; import { selectHelical } from './cl-helical.js';
import { surfaceAdd } from './cl-surface.js'; import { surfaceAdd } from './cl-surface.js';
import { traceAdd } from './cl-trace.js'; import { traceAdd } from './cl-trace.js';
import { startFaceUp } from '../../app/tools.js'; import { startFaceUp } from '../../app/face-tool.js';
const { MODES } = api.const; const { MODES } = api.const;
const { uc: UC } = api; const { uc: UC } = api;