fix construction of indexed animation tools, rotation sign in topo4, rotation animation

This commit is contained in:
Stewart Allen 2025-02-16 15:38:01 -05:00
commit 718876980b
6 changed files with 81 additions and 57 deletions

View file

@ -92,6 +92,14 @@ function opacity(value) {
moto.space.update();
}
function setIndexed(value) {
api.widgets.each(w => w.setIndexed(value));
}
function setAxisIndex(value) {
api.widgets.each(w => w.setAxisIndex(value));
}
// extend API (api.widgets)
const widgets = Object.assign(api.widgets, {
load: Widget.loadFromCatalog,
@ -102,6 +110,8 @@ const widgets = Object.assign(api.widgets, {
replace,
opacity,
annotate,
setIndexed,
setAxisIndex,
all() { return WIDGETS.slice() },
add(w) { return WIDGETS.push(w) },
remove(w) { return WIDGETS.remove(w) },