plots: add svg widget draft

This commit is contained in:
jean-emmanuel 2018-02-13 10:02:41 +01:00
parent 3981f93d75
commit 4450c7ef72
4 changed files with 37 additions and 3 deletions

View file

@ -127,6 +127,7 @@ class Canvas extends Widget {
var style = style || window.getComputedStyle(this.canvas)
this.colors.custom = style.getPropertyValue('--color-custom')
this.colors.track = style.getPropertyValue('--color-track')
this.colors.text = style.getPropertyValue('--color-text')
this.colors.raised = style.getPropertyValue('--color-raised')
this.colors.bg = style.getPropertyValue('--color-bg')

View file

@ -35,6 +35,7 @@ module.exports.widgets = {
meter: require('./plots/meter'),
text: require('./plots/text'),
image: require('./plots/image'),
svg: require('./plots/svg'),
// containers
strip: require('./containers/strip'),
@ -60,7 +61,7 @@ module.exports.categories = {
'Buttons':['toggle','push','switch', 'dropdown'],
'Pads':['xy','rgb','multixy'],
'Matrices':['multifader','multitoggle','multipush', 'keyboard'],
'Plots':['plot','eq','visualizer','led', 'rgbled','meter','text', 'image'],
'Plots':['plot','eq','visualizer','led', 'rgbled','meter','text', 'image', 'svg'],
'Containers':['panel','strip','modal', 'clone'],
'Switchers':['switcher','crossfader'],
'Inputs':['input', 'keys'],