widgets: missing property descriptions

This commit is contained in:
bordun 2020-05-09 17:05:52 +02:00
parent 29ad63c7d3
commit 5779443f79
2 changed files with 4 additions and 4 deletions

View file

@ -49,7 +49,7 @@ class Widget extends EventEmitter {
_widget:'widget',
type: {type: 'string', value: 'auto', help: ''},
type: {type: 'string', value: 'auto', help: 'Widget type'},
id: {type: 'string', value: 'auto', help: 'Widgets sharing the same `id` will act as clones and update each other\'s value(s) without sending extra osc messages.' },
visible: {type: 'boolean', value: true, help: 'Set to `false` to hide the widget.'},
interaction: {type: 'boolean', value: true, help: 'Set to `false` to disable pointer interactions.'},
@ -64,8 +64,8 @@ class Widget extends EventEmitter {
'When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).',
'Otherwise, the widget will be absolutely positioned'
]},
width: {type: 'number|percentage', value: 'auto', help: ''},
height: {type: 'number|percentage', value: 'auto', help: ''},
width: {type: 'number|percentage', value: 'auto', help: 'Widget width'},
height: {type: 'number|percentage', value: 'auto', help: 'Widget height'},
expand: {type: 'boolean|number', value: 'false', help: 'If parent\'s layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically.'},
_style:'style',

View file

@ -23,7 +23,7 @@ module.exports = class Plot extends StaticProperties(Canvas, {bypass: true, inte
logScaleX: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm\'s base.'},
logScaleY: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm\'s base.'},
origin: {type: 'number', value: 'auto', help: 'Defines the y axis origin. Set to `false` to disable it.'},
dots: {type: 'boolean', value: true, help: ''},
dots: {type: 'boolean', value: true, help: 'Draw dots on the line'},
bars: {type: 'boolean', value: false, help: 'Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing)'},
pips:{type: 'boolean', value: true, help: 'Set to `false` to hide the scale'},