plots: add svg widget draft
This commit is contained in:
parent
3981f93d75
commit
4450c7ef72
4 changed files with 37 additions and 3 deletions
|
|
@ -37,6 +37,7 @@
|
|||
"licensify": "3.1.3",
|
||||
"mathjs": "3.20.2",
|
||||
"minimatch": "^3.0.4",
|
||||
"nanomorph": "^5.1.3",
|
||||
"node-sass": "4.7.2",
|
||||
"nodemon": "1.14.12",
|
||||
"scope-css": "^1.0.5",
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -114,16 +114,47 @@
|
|||
}
|
||||
}
|
||||
|
||||
.svg-container {
|
||||
width:100rem;
|
||||
height:100rem;
|
||||
padding:1rem;
|
||||
.svg {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex: 1 1 100%;
|
||||
background: var(--color-track);
|
||||
border:1rem solid var(--color-bg);
|
||||
@extend .glass-effect;
|
||||
svg {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
}
|
||||
&.noborder {
|
||||
--color-border:transparent;
|
||||
--color-light:transparent;
|
||||
--color-light:transparent;
|
||||
background: transparent;
|
||||
padding: 0!important;
|
||||
.svg {
|
||||
outline:transparent!important;
|
||||
border:0!important;
|
||||
box-shadow:none!important;
|
||||
margin: 0!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.panel:not(.tab) > .led-container,
|
||||
.panel:not(.tab) > .rgbled-container,
|
||||
.panel:not(.tab) > .text-container,
|
||||
.panel:not(.tab) > .visualizer-container,
|
||||
.panel:not(.tab) > .eq-container,
|
||||
.panel:not(.tab) > .plot-container,
|
||||
.panel:not(.tab) > .image-container {
|
||||
.panel:not(.tab) > .image-container,
|
||||
.panel:not(.tab) > .svg-container {
|
||||
--color-border:transparent;
|
||||
padding: 0rem;
|
||||
.plot, .text, .led, .image {
|
||||
.plot, .text, .led, .image, .svg {
|
||||
padding: 0rem;
|
||||
margin: 1rem;
|
||||
background-clip: content-box;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue