formula: undelete for compat

This commit is contained in:
jean-emmanuel 2018-08-30 14:37:01 +02:00
parent 234a8ed354
commit a2e9a5fe5a
2 changed files with 7 additions and 31 deletions

View file

@ -57,7 +57,7 @@ module.exports.widgets = {
// maths
// deprecated / hidden
// formula: require('./maths/formula')
formula: require('./maths/formula')
}

View file

@ -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
}
})
}