fix construction of indexed animation tools, rotation sign in topo4, rotation animation
This commit is contained in:
parent
6097557608
commit
718876980b
6 changed files with 81 additions and 57 deletions
|
|
@ -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) },
|
||||
|
|
|
|||
Loading…
Reference in a new issue