fix cam tools dialog

This commit is contained in:
Stewart Allen 2025-07-06 00:56:49 -04:00
commit a87e0c937f
5 changed files with 324 additions and 344 deletions

View file

@ -16,6 +16,7 @@ import { platform } from './platform.js';
import { selection } from './selection.js';
import { stats } from '../kiri/stats.js';
import { widgets } from './widgets.js';
import { updateTool } from '../kiri-mode/cam/tools.js';
import { LANG } from './lang.js';
import { LOCAL, SETUP, SECURE } from './main.js';
@ -153,7 +154,9 @@ export const api = {
space,
stacks: STACKS,
stats,
tool: {}, // kiri-mode/cam/tools.js
tool: {
update: updateTool
},
tweak,
uc: UC,
ui: {}, // init.js

View file

@ -19,6 +19,7 @@ import { stats } from '../kiri/stats.js';
import { noop, utils } from '../kiri/utils.js';
import { version } from '../moto/license.js';
import { Widget } from './widget.js';
import { showTools } from '../kiri-mode/cam/tools.js';
let { parseOpt, o2js, js2o, ls2o } = utils,
{ COLOR, MODES, VIEWS } = consts,
@ -119,13 +120,14 @@ export const process = {
export const show = {
alert() { return api.alerts.show(...arguments) },
devices: showDevices,
progress: setProgress,
controls: setControlsVisible,
slices: showSlices,
devices: showDevices,
import() { api.ui.import.style.display = '' },
layer: setVisibleLayer,
local: showLocal,
import: function() { api.ui.import.style.display = '' }
progress: setProgress,
slices: showSlices,
tools: showTools
};
export const space = {