@grame/faust-ui 0.0.0-stage → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +168 -2
- package/dist/esm/index.css +448 -0
- package/dist/esm/index.css.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +3871 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/index.d.ts +684 -0
- package/dist/index.html +17 -0
- package/dist/index.js +5720 -0
- package/dist/index.js.map +1 -0
- package/dist/test.html +29 -0
- package/package.json +61 -4
package/README.md
CHANGED
|
@@ -1,3 +1,169 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FaustUI [](https://996.icu/#/en_US)
|
|
2
|
+
|
|
3
|
+
This project is an user interface parser, compositor and components renderer for Faust Programming language. [Faust user interface widgets/primitives](https://faust.grame.fr/doc/manual/index.html#user-interface-primitives-and-configuration) allow for an **abstract** description of a user interface from within the Faust code. This description is independent from any GUI toolkits/frameworks and is purely abstract. Widgets can be **discrete** (e.g., `button`, `checkbox`, etc.), **continuous** (e.g., `hslider`, `vslider`, `nentry`), and **organizational** (e.g., `vgroup`, `hgroup`).
|
|
4
|
+
|
|
5
|
+
Discrete and continuous elements are signal generators. For example, a `button` produces a signal which is 1 when the button is pressed and 0 otherwise:
|
|
6
|
+
|
|
7
|
+
When a Faust DSP code is compiled, a corresponding JSON file will be generated with data related to the DSP including its UI structure information. FaustUI takes these information as input in order to generate an user interface in an HTML environment with hooks to communicate with the actual DSP.
|
|
8
|
+
|
|
9
|
+
## Communicator
|
|
10
|
+
`./src/FaustUI.ts` is the main class that can be loaded in a seperate browser `window` or `iframe`. the class listens to messages that comes by `window.postMessage`.
|
|
11
|
+
Two type of messages are listening by the `FaustUI` class.
|
|
12
|
+
1. Parameter change: If the message has a `type` key with a value of `param`, the corresponding UI component with a same parameter path will display the changed parameter.
|
|
13
|
+
2. New UI: If tye message has a `type` key with a value of `ui`, the class will re-render the incoming new UI.
|
|
14
|
+
|
|
15
|
+
When a message is received, the window that initiated this message will be considered as the `host`. Then if a UI component is changed by user, the component will call `FaustUI` class's `paramChangeByUI` function which posts a `param` message to the `host` window.
|
|
16
|
+
|
|
17
|
+
User can also override the `paramChangeByUI` function or manually call `paramChangeByDSP` method to communicate differently with the UI or the DSP.
|
|
18
|
+
|
|
19
|
+
Call the `destroy` method before dropping a `FaustUI`, or before creating another one in the same root: it stops listening to the window and removes the UI from its root. Otherwise the old instance keeps receiving the window messages and mounting the UIs they bring.
|
|
20
|
+
|
|
21
|
+
Once a new UI needs to be rendered, the class will firstly send it to a layout parser/calculator in order to get the coordination and size of each component.
|
|
22
|
+
|
|
23
|
+
## Parser
|
|
24
|
+
A structure definition of the UI information provided by Faust compiler can be found in `./src/types.d.ts`. The parser `./src/layout/Layout.ts` analyses the raw UI object recursively, then transform each UI component into a corresponding layout class instance. The class adds the dimensions and methods of components in order to calculate and adjust the position and the size of them.
|
|
25
|
+
|
|
26
|
+
### Grid system
|
|
27
|
+
The layout calculation uses `grids` as unit as components has an original width and height in `grids`. Once the layout is calculated, the amount of grids of each components should be fixed. Renderer can simply multiply these amount by a factor to change the actual relative size without recalculating their positions and dimensions.
|
|
28
|
+
|
|
29
|
+
### Primitives and their variations
|
|
30
|
+
Faust have 3 organizational UI primitives, aka groups, a group contains other UI items that can also be groups:
|
|
31
|
+
|
|
32
|
+
`vgroup` for a group whose items are aligned vertically
|
|
33
|
+
|
|
34
|
+
`hgroup` for a group whose items are aligned horizontally
|
|
35
|
+
|
|
36
|
+
`tgroup` for a group that has tabs to switch panels for each item.
|
|
37
|
+
|
|
38
|
+
5 "input" UI primitives that are UI-to-DSP controllers:
|
|
39
|
+
|
|
40
|
+
`button` for a buton that gives `1` on press and `0` on release.
|
|
41
|
+
|
|
42
|
+
`checkbox` for a toggle that gives `1` or `0` by its state.
|
|
43
|
+
|
|
44
|
+
`hslider` for a horizontal slider.
|
|
45
|
+
|
|
46
|
+
`vslider` for a vertical slider.
|
|
47
|
+
|
|
48
|
+
`nentry` for a numerical entry that is basically an input box
|
|
49
|
+
|
|
50
|
+
2 "output" UI primitives that are DSP-to-UI monitors:
|
|
51
|
+
|
|
52
|
+
`hbargraph` for a horizontal bar-graph that can be used to show any number in range. (e.g. signal level meter)
|
|
53
|
+
|
|
54
|
+
`vbargraph` for a vertical bar-graph
|
|
55
|
+
|
|
56
|
+
By defining a `style` metadata, user can eventually override the look of a UI primitive. Variations that are supported officially for `hslider`, `vslider` and `nentry`:
|
|
57
|
+
|
|
58
|
+
`knob` (`[style:knob]` Metadata) for a rotary control knob
|
|
59
|
+
|
|
60
|
+
`menu` (`[style:menu{'Name0':value0;'Name1':value1}]` Metadata) for a drop-down menu that provide options and their values.
|
|
61
|
+
|
|
62
|
+
`radio` (`[style:radio{'Name0':value0;'Name1':value1}]` Metadata) for a radio menu.
|
|
63
|
+
|
|
64
|
+
`hbargraph` and `vbargraph`'s variations:
|
|
65
|
+
|
|
66
|
+
`led` (`[style:led]` Metadata) for a colored light.
|
|
67
|
+
|
|
68
|
+
`numerical` (`[style:numerical)` Metadata) for a numerical box that displays only values.
|
|
69
|
+
|
|
70
|
+
### Sizing
|
|
71
|
+
Each UI component has its initial dimensions in grids. Then some of them can be extensible in one or two axis if they have extra spaces.
|
|
72
|
+
|
|
73
|
+
| type | vertically extensible | horizontal extensible |
|
|
74
|
+
|-----------|--------------------------------|--------------------------------|
|
|
75
|
+
| hgroup | if has v-extensible descendant | if has h-extensible descendant |
|
|
76
|
+
| vgroup | if has v-extensible descendant | if has h-extensible descendant |
|
|
77
|
+
| tgroup | if has v-extensible descendant | if has h-extensible descendant |
|
|
78
|
+
| button | no | yes |
|
|
79
|
+
| checkbox | no | yes |
|
|
80
|
+
| hslider | no | yes |
|
|
81
|
+
| vslider | yes | no |
|
|
82
|
+
| nentry | no | no |
|
|
83
|
+
| knob | no | no |
|
|
84
|
+
| menu | no | yes |
|
|
85
|
+
| radio | yes | yes |
|
|
86
|
+
| hbargraph | no | yes |
|
|
87
|
+
| vbargraph | yes | no |
|
|
88
|
+
| led | no | no |
|
|
89
|
+
| numerical | no | no |
|
|
90
|
+
|
|
91
|
+
### Padding
|
|
92
|
+
In order to render the layout elegantly, some paddings are added to the groups and between each items. These values can be found under `./src/layout/AbstractGroup.ts`.
|
|
93
|
+
|
|
94
|
+
## Layout Calculation
|
|
95
|
+
The layout calculation is done in 4 phases:
|
|
96
|
+
1. inject height and width information to each items.
|
|
97
|
+
2. calculate groups' initial size by sum up descendants' size.
|
|
98
|
+
3. expand items if they are extensible. The extra space in a group should be shared by all extensibles.
|
|
99
|
+
4. calculate the coordination of each item, align them to the middle line of the group. This adds absolute position (x, y relative to root: `left` and `top`) and relative position (x, y relative to parent group: `offsetLeft` and `offsetTop`).
|
|
100
|
+
|
|
101
|
+
Each phase of the calculation is called recursively and initiate by a "root" group. Thus once it's calculated, the "root" group and its descendants contains all information about position and size.
|
|
102
|
+
|
|
103
|
+
## Rendering
|
|
104
|
+
Component rendering constructors can be found below `./src/components` folder. After the layout calculation, `FaustUI` construct the `root` group with the group constructor that will construct all its descendants.
|
|
105
|
+
|
|
106
|
+
The UI rendering is also done in 4 phases:
|
|
107
|
+
1. construct each component by its corresponding class constructor. The component register itself using `FaustUI` class's `register` method.
|
|
108
|
+
2. `componentWillMount` method is called by a component's parent group, the component should prepare all DOM elements that need to be mounted to DOM tree.
|
|
109
|
+
3. `mount` method is called by a component's parent group, the component should get its `container` mounted with children DOM elements. Then the parent group will fill its `container` by its children's `container`s.
|
|
110
|
+
4. `componentDidMount` method is called by a component's parent group, the component now have all its DOM elements connected to the page. Thus their `getBoundingRect` method can be used in order to justify and draw canvas etc. It should also bind events to state changes in this phase.
|
|
111
|
+
|
|
112
|
+
A more detailed description of UI component class can be found in `./src/components/Component.ts`
|
|
113
|
+
|
|
114
|
+
## Installing
|
|
115
|
+
FaustUI is published on npm as `@grame/faust-ui`:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
npm install @grame/faust-ui
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The package holds the built files only: `dist/index.js` (UMD, styles included), `dist/esm/index.js` with `dist/esm/index.css` (ES module), `dist/index.d.ts` (types) and `dist/index.html` (a page that instantiates FaustUI in a window or an iframe). The types refer to those of `@grame/faustwasm`, an optional peer dependency: install it to type-check code that uses FaustUI.
|
|
122
|
+
|
|
123
|
+
## Building
|
|
124
|
+
Install dev dependencies:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
npm install
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Build the UMD and ES module bundles and the types into `./dist`:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npm run build
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
To test, put the directory in a local server, then open the following page: `./dist/test.html`
|
|
137
|
+
|
|
138
|
+
## Testing
|
|
139
|
+
The tests use [Vitest](https://vitest.dev) in two projects: `unit`, the layout, the components and `FaustUI` in Node with jsdom (`./test`), and `browser`, the rendered UI and the pointer interactions in a headless Chromium driven by Playwright (`./test/browser`).
|
|
140
|
+
|
|
141
|
+
The browser tests need Chromium, installed once with:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
npx playwright install chromium
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Run all the tests:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
npm test
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Run them with a coverage report of the sources, printed and written to `./coverage/index.html`:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
npm run coverage
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
GitHub Actions runs them with the coverage report on each push to `master` and on each pull request (`./.github/workflows/test.yml`).
|
|
160
|
+
|
|
161
|
+
## Versioning
|
|
162
|
+
Raise the version number in `package.json`, commit, then publish:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
npm publish
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
`prepublishOnly` runs the tests and builds `./dist` first, so a failing test stops the publication. The package is public in the `@grame` scope (`publishConfig.access`).
|
|
2
169
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
/*!***********************************************************************************************************************************************!*\
|
|
2
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Base.scss ***!
|
|
3
|
+
\***********************************************************************************************************************************************/
|
|
4
|
+
.faust-ui-component {
|
|
5
|
+
display: flex;
|
|
6
|
+
position: absolute;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
.faust-ui-component:focus {
|
|
11
|
+
outline: none;
|
|
12
|
+
}
|
|
13
|
+
.faust-ui-component > .faust-ui-component-label {
|
|
14
|
+
position: relative;
|
|
15
|
+
margin-top: 4px;
|
|
16
|
+
width: 100%;
|
|
17
|
+
user-select: none;
|
|
18
|
+
}
|
|
19
|
+
.faust-ui-component > .faust-ui-component-label > canvas {
|
|
20
|
+
position: relative;
|
|
21
|
+
display: block;
|
|
22
|
+
max-width: 100%;
|
|
23
|
+
max-height: 100%;
|
|
24
|
+
}
|
|
25
|
+
.faust-ui-component input {
|
|
26
|
+
box-shadow: none;
|
|
27
|
+
}
|
|
28
|
+
/*!**************************************************************************************************************************************************!*\
|
|
29
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/VSlider.scss ***!
|
|
30
|
+
\**************************************************************************************************************************************************/
|
|
31
|
+
.faust-ui-component.faust-ui-component-vslider {
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
.faust-ui-component.faust-ui-component-vslider > .faust-ui-component-label {
|
|
35
|
+
flex: 0 0 auto;
|
|
36
|
+
}
|
|
37
|
+
.faust-ui-component.faust-ui-component-vslider > .faust-ui-component-vslider-flexdiv {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
flex: 1 1 auto;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: auto;
|
|
44
|
+
}
|
|
45
|
+
.faust-ui-component.faust-ui-component-vslider > .faust-ui-component-vslider-flexdiv > .faust-ui-component-vslider-canvasdiv {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: block;
|
|
48
|
+
flex: 1 1 auto;
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
.faust-ui-component.faust-ui-component-vslider > .faust-ui-component-vslider-flexdiv > .faust-ui-component-vslider-canvasdiv > canvas {
|
|
52
|
+
position: absolute;
|
|
53
|
+
display: block;
|
|
54
|
+
height: 100%;
|
|
55
|
+
width: 100%;
|
|
56
|
+
touch-action: none;
|
|
57
|
+
}
|
|
58
|
+
.faust-ui-component.faust-ui-component-vslider > .faust-ui-component-vslider-flexdiv input {
|
|
59
|
+
position: relative;
|
|
60
|
+
display: block;
|
|
61
|
+
flex: 0 1 auto;
|
|
62
|
+
text-align: center;
|
|
63
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
64
|
+
margin: 5px auto auto auto;
|
|
65
|
+
border-width: 0px;
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
height: 5%;
|
|
68
|
+
max-width: calc(100% - 8px);
|
|
69
|
+
padding: 2px 4px;
|
|
70
|
+
-moz-appearance: textfield;
|
|
71
|
+
}
|
|
72
|
+
.faust-ui-component.faust-ui-component-vslider > .faust-ui-component-vslider-flexdiv input::-webkit-inner-spin-button, .faust-ui-component.faust-ui-component-vslider > .faust-ui-component-vslider-flexdiv input::-webkit-outer-spin-button {
|
|
73
|
+
-webkit-appearance: none;
|
|
74
|
+
margin: 0;
|
|
75
|
+
}
|
|
76
|
+
/*!**************************************************************************************************************************************************!*\
|
|
77
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/HSlider.scss ***!
|
|
78
|
+
\**************************************************************************************************************************************************/
|
|
79
|
+
.faust-ui-component.faust-ui-component-hslider > .faust-ui-component-label {
|
|
80
|
+
flex: 0 0 auto;
|
|
81
|
+
}
|
|
82
|
+
.faust-ui-component.faust-ui-component-hslider > .faust-ui-component-hslider-flexdiv {
|
|
83
|
+
position: relative;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: row-reverse;
|
|
86
|
+
flex: 1 1 auto;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: auto;
|
|
89
|
+
}
|
|
90
|
+
.faust-ui-component.faust-ui-component-hslider > .faust-ui-component-hslider-flexdiv > .faust-ui-component-hslider-canvasdiv {
|
|
91
|
+
position: relative;
|
|
92
|
+
display: block;
|
|
93
|
+
flex: 1 1 auto;
|
|
94
|
+
height: 100%;
|
|
95
|
+
margin: auto;
|
|
96
|
+
}
|
|
97
|
+
.faust-ui-component.faust-ui-component-hslider > .faust-ui-component-hslider-flexdiv > .faust-ui-component-hslider-canvasdiv > canvas {
|
|
98
|
+
position: absolute;
|
|
99
|
+
display: block;
|
|
100
|
+
height: 100%;
|
|
101
|
+
width: 100%;
|
|
102
|
+
touch-action: none;
|
|
103
|
+
}
|
|
104
|
+
.faust-ui-component.faust-ui-component-hslider > .faust-ui-component-hslider-flexdiv > input {
|
|
105
|
+
position: relative;
|
|
106
|
+
display: block;
|
|
107
|
+
flex: 0 1 auto;
|
|
108
|
+
text-align: center;
|
|
109
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
110
|
+
margin: auto 5px auto auto;
|
|
111
|
+
border-width: 0px;
|
|
112
|
+
border-radius: 4px;
|
|
113
|
+
width: calc(20% - 13px);
|
|
114
|
+
padding: 2px 4px;
|
|
115
|
+
-moz-appearance: textfield;
|
|
116
|
+
}
|
|
117
|
+
.faust-ui-component.faust-ui-component-hslider > .faust-ui-component-hslider-flexdiv > input::-webkit-inner-spin-button, .faust-ui-component.faust-ui-component-hslider > .faust-ui-component-hslider-flexdiv > input::-webkit-outer-spin-button {
|
|
118
|
+
-webkit-appearance: none;
|
|
119
|
+
margin: 0;
|
|
120
|
+
}
|
|
121
|
+
/*!*************************************************************************************************************************************************!*\
|
|
122
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Nentry.scss ***!
|
|
123
|
+
\*************************************************************************************************************************************************/
|
|
124
|
+
.faust-ui-component.faust-ui-component-nentry {
|
|
125
|
+
align-items: center;
|
|
126
|
+
}
|
|
127
|
+
.faust-ui-component.faust-ui-component-nentry input {
|
|
128
|
+
margin: 0px;
|
|
129
|
+
text-align: center;
|
|
130
|
+
border-width: 1px;
|
|
131
|
+
border-radius: 4px;
|
|
132
|
+
padding: 2px 4px;
|
|
133
|
+
width: calc(100% - 8px);
|
|
134
|
+
}
|
|
135
|
+
.faust-ui-component.faust-ui-component-nentry input::-webkit-inner-spin-button, .faust-ui-component.faust-ui-component-nentry input::-webkit-outer-spin-button {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
/*!****************************************************************************************************************************************************!*\
|
|
139
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Soundfile.scss ***!
|
|
140
|
+
\****************************************************************************************************************************************************/
|
|
141
|
+
.faust-ui-component.faust-ui-component-soundfile > div {
|
|
142
|
+
display: flex;
|
|
143
|
+
position: relative;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
border-width: 1px;
|
|
146
|
+
text-align: center;
|
|
147
|
+
border-radius: 4px;
|
|
148
|
+
flex: 1 0 auto;
|
|
149
|
+
border-style: solid;
|
|
150
|
+
}
|
|
151
|
+
.faust-ui-component.faust-ui-component-soundfile > div > span {
|
|
152
|
+
user-select: none;
|
|
153
|
+
margin: auto;
|
|
154
|
+
}
|
|
155
|
+
/*!*************************************************************************************************************************************************!*\
|
|
156
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Button.scss ***!
|
|
157
|
+
\*************************************************************************************************************************************************/
|
|
158
|
+
.faust-ui-component.faust-ui-component-button > div {
|
|
159
|
+
display: flex;
|
|
160
|
+
position: relative;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
border-width: 1px;
|
|
163
|
+
text-align: center;
|
|
164
|
+
border-radius: 4px;
|
|
165
|
+
flex: 1 0 auto;
|
|
166
|
+
border-style: solid;
|
|
167
|
+
touch-action: none;
|
|
168
|
+
}
|
|
169
|
+
.faust-ui-component.faust-ui-component-button > div > span {
|
|
170
|
+
user-select: none;
|
|
171
|
+
margin: auto;
|
|
172
|
+
}
|
|
173
|
+
/*!***************************************************************************************************************************************************!*\
|
|
174
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Checkbox.scss ***!
|
|
175
|
+
\***************************************************************************************************************************************************/
|
|
176
|
+
.faust-ui-component.faust-ui-component-checkbox > div {
|
|
177
|
+
display: flex;
|
|
178
|
+
position: relative;
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
border-width: 1px;
|
|
181
|
+
text-align: center;
|
|
182
|
+
border-radius: 1px;
|
|
183
|
+
flex: 1 0 auto;
|
|
184
|
+
border-style: solid;
|
|
185
|
+
touch-action: none;
|
|
186
|
+
}
|
|
187
|
+
.faust-ui-component.faust-ui-component-checkbox > div > span {
|
|
188
|
+
margin: auto;
|
|
189
|
+
user-select: none;
|
|
190
|
+
}
|
|
191
|
+
/*!***********************************************************************************************************************************************!*\
|
|
192
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Knob.scss ***!
|
|
193
|
+
\***********************************************************************************************************************************************/
|
|
194
|
+
.faust-ui-component.faust-ui-component-knob {
|
|
195
|
+
align-items: center;
|
|
196
|
+
}
|
|
197
|
+
.faust-ui-component.faust-ui-component-knob > canvas {
|
|
198
|
+
position: relative;
|
|
199
|
+
display: block;
|
|
200
|
+
flex: 1 1 auto;
|
|
201
|
+
min-height: 50%;
|
|
202
|
+
width: 100%;
|
|
203
|
+
touch-action: none;
|
|
204
|
+
}
|
|
205
|
+
.faust-ui-component.faust-ui-component-knob > input {
|
|
206
|
+
position: relative;
|
|
207
|
+
display: block;
|
|
208
|
+
flex: 0 1 auto;
|
|
209
|
+
text-align: center;
|
|
210
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
211
|
+
margin: 0px;
|
|
212
|
+
border-width: 0px;
|
|
213
|
+
border-radius: 4px;
|
|
214
|
+
max-width: calc(100% - 8px);
|
|
215
|
+
padding: 2px 4px;
|
|
216
|
+
-moz-appearance: textfield;
|
|
217
|
+
}
|
|
218
|
+
.faust-ui-component.faust-ui-component-knob > input::-webkit-inner-spin-button, .faust-ui-component.faust-ui-component-knob > input::-webkit-outer-spin-button {
|
|
219
|
+
-webkit-appearance: none;
|
|
220
|
+
margin: 0;
|
|
221
|
+
}
|
|
222
|
+
/*!***********************************************************************************************************************************************!*\
|
|
223
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Menu.scss ***!
|
|
224
|
+
\***********************************************************************************************************************************************/
|
|
225
|
+
.faust-ui-component.faust-ui-component-menu {
|
|
226
|
+
align-items: center;
|
|
227
|
+
}
|
|
228
|
+
.faust-ui-component.faust-ui-component-menu > select {
|
|
229
|
+
margin: 0px;
|
|
230
|
+
text-align: center;
|
|
231
|
+
border-width: 1px;
|
|
232
|
+
border-radius: 4px;
|
|
233
|
+
padding: 2px 4px;
|
|
234
|
+
width: calc(100% - 8px);
|
|
235
|
+
}
|
|
236
|
+
/*!************************************************************************************************************************************************!*\
|
|
237
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Radio.scss ***!
|
|
238
|
+
\************************************************************************************************************************************************/
|
|
239
|
+
.faust-ui-component.faust-ui-component-radio {
|
|
240
|
+
align-items: center;
|
|
241
|
+
}
|
|
242
|
+
.faust-ui-component.faust-ui-component-radio > .faust-ui-component-label {
|
|
243
|
+
flex: 0 0 auto;
|
|
244
|
+
margin-top: auto;
|
|
245
|
+
}
|
|
246
|
+
.faust-ui-component.faust-ui-component-radio > .faust-ui-component-radio-group {
|
|
247
|
+
flex: 0 1 auto;
|
|
248
|
+
margin-bottom: auto;
|
|
249
|
+
border-width: 1px;
|
|
250
|
+
border-radius: 4px;
|
|
251
|
+
padding: 2px 4px;
|
|
252
|
+
width: calc(100% - 8px);
|
|
253
|
+
overflow: auto;
|
|
254
|
+
display: flex;
|
|
255
|
+
flex-direction: column;
|
|
256
|
+
}
|
|
257
|
+
.faust-ui-component.faust-ui-component-radio > .faust-ui-component-radio-group.faust-ui-component-radio-group-horizontal {
|
|
258
|
+
flex-direction: row;
|
|
259
|
+
justify-content: space-around;
|
|
260
|
+
}
|
|
261
|
+
.faust-ui-component.faust-ui-component-radio > .faust-ui-component-radio-group > div {
|
|
262
|
+
text-overflow: ellipsis;
|
|
263
|
+
white-space: nowrap;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
}
|
|
266
|
+
/*!**********************************************************************************************************************************************!*\
|
|
267
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Led.scss ***!
|
|
268
|
+
\**********************************************************************************************************************************************/
|
|
269
|
+
.faust-ui-component.faust-ui-component-led {
|
|
270
|
+
align-items: center;
|
|
271
|
+
}
|
|
272
|
+
.faust-ui-component.faust-ui-component-led > .faust-ui-component-label {
|
|
273
|
+
flex: 0 0 auto;
|
|
274
|
+
}
|
|
275
|
+
.faust-ui-component.faust-ui-component-led > .faust-ui-component-led-canvasdiv {
|
|
276
|
+
position: relative;
|
|
277
|
+
display: block;
|
|
278
|
+
flex: 1 1 auto;
|
|
279
|
+
width: 100%;
|
|
280
|
+
}
|
|
281
|
+
.faust-ui-component.faust-ui-component-led > .faust-ui-component-led-canvasdiv > canvas {
|
|
282
|
+
position: absolute;
|
|
283
|
+
display: block;
|
|
284
|
+
height: 100%;
|
|
285
|
+
width: 100%;
|
|
286
|
+
touch-action: none;
|
|
287
|
+
}
|
|
288
|
+
/*!****************************************************************************************************************************************************!*\
|
|
289
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Numerical.scss ***!
|
|
290
|
+
\****************************************************************************************************************************************************/
|
|
291
|
+
.faust-ui-component.faust-ui-component-numerical {
|
|
292
|
+
align-items: center;
|
|
293
|
+
}
|
|
294
|
+
.faust-ui-component.faust-ui-component-numerical > input {
|
|
295
|
+
position: relative;
|
|
296
|
+
display: block;
|
|
297
|
+
flex: 0 1 auto;
|
|
298
|
+
text-align: center;
|
|
299
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
300
|
+
margin: auto;
|
|
301
|
+
border-width: 0px;
|
|
302
|
+
border-radius: 4px;
|
|
303
|
+
width: calc(100% - 8px);
|
|
304
|
+
padding: 2px 4px;
|
|
305
|
+
}
|
|
306
|
+
/*!****************************************************************************************************************************************************!*\
|
|
307
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/VBargraph.scss ***!
|
|
308
|
+
\****************************************************************************************************************************************************/
|
|
309
|
+
.faust-ui-component.faust-ui-component-vbargraph {
|
|
310
|
+
align-items: center;
|
|
311
|
+
}
|
|
312
|
+
.faust-ui-component.faust-ui-component-vbargraph > .faust-ui-component-label {
|
|
313
|
+
flex: 0 0 auto;
|
|
314
|
+
}
|
|
315
|
+
.faust-ui-component.faust-ui-component-vbargraph > .faust-ui-component-vbargraph-flexdiv {
|
|
316
|
+
position: relative;
|
|
317
|
+
display: flex;
|
|
318
|
+
flex-direction: column;
|
|
319
|
+
flex: 1 1 auto;
|
|
320
|
+
width: 100%;
|
|
321
|
+
height: inherit;
|
|
322
|
+
}
|
|
323
|
+
.faust-ui-component.faust-ui-component-vbargraph > .faust-ui-component-vbargraph-flexdiv > .faust-ui-component-vbargraph-canvasdiv {
|
|
324
|
+
position: relative;
|
|
325
|
+
display: block;
|
|
326
|
+
flex: 1 1 auto;
|
|
327
|
+
width: 100%;
|
|
328
|
+
}
|
|
329
|
+
.faust-ui-component.faust-ui-component-vbargraph > .faust-ui-component-vbargraph-flexdiv > .faust-ui-component-vbargraph-canvasdiv > canvas {
|
|
330
|
+
position: absolute;
|
|
331
|
+
display: block;
|
|
332
|
+
height: 100%;
|
|
333
|
+
width: 100%;
|
|
334
|
+
touch-action: none;
|
|
335
|
+
}
|
|
336
|
+
.faust-ui-component.faust-ui-component-vbargraph > .faust-ui-component-vbargraph-flexdiv > input {
|
|
337
|
+
position: relative;
|
|
338
|
+
display: block;
|
|
339
|
+
flex: 0 1 auto;
|
|
340
|
+
text-align: center;
|
|
341
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
342
|
+
margin: 5px auto auto auto;
|
|
343
|
+
border-width: 0px;
|
|
344
|
+
border-radius: 4px;
|
|
345
|
+
height: 5%;
|
|
346
|
+
width: calc(100% - 8px);
|
|
347
|
+
padding: 2px 4px;
|
|
348
|
+
}
|
|
349
|
+
/*!****************************************************************************************************************************************************!*\
|
|
350
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/HBargraph.scss ***!
|
|
351
|
+
\****************************************************************************************************************************************************/
|
|
352
|
+
.faust-ui-component.faust-ui-component-hbargraph > .faust-ui-component-label {
|
|
353
|
+
flex: 0 0 auto;
|
|
354
|
+
}
|
|
355
|
+
.faust-ui-component.faust-ui-component-hbargraph > .faust-ui-component-hbargraph-flexdiv {
|
|
356
|
+
position: relative;
|
|
357
|
+
display: flex;
|
|
358
|
+
flex-direction: row-reverse;
|
|
359
|
+
flex: 1 1 auto;
|
|
360
|
+
width: 100%;
|
|
361
|
+
height: auto;
|
|
362
|
+
}
|
|
363
|
+
.faust-ui-component.faust-ui-component-hbargraph > .faust-ui-component-hbargraph-flexdiv > .faust-ui-component-hbargraph-canvasdiv {
|
|
364
|
+
position: relative;
|
|
365
|
+
display: block;
|
|
366
|
+
flex: 1 1 auto;
|
|
367
|
+
height: 100%;
|
|
368
|
+
margin: auto;
|
|
369
|
+
}
|
|
370
|
+
.faust-ui-component.faust-ui-component-hbargraph > .faust-ui-component-hbargraph-flexdiv > .faust-ui-component-hbargraph-canvasdiv > canvas {
|
|
371
|
+
position: absolute;
|
|
372
|
+
display: block;
|
|
373
|
+
height: 100%;
|
|
374
|
+
width: 100%;
|
|
375
|
+
touch-action: none;
|
|
376
|
+
}
|
|
377
|
+
.faust-ui-component.faust-ui-component-hbargraph > .faust-ui-component-hbargraph-flexdiv > input {
|
|
378
|
+
position: relative;
|
|
379
|
+
display: block;
|
|
380
|
+
flex: 0 1 auto;
|
|
381
|
+
text-align: center;
|
|
382
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
383
|
+
margin: auto 5px auto auto;
|
|
384
|
+
border-width: 0px;
|
|
385
|
+
border-radius: 4px;
|
|
386
|
+
width: calc(20% - 13px);
|
|
387
|
+
padding: 2px 4px;
|
|
388
|
+
}
|
|
389
|
+
/*!************************************************************************************************************************************************!*\
|
|
390
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Group.scss ***!
|
|
391
|
+
\************************************************************************************************************************************************/
|
|
392
|
+
.faust-ui-group {
|
|
393
|
+
position: absolute;
|
|
394
|
+
display: block;
|
|
395
|
+
background-color: rgba(80, 80, 80, 0.75);
|
|
396
|
+
border-radius: 4px;
|
|
397
|
+
border: 1px rgba(255, 255, 255, 0.25) solid;
|
|
398
|
+
}
|
|
399
|
+
.faust-ui-group > .faust-ui-group-label {
|
|
400
|
+
position: relative;
|
|
401
|
+
margin: 4px;
|
|
402
|
+
width: calc(100% - 8px);
|
|
403
|
+
user-select: none;
|
|
404
|
+
}
|
|
405
|
+
.faust-ui-group > .faust-ui-group-label > canvas {
|
|
406
|
+
position: relative;
|
|
407
|
+
display: block;
|
|
408
|
+
max-width: 100%;
|
|
409
|
+
max-height: 100%;
|
|
410
|
+
}
|
|
411
|
+
.faust-ui-group .faust-ui-tgroup-tabs {
|
|
412
|
+
position: absolute;
|
|
413
|
+
display: inline-block;
|
|
414
|
+
white-space: nowrap;
|
|
415
|
+
left: 0px;
|
|
416
|
+
}
|
|
417
|
+
.faust-ui-group .faust-ui-tgroup-tabs .faust-ui-tgroup-tab {
|
|
418
|
+
position: relative;
|
|
419
|
+
display: inline-block;
|
|
420
|
+
border-radius: 5px;
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
text-overflow: ellipsis;
|
|
423
|
+
white-space: nowrap;
|
|
424
|
+
user-select: none;
|
|
425
|
+
margin: 10px;
|
|
426
|
+
text-align: center;
|
|
427
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
428
|
+
}
|
|
429
|
+
.faust-ui-group .faust-ui-tgroup-tabs .faust-ui-tgroup-tab:hover {
|
|
430
|
+
background-color: rgb(255, 255, 255);
|
|
431
|
+
}
|
|
432
|
+
.faust-ui-group .faust-ui-tgroup-tabs .faust-ui-tgroup-tab.active {
|
|
433
|
+
background-color: rgb(40, 40, 40);
|
|
434
|
+
color: white;
|
|
435
|
+
}
|
|
436
|
+
/*!*************************************************************************************************************************************!*\
|
|
437
|
+
!*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/index.scss ***!
|
|
438
|
+
\*************************************************************************************************************************************/
|
|
439
|
+
.faust-ui-root {
|
|
440
|
+
margin: 0px auto;
|
|
441
|
+
flex: 1 0 auto;
|
|
442
|
+
position: relative !important;
|
|
443
|
+
background-color: transparent !important;
|
|
444
|
+
border: none !important;
|
|
445
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/*# sourceMappingURL=index.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.css","mappings":";;;AAAA;EACI;EACA;EACA;EACA;AACJ;AAAI;EACI;AAER;AAAI;EACI;EACA;EACA;EACA;AAER;AADQ;EACI;EACA;EACA;EACA;AAGZ;AAAI;EACI;AAER,C;;;;ACvBA;EACI;AACJ;AAAI;EACI;AAER;AAAI;EACI;EACA;EACA;EACA;EACA;EACA;AAER;AADQ;EACI;EACA;EACA;EACA;AAGZ;AAFY;EACI;EACA;EACA;EACA;EACA;AAIhB;AADQ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAGZ;AAFY;EAEI;EACA;AAGhB,C;;;;AC3CI;EACI;AAAR;AAEI;EACI;EACA;EACA;EACA;EACA;EACA;AAAR;AACQ;EACI;EACA;EACA;EACA;EACA;AACZ;AAAY;EACI;EACA;EACA;EACA;EACA;AAEhB;AACQ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACZ;AAAY;EAEI;EACA;AAChB,C;;;;ACzCA;EACI;AACJ;AAAI;EACI;EACA;EACA;EACA;EACA;EACA;AAER;AADQ;EAEI;AAEZ,C;;;;ACZI;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAAR;AACQ;EACI;EACA;AACZ,C;;;;ACZI;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAAR;AACQ;EACI;EACA;AACZ,C;;;;ACbI;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAAR;AACQ;EACI;EACA;AACZ,C;;;;ACdA;EACI;AACJ;AAAI;EACI;EACA;EACA;EACA;EACA;EACA;AAER;AAAI;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAER;AADQ;EAEI;EACA;AAEZ,C;;;;AC3BA;EACI;AACJ;AAAI;EACI;EACA;EACA;EACA;EACA;EACA;AAER,C;;;;ACVA;EACI;AACJ;AAAI;EACI;EACA;AAER;AAAI;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAER;AADQ;EACI;EACA;AAGZ;AADQ;EACI;EACA;EACA;AAGZ,C;;;;AC1BA;EACI;AACJ;AAAI;EACI;AAER;AAAI;EACI;EACA;EACA;EACA;AAER;AADQ;EACI;EACA;EACA;EACA;EACA;AAGZ,C;;;;AClBA;EACI;AACJ;AAAI;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAER,C;;;;ACdA;EACI;AACJ;AAAI;EACI;AAER;AAAI;EACI;EACA;EACA;EACA;EACA;EACA;AAER;AADQ;EACI;EACA;EACA;EACA;AAGZ;AAFY;EACI;EACA;EACA;EACA;EACA;AAIhB;AADQ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAGZ,C;;;;ACtCI;EACI;AAAR;AAEI;EACI;EACA;EACA;EACA;EACA;EACA;AAAR;AACQ;EACI;EACA;EACA;EACA;EACA;AACZ;AAAY;EACI;EACA;EACA;EACA;EACA;AAEhB;AACQ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACZ,C;;;;ACnCA;EACI;EACA;EACA;EACA;EACA;AAAJ;AACI;EACI;EACA;EACA;EACA;AACR;AAAQ;EACI;EACA;EACA;EACA;AAEZ;AACI;EACI;EACA;EACA;EACA;AACR;AAAQ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAEZ;AADY;EACI;AAGhB;AADY;EACI;EACA;AAGhB,C;;;;AC3CA;EACI;EACA;EACA;EACA;EACA;EACA;AACJ,C","sources":["webpack://@grame/faust-ui/./src/components/Base.scss","webpack://@grame/faust-ui/./src/components/VSlider.scss","webpack://@grame/faust-ui/./src/components/HSlider.scss","webpack://@grame/faust-ui/./src/components/Nentry.scss","webpack://@grame/faust-ui/./src/components/Soundfile.scss","webpack://@grame/faust-ui/./src/components/Button.scss","webpack://@grame/faust-ui/./src/components/Checkbox.scss","webpack://@grame/faust-ui/./src/components/Knob.scss","webpack://@grame/faust-ui/./src/components/Menu.scss","webpack://@grame/faust-ui/./src/components/Radio.scss","webpack://@grame/faust-ui/./src/components/Led.scss","webpack://@grame/faust-ui/./src/components/Numerical.scss","webpack://@grame/faust-ui/./src/components/VBargraph.scss","webpack://@grame/faust-ui/./src/components/HBargraph.scss","webpack://@grame/faust-ui/./src/components/Group.scss","webpack://@grame/faust-ui/./src/index.scss"],"sourcesContent":[".faust-ui-component {\n display: flex;\n position: absolute;\n flex-direction: column;\n overflow: hidden;\n &:focus {\n outline: none;\n }\n & > .faust-ui-component-label {\n position: relative;\n margin-top: 4px;\n width: 100%;\n user-select: none;\n & > canvas {\n position: relative;\n display: block;\n max-width: 100%;\n max-height: 100%;\n }\n }\n & input {\n box-shadow: none;\n }\n}",".faust-ui-component.faust-ui-component-vslider {\n align-items: center;\n & > .faust-ui-component-label {\n flex: 0 0 auto;\n }\n & > .faust-ui-component-vslider-flexdiv {\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n width: 100%;\n height: auto;\n & > .faust-ui-component-vslider-canvasdiv {\n position: relative;\n display: block;\n flex: 1 1 auto;\n width: 100%;\n & > canvas {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n touch-action: none;\n }\n }\n & input {\n position: relative;\n display: block;\n flex: 0 1 auto;\n text-align: center;\n background-color: rgba(255, 255, 255, 0.25);\n margin: 5px auto auto auto;\n border-width: 0px;\n border-radius: 4px;\n height: 5%;\n max-width: calc(100% - 8px);\n padding: 2px 4px;\n -moz-appearance:textfield;\n &::-webkit-inner-spin-button, \n &::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n }\n}",".faust-ui-component.faust-ui-component-hslider {\n & > .faust-ui-component-label {\n flex: 0 0 auto;\n }\n & > .faust-ui-component-hslider-flexdiv {\n position: relative;\n display: flex;\n flex-direction: row-reverse;\n flex: 1 1 auto;\n width: 100%;\n height: auto;\n & > .faust-ui-component-hslider-canvasdiv {\n position: relative;\n display: block;\n flex: 1 1 auto;\n height: 100%;\n margin: auto;\n & > canvas {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n touch-action: none;\n }\n }\n & > input {\n position: relative;\n display: block;\n flex: 0 1 auto;\n text-align: center;\n background-color: rgba(255, 255, 255, 0.25);\n margin: auto 5px auto auto;\n border-width: 0px;\n border-radius: 4px;\n width: calc(20% - 13px);\n padding: 2px 4px;\n -moz-appearance: textfield;\n &::-webkit-inner-spin-button, \n &::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n }\n}\n",".faust-ui-component.faust-ui-component-nentry {\n align-items: center;\n & input {\n margin: 0px;\n text-align: center;\n border-width: 1px;\n border-radius: 4px;\n padding: 2px 4px;\n width: calc(100% - 8px);\n &::-webkit-inner-spin-button, \n &::-webkit-outer-spin-button {\n opacity: 1;\n }\n }\n}",".faust-ui-component.faust-ui-component-soundfile {\n & > div {\n display: flex;\n position: relative;\n cursor: pointer;\n border-width: 1px;\n text-align: center;\n border-radius: 4px;\n flex: 1 0 auto;\n border-style: solid;\n & > span {\n user-select: none;\n margin: auto;\n }\n }\n}",".faust-ui-component.faust-ui-component-button {\n & > div {\n display: flex;\n position: relative;\n cursor: pointer;\n border-width: 1px;\n text-align: center;\n border-radius: 4px;\n flex: 1 0 auto;\n border-style: solid;\n touch-action: none;\n & > span {\n user-select: none;\n margin: auto;\n }\n }\n}",".faust-ui-component.faust-ui-component-checkbox {\n & > div {\n display: flex;\n position: relative;\n cursor: pointer;\n border-width: 1px;\n text-align: center;\n border-radius: 1px;\n flex: 1 0 auto;\n border-style: solid;\n touch-action: none;\n & > span {\n margin: auto;\n user-select: none;\n }\n }\n}",".faust-ui-component.faust-ui-component-knob {\n align-items: center;\n & > canvas {\n position: relative;\n display: block;\n flex: 1 1 auto;\n min-height: 50%;\n width: 100%;\n touch-action: none;\n }\n & > input {\n position: relative;\n display: block;\n flex: 0 1 auto;\n text-align: center;\n background-color: rgba(255, 255, 255, 0.25);\n margin: 0px;\n border-width: 0px;\n border-radius: 4px;\n max-width: calc(100% - 8px);\n padding: 2px 4px;\n -moz-appearance: textfield;\n &::-webkit-inner-spin-button, \n &::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n}",".faust-ui-component.faust-ui-component-menu {\n align-items: center;\n & > select {\n margin: 0px;\n text-align: center;\n border-width: 1px;\n border-radius: 4px;\n padding: 2px 4px;\n width: calc(100% - 8px);\n }\n}",".faust-ui-component.faust-ui-component-radio {\n align-items: center;\n & > .faust-ui-component-label {\n flex: 0 0 auto;\n margin-top: auto;\n }\n & > .faust-ui-component-radio-group {\n flex: 0 1 auto;\n margin-bottom: auto;\n border-width: 1px;\n border-radius: 4px;\n padding: 2px 4px;\n width: calc(100% - 8px);\n overflow: auto;\n display: flex;\n flex-direction: column;\n &.faust-ui-component-radio-group-horizontal {\n flex-direction: row;\n justify-content: space-around;\n }\n & > div {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n }\n}",".faust-ui-component.faust-ui-component-led {\n align-items: center;\n & > .faust-ui-component-label {\n flex: 0 0 auto;\n }\n & > .faust-ui-component-led-canvasdiv {\n position: relative;\n display: block;\n flex: 1 1 auto;\n width: 100%;\n & > canvas {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n touch-action: none;\n }\n }\n}\n",".faust-ui-component.faust-ui-component-numerical {\n align-items: center;\n & > input {\n position: relative;\n display: block;\n flex: 0 1 auto;\n text-align: center;\n background-color: rgba(255, 255, 255, 0.25);\n margin: auto;\n border-width: 0px;\n border-radius: 4px;\n width: calc(100% - 8px);\n padding: 2px 4px;\n }\n}",".faust-ui-component.faust-ui-component-vbargraph {\n align-items: center;\n & > .faust-ui-component-label {\n flex: 0 0 auto;\n }\n & > .faust-ui-component-vbargraph-flexdiv {\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n width: 100%;\n height: inherit;\n & > .faust-ui-component-vbargraph-canvasdiv {\n position: relative;\n display: block;\n flex: 1 1 auto;\n width: 100%;\n & > canvas {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n touch-action: none;\n }\n }\n & > input {\n position: relative;\n display: block;\n flex: 0 1 auto;\n text-align: center;\n background-color: rgba(255, 255, 255, 0.25);\n margin: 5px auto auto auto;\n border-width: 0px;\n border-radius: 4px;\n height: 5%;\n width: calc(100% - 8px);\n padding: 2px 4px;\n }\n }\n}\n",".faust-ui-component.faust-ui-component-hbargraph {\n & > .faust-ui-component-label {\n flex: 0 0 auto;\n }\n & > .faust-ui-component-hbargraph-flexdiv {\n position: relative;\n display: flex;\n flex-direction: row-reverse;\n flex: 1 1 auto;\n width: 100%;\n height: auto;\n & > .faust-ui-component-hbargraph-canvasdiv {\n position: relative;\n display: block;\n flex: 1 1 auto;\n height: 100%;\n margin: auto;\n & > canvas {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n touch-action: none;\n }\n }\n & > input {\n position: relative;\n display: block;\n flex: 0 1 auto;\n text-align: center;\n background-color: rgba(255, 255, 255, 0.25);\n margin: auto 5px auto auto;\n border-width: 0px;\n border-radius: 4px;\n width: calc(20% - 13px);\n padding: 2px 4px;\n }\n }\n}","\n.faust-ui-group {\n position: absolute;\n display: block;\n background-color: rgba(80, 80, 80, 0.75);\n border-radius: 4px;\n border: 1px rgba(255, 255, 255, 0.25) solid;\n & > .faust-ui-group-label {\n position: relative;\n margin: 4px;\n width: calc(100% - 8px);\n user-select: none;\n & > canvas {\n position: relative;\n display: block;\n max-width: 100%;\n max-height: 100%;\n }\n }\n & .faust-ui-tgroup-tabs {\n position: absolute;\n display: inline-block;\n white-space: nowrap;\n left: 0px;\n & .faust-ui-tgroup-tab {\n position: relative;\n display: inline-block;\n border-radius: 5px;\n cursor: pointer;\n text-overflow: ellipsis;\n white-space: nowrap;\n user-select: none;\n margin: 10px;\n text-align: center;\n background-color: rgba(255, 255, 255, 0.5);\n &:hover {\n background-color: rgba(255, 255, 255, 1);\n }\n &.active {\n background-color: rgba(40, 40, 40, 1);\n color: white;\n }\n }\n }\n}",".faust-ui-root {\n margin: 0px auto;\n flex: 1 0 auto;\n position: relative !important;\n background-color: transparent !important;\n border: none !important;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../index";
|