formula: undelete for compat
This commit is contained in:
parent
234a8ed354
commit
a2e9a5fe5a
2 changed files with 7 additions and 31 deletions
|
|
@ -57,7 +57,7 @@ module.exports.widgets = {
|
|||
|
||||
// maths
|
||||
// deprecated / hidden
|
||||
// formula: require('./maths/formula')
|
||||
formula: require('./maths/formula')
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,39 +8,15 @@ module.exports = class Formula extends Widget {
|
|||
|
||||
static defaults() {
|
||||
|
||||
return {
|
||||
type:'formula',
|
||||
id:'auto',
|
||||
linkId:'',
|
||||
return super.defaults({
|
||||
|
||||
_geometry:'geometry',
|
||||
_formula: 'formula',
|
||||
|
||||
left:'auto',
|
||||
top:'auto',
|
||||
width:'auto',
|
||||
height:'auto',
|
||||
formula: {type: 'string', value: '', help: ''},
|
||||
condition: {type: 'string', value: '', help: ''},
|
||||
unit: {type: 'string', value: '', help: ''},
|
||||
|
||||
_style:'style',
|
||||
|
||||
label:'auto',
|
||||
color:'auto',
|
||||
css:'',
|
||||
|
||||
_math: 'math',
|
||||
|
||||
formula: '',
|
||||
condition: '',
|
||||
unit: '',
|
||||
|
||||
_osc:'osc',
|
||||
|
||||
precision:2,
|
||||
address:'auto',
|
||||
split:[],
|
||||
preArgs:[],
|
||||
target:[],
|
||||
bypass:false
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue