minor widget ui edit fixes

This commit is contained in:
Stewart Allen 2025-07-06 21:42:46 -04:00
commit 1d821d4e24
3 changed files with 18 additions and 3 deletions

View file

@ -99,7 +99,7 @@ function trackFn(fn, name) {
function noop() {}
export let utils = {
export {
trackFn,
areEqual,
parseOpt,
@ -114,4 +114,17 @@ export let utils = {
a2c
};
export { parseOpt, encodeOpt, ajax, o2js, js2o, ls2o, rgb, a2c, avgc, areEqual, trackFn, noop };
export let utils = {
trackFn,
areEqual,
parseOpt,
encodeOpt,
noop,
ajax,
o2js,
js2o,
ls2o,
avgc,
rgb,
a2c
};

View file

@ -1,6 +1,7 @@
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
import { base } from '../geo/base.js';
import { avgc } from './utils.js';
import { verticesToPoints } from '../geo/points.js';
import { util as mesh_util } from '../mesh/util.js';

View file

@ -1,5 +1,6 @@
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
import { $ } from '../moto/webui.js';
import { api } from './api.js';
import { load } from '../load/file.js';
import { Widget, newWidget } from './widget.js';
@ -30,7 +31,7 @@ function rename(sel) {
return;
}
let widget = widgets[0];
kiri.ui.prompt("new widget name", widget.meta.file || "no name").then(newname => {
api.uc.prompt("new widget name", widget.meta.file || "no name").then(newname => {
if (newname) {
widget.meta.file = newname;
api.platform.changed();