plots: add svg widget draft
This commit is contained in:
parent
6840dc00d0
commit
bd67bb8214
4 changed files with 37 additions and 3 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue