Compare commits

..

2525 commits

Author SHA1 Message Date
bordun
f54c9a7703 midi: clean 2020-09-21 22:21:41 +02:00
bordun
08ff3c7906 input: extend focusable area 2020-09-21 22:14:42 +02:00
bordun
dd601b5833 editor: error when selecting a tab/root widget while a property field contains unsubmitted changes 2020-09-21 22:01:12 +02:00
bordun
62d03832c9 root: missing geometry category header 2020-09-21 21:20:34 +02:00
bordun
ea6fdbd0a9 widgets: clean unused props 2020-09-21 21:19:25 +02:00
bordun
07a5bfdbc1 midi: bump version 2020-09-21 18:51:26 +02:00
bordun
906fa441d8 log: details 2020-09-21 13:32:05 +02:00
bordun
c16a5ceecc package: next is 1.3 2020-09-21 13:29:41 +02:00
bordun
d648d2a24c midi: remove variable args in sysex messages (can be handled many ways now); allow sending any system message; add support for receiving mtc (as sysex); add support for sending sysex bytes as integers 2020-09-21 13:29:18 +02:00
bordun
bdb107ee01 panel: layout issue with tabs & lineWidth property 2020-09-21 11:02:44 +02:00
bordun
b49ab3bc7c editor: hide impossible actions from context-menu (eg adding widgets in tab containers) 2020-09-21 10:54:34 +02:00
bordun
d92c081396 ui: rm sidepanel border when minimized 2020-09-16 17:54:14 +02:00
bordun
5b43251bab docs: update ref 2020-09-16 12:57:38 +02:00
bordun
fbe2873e3f package: v1.2.1 2020-09-16 12:56:56 +02:00
bordun
4a7f0ed0d0 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-09-16 12:52:26 +02:00
bordun
90231b1320 root: tweak out of canvas bg 2020-09-16 12:38:39 +02:00
jean-emmanuel
3747bfc9e8
Merge pull request #650 from jean-emmanuel/dependabot/npm_and_yarn/node-forge-0.10.0
build(deps): bump node-forge from 0.9.1 to 0.10.0
2020-09-16 12:22:21 +02:00
dependabot[bot]
df0610cfed
build(deps): bump node-forge from 0.9.1 to 0.10.0
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/digitalbazaar/forge/releases)
- [Changelog](https://github.com/digitalbazaar/forge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/0.9.1...0.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-16 06:51:40 +00:00
bordun
ca0be309d9 root: add width and height properties (helps building mobile layouts) 2020-09-16 08:48:04 +02:00
bordun
4e8c6f9a17 button: add wrap and vertical properties 2020-09-12 17:39:20 +02:00
bordun
7014d1abda remote-control: optimise /EDIT 2020-09-12 09:53:08 +02:00
bordun
b2f855d2d9 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-09-10 09:20:50 +02:00
bordun
ffc3382609 scripting: expose toolbar menu actions 2020-09-10 09:02:08 +02:00
bordun
3a8ab49f2d log: typo 2020-09-07 20:59:36 +02:00
bordun
61b08b1272 docs: update ref 2020-09-07 19:46:11 +02:00
bordun
f9f7eb66bf package: 1.2.0 2020-09-07 19:44:52 +02:00
bordun
b27daeeb6d editor: fix id+1 pasting with multiple widgets (#648) 2020-09-07 18:23:05 +02:00
bordun
3fd0771c05 editor: % fix 2020-09-07 10:06:09 +02:00
bordun
d14859668a range: lineWidth 2020-09-07 09:57:05 +02:00
bordun
4d21563102 sliders: scale pips stroke width with font size
fader: use lineWidth in default/round design
2020-09-07 09:53:20 +02:00
bordun
24a194aa9d widgets: rename strokeWidth -> lineWidth
knob: use lineWidth in all designs
2020-09-07 09:40:02 +02:00
bordun
c91d9af45d editor: add 'Relative units (%)' option 2020-09-07 09:09:44 +02:00
bordun
0ab39493ba toolbar: fallback item when opening menu before recent sessions are loaded 2020-09-07 09:05:28 +02:00
bordun
5de6671113 xy: avoid border/point overlap 2020-09-07 08:07:10 +02:00
bordun
fcd62b4bbf Revert "xy: pointSize fix"
This reverts commit 6df351c9c8.
2020-09-07 08:02:31 +02:00
bordun
66bc5b2c62 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-09-06 17:28:35 +02:00
bordun
aa4648ec57 menu: stroke width 2020-09-06 17:22:14 +02:00
bordun
2639cb3476 clone: rm colorBg & strokeWidth (should be overridden via "props") 2020-09-06 17:12:48 +02:00
bordun
1df1ff8127 clone: rm colorBg & strokeWidth (should be overridden via "props") 2020-09-06 17:08:38 +02:00
bordun
3e12a12175 keyboard: stroke width 2020-09-06 17:08:25 +02:00
bordun
ff93e83104 panel: stroke width 2020-09-06 16:55:25 +02:00
bordun
6df351c9c8 xy: pointSize fix 2020-09-06 16:46:59 +02:00
bordun
ef81feba8d widgets: pads strokeWidth 2020-09-06 16:46:42 +02:00
bordun
580bd765f6 color picker: add alpha 2020-09-06 16:34:10 +02:00
bordun
c9b0a8a16f wigets: stroke width (wip) 2020-09-06 16:11:49 +02:00
bordun
d32cd607af widgets: strokeWidth (wip) 2020-09-06 16:01:55 +02:00
bordun
bb5b7a2e42 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-09-06 15:45:48 +02:00
bordun
80d3c835a2 widgets: expose stroke width (wip) 2020-09-06 15:41:56 +02:00
bordun
9fd0539a56 image: avoid type error 2020-09-06 15:10:09 +02:00
bordun
554bdaa113 custom module: rm support for extra args (avoid path issues) 2020-09-06 11:12:54 +02:00
bordun
d4ff50dc58 midi: bump midi script version 2020-09-03 20:48:58 +02:00
bordun
71d1a5fa0b fader: support custom knob size in compact mode 2020-09-02 17:31:52 +02:00
bordun
09dc7f5620 fader: add knobSize property 2020-09-02 16:41:43 +02:00
bordun
ded1c881a8 knob: add solid & line designs 2020-09-02 16:05:52 +02:00
bordun
8eb08d8dac ios: fix scrolling for ios 14+ 2020-09-02 12:27:36 +02:00
bordun
f306b220b0 knob: add support for custom dash/gap size in dashed property 2020-08-28 13:40:55 +02:00
bordun
b4bbed8bdb svg: removed support for non-standard %x and %y units; fixed layout update when resized; 2020-08-28 13:39:07 +02:00
bordun
6913860d68 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-08-28 13:28:50 +02:00
bordun
1cb555f335 midi: add key pressure and channel pressure 2020-08-28 13:28:37 +02:00
bordun
5b3f3b021a package: 1.0.4 2020-08-24 18:00:26 +02:00
bordun
c56ff69896 docs: typo 2020-08-24 17:59:23 +02:00
bordun
40a0b09f81 launcher: pass process.env to server process (fixes broken remote-root option) 2020-08-24 17:58:37 +02:00
bordun
e46fe7b1d7 script: fix storage methods 2020-08-10 22:27:55 +02:00
bordun
f1d105c74b docs: clean 2020-08-10 19:49:35 +02:00
bordun
51f54f8b00 docs: update 2020-08-10 19:48:10 +02:00
bordun
3357541cfa package: 1.0.3 2020-08-10 19:44:08 +02:00
bordun
475a98429d log: 1.0.3 2020-08-10 19:42:24 +02:00
bordun
7b20563767 panels: add contain property to allow scrolling in vertical/horizontal layouts (#645) 2020-08-10 19:36:24 +02:00
bordun
7ee1251954 midi: add support for string port declaration 2020-08-10 19:21:22 +02:00
bordun
a0661e5d69 modal: fix stacking issue on ios 2020-07-30 15:21:12 +02:00
bordun
5e7ee83850 docs: typo 2020-07-29 16:26:00 +02:00
bordun
168919fdd4 docs: remote control intro 2020-07-29 13:19:11 +02:00
bordun
b4b1af33bd midi: add version check 2020-07-27 18:37:15 +02:00
bordun
691e750497 midi: add version 2020-07-27 18:30:07 +02:00
bordun
17f2ad99a8 scripts: midi bin build 2020-07-27 18:03:56 +02:00
bordun
5eb72985d1 log: typo 2020-07-27 18:02:04 +02:00
bordun
492b557b91 package: 1.0.2 2020-07-27 17:48:28 +02:00
bordun
aa44f256a1 midi: clean and prepare compatibility with prebuilt midi plugin 2020-07-27 17:40:29 +02:00
bordun
8e5311cf62 script: fix build 2020-07-27 16:15:02 +02:00
jean-emmanuel
aff21f61b0
Merge pull request #642 from ritschwumm/fix/typo
fix typos
2020-07-27 16:10:30 +02:00
Herr Ritschwumm
fab235daf5 fix typos 2020-07-27 16:04:14 +02:00
bordun
434265be35 window: prevent error when geometry config is not completely populated 2020-07-27 15:59:54 +02:00
bordun
395f3e25c7 ios: fix scrolling on iPhone ios 13 2020-07-27 14:05:56 +02:00
bordun
f8925bf7ef package: 1.0.1 2020-07-27 12:57:36 +02:00
bordun
f2b1013c59 window: store full geometry for launcher & cient, make this default for all platforms 2020-07-27 12:50:12 +02:00
bordun
67d4e5331c Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-07-27 10:36:26 +02:00
bordun
e1492c8ad2 docs: ease function signature reading 2020-07-27 10:35:00 +02:00
bordun
5698ac2c92 docs: add custom module examples 2020-07-27 10:30:37 +02:00
jean-emmanuel
1f218188b8
Merge pull request #640 from ritschwumm/patch-3
fix typo in comment
2020-07-27 09:39:34 +02:00
jean-emmanuel
5fc5faf350
Merge pull request #639 from ritschwumm/patch-2
fix typo
2020-07-27 09:38:20 +02:00
jean-emmanuel
107f6145af
Merge pull request #638 from ritschwumm/patch-1
fix typo
2020-07-27 09:37:55 +02:00
ritschwumm
88f9372c6b
fix typo in comment 2020-07-27 00:32:18 +02:00
ritschwumm
4aa744b5c4
fix typo 2020-07-27 00:27:45 +02:00
ritschwumm
ee37f620b4
fix typo 2020-07-27 00:21:06 +02:00
bordun
58a7b47202 docs: update 2020-07-26 20:51:00 +02:00
bordun
aefaf978cf log: v1 2020-07-26 20:44:15 +02:00
bordun
f198cecd1b package: v1 2020-07-26 20:40:08 +02:00
bordun
4695e1fbc8 electron-window: use current monitor's dimensions; on win32, store/retreive last used screen 2020-07-26 20:37:43 +02:00
bordun
ff4f27cfc1 clone: modal breakout fix 2020-07-19 17:01:48 +02:00
bordun
38995f2f0f cache: managed localStorage & sessionStorage
ui: remember panel state
2020-07-14 11:10:24 +02:00
bordun
9c9b132c62 a-syntax: compile JS{{}} before #{} 2020-07-13 18:26:32 +02:00
bordun
f0951e7aab session: fix loading legacy sessions formatted as arrays 2020-07-10 10:18:00 +02:00
bordun
507c143461 button: make tap button pulse 2020-07-09 16:22:42 +02:00
bordun
6afffc4455 keyboard: rm "toggles" property, replace with "mode" (as for buttons) 2020-07-09 15:55:44 +02:00
bordun
cb6c3268c7 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-07-09 15:34:11 +02:00
bordun
167d471066 events: use pointer events to handle mouse events (resolves some conflict with touch events)
Using pointer events everywhere would be ideal but iOS<13 doesn't support them
2020-07-09 15:32:15 +02:00
bordun
67226a945a editor: label->true/auto fix 2020-07-09 14:52:17 +02:00
bordun
bc2e5578fd Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-07-06 13:26:00 +02:00
bordun
c99ec46263 osc: avoid error when receiving messages during init 2020-07-06 13:25:39 +02:00
bordun
17fb29c44a docs: add terminal launch example 2020-07-03 16:04:18 +02:00
bordun
234b81c7d8 docs: scripting set/getScroll 2020-07-02 12:29:46 +02:00
bordun
c40a6157a2 script: add getScroll and setScroll 2020-07-02 12:17:40 +02:00
bordun
330649e4d0 linkId: ensure it's a string 2020-07-01 16:07:23 +02:00
bordun
669b8cfd1a inspector: prevent edit errors from breaking sessions; add a notification; reverse the faulty change and prevent history push; 2020-07-01 16:01:16 +02:00
bordun
29daf787fc editor: avoid breaking address=auto when pasting with id+1 2020-07-01 09:27:28 +02:00
bordun
9b012ba5a7 docs: lite headlessmode with run_as_node env variable 2020-06-25 09:02:02 +02:00
bordun
cb638507e3 server: 2nd attempt to run server process as node, works in dev and prod 2020-06-25 08:45:27 +02:00
bordun
beaf2c5f40 package: beta 9 2020-06-25 00:07:22 +02:00
bordun
8e16f8d2d0 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-06-25 00:06:54 +02:00
bordun
b7df20abe6 Revert "server: run electron as node to reduce the number of process in use"
This reverts commit 615aab2789.
2020-06-25 00:06:16 +02:00
bordun
62d4b1d409 docs: variable description 2020-06-24 15:29:55 +02:00
bordun
b03d821ed1 docs: avoid advanced syntax in scripts 2020-06-24 15:21:21 +02:00
bordun
a58c9bc1d0 widgets: add variable widget 2020-06-24 15:12:42 +02:00
bordun
cee4432b80 build: use standard python package call for docs 2020-06-24 15:12:12 +02:00
bordun
bdd992e229 travis: node v12 2020-06-24 14:59:47 +02:00
bordun
3b5ca1b699 docs: midi debug 2020-06-24 14:57:41 +02:00
bordun
aaa4d74870 package: beta 8 2020-06-24 14:53:21 +02:00
bordun
d1b497af3d midi: fix midi list() (handle extra python logs properly) 2020-06-24 14:50:55 +02:00
bordun
25425c69f6 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-06-24 12:29:50 +02:00
bordun
cc532f4363 midi: show failed stdout parsing when debug is true 2020-06-24 12:29:05 +02:00
bordun
a3f84ff547 package: update deps 2020-06-23 18:47:00 +02:00
bordun
fad8ca6db1 docs: update widget ref 2020-06-22 18:59:17 +02:00
bordun
fe08953434 docs: add custom module example 2020-06-22 18:57:51 +02:00
bordun
530982985d docs: typo 2020-06-22 11:18:18 +02:00
bordun
917eac0fcd line 2020-06-22 08:18:20 +02:00
bordun
615aab2789 server: run electron as node to reduce the number of process in use 2020-06-22 07:32:14 +02:00
bordun
5fe8a1db47 script: comment 2020-06-18 13:45:15 +02:00
bordun
453948e354 script: add unfocus function (built-in client only) 2020-06-18 13:37:50 +02:00
bordun
fcd9139c1c slider: fix logScale == -1 2020-06-18 13:33:08 +02:00
bordun
5499a939de scripts: missing global 2020-06-12 16:10:17 +02:00
bordun
1d0bf86e89 package: beta7 2020-06-12 15:25:55 +02:00
bordun
60ec29ecd7 widgets: fix widget register update from address 'auto' to something elese 2020-06-12 15:20:23 +02:00
bordun
3b0373f69d package: use fixed upstream keyboardjs 2020-06-08 18:24:46 +02:00
bordun
fae6a6f9a2 scripting: add globals.ip variable 2020-06-06 16:49:12 +02:00
bordun
c60d99b4d6 server: clean ip storing 2020-06-06 16:44:04 +02:00
bordun
d2e7afcdaf packge: beta 6 2020-06-03 16:52:23 +02:00
bordun
997971b964 input: fix v-align 2020-06-03 11:29:14 +02:00
bordun
2cd7d2f985 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-05-28 20:10:23 +02:00
bordun
5dcf7e7bae widgets: fix error in address==auto case 2020-05-28 17:23:10 +02:00
bordun
38064f5922 Revert "osc: defered loading of remote-control is no longer needed -> avoid error when receiving osc too early"
This reverts commit 9c9d2ee60f.
2020-05-23 15:45:29 +02:00
bordun
6e548ae48b Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-05-23 12:26:55 +02:00
bordun
9c9d2ee60f osc: defered loading of remote-control is no longer needed -> avoid error when receiving osc too early 2020-05-23 12:20:52 +02:00
bordun
048bf557e6 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-05-22 19:11:15 +02:00
bordun
dce3915681 filebrowser: input margin fix 2020-05-22 19:08:41 +02:00
bordun
873326b2a9 docs: css update 2020-05-22 18:52:45 +02:00
bordun
835699112f ui: padding in simple message modals 2020-05-22 16:35:39 +02:00
bordun
90e2ee0850 plot: small dots, false by default 2020-05-22 16:35:27 +02:00
bordun
0e5edb76de script: add updateProp() to force prop check on a widget 2020-05-22 15:33:36 +02:00
bordun
fab0ed0eab script: make builtin script use parent locals 2020-05-22 15:29:59 +02:00
bordun
9db7ec6828 docs: globals/locals mutations are not watched 2020-05-21 22:37:58 +02:00
bordun
af89ec102b docs: clean 2020-05-21 21:40:25 +02:00
bordun
ea158f5729 docs: add md 2020-05-21 21:40:12 +02:00
bordun
53073b903c docs: add some custom-module examples 2020-05-21 21:38:00 +02:00
bordun
2dc8d71282 package: beta 5 2020-05-20 18:32:46 +02:00
bordun
861287fd73 docs: update 2020-05-20 18:32:31 +02:00
bordun
14a27d81a0 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-05-20 18:32:11 +02:00
bordun
8cdca7df08 widgets: set default address to "auto" and use id automatically 2020-05-20 17:55:22 +02:00
bordun
e757b3f7a7 docs: fix typo in remote-control /SET 2020-05-20 13:39:24 +02:00
bordun
6273f7713f docs: fix beta link 2020-05-20 10:05:24 +02:00
bordun
04fa919c9c docs: updae 2020-05-20 10:04:07 +02:00
bordun
32f0a0b55f site: link to beta in download 2020-05-20 10:03:37 +02:00
bordun
f95d082c52 inspector: put prop value in placeholder when == default and == auto 2020-05-20 09:51:44 +02:00
bordun
f54c5d1069 widgets: let prop inheritance trigger recreation upon non-dynamic prop update from self 2020-05-19 21:00:03 +02:00
bordun
a861c4c919 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-05-17 23:07:56 +02:00
bordun
62e812cca1 script: fix casing in keyType default value 2020-05-17 23:07:08 +02:00
bordun
8f8e5b488f lint 2020-05-17 19:39:34 +02:00
bordun
fadeb8388d package: beta4 2020-05-17 19:33:22 +02:00
bordun
b833ed836b docs: ctrl+g/t/i 2020-05-17 19:23:27 +02:00
bordun
19ec59a3c9 ui: uncomment kb shortcuts for toggling grid/tree/inspector 2020-05-17 19:20:21 +02:00
bordun
574dbe7f9e editor: bypass kb shortcuts when help modal is opened (to allow text copy) 2020-05-17 18:56:01 +02:00
bordun
c5aa1d3e3e text: correct inner padding 2020-05-16 19:55:12 +02:00
bordun
dc2d72c762 dropdown: allow border radius 2020-05-16 19:53:04 +02:00
bordun
89d6597e47 text: icon valign & vertical mode orientation 2020-05-16 19:46:29 +02:00
bordun
ad6ac9b2b8 editor: fix children dnd sorting in modals 2020-05-16 19:19:31 +02:00
bordun
d2dd9911e1 editor: make dragresize rectangle resize with viewport 2020-05-16 17:22:06 +02:00
bordun
4693f1efed script: fix stateGet 2020-05-16 17:11:16 +02:00
bordun
8985a0358e misc: correct css comment 2020-05-16 17:03:09 +02:00
bordun
c319b5a357 switch: style fix when padding==0 2020-05-16 16:58:44 +02:00
bordun
0922382e70 ui: rm border radius, make file browser more flat 2020-05-16 16:54:44 +02:00
bordun
467e5b4133 switch: small css fix 2020-05-16 16:46:22 +02:00
bordun
c13adfc7ee widgets: adjust button default css variables 2020-05-16 16:37:02 +02:00
bordun
731a0752d9 server: lint 2020-05-15 20:56:58 +02:00
bordun
43d0cd3a9a slider: fix pips initial font weight 2020-05-15 14:35:21 +02:00
bordun
88ff9f44c9 package: missing new font file 2020-05-15 13:27:57 +02:00
bordun
c0534ee0dc package: rm old font awesome 2020-05-15 13:26:51 +02:00
bordun
d26fff07ee client: let browser use cache for assets (reset cache when version changes) 2020-05-15 13:25:53 +02:00
bordun
680e3174b0 package: update font awesome 2020-05-15 13:25:40 +02:00
bordun
817e98193b package: move html assets to src/ 2020-05-15 13:10:44 +02:00
bordun
19a1d40050 editor: avoid error when ctrl clicking while selecting is empty 2020-05-15 10:16:25 +02:00
bordun
386ff6870b package: beta 2 2020-05-15 08:39:37 +02:00
bordun
b8db642894 script: rm colorBg 2020-05-15 08:34:35 +02:00
bordun
c9bbaf0b20 docs: update reference 2020-05-14 23:28:14 +02:00
bordun
1f64303f3b widgets: some props cleanup 2020-05-14 23:25:28 +02:00
bordun
553babd93c inspector: regroup class-specific props under the same category dropdown 2020-05-14 23:19:55 +02:00
bordun
cddee9b776 launcher: even spacing between btns in fields 2020-05-14 20:28:25 +02:00
bordun
a8be647480 inspector: valign label/field 2020-05-14 20:28:08 +02:00
bordun
06b91e6fce docs: update logos 2020-05-14 20:28:00 +02:00
bordun
80a243d36d misc: update discourse logo 2020-05-14 20:21:10 +02:00
bordun
d09f314f05 menu/modal: prevent modalBreakout flag from going negative and break (happens when editing parent while opened) 2020-05-14 20:18:18 +02:00
bordun
4d2d9ae0db rgb: fix layout when alpha slider is present 2020-05-14 16:40:54 +02:00
bordun
94ac9f2f7a led: set max --opacity when mode == "color" (#624) 2020-05-14 15:33:14 +02:00
bordun
35e9b5dfef package: beta1 2020-05-14 14:13:48 +02:00
bordun
c375386760 server: lint 2020-05-14 14:13:40 +02:00
bordun
f55e5ba49a ui: use logo_nobadge for osc inline icon 2020-05-14 14:11:34 +02:00
bordun
b31ea91e71 update icons 2020-05-14 14:10:35 +02:00
bordun
e947caefca package: remove obsolete examples 2020-05-14 13:40:20 +02:00
bordun
9c4f3dac75 compat: add some conversion cases 2020-05-14 13:27:48 +02:00
bordun
a05685f949 lancher: ui tweak 2020-05-14 11:39:23 +02:00
bordun
d269c30bae inspector: display transparent colors & ensure color picker is always visible 2020-05-14 11:31:31 +02:00
bordun
fb0b629b1c launcher: wait for 'server started' to open default client 2020-05-14 11:06:52 +02:00
bordun
fc9cb2870b docs: update & credit nord & atom 2020-05-14 10:56:53 +02:00
bordun
9db1597839 theme: orange --color-ui-button 2020-05-14 10:11:14 +02:00
bordun
742d3dafa8 ui: add --color-ui-button variable, adapt modal's theme, show prop name in color picker 2020-05-14 10:08:23 +02:00
bordun
9d477f1259 inspector: fold all categories by default 2020-05-14 01:37:05 +02:00
bordun
b2dd33bd0c ui: cropped bar icon = px perfect dot icon 2020-05-14 01:30:24 +02:00
bordun
3b4faeffd2 theme: dark by default; "nord" as option 2020-05-13 18:01:35 +02:00
bordun
7fe5f4cf28 settings: fix appAddress vs ssl when using launcher 2020-05-13 17:08:35 +02:00
bordun
37098c94f1 theme: add dark 2020-05-13 16:07:38 +02:00
bordun
1bf9b9a135 theme: orange theme adapt 2020-05-13 15:58:53 +02:00
bordun
73695a537e ui: main menu position 2020-05-13 15:54:07 +02:00
bordun
cc171da8b5 ui: back to bars menu icon 2020-05-13 15:52:36 +02:00
bordun
f2c51aae63 ui: inspector select width/pos 2020-05-13 15:39:12 +02:00
bordun
bb1b1f806a ui: launcher/inspector padding consistency 2020-05-13 15:35:01 +02:00
bordun
841d9782bd ui: invert inspector field label alignment & tweak field buttons 2020-05-13 15:28:50 +02:00
bordun
c34e9bcdb8 ui error/warning/success nord colors & launcher theming 2020-05-13 15:15:49 +02:00
bordun
9bc0c5e736 ui: tweak theme 2020-05-13 15:04:34 +02:00
bordun
0c11d5fd35 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-05-13 14:21:53 +02:00
bordun
37cc04e352 ui: rework default theme using "nord" color scheme 2020-05-13 14:21:23 +02:00
bordun
72e6250a00 osc receiver: allow receiving object args such as osc color args (#623) 2020-05-11 19:50:23 +02:00
bordun
040b2004da script: send(): use widget's target when omitted 2020-05-11 19:05:55 +02:00
bordun
47996c9311 docs: update 2020-05-11 19:05:50 +02:00
bordun
9f94273416 package: fix shim 2020-05-11 16:55:42 +02:00
bordun
3ef5fe1136 package: alpha 18 2020-05-11 16:47:43 +02:00
bordun
d1f937baf6 frame: allow non local urls 2020-05-11 16:46:53 +02:00
bordun
b1bb1c1bad script: better globals init 2020-05-11 16:05:11 +02:00
bordun
4a5843ced6 button/tab: missing dynamic flag for label prop 2020-05-11 16:04:55 +02:00
bordun
6ca89ed554 input: prevent focus when selecting 2020-05-11 13:41:29 +02:00
bordun
05b8e23001 iframes: add allow-forms flag; disable all pointer events when editor is enabled 2020-05-11 13:38:56 +02:00
bordun
feeda4aef2 script: fix link in prop description 2020-05-10 23:06:40 +02:00
bordun
99ea113a95 cli: prevent loading gui settings when running with node 2020-05-10 09:42:12 +02:00
bordun
8ce2032bfa docs: update and fixes 2020-05-09 18:39:04 +02:00
bordun
970bbb16c4 package: alpha 17 2020-05-09 18:23:47 +02:00
bordun
7fff98ede7 menu: align prop clean 2020-05-09 18:22:51 +02:00
bordun
52dd615939 menu: menu alignment options 2020-05-09 18:12:53 +02:00
bordun
971709355b modal/menu: layout breakout from everythinh except tab/root 2020-05-09 17:58:37 +02:00
bordun
5779443f79 widgets: missing property descriptions 2020-05-09 17:05:52 +02:00
bordun
29ad63c7d3 midi: print midi in debug log before osc in debug log 2020-05-08 11:20:00 +02:00
bordun
47de4036c3 midi: add device creation debug logs
osc/midi: add DEBUG prefix to debug logs
2020-05-08 11:06:51 +02:00
bordun
2b5be2a5e8 docs: virtual midi ports work on mac 2020-05-08 09:50:01 +02:00
bordun
0f98873ce7 docs: missing htaccess in git 2020-05-05 22:46:32 +02:00
bordun
fb38b0a22f docs: update 2020-05-05 22:41:23 +02:00
bordun
c76ed03a78 package: alpha 16 2020-05-05 18:43:19 +02:00
bordun
ba44bcad22 https: fix 2020-05-05 15:01:49 +02:00
bordun
4732e28b7c log: --use-ssl 2020-05-05 14:50:34 +02:00
bordun
faab8d9ea1 server: add --use-ssl option 2020-05-05 14:50:17 +02:00
bordun
ce8d8dcbd9 log/doc: --authentication 2020-05-05 12:21:18 +02:00
bordun
f0bb17193d server: lint 2020-05-05 12:11:11 +02:00
bordun
a560313619 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-05-05 12:06:01 +02:00
bordun
7cb729ff79 server: add --authentication option 2020-05-05 12:05:46 +02:00
bordun
57269d49c6 session: clear session name when creating a new session (#622) 2020-05-04 23:47:31 +02:00
bordun
48807e9f85 package: alpha 15 2020-05-01 16:20:11 +02:00
bordun
7db5963d4f visualizer: add 'freeze' prop 2020-05-01 13:25:56 +02:00
bordun
c0b3777217 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-05-01 12:04:19 +02:00
bordun
a1e0f1e80b package: fix ios10 build 2020-05-01 11:36:38 +02:00
bordun
0441fabfc6 package: alpha14 2020-04-30 09:50:56 +02:00
bordun
768b00d070 modal: allow disabling popupLabel and set default value to auto 2020-04-30 09:49:07 +02:00
bordun
3f647ad4e0 modal: remove icon hint (can be added manually in label), fix displayed default padding in inspector 2020-04-29 23:51:21 +02:00
bordun
728cd6bb65 modal: remove extra inner padding 2020-04-29 23:30:24 +02:00
bordun
939a8eda5e containers: inner padding tweaks 2020-04-29 23:30:12 +02:00
bordun
d1c69bc1eb Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-04-28 20:25:52 +02:00
bordun
2a9d4b6c18 panel: missing 1px of innerPadding 2020-04-28 20:22:43 +02:00
bordun
f06a083408 ios: disble overscroll fix on iOS 13, it's not needed and breaks scrolling (#618) 2020-04-28 18:30:05 +02:00
bordun
f9f5aa1813 ui: disable session save/export if session is null 2020-04-28 16:06:23 +02:00
bordun
ed9c1557a0 package: alpha 13 & rm old dep 2020-04-28 15:33:04 +02:00
bordun
2611f52149 cli: fix --custom-module check for path including spaces (#619) 2020-04-28 14:23:31 +02:00
bordun
1c25bf07ba modal: breakout clean 2020-04-28 14:17:39 +02:00
bordun
4f0dd29714 modal: cross browser modal breakout 2020-04-28 10:46:22 +02:00
bordun
c155d18686 sliders: rendering issues on ios 2020-04-28 10:35:14 +02:00
bordun
2298e0cb52 drag: fix touch traversing (#617) 2020-04-27 20:09:43 +02:00
bordun
610f39eb37 drag: fix draginit target storing when traversing 2020-04-27 20:09:22 +02:00
bordun
9f018214e2 editor: speed up lasso selection 2020-04-27 10:58:45 +02:00
bordun
92f5c26092 editor: check selection sibling against 1st selected widget only 2020-04-27 10:58:16 +02:00
bordun
ab1409bdbb root: more strict singleton fix 2020-04-27 10:07:26 +02:00
bordun
037e5d5f46 session: ensure 1/ root is singleton 2/ root has widgetManager as parent 2020-04-27 10:01:47 +02:00
bordun
4a28a0dd5e button: rm unneeded line-height declaration (#616) 2020-04-25 21:20:53 +02:00
bordun
e76760c8ba package: mb ok 2020-04-25 20:11:58 +02:00
bordun
f5ddeafa1b package: here we go 2020-04-25 20:08:30 +02:00
bordun
07869aa12c package: update ci dist 2020-04-25 20:03:41 +02:00
bordun
2462c5f38e package: ci fix ? 2020-04-25 19:58:16 +02:00
bordun
17955b74a8 package: ci pip install 2020-04-25 19:52:04 +02:00
bordun
3c75488ca0 server: lint 2020-04-25 19:46:47 +02:00
bordun
d9ff17d808 package: build docs in ci 2020-04-25 19:45:37 +02:00
bordun
d6c68884fd packge: alpha 12 2020-04-25 19:41:35 +02:00
bordun
8804868b4f docs: remove github stars counter and bypass xhr request, do some clean 2020-04-25 16:02:06 +02:00
bordun
fb1212d7e2 server: add docs-server, --docs cli option & Docs action in launcher menu 2020-04-25 13:37:29 +02:00
bordun
0d9832144d options: use existsSync to check files 2020-04-25 13:35:55 +02:00
bordun
2b529bc19d options: make sure nonLauncher options are kept in store and not save in config files 2020-04-25 13:15:39 +02:00
bordun
295ca34416 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-04-25 00:14:20 +02:00
bordun
9b75f8255d package: move electron license to LICENSE.electron and put o-s-c gpl in LICENSE (#615) 2020-04-25 00:14:05 +02:00
bordun
a280273d22 ui: context menu tweaks 2020-04-24 18:02:09 +02:00
bordun
2f8d2490ba package: alpha 11 2020-04-24 14:56:15 +02:00
bordun
2e6fa6dcb2 docs: widgets ref update 2020-04-24 14:52:26 +02:00
bordun
214cf059df docs: firefox support 2020-04-24 14:51:42 +02:00
bordun
36be8d6158 inspector: firefox: show textaread scrollbar when content is multiline 2020-04-24 14:45:22 +02:00
bordun
2ad0548517 slider: use standard wheel event (& firefox compatible) 2020-04-24 14:41:23 +02:00
bordun
2ba3eecc0f modal: firefox compact (ff doesn't support contain: style) 2020-04-24 14:29:02 +02:00
bordun
2cde21b1db ui: tweak edited widget border and make it compatible with firefox 2020-04-24 14:11:18 +02:00
bordun
0524ddab5a firefox: compat tweaks 2020-04-24 13:26:46 +02:00
bordun
6de2a761ab context-menu: smaller text 2020-04-24 13:24:59 +02:00
bordun
dcbea0086e inspector: hide _children
frame: rm label
2020-04-23 23:35:34 +02:00
bordun
e08f0d3354 ui: context menu style tweaks 2020-04-23 23:29:07 +02:00
bordun
0401ba9571 package: alpha 10 2020-04-23 23:10:23 +02:00
bordun
0b4e521ae7 launcher: fix layout 2020-04-23 23:09:28 +02:00
bordun
b4fc9833ee clone: pass css prop update to children 2020-04-23 20:06:24 +02:00
bordun
3340d08f45 clone: rm color bg override 2020-04-23 20:01:16 +02:00
bordun
89c8b2fb15 fader: add support for dash/gap size in dashed prop 2020-04-23 19:56:30 +02:00
bordun
d830035d46 widgets: clean label removal and lint 2020-04-23 19:42:53 +02:00
bordun
c1def950e8 log: rm label prop 2020-04-23 18:38:10 +02:00
bordun
aa67e88a5b widgets: various design & layout fixes 2020-04-23 18:36:32 +02:00
bordun
3f4261bacf text: fix default value 2020-04-23 17:16:04 +02:00
bordun
74440c9444 css: avoid using flex-direction: column whenever possible (perf hit) 2020-04-23 16:32:23 +02:00
bordun
c384b07177 context-menu: light themed 2020-04-23 16:22:37 +02:00
bordun
0ba050010a inspector: rm debug log 2020-04-23 15:21:40 +02:00
bordun
c72a1aacc5 widgets: remove built-in label except for button, modal & tabs
widgets: colorBg property for all; opaque background  for all
2020-04-23 15:20:21 +02:00
jean-emmanuel
7c63979db9
Merge pull request #614 from ritschwumm/patch-2
fix typo
2020-04-23 09:06:22 +02:00
ritschwumm
857e37089e
fix typo 2020-04-23 00:50:27 +02:00
jean-emmanuel
b8e8adbf80
Merge pull request #613 from ritschwumm/patch-1
fix typo
2020-04-22 22:43:45 +02:00
ritschwumm
13b82b9841
fix typo 2020-04-22 22:39:00 +02:00
bordun
7ba1936325 remote control: /EDIT: add support for option flags
docs: update
2020-04-22 16:22:05 +02:00
bordun
50fde74933 widget: resolve prop avoid error 2020-04-22 15:56:31 +02:00
bordun
4811012271 modal: missing innerPadding prop 2020-04-22 15:51:07 +02:00
bordun
d8de340ed0 panels: reorganize props, add innerPadding property to allow removing panel's inner padding while keeping children spacing
scss: better --widget-spacing def
2020-04-22 15:30:47 +02:00
bordun
892aa02ceb clone: reset "not-editable" after /EDIT modifications 2020-04-22 13:51:47 +02:00
bordun
bf639fa10c widgets: safe setvisibility() 2020-04-21 20:44:15 +02:00
bordun
7fb558ed96 Revert "panel: disable forced widget stretching in vertical/horiontal panels"
This reverts commit a67c8a1e0b.
2020-04-21 12:35:48 +02:00
bordun
99f48ac39b modal: fix visibility check 2020-04-21 11:39:49 +02:00
bordun
11eb291182 ui: use absolute positionning when possible to optimize browse layout calculation (flexbox performs much worse) 2020-04-20 12:02:45 +02:00
bordun
2335328c4e editor: don't use reserved event name for uidragresize resize 2020-04-20 08:33:59 +02:00
bordun
1f30407ca5 package: alpha 9 2020-04-19 23:33:19 +02:00
bordun
83537fec59 docs: desyncCanvas client option 2020-04-19 23:32:35 +02:00
bordun
8d5616a513 lint: misc fixes 2020-04-19 20:39:15 +02:00
bordun
6edb9ba85c canvas: no desynchronized canvas by default 2020-04-19 20:36:24 +02:00
bordun
a67c8a1e0b panel: disable forced widget stretching in vertical/horiontal panels 2020-04-19 20:33:59 +02:00
bordun
0be90dd155 modal: revert modal containment except in modals/tabs 2020-04-19 20:33:43 +02:00
bordun
29ad18de8c inspector: hide _children category 2020-04-19 20:31:24 +02:00
bordun
b3fe2f72ad ui: avoid full layout trashing triggered by sidepanels 2020-04-19 17:47:42 +02:00
bordun
00b86d08cd Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-04-19 10:49:03 +02:00
bordun
77e663ed89 icons: add support for transform suffixes 2020-04-19 10:44:01 +02:00
bordun
ecbc26c6bd package: alpha 8 2020-04-18 17:46:42 +02:00
bordun
0dabc3d943 visualizer: add framerate 2020-04-18 17:46:24 +02:00
bordun
010b164ada osc: fix inverted ingoreDefaults behavior 2020-04-18 17:35:02 +02:00
bordun
21c3ab2a2b package: alpha 7 2020-04-18 12:21:55 +02:00
bordun
10ada64ea9 docs: update prop ref 2020-04-18 12:21:13 +02:00
bordun
e94a9dc954 osc receiver: store receivers against all args to avoid conflicts 2020-04-18 12:14:50 +02:00
bordun
0bd2be3001 docs: osc receivers array/object default value 2020-04-18 12:13:46 +02:00
bordun
517e089773 widgets: implement ignoreDefaults property and remove support for null/self tokens in target 2020-04-17 18:41:59 +02:00
bordun
2f72768344 osc receiver: allow widget recreation when updating a non-dynamic prop (ignore circular dependence protection) 2020-04-17 18:33:38 +02:00
bordun
84ae37399d package: missing alpha6 2020-04-17 18:19:33 +02:00
bordun
5a34f52ed6 osc receiver: use json5 syntax to ease ux 2020-04-17 18:18:44 +02:00
bordun
b2f1003b7d script: set: pass fromScript flag 2020-04-17 14:16:29 +02:00
bordun
9afb2c7b55 script: generic id support for "this" (instead of "self") and "parent" 2020-04-17 14:12:51 +02:00
bordun
212144e5fd lint: quotes 2020-04-17 12:29:00 +02:00
bordun
4e49b09a33 plots: move var declare 2020-04-17 12:16:56 +02:00
bordun
b6023529f1 docs: scripting: "self" id 2020-04-17 12:16:43 +02:00
bordun
f21864a70c plots: small optimization: avoid avoid computing next point when y doesn't change 2020-04-17 11:57:04 +02:00
bordun
38833448cf script: add support for "self" id in set(), fix builtIn script check in send() 2020-04-17 11:56:06 +02:00
bordun
6490807e90 sliders: always update percent value when dragging between boundaries 2020-04-17 11:39:10 +02:00
bordun
5aaca31e69 editor: fix inspector update after lasso selection 2020-04-16 18:57:09 +02:00
bordun
b11e3d0d20 visualizer: ensure canvas loop is running when starting its own loop 2020-04-16 18:44:31 +02:00
bordun
8229526b16 docs: options descrptions 2020-04-12 10:32:42 +02:00
bordun
5af0aef473 docs: rm alpha link 2020-04-11 23:52:06 +02:00
bordun
f41ca1821b package: alpha5 2020-04-11 23:51:26 +02:00
bordun
1547cce874 server: better argv handling and hopefully fix for #612 2020-04-11 23:50:50 +02:00
bordun
f8f978948a docs: update alpha link 2020-04-11 18:25:00 +02:00
bordun
b4276b1544 package: alpha4 2020-04-11 18:21:48 +02:00
bordun
be1fe867db launcher/windows: prevent args containing colons from breaking config 2020-04-11 18:21:32 +02:00
bordun
0bd5cc9453 launcher: ensure .config extension on saved file 2020-04-11 15:46:59 +02:00
bordun
1bea2f1fce docs: phrasing boom 2020-04-09 20:04:42 +02:00
bordun
162319ca98 docs: fix alpha link 2020-04-08 23:28:53 +02:00
bordun
59d7cb8a67 docs: 404 page and misc things 2020-04-08 18:39:01 +02:00
bordun
fdb3aceb20 docs: link fixes 2020-04-08 16:51:25 +02:00
bordun
94493a5a11 docs: link error 2020-04-08 16:37:17 +02:00
bordun
cd93dd804f docs: update screenshots 2020-04-08 16:33:41 +02:00
bordun
ce1cb68c7a docs: restore dynamic prop hint 2020-04-08 16:24:53 +02:00
bordun
567b43625b docs: update discourse logo && script 2020-04-08 16:16:49 +02:00
bordun
fcc850df5e docs: getting there 2020-04-08 15:58:03 +02:00
bordun
3c101c774d docs: recolor logo, tweak theme wip 2020-04-08 09:31:14 +02:00
bordun
188b5ce5fb package: alpha3 2020-04-06 17:10:27 +02:00
bordun
c2b5f7e166 docs: css var fix 2020-04-06 17:03:09 +02:00
bordun
86c98a1b33 docs: css variables 2020-04-06 17:01:06 +02:00
bordun
8de2c8b3bf inspector: choices in help modal
docs: continue
2020-04-06 16:33:51 +02:00
bordun
1237c3f434 docs: making progress 2020-04-06 15:56:12 +02:00
bordun
b661e07228 docs: more 2020-04-06 15:50:03 +02:00
bordun
9c8f736ad8 docs: misc 2020-04-06 14:58:41 +02:00
bordun
da1ed639c0 docs: widget ref generated hint 2020-04-06 14:56:15 +02:00
bordun
f9fd1ca2a8 docs: wip wip 2020-04-06 14:53:08 +02:00
bordun
15904133f3 script: fix script prop doc 2020-04-06 14:46:08 +02:00
bordun
3240f694fd docs: ui/tree 2020-04-06 14:24:52 +02:00
bordun
c99bb149fa docs: user interface wip 2020-04-06 13:37:36 +02:00
bordun
ab9dc733d1 launcher: hide double dash options prefix 2020-04-06 12:25:21 +02:00
bordun
48fd0c0fce editor: ignore invisible widgets when drawing dragresize area 2020-04-06 11:56:25 +02:00
bordun
6c20deedf3 docs: getting started ok, scripting missing clues 2020-04-06 11:40:27 +02:00
bordun
fd3b35a604 cli: move --fullscreen 2020-04-06 11:21:23 +02:00
bordun
06ebc167fc server: --tcp-target check consistency 2020-04-06 10:50:10 +02:00
bordun
0271ebd267 docs: intro update 2020-04-05 19:52:09 +02:00
bordun
c267caaf90 docs: intro 2020-04-05 19:36:54 +02:00
bordun
ef903fe331 package: alpha2 2020-04-05 18:51:08 +02:00
bordun
3db954bef0 multixy: fix inner pads visibility update 2020-04-05 18:50:26 +02:00
bordun
9a80a5ea35 fader: pips position tweaks 2020-04-05 18:36:39 +02:00
bordun
7b119c9b4e ipc/server: differenciate 'close' and 'destroyed' events 2020-04-05 18:30:48 +02:00
bordun
66596e8a07 fader: use colorFill for pip color, colorStroke for head color 2020-04-05 18:18:50 +02:00
bordun
d76e43a826 docs: script property desc 2020-04-05 17:41:05 +02:00
bordun
9ccbe31b3f docs: small screen layout fix on home/download pages 2020-04-05 15:48:56 +02:00
bordun
7f27168271 midi: valid syntax check 2020-04-05 15:42:52 +02:00
bordun
28b243cb44 package: alpha1 2020-04-05 11:05:52 +02:00
bordun
e7bd300b10 launcher: more contrasted help messages 2020-04-05 10:49:54 +02:00
bordun
de020426e6 launcher: no accent color on start button 2020-04-05 10:48:18 +02:00
bordun
2538339ce5 launcher: rm old file 2020-04-05 10:45:57 +02:00
bordun
e4bfd7251f launcher: start button in toolbar 2020-04-05 10:45:43 +02:00
bordun
503c8643be server: fix variable assignments in for loops 2020-04-04 22:39:29 +02:00
bordun
a6f159f672 docs: update 2020-04-04 17:15:47 +02:00
bordun
7eaa6c89a0 package: copy fonts, nosymlink 2020-04-04 12:49:20 +02:00
bordun
8581e622b0 Revert "package: no more 32bit linux binaries"
This reverts commit a286a63f39.
2020-04-04 12:12:19 +02:00
bordun
4595b0068f docs: continue 2020-04-04 12:04:11 +02:00
bordun
a286a63f39 package: no more 32bit linux binaries 2020-04-04 12:03:52 +02:00
bordun
662795dee9 docs: json error 2020-04-04 11:37:05 +02:00
bordun
1fdba96ebd docs: yml clean 2020-04-04 11:19:17 +02:00
bordun
33bd937c3b Merge branch 'pixelnerve-master' 2020-04-04 11:18:07 +02:00
bordun
5a72021fb4 Merge branch 'master' of https://github.com/pixelnerve/open-stage-control into pixelnerve-master 2020-04-04 11:15:59 +02:00
bordun
49044db9e9 package: alpha0 2020-04-04 11:14:34 +02:00
bordun
b6fab3f613 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-04-04 11:11:20 +02:00
bordun
16110c9d9e fonts: woff2 roboto
docs: cleanup
2020-04-04 11:09:32 +02:00
bordun
08efe1689e scripts: tweaks 2020-04-03 12:58:53 +02:00
bordun
ef3559ffef docs: wip
assets: move fonts to resources/
2020-04-03 12:58:28 +02:00
bordun
cd2e77272c misc: fix some module require orders 2020-04-03 12:36:25 +02:00
bordun
831f80f7b0 script: always provide id in built in script 2020-04-01 13:49:14 +02:00
bordun
187e35d766 doc: script var id & value 2020-04-01 13:48:55 +02:00
Pixelnerve
976686a328 Change string to single quote
Remove semi-colon
2020-03-31 23:57:11 +02:00
Pixelnerve
0ed8688be4 Resolve special char "~" on Dialog Box's paths. "~" will be resolved to the user's home directory.
Example: Open a Dialog Box on the user's Documents folder with "~/Documents"
2020-03-31 23:41:35 +02:00
bordun
63c8dea9cd button: avoid loop on tap release 2020-03-31 09:52:53 +02:00
bordun
b749274921 notification: safe removal 2020-03-31 09:52:39 +02:00
bordun
bd34ff0fb0 docs: phrasing 2020-03-30 20:15:02 +02:00
bordun
a97eacf38c docs: scripting 2020-03-30 20:14:08 +02:00
bordun
fa84ef41b5 script: make send() first arg optional 2020-03-30 20:13:16 +02:00
bordun
8a854ad186 docs: JS{{}} docs 2020-03-30 19:15:35 +02:00
bordun
684016e76a docs: rm mathjs 2020-03-30 19:00:43 +02:00
bordun
f4718abeed docs: custom module update 2020-03-30 18:58:49 +02:00
bordun
ca63ddf072 log: missing space 2020-03-30 18:28:03 +02:00
bordun
e4b28363eb client: better unload callback 2020-03-30 18:26:18 +02:00
bordun
62f01fa18e client: fix module load order 2020-03-30 18:22:34 +02:00
bordun
6e9c28a5f4 session: rm debug log 2020-03-30 18:18:11 +02:00
bordun
7e66b67f9a custom-module: strict clientId detect 2020-03-30 18:09:41 +02:00
bordun
92f321381d remote/notify: empty value fallback to blockspace 2020-03-30 18:06:52 +02:00
bordun
5490a94ba4 custom-module: pop last optional arg if used 2020-03-30 18:05:16 +02:00
bordun
0f8b11cbfd ipc: emit 'close' when closing/refreshing tab 2020-03-30 18:03:10 +02:00
bordun
200394ec6c client: allow specifying client id via url options 2020-03-30 17:55:18 +02:00
bordun
dffea3209a server: clean callback module a bit
custom-module: allow extra options arg in receive() to choose the client
2020-03-30 17:47:43 +02:00
bordun
33c75865be editor: ensure @{} bindings are always updated upon edition 2020-03-30 12:01:15 +02:00
bordun
9cd322c55f fileupload: var name err 2020-03-29 15:12:50 +02:00
bordun
5fc9abfaa4 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-03-29 15:06:27 +02:00
bordun
781a13b1a8 cli: don't coerce args in option store 2020-03-29 15:05:52 +02:00
bordun
8085749aeb launcher: propert server start/stop callback 2020-03-29 15:05:16 +02:00
bordun
b376bbd325 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-03-27 23:46:01 +01:00
bordun
6511ba7d47 toolbar: disable recent session submenu when empty 2020-03-27 23:45:29 +01:00
bordun
021666f03c lint: quotes 2020-03-26 15:29:26 +01:00
bordun
68d6dd1ea4 inspector: small improvements on help popup 2020-03-26 15:13:10 +01:00
bordun
e50eaa49a4 frame: no pointer event when empty 2020-03-26 14:54:52 +01:00
bordun
3bd32521a9 text: style fix 2020-03-26 14:45:52 +01:00
bordun
0d8a103682 clone: don't copy class .no-interaction 2020-03-26 14:45:40 +01:00
bordun
74df5c6bb1 session: a few more compat fixes with v0 2020-03-26 14:42:17 +01:00
bordun
eae79e51d6 colorPanel: missing in some widgets + description 2020-03-26 14:20:06 +01:00
bordun
8d4e675a85 hotreload: use sessionStorage instead of localStorage 2020-03-26 14:17:04 +01:00
bordun
62d50ae68b misc: implicit callback namin 2020-03-26 14:15:47 +01:00
bordun
5e511775fc cli: -c check fix 2020-03-26 14:12:27 +01:00
bordun
600621bc42 lint: unused vars 2020-03-26 12:59:04 +01:00
bordun
c645de3a45 modal: tweak simple message formatting
package: missing dep
2020-03-26 12:52:13 +01:00
bordun
0312959145 session: implement session converter; add some meta data
dev: handle hot reload data with localStorage
2020-03-26 12:29:06 +01:00
bordun
60812ed042 button: default size 2020-03-26 12:28:37 +01:00
bordun
c8dd38ab00 package: watch script tweak 2020-03-26 10:28:57 +01:00
bordun
84bba821a8 docs: missing file 2020-03-25 12:55:05 +01:00
bordun
f7cf65fb4f docs: no cdn 2020-03-25 12:52:04 +01:00
bordun
d38e377346 electron: ctrl+w close on keyDown only 2020-03-25 11:41:02 +01:00
bordun
7858a44974 widgets: missings property descriptions 2020-03-25 11:35:35 +01:00
bordun
ad620dcd35 knob: rm alternate design and tweak main design 2020-03-25 11:31:56 +01:00
bordun
5ae84d83a7 text: vertical centering fix 2020-03-25 11:22:44 +01:00
bordun
036e3fdaa6 eq: standard value handling 2020-03-25 11:08:13 +01:00
bordun
90e613f33f lint: var/let 2020-03-25 10:47:37 +01:00
bordun
24795b4ed9 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-03-25 10:40:50 +01:00
bordun
e71eef39bb options: regexp error 2020-03-25 09:38:20 +01:00
bordun
ca1af1af13 matrix: default type to button 2020-03-24 20:33:37 +01:00
bordun
fc9b0a8a2c multixy: update pads css cache on update 2020-03-24 12:56:45 +01:00
bordun
973d908525 eq: fix filter.on 2020-03-24 12:42:19 +01:00
bordun
62af51dcc7 script: safe compile 2020-03-24 12:17:11 +01:00
bordun
856627604b session history: wrong dedupe 2020-03-24 11:57:45 +01:00
bordun
c1ca0aaecd state: store quickstate in client localStorage 2020-03-24 11:51:59 +01:00
bordun
2a78d8d693 Merge branch 'v0' 2020-03-24 11:23:55 +01:00
bordun
4816009480 package: update deps & build
scripts
2020-03-24 11:17:46 +01:00
bordun
3ebb4121b4 package: last v0 release 2020-03-24 11:14:24 +01:00
bordun
365cf1a9bc dropdown: value update issue on iOS 13
html: allow `class`, `title` and `style` attributes
2020-03-24 11:10:01 +01:00
bordun
987f12bdd0 eq: tweak, smoothing !! 2020-03-23 19:23:48 +01:00
bordun
5372580b0a eq: revert to js biquad implementation for better compatibility 2020-03-23 19:07:09 +01:00
bordun
1b041c6f7b eq: soft load audio context 2020-03-23 18:16:50 +01:00
bordun
3a2d40172d menu: bad import 2020-03-23 18:16:39 +01:00
bordun
d092868210 dropdown: force menu close on ios only 2020-03-23 18:16:28 +01:00
bordun
96c9980cec canvas: not ready 2020-03-23 16:30:09 +01:00
bordun
e4f356c205 widgets: default sizes 2020-03-23 16:29:10 +01:00
bordun
9b478ddf1d fader: add horizontal class
range: design name fix
2020-03-23 16:28:44 +01:00
bordun
e10436d507 menu/dropdown/switch: unfinished unification 2020-03-23 16:13:44 +01:00
bordun
00a95d5277 lint: lint lint lint 2020-03-23 15:58:08 +01:00
bordun
4d79470575 lint: white spaces & var decl 2020-03-23 15:43:24 +01:00
bordun
74dcbd2aff lint: spaces 2020-03-23 15:35:07 +01:00
bordun
d40f8155c7 fileupload: uiloading error 2020-03-23 14:44:38 +01:00
bordun
96c59ee3bd missing file 2020-03-23 14:42:12 +01:00
bordun
e49c9ce00e switch/menu/dropdown: unified value parsing
dropdown: remove `showValues`
2020-03-23 14:25:56 +01:00
bordun
71a67cdb64 menu: value display fix 2020-03-23 13:19:58 +01:00
bordun
1660c98781 upd: var error 2020-03-23 13:12:56 +01:00
bordun
3f87e3a698 dropdown: remove 1st empty option, clean value update routine 2020-03-23 13:12:30 +01:00
bordun
2dfa26ea07 changelogs 2020-03-23 12:47:38 +01:00
bordun
26394cd836 tree: clear expanded hash store, only expand root once at init 2020-03-23 12:41:59 +01:00
bordun
70462e4c24 widget: reuse hash upon recreation
widget: fix js locals reuse
tree: use hash instead of id to determine expanded containers
2020-03-23 12:34:50 +01:00
bordun
4b06accab8 locales: update fr/en and delete ru 2020-03-23 12:10:44 +01:00
bordun
3eaa01b24a editor: prevent interaction with widgets when shift or ctrl is held 2020-03-23 11:42:13 +01:00
bordun
7a03d6ba57 script: set correct context for setTimeout and setInterval 2020-03-23 11:07:00 +01:00
bordun
589625b9fe dropdown: close when receiving a value 2020-03-23 11:00:06 +01:00
bordun
500fbe384c canvas clear 2020-03-23 10:18:45 +01:00
bordun
086a727acf builtin script 1st try 2020-03-23 10:18:32 +01:00
bordun
dcb24e5f09 eq: some clean
logscale: adaptive log scale and allow manual value
2020-03-22 15:46:36 +01:00
bordun
0bf95e356b editor: prevent copy/cut on root, fix cut 2020-03-21 23:13:52 +01:00
bordun
94f5a0ba5e logScale: reverse logScale logic (to the expected one) and allow exponential if logScale == -1
eq: reimplement using native audio node biquad filters
sidepanel-right: prevent 1px border-right from messing with scrollbar interaction
2020-03-21 19:50:19 +01:00
bordun
66c68a734e editor: keybinding clean
vm: global globals
2020-03-21 12:41:26 +01:00
bordun
90ae97d412 clean 2020-03-21 11:53:28 +01:00
bordun
9b698f7136 eq: define filters in "filters" property
plot: var declaration fixes
inspector-field: smart quote fix
2020-03-21 11:42:20 +01:00
bordun
eacd44cc8c script: fixes and timeouts/intervals implementation 2020-03-20 17:43:53 +01:00
bordun
7bf8193b61 theme: orange 2020-03-20 13:08:55 +01:00
bordun
a588fb2b4a settings: refactor settings store
read-only: pass flag with index.html response
theme: clean & remove old themes
2020-03-20 12:57:47 +01:00
bordun
a6b82a4c93 fix dragresize position to grid when initial position/size is not on the grid 2020-03-20 10:08:38 +01:00
bordun
225590ecb2 html: allow class, title and style attributes 2020-03-20 09:42:28 +01:00
bordun
c1924f8e41 eq: remove logScaleX property => always to true 2020-03-20 09:35:29 +01:00
bordun
b63b3ebac7 root: missing scroll property
scrollbar: error when transparent
2020-03-19 18:18:00 +01:00
bordun
a0882e655c fix azerty ctrl+w 2020-03-19 17:42:45 +01:00
bordun
ea2e8f7c92 Merge branch 'master' into v1 2020-03-18 11:18:45 +01:00
bordun
ffd3d08579 package: v0.49.11 2020-03-18 11:15:29 +01:00
bordun
edc4ffd2ec html widget: content not initialized properly 2020-03-18 11:12:05 +01:00
bordun
b2da0a8962 icon: regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters) 2020-03-18 10:58:07 +01:00
bordun
ae0fbaa646 test: fix scripts 2020-03-17 19:49:12 +01:00
bordun
9a6b5d92c1 Merge branch 'master' into v1 2020-03-17 19:40:30 +01:00
bordun
100f3a824d ngpu fix: missing global declaration 2020-03-17 19:33:33 +01:00
bordun
0bab9a1d1e package: fix test script 2020-03-17 19:25:59 +01:00
bordun
6806ebc72a Merge branch 'master' into v1 2020-03-17 18:54:05 +01:00
bordun
1c65ae4521 package: electron downgrade (windows compat issue) 2020-03-17 18:48:12 +01:00
bordun
e43e290300 no-gpu fix: missing import 2020-03-17 18:41:36 +01:00
bordun
421999e70b misc: prevent converting "^icon-name" to an icon (in text widgets and labels) when icon-name is too short to be a valid icon name (minimum 4 characters) 2020-03-17 18:41:22 +01:00
bordun
6bded203a8 cli: prevent --disable-gpu from bypassing the launcher
canvas: canvas glitches when hardware acceleration is disabled (--disable-gpu) (built-in gui only)
2020-03-17 18:25:12 +01:00
bordun
4c837e843c clean 2020-03-17 17:53:36 +01:00
bordun
c2fad00c23 server: allow user loading svg files
package: v0.49.10
2020-03-17 17:43:30 +01:00
bordun
6b0b637f07 package: downgrade electron engine to fix regression (v0.49.8) on some systems 2020-03-17 16:35:09 +01:00
bordun
97ab1a7b15 fix canvas issue when gpu is disabled 2020-03-15 23:45:27 +01:00
bordun
6061995605 restore --disable-gpu (cli only) & minor fix 2020-03-15 23:22:45 +01:00
bordun
7b49c098d7 --cache-dir & --config-path 2020-03-15 23:15:31 +01:00
bordun
8c9e82de03 Merge branch 'master' into v1 2020-03-15 21:45:39 +01:00
bordun
643211b39f package: fix test 2020-03-15 21:42:53 +01:00
bordun
831a0582f2 drop ios 9.3 2020-03-15 21:38:53 +01:00
bordun
cd013e372e package: update electron (attempt to fix #599) and release v0.49.8 2020-03-15 21:21:55 +01:00
bordun
444049b782 big clean, multi point touchstate, auto update check toggle, rm switchers, add state fn to scripts 2020-03-15 19:14:08 +01:00
bordun
921f8008df evaljs -> vm; clean mapToScale; add JS locals variable 2020-03-14 19:06:56 +01:00
bordun
80c75ae40c minor fixes & stacktrace folding in terminal 2020-03-13 16:28:43 +01:00
bordun
ec7147a9de client options 2020-03-12 12:07:58 +01:00
bordun
e1eb6b5df1 ctrl+w=close window & minor fixes 2020-03-12 11:01:59 +01:00
bordun
97c504e79a launcher ok 2020-03-11 16:42:45 +01:00
bordun
a8fee9c5c3 minor fixes 2020-03-11 10:33:18 +01:00
bordun
eadd2f5b7f error handling, launcher ui, read-only mode, rm plot/smooth 2020-03-09 19:12:43 +01:00
bordun
b215c41c5b traversing stack works 2020-03-07 12:38:59 +01:00
bordun
f7119040b1 be4 traversing mod 2020-03-07 11:42:41 +01:00
bordun
e370d77f15 uimodal tweak, inspector help modal 2020-03-06 20:18:40 +01:00
bordun
05594ca878 norelease toggle doesn't sync anymore 2020-03-06 17:18:53 +01:00
bordun
07b67f10d2 allow copying tabs too 2020-03-06 16:47:59 +01:00
bordun
49ac867c63 be4 copy paste any widget 2020-03-06 15:42:23 +01:00
bordun
0f957475a8 Merge branch 'master' into v1 2020-03-05 22:35:33 +01:00
bordun
2cee11b1fe log: rgb range fix 2020-03-05 22:35:03 +01:00
bordun
f8b4792bd6 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-03-05 22:34:23 +01:00
bordun
543075ed5f rgb: range not applied when receiving value 2020-03-05 22:33:39 +01:00
bordun
c2ea1e0073 check 2020-03-05 22:32:38 +01:00
bordun
48326389ad sync: typo breaking sync when a single string target is set (#598) 2020-03-05 12:06:22 +01:00
bordun
75be4b7d71 uitoolbar pretty cool, contextmenu improvements, allow root containing normal widgets 2020-03-04 15:11:31 +01:00
bordun
e530e33900 uiToolbar on the way, screen sized windows by default 2020-03-03 22:18:16 +01:00
bordun
9eb5dd5060 rename precision to decimals, add typeTags, continue refactoring 2020-02-29 17:03:26 +01:00
bordun
37bf03a336 fader modes, rgb fix 2020-02-27 16:47:01 +01:00
bordun
7b8af3eeea custom color picker 2020-02-27 14:35:08 +01:00
bordun
c67c2b4c50 ui progress 2020-02-25 18:45:25 +01:00
bordun
76c7e7b8a6 nice editor there 2020-02-25 12:31:22 +01:00
bordun
216951a6ea v1 on fire 2020-02-24 19:18:24 +01:00
bordun
6a308202ce continue v1 2020-02-24 14:00:59 +01:00
bordun
c4d0720d6d package: structure 2020-02-24 11:00:56 +01:00
bordun
616c0c5eee lint: unnused var 2020-02-24 10:45:49 +01:00
bordun
84e3a90d91 Merge branch 'master' into v1 2020-02-24 10:45:10 +01:00
bordun
8b8ed54a48 launcher: disable unstable Relaunch context menu action 2020-02-24 10:40:32 +01:00
bordun
f97ce68882 package: restore yargs update 2020-02-24 10:34:51 +01:00
bordun
e055fad12f package: v0.49.6 2020-02-24 10:32:07 +01:00
bordun
1c97047b99 cli: windows users launching the app from a terminal now need to add a double dash (--) before their options 2020-02-24 10:31:28 +01:00
bordun
78134b7865 Merge branch 'master' into v1 2020-02-23 19:46:27 +01:00
bordun
32176c6c9e packge: v0.49.5 2020-02-23 19:42:20 +01:00
bordun
dbb051e301 cli: downgrade yargs to fix #596 2020-02-23 19:40:38 +01:00
bordun
6c9220d0ab Merge branch 'master' into v1 2020-02-23 18:56:39 +01:00
bordun
e180b889cb launcher: fix file browsing (dialog.showOpenDialog now returns a promise) 2020-02-23 15:10:12 +01:00
bordun
9c2a624aa0 v1 refactor wip 2020-02-23 12:36:06 +01:00
bordun
e57cd32438 package: 0.49.4 2020-02-23 12:30:42 +01:00
bordun
1557fecef9 fader: meter: use fader's target (allows midi sync) 2020-02-23 12:29:14 +01:00
bordun
6d35b17a46 launcher: use current midi config for "List devices" action 2020-02-23 12:23:15 +01:00
bordun
88a3d8da2a image: fix absolute path & reset to 'default' instead of 'value' when receiving an empty value 2020-02-23 12:20:24 +01:00
bordun
c85c2ad2c4 log: zombie process issue 2020-02-09 15:45:06 +01:00
bordun
50899fdee0 package: 0.49.3 2020-02-09 15:43:46 +01:00
bordun
6719f31751 package: latest 7.1.* electron 2020-02-09 15:42:39 +01:00
bordun
75057a7513 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-02-09 12:09:28 +01:00
bordun
6ee68b0b6c launcher; restore default log methods when closed to avoid errors 2020-02-09 12:08:28 +01:00
bordun
0ab40dbb2f docs: hint right click midi device list 2020-02-08 13:40:00 +01:00
bordun
4f1314e8b7 docs: wrong midi note 2020-02-08 13:23:03 +01:00
bordun
f0747c5e8f package: 0.49.2 2020-02-07 08:12:11 +01:00
bordun
f30dd79f0c themes: tweaks 2020-02-06 23:53:14 +01:00
bordun
9aa0210d01 sidepanel: fix box shadow color 2020-02-06 23:40:32 +01:00
bordun
5881611374 editor: assign correct address based on id when emptying the field (#592) 2020-02-06 23:25:28 +01:00
bordun
7da43a5c35 plots: always set bypass to false`(#592) 2020-02-06 23:17:01 +01:00
bordun
8cbdb03060 package: v0.49.1 2020-02-06 10:11:08 +01:00
bordun
2f6a03350e menu: fix item hover/selection on touchmove 2020-02-06 10:08:01 +01:00
bordun
5cb6423051 custom module: send() function casting numbers to integers instead of floats by default 2020-02-04 08:26:10 +01:00
bordun
ca20d3cdef modal: error when label depends on a child's property 2020-02-03 14:38:17 +01:00
bordun
97d5296293 docs: mv donate -> support 2020-01-31 19:39:35 +01:00
bordun
7ad382f306 docs: tab: typo 2020-01-31 19:33:54 +01:00
bordun
705bfc0677 docs: id conflict fix 2020-01-31 19:31:51 +01:00
bordun
a90dceca63 lint: unnused var 2020-01-31 15:36:23 +01:00
bordun
663c87c041 docs: minor fixes 2020-01-31 15:35:25 +01:00
bordun
35de57cb79 package: v0.49.0 2020-01-31 15:26:30 +01:00
bordun
51730bea42 mathjs: mute deprecation warning until there's an easy migration tip to provide 2020-01-31 15:21:30 +01:00
bordun
2d18b2fdba docs: arch armv7l instruction 2020-01-31 15:14:22 +01:00
bordun
3b2aa8fbd2 docs: phrasing boom 2020-01-31 14:52:49 +01:00
bordun
aca20b1226 docs: remove donate btn & add some explanations 2020-01-31 14:50:12 +01:00
bordun
3385dcdd4e log: tab detached option 2020-01-31 14:20:27 +01:00
bordun
c7f6965c72 docs: add tab & root, fix default value display 2020-01-31 14:18:42 +01:00
bordun
4df408c74e log: bad white space 2020-01-31 14:05:46 +01:00
bordun
d64452af99 client sync: use raw target to avoid comparison errors 2020-01-31 14:02:24 +01:00
bordun
92339a9086 docs: update cli 2020-01-31 13:36:40 +01:00
bordun
22a85de1b2 docs: update property syntax docs & widget reference 2020-01-31 13:34:54 +01:00
bordun
c0414eed8e docs: clean 2020-01-30 22:47:27 +01:00
bordun
88eb7aee34 docs: clean 2020-01-30 22:46:45 +01:00
bordun
a53673f0bc docs: rm jumbotron iframe 2020-01-30 22:42:00 +01:00
bordun
2d1ddd3353 state: set statePath when opening a state file from the server (#590) 2020-01-30 13:31:12 +01:00
bordun
3ba0719013 canvas: don't use deprecated rendering method 2020-01-28 23:56:12 +01:00
bordun
683eb37c44 package: missing transpilations for old electron compat 2020-01-28 16:52:33 +01:00
bordun
1463eec81d docs: link to fontawesome in label's doc 2020-01-28 16:35:37 +01:00
bordun
acf90ff0ca text: optimize value update when there's no icon to draw 2020-01-28 16:32:47 +01:00
bordun
92c6f15fab Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-01-28 16:04:19 +01:00
bordun
26964cec84 cli: allow midi:port_name pairs in --send option 2020-01-28 16:03:58 +01:00
bordun
7f4a4f8447 tab: test setting detached as an option 2020-01-28 11:36:49 +01:00
bordun
176ce80cc0 package: transpile yargs to keep compatibility with older node/electron 2020-01-28 11:26:18 +01:00
bordun
0e4ba29dd9 browser: file load regression 2020-01-27 13:28:37 +01:00
bordun
5f9b2c0867 package: update debian packager 2020-01-27 12:48:06 +01:00
bordun
d80ca6b1d4 package: v0.49.0-rc2 2020-01-27 10:15:56 +01:00
bordun
95d0f8acf3 package: update scripts 2020-01-27 09:56:28 +01:00
bordun
1dc70c69cb menu: position tweaks 2020-01-27 09:42:37 +01:00
bordun
75f90e7455 menu: close when clicking outside in toggle mode 2020-01-27 09:27:49 +01:00
bordun
699078e089 cli: add --force-gpu switch 2020-01-27 08:55:32 +01:00
bordun
81dc3f5c19 mathjs: print deprecation warning for each widget 2020-01-27 08:44:32 +01:00
bordun
5b0279a01c file: fix folder string display 2020-01-27 00:31:51 +01:00
bordun
58aa2f3048 modal: nested modal fix 2020-01-26 21:34:24 +01:00
bordun
2cd8a20413 menu: position fix in modals 2020-01-26 21:34:06 +01:00
bordun
c583567a1c menu widget: layout fix 2020-01-26 20:43:28 +01:00
bordun
344102573f script: adapt shim 2020-01-26 19:59:19 +01:00
bordun
e940175c6d package: 0.49.0 build test 2020-01-26 17:53:02 +01:00
bordun
d81b184c4a package: add arm64; rpi build should work with default version now 2020-01-26 17:47:34 +01:00
bordun
feefa95ca6 electron: adapt exit warning to new version 2020-01-26 17:40:55 +01:00
bordun
9b0b8ce46c fullscreen: adapt to new version 2020-01-26 17:31:19 +01:00
bordun
3e93ef8dc4 mathjs; downgrade version & deprecate syntax 2020-01-26 17:22:51 +01:00
bordun
5ff01fd845 package: downgrade buggy dep 2020-01-26 17:04:15 +01:00
bordun
f84973bdc3 package: rm utf8 dep 2020-01-26 16:56:23 +01:00
bordun
25b761a4ef osc: utf8 read/write is now supported upstream 2020-01-26 16:54:32 +01:00
bordun
da5e5c5d7f electron: prevent backgorund color flash 2020-01-26 16:53:02 +01:00
bordun
fe6a30c5a2 package: attempt to update all deps 2020-01-26 16:52:46 +01:00
bordun
e5a696bbcf package: next release is 0.49.0 2020-01-26 16:38:35 +01:00
bordun
8ae0e43e46 editor: fix error when hitting mod + a and unselecting widgets 2020-01-26 16:37:36 +01:00
bordun
c3b9563adf tabs: test tabs perfs without DOM detach (#589) 2020-01-26 12:06:50 +01:00
bordun
483a991d6f file widget: add allowDir property (#589) 2020-01-26 11:57:23 +01:00
bordun
06c10d527f file: allow selecting folders (#588) 2020-01-26 11:01:34 +01:00
bordun
5f3655bdd2 ui: prevent error on scroll-zoom 2020-01-26 10:45:22 +01:00
bordun
89afc655df menu widget: tweaks 2020-01-25 19:00:50 +01:00
bordun
eb6bd473f5 menu widget: doubletap & toggle modes 2020-01-25 15:45:19 +01:00
bordun
e402100f3e modal: title color fix 2020-01-25 15:45:12 +01:00
bordun
d35544ca26 menu widget: better icon 2020-01-25 15:19:49 +01:00
bordun
bafe7f75dc editor: set label to auto instead of true when using the toggle button 2020-01-25 15:16:38 +01:00
bordun
9e74387ede menu widget: add layout modes and tweak 2020-01-25 15:10:21 +01:00
bordun
7ad571e8fd Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2020-01-23 23:56:18 +01:00
bordun
87120e7056 widgets: new menu widget, fresh implementation (#468) 2020-01-23 23:54:40 +01:00
bordun
2cc705a1e0 plots: allow setting targets property for midi bindings
docs: mention target requirements
2020-01-21 17:49:50 +01:00
bordun
7434e84bf0 editor: convert invalid quote characters automatically to avoid errors 2020-01-15 16:55:55 +01:00
bordun
6c1626918b log: 0.48.8 2020-01-14 22:30:16 +01:00
bordun
1c06918873 package: 0.48.8 2020-01-14 22:27:38 +01:00
bordun
11304b9f7c save dialog: prevent keys widgets from capturing keystrokes when typing the filename 2020-01-14 22:27:11 +01:00
bordun
c6a0378360 midi: take server targets into account to determine widget matching 2020-01-03 18:28:55 +01:00
bordun
79c56761c1 tcp: prevent sending osc messages on udp port when the same port number is set as a tcp target 2020-01-03 10:02:43 +01:00
bordun
bc0366bb31 log: strip fix 2019-12-27 10:30:57 +01:00
bordun
5ab1e334d4 strip: layout issues when moving widget in a strip (min width/height still active) 2019-12-23 15:43:19 +01:00
bordun
c4d84c5a28 package: 0.48.7 2019-12-23 13:38:02 +01:00
bordun
477662f2e1 plot: fix origin property ignore when == 0 2019-12-23 13:20:34 +01:00
bordun
e13757304d osc/midi: messages received from a midi port only affect widgets that send to this port 2019-12-20 13:38:23 +01:00
bordun
04c12d3aa9 utils: rm inacurate statement 2019-12-20 13:21:46 +01:00
bordun
74baa7871f mac os: add support for emulated right click via ctrl+click 2019-12-15 19:24:57 +01:00
bordun
c5ff84a3bd xy: fix spring prop (#581) 2019-12-14 20:35:58 +01:00
bordun
34a93bde3b lint: duplicate var name 2019-12-14 14:55:01 +01:00
bordun
55de7ce7c1 package: 0.48.6 2019-12-14 14:48:23 +01:00
bordun
2a3f2d509d editor: clean keyboard bindings and always avoid default browser action 2019-12-14 14:46:33 +01:00
bordun
9e570838c7 ios: avoid non-trimmed css variable strings that break slider colors (#568) 2019-12-14 14:37:21 +01:00
bordun
778323191b http: detect silent failure when port is used but no error is raised (#570, #578) 2019-12-05 13:25:51 +01:00
bordun
d74d4f162d package: 0.48.5 2019-11-28 23:47:07 +01:00
bordun
edfba163ee docs: update 2019-11-28 23:46:49 +01:00
bordun
6cd2cd18db osc: fix receiving utf8 strings (osc.js does it now) (#574) 2019-11-28 23:46:03 +01:00
bordun
11217a4c34 fader: typo 2019-11-26 21:37:20 +01:00
bordun
b476ff5c2e package: 0.48.4 2019-11-26 21:34:37 +01:00
bordun
ff50594655 fader: allow adjusting gauge width 2019-11-26 21:34:27 +01:00
bordun
7894a8775d knob: nicer pips with text 2019-11-26 21:04:16 +01:00
bordun
40c40c270f launcher: limit terminal history size to prevent slowdown/freeze 2019-11-24 17:59:25 +01:00
bordun
57a5da7f6b docs: typo 2019-11-24 11:51:31 +01:00
bordun
b679fd9c80 v0.48.3 2019-11-20 15:02:42 +01:00
bordun
2487212e61 ipc: slower ping request on client side to avoid false-positive disconnections 2019-11-20 15:01:37 +01:00
bordun
1e1d532265 ui: prevent pinch zoom 2019-11-20 13:19:58 +01:00
bordun
aca78cd130 widgets: prevent update errors when widgets are not fully initialized (add widget.mounted property) 2019-11-05 19:43:15 +01:00
bordun
47e7ed54b4 docs: update 2019-10-30 12:01:36 +01:00
bordun
a0c2a7be9c lint: single quotes 2019-10-30 11:46:29 +01:00
bordun
a17075c49b package: 0.48.2 2019-10-30 11:45:35 +01:00
bordun
7643226229 script: add httpGet function for local requests 2019-10-30 11:39:19 +01:00
bordun
5f75123bd8 container: turn Container class into a mixin to allow making containers from canvas base
patchbay: inherit from Container to fix edition routine (#571)
2019-10-29 22:36:01 +01:00
bordun
41b7cfea24 editor: fix checkbox position in multiline fields 2019-10-24 12:20:41 +02:00
bordun
51412b71d1 package: 0.48.1 2019-10-24 12:10:44 +02:00
bordun
c952ebad10 editor: reduce input field scrollbar size to avoid issue in recent chromium 2019-10-24 12:07:10 +02:00
bordun
e3c210bfc2 Revert "fader: gradient prop"
This reverts commit 4e2e6e34ca.
2019-10-24 11:56:55 +02:00
bordun
4e2e6e34ca fader: gradient prop 2019-10-10 16:34:15 +02:00
bordun
4eb6aa29d6 modal: fix popupTop percents 2019-10-10 16:31:47 +02:00
bordun
682250f431 docs: fix vertical pipe formatting 2019-09-19 12:27:32 +02:00
bordun
d71956d341 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2019-09-18 09:46:36 +02:00
bordun
4e823a88f7 modal: fix popupLabel update issue (#566) 2019-09-18 09:45:26 +02:00
jean-emmanuel
81e7ce9cb7
Merge pull request #565 from erictheise/typos
Minor spelling fixes.
2019-09-17 23:12:12 +02:00
Eric Theise
6af87895ca Minor spelling fixes. 2019-09-17 12:26:26 -07:00
bordun
be4ff7cee2 update log 2019-09-13 22:08:15 +02:00
bordun
349a5a16ef midi: fix context menu action "list" when --midi is empty 2019-09-12 19:39:07 +02:00
bordun
c91795faf0 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2019-09-12 17:23:09 +02:00
bordun
b0345b35b9 package: 0.48.0 2019-09-12 17:21:02 +02:00
bordun
da13ef9852 sliders/pads: add sensitivity property (#548) 2019-09-12 17:10:47 +02:00
bordun
2144f9deec multipad/range: errors when dragging over when the gesture was initiated on a traversing widget (ie matrix) 2019-09-12 10:00:59 +02:00
bordun
0523c19b2a plots: add 'html' widget, and unify 'border' property among svg/image/html (#560) 2019-09-11 22:03:45 +02:00
bordun
dca9cd9a8b matrix: clone matrix: fix children's value storing 2019-09-11 21:29:58 +02:00
bordun
f2d0290d57 doubletap: modalfix: prevent side effects 2019-09-11 21:03:06 +02:00
bordun
a6a799e9d8 doubleTap: prevent 2nd tap's touchend 2019-09-11 19:55:22 +02:00
bordun
faccdd8e5c modal: prevent touchend from reaching inner widgets 2019-09-11 19:55:05 +02:00
bordun
8bd599f049 editor: fix moving widget from the edge (top or left) using keyboard arrows 2019-09-11 12:08:29 +02:00
bordun
3391f7ca23 package: fix server.js build on windows (#563) 2019-09-11 11:32:10 +02:00
bordun
fa62b06764 input: add asYouType option (#561) 2019-09-11 10:53:48 +02:00
bordun
31f05a1be2 text: sanitize html (escape "<" & ">") (#562) 2019-09-11 10:44:37 +02:00
bordun
563ba6ceb7 frame: allow loading local html/css/js files, add sandbox restrictions (#560) 2019-09-11 10:34:20 +02:00
bordun
0489ea3d4c package: downgrade packager to restore 32bit windows & other binaries 2019-09-04 17:23:57 +02:00
bordun
ab7486f064 package: downgrade mathjs to prevent regression 2019-09-04 17:12:26 +02:00
bordun
3af16fb691 package: no more windows 32bit binaries 2019-09-04 17:06:50 +02:00
bordun
287fd76873 package: 0.47.4 2019-09-04 16:52:55 +02:00
bordun
ee9f8e67c5 package: update eslint rules 2019-09-04 16:45:51 +02:00
bordun
3a329e7f8e cli: fix --version (#551) 2019-09-04 16:32:29 +02:00
bordun
34d740b2d9 widgets: prevent reCreateWidget from being called by a destroyed widget instace (#556) 2019-09-04 15:44:19 +02:00
bordun
b49f1fb0ce log: update 2019-09-03 19:50:19 +02:00
jean-emmanuel
0c4f12f098
Merge pull request #555 from t1st3/patch-1
fix(typo): stateMananer => stateManager
2019-09-03 19:37:01 +02:00
bordun
d12c4f4985 package: update deps 2019-09-03 19:36:33 +02:00
bordun
4273cf956d xy: fix doubleTap (#557) 2019-09-03 19:16:04 +02:00
bordun
526c097e0e state: delay state restoring after updating a widget to prevent edition errors in some cases (#556) 2019-09-03 19:08:26 +02:00
t1st3
5082fab41c
fix(typo): stateMananer => stateManager 2019-08-27 16:09:06 +02:00
bordun
54403a7db8 keys: prevent default browser actions (#547) 2019-07-25 15:11:41 +02:00
bordun
b285e9109f state: extra line 2019-07-19 18:33:29 +02:00
bordun
bea392d836 package: 0.47.3 2019-07-19 18:29:50 +02:00
bordun
ff9a9cdf75 revert commit b9293786b6 (regression) 2019-07-19 18:28:15 +02:00
bordun
71c734102c package: 0.47.2 2019-07-19 12:11:44 +02:00
bordun
2414722ea1 push: force release when widget is removed/recreated, prevent setting active state after editing 2019-07-19 11:59:49 +02:00
bordun
b9293786b6 state: clean state flush 2019-07-19 11:55:41 +02:00
bordun
203c710199 editor: fix restoring state when reusing children 2019-07-19 11:54:49 +02:00
bordun
36b65336a0 encoder: fix 0 value for back property (& fix default release value) 2019-07-19 10:45:11 +02:00
bordun
33fac98f64 midi: fix receiving pitchbend messages 2019-07-19 10:34:57 +02:00
jean-emmanuel
4af045fbd8 test: rm patchbaynode from test 2019-07-16 10:30:41 +02:00
jean-emmanuel
0b6d567394 patchbay: style fix for recent chrome 2019-07-16 10:24:09 +02:00
jean-emmanuel
5256fa1176 midi: pythonPath for launcher's contextual midi list action 2019-07-12 00:10:43 +02:00
jean-emmanuel
8bbf9d5fd4 docs: midi pip installation 2019-07-11 23:56:02 +02:00
jean-emmanuel
eb723fd9ac package: v0.47.1 2019-07-11 16:49:38 +02:00
jean-emmanuel
3234344be2 update docs 2019-07-11 16:45:14 +02:00
jean-emmanuel
fbf4e161b9 midi: add path option 2019-07-11 16:43:52 +02:00
jean-emmanuel
30d7ffb091 server: add font extension to whitelist 2019-07-06 11:09:19 +02:00
jean-emmanuel
8c2f86531d package: 0.47.0 2019-06-26 11:53:04 +02:00
bordun
def2560f97 custom-module: add loadJSON and saveJSON 2019-06-26 11:42:48 +02:00
bordun
bf00a58bc7 docs: midi device name precision 2019-06-26 11:11:06 +02:00
bordun
d64c812a87 image: update doc (relative url) 2019-06-26 11:05:24 +02:00
bordun
e951b4bc0e server: relative image request resolution (to session-path) 2019-06-26 11:02:45 +02:00
bordun
bee8b7d814 sliders: make spring and default dynamic 2019-06-26 09:22:24 +02:00
jean-emmanuel
6086802001 launcher: fix white space escaping between quotes 2019-06-26 01:18:50 +02:00
jean-emmanuel
ff85bdc8e7 update docs 2019-06-25 15:15:39 +02:00
jean-emmanuel
3baa0f00f1 readme: v0.46.2 2019-06-25 14:17:10 +02:00
jean-emmanuel
d1e0bd9857 package: 0.46.2 2019-06-25 14:03:54 +02:00
jean-emmanuel
821ae6a982 script: prevent circular set() 2019-06-25 14:01:07 +02:00
jean-emmanuel
7edfa3e122 js: avoid polluting default execution context 2019-06-25 13:57:46 +02:00
jean-emmanuel
636ae9ef2f script: add id to context 2019-06-25 12:15:13 +02:00
jean-emmanuel
32615a44af script: add getProp() 2019-06-25 12:02:18 +02:00
jean-emmanuel
53235bbbf3 script: add get(id) function 2019-06-16 10:00:50 +02:00
jean-emmanuel
b816899957 modal: add scroll option 2019-06-15 19:31:33 +02:00
jean-emmanuel
496e743a3d package: safer transpile filter regexp 2019-05-17 09:23:49 +02:00
jean-emmanuel
018f89df9c package: transpile ws to work with electron 1.8.8 2019-05-17 09:22:17 +02:00
jean-emmanuel
94a00578d3 Revert "package: downgrade ws for electron 1.8 compat"
This reverts commit 1d4541de96.
2019-05-17 09:04:10 +02:00
jean-emmanuel
1d4541de96 package: downgrade ws for electron 1.8 compat 2019-05-16 22:35:59 +02:00
jean-emmanuel
6501295c5b package: update osc.js 2019-05-15 21:40:36 +02:00
jean-emmanuel
b8b8eeb2cd revert electron update 2019-05-15 12:46:18 +02:00
jean-emmanuel
77ebd5a043 Revert "package: update electron, rm specific rpi build (should work with default), add compat build for 32bit linux"
This reverts commit 5da59ce291.
2019-05-15 12:44:03 +02:00
jean-emmanuel
b3e2dfd6f3 cli: clean 2019-05-15 11:36:09 +02:00
jean-emmanuel
c96cc6bcbb deploy: add arm64 2019-05-15 11:32:48 +02:00
jean-emmanuel
f0e9395230 package: use forked bonjour lib to fix recent node Buffer deprecation warning 2019-05-15 11:24:16 +02:00
jean-emmanuel
5da59ce291 package: update electron, rm specific rpi build (should work with default), add compat build for 32bit linux 2019-05-15 10:03:45 +02:00
jean-emmanuel
557a667ee6 canvas: big canvas perf improvement on chrome v69 and above using offscreen canvas 2019-05-14 23:12:56 +02:00
jean-emmanuel
425fd1282c docs: update 2019-05-10 19:10:14 +02:00
jean-emmanuel
e11b585014 docs: interface 2019-05-04 10:29:19 +02:00
jean-emmanuel
fea808e7cb package; 0.46.1 2019-05-02 07:43:16 +02:00
jean-emmanuel
cbe2aa9c80 docs: update examples 2019-05-01 22:08:52 +02:00
jean-emmanuel
da746d2da7 windows: fix midi debug strings 2019-04-28 15:57:31 +02:00
jean-emmanuel
22a2317048 docs: update 2019-04-27 00:54:14 +02:00
jean-emmanuel
d62c73c9e1 state widget: empty value = "" instead of null 2019-04-27 00:53:06 +02:00
jean-emmanuel
5769d80ab3 state widget: don't hide value prop, add docs 2019-04-27 00:47:41 +02:00
jean-emmanuel
4290c95c27 package: 0.46.0 2019-04-27 00:30:10 +02:00
jean-emmanuel
3d9dd22a05 midi: pc_offset option 2019-04-27 00:28:37 +02:00
jean-emmanuel
bc1e6e13d1 debug: homogenize osc and midi debug strings 2019-04-27 00:22:39 +02:00
jean-emmanuel
35b1b6f200 docs: single line toc nav items 2019-04-26 18:28:47 +02:00
jean-emmanuel
6e50079ae2 docs: mention midi program change display offset in some devices/softwares 2019-04-26 18:01:03 +02:00
jean-emmanuel
ec816ba282 midi: print port name in debug messages 2019-04-26 17:30:41 +02:00
jean-emmanuel
24c7bba921 state widget: allow resetting value and prevent loading null 2019-04-26 10:19:32 +02:00
jean-emmanuel
24824f1307 docs: sidepanel state update 2019-04-26 10:15:56 +02:00
jean-emmanuel
f0a79e5c6e remote control: add /STATE methods 2019-04-26 10:12:20 +02:00
jean-emmanuel
f88fb2529f state widget: bypass inner buttons useless behaviors 2019-04-25 11:30:46 +02:00
jean-emmanuel
fa09c4b632 state widget: more options and a few fixes 2019-04-25 10:53:24 +02:00
jean-emmanuel
0b8249662c lint: indent 2019-04-25 10:26:31 +02:00
jean-emmanuel
26611565b4 widgets: new state widget (#509) 2019-04-25 10:20:19 +02:00
jean-emmanuel
caffed7206 state mananger: add filtering && store state in an object instead of an array (reduces size, backward compatible) 2019-04-25 10:18:38 +02:00
jean-emmanuel
487dc6afd9 image: allow overriding css background-image when value is empty (#521) 2019-04-25 09:20:01 +02:00
jean-emmanuel
16d3febac4 lint: space 2019-04-24 20:59:12 +02:00
jean-emmanuel
62f6669134 modal: css not properly applied if the property was previously empty and the modal had been opened at least once 2019-04-24 20:50:27 +02:00
jean-emmanuel
775ba4da58 docs: fix css variables source link 2019-04-24 17:21:31 +02:00
jean-emmanuel
5b8f95a99d midi: space 2019-04-23 23:08:12 +02:00
jean-emmanuel
9b5e9fec02 midi: fix error msg for invalid address 2019-04-23 22:53:45 +02:00
jean-emmanuel
9d2ef9019a package: 0.45.7 2019-04-23 07:41:30 +02:00
jean-emmanuel
7bcb9dc331 keyboards: toggles options (#520) 2019-04-23 07:40:59 +02:00
jean-emmanuel
2f3516812e image: allow whitespaces in url 2019-04-22 10:15:22 +02:00
jean-emmanuel
c994e95b9f image: cache option inverted (#521) 2019-04-22 09:44:11 +02:00
jean-emmanuel
cb140a234f docs: update 2019-04-21 09:38:14 +02:00
jean-emmanuel
b166073a45 docs: sponsoring 2019-04-21 09:22:57 +02:00
jean-emmanuel
f9dc31762b package: 0.45.6 2019-04-19 06:57:41 +02:00
jean-emmanuel
ffefdcc68d editor: clear the editor when selected widget is removed by an undo/redo action 2019-04-19 06:45:43 +02:00
jean-emmanuel
a560f9e3f5 popup: fix closer height 2019-04-19 06:38:08 +02:00
jean-emmanuel
18d1735c01 editor: don't eat backslashes in enquoted strings (#515) 2019-04-19 06:37:59 +02:00
jean-emmanuel
b65d7ecb0f remote-browser: hitting a letter to select a file based on its name was looping on the first two matches only 2019-04-18 17:51:41 +02:00
jean-emmanuel
fa32803776 encoder: compact option 2019-04-18 17:30:13 +02:00
jean-emmanuel
c07291ee6b knob: compact mode 2019-04-18 16:52:27 +02:00
jean-emmanuel
a7fd017276 logScale: clean code and accept setting a custom log base (#519) 2019-04-18 15:57:46 +02:00
jean-emmanuel
64c0825311 notification: prevent the container from catching events iin the bottom of the screen 2019-04-17 15:41:58 +02:00
jean-emmanuel
e2708874cd docs: old url rewrite 2019-04-17 14:59:39 +02:00
jean-emmanuel
c1e8742cea docs: css-tips: broken link 2019-04-17 14:18:15 +02:00
jean-emmanuel
320355a70b docs: css-tips: more precisions 2019-04-17 14:14:28 +02:00
jean-emmanuel
307363ffe4 server: windows escape typo 2019-04-16 15:24:08 +02:00
jean-emmanuel
5a5c7dbb86 lint: white space 2019-04-16 12:25:58 +02:00
jean-emmanuel
a5e82e5ec1 package: 0.45.5 2019-04-16 12:24:30 +02:00
jean-emmanuel
949eb812d9 http: forbid readding non-images (#515) 2019-04-16 12:20:25 +02:00
jean-emmanuel
02ec4f80a5 windows: escape drive colon to avoid unknown protocol error and escape antislashes (#515) 2019-04-16 11:51:53 +02:00
jean-emmanuel
4196bfb32d zoom: prevent passive target event error 2019-04-16 10:38:35 +02:00
jean-emmanuel
f49718593f image: clean old stream related code 2019-04-16 09:37:35 +02:00
jean-emmanuel
1e9e2a4ca8 prop-inheritance: fix some nested syntax cases (#516) 2019-04-15 13:07:18 +02:00
jean-emmanuel
c5671fa615 contet-menu: typo 2019-04-14 00:56:37 +02:00
jean-emmanuel
b103d44791 docs: formatting 2019-04-13 23:26:53 +02:00
jean-emmanuel
1c8efefd52 docs: custom module bundling 2019-04-13 23:23:25 +02:00
jean-emmanuel
6aad942237 github: not that polite 2019-04-13 23:09:39 +02:00
jean-emmanuel
38d5c29833 github: support how to 2019-04-13 23:08:37 +02:00
jean-emmanuel
0c3dbeeea1 github: support 2019-04-13 23:01:33 +02:00
jean-emmanuel
c1adcf3cf1 github: issue templates 2019-04-13 22:57:42 +02:00
jean-emmanuel
697a0aff36 package: 0.45.4 2019-04-13 09:11:58 +02:00
jean-emmanuel
64305b66ef math/js: don't print 'error' when fail to ensure the property's output changes (#512) 2019-04-13 09:09:03 +02:00
jean-emmanuel
d2f42db565 modal: always push close button to the right 2019-04-13 08:55:51 +02:00
jean-emmanuel
ee7eb8e53a matrix: predeclare '$' variable (#512) 2019-04-13 08:47:42 +02:00
jean-emmanuel
26518672e6 ipc: fix network drops detection and reconnection (#510) 2019-04-12 20:34:45 +02:00
jean-emmanuel
ccd7d6100e package: 0.45.3 2019-04-11 23:58:28 +02:00
jean-emmanuel
afda0a445d file browser: prevent error when files/folders cannot be read (#511) 2019-04-11 23:36:21 +02:00
jean-emmanuel
1c373b3dd6 lint: white space 2019-04-11 18:49:51 +02:00
jean-emmanuel
94a6943958 docs; add widget class static description 2019-04-11 18:47:11 +02:00
jean-emmanuel
5574c06a0a docs: fix nested table of contents 2019-04-11 00:06:13 +02:00
jean-emmanuel
ac7c5b3df7 custom-module: fix receive shorthand function when omitting host/port and sending 0 or 1 arg 2019-04-10 23:38:31 +02:00
jean-emmanuel
333ce12806 docs: fix sidenav links (#506) 2019-04-10 21:31:58 +02:00
jean-emmanuel
6363cfdc3a split: don't mutate data.args to keep client sync working (#508) 2019-04-09 16:12:10 +02:00
jean-emmanuel
c3a7279da3 Revert "package: revert 758b6e84c4"
This reverts commit 2a06ce7b5f.
2019-04-09 11:56:21 +02:00
jean-emmanuel
2a06ce7b5f package: revert 758b6e84c4 2019-04-09 11:46:32 +02:00
jean-emmanuel
4beae22bcd log: mistake 2019-04-09 11:46:17 +02:00
jean-emmanuel
91a47a6265 lint: spaces 2019-04-09 11:32:30 +02:00
jean-emmanuel
0ccf4fa4b4 package: 0.45.2 2019-04-09 11:32:00 +02:00
jean-emmanuel
7b3eff7316 formula: fix widget id in error logs 2019-04-09 11:29:09 +02:00
jean-emmanuel
815ac3ec01 jsparser: nuke all foreign non-primitive proto to avoid parent window leak 2019-04-09 11:26:19 +02:00
jean-emmanuel
9c28496d3d package: 0.45.1 2019-04-09 09:49:32 +02:00
jean-emmanuel
1263c8210a examples: cool color picker in demo.json 2019-04-09 09:49:10 +02:00
jean-emmanuel
06b650d17f sidepanel: fix session export binding 2019-04-09 09:40:40 +02:00
jean-emmanuel
df04e0bc36 custom-module: prevent potential exploit 2019-04-09 00:00:51 +02:00
jean-emmanuel
0905645613 state: update log & fix save in place 2019-04-08 21:08:25 +02:00
jean-emmanuel
91dbf9404d docs: widgets update 2019-04-08 21:03:02 +02:00
jean-emmanuel
501fd81228 docs: show JS{{}} 2019-04-08 21:02:28 +02:00
jean-emmanuel
216b68a1b2 package: 0.45.0 2019-04-08 21:00:56 +02:00
jean-emmanuel
bfc7fbc434 file-browser: display extension 2019-04-08 21:00:02 +02:00
jean-emmanuel
e28df61371 sidepanel: fix state import/export buttons 2019-04-08 20:47:47 +02:00
jean-emmanuel
170e8a4706 examples: rm widgets.json, update demo 2019-04-08 20:46:31 +02:00
jean-emmanuel
70cf571af1 osc: fix clients sync 2019-04-08 20:27:32 +02:00
jean-emmanuel
66a23a928f slider: prevent built-in input from sending 2019-04-08 20:23:41 +02:00
jean-emmanuel
1a1b54f873 remote-file: extend feature to state files 2019-04-08 20:06:51 +02:00
jean-emmanuel
98696b56d9 docs: widgets ref: don't open links in new tabs 2019-04-08 17:16:48 +02:00
jean-emmanuel
411f5af4ce docs: update widget ref and hide JS{{}} until release 2019-04-08 13:52:41 +02:00
jean-emmanuel
1ac168f85a encoder: lint 2019-04-08 13:49:08 +02:00
jean-emmanuel
3fbd5823f2 encoder: force ticks to 360 if not a number 2019-04-08 13:41:17 +02:00
jean-emmanuel
8603fb8741 encoder: fix default ticks prop, should be a number 2019-04-08 13:39:36 +02:00
jean-emmanuel
a1ee49105f docs: hide permalinks unless hovered, fix scroll to hash 2019-04-08 12:55:11 +02:00
jean-emmanuel
6fb64c128c docs: missing dynamic prop icon, improve some prop docs, change permalink icon 2019-04-08 12:41:49 +02:00
jean-emmanuel
20690b6e75 parsers: error log hint and explicit setTimout/Interval fail 2019-04-08 09:53:30 +02:00
jean-emmanuel
2a13165c3d remote-browser: submit on keydown, except when saving 2019-04-08 00:10:11 +02:00
jean-emmanuel
057d521829 ui: fix popup max height 2019-04-07 21:02:54 +02:00
jean-emmanuel
cfde80046f plot:frame: fix null url 2019-04-07 20:42:04 +02:00
jean-emmanuel
6d76411b12 package: update browser shim 2019-04-07 19:46:52 +02:00
jean-emmanuel
87420555cf lint: spaces 2019-04-07 19:37:28 +02:00
jean-emmanuel
c8886a4d2f keys: rename var super to meta (super is already used in js) 2019-04-07 19:36:28 +02:00
jean-emmanuel
926853ebf1 jsparser: context fixes 2019-04-07 19:35:17 +02:00
jean-emmanuel
6d1e4b4e8b switch: fix traversing + touch (#503) 2019-04-07 19:12:41 +02:00
jean-emmanuel
8ee37eec08 jsparser: lint 2019-04-07 18:38:52 +02:00
jean-emmanuel
932a6cb532 jsparser: shared global object 2019-04-07 18:20:44 +02:00
jean-emmanuel
4ff67140b8 jsparser: prevent access to the host window 2019-04-07 18:03:51 +02:00
jean-emmanuel
d8cbaf944b jsparser: disable net requests 2019-04-07 12:43:02 +02:00
jean-emmanuel
bb46538e89 jsparser: print "ERROR" when fail 2019-04-07 12:42:50 +02:00
jean-emmanuel
d4e3c8fa2d jsparser: some more guards 2019-04-07 10:51:36 +02:00
jean-emmanuel
7b6bff30b8 lint: bad space 2019-04-07 10:21:12 +02:00
jean-emmanuel
29c2c97308 docs: js 2019-04-07 10:21:07 +02:00
jean-emmanuel
e85b8339d2 package: next is 0.45 2019-04-07 10:05:10 +02:00
jean-emmanuel
82d76e06f7 log: phrasing 2019-04-07 10:04:28 +02:00
jean-emmanuel
a66f166df0 sessions: fix saving to history when opening 2019-04-07 10:04:17 +02:00
jean-emmanuel
0b804ba71c parser: soft fail when widget type is not supported 2019-04-07 09:59:56 +02:00
jean-emmanuel
f94fb7728f widgets: remove deprecated widgets 2019-04-07 09:54:07 +02:00
jean-emmanuel
258fc7c750 jsparser: store math & js parsers in the same prop, add default context to avoid errors 2019-04-07 09:51:15 +02:00
jean-emmanuel
2ed61790eb maths and js props: better error messages & line numbers 2019-04-06 19:33:07 +02:00
jean-emmanuel
7eb93abb18 scripts: update browser shim 2019-04-06 15:05:02 +02:00
jean-emmanuel
c0faacc514 lint: fixes 2019-04-06 14:07:00 +02:00
jean-emmanuel
7494808fb2 prop-syntaxes: add JS{{}}, print #{} errors 2019-04-06 13:35:36 +02:00
jean-emmanuel
3125cd8693 misc: clean settings module 2019-04-05 15:46:08 +02:00
jean-emmanuel
2ca5128df5 lint: regexp spaces 2019-04-05 12:36:50 +02:00
jean-emmanuel
6ef1a2b97f cli: fix long-options alignment 2019-04-05 12:26:53 +02:00
jean-emmanuel
f7ae0a75d8 docs: remote-root 2019-04-04 22:54:27 +02:00
jean-emmanuel
3b819996d3 remote-file: prevent saving outside of remote root 2019-04-04 22:51:47 +02:00
jean-emmanuel
03812933c5 remote-file: add --remote-root option for security 2019-04-04 22:31:17 +02:00
jean-emmanuel
e6394746e3 remote-file: filter by extension before sending list 2019-04-04 21:11:25 +02:00
jean-emmanuel
9dc11e97ae midi: missing asset cp, better sysex error handling 2019-04-04 20:45:10 +02:00
jean-emmanuel
580fe8074d log: update 2019-04-04 20:34:54 +02:00
jean-emmanuel
57afaed524 midi: less is more 2019-04-04 19:36:07 +02:00
jean-emmanuel
38eed39d7d midi: dry & add some helpful debug messages 2019-04-04 19:18:35 +02:00
jean-emmanuel
00e2d6ad66 midi: always ignore midi clock 2019-04-04 17:38:51 +02:00
jean-emmanuel
c89b77a365 midi: typo 2019-04-04 17:00:05 +02:00
jean-emmanuel
67f5be4a05 docs: midi update 2019-04-04 16:33:40 +02:00
jean-emmanuel
bf994816d8 midi: use python-rtmidi instead of pyrtmidi 2019-04-04 16:17:24 +02:00
jean-emmanuel
e4c303c9c0 package: copy assets should overwrite 2019-04-04 16:17:05 +02:00
jean-emmanuel
2f0676d031 docs; remote-control clean 2019-04-04 10:03:05 +02:00
jean-emmanuel
5cc411ba10 docs: home img width 2019-04-04 09:57:38 +02:00
jean-emmanuel
6181997ccc lint: whitespace 2019-04-04 09:34:47 +02:00
jean-emmanuel
a11340c6fc doubletap: prevent fake click emitted by keyboard focus events (ie in file browser) 2019-04-04 09:20:34 +02:00
jean-emmanuel
55a9beabf8 session: update server-side sessionpath on import and do it after successful import only 2019-04-04 09:14:56 +02:00
jean-emmanuel
a83b4e4ab2 session: typo 2019-04-03 22:04:56 +02:00
jean-emmanuel
32243574ee docs: fix screenshot 2019-04-03 21:50:46 +02:00
jean-emmanuel
757b495d36 test: update browser shim 2019-04-03 21:31:33 +02:00
jean-emmanuel
8da102c893 docs: update screenshot 2019-04-03 21:22:23 +02:00
jean-emmanuel
1b93ad92cf demo: no need to rebuild when starting 2019-04-03 21:18:20 +02:00
jean-emmanuel
df4555caae demo: set --exemple in env vars 2019-04-03 21:12:12 +02:00
jean-emmanuel
fdfefb171e ipc: allow wss 2019-04-03 21:08:50 +02:00
jean-emmanuel
6d4a32f20e ipc: rm debug 2019-04-03 21:06:19 +02:00
jean-emmanuel
50d7907ed7 docs: use alternate herokuapp for showcase 2019-04-03 21:05:38 +02:00
jean-emmanuel
5c2d508630 demo: extra options 2019-04-03 21:02:55 +02:00
jean-emmanuel
1b2c9b4c34 log: update 2019-04-03 20:45:47 +02:00
jean-emmanuel
3dfdc77018 session: bypass browse/save functions in read-only mode 2019-04-03 20:42:51 +02:00
jean-emmanuel
1a7ee0762c docs: donate button 2019-04-03 16:40:34 +02:00
jean-emmanuel
d1b1d11237 dom: get: always return a new array to prevent unwanter mutations 2019-04-03 13:16:03 +02:00
jean-emmanuel
53a488ee5c package: update babel (fix build issue) 2019-04-03 09:14:28 +02:00
jean-emmanuel
02de885bcc build: remove babel warning, update core-js 2019-04-02 23:04:39 +02:00
jean-emmanuel
5db5ca1607 widget: file: style tweaks 2019-04-02 19:19:13 +02:00
jean-emmanuel
4380a1f598 remote-file: typo 2019-04-02 17:04:46 +02:00
jean-emmanuel
7cff1a71ac locale: fr typo 2019-04-02 16:14:08 +02:00
jean-emmanuel
5774e18b5c doubleTap: add click mode
remote-file: prevent mouse lock on doubletap + overwrite confirm box
2019-04-02 16:13:13 +02:00
jean-emmanuel
0b8f58ebfa docs: update 2019-04-02 16:05:05 +02:00
jean-emmanuel
5e6f6ce8d6 docs: remote saving update 2019-04-02 15:56:46 +02:00
jean-emmanuel
d1f1c4ec7e remote-file: submit on enter keyup, not key down (prevents mouse input lockup) 2019-04-02 14:55:08 +02:00
jean-emmanuel
ba71cf45f3 remove-files: missing locale string 2019-04-02 14:49:29 +02:00
jean-emmanuel
27da5f1bf5 ui: session loading error display & popup title layout fix 2019-04-02 14:43:34 +02:00
jean-emmanuel
beb4b6c32d cli: --inpect is a boolean 2019-04-02 12:19:39 +02:00
jean-emmanuel
24396d98c7 file-widge:t add icon 2019-04-02 12:03:58 +02:00
jean-emmanuel
8c76aa117b remote-browser: typo 2019-04-02 11:49:05 +02:00
jean-emmanuel
4a2926050f log: update 2019-04-02 11:39:38 +02:00
jean-emmanuel
9d72d05a45 sessions: remember last browsed folder 2019-04-02 11:39:20 +02:00
jean-emmanuel
d15b0da9a2 remote-browser: reduce dom changes and prevent leak 2019-04-02 11:38:51 +02:00
jean-emmanuel
a3503aff05 lint: fix 2019-04-02 11:24:41 +02:00
jean-emmanuel
4834cd653b remote-browse: allow passing initial directory
widgets: add file widget
2019-04-02 11:23:41 +02:00
jean-emmanuel
4e6a7b36ba session: use basename in window title 2019-04-02 10:35:33 +02:00
jean-emmanuel
758b6e84c4 package: fix js build 2019-04-02 10:26:35 +02:00
jean-emmanuel
5b01f40d64 package: update 2019-04-02 10:17:33 +02:00
jean-emmanuel
2dab26326d lint: fix errors and ignore indentation in template string vars 2019-04-02 10:07:16 +02:00
jean-emmanuel
c08469d795 remote-files: server-side check for json extension 2019-04-02 09:57:31 +02:00
jean-emmanuel
89a54423af widget: remove .absolute-position class when width/height is set to auto (#501) 2019-04-02 09:40:46 +02:00
jean-emmanuel
3f1c4d03b3 log: upddate 2019-04-02 09:38:25 +02:00
jean-emmanuel
de31a4929f examples: update 2019-04-02 09:37:23 +02:00
jean-emmanuel
ece023cb15 log: update 2019-04-02 09:35:52 +02:00
jean-emmanuel
b20205463d file-browser: custom icon for files 2019-04-02 09:35:10 +02:00
jean-emmanuel
0311ee7e2d keyboard: safe no-keybindings check (prevent error when mouse leaves window) 2019-04-02 09:30:46 +02:00
jean-emmanuel
dca4a60547 node-inspect: hide --inspect from inspector only 2019-04-01 17:52:05 +02:00
jean-emmanuel
55ff84b7cb custom-module: add filename to error traces, add support for node/electron --inspect switch 2019-03-31 18:50:43 +02:00
jean-emmanuel
dabd01fca4 log: remote filesystem 2019-03-31 18:50:28 +02:00
jean-emmanuel
dde3c63f38 remote-file: dev hot-reload compat fix 2019-03-31 18:48:13 +02:00
jean-emmanuel
ab4f9e976b remote-save: missing locales and show updated file name before submitting 2019-03-31 18:29:54 +02:00
jean-emmanuel
85056348b2 remote-files: more locales & generic server side file save 2019-03-31 18:22:06 +02:00
jean-emmanuel
bdeb53280c remote-file: add locales & confirmation prompts 2019-03-31 17:55:28 +02:00
jean-emmanuel
79a0bde0c5 remote-files: almost there 2019-03-31 17:28:15 +02:00
jean-emmanuel
2d8b118157 remote-files: continue wip, add context menu for import/export/save-as actions 2019-03-31 15:56:39 +02:00
jean-emmanuel
6859f364f8 font: update FA 2019-03-31 15:55:52 +02:00
jean-emmanuel
25a5c96378 filebrowser: wip remote file browser 2019-03-29 23:36:10 +01:00
jean-emmanuel
6d1af8c206 docs: better redirect 2019-03-29 14:15:22 +01:00
jean-emmanuel
e99b41d208 docs: structure clean & showcase 2019-03-29 09:44:49 +01:00
jean-emmanuel
f97a2cf0ba sidepanel: keep resize handle visible while dragging 2019-03-29 09:08:58 +01:00
jean-emmanuel
625e817bb1 ios: clone layout fix (#500) 2019-03-29 09:06:47 +01:00
jean-emmanuel
cff040965f docs: showcase not working yet (ws over ssl not ok) 2019-03-28 22:11:52 +01:00
jean-emmanuel
d28e173699 docs: add home showcase 2019-03-28 22:08:56 +01:00
jean-emmanuel
97122c1803 example: update 2019-03-28 21:58:30 +01:00
jean-emmanuel
fe460340a8 docs: clean 2019-03-28 21:00:11 +01:00
jean-emmanuel
1b792e7a14 client: make resources path resolve correctly when loaded without any server 2019-03-28 20:52:23 +01:00
jean-emmanuel
d7f0e07890 docs: nicer search input & no autocomplete 2019-03-28 17:29:38 +01:00
jean-emmanuel
45479be91f docs: 404 page 2019-03-28 15:11:36 +01:00
jean-emmanuel
e7eb225f17 docs: update logo 2019-03-28 14:48:09 +01:00
jean-emmanuel
345f5dcad7 docs: fix old site redirect 2019-03-28 14:26:51 +01:00
jean-emmanuel
15c85cb9bb docs: roboto font 2019-03-28 14:16:59 +01:00
jean-emmanuel
b58e7b8c2a docs: old site redirect; force https 2019-03-28 14:04:48 +01:00
jean-emmanuel
ce1d3ec646 package: update site url 2019-03-28 14:04:38 +01:00
jean-emmanuel
22bac2ba37 package: tweaks be4 release 2019-03-28 12:01:10 +01:00
jean-emmanuel
0bd4ed7662 docs: clean git readme & add site redirects 2019-03-28 11:47:42 +01:00
jean-emmanuel
a500465b54 docs: mobile view 2019-03-28 10:31:38 +01:00
jean-emmanuel
e8f2fbbfa3 docs: missing file and tweaks 2019-03-28 09:40:16 +01:00
jean-emmanuel
a78bfdc365 docs: all css in one 2019-03-28 09:19:43 +01:00
jean-emmanuel
b70c2392c1 sidepanel: woops broken toggle 2019-03-27 23:26:20 +01:00
jean-emmanuel
cb60dd3e54 client: expose ipc object in global scope 2019-03-27 23:17:31 +01:00
jean-emmanuel
6c6a97afa2 docs: package update 2019-03-27 23:17:18 +01:00
jean-emmanuel
0f63e3ed43 sidepanel: hide resize handle, hilight side handle on hover 2019-03-27 20:16:58 +01:00
jean-emmanuel
c3c2f69286 docs: jumbo image 2019-03-27 18:05:32 +01:00
jean-emmanuel
3b1f4aaa72 clean 2019-03-27 15:39:47 +01:00
jean-emmanuel
e4a1dc658d docs: formatting 2019-03-27 14:38:29 +01:00
jean-emmanuel
18b07aec05 docs: url fixes 2019-03-27 14:29:50 +01:00
jean-emmanuel
7f8eb4a19d git: ignore doc site 2019-03-27 14:16:00 +01:00
jean-emmanuel
fd77018712 docs: new site 2019-03-27 14:15:14 +01:00
jean-emmanuel
db0800eecb keys: expose code name in keyup/keydown 2019-03-26 13:33:51 +01:00
jean-emmanuel
2dae1587e0 electron: allow openning links (in default browser) 2019-03-26 13:30:23 +01:00
jean-emmanuel
eab71c1375 keys: key variable in keydown and keyup is now always lowercased when referencing a single character 2019-03-25 20:54:21 +01:00
jean-emmanuel
30c0b7685f knob: act as a relative encoder when traversing gestures are enabled and snap is false (#498) 2019-03-22 14:33:53 +01:00
jean-emmanuel
27db8418f9 custom-module: fix docs typo and allow omitting host and port in receive shorthand 2019-03-21 02:13:40 +01:00
jean-emmanuel
d6647f46e7 custom-module: fix context var 2019-03-20 20:35:52 +01:00
jean-emmanuel
3c6f8b9581 custom-module: add support for standard module export syntax 2019-03-20 20:10:37 +01:00
jean-emmanuel
abdee0b223 custom-module: expose send and receive shorthands, expose client's address in app event handlers 2019-03-20 09:07:54 +01:00
jean-emmanuel
2c45c21bfb server: rm old callback 2019-03-20 08:26:50 +01:00
jean-emmanuel
fe74fd7161 midi: store receiveOsc in conver instance 2019-03-19 12:59:27 +01:00
jean-emmanuel
8db00015d6 midi: show -1 (bypass) in device list 2019-03-19 12:47:25 +01:00
jean-emmanuel
24f275bf2b missing empty folder 2019-03-19 11:56:45 +01:00
jean-emmanuel
a350c34e7e code: fix lint & syntax errors 2019-03-19 11:46:06 +01:00
jean-emmanuel
c2a03494fd switch: add traversing option (true by default) (#491) 2019-03-19 11:35:47 +01:00
jean-emmanuel
5b7cdeccd5 midi: move python assets in src, add launcher context menu action for midi device listing 2019-03-19 10:43:10 +01:00
jean-emmanuel
32c717de6d midi: display python version when rtmidi is not found 2019-03-19 09:40:12 +01:00
jean-emmanuel
ce9ca5c9d3 docs: fix src links 2019-03-19 09:03:06 +01:00
jean-emmanuel
f3250714cd package: 0.42.0 2019-03-18 09:40:39 +01:00
jean-emmanuel
34ee49b4b4 debian: use git version to fix libgconf dependency name 2019-03-18 09:39:04 +01:00
jean-emmanuel
b8a65ef7af docs: script widget execution details 2019-03-18 09:29:56 +01:00
jean-emmanuel
a92be6245e osc-listeners: accepts an optional third argument (false) to bypass the host widget's preArgs 2019-03-18 09:25:57 +01:00
jean-emmanuel
77d2a74c3d sidepanel: expend resize handle to the entire edge 2019-03-12 18:31:05 +01:00
jean-emmanuel
7843ada5a0 editor: sticky header (#479) 2019-03-12 18:23:39 +01:00
jean-emmanuel
4f0240ccf2 package: 0.41.7 2019-03-05 10:08:42 +01:00
jean-emmanuel
f3589186a2 matrix: $ variable not starting at start && properties not reset to default when removed from props 2019-03-04 16:24:14 +01:00
jean-emmanuel
a04204f84f package: 0.41.6 2019-03-04 11:53:25 +01:00
jean-emmanuel
f44a90870e xy: fix typo causing a perf issue 2019-03-04 11:13:09 +01:00
jean-emmanuel
2499fafabb Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2019-03-03 13:28:30 +01:00
jean-emmanuel
9cf82c5ba2 update docs 2019-03-03 13:24:47 +01:00
bordun
0bdbd8c347 keys: binding conflict with editorkeys: binding conflict with editor (#473) 2019-02-27 10:50:53 +01:00
jean-emmanuel
a3b4878fb0 package: 0.41.5 2019-02-18 15:35:03 +01:00
jean-emmanuel
c30e526ee4 yargs: update 2019-02-18 15:34:20 +01:00
jean-emmanuel
3a4a8cac47 prop-inheritance; error when changing a property that's inherited by a widget to define its address and at least one non-dynamic property 2019-02-18 15:20:53 +01:00
jean-emmanuel
3998477ec0 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2019-02-01 14:04:30 +01:00
jean-emmanuel
85962b1452 main: --custom-module: consolidate path containing whitespaces (#466) 2019-02-01 11:18:56 +01:00
bordun
3b11cc968c keys: explain that keydown defines the value (#462) 2019-01-28 15:36:45 +01:00
bordun
1b523a0d86 sliders: make scrolling granular when steps are defined (#460) 2019-01-28 15:29:48 +01:00
bordun
cc1ae45b32 push: allow setting value`(#462) 2019-01-28 15:27:43 +01:00
bordun
77ad744feb editor: prevent edit-field blur calback from applying changes on newly selected widget 2019-01-25 11:30:46 +01:00
bordun
d097c5717d osc: fix split + preArgs 2019-01-25 11:03:59 +01:00
bordun
0f435b8a91 package: 0.41.4 2019-01-25 10:41:56 +01:00
bordun
68774fc591 fader: builtin meter's address/color/preArgs should be dynamic (#458) 2019-01-25 10:40:54 +01:00
jean-emmanuel
b06e4d73c0 main: fix --remote-saving 2019-01-22 22:39:22 +01:00
jean-emmanuel
1143377eea package: 0.41.3 2019-01-22 19:07:15 +01:00
jean-emmanuel
cb8858dc6f rgb: do not round value (#252) 2019-01-22 19:04:35 +01:00
jean-emmanuel
0082c1fc87 osc: wrap module, add utf encoding/decoding (#455) 2019-01-13 11:55:55 +01:00
jean-emmanuel
0591667206 package: 0.41.2 2019-01-09 09:07:35 +01:00
jean-emmanuel
7ee58a916a modal: fix init order (resize glitch on recent chrome) 2019-01-09 09:00:08 +01:00
jean-emmanuel
3c5ed1c42b ipc: prevent false positive socket closing 2019-01-08 13:16:43 +01:00
jean-emmanuel
c6d7b2e222 image: typo in repeat prop default 2019-01-07 23:06:38 +01:00
jean-emmanuel
271b803861 lint: space 2019-01-07 23:01:21 +01:00
jean-emmanuel
7fad36c194 strip: regression from dynamic editing: handle geometry coerce differently to avoid layout bugs 2019-01-07 22:59:09 +01:00
jean-emmanuel
992ca91e37 widget: geometry update mistake 2019-01-07 21:52:17 +01:00
jean-emmanuel
8c37b06060 widget: fix geometry style update (properly apply 'auto') 2019-01-07 19:25:05 +01:00
jean-emmanuel
81af47ea9b ipc: prevent ipc reconnect notification on 1st connect 2019-01-07 12:35:52 +01:00
jean-emmanuel
b788d81146 remote-saving: mistake... 2019-01-07 12:31:38 +01:00
jean-emmanuel
3e7ca5573c lint: whitespace 2019-01-07 12:23:03 +01:00
jean-emmanuel
a55205049d package: hot fix 0.41.1 2019-01-07 10:07:14 +01:00
jean-emmanuel
bd47083c22 sidepanel:prevent double toggle issue 2019-01-07 10:00:29 +01:00
jean-emmanuel
e3364e2566 session: fix importing non local file 2019-01-07 09:57:17 +01:00
jean-emmanuel
c3f9b0b2bd package: 0.41.0 2019-01-07 07:50:55 +01:00
jean-emmanuel
7663db4b01 launcher: add opt description to label tooltips 2019-01-07 06:50:14 +01:00
jean-emmanuel
fcccd66204 log: crash without env.HOME 2019-01-07 06:42:43 +01:00
jean-emmanuel
0d53b5acaf sidepanel: prevent focus forced scroll when closed 2019-01-07 06:40:06 +01:00
jean-emmanuel
57b65d73e4 image: fix reload command vs http cache 2019-01-06 20:21:20 +01:00
jean-emmanuel
caf610c0c9 server: prevent url query from breaking file serving 2019-01-06 16:54:12 +01:00
jean-emmanuel
5dbb5fa2e1 notification: disambiguate var names 2019-01-06 12:35:34 +01:00
jean-emmanuel
b12065fb8c notification: toast same-id replace fix 2019-01-06 12:28:15 +01:00
jean-emmanuel
28f3c53018 notifications: ooify toasts and better server connection notifications 2019-01-06 11:33:57 +01:00
jean-emmanuel
0ab3d76dd7 ipc: add notification when server is unreachable (add unique notification to avoid spamming) 2019-01-05 18:08:07 +01:00
jean-emmanuel
ab31769341 remote-save: store session path in client session manager to reset it if the server is rebooted 2019-01-05 17:51:27 +01:00
jean-emmanuel
6aa2903203 lint: unnused import 2019-01-05 17:16:35 +01:00
jean-emmanuel
797870cdf7 remote-save: let the server notify the client if it worked or not 2019-01-05 17:08:51 +01:00
jean-emmanuel
1be1c729ed server: rm express dependency, that's 200kb less 2019-01-05 15:13:24 +01:00
jean-emmanuel
a2b387da4d notifications: replace some popup with notification 2019-01-05 13:45:39 +01:00
jean-emmanuel
2c980ae1ad log: update 2019-01-05 12:56:16 +01:00
jean-emmanuel
fa287cf288 patchbay: hilight selected node's connections 2019-01-05 12:53:53 +01:00
jean-emmanuel
156c066ae7 patchbay: fix nodes width and document how to change it 2019-01-05 11:56:16 +01:00
jean-emmanuel
3bfb896521 lint: bad space 2019-01-05 11:42:26 +01:00
jean-emmanuel
bd7c4372b7 main: oups missing bang 2019-01-05 11:33:16 +01:00
jean-emmanuel
68cbc6ac1d main: test if remote-saving regexp is valid 2019-01-05 11:29:46 +01:00
jean-emmanuel
4fcf539a68 main: cache remote-saving regexp 2019-01-05 11:29:33 +01:00
jean-emmanuel
28ed28ab2d patchbay: allow array|object for inputs/outputs; cancel connect when clicking outside 2019-01-05 11:14:46 +01:00
jean-emmanuel
72c74d5e11 lint: bad space 2019-01-04 21:05:10 +01:00
jean-emmanuel
068f7d5404 patchbay: tweak drag-connection curves and fix a conflict between drag and click 2019-01-04 20:39:13 +01:00
jean-emmanuel
7bda452e48 notifications: rm debug keyboard shortcut and increase timeout 2019-01-04 18:17:02 +01:00
jean-emmanuel
b49d438d39 main: missing import 2019-01-04 18:13:53 +01:00
jean-emmanuel
d3d49ecc2d lint: bad space 2019-01-04 18:08:19 +01:00
jean-emmanuel
a5cb63eec7 log: typo 2019-01-04 18:06:13 +01:00
jean-emmanuel
b0accaa1d4 patchbay: make inputs inherit from bypass too 2019-01-04 18:01:02 +01:00
jean-emmanuel
c116338095 main: move options in a separate module, disable user setting files if HOME is not defined (#453) 2019-01-04 17:53:22 +01:00
jean-emmanuel
7471448df8 widgets: add patchbay 2019-01-04 17:38:52 +01:00
jean-emmanuel
6f79c91ba3 doc: remote saving 2019-01-04 13:23:34 +01:00
jean-emmanuel
6bec2462fc log: --remote-saving 2019-01-04 13:14:42 +01:00
jean-emmanuel
dce976ff87 update heroku 2019-01-04 13:12:33 +01:00
jean-emmanuel
09debb5171 main: add --remote-saving for limiting clients remote session saving rights 2019-01-04 13:11:23 +01:00
jean-emmanuel
a4a2572973 log: latest additions 2019-01-04 12:46:52 +01:00
jean-emmanuel
40de55c081 lint: unnused var 2019-01-04 12:40:13 +01:00
jean-emmanuel
75de5f6825 notification: adjust fade-out animation 2019-01-04 12:34:22 +01:00
jean-emmanuel
9c11ae07fa sidepanel: add notifications for state actions 2019-01-04 12:26:27 +01:00
jean-emmanuel
ad6eeee08b editor: only warn about quitting if the session has been modified, disable warning if session has been saved 2019-01-04 12:16:29 +01:00
jean-emmanuel
e69982dee9 notifications: missing modules 2019-01-04 12:02:55 +01:00
jean-emmanuel
10b3b465f5 save: missing condition on autoreload for simultaneously opened sessions 2019-01-04 12:01:37 +01:00
jean-emmanuel
1b36fa71c0 ui: add notification system 2019-01-04 12:01:07 +01:00
jean-emmanuel
b9f2cebba8 package: rm chokidar dep 2019-01-04 10:29:48 +01:00
jean-emmanuel
62acbf479f session: implement remote saving for session files located on the server 2019-01-04 10:25:06 +01:00
jean-emmanuel
8441a4983e main: allow passing extra options to --custom-module and make them available through global object "options" 2019-01-03 17:54:54 +01:00
jean-emmanuel
e4f05b1ae5 main: allow domain:port pairs in --send (#452) 2019-01-03 10:22:45 +01:00
jean-emmanuel
a2ef7616df tabs: don't fade tabs' labels under active color layer 2019-01-03 09:55:53 +01:00
jean-emmanuel
f2c98519a7 package: 0.40.5 2019-01-02 09:47:03 +01:00
jean-emmanuel
bc53f86b1b package: update deps (fixes a python/midi issue on windows) and remove permissive deps versions 2019-01-02 09:46:02 +01:00
jean-emmanuel
9d2fe8a91a matrix: inherit from id and osc properties by default (#450) 2019-01-02 09:36:11 +01:00
jean-emmanuel
b6fa6baa57 editor: move linked props check to widget base class to ensure clone and matrix apply it 2019-01-01 22:04:42 +01:00
jean-emmanuel
28ab560f80 clone: don't copy 'editing' class to prevent false editor selection rectangle 2018-12-31 17:46:25 +01:00
jean-emmanuel
273abf1d16 input: restore validate on tab key, select whole value on focus, adjust color hints 2018-12-31 15:39:12 +01:00
jean-emmanuel
4612671f25 lint & update docs 2018-12-29 11:00:54 +01:00
jean-emmanuel
3f74d69e30 package: 0.40.4 2018-12-29 10:56:51 +01:00
jean-emmanuel
5cd3e0028b osc-listeners: add support for relative address prefixed with the widget's address (#438) 2018-12-29 10:16:13 +01:00
jean-emmanuel
4ae20437ce osc-receiver: decrement varnumber instead of incrementing 2018-12-28 15:32:26 +01:00
jean-emmanuel
7e9a602ceb push: add doubleTap option (#447) 2018-12-28 14:05:41 +01:00
jean-emmanuel
2e317b7843 main: fix --no-gui (ensure package.json is found by yargs) (issue #435) 2018-12-28 13:56:47 +01:00
jean-emmanuel
28d2f99fdc editor: fix reordering bug (don't reuse children between old and new index) (issue #448) 2018-12-27 19:53:56 +01:00
jean-emmanuel
1070fc64ca package: 0.40.3 2018-11-22 23:16:04 +01:00
jean-emmanuel
54f058df8a docs: mention add to home screen and absence of mobile app 2018-11-22 23:15:18 +01:00
jean-emmanuel
f61c1beac2 props: store variables in reverse order to avoid var name overlap (#439) 2018-11-22 22:51:21 +01:00
jean-emmanuel
d79aaec5aa editor: always refresh sidepanel / draggable / resizable upon selection 2018-11-22 22:32:18 +01:00
jean-emmanuel
19556e41e4 docs: a bit more accurate 2018-11-20 20:04:47 +01:00
jean-emmanuel
4ba845c630 docs: update widgets 2018-11-20 20:01:07 +01:00
jean-emmanuel
af3e094316 docs: mention how scripts can receive other widgets' values (#423) 2018-11-20 19:59:52 +01:00
jean-emmanuel
320dfdc860 docs: update widgets 2018-11-20 19:01:38 +01:00
jean-emmanuel
5d5faf4bda package: 0.40.2 2018-11-20 18:56:26 +01:00
jean-emmanuel
3b08df080b log: tabs order 2018-11-20 18:56:00 +01:00
jean-emmanuel
1a556f9051 dom: back to old node array forEach 2018-11-20 18:48:56 +01:00
jean-emmanuel
f01bbd48b4 lint: rm import 2018-11-20 13:49:09 +01:00
jean-emmanuel
c30deab912 package: 0.40.1 2018-11-20 13:40:57 +01:00
jean-emmanuel
7e953aa268 svg: fix broken html 2018-11-20 13:34:21 +01:00
jean-emmanuel
7100029ba0 log: editor tab fix 2018-11-20 12:34:55 +01:00
jean-emmanuel
3bf08fd5f0 dom: don't polyfill Node forEach, use safer method; editor: fix select/unselect bug with tabs 2018-11-20 12:32:35 +01:00
jean-emmanuel
16d9a66f63 log:typo 2018-11-20 10:08:01 +01:00
jean-emmanuel
88a31f4274 log: fix history 2018-11-20 10:07:05 +01:00
jean-emmanuel
74ca4b4ec0 log: 0.40 2018-11-20 10:05:33 +01:00
jean-emmanuel
b84e06a152 docs: update widgets ref 2018-11-20 10:04:52 +01:00
jean-emmanuel
a8900a3ded package: 0.40 2018-11-20 10:04:20 +01:00
jean-emmanuel
d5edf65062 lint: rm useless imports 2018-11-20 10:03:37 +01:00
jean-emmanuel
7433c40481 matrices: missing children index definition 2018-11-20 09:49:58 +01:00
jean-emmanuel
0838576342 meter: allow setting gradient as an object with numeric breakpoints 2018-11-20 09:37:43 +01:00
jean-emmanuel
69bf64e864 matrices: fix children target/precision/preArgs update 2018-11-20 09:06:32 +01:00
jean-emmanuel
5015059fd3 matrix: deprecate non generic matrices and show warning when using them 2018-11-19 17:04:35 +01:00
jean-emmanuel
bb532a62cd formula: add indexOf (#431) 2018-11-15 07:39:38 +01:00
jean-emmanuel
ed8f14d573 read-only: fix it !#430) 2018-11-14 22:54:19 +01:00
jean-emmanuel
922ec4918b strip: stretch should be false by default 2018-11-14 21:24:23 +01:00
jean-emmanuel
418dc64b4a package: 0.39.8 2018-11-14 10:12:24 +01:00
jean-emmanuel
c714129f3b log: nosleep 2018-11-14 10:10:29 +01:00
jean-emmanuel
7a495b077b
Merge pull request #421 from MartinHN/pr/nosleep
[proposal] prevent sleep if fullscreen
2018-11-14 10:09:46 +01:00
jean-emmanuel
b7d55c9351 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2018-11-14 10:01:45 +01:00
jean-emmanuel
472ff5676e meter: fix properties not accessible 2018-11-14 10:01:26 +01:00
jean-emmanuel
0561088efd
Merge pull request #427 from jpcima/work
readme: fix some mistakes
2018-11-12 17:31:20 +01:00
JP Cimalando
7047ce1ebf readme: fix some mistakes 2018-11-12 16:11:19 +01:00
jean-emmanuel
94d827387c nosleep: rm debug cond 2018-11-10 20:29:38 +01:00
jean-emmanuel
f0b25efe33 nosleep: conditionnal button in sidepanel 2018-11-10 20:26:04 +01:00
Martin Hermant
a20dfcf247
lint 2018-11-10 17:11:55 +01:00
Martin Hermant
dccb93d751
prevent sleep if fullscreen 2018-11-10 16:44:44 +01:00
jean-emmanuel
301829ffb5 docs: package node 2018-11-09 02:16:22 +01:00
jean-emmanuel
9e9f9dba84 package: 0.39.7 2018-11-09 02:09:50 +01:00
jean-emmanuel
83e2e81936 log: dynamic steps prop 2018-11-09 02:09:30 +01:00
jean-emmanuel
b87bf1456a session: fix loading error markup 2018-11-09 02:08:42 +01:00
jean-emmanuel
5d2c424bb7 ios: try babel polyfills 2018-11-09 02:08:21 +01:00
jean-emmanuel
40f8929321 sliders: make steps dynamic 2018-11-07 14:14:45 +01:00
jean-emmanuel
6e33d434bd docs: add generated widget reference to repo 2018-11-07 11:24:50 +01:00
jean-emmanuel
bb21512cc6 package: 0.39.6 2018-11-06 20:52:48 +01:00
jean-emmanuel
5326d540ce modal: fix parent css containment (breaks since chrome 70) 2018-11-06 20:51:10 +01:00
jean-emmanuel
1db3b3b7d1 dom: poylfill HTMLCollection foreach 2018-11-06 20:32:45 +01:00
jean-emmanuel
76bb845492 misc: missing attribution 2018-11-06 20:20:47 +01:00
jean-emmanuel
8a2bcbe454 package: 0.39.5 2018-11-06 20:16:24 +01:00
jean-emmanuel
3354d69d3f cli: clearly state that --fullscreen is only for the default gui #419 2018-11-06 20:13:35 +01:00
jean-emmanuel
2ea1f285df log: ios fix 2018-11-06 20:13:31 +01:00
jean-emmanuel
42ad668156 compat: add missing polyfills for iOS that babel doesn't seem to provide anymore 2018-11-06 20:09:46 +01:00
jean-emmanuel
829cbe6064 sliders: steps option not working when range.min is not 0 2018-11-06 08:54:17 +01:00
jean-emmanuel
e15f138bd6 tests: fix test session (no root or tab widget in tab) 2018-11-06 08:32:48 +01:00
jean-emmanuel
c164b1a50e package: 0.39.4 2018-11-04 12:49:06 +01:00
jean-emmanuel
17e9e8bc3e log: bad white spaces 2018-11-04 12:47:44 +01:00
jean-emmanuel
0adc690c1c log: rgb alpha 2018-11-04 10:54:17 +01:00
jean-emmanuel
aa6bba27b5 plot: slightly smaller dots 2018-11-03 23:15:42 +01:00
jean-emmanuel
ed09cb96c8 rgb: layout fix 2018-11-03 20:11:42 +01:00
jean-emmanuel
ca507ebe1e pads: no pips outer rect 2018-11-03 20:06:58 +01:00
jean-emmanuel
9ebed5996c pads: no blurry pips 2018-11-03 19:58:18 +01:00
jean-emmanuel
8374ae3d72 rgb: adjust point opacity 2018-11-03 19:33:37 +01:00
jean-emmanuel
3a2adf079e multixy: draw labels above points 2018-11-03 19:24:37 +01:00
jean-emmanuel
f37d5b1e3e multixy: mention .pad-X selector 2018-11-03 19:23:59 +01:00
jean-emmanuel
0422bb184a pads: clean rgb, add active state hint, add --point-opacity 2018-11-03 15:30:32 +01:00
jean-emmanuel
1deb276285 rgb: better alpha fallback 2018-11-03 13:56:21 +01:00
jean-emmanuel
371db7a989 rgb; handle alpha on color update / removal 2018-11-03 13:49:48 +01:00
jean-emmanuel
e6d18a1984 rgb: default alpha is false 2018-11-03 13:48:59 +01:00
jean-emmanuel
bdfdb526d7 rgb: don't pass alpha when not set 2018-11-03 13:47:12 +01:00
jean-emmanuel
393b7ecac2 rgb: some missing things in rgb alpha 2018-11-03 13:41:31 +01:00
jean-emmanuel
cf6eed90f4 rgb: update alpha opt description 2018-11-03 13:19:38 +01:00
jean-emmanuel
202055bba6 rgb: rename alphaChannel option to alpha 2018-11-03 13:15:19 +01:00
jean-emmanuel
ade40836dc log: pads update 2018-11-03 13:13:27 +01:00
jean-emmanuel
79fbfc8001 pads: design update 2018-11-03 13:13:24 +01:00
jean-emmanuel
20976ec3df rgb: implement alphaChannel option 2018-11-03 13:12:05 +01:00
jean-emmanuel
37ac652fa3 sliders: steps: use auto instead of true for range values 2018-11-03 09:30:29 +01:00
jean-emmanuel
7a3426b2f9 knob: steps help 2018-11-03 09:26:22 +01:00
jean-emmanuel
20ce50d204 sliders: add steps option (#412) 2018-11-03 09:24:24 +01:00
jean-emmanuel
9a00d9560e multixy: added .pad-N class to inner xy pads to help with css customization 2018-11-03 01:17:36 +01:00
jean-emmanuel
270dff6257 package: 0.39.3 2018-11-02 10:50:51 +01:00
jean-emmanuel
7bc831ea38 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2018-11-02 10:50:14 +01:00
jean-emmanuel
170b6706e4 package: 0.39.2 2018-11-02 10:48:41 +01:00
jean-emmanuel
21d7a738ab remote: fix /TABS and don't make panel send osc (#414) 2018-11-02 10:47:35 +01:00
jean-emmanuel
da1212f37e editor: fix context addtab to root 2018-11-02 10:41:03 +01:00
jean-emmanuel
8d7c2eb9c7 tabs: fix custom color with nanohtml 2018-11-02 10:38:14 +01:00
bordun
4fad3d7c21 server: fix --theme 2018-11-01 16:21:59 +01:00
bordun
9c09853636 package: fix node package optdep 2018-11-01 16:16:54 +01:00
bordun
4b29be2139 editor: missing 'edit parent' from context menu -> 0.39.2 2018-11-01 16:10:10 +01:00
bordun
f01e27894c log: typo 2018-11-01 13:39:49 +01:00
bordun
1718ee6cbf package: 0.39.1 2018-11-01 13:28:41 +01:00
bordun
5b0ddc41ea switch: fix icons in labels (#413) 2018-11-01 13:25:06 +01:00
bordun
bcefcf8bf3 scripts: fix css watch 2018-11-01 13:23:54 +01:00
bordun
58b07631d7 package: downgrade electron (dragging text freezes on v3) & bump version 2018-11-01 11:28:00 +01:00
bordun
2691ea9581 sliders/pads: precision cannot be dynamic to make sure inner input is updated 2018-11-01 11:19:54 +01:00
bordun
c39b89b960 widget: define isDynamicProp 2018-11-01 10:55:39 +01:00
bordun
df33d3d93f widgets: useless uses of cached precision 2018-11-01 10:32:35 +01:00
bordun
dafcc17cbd session: adjust editor/reloader to unwrapped session 2018-10-31 13:49:45 +01:00
bordun
6dc75802c5 parser: optimize a bit and fix formatting 2018-10-31 12:01:43 +01:00
bordun
7ff0c8a0ce session: unwrap root widget; parser: don't parse arrays 2018-10-31 11:55:14 +01:00
bordun
6ae3ce7f10 widgets: remove support for deprecated properties path, noPip and noSync 2018-10-31 11:44:25 +01:00
bordun
3caf8d9fff package: deps update 2018-10-31 11:39:09 +01:00
bordun
1e73de0efe package: strict deps versions, manual update only 2018-10-31 11:37:59 +01:00
bordun
9328284ae7 linkedprops: remove callbacks from this to ensure they can be recreated if needed 2018-10-31 11:28:50 +01:00
jean-emmanuel
6ee45224b1
Merge pull request #411 from jean-emmanuel/faster-events
Faster events
2018-10-31 10:37:42 +01:00
jean-emmanuel
86fab843a3 slider: rm debug log 2018-10-31 10:32:52 +01:00
jean-emmanuel
0a8252e854 linked props: rm extra method call and fix bindings creation mistake 2018-10-31 10:27:47 +01:00
jean-emmanuel
477249aae8 events: safe listener trigger 2018-10-31 10:27:30 +01:00
jean-emmanuel
70b6c8ffcb events: syntax & bulk context check 2018-10-31 10:24:12 +01:00
jean-emmanuel
c9d10d851e events: off: check context arg at last step 2018-10-30 22:43:03 +01:00
jean-emmanuel
ca940ac8b2 events: bad white space 2018-10-30 20:56:12 +01:00
jean-emmanuel
316c440ab5 events: rm wolfyEE dep 2018-10-30 20:55:29 +01:00
jean-emmanuel
f9490c8155 events: rewrite event emitter with no dependency 2018-10-30 19:53:54 +01:00
jean-emmanuel
c5cca90081 events: emit: don't wrap data in an array, optimize method 2018-10-30 08:52:48 +01:00
jean-emmanuel
3b7248bfa7 client: rm debug log 2018-10-30 08:18:56 +01:00
jean-emmanuel
6707dedb71 scripts: enhance logs 2018-10-30 08:18:39 +01:00
jean-emmanuel
9b51e4fe2b events: rm logs 2018-10-30 08:18:29 +01:00
bordun
8d1e29ab9f panel: missing escape for icons in tab labels 2018-10-29 15:11:49 +01:00
bordun
173d483525 client: missing nanohtml use 2018-10-29 14:58:25 +01:00
bordun
1d168cee2e client: optimize dom selector 2018-10-29 14:54:00 +01:00
bordun
ddd9e46628 log: update 2018-10-29 13:55:37 +01:00
bordun
f87ad6e42b rm tmp file 2018-10-29 13:53:22 +01:00
bordun
f56e6f8a92 script: missing file 2018-10-29 13:05:38 +01:00
bordun
44cd795ef5 test: wrong spawn cmd 2018-10-29 13:04:33 +01:00
bordun
b62ec7fb74 tests: add basic test for all widgets and add eslint to npm test 2018-10-29 13:01:13 +01:00
bordun
01211758b0 lint: update rules and fix errors 2018-10-29 12:56:38 +01:00
bordun
95a8c31df9 client: missing nanohtml requires 2018-10-29 12:49:02 +01:00
bordun
f0e218d5e0 client: missing nanohtml require 2018-10-29 12:27:08 +01:00
bordun
7312e2db98 client: continue nanohtml integration and avoid some innerHTML calls 2018-10-29 11:44:01 +01:00
bordun
bf074ff810 client: integrate nanohtml in widget constructors 2018-10-29 11:43:49 +01:00
bordun
dbd6998182 client: use precompiled nanohtml to optimize dom element creation 2018-10-29 10:59:57 +01:00
bordun
55487fd1e1 package: refix client bundle bize while keeping --watch error log 2018-10-29 10:47:14 +01:00
jean-emmanuel
0bad380d6f package: wrong bundle file name 2018-10-29 00:49:06 +01:00
jean-emmanuel
bc9e62378f
Merge pull request #408 from MartinHN/patch-2
resolveProp : compare cached id when checking undefined
2018-10-29 00:02:52 +01:00
bordun
45e091f37d resolveProp: return an explicit error message for circular references and compare widget instances instead of id 2018-10-28 23:57:30 +01:00
bordun
c8f21fa37d Merge branch 'patch-2' of https://github.com/MartinHN/open-stage-control into MartinHN-patch-2 2018-10-28 23:56:54 +01:00
bordun
dd59f26ef4 package: include source-map-support when running with electron too now that it's always bundled 2018-10-28 17:25:22 +01:00
Tintamar
58373e924d
resolveProp : compare cached id when checking undefined 2018-10-28 16:55:29 +01:00
bordun
c122ba27cc build: missing require for --watch 2018-10-28 16:21:43 +01:00
jean-emmanuel
2365e04104
Merge pull request #407 from MartinHN/patch-1
fix typo preventing error logs
2018-10-28 16:19:30 +01:00
bordun
f3681a1be0 package: update all deps & babel build 2018-10-28 16:17:23 +01:00
Tintamar
a4d0ab8e0d
fix typo preventing error logs 2018-10-28 16:14:19 +01:00
bordun
0ce4af3275 package: create app/package.json at build time 2018-10-28 16:02:44 +01:00
bordun
4d4ddb466b server: remove vmodule dependency (not needed since serialport is ignored at build time) 2018-10-28 15:48:41 +01:00
bordun
1865ed0e61 client: rm favicon query 2018-10-28 15:48:07 +01:00
bordun
6b5058b2b8 example: fix ardour asset favicon path 2018-10-28 15:47:44 +01:00
bordun
a6c77b76d9 travis: use npm scripts 2018-10-28 15:41:55 +01:00
bordun
04b04b8b37 package: fix http client/assets serving 2018-10-28 15:39:55 +01:00
bordun
62c13efb00 package: wrong client index patg 2018-10-28 15:35:40 +01:00
bordun
95eae75585 package: fix launcher assets path 2018-10-28 15:34:36 +01:00
bordun
cc3176118e package: add some log help 2018-10-28 15:29:38 +01:00
bordun
d432969fb2 package: move assets to "assets" 2018-10-28 15:10:50 +01:00
bordun
e8b2a3fb99 package: rename browser to client and main to server 2018-10-28 15:06:36 +01:00
jean-emmanuel
ea142198e0 package: fix docs build 2018-10-28 14:33:17 +01:00
bordun
bd6ff6e05d package: don't rerun "build" in package script 2018-10-28 14:28:51 +01:00
bordun
d1baae3e80 package: fix lil mistakes 2018-10-28 14:21:01 +01:00
bordun
bd333234f5 Merge branch 'master' of github.com:jean-emmanuel/Open-Stage-Control 2018-10-28 14:10:17 +01:00
bordun
d0cc7f51aa package: package refactoring 2018-10-28 14:09:16 +01:00
bordun
1b2da1750a package-node: remove settings hack and pass settings in electron globals 2018-10-27 15:32:21 +02:00
jean-emmanuel
935ddc03ae docs: mention node in supported platforms 2018-10-27 15:03:32 +02:00
jean-emmanuel
f159d1608c doc: node-only binaries 2018-10-27 15:00:02 +02:00
bordun
0ca44553d0 package 0.38.7 2018-10-27 14:50:41 +02:00
bordun
e2c84e513e log: launcher -> electron 3 compat 2018-10-27 14:50:13 +02:00
bordun
1ce9c65331 package: remove old dep 2018-10-27 14:49:48 +02:00
bordun
dcf587778f dev: ansi-html stack tweaking 2018-10-27 14:49:11 +02:00
bordun
95c53ee70b launcher: autoscroll and context menu for electron 2 & 3 2018-10-27 14:29:57 +02:00
bordun
77c26f0407 package: node: hackfix settings module loading 2018-10-27 14:23:58 +02:00
bordun
c1b9104f0b hot-reload: use a lighter ansi parser 2018-10-27 14:23:39 +02:00
bordun
100fb06c31 package: node: auto overwrite 2018-10-27 13:46:35 +02:00
bordun
b8dc20d2fb package: 0.38.6 2018-10-27 13:23:20 +02:00
bordun
67ec080ddd panels: fix dynamic color regression 2018-10-27 13:22:42 +02:00
bordun
6b4ce7e66b dev: fix dev env detect for launcher 2018-10-27 13:14:34 +02:00
bordun
80347eb892 package: node: include launcher to allow running with external electron 2018-10-27 13:10:32 +02:00
bordun
304cb34dbe package-node: add package.json 2018-10-27 12:37:12 +02:00
bordun
4ea1f6bdbe package: add "bin" entry 2018-10-27 12:37:02 +02:00
bordun
be3b42ffff package: ultra slim node package 2018-10-27 12:22:40 +02:00
bordun
1c4b136d67 node: better error stack handling 2018-10-27 12:21:13 +02:00
bordun
5bcadb4f51 pacakge: rename main index.js 2018-10-27 09:32:03 +02:00
bordun
4ccebbfe8f package: .38.5 2018-10-26 20:55:53 +02:00
bordun
53c4e61fa5 package: specify electron version now that it's an opt dep 2018-10-26 20:23:31 +02:00
bordun
d125030a99 travis: fix package all 2018-10-26 20:11:10 +02:00
bordun
742ce1c01d log: node package bin 2018-10-26 19:57:21 +02:00
bordun
abb1d8f29f package: add node package to releases 2018-10-26 19:55:43 +02:00
bordun
41593844a5 log: formatting 2018-10-26 19:14:31 +02:00
bordun
c1dd73efec log: 0.38.5 2018-10-26 19:14:08 +02:00
bordun
4e3834083e package: fix js bundle size (source map not correctly externalized) 2018-10-26 19:07:42 +02:00
bordun
d23552ca36 package: node package npm script 2018-10-26 12:16:13 +02:00
bordun
3fd9945f61 package: add node-only packaging 2018-10-26 12:15:18 +02:00
bordun
3125178557 package: replace cp with cpr 2018-10-26 12:11:11 +02:00
bordun
92d0a06fbd hot-reload: when disabled, missing one condition to avoid extra error when build fails 2018-10-26 11:37:27 +02:00
bordun
7f76f8cab1 node: remove electron import that breaks it 2018-10-25 14:26:22 +02:00
bordun
f5486e6863 node: adjust logs 2018-10-25 08:53:46 +02:00
bordun
fdacf47cb3 node: better node startup 2018-10-25 08:51:13 +02:00
bordun
bda18d33cb package: make electron dep optional 2018-10-24 14:31:21 +02:00
bordun
3826c74a2a package: npm start faster 2018-10-24 14:30:53 +02:00
bordun
ae6192ff99 node: automatically setup --no-gui 2018-10-24 12:09:38 +02:00
bordun
ecbdf3db6b windows: node process title detection fix 2018-10-24 12:01:22 +02:00
jean-emmanuel
79908888e4 package: 0.38.4 true release 2018-10-23 20:34:07 +02:00
jean-emmanuel
ea2f1fdca8 root: don't setTraversing for nothing at init 2018-10-23 16:18:16 +02:00
jean-emmanuel
7c7478cbc6 root: prop 'traversing' is dynamic 2018-10-23 16:17:03 +02:00
jean-emmanuel
b11bff7537 hot-reload: store traversing state (#400) 2018-10-23 09:47:47 +02:00
jean-emmanuel
828e8babf2 traversing: store traversing type in element 2018-10-23 09:41:15 +02:00
jean-emmanuel
fb967a3840 traversing: store samewidget switch in utils 2018-10-23 09:40:37 +02:00
jean-emmanuel
901e0e95e6 sidepanel: disable traversing before enabling 2018-10-23 09:36:45 +02:00
jean-emmanuel
ab860052ca traversing: store traversing state in dom element 2018-10-23 09:34:49 +02:00
jean-emmanuel
8b8864cd6a root: add traversing option (#400) 2018-10-23 08:56:32 +02:00
jean-emmanuel
7e43cab6f1 dynamic edit: inverted test that triggers prop cache recreation (#401) 2018-10-23 08:35:27 +02:00
jean-emmanuel
47edbdd132 traversing: log/doc smart mode 2018-10-23 00:01:58 +02:00
jean-emmanuel
461f99dd8d
Merge pull request #400 from MartinHN/pr/same-widget-traversing
Smart traversing gestures
2018-10-22 23:56:47 +02:00
jean-emmanuel
5deb321539 traversing gestures: simplify implementation & add locales 2018-10-22 23:49:23 +02:00
jean-emmanuel
f1d2dc0512 Merge branch 'pr/same-widget-traversing' of https://github.com/MartinHN/open-stage-control into MartinHN-pr/same-widget-traversing 2018-10-22 23:45:10 +02:00
jean-emmanuel
79e1a0ad36 sidepanel: pass button reference to action callback 2018-10-22 23:29:49 +02:00
Martin Hermant
3c49e96f06
wip traversing same Widget 2018-10-22 21:33:43 +02:00
jean-emmanuel
7198d369c7 docs: veganize dat 2018-10-22 19:23:03 +02:00
jean-emmanuel
c4357096fc docs: formatting 2018-10-22 19:21:46 +02:00
jean-emmanuel
2185408fea css: support special css property class for adding custom classes to widgets (#361) 2018-10-22 19:20:20 +02:00
jean-emmanuel
0b2a94e0d8 package: 0.38.3 beta 2018-10-22 08:00:53 +02:00
jean-emmanuel
9f294097d9 nested props: cheaper regexp 2018-10-22 01:02:39 +02:00
jean-emmanuel
402ee3291e nested props: fix regexp for when the nested call is not at the end 2018-10-22 00:46:00 +02:00
jean-emmanuel
492af30e70 package: 0.38.2 beta 2018-10-21 23:51:40 +02:00
jean-emmanuel
34a71540d8 lint: clean and update some rules 2018-10-21 23:46:30 +02:00
jean-emmanuel
aae051684d log: phrasin 2018-10-21 23:24:49 +02:00
jean-emmanuel
9b345b9ac8 clone: rm unnused var 2018-10-21 23:16:42 +02:00
jean-emmanuel
38fd32413d diff: add some comments 2018-10-21 23:14:47 +02:00
jean-emmanuel
e9dac2eae6 diff: missing case in diff parsing 2018-10-21 23:06:02 +02:00
jean-emmanuel
a33751a800 clone: use new diff parsing to update children faster if only dynamic props change 2018-10-21 22:56:14 +02:00
jean-emmanuel
b52e72f311 diff: clean diff parsing 2018-10-21 22:56:01 +02:00
jean-emmanuel
2143eea117 editor: write a proper diff to widget parsing function 2018-10-21 22:10:20 +02:00
jean-emmanuel
9b8dc27ba6 editor: adapt to dynamic nested props (#398) 2018-10-21 21:51:03 +02:00
jean-emmanuel
0a9929d0a0 linked-props: make nested links dynamic (#398) 2018-10-21 21:42:50 +02:00
jean-emmanuel
8a1c0da634 widget: fix regression with simple nested @{} calls 2018-10-21 18:06:24 +02:00
jean-emmanuel
62c24a15e1 package: typo in script name 2018-10-21 10:13:32 +02:00
jean-emmanuel
cc438acdea package: cross platform "cp" script for windows 2018-10-21 10:07:10 +02:00
jean-emmanuel
76a5277949 package: 0.38.1 beta 2018-10-20 21:09:59 +02:00
jean-emmanuel
57e352a403 midi: fix python import 2018-10-20 21:06:11 +02:00
jean-emmanuel
92d7245a58 clone: hot fix @MartinHN #395 2018-10-20 19:49:39 +02:00
jean-emmanuel
09881ed02e props: regression in linkedprops listeners 2018-10-20 15:47:38 +02:00
jean-emmanuel
87d20659c6
Merge pull request #390 from MartinHN/pr/debug-autoreload
add integrated html error and reloading when debuging
2018-10-20 15:24:09 +02:00
jean-emmanuel
6e566d9d3e hot-reload: clean backup only after it's been consumed 2018-10-20 15:23:01 +02:00
jean-emmanuel
ce27b8e052 hot-reload: hide browserify's stack, enhance formatting 2018-10-20 10:29:26 +02:00
jean-emmanuel
39063693c2 hot-reload: save editor state, history, and sidepanel state 2018-10-20 10:10:34 +02:00
jean-emmanuel
537dd44795 hot-reload: implememnt auto session/state backup on reload and display error stack in a popup 2018-10-19 21:25:00 +02:00
jean-emmanuel
6f6e1396e4 Merge branch 'pr/debug-autoreload' of https://github.com/MartinHN/open-stage-control into autoreload 2018-10-19 17:32:32 +02:00
jean-emmanuel
c8db69a00d package: 0.38 2018-10-19 16:17:32 +02:00
jean-emmanuel
b485e58087 session: add mod+o shortcut to open a session file 2018-10-19 16:16:48 +02:00
jean-emmanuel
9e3615b9a0
Merge pull request #394 from jean-emmanuel/dynamic-props-edit
Dynamic props edition
2018-10-19 16:10:59 +02:00
jean-emmanuel
9cceedf5c7 container: safe alignChildrenProps 2018-10-19 16:08:07 +02:00
jean-emmanuel
34ab8cfccb editor: update comments 2018-10-19 15:46:33 +02:00
jean-emmanuel
1b6dfbf085 editor: avoid rebuild for dynamic props even if they contain listeners (if so, refresh prop cache and listeners) 2018-10-19 15:40:57 +02:00
jean-emmanuel
afc443804b widget: dynamically bind/unbind prop-change listener and allow resetting prop cache 2018-10-19 15:40:13 +02:00
jean-emmanuel
00076864e2 events: add evt & listener args to removeEventContext to allow removing a specific listener 2018-10-19 15:37:50 +02:00
jean-emmanuel
a2fcd4fb12 Merge branch 'master' into dynamic-props-edit 2018-10-19 11:11:12 +02:00
jean-emmanuel
2d3b88ed0d osc-listener: code space 2018-10-19 11:10:38 +02:00
jean-emmanuel
b1352c763a editor: check linked props more efficiently and adapt to osc listener fix 2018-10-19 11:10:05 +02:00
jean-emmanuel
38bdfd56ae Merge branch 'master' into dynamic-props-edit 2018-10-19 10:54:12 +02:00
Martin Hermant
fdd95b7dfe fix OSC bug where multiple props on the same widget cannot be updated if they share the same address 2018-10-19 10:50:31 +02:00
jean-emmanuel
5a67d69c4d editor: remove form update (form is always recreated) 2018-10-19 10:43:23 +02:00
jean-emmanuel
04548b98d0 widget: don't trigger resize when only position changes 2018-10-19 10:39:37 +02:00
jean-emmanuel
26693153f2 editor: trigger rebuild if prop/osc listener are found in changeProps (new & old) 2018-10-19 10:34:09 +02:00
jean-emmanuel
59c0ffe55f matrices: dynamic color update for all 2018-10-19 10:17:22 +02:00
jean-emmanuel
38b6785882 clone: subscribe to prop-changed to update inner clone 2018-10-19 10:16:59 +02:00
jean-emmanuel
dd4849cd5b widget: fix dynamic label change 2018-10-19 10:16:42 +02:00
jean-emmanuel
b904713e10 editor: prevent arrow resize/move when not allowed (in strips) 2018-10-19 10:16:06 +02:00
jean-emmanuel
6104326801 editor: let widget update themselves for small edits 2018-10-19 10:15:00 +02:00
jean-emmanuel
2d96a41c42 resolve props: fix json heuristic (missing tab/new-line as valid 1st char) 2018-10-19 09:08:02 +02:00
jean-emmanuel
549591bd96
Merge pull request #392 from jean-emmanuel/clone-refactor-2
Clone refactor 2
2018-10-18 18:39:00 +02:00
jean-emmanuel
7640d066be Merge branch 'master' into clone-refactor-2 2018-10-18 17:30:21 +02:00
jean-emmanuel
4575f4dcbd editor: at last a fix that works to avoid data shifting on editor.undo 2018-10-18 17:01:02 +02:00
jean-emmanuel
19ba701317 clone: avoid resize check when not necessary 2018-10-18 15:13:55 +02:00
jean-emmanuel
10c6452ee4 clone refactor: typo 2018-10-18 13:28:50 +02:00
jean-emmanuel
3cd50c4feb clone refactor: use proper diff to define which properties need to be checked by inner clone 2018-10-18 13:21:59 +02:00
jean-emmanuel
4c34c7d50b clone refactor: missing onremove unbind 2018-10-18 12:46:15 +02:00
jean-emmanuel
5da4c6475b clone refactor: don't destroy clone on target's removal, let clone update itself on target update 2018-10-18 12:35:21 +02:00
jean-emmanuel
73d6cee438 updatewidget: rm unused "remote" option 2018-10-18 11:11:45 +02:00
jean-emmanuel
7d784b6bde editor: only save/restore scroll states at the very beginning and end of editing routines 2018-10-18 11:08:01 +02:00
jean-emmanuel
6c8f1e0bd5 editor: don't save null scroll states 2018-10-18 10:59:09 +02:00
jean-emmanuel
fa9d7eaab0 widget: better regexp for @{} syntax 2018-10-18 10:41:11 +02:00
jean-emmanuel
e7688eeed9 resolve-props: better heuristic (take all possible 1st char into account) 2018-10-18 10:15:12 +02:00
jean-emmanuel
3f59bde022 resolve-props: avoid json parse using simple heuristic (big perf hit in widget init) 2018-10-18 10:02:43 +02:00
jean-emmanuel
7fcdd7f43c editor: fix broken mod+arrowDown by mistake 2018-10-18 08:56:12 +02:00
Martin Hermant
4f2eca81b2
remove explicit ws dependency 2018-10-18 03:15:15 +02:00
Martin Hermant
c8821855ff
add integrated html error and reloading when debuging 2018-10-18 02:34:22 +02:00
jean-emmanuel
28326f2ee0 fader: missing meter removal 2018-10-18 00:36:12 +02:00
jean-emmanuel
9c723d679b log: some missing changes 2018-10-17 23:33:16 +02:00
jean-emmanuel
6bc14d9fa8 scripts: watchify: add error logging 2018-10-17 23:31:07 +02:00
jean-emmanuel
309a864951 editor: better diff patch/unpatch processing 2018-10-17 23:19:03 +02:00
jean-emmanuel
dd8c9d431f editor: adapt sortable children list callback 2018-10-17 23:18:38 +02:00
jean-emmanuel
de665a2a5d editor: mod+arrow: avoid mutatin widget children list 2018-10-17 22:51:13 +02:00
jean-emmanuel
9000f6c5d9
Merge pull request #388 from MartinHN/pr/show-computed-values-in-help
show computed value in help
2018-10-17 18:58:11 +02:00
jean-emmanuel
ca940a1a40 computed value help: pretty print value 2018-10-17 18:56:41 +02:00
jean-emmanuel
6fcbb578d4 Merge commit 'refs/pull/388/head' of github.com:jean-emmanuel/open-stage-control into computed-value 2018-10-17 18:55:51 +02:00
jean-emmanuel
aaabdd7e31 editor: change diffing algo for one that does unpatch well 2018-10-17 18:18:27 +02:00
jean-emmanuel
b4da3bd4d8 editor: fix paste widget 2018-10-17 16:59:08 +02:00
Martin Hermant
d08bfe3f59
Merge branch 'pure' into pr/show-computed-values-in-help 2018-10-17 16:51:37 +02:00
Martin Hermant
ecb66d5991
show computed value in help 2018-10-17 16:48:26 +02:00
jean-emmanuel
ed4216e607 editor: don't reuse if undo fails to find parent 2018-10-17 16:38:25 +02:00
jean-emmanuel
a4fb88ee70 editor: error in sidepanel child remover 2018-10-17 15:51:21 +02:00
jean-emmanuel
a750083b18 editor: avoid data shifting, reset reused children props 2018-10-17 15:34:06 +02:00
jean-emmanuel
a6d449804e editor: avoid mutating widget's children list twice 2018-10-17 14:53:57 +02:00
jean-emmanuel
fb10a5ce17 editor: fix sidepanl add/remove children action 2018-10-17 14:42:10 +02:00
jean-emmanuel
fe72309074 editor: missing widget removal 2018-10-17 14:21:04 +02:00
jean-emmanuel
8b07976f02 editor: don't try to retrieve props from parents when widget is root 2018-10-17 14:11:11 +02:00
jean-emmanuel
c927ee3af5 log: children reuse applies to containers 2018-10-17 14:06:49 +02:00
jean-emmanuel
fdb42aa45b editor: rm old code 2018-10-17 14:05:37 +02:00
jean-emmanuel
a2572821ce matrix: dynamic children update fix 2018-10-17 13:57:07 +02:00
jean-emmanuel
44c9661b02 editor: prevent selecting 1st child when not editable 2018-10-17 13:56:41 +02:00
jean-emmanuel
cf9b3f4a9a editor: fix state save at widget update when reuse is false 2018-10-17 13:56:34 +02:00
jean-emmanuel
45ef50e2ec multifader: reset default unit 2018-10-17 13:24:44 +02:00
jean-emmanuel
e7c025a5ed log: editor perf 2018-10-17 13:16:20 +02:00
jean-emmanuel
8481a44cee editor: reuse children in almost every case 2018-10-17 13:14:24 +02:00
jean-emmanuel
48254a2f18 clone: fix memory leak 2018-10-17 13:13:26 +02:00
jean-emmanuel
33a8ad9665 matrix: prevent "props" from overfeeding widget properties when it dosen't resolve 2018-10-17 13:06:32 +02:00
jean-emmanuel
079e9588bf editor: reuse children when possible 2018-10-16 20:39:01 +02:00
jean-emmanuel
8de0bb90f7 clone: fix regression not applying not-editable to all children 2018-10-16 16:23:35 +02:00
jean-emmanuel
ab0fdb85d9 formula: better regexp (no need to escape object closing brackets) 2018-10-16 12:35:03 +02:00
jean-emmanuel
3907721052 canvas: remove useless dom color request 2018-10-16 11:11:37 +02:00
jean-emmanuel
017ab623f8 events: missing context passing 2018-10-16 10:53:34 +02:00
jean-emmanuel
a394dc6dad events: remove wildcard, use widget's hash as context only when adding/removing events 2018-10-16 10:50:26 +02:00
jean-emmanuel
e0558ae14d
Merge pull request #383 from MartinHN/pr/clone_refactor
WIP : clone refactor
2018-10-16 09:52:16 +02:00
jean-emmanuel
cf71dd43e8
Merge pull request #385 from MartinHN/pr/hot_rebuild
use watchify to reduce re-build times
2018-10-16 09:51:42 +02:00
jean-emmanuel
aa6e19fbb7 scripts: clean build-browser, always set output path from the script 2018-10-16 09:43:15 +02:00
jean-emmanuel
ae6ec886d8 Merge commit 'refs/pull/385/head' of github.com:jean-emmanuel/open-stage-control into watchify 2018-10-16 09:31:15 +02:00
jean-emmanuel
87dc9e98dd maths: add extend(x, y) for merging two objects (#387) 2018-10-15 22:50:19 +02:00
jean-emmanuel
65f9dbb011 doubleTap: make sure callback is called after draginit callbacks (fixes snap sliders doubleTap, #386) 2018-10-15 22:32:31 +02:00
Tintamar
77700e766b
fix infinite loop typo 2018-10-15 13:37:18 +02:00
Martin Hermant
152a2666ad
remove launcher not supported for now 2018-10-15 12:20:15 +02:00
Martin Hermant
94aaa644e2
use watchify to reduce re-build times 2018-10-15 12:12:31 +02:00
jean-emmanuel
6a1193d573 docs: add missing dynamic prop hint to widget reference 2018-10-14 23:40:34 +02:00
jean-emmanuel
0393a12f46 clone: use children list to disable edition instead of querying the DOM 2018-10-14 12:24:02 +02:00
jean-emmanuel
dae40b1e2b clone: fix cloneTarget updates watch 2018-10-14 12:07:30 +02:00
jean-emmanuel
7bbac1af1c clone: adapt to commit 3261eb1ffb 2018-10-14 11:09:31 +02:00
jean-emmanuel
92ffff651e Merge commit 'refs/pull/383/head' of github.com:jean-emmanuel/open-stage-control into clone-refactor 2018-10-14 11:05:30 +02:00
jean-emmanuel
3261eb1ffb widgets: use list of child instances instead of hashes; let 'widget-removed' traverse the widget structure 2018-10-14 11:01:42 +02:00
jean-emmanuel
d9d581454c clone: remove unnecessary clean on deletion 2018-10-13 16:50:32 +02:00
jean-emmanuel
b1d83da451 clone: don't reset auto ids (maybe to be added as an option) 2018-10-13 16:49:53 +02:00
Martin Hermant
dc7aa202e6
add auto detection of id created automatically to allow to have different id when cloning (can be done via dynamic props too ) 2018-10-11 14:38:54 +02:00
Martin Hermant
b0f981ffac
better syntax and comments 2018-10-11 14:36:10 +02:00
Martin Hermant
aafa457718
clone : reset parser call to original api 2018-10-11 10:09:05 +02:00
Martin Hermant
4d49f96272
remove circular dependencies, and undefined behaviors 2018-10-11 09:24:16 +02:00
jean-emmanuel
3a64a81fa4 doc: phrasing 2018-10-11 06:57:58 +02:00
jean-emmanuel
38f952d376 log: editor kbd changes 2018-10-11 06:49:35 +02:00
jean-emmanuel
1d7f8b00a1 editor: prevent right-click from changing selection when shift or mod is pressed 2018-10-11 06:45:59 +02:00
jean-emmanuel
08f4ebefab editor: prevent dragging mod + right click 2018-10-11 06:31:28 +02:00
jean-emmanuel
c28c419131 editor: disable lasso on right click 2018-10-11 06:26:36 +02:00
jean-emmanuel
05a3708616 doc: update editor shortcuts 2018-10-11 06:26:21 +02:00
jean-emmanuel
d69994e15a editor: attempt to get a consistent key scheme 2018-10-10 23:41:16 +02:00
jean-emmanuel
af98cd5452 editor: add missing select-area module 2018-10-10 23:21:43 +02:00
jean-emmanuel
1db58c00ec editor: rewrite select lasso without jquery-ui to get decent perfs 2018-10-10 22:42:27 +02:00
jean-emmanuel
cb69fb6944 log: mention mod key for lasso 2018-10-10 19:23:37 +02:00
jean-emmanuel
4aa7524efa editor: fix some errors and conflicts 2018-10-10 19:18:13 +02:00
jean-emmanuel
ec37bb8e00 editor: enable lasso when mod is pressed 2018-10-10 18:56:18 +02:00
jean-emmanuel
9c421e2f47 editor: disable lasso for now 2018-10-10 18:40:34 +02:00
jean-emmanuel
e0d4146af8 editor: keyboard shortcut mod + a for selecting all siblings 2018-10-10 18:15:11 +02:00
jean-emmanuel
43836be5ff editor: add lasso selection (WIP) 2018-10-10 17:54:32 +02:00
jean-emmanuel
8ebccdf10c ui: avoid jquery weird bug with preventDefault 2018-10-10 17:43:10 +02:00
jean-emmanuel
c2dbf9ada7 editor: fix samelevel select check 2018-10-10 16:41:31 +02:00
jean-emmanuel
9c01a6d86b editor: resolve widget level automatically when attempting to select multiple widgets 2018-10-10 15:59:18 +02:00
jean-emmanuel
fef50c6bbd docs: editor select nav shortcuts (#382) 2018-10-10 15:56:17 +02:00
jean-emmanuel
3328332957 editor: remove attempt to add multi select to keyboard navigation 2018-10-10 15:47:17 +02:00
jean-emmanuel
89876f8c82 lint: editor pr #382 2018-10-10 15:31:47 +02:00
jean-emmanuel
0d46974534
Merge pull request #382 from MartinHN/pr/editor-traversing-shortcuts
WIP  : editor traversing shortcuts
2018-10-10 15:21:06 +02:00
jean-emmanuel
3b376de6b7
pr/editor-traversing-shortcuts: fix widget check 2018-10-10 15:16:15 +02:00
jean-emmanuel
ebe7b48ada
pr/editor-traversing-shortcuts: check if widgets still exist 2018-10-10 15:08:38 +02:00
Martin Hermant
f65b88fc89
remove old comment 2018-10-10 14:44:16 +02:00
Martin Hermant
2f342caf5b
much simpler implementation using hashes 2018-10-10 14:40:55 +02:00
Martin Hermant
25adc7cdb1
clean syntax 2018-10-10 14:07:57 +02:00
Martin Hermant
32aef5a795
add basic mod + arrow to quickly navigate between widgets in edit mode
mod + up/down => edit parent / child
mod + left / right => edit siblings
2018-10-10 13:55:25 +02:00
Martin Hermant
9b017657da
Merge branch 'pure' 2018-10-10 13:54:34 +02:00
jean-emmanuel
2db95bb764 lint: clean 2018-10-10 10:37:15 +02:00
jean-emmanuel
26284797d7 editor: use "this" instead of "editor" 2018-10-10 10:32:38 +02:00
jean-emmanuel
62de9b50d4 docs/log: editor kbd shortcuts updates 2018-10-10 10:29:17 +02:00
jean-emmanuel
37d22887cc
Merge pull request #380 from MartinHN/pr/osx_delete_shortcut
editor: add osx backspace shortcut for deleting widgets
2018-10-10 10:23:26 +02:00
jean-emmanuel
e141a867b1
Merge pull request #381 from MartinHN/pr/shortcut_toggle_editor
editor : add mod + e to toggle editor
2018-10-10 10:23:11 +02:00
jean-emmanuel
fd9b6441c8
MartinHN:pr/osx_delete_shortcut: set backspace only in Mac env 2018-10-10 10:21:39 +02:00
jean-emmanuel
d897077563
MartinHN:pr/shortcut_toggle_editor: unify code style
Use "this" and this.enabled instead of ENABLED that might get removed someday
2018-10-10 10:14:48 +02:00
Martin Hermant
a24fa9415f
Merge branch 'pr/shortcut_toggle_editor' 2018-10-10 08:56:48 +02:00
Martin Hermant
ea1cc56059
add mod + e to toggle editor 2018-10-10 08:50:44 +02:00
Martin Hermant
523dda3903
add osx backspace shortcut for deleting widgets 2018-10-10 08:32:32 +02:00
jean-emmanuel
aee15544e7 slider: fix value update draw for inverted ranges 2018-10-09 17:00:35 +02:00
jean-emmanuel
3355093375 log: last fix 2018-10-09 11:56:02 +02:00
jean-emmanuel
c609a66bd2 props inheritance: ignore clone wrapper in @parent stack (#379) 2018-10-09 11:40:08 +02:00
jean-emmanuel
5dd4fb0651 clone: remove precision prop (typo) 2018-10-09 11:39:34 +02:00
jean-emmanuel
70b8b4bb22 editor: add tooltip hint for help popup (#372) 2018-10-09 11:28:04 +02:00
jean-emmanuel
eb82df3fff editor: adjust disabled props hint 2018-10-09 11:27:52 +02:00
jean-emmanuel
e20d2ecbdc editor: prevent ctrl + s default 2018-10-09 10:45:42 +02:00
jean-emmanuel
e631edefb4 package: fix deps 2018-10-08 23:52:17 +02:00
jean-emmanuel
2a9eb2584e editor: added keyboard shortcut mod + s for saving the session (#373) 2018-10-08 22:52:30 +02:00
jean-emmanuel
66a27914c0 editor: added keyboard shortcut F2 for editing the label quickly (#377) 2018-10-08 22:41:02 +02:00
jean-emmanuel
4a7182404c editor: increase disabled props hint visibility 2018-10-08 22:25:46 +02:00
jean-emmanuel
c2123d34e1 editor: allow folding props categories (#378) 2018-10-08 22:25:20 +02:00
jean-emmanuel
cabac1143b editor: remove widget deletion confirmation popup 2018-10-08 19:50:26 +02:00
jean-emmanuel
ae13823a85 package: update deps 2018-10-08 19:44:06 +02:00
jean-emmanuel
e01e7741b4 package: 0.37.4 2018-10-06 09:25:12 +02:00
jean-emmanuel
deff4cc011 osc receivers: (OSC{}) not working in non-dynamic properties (#369) 2018-10-06 09:23:56 +02:00
jean-emmanuel
d30b5d51fa Merge branch 'local-dev' 2018-10-04 07:39:23 +02:00
jean-emmanuel
5b46e051bc remote-control: add /GET/# for transparent replies (#367) 2018-10-04 07:19:03 +02:00
bordun
4660ac3f78 package: 0.37.3 2018-09-20 18:17:33 +02:00
bordun
567f46e09a gyro: trigger osc on data updates 2018-09-20 18:17:00 +02:00
bordun
db90e56e0b log: typo 2018-09-05 16:25:07 +02:00
bordun
fec165597f package: 0.37.2 2018-09-05 15:32:48 +02:00
bordun
7d49e835de osc: fix empty preArg adding an empty string arg (#360) 2018-09-05 15:32:24 +02:00
jean-emmanuel
d094c80f52 popup: fix closing when clicking on the closer icon 2018-09-04 21:16:06 +02:00
jean-emmanuel
9c8a741051 log: locales updates 2018-09-04 09:38:03 +02:00
jean-emmanuel
2b57e56d32 locales: add ru (#302) 2018-09-04 09:35:12 +02:00
jean-emmanuel
e5a35879c0
Merge pull request #357 from trebmuh/patch-1
Update fr.js
2018-09-03 18:10:35 +02:00
Olivier Humbert
06117e195e
Update fr.js 2018-09-03 15:42:15 +02:00
jean-emmanuel
580154791f package: 0.37.0 2018-09-03 15:23:35 +02:00
jean-emmanuel
3789b3995a script: write better js 2018-09-01 16:17:34 +02:00
jean-emmanuel
d21a217107 scripts: fix browser shim 2018-09-01 16:15:13 +02:00
jean-emmanuel
135198ff18 props/docs: fix some props and tweak help formatting 2018-09-01 16:10:57 +02:00
jean-emmanuel
6c9016d491 text: restore color property (#356) 2018-09-01 14:41:13 +02:00
jean-emmanuel
c2fab01853 ios: bypass all mouse event handlers to avoid duplicates 2018-09-01 10:23:59 +02:00
jean-emmanuel
a44b6f969d touch: revert prevenDefault 2018-09-01 10:00:55 +02:00
jean-emmanuel
9d0eb4db8b ios: prevent touchstart in fast-click instead 2018-09-01 09:56:18 +02:00
jean-emmanuel
0b4e8cde89 ios: still trying to kill overscroll 2018-09-01 09:38:08 +02:00
jean-emmanuel
ac9dd771b3 ios: always preventDefault on touchstart to avoid emulated mousedown (#356) 2018-09-01 09:36:45 +02:00
jean-emmanuel
00cbce9fff drag: prevent double draginit on touch devices 2018-09-01 08:41:04 +02:00
jean-emmanuel
cbe43d38ec doubleTap: ignore if captured by editor for selection 2018-09-01 08:40:26 +02:00
jean-emmanuel
72236a8426 misc: use Date.now() instead of "new Date().getTime()" 2018-09-01 08:17:23 +02:00
jean-emmanuel
42a1390170 doubletap: don't check pointerId (always different on ios, and checking position should be enough) (#356) 2018-09-01 01:53:35 +02:00
jean-emmanuel
13f2133c6a docs: missing items in widgets ref 2018-08-31 14:26:31 +02:00
jean-emmanuel
ec9c8a3e21 docs: missing string in "target" 2018-08-31 13:49:33 +02:00
jean-emmanuel
fe69ad8d33 editor: optimize bad dom loop 2018-08-31 12:51:12 +02:00
jean-emmanuel
750ffbad0b docs: update TOC 2018-08-31 11:21:05 +02:00
jean-emmanuel
6776d8626d package: typo & 2018-08-31 11:20:07 +02:00
jean-emmanuel
a682d9f9c0 package: typo 2018-08-31 11:19:14 +02:00
jean-emmanuel
65d67d399f scripts: rename file 2018-08-31 11:17:56 +02:00
jean-emmanuel
6a1ff68f33 docs/log: math timestamp 2018-08-31 11:16:40 +02:00
jean-emmanuel
5719823239 maths: add timestamp function (#354) 2018-08-31 11:09:01 +02:00
jean-emmanuel
0db592aa29 docs: small style fix 2018-08-30 22:18:45 +02:00
jean-emmanuel
6f00809ba6 docs: more permalinks 2018-08-30 22:16:04 +02:00
jean-emmanuel
6782ef07c2 docs: looks good 2018-08-30 22:08:18 +02:00
jean-emmanuel
e1594b8cd4 docs: add sub-thead in widget reference table 2018-08-30 21:51:12 +02:00
jean-emmanuel
8db84da322 editor: pixel perfect label 2018-08-30 20:23:02 +02:00
jean-emmanuel
8d0f8080dd docs: more formatting 2018-08-30 20:19:05 +02:00
jean-emmanuel
9a9af0e854 docs: better table formatting 2018-08-30 19:18:34 +02:00
jean-emmanuel
020c3925bc package: add widget-reference build script 2018-08-30 18:35:30 +02:00
jean-emmanuel
0c535a97a6 docs: preparing one page widget reference 2018-08-30 18:25:10 +02:00
jean-emmanuel
0be2e13ccc package: update deps 2 2018-08-30 18:24:55 +02:00
jean-emmanuel
7b69c42bf2 package: update deps 2018-08-30 18:24:49 +02:00
jean-emmanuel
4a4b3d8a5b docs: prevent uppercase on props help popup 2018-08-30 16:38:18 +02:00
jean-emmanuel
8b42b66a79 editor: restore widget list delete button css 2018-08-30 16:33:11 +02:00
jean-emmanuel
382d0c26c4 docs: typo 2018-08-30 16:31:45 +02:00
jean-emmanuel
cca3747346 popups: better close handlers 2018-08-30 16:30:30 +02:00
jean-emmanuel
30b9cf8525 editor: help btn/label style 2018-08-30 16:25:22 +02:00
jean-emmanuel
827ec01515 editor: continue embed doc 2018-08-30 14:59:40 +02:00
jean-emmanuel
5baf03d99f formula: undelete for compat 2018-08-30 14:37:01 +02:00
jean-emmanuel
d43c8e90e1 editor: embed prop docs 2018-08-30 14:32:39 +02:00
jean-emmanuel
3bdd4c04c6 knob: missing prop rewrite 2018-08-30 14:19:44 +02:00
jean-emmanuel
8eca3d8554 prop inheritance: prevent root from reaching widgetManager (breaks it!) 2018-08-30 12:37:40 +02:00
jean-emmanuel
23228b8806 refactoring: continue prop defaults refactor 2018-08-30 12:36:34 +02:00
jean-emmanuel
a56fea33bf refactor: widget props ok 2018-08-30 11:26:06 +02:00
jean-emmanuel
4aa3dfa80e refactoring: plots ok 2018-08-30 10:13:57 +02:00
bordun
1a644bae79 refactoring: continue props rewrite 2018-08-30 09:22:45 +02:00
bordun
1973bc9172 osc receivers: trigger update even when receiving the same value 2018-08-30 09:07:26 +02:00
bordun
cbbf3e2a32 refactoring: widget defaults with docs inside 2018-08-29 23:46:36 +02:00
bordun
618b26abd8 editor: prevent actions on empty selection 2018-08-29 12:56:11 +02:00
bordun
67a9a84512 editor: prevent multiple delete popup 2018-08-29 12:46:41 +02:00
bordun
ad1a45468d gyro: change icon 2018-08-29 11:35:12 +02:00
bordun
104d444513 package: fix minification problems 2018-08-29 09:50:49 +02:00
bordun
37ce27bf05 editor: prevent keybindings in grid width input 2018-08-29 09:42:43 +02:00
bordun
7a0748355f plots: add frame widget 2018-08-28 17:29:56 +02:00
bordun
b5e7cef445 lint: no "!!" 2018-08-28 17:21:19 +02:00
bordun
0c9c86d81b locale: better arg parse 2018-08-28 17:19:54 +02:00
bordun
a345114fbd ios: pulltorefresh: never prevent 1st move on draggable widgets 2018-08-28 14:15:42 +02:00
bordun
027e190922 locales: missing strings (editor delete prompt) 2018-08-28 13:57:47 +02:00
bordun
c640b0e8cd locales: missing string 2018-08-28 13:51:14 +02:00
bordun
32a5c7af71 locale: add "debug" to show all localized strings 2018-08-28 13:47:37 +02:00
bordun
d57ec8eee1 lang: no need to shim navigator.language 2018-08-28 13:45:52 +02:00
bordun
eac1f1fc8e log: ios overscroll 2018-08-28 13:44:36 +02:00
bordun
01c869ffb9 ios: import typo 2018-08-28 13:38:22 +02:00
bordun
3b639147e6 mobile: prevent overscroll and pull-to-refresh (#235) 2018-08-28 13:37:06 +02:00
bordun
21230035ca editor: prevent selecting root when opening the sidepanel 2018-08-28 12:06:06 +02:00
jean-emmanuel
00206b4aaf locales: some improvements 2018-08-27 17:24:30 +02:00
jean-emmanuel
2d278f1cf5 locales: fr 2018-08-27 17:16:18 +02:00
jean-emmanuel
a9278068cd locales: non generic on/off strings 2018-08-27 17:15:09 +02:00
jean-emmanuel
7a6952fdd4 locales: fix some errors 2018-08-27 15:44:32 +02:00
jean-emmanuel
d8a9fb4957 log: last changes 2018-08-27 15:12:36 +02:00
jean-emmanuel
be1b45c4e3 lint: yep 2018-08-27 15:12:05 +02:00
jean-emmanuel
51f74c1a6c locales: add to url-options docs, force lowercase 2018-08-27 15:04:15 +02:00
jean-emmanuel
06ab962a77 locales: use <em> instead of <text> for missing bits 2018-08-27 14:57:36 +02:00
jean-emmanuel
a9643c06ec localization: implement locales and add "en" (#302) 2018-08-27 14:52:26 +02:00
jean-emmanuel
00038faec0 gyro: comma typo 2018-08-26 20:21:56 +02:00
jean-emmanuel
e9e8d572ee widgets: gyroscope widget 1st draft 2018-08-26 20:16:08 +02:00
jean-emmanuel
711ee53a0f lint: useless import 2018-08-26 19:14:44 +02:00
jean-emmanuel
a7771a1e05 deepCopy: fix import 2018-08-26 19:01:31 +02:00
jean-emmanuel
9e62b92e13 ipc: remove useless stringify 2018-08-26 19:01:08 +02:00
jean-emmanuel
9eae6e3c91 main: use deepCopy instead of JSON trick 2018-08-26 18:57:46 +02:00
jean-emmanuel
769b332436 widget: optimize prop comparison function 2018-08-26 11:41:46 +02:00
jean-emmanuel
0f9e694cb1 editor: missing deepCopy usage 2018-08-26 11:41:16 +02:00
jean-emmanuel
f6ba50417c doc: wrong key 2018-08-25 17:14:12 +02:00
jean-emmanuel
09ac173aab package: 0.36 2018-08-25 13:23:32 +02:00
jean-emmanuel
d3043c719f log: last changes 2018-08-25 13:20:33 +02:00
jean-emmanuel
9986219e74 visualizer: use global canvas framerate to make things smoother by default 2018-08-25 13:09:32 +02:00
jean-emmanuel
92c63672e5 plots: normalize a few things and fix visualizer's value sync (#352) 2018-08-25 13:05:19 +02:00
jean-emmanuel
5cb7131fe2 editor: fix ctrl shit v 2018-08-24 14:34:01 +02:00
jean-emmanuel
985285e2f0 lint: minor fix 2018-08-24 13:54:25 +02:00
jean-emmanuel
9f1c78db57 keybindings: more generic combo prevention in ui inputs 2018-08-24 13:52:23 +02:00
jean-emmanuel
f85a3c5e74 examples: fix keys.json 2018-08-24 12:37:54 +02:00
jean-emmanuel
f2a1104f17 deepCopy: missing file 2018-08-24 08:05:06 +02:00
jean-emmanuel
6f325b08ee deepCopy: modularize and use everywhere 2018-08-23 21:06:27 +02:00
jean-emmanuel
e04605c251 editor: make ctrl + v use mouse position 2018-08-23 20:38:15 +02:00
jean-emmanuel
32504cea66 editor: multiwidget edit field undo/redo fix 2018-08-23 19:37:46 +02:00
bordun
9e2ba9d714 log: .36 is next, not .37 2018-08-23 15:35:27 +02:00
bordun
708f261d75 editor: fix redo operations order 2018-08-23 15:26:45 +02:00
bordun
dd3726c3bf editor: undo/redo: compute path intersection to make sure all widgets are updated 2018-08-23 15:15:35 +02:00
bordun
71dc1752a9 editor: fix redo shortcut 2018-08-23 14:47:16 +02:00
bordun
4cb7fda6aa lint: fix some errors 2018-08-23 14:38:25 +02:00
bordun
b75114100c editor: add undo/redo 🎉 2018-08-23 14:31:23 +02:00
bordun
8dfa652eb5 parser: prevent address props to be created when it shouldn't 2018-08-23 13:57:18 +02:00
bordun
9192f49c9a editor: add keyboard bindings (copy, cut, paste, paste n+1, move, resize) (#186) 2018-08-22 18:03:15 +02:00
jean-emmanuel
2ca256b7c9 log: typoz 2018-08-07 20:37:16 +02:00
jean-emmanuel
5ef5bcc673 keys: breaking changes for the greater good 2018-08-07 20:35:12 +02:00
jean-emmanuel
8d1794de76 linkId: fix multi linkId event chains; fix linkId sync not triggering prop updates 2018-08-07 20:26:15 +02:00
jean-emmanuel
0b513aecee package: 0.35 2018-08-07 10:57:26 +02:00
jean-emmanuel
8e590c55c1 script: add an icon as content 2018-08-07 10:54:07 +02:00
jean-emmanuel
74ab465150 script: add condition prop 2018-08-07 10:52:19 +02:00
jean-emmanuel
9502ac4dc3 docs: remove old arg 2018-08-06 10:12:28 +02:00
jean-emmanuel
751a39cdbf script: pass options to set() to send/sync only when it should, bypass send() when options.send is false 2018-08-06 10:01:25 +02:00
jean-emmanuel
204130c7a9 session: reduce indentation to 2 spaces (#350) 2018-08-05 13:38:26 +02:00
jean-emmanuel
f5d838f173 cli/state: log error 2018-08-04 17:11:46 +02:00
jean-emmanuel
41dee25781 settings: add "--state" (#349) 2018-08-04 17:07:52 +02:00
jean-emmanuel
5b0588568a state: loading a state file doesn't replace the quick save slot anymore 2018-08-04 16:42:52 +02:00
jean-emmanuel
2facf0b1d9 state: rename state prop to quickState 2018-08-04 16:38:27 +02:00
jean-emmanuel
cbd5833c8e script: add optionnal send arg in scriptSend to prevent osc sending 2018-08-04 15:19:36 +02:00
jean-emmanuel
1e459ecc31 script: typo in set() 2018-08-04 12:52:15 +02:00
jean-emmanuel
596217e6e0 widgets: script proto (#340) 2018-08-04 12:43:57 +02:00
jean-emmanuel
45030a47b5 package: 0.34.4 2018-08-03 17:10:21 +02:00
jean-emmanuel
332a428fc7 node: fix Bufer deprecation (node 10.1) (#348) 2018-08-02 17:55:58 +02:00
jean-emmanuel
063d859e58 lint: illegal whitespaces 2018-08-01 18:43:19 +02:00
jean-emmanuel
85aa861fd2 switcher: update linked widgets' osc properties before sending if they depend on the switcher's value (#344) 2018-08-01 18:35:31 +02:00
jean-emmanuel
d0c539b283 log: strip osc fix 2018-08-01 12:59:56 +02:00
jean-emmanuel
136faa1f68 strip: missing osc properties (address and preArgs) for remote control (#345) 2018-08-01 09:23:03 +02:00
jean-emmanuel
68bea95944 widgets: dynamic address when split is true (#344) 2018-07-31 18:45:36 +02:00
jean-emmanuel
28d2a87461 package: 0.34.3 2018-07-30 22:35:25 +02:00
jean-emmanuel
64dde8abf3 launcher: regression breaking the port option (#341) 2018-07-30 22:35:02 +02:00
jean-emmanuel
bff088d135 launcher: oups missing comas< 2018-07-29 21:17:54 +02:00
jean-emmanuel
7f159adac2 packag: 0.34.2 2018-07-29 20:59:11 +02:00
jean-emmanuel
2fde0d4412 launcher: regression preventing options to be applied (#343) 2018-07-28 11:59:09 +02:00
jean-emmanuel
3ff2afce33 matrices: fix spacing in strips with spacing 2018-07-26 16:55:43 +02:00
jean-emmanuel
53710dfada ipc/osc: fix module loading order 2018-07-26 15:07:44 +02:00
jean-emmanuel
c6411d443e settings: human readable code 2018-07-26 15:01:18 +02:00
jean-emmanuel
49e2545279 docs: add missing settings.read 2018-07-26 14:53:19 +02:00
jean-emmanuel
d9d663eaf5 docs: +update from sources 2018-07-26 10:39:48 +02:00
jean-emmanuel
f68d2615d5 package: 0.34.0 2018-07-26 10:33:22 +02:00
jean-emmanuel
d762d71b61 package: update deps 2018-07-26 10:30:10 +02:00
jean-emmanuel
d10d1e4cd2 uuid: fix id generation 2018-07-26 10:29:55 +02:00
jean-emmanuel
23669c859e uuid: replace shortid lib with nanoid 2018-07-25 22:14:47 +02:00
jean-emmanuel
999309dd8e packaging: add a build task for rpi with compatible electron (#336) 2018-07-25 19:40:49 +02:00
jean-emmanuel
7170249f99 package: next will be 0.34 2018-07-25 19:07:15 +02:00
jean-emmanuel
6f94927f80 formula: deprecated: remove from the editor 2018-07-25 19:01:59 +02:00
jean-emmanuel
90caaa6d44 log: custom module app 2018-07-25 18:53:03 +02:00
jean-emmanuel
23551c53ee custom module: expose app, an event listener for monitoring events (see callbacks.js) (#341) 2018-07-25 18:23:27 +02:00
jean-emmanuel
556892f941 widgets: prevent non-dynamic properties updates from breaking an osc sending event chain (#342) 2018-07-25 11:59:17 +02:00
jean-emmanuel
fc1c72fb58 log: switch object value fix 2018-07-22 11:36:24 +02:00
jean-emmanuel
fb3febc4d1 switch: display object-values properly when showValues is set to true (#338) 2018-07-22 11:33:16 +02:00
jean-emmanuel
db791b6458 package: 0.33.3 2018-07-21 19:34:35 +02:00
jean-emmanuel
999ab6e6b8 docs: mention switch workaround for values order with numeric keys (#330) 2018-07-21 09:12:59 +02:00
jean-emmanuel
fd73cb2f68 multixy: fix drawing glitch with some letters in points' labels (e.g. "j") 2018-07-19 16:34:59 +02:00
jean-emmanuel
9e855d1858 log: clone matrix fix 2018-07-19 16:04:16 +02:00
jean-emmanuel
ea5b033d04 lint: bad white space and var redeclare 2018-07-19 11:05:34 +02:00
jean-emmanuel
71289f52e3 panel: autopurge childrenHashes list 2018-07-19 11:00:55 +02:00
jean-emmanuel
8bbcec7768 matrix: autopurge childrenHashes list 2018-07-19 11:00:42 +02:00
jean-emmanuel
2505cd8cae dynamic props: only fire props-changed event when the widget is not recreated 2018-07-19 10:43:07 +02:00
jean-emmanuel
43eb92f2bf docs: theming;, scss / autoreload 2018-07-17 19:32:12 +02:00
jean-emmanuel
28d151b0dc package: 0.33.2 2018-07-09 14:17:35 +02:00
jean-emmanuel
4844b35ee0 log: missing changes 2018-07-07 16:44:14 +02:00
jean-emmanuel
8fb056d657 formula: add object keys() and values() functions (#327) 2018-07-07 13:37:44 +02:00
jean-emmanuel
674dc6434e matrix: fix label border 2018-07-06 12:51:15 +02:00
jean-emmanuel
d7ae81652d docs: url typo 2018-07-05 11:50:35 +02:00
jean-emmanuel
4a5a01b64b matrix: set initial value at widget's creation 2018-07-04 16:38:22 +02:00
jean-emmanuel
a950c7c83a docs: add svg exemple session 2018-07-04 16:24:12 +02:00
jean-emmanuel
4ab6ec36f1 examples: add svg example (#323) 2018-07-04 16:21:46 +02:00
jean-emmanuel
c9f1e40bc2 docs: add manaberry's ui 2018-07-04 16:07:50 +02:00
jean-emmanuel
802d44d6a3 docs: update qlab examples 2018-07-04 16:03:05 +02:00
jean-emmanuel
0a25e21c29 docs: mention matrices value behaviour 2018-07-04 15:59:05 +02:00
jean-emmanuel
4d4b301e8d deps: fix import 2018-07-04 10:34:27 +02:00
jean-emmanuel
82920829e2 package: 0.33.1 2018-07-04 10:22:28 +02:00
jean-emmanuel
64f0cfa0f0 package: some deps updates 2018-07-04 10:22:06 +02:00
jean-emmanuel
18cba88bad widgets: remove unnused properties to avoid having hidden properties laying around when the type changes (especially dangerous when those properties where linked to other widgets) 2018-07-04 10:15:26 +02:00
jean-emmanuel
61e0654f88 docs: link themes in option list and add flat ext 2018-07-02 17:25:51 +02:00
jean-emmanuel
caf964b6ad package: 0.33.0 2018-07-02 13:09:41 +02:00
jean-emmanuel
3e661d3f4e dynamic props: we still to prevent recreation when update comes from self value change 2018-07-01 13:21:57 +02:00
jean-emmanuel
3a6d473458 dynamic props: generic fix for circular prop update 2018-07-01 10:51:50 +02:00
jean-emmanuel
00d76db844 matrix: add borders option 2018-06-29 08:33:22 +02:00
jean-emmanuel
ed683509d4 matrix: missing i -> $ renaming (#320) 2018-06-29 00:20:14 +02:00
jean-emmanuel
4728599406 docs: rm extra dot 2018-06-28 13:36:36 +02:00
jean-emmanuel
f9139f675c log: phrasing 2018-06-28 13:34:49 +02:00
jean-emmanuel
0015b2fc22 matrix: use "$" instead of "i" to represent the index (#320) 2018-06-28 13:10:50 +02:00
jean-emmanuel
75d0e99aa5 osc-receiver: allow non string values 2018-06-28 13:09:52 +02:00
jean-emmanuel
96d751849d osc-receivers: fix events not registered properly -> memory leak 2018-06-28 12:24:11 +02:00
jean-emmanuel
4cb8f0db3a matrix: correct props 2018-06-28 11:16:03 +02:00
jean-emmanuel
48ed268968 matrix: refine widget recreation process on props update 2018-06-28 10:29:00 +02:00
jean-emmanuel
852deded5c lint: remove bad white space 2018-06-28 10:03:26 +02:00
jean-emmanuel
753f441733 fader: restore right-click focusing the input in compact mode (mouse only) (#321) 2018-06-28 09:47:21 +02:00
jean-emmanuel
b3e8839ee3 log: matrix 2018-06-28 09:10:57 +02:00
jean-emmanuel
c28165d282 docs: matrix 2018-06-28 09:10:45 +02:00
jean-emmanuel
e1195a123c matrices: add generic matrix widget (#320) 2018-06-28 08:59:11 +02:00
jean-emmanuel
efbfa4aa33 docs: jack midi compilation 2018-06-28 08:58:18 +02:00
jean-emmanuel
18762efc66 git: ignore package lock 2018-06-28 08:57:56 +02:00
jean-emmanuel
55b98fd621 example: ardour swag update 2018-06-21 22:11:35 +02:00
jean-emmanuel
0b7c4ae4e5 package: 0.32.6 2018-06-21 10:07:26 +02:00
jean-emmanuel
398fabff75 theme: light: reduce glass opacity 2018-06-21 10:06:59 +02:00
jean-emmanuel
0bcfda04d7 log: last changes 2018-06-21 10:02:30 +02:00
jean-emmanuel
6e7a673f5a style: multiple buttons style fixes 2018-06-21 09:53:36 +02:00
jean-emmanuel
0abff3741c style: fix border-radius inheritance regression 2018-06-21 09:33:38 +02:00
jean-emmanuel
d61c9ef506 theme: flat toggle border fix 2018-06-20 19:39:10 +02:00
jean-emmanuel
98c05d4e01 package: 0.32.5 2018-06-20 17:19:02 +02:00
jean-emmanuel
9f62e1c351 theme: flat tweaks 2018-06-20 17:18:31 +02:00
jean-emmanuel
06ebc7b48a theme: dark theme improvement 2018-06-20 17:14:20 +02:00
jean-emmanuel
2a7100f655 scss: clean 2018-06-20 17:14:08 +02:00
jean-emmanuel
9ebc452cab theme: add flat mod 2018-06-20 17:13:33 +02:00
jean-emmanuel
fd7f562d30 theme: alt-buttons: better push active state 2018-06-20 16:53:39 +02:00
jean-emmanuel
4f086eb63f push: add active class to container element 2018-06-20 16:53:21 +02:00
jean-emmanuel
ae7fce5b06 osc: add missing feedback support for widgets with typed preArgs (#314) 2018-06-09 09:18:43 +02:00
jean-emmanuel
c8cd691c75 package: patched 0.32.4 2018-06-08 21:45:13 +02:00
jean-emmanuel
ad6e6017b9 osc: fix missing this before method call (#313) 2018-06-08 21:27:52 +02:00
jean-emmanuel
dbe62994d0 package: 0.32.3 2018-06-06 10:18:49 +02:00
jean-emmanuel
f9df9519ed log: fix editor regression (#308) 2018-06-06 10:17:57 +02:00
jean-emmanuel
88a97318f7 editor: remove undeclared var assignement (#308) 2018-06-04 07:15:52 +02:00
jean-emmanuel
b47536d2e0 lint: some more 2018-06-01 16:31:25 +02:00
jean-emmanuel
e2d12b99e5 package: 0.32.2 2018-06-01 12:10:38 +02:00
jean-emmanuel
87091bfb00 log: ios slider color fix 2018-06-01 12:09:39 +02:00
jean-emmanuel
c9250a2906 lint; server code lint 2018-06-01 12:02:04 +02:00
jean-emmanuel
08dcb99b2e sliders: attempt to fix #305 2018-06-01 11:42:22 +02:00
jean-emmanuel
bef49d8f12 lint: fix some errors 2018-06-01 11:26:55 +02:00
jean-emmanuel
faa9083c36 readme: img tag 2018-06-01 11:02:53 +02:00
jean-emmanuel
59945f76b6 readme: img url 2018-06-01 11:01:34 +02:00
jean-emmanuel
9e6fa15d20 docs: update credits blocks 2018-06-01 11:00:35 +02:00
jean-emmanuel
fa9b92397f lint: add eslint config files and clean all the mess 2018-06-01 10:56:49 +02:00
jean-emmanuel
98f7e9fe2f examples: update ardour 2018-05-31 12:40:07 +02:00
jean-emmanuel
bcccf7e2b5 editor: reallow editing disabled properties 2018-05-31 12:22:06 +02:00
jean-emmanuel
9c00b50321 xy: draw the 2 circles closer to each other 2018-05-31 12:10:24 +02:00
jean-emmanuel
cba1416533 package: 0.32.1 2018-05-31 10:09:27 +02:00
jean-emmanuel
c313bc7e11 osc props: fix wrong isArray call (https://github.com/git-moss/DrivenByMoss/issues/70) 2018-05-31 10:06:43 +02:00
jean-emmanuel
442846a0f7 package: stable 0.32 2018-05-31 08:59:50 +02:00
jean-emmanuel
7d1cd33e7a tcp: log connection updates 2018-05-31 08:58:57 +02:00
jean-emmanuel
1d4be2fed9 doc: typo 2018-05-28 11:52:30 +02:00
jean-emmanuel
dff55492d3 custom module: output init error to stderr 2018-05-25 13:45:03 +02:00
jean-emmanuel
195f266c56 udp: error logging in udp module 2018-05-25 13:43:07 +02:00
jean-emmanuel
02a730f82f zeroconf: publish tcp 2018-05-25 13:42:42 +02:00
jean-emmanuel
2163f19198 osc: better init task 2018-05-25 13:42:25 +02:00
jean-emmanuel
0119298480 tcp: better client storing 2018-05-25 13:42:04 +02:00
jean-emmanuel
b6e14b3ed5 engine: downgrade electron to prevent some regressions< 2018-05-25 10:16:44 +02:00
jean-emmanuel
eaa1a233f5 log: typo 2018-05-25 10:08:05 +02:00
jean-emmanuel
d46e46f4c9 log: electron update 2018-05-25 10:07:39 +02:00
jean-emmanuel
259e84b757 package: 0.32.0-beta.0 2018-05-25 09:39:08 +02:00
jean-emmanuel
b151acf98f osc: implement tcp support (#298) 2018-05-25 09:38:53 +02:00
jean-emmanuel
cc520c72ea package: remove unused dep (#297) 2018-05-17 21:12:06 +02:00
jean-emmanuel
b8b3a945bc docs: update slider docs 2018-05-17 14:59:49 +02:00
jean-emmanuel
6c0497f1a1 package: 0.31.0 2018-05-17 14:55:22 +02:00
jean-emmanuel
edb7da45c5 fader/knob/pad: right-click / long tap doesn't give focus to the input anymore (#293) 2018-05-17 14:51:20 +02:00
jean-emmanuel
d92cf4cbbd drag: force inertia = 1 for multitouch widgets (#292) 2018-05-17 14:35:42 +02:00
jean-emmanuel
908bda5a81 drag: pass event.multitouch to each touchevent (#292) 2018-05-17 12:27:54 +02:00
jean-emmanuel
faa487c7af examples: ardour update 2018-05-11 12:47:52 +02:00
jean-emmanuel
20ef7a2afe toggle: parse incomming value like push does 2018-05-10 23:01:34 +02:00
jean-emmanuel
e4cc5b8625 examples: ardour update 2018-05-10 22:57:08 +02:00
jean-emmanuel
0701533db7 examples: ardour update 2018-05-10 22:18:36 +02:00
jean-emmanuel
55b8d55c81 readme: reduce browserstack mention a bit 2018-05-10 22:10:33 +02:00
jean-emmanuel
e9d291614d docs: reduce browserstack mention a bit 2018-05-10 22:09:40 +02:00
jean-emmanuel
0d1164f1b9 docs: liberapay button 2018-05-10 22:08:20 +02:00
jean-emmanuel
1e5926e722 docs: add liberapay link 2018-05-10 22:06:22 +02:00
jean-emmanuel
be9532fbb8 examples: update ardour 2018-05-10 20:49:23 +02:00
jean-emmanuel
2e653934b6 doc: mention f12 in css tips 2018-05-09 22:38:38 +02:00
jean-emmanuel
6ce10715f3 docs: add panel background-color trick (#295) 2018-05-09 22:31:05 +02:00
jean-emmanuel
2fb6228fab package: patch v 0.30.4 2018-05-09 19:34:22 +02:00
jean-emmanuel
200d5ba401 widget: fix preArgs property still being coerced to an array 2018-05-09 19:33:27 +02:00
jean-emmanuel
06204e9b66 clone: don't copy .not-editable class 2018-05-09 18:58:46 +02:00
jean-emmanuel
a88810b1be touch: missing event props for touch traversing gestures (#292) 2018-05-09 18:14:36 +02:00
jean-emmanuel
3aa46e5e11 package: 0.30.3 2018-05-09 13:01:21 +02:00
jean-emmanuel
ddb781612d touch: fix broken touch detection (#288) 2018-05-09 13:00:27 +02:00
jean-emmanuel
413a0e70f6 package: 0.30.2 2018-05-09 09:03:05 +02:00
jean-emmanuel
1ab8690472 log: osc update fix arm build 2018-05-09 09:02:21 +02:00
jean-emmanuel
0a9f97a35d Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2018-05-09 08:40:43 +02:00
jean-emmanuel
13e86bf07c modal: reenable properties and remove tabs from the object's props 2018-05-09 01:42:27 +02:00
jean-emmanuel
5e94d980ed strip: reenable spacin prop 2018-05-09 01:34:42 +02:00
jean-emmanuel
9af5c678af
Merge pull request #284 from danielappelt/upgrade-osc-js
Upgrade osc.js to v2.2.1
2018-05-08 00:30:58 +02:00
Daniel Appelt
16b829cc88 Upgrade osc.js to v2.2.1 2018-05-08 00:18:10 +02:00
jean-emmanuel
f51a012313 remote-control: fix /TABS (provide empty event.detail object) (#283) 2018-05-07 12:29:13 +02:00
jean-emmanuel
b1e59f2f8f log: format 2018-05-07 10:32:04 +02:00
jean-emmanuel
803a82be31 package: 0.30.1 2018-05-07 10:31:43 +02:00
jean-emmanuel
1b6db379e0 midi: prevent the main process from exiting when MIDI setup fails and use stderr when appropriate (#218) 2018-05-05 18:51:41 +02:00
jean-emmanuel
ee119339c8 log: typo2 2018-05-05 11:31:02 +02:00
jean-emmanuel
51b4b58fe4 log: typo 2018-05-05 11:30:18 +02:00
jean-emmanuel
862e5ddf27 package: 0.30.0 2018-05-05 11:26:50 +02:00
jean-emmanuel
f87b3980ed panel: disable target prop too when there's no tab (#221) 2018-05-05 11:21:49 +02:00
jean-emmanuel
54972eecc0 linkId: fix sync when there is only 1 master and 1 slave (#251) 2018-05-05 11:16:23 +02:00
jean-emmanuel
57ebd3b4a0 widgets: store disabled properties' names and disable them properly in the editor (#221) 2018-05-05 10:49:56 +02:00
jean-emmanuel
afc82abd6e widgets: target: make 'null' token disable the global default target (#279) 2018-05-04 21:25:15 +02:00
jean-emmanuel
ba1ebf490b linkId: add support for master/slave modes with >> and << prefixes (#251) 2018-05-04 17:36:07 +02:00
jean-emmanuel
04fafb15ee widget props: don't coerce "target" and "preArgs" to array and accept single string values (#211) 2018-05-04 16:48:49 +02:00
jean-emmanuel
4ff64ac46d package: fix js minifying 2018-04-30 07:35:29 +02:00
jean-emmanuel
9718a3e645 package: 0.29.2 2018-04-30 07:28:35 +02:00
jean-emmanuel
8518925dca widget: css parsing error on iOS (always use a string value for css property) (#282) 2018-04-30 07:20:54 +02:00
jean-emmanuel
869f824ab4 docs: mention .open-stage-control config file (#280) 2018-04-26 09:54:07 +02:00
jean-emmanuel
491d20b9d2 dev: enable devtools shortcut in launcher for devs (if npm start is used) 2018-04-26 09:47:40 +02:00
jean-emmanuel
7c437e07f4 launcher: handle parsing errors and enhance array parsing (#280) 2018-04-26 09:46:25 +02:00
jean-emmanuel
daff17ec44 doc: typo 2018-04-18 01:44:28 +02:00
jean-emmanuel
9c848f6000 release v0.29.1 2018-04-18 01:39:41 +02:00
jean-emmanuel
568c4cab34 editor: "wrap" deleting the widget just before the one being wrapped 2018-04-16 18:58:21 +02:00
jean-emmanuel
b141546afd package: beta 2 2018-04-13 09:20:23 +02:00
jean-emmanuel
801fa1ea0b drag: fix regression breaking inertia 2018-04-13 09:11:52 +02:00
jean-emmanuel
8c3246db89 drag: fix traversing gestures 2018-04-13 06:31:48 +02:00
jean-emmanuel
9404d7b9f5 package: 0.29.1-beta 2018-04-12 22:44:52 +02:00
jean-emmanuel
5141aae474 docs: nested @{} 2018-04-12 22:44:26 +02:00
jean-emmanuel
43ab5cb4e5 props: implement @{} syntax nesting (#191) 2018-04-12 14:53:27 +02:00
bordun
a439b08f8f server: enable broadcast (#276) 2018-04-11 23:20:06 +02:00
bordun
7e242e7137 log: wrong section 2018-04-10 19:09:17 +02:00
bordun
3ec893d102 package: 0.29.0 2018-04-10 19:06:55 +02:00
bordun
46d922a296 drag: rename some functions 2018-04-10 19:06:05 +02:00
bordun
aa7e335411 drag: always use a proxy event object to allow writing readonly props (#275) 2018-04-10 19:03:21 +02:00
bordun
ca1332f462 package: update sass and adapt scss to new spec 2018-04-10 13:29:01 +02:00
bordun
e79d1306f5 package: update deps 2018-04-09 09:37:03 +02:00
jean-emmanuel
91b407cd93 rgb: fix function typo breaking in old iOS 2018-04-07 12:10:01 +02:00
jean-emmanuel
91abc1fc8b faders/meter: add css variable --gauge-opacity to allow setting a fixed gauge opacity for meters and compact faders 2018-04-07 11:46:23 +02:00
jean-emmanuel
457d9faff0 custom module: expose messages converted from midi input to custom module (#266) 2018-04-06 23:10:52 +02:00
jean-emmanuel
bec71b5c1b modal: add popupLeft and popupTop properties (#265) 2018-04-06 18:08:07 +02:00
jean-emmanuel
ea4a21cf2d sessions: drop support for .js sessions files 2018-04-06 17:40:24 +02:00
jean-emmanuel
f612793934 zeroconf: unpublish when shutting down (#273) 2018-04-06 08:18:49 +02:00
jean-emmanuel
7a77606886 package: 0.28.3 2018-04-05 23:51:23 +02:00
jean-emmanuel
486ac1527e package: update deps 2018-04-05 23:51:15 +02:00
jean-emmanuel
99ef38d5ac docs: format fix 2018-04-05 23:48:03 +02:00
jean-emmanuel
ab98081e67 log: typo 2018-04-05 23:45:52 +02:00
jean-emmanuel
4a1e5cca7a knob: design tweaks 2018-04-05 23:45:10 +02:00
jean-emmanuel
4e9193f26a upload/browse: modularize and append the <input> to the document to prevent safari/iOS bug (#264, #238) 2018-04-05 22:44:03 +02:00
jean-emmanuel
22122b5731 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2018-04-05 22:42:12 +02:00
jean-emmanuel
b69f99dd9a editor: remove unused element 2018-04-05 22:41:30 +02:00
bordun
6054a03c35 css: trigger resize event when css changes geometry or display (#272) 2018-04-03 09:01:26 +02:00
jean-emmanuel
64860e04e9 docs: custom module additions 2018-03-30 00:25:37 +02:00
jean-emmanuel
28f852edc5 package: 0.28.2 2018-03-29 22:52:25 +02:00
jean-emmanuel
1ebc8e4784 custom module: expose clearInterval & clearTimeout 2018-03-29 22:48:24 +02:00
jean-emmanuel
d9879f3567 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2018-03-29 22:46:17 +02:00
bordun
6d56f96a70 session list: fix "remove from history" always removing the first item in the list (#264) 2018-03-28 15:38:08 +02:00
jean-emmanuel
9b9a8b45fb rtsp: remove from app (-> https://github.com/jean-emmanuel/rtsp2osc) 2018-03-27 17:34:28 +02:00
bordun
1e74704021 docs: custom module setInterval 2018-03-27 09:21:43 +02:00
bordun
613d7dafc3 custom module: prevent errors when failing to run the module 2018-03-27 09:01:19 +02:00
bordun
bd2674be46 custom module: expose setInterval (#255) 2018-03-27 08:56:19 +02:00
bordun
87c75bda74 rtsp: unrevert commits 2018-03-26 23:50:02 +02:00
bordun
d14aeb9e8c package:0.28.1 2018-03-26 23:48:49 +02:00
bordun
1100c01404 tmp: Revert "image: add stream experimental property with server-side ffmpeg backend (#259)"
This reverts commit dfdac01bf3.
2018-03-26 23:45:12 +02:00
bordun
072f67e3b1 tmp: Revert "rtsp: move dependency to packaged app (#261)"
This reverts commit 24f0fb8093.
2018-03-26 23:44:49 +02:00
bordun
efc715748c clone: reallow cloning a clone's child (#127) 2018-03-26 23:43:22 +02:00
bordun
24f0fb8093 rtsp: move dependency to packaged app (#261) 2018-03-26 18:56:11 +02:00
jean-emmanuel
dfdac01bf3 image: add stream experimental property with server-side ffmpeg backend (#259) 2018-03-24 15:28:37 +01:00
jean-emmanuel
e41024f5f4 package: move launcher js to src 2018-03-23 12:54:58 +01:00
jean-emmanuel
eaa59ecadc package: 0.28.0 2018-03-23 00:14:44 +01:00
jean-emmanuel
a4eba3fcd9 launcher: context-menu: add app relaunch item (#182) 2018-03-23 00:10:50 +01:00
jean-emmanuel
5fa74fae8c launcher: roboto mono font in console 2018-03-23 00:10:04 +01:00
jean-emmanuel
284a01251b launcher: right-click context menu (copy, paste, clear console, toggle console autoscoll) (issue #182) 2018-03-22 21:55:56 +01:00
jean-emmanuel
d19a9b933b docs: remove mention to deleted feature 2018-03-22 13:36:15 +01:00
jean-emmanuel
b267837de9 rgb: add range property (#252) 2018-03-22 13:33:41 +01:00
jean-emmanuel
6cc9fe2ea7 text: wrap property doesn't break words by default, add workaround to docs (#243) 2018-03-22 12:52:32 +01:00
jean-emmanuel
77a48d5c8e matrices: support setting split property as a string to allow using children's indexes in their address ($ is replaced with the index number) (#250) 2018-03-22 12:44:34 +01:00
jean-emmanuel
fbad6391cd docs: list format fix 2018-03-22 10:06:14 +01:00
jean-emmanuel
0d0da9d564 Merge branch 'master' of github.com:jean-emmanuel/open-stage-control 2018-03-22 10:04:23 +01:00
jean-emmanuel
ee621ec27f docs: add qlab examples and screenshots 2018-03-22 10:03:56 +01:00
bordun
0cb373498b package:0.27.2 2018-03-21 16:24:33 +01:00
jean-emmanuel
a94ee973c1 css: iOS doesn't allow writing "style" property 2018-03-21 14:49:50 +01:00
jean-emmanuel
8aa2735ce1 file browse: attach event listener before opening prompt (#238) 2018-03-20 23:16:51 +01:00
jean-emmanuel
1a86fda8a0 package: 0.27.1 2018-03-20 09:44:40 +01:00
jean-emmanuel
05c489f4d0 state: fix broken file import 2018-03-20 09:39:19 +01:00
jean-emmanuel
b5cf6958af session: add session/state file uploading and failing popup (#238) 2018-03-20 09:35:43 +01:00
jean-emmanuel
3415e19843 session: fix lobby not shown when failing to load a session 2018-03-20 09:15:49 +01:00
jean-emmanuel
c50351131e css: prevent error with non-string css (#253) 2018-03-20 00:10:59 +01:00
jean-emmanuel
e3b4f7bc1c docs: linkId accepts array 2018-03-19 09:20:48 +01:00
jean-emmanuel
5d1005c941 clone: don't copy resizable/draggable class to prevent editor error (#249) 2018-03-18 22:03:55 +01:00
jean-emmanuel
5c29b5614b docs: global table of contents 2018-03-18 17:23:30 +01:00
jean-emmanuel
72f8c90332 docs: fix link 2018-03-18 17:15:35 +01:00
jean-emmanuel
1e7b5449d7 docs: fix dynamic props permalink 2018-03-18 17:14:15 +01:00
jean-emmanuel
80a00fa7d8 text: make sure wrapped text keep being aligned 2018-03-18 12:32:34 +01:00
jean-emmanuel
383d4eb3d9 theme: responsive fonts: increase size for big screens (#246) 2018-03-18 12:22:22 +01:00
jean-emmanuel
4437361550 package: 0.27.0 2018-03-18 12:18:16 +01:00
jean-emmanuel
0d4438b177 sidepanel: tweak resize handle 2018-03-18 12:16:40 +01:00
jean-emmanuel
0e9964682d package: update deps (fixes #234) 2018-03-18 12:10:42 +01:00
jean-emmanuel
658924a0bb props: prevent error when loading a session containing invalid property inheritance calls (#245) 2018-03-18 12:04:44 +01:00
jean-emmanuel
bf3e891366 clone: prevent clone from resetting its target value when created (#236) 2018-03-17 12:51:40 +01:00
jean-emmanuel
fea519c0d7 osc: check osc self-linked props before sending and document what it breaks 2018-03-16 19:22:47 +01:00
jean-emmanuel
be36306887 image: value type check to prevent error 2018-03-16 18:45:36 +01:00
jean-emmanuel
c536a6cc6a panel:tabs: add a hint on value/osc props to prevent confusion (#221) 2018-03-16 18:25:09 +01:00
jean-emmanuel
7fc2517f7a docs: add some examples links 2018-03-16 17:38:22 +01:00
jean-emmanuel
a1bc7daa61 docs: css: avoid using the "container" term as it can be confusing 2018-03-16 16:27:49 +01:00
jean-emmanuel
772f35de95 docs: add css-tips section (#239) 2018-03-16 13:08:00 +01:00
jean-emmanuel
35b8d59d9c events: typo 2018-03-16 00:38:18 +01:00
jean-emmanuel
d46b8938e6 events: use wildcard instead of regexp to increase event dispatching speed 2018-03-16 00:32:38 +01:00
jean-emmanuel
8adbaf5a58 session: regexp typo 2018-03-16 00:04:57 +01:00
jean-emmanuel
b08a6c95c2 session: load: replace fat state init with a (very slightly) faster one (goal is to make sure value listeners are up to date at init)" 2018-03-16 00:03:57 +01:00
jean-emmanuel
d5f7657065 Revert "session: load: replace fat state init with a faster one (goal is to make sure value listeners are up to date at init)"
This reverts commit 69e11dfd47.
2018-03-15 23:59:23 +01:00
jean-emmanuel
69e11dfd47 session: load: replace fat state init with a faster one (goal is to make sure value listeners are up to date at init) 2018-03-15 14:56:07 +01:00
jean-emmanuel
d2d3a4ab69 session: load: don't disable editor if it's already disabled 2018-03-15 12:58:00 +01:00
jean-emmanuel
4d842c45b2 widget: don't check props when parent widget emits created event 2018-03-15 12:32:12 +01:00
jean-emmanuel
c14248ff30 clone: prevent cleanClone if widget is empty 2018-03-15 12:30:51 +01:00
jean-emmanuel
36ee7a7926 log: typo 2018-03-14 16:21:37 +01:00
jean-emmanuel
c91a7b7b81 editor: preverve pecentages when dragging/resizing a widget that has its position/size written in percents (#216) 2018-03-14 16:17:55 +01:00
jean-emmanuel
30cefddc4c ui: make sidepanel resizable (#230) 2018-03-14 15:57:20 +01:00
jean-emmanuel
44fe98f9b7 editor: override widget's css pointer-events:none; to ensure widgets are always selectable (#231) 2018-03-13 20:34:06 +01:00
jean-emmanuel
5c7a79a17d docs: advanced property syntax 2018-03-13 20:24:28 +01:00
jean-emmanuel
993742d065 clone: copy all classes from target widget (fixes #219); apply target's default size if there's one; 2018-03-13 20:16:05 +01:00
jean-emmanuel
c705641a71 editor: better icon for "edit parent" menu action 2018-03-13 19:46:07 +01:00
jean-emmanuel
76e51df03d widgets: prop: add OSC{/path, default_value} syntax (#191) 2018-03-12 21:37:08 +01:00
jean-emmanuel
4e079a2048 doc: add missing mention to "&" selector 2018-03-12 21:25:59 +01:00
jean-emmanuel
590c7fde37 modal/popup: prevent touch event from affecting elements behind the popup when closing it (#228) 2018-03-12 10:24:53 +01:00
jean-emmanuel
2e8b3e330a doc: paste menu update 2018-03-12 10:17:42 +01:00
jean-emmanuel
26995c8d42 editor:add Clone option to paste menu and rename clone to "paste" (#224) 2018-03-12 10:15:00 +01:00
jean-emmanuel
40ca990922 editor: wrap in: insert wrapper at selected widget's index & set label to false by default when wrapping in a strip or a panel (#225) 2018-03-12 09:29:07 +01:00
jean-emmanuel
f373a93b6b text: fix vertical centering (remove vertical padding) 2018-03-11 13:23:42 +01:00
jean-emmanuel
4a1837aaf8 modal: prevent setValue calls before popup is created 2018-03-11 12:53:49 +01:00
jean-emmanuel
e18bd058e3 strip: prevent nested strips from inheriting --spacing (#222) 2018-03-11 09:08:27 +01:00
jean-emmanuel
679f66db70 parser: delete noSync after converting it to bypass to prevent old session from getting stuck with bypass=true 2018-03-11 00:02:55 +01:00
jean-emmanuel
daa8f5bb89 package: 0.26.3 2018-03-10 09:00:38 +01:00
jean-emmanuel
cd6587231a editor: mac: shift instead of command for multi select (#202) 2018-03-10 08:52:41 +01:00
jean-emmanuel
adaf97f130 doc: remov epython pyo 2018-03-09 23:13:20 +01:00
jean-emmanuel
267a5f27b8 cli: remove python-pyo requirement mention (#218) 2018-03-09 23:05:57 +01:00
jean-emmanuel
0370fe045a launcher: hide deprecated cli alias 2018-03-09 12:37:43 +01:00
jean-emmanuel
a0054f632e log: latest fixes 2018-03-09 12:37:21 +01:00
jean-emmanuel
261b8e343f editor: prevent context menu touch-click from triggering a mouse-click on the element underneath 2018-03-09 09:16:38 +01:00
jean-emmanuel
17f4b9a371 sidepanel: prevent touchstart from triggering an extra mousedown (#213) 2018-03-09 09:15:52 +01:00
jean-emmanuel
4332af9038 widget: color: prevent assigning "undefined" as css var (breaks in ios) (#214) 2018-03-09 00:32:37 +01:00
jean-emmanuel
fd000711bd nav: document nav-height css var & remove tablink vertical padding 2018-03-09 00:01:50 +01:00
jean-emmanuel
4f3af11c45 strip: spacing: add support for percents (#215) 2018-03-08 07:43:29 +01:00
jean-emmanuel
8ecd4abfce package: update deps 2018-03-06 22:39:57 +01:00
jean-emmanuel
07362806c7 package: v0.26.2 2018-03-06 22:37:44 +01:00
jean-emmanuel
c52c516c87 meter: add gradient property (#201) 2018-03-06 22:33:09 +01:00
jean-emmanuel
5cb43135ea editor: better fix selecting widget after edition 2018-03-06 21:59:00 +01:00
jean-emmanuel
836a7c6e88 editor: wrap/cut/delete multiple widget not working properly (#206) 2018-03-06 21:40:34 +01:00
jean-emmanuel
2c5d779a6f log: last fix 2018-03-06 21:24:07 +01:00
jean-emmanuel
bec9d3fdee ui: fix regression letting user to scroll the main document (#203) 2018-03-06 21:20:10 +01:00
jean-emmanuel
0065dead4b editor: fix selecting parent widget after deleting a widget 2018-03-06 21:01:27 +01:00
jean-emmanuel
0773a05050 keybooard: fix missing last key (#205) 2018-03-06 20:48:56 +01:00
jean-emmanuel
37beb1f84f text set line-height relative to font size 2018-03-06 19:29:47 +01:00
jean-emmanuel
dfb85bef82 theme: default: fix glass effect color inheritance 2018-03-06 01:41:45 +01:00
jean-emmanuel
84451e90f5 maths: add length function 2018-03-06 01:29:45 +01:00
jean-emmanuel
90a16e0040 docs: more on themes 2018-03-06 00:55:08 +01:00
jean-emmanuel
c4efbdba00 package: patch release 0.26.1 2018-03-06 00:44:36 +01:00
jean-emmanuel
b66d6caccd ios: fix input fields (#199) 2018-03-06 00:39:48 +01:00
jean-emmanuel
efe72242b4 editor: mac: command instead of ctrl for multi select 2018-03-06 00:35:53 +01:00
jean-emmanuel
e3a05d742b theme: clean 2018-03-06 00:08:24 +01:00
jean-emmanuel
ae7fe700a4 package: 0.26.0 2018-03-05 23:53:26 +01:00
jean-emmanuel
dca0dfb28a font: update fa file 2018-03-05 23:52:58 +01:00
jean-emmanuel
0c745853cd themes: alt-buttons: add color hint on active push (#198) 2018-03-05 23:44:06 +01:00
jean-emmanuel
8a081d72ff themes: responsive fonts (#197) 2018-03-05 23:36:00 +01:00
jean-emmanuel
7da9be3f15 editor: add wrap in menu (#193) 2018-03-05 23:31:00 +01:00
jean-emmanuel
0f7cd4a027 fonts: update font awesome 2018-03-05 23:19:53 +01:00
jean-emmanuel
e77004a70e clone: avoid some circular loop cases and fix memory leak (remove eventListener attached to target widget on removal) (#187) 2018-03-05 22:43:51 +01:00
jean-emmanuel
7e517f4bc2 text: use "default" prop instead of "value" to define default value (#195) 2018-03-05 22:28:41 +01:00
jean-emmanuel
169ece4780 text: style fix (overflow) 2018-03-05 14:45:30 +01:00
jean-emmanuel
877092e644 editor: tweaked ctrl+click/right-click selection behaviors 2018-03-05 13:44:02 +01:00
jean-emmanuel
e37cc50ee6 tabs: prevent mask from cutting text's top/bottom when font-size is increased 2018-03-05 12:20:22 +01:00
jean-emmanuel
c85b59629f editor: allow multi widget drag/resize (#190) 2018-03-05 12:05:59 +01:00
jean-emmanuel
475998fe63 gui: disable pinch zoom (#189) 2018-03-05 10:49:51 +01:00
jean-emmanuel
bcbdc5e56a ui: mac: zoom: command instead of ctrl 2018-03-05 10:46:02 +01:00
jean-emmanuel
930fbbf53c osc: prevent sync errors there are no args 2018-03-05 10:33:56 +01:00
jean-emmanuel
2d3ec81e03 editor: fix regression (0638375) breaking resize/draggable handles 2018-03-05 08:32:34 +01:00
jean-emmanuel
0638375ae4 editor: when selecting another widget while editing a property, changes where applied to the newly selected widget (issue #188) 2018-03-04 23:04:36 +01:00
jean-emmanuel
0dc2c030aa widget: css: fix @media queries parsing 2018-03-04 22:58:39 +01:00
jean-emmanuel
f58051d433 themes: alt-buttons: modal font fix 2018-03-04 21:09:10 +01:00
jean-emmanuel
96499e57a8 docs: clean theming docs, to be improved 2018-03-04 11:39:46 +01:00
jean-emmanuel
e4b9d585b9 package: 0.25.0 2018-03-04 11:37:27 +01:00
jean-emmanuel
4170830e54 main: prevent new window spawn when middle click on a link, prevent loading a file on drag&drop 2018-03-04 11:33:49 +01:00
jean-emmanuel
743d76c442 ui: pimp textareas (caret color and selection background) 2018-03-04 11:25:59 +01:00
jean-emmanuel
9579937694 styles: simplify toggle style (set color on container element, let label inherit)
themes: update alt-buttons
2018-03-04 11:19:14 +01:00
jean-emmanuel
a81d470eee theme: fix some errors and add alt-button theme extension 2018-03-04 11:11:11 +01:00
jean-emmanuel
9e78279226 main: handle theme from a dedicated module 2018-03-04 10:47:14 +01:00
jean-emmanuel
ac5a90b4e1 osc: add quotes in address error 2018-03-03 20:26:31 +01:00
jean-emmanuel
7eb361c668 osc: prevent breaking osc when address is malformed (#179, #178) 2018-03-03 20:23:20 +01:00
jean-emmanuel
a007f91456 themes: don't use proprietary names 2018-03-03 18:37:53 +01:00
jean-emmanuel
1bb54048df themes: something dark 2018-03-03 18:19:09 +01:00
jean-emmanuel
206beb6a7f package: missing folder 2018-03-03 18:05:09 +01:00
jean-emmanuel
3c7581a524 package: update npm script 2018-03-03 17:55:22 +01:00
jean-emmanuel
f72962680d themes: add bitwig theme and manage themes src as scss 2018-03-03 17:39:53 +01:00
jean-emmanuel
1cfd615c85 main: fix themed gui bg color 2018-03-03 15:19:44 +01:00
jean-emmanuel
4954295992 sliders/xy: add support for doubleTap address (#174) 2018-03-03 14:38:48 +01:00
jean-emmanuel
3092515cd3
Merge pull request #177 from kdejaeger/typo-apply-apply
typo 'apply apply'
2018-03-03 13:49:55 +01:00
Koen De Jaeger
0561cadf64 typo 'apply apply' 2018-03-03 13:42:17 +01:00
jean-emmanuel
9574fb9556 docs: bypass is dynamic 2018-03-03 12:21:09 +01:00
jean-emmanuel
3d07599a92 log: typos 2018-03-03 12:20:20 +01:00
jean-emmanuel
1a1eddb2d7 editor: fix children list long id layout 2018-03-03 12:15:09 +01:00
jean-emmanuel
87c8f17c8c docs: value prop 2018-03-03 12:06:32 +01:00
jean-emmanuel
2c4deb144c docs: bypass prop 2018-03-03 11:56:26 +01:00
jean-emmanuel
ab0b268094 log: last change 2018-03-03 11:28:48 +01:00
jean-emmanuel
02523903c8 osc: add bypass option for all (replaces panel's noSync), enhance state sync logic
props: always resolve @value change after other dynamic props (osc related for example)
2018-03-03 11:20:57 +01:00
jean-emmanuel
518763fc9c docs: some more clean 2018-03-03 10:59:06 +01:00
jean-emmanuel
88648c5be6 maths: fix formulas outputing unwrapped null value 2018-03-03 10:57:09 +01:00
jean-emmanuel
cb54fe0f9c doc:+build infos 2018-03-03 10:44:46 +01:00
jean-emmanuel
07bbcf9b74 docs: clean bash lines 2018-03-03 10:40:57 +01:00
jean-emmanuel
57b0094e4c docs: enhance build doc 2018-03-03 10:38:35 +01:00
jean-emmanuel
2d33d48fd9 text: fix vertical mode multi line direction 2018-03-03 10:22:16 +01:00
jean-emmanuel
8292aa788d input/text: add align & wrap props (feature request #176) 2018-03-03 10:18:11 +01:00
jean-emmanuel
a0bf06f8e9 formula: catch maths errors in constructor 2018-03-02 18:51:57 +01:00
jean-emmanuel
c7e78cf6c4 editor: multiselect regression 2018-03-02 16:28:57 +01:00
jean-emmanuel
62ba46ca03 knob: tweak pips and big knob 2018-03-02 16:26:03 +01:00
jean-emmanuel
15cde03d95 editor: fix children reordering (regression introducted when removed most of jquery calls) (issue #175) 2018-03-02 16:19:41 +01:00
jean-emmanuel
2639bf5677 prop inheritance: fix broken self call to @value 2018-03-02 15:22:41 +01:00
jean-emmanuel
510cdd6a4d modal: update editing outline style 2018-03-02 07:00:47 +01:00
jean-emmanuel
72cb41dcc1 launcher: fix bg color & disable menu bar before loading url 2018-03-01 21:13:11 +01:00
jean-emmanuel
adfe88a37e launcher: make sure to scroll to bottom when the terminal appears 2018-03-01 20:53:00 +01:00
jean-emmanuel
2f651fc9fd launcher: fix height to prevent scrollbar at init 2018-03-01 20:51:04 +01:00
jean-emmanuel
c5fdab264e docs: double word 2018-03-01 19:06:10 +01:00
jean-emmanuel
99a7e4d2ac widgets: add default property for setting initial/doubleTap/spring value (issue #174) 2018-03-01 19:02:22 +01:00
jean-emmanuel
72e724aa85 prop inheritance: make @{id.value}, @{id} and @{id._value} refer to the same thing (current value) 2018-03-01 17:40:01 +01:00
jean-emmanuel
2f7768dc8b log: terminal size/scroll fix 2018-03-01 15:44:03 +01:00
jean-emmanuel
c668ec2fd3 launcher: remove debug setting 2018-03-01 15:41:51 +01:00
jean-emmanuel
4181765f81 launcher: auto size, fixed header, growing terminal + autoscroll if scrolled to bottom (pr #172) 2018-03-01 15:39:22 +01:00
jean-emmanuel
02b8772a4f log/doc: typo 2018-03-01 14:25:57 +01:00
jean-emmanuel
fd65e4406a doc: funny typo (@kdejaeger) 2018-03-01 14:20:08 +01:00
jean-emmanuel
ae18c32de2 log/doc: multi selection 2018-03-01 14:15:57 +01:00
jean-emmanuel
cf68d5c7ab editor: pass increment flag to paste function (issue #156) 2018-03-01 13:32:48 +01:00
jean-emmanuel
23d9ae136f launcher: accept space chars in array items enclosed by quotes (issue #173) 2018-03-01 13:23:54 +01:00
jean-emmanuel
0d408824da editor: make context-menu work with multi selection (issue #156) 2018-03-01 09:38:48 +01:00
jean-emmanuel
f58c2101c8 editor: don't change selection when click on a selected wigdet without holding ctrl 2018-02-28 16:45:32 +01:00
jean-emmanuel
a9004f4c27 editor: start implement multi-selection (issue #156) 2018-02-28 15:12:03 +01:00
jean-emmanuel
04e66c4776 docs: add flattr link, change email 2018-02-28 14:14:40 +01:00
jean-emmanuel
2a709a2328 main: add --fullscreen option (issue #164) 2018-02-28 11:22:31 +01:00
jean-emmanuel
56707f279c logs: windows log 2018-02-28 11:01:46 +01:00
jean-emmanuel
66524d5c8d knob: make design more responsive 2018-02-28 10:23:00 +01:00
jean-emmanuel
3ed25cdf04 package: 0.24.3 2018-02-27 15:23:39 +01:00
jean-emmanuel
c8b503e724 log: typos 2018-02-27 12:59:06 +01:00
jean-emmanuel
69f026a8eb log: editor: prevent interraction on select 2018-02-27 12:51:22 +01:00
jean-emmanuel
a99a24f898 docs: format fix 2018-02-27 12:10:51 +01:00
jean-emmanuel
2a0a1c26b6 docs: options table formatting 2018-02-27 12:09:05 +01:00
jean-emmanuel
cb8fbcc007 docs: formatting 2018-02-27 11:52:52 +01:00
jean-emmanuel
e97e779829 docs: clarify + 2018-02-27 11:51:33 +01:00
jean-emmanuel
428354474d docs: clarify supported clients 2018-02-27 11:48:53 +01:00
jean-emmanuel
9a1859f45c knob: fix dash scaling and tweak tiny knobs design 2018-02-27 10:05:28 +01:00
jean-emmanuel
516c335adc main: attempt to fix windows gui console (issue #171) 2018-02-27 09:11:31 +01:00
jean-emmanuel
e47dcf68f5 package: update deps & remove non-free ffmpeg from package 2018-02-26 18:24:40 +01:00
jean-emmanuel
1e77d8aed1 editor: ask for confirmation when closing or refreshing a the page if the editor has been enabled at least once (issue #165) 2018-02-25 10:02:10 +01:00
jean-emmanuel
02885cebf6 ui: make closable popups singleton to avoid blocking the ui when there are many (ie errors) 2018-02-25 09:30:45 +01:00
jean-emmanuel
3701efc544 fullscreen: add fallback popup info for ios (suggests "add to home") 2018-02-25 09:30:00 +01:00
jean-emmanuel
e12ea4be4a ios: set status bar color to black (translucent is deprecated) 2018-02-24 23:15:42 +01:00
jean-emmanuel
e21e1bb8d9 ios: app icon 2018-02-24 23:06:40 +01:00
jean-emmanuel
b5f871d972 ios: transparent status bar in app mode 2018-02-24 21:12:04 +01:00
jean-emmanuel
be485f1085 sidepanel: prevent double click glitch 2018-02-24 18:07:05 +01:00
jean-emmanuel
612c8ba45a mobile: allow user to add the page to home screen and launch the client in fullscreen mode 2018-02-24 15:43:21 +01:00
jean-emmanuel
2b0e3ebe86 prop maths: prevent replacing variable names declared in formula's scope 2018-02-24 08:55:20 +01:00
jean-emmanuel
fbba60403e editor: paste n+1: don't remove linkId (issue #155) and remove useless label check routine 2018-02-22 17:56:40 +01:00
jean-emmanuel
1a02c80496 editor: change capture flag name and remove tab hack (handling editor's select in capture phase makes it useless) 2018-02-22 17:53:10 +01:00
jean-emmanuel
709d0a7f25 click: remove debug log 2018-02-19 09:29:10 +01:00
jean-emmanuel
ba6f1419c3 touch: prevent touchstart + mousedown from jquery touch punch; editor: ignore pointerdown interraction when selecting a widget (issue #157) 2018-02-18 15:48:13 +01:00
jean-emmanuel
aeef06749d main: init app menu on ready event to fix macOs menus & shortcuts -> 0.24.2 2018-02-18 01:35:35 +01:00
jean-emmanuel
ce247b4098 package: 0.24.1 2018-02-17 18:44:31 +01:00
jean-emmanuel
2a9d424d63 log: some fixes 2018-02-17 18:44:07 +01:00
jean-emmanuel
37a7e5802b ipc:client: check if socket check connection status 2018-02-17 17:50:57 +01:00
jean-emmanuel
c02fb7036e main: better error handling (prevent some error boxes) 2018-02-17 17:48:40 +01:00
jean-emmanuel
83ee2fd2f3 ipc: prevent some more errors 2018-02-17 13:47:04 +01:00
jean-emmanuel
41c0c8b7ab log: mac menus 2018-02-17 00:56:18 +01:00
jean-emmanuel
1593d3c0ab macOs: add some app menu to suck a bit less 2018-02-17 00:53:55 +01:00
jean-emmanuel
c25050047b log: missing svg 2018-02-17 00:01:32 +01:00
jean-emmanuel
41639df2a9 docs: remove useless data in logo files 2018-02-16 23:38:00 +01:00
jean-emmanuel
a07b2fd2e7 misc: blank char 2018-02-16 23:29:35 +01:00
jean-emmanuel
1c53aea10e maths: add pad function 2018-02-16 23:19:19 +01:00
jean-emmanuel
9f81e0b9cb docs: more on maths 2018-02-16 17:24:08 +01:00
jean-emmanuel
37e92d1046 props:css: another regexp fix for unscoped css 2018-02-16 16:35:07 +01:00
jean-emmanuel
0252530109 docs: prop maths escaped brackets 2018-02-16 13:49:39 +01:00
jean-emmanuel
52317e4499 props:css: fix unscoped css 2018-02-16 11:14:22 +01:00
jean-emmanuel
52aec0f9cc prop maths: strip out empty resultsets (when just assigning vars) 2018-02-16 11:13:54 +01:00
jean-emmanuel
aba8e3e14c keys: typo 2 2018-02-16 02:24:41 +01:00
jean-emmanuel
8744270335 keys: dev typo 2018-02-16 02:19:30 +01:00
jean-emmanuel
fd1b61e519 editor: remote control: revert fast dynamic prop edit, always recreate the widget to let it handle inheritances properly 2018-02-16 02:15:34 +01:00
jean-emmanuel
1e35e72db4 editor: rewrite without jquery except for resizable/draggable/sortable, hardly replacable 2018-02-16 02:01:16 +01:00
jean-emmanuel
dfe9822915 props: fix dynamic geometry (trigger resize events) 2018-02-16 00:36:47 +01:00
jean-emmanuel
25d98287e9 editor: context menu without jquery 2018-02-15 13:03:30 +01:00
jean-emmanuel
4bbee6eb20 multifader: fix dynamic color prop 2018-02-15 10:11:12 +01:00
jean-emmanuel
1e5b4038e3 edit: fix reselecting widget after edition 2018-02-15 10:03:40 +01:00
jean-emmanuel
1b7f6f14a8 tab: dynamic label 2018-02-15 09:50:34 +01:00
jean-emmanuel
e67c90c611 matrices: fix wrong children preArgs 2018-02-15 09:46:08 +01:00
jean-emmanuel
f7cc8b9f85 props: fix cache update > callback order logic 2018-02-15 09:42:17 +01:00
jean-emmanuel
99d218b8ec editor: edit dynamic props faster 2018-02-15 09:32:11 +01:00
jean-emmanuel
d9e6d64bf3 props: don't update cached props if not dynamic (the old value can be used in old-fashion remove callback) 2018-02-15 09:30:55 +01:00
jean-emmanuel
2402a66a83 ipc: safe flush 2018-02-15 09:24:11 +01:00
jean-emmanuel
624251f12b remote-edit: let widgets handle prop changing 2018-02-15 09:12:44 +01:00
jean-emmanuel
f3e7b4ba23 strip: don't remove sendValue method as it can be used for remote control 2018-02-15 08:41:59 +01:00
jean-emmanuel
c89e6e1cbb props: make css prop change call color prop change trigger properly 2018-02-14 21:47:03 +01:00
jean-emmanuel
f5ec2ed067 docs: warn about using id instead of this/parent in prop inheritance 2018-02-14 21:31:57 +01:00
jean-emmanuel
3b5411ea42 docs: mark new dynamic props 2018-02-14 21:23:59 +01:00
jean-emmanuel
7589326171 tab/modal: force resize handlers to avoid blank canvas cached styles 2018-02-14 21:19:27 +01:00
jean-emmanuel
edd087934e widget: fix asyn module require regression 2018-02-14 20:50:05 +01:00
jean-emmanuel
d20984a508 canvas: style caching regression (always do it on resize) 2018-02-14 20:37:33 +01:00
jean-emmanuel
8ae5c1884e props: css & color fixes 2018-02-14 20:13:43 +01:00
jean-emmanuel
12ff42cfd9 revert 525c3066be, it has nasty side effects, @{this} should be used anyway 2018-02-14 19:47:21 +01:00
jean-emmanuel
7e8cc500a6 widget: move container creation to base class to make related props dynamic 2018-02-14 19:43:26 +01:00
jean-emmanuel
525c3066be prop inheritance: when id == this.id, interpret as this, do not look for another widget 2018-02-14 19:42:13 +01:00
jean-emmanuel
d5dad476f6 prop maths: espace multiline strings 2018-02-14 10:02:04 +01:00
jean-emmanuel
4cfa779d5d package: bump version 2018-02-13 22:47:28 +01:00
jean-emmanuel
3c8814226b editor: mark dynamic props 2018-02-13 17:21:40 +01:00
jean-emmanuel
d31d1a8d23 dropdown: keep selected value when updating values list (issue #140) 2018-02-13 15:16:57 +01:00
jean-emmanuel
f33248c872 examples: write valid json in plots 2018-02-13 13:26:25 +01:00
jean-emmanuel
15d9837880 plots: safe object check and add json parse to eq 2018-02-13 13:16:53 +01:00
jean-emmanuel
40e4a3ff6d plot: prevent json parse attempt to throw 2018-02-13 13:14:37 +01:00
jean-emmanuel
bc52b2f662 examples: adapt to new specs 2018-02-13 13:01:19 +01:00
jean-emmanuel
f6d0970408 plots: backward compat fix 2018-02-13 12:51:47 +01:00
jean-emmanuel
2c7d86f407 mathjs: update to v4rc 2018-02-13 12:36:31 +01:00
jean-emmanuel
b82e70287c log: strong breaking change alert 2018-02-13 12:24:02 +01:00
jean-emmanuel
329e5fc9be svg: change path percents support to use unambiguous notation: %x and %y 2018-02-13 10:59:54 +01:00
jean-emmanuel
a16d8d29dc svg: secure input 2018-02-13 10:43:27 +01:00
jean-emmanuel
ec966f558c svg: remove noborder option and add minimal doc 2018-02-13 10:31:25 +01:00
jean-emmanuel
f3d6244277 log/doc: deprecate formula, explain breaking changes 2018-02-13 10:22:27 +01:00
jean-emmanuel
220842093f svg: add svg widget file 2018-02-13 10:04:04 +01:00
jean-emmanuel
bd67bb8214 plots: add svg widget draft 2018-02-13 10:02:41 +01:00
jean-emmanuel
6840dc00d0 widgets: add linkId option where missing, ⚠️ remove plot/input widgetId option 2018-02-13 09:51:45 +01:00
jean-emmanuel
85d255d5a4 plot: add dots option 2018-02-12 17:31:32 +01:00
jean-emmanuel
5c4852e1af linkId: can be an array 2018-02-12 17:29:14 +01:00
jean-emmanuel
d5f3856985 knob: typo 2018-02-12 17:16:40 +01:00
jean-emmanuel
4875712965 knob: safe gradient color 2018-02-12 17:03:49 +01:00
jean-emmanuel
a27dedf764 log: recent changes 2018-02-12 15:48:52 +01:00
jean-emmanuel
c59d7f12d4 prop maths: allow escaping brackets in math expressions 2018-02-12 15:40:51 +01:00
jean-emmanuel
4423ecd3e9 css: support for @keyframes 'to' and 'from' 2018-02-12 15:40:16 +01:00
jean-emmanuel
76759568cc parser: parse css @media queries and @keyframes properly (issue #150) 2018-02-12 13:42:14 +01:00
jean-emmanuel
f5c6e6ce6a ipc: server: don't try to send to closed sockets 2018-02-12 09:55:12 +01:00
jean-emmanuel
8722357350 prop inheritance: fix typo breaking multiple @{} references in a single prop definition 2018-02-12 09:44:02 +01:00
jean-emmanuel
03d5da9339 plot: prevent crash when there is only one point in array (issue #148) 2018-02-12 00:01:47 +01:00
jean-emmanuel
e2be66f597 props maths: cache compiled expressions and feed them with changing vars to improve resolve speed 2018-02-11 15:20:08 +01:00
jean-emmanuel
dd4f644b5c editor: remove bad bad eval 2018-02-10 18:07:09 +01:00
jean-emmanuel
d22e67a971 errors: make widget hold prop errors and show them in the editor instead of throwing 2018-02-09 20:15:23 +01:00
jean-emmanuel
0248017183 formula: don't throw errors when parsing fail (issue #145) 2018-02-09 19:22:29 +01:00
jean-emmanuel
b2ba508854 ipc: clean and use same method to check connection state on both sides 2018-02-09 11:00:43 +01:00
jean-emmanuel
fad164ed48 editor: modernize selected widget's border 2018-02-09 10:01:12 +01:00
jean-emmanuel
fd8a362cb3 readme: remove old feature list 2018-02-09 01:05:48 +01:00
jean-emmanuel
77b756b3ce dev: adapt css reload to new ipc 2018-02-09 01:03:04 +01:00
jean-emmanuel
a3d0075f12 remote control: adapt /EDIT* to new ipc 2018-02-09 00:14:47 +01:00
jean-emmanuel
6fd8fc6c66 gui: disable node in default client 2018-02-09 00:05:50 +01:00
jean-emmanuel
6c264f5279 ipc: typo... 2018-02-08 23:48:32 +01:00
jean-emmanuel
270a0526b8 package: update deps 2018-02-08 23:43:41 +01:00
jean-emmanuel
18803b7240 ipc: clean 2018-02-08 23:35:27 +01:00
jean-emmanuel
5278bebb50 ipc: remove debug logs 2018-02-08 23:23:36 +01:00
jean-emmanuel
73bc2e4187 ipc: remove socket.io, rewrite ultra slim ipc 2018-02-08 23:22:33 +01:00
jean-emmanuel
874d6f04f9 switcher: missing color prop update callback 2018-02-07 17:18:46 +01:00
jean-emmanuel
b3b4f69e5b log: typo 2018-02-07 17:16:00 +01:00
jean-emmanuel
66af44a2ce props: fix dynamic preArgs and address 2018-02-07 16:48:55 +01:00
jean-emmanuel
99e1413162 matrices: fix preArgs, address and color to dynamic (use prop math magic) 2018-02-07 16:09:03 +01:00
jean-emmanuel
ba8d2b476d dynamic props: handle undeclared children case for color prop update 2018-02-07 15:52:19 +01:00
jean-emmanuel
453f2b6f0f props: dynamic color fixes 2018-02-07 14:42:28 +01:00
jean-emmanuel
ade59a8be8 log: format space 2018-02-07 13:26:11 +01:00
jean-emmanuel
869eb435e9 log: last fixes 2018-02-07 13:23:05 +01:00
jean-emmanuel
85a381ec3e range: fix spring not taking range min/max into account 2018-02-07 13:21:52 +01:00
jean-emmanuel
c6207cacd2 xy: fix doubleTap not setting value correctly (issue #143) 2018-02-07 13:21:46 +01:00
jean-emmanuel
8c24f5e1a6 slider: code style fix 2018-02-07 13:17:29 +01:00
jean-emmanuel
3c6da8d5be log: watch theme 2018-02-07 10:30:47 +01:00
jean-emmanuel
4203ffc462 main: watch --theme paths and reload automatically 2018-02-07 10:28:22 +01:00
jean-emmanuel
d32a8a3105 dropdown: make values dynamic, drop unreleased support for sendKey and receiving key (issue #140) 2018-02-07 09:50:21 +01:00
jean-emmanuel
b6449c5a8f widget props: css: remove new lines to allow multiline anywhere in css 2018-02-06 22:26:58 +01:00
jean-emmanuel
0d1180dc25 math props: handle resultsets 2018-02-06 22:26:33 +01:00
jean-emmanuel
93aeace282 docs: reduce dynamic prop marker opacity 2018-02-06 15:48:35 +01:00
jean-emmanuel
d9823c40dc docs: add title to dynamic marker 2018-02-06 15:18:28 +01:00
jean-emmanuel
f42825314d docs: add some dynamic props markers 2018-02-06 15:16:23 +01:00
jean-emmanuel
4099dea1cf props: make panels/tab's color dynamic (trigger upper nav update and inner canvas style cache) 2018-02-06 15:09:50 +01:00
jean-emmanuel
3b394be366 docs: typos 2018-02-06 14:50:11 +01:00
jean-emmanuel
c383f588bc props: just return undefined in case of circular loop 2018-02-06 14:40:04 +01:00
jean-emmanuel
7e9db4eec3 props inheritance: tracable error when circular reference 2018-02-06 14:30:54 +01:00
jean-emmanuel
89801c7f1a js: fix dynamic props static override 2018-02-06 14:27:22 +01:00
jean-emmanuel
f5a8cabe99 js: rename ugly base class names/files 2018-02-06 14:14:43 +01:00
jean-emmanuel
eec1901372 props: store dynamic props as static variables 2018-02-06 14:08:23 +01:00
jean-emmanuel
6b5cba80e1 push: fix osc sendValue compat with /GET 2018-02-06 14:07:02 +01:00
jean-emmanuel
fa0713f079 prop inheritance: let widget register to their parent's prop updates since these can be dynamic 2018-02-06 13:39:38 +01:00
jean-emmanuel
c360cacbce package: rephrase slogan 2018-02-06 13:11:04 +01:00
jean-emmanuel
c3dc2e21f1 dropdown: long text overflow fix 2018-02-06 12:14:08 +01:00
jean-emmanuel
074c65a306 property inheritance: fix ambigous event name triggers, avoid lock in case of circular widget recreation loop 2018-02-06 12:06:56 +01:00
jean-emmanuel
058dfd4676 props inheritance: default @{widgetId} to @{widgetId._value} 2018-02-05 15:45:13 +01:00
jean-emmanuel
b14263d5c3 math props: always stringify to keep object intact and add unpack() function for formatting arrays 2018-02-05 15:09:39 +01:00
jean-emmanuel
1166922f8e editor: draggable helper zindex fix 2018-02-05 12:23:19 +01:00
jean-emmanuel
e7534a6fda docs: start documenting dynamic props 2018-02-05 12:18:56 +01:00
jean-emmanuel
96f8ffc129 state: always trigger "changed" when restoring state to avoid some edge cases fails 2018-02-05 12:17:57 +01:00
jean-emmanuel
c99633a0bb props inheritance: allow this/parent references for dynamic props 2018-02-05 11:22:31 +01:00
jean-emmanuel
67e554c494 widgets: implement some dynamic props 2018-02-05 09:45:25 +01:00
jean-emmanuel
5c5adebabb widgets: osc: allow changing server-side cached osc props without sending all of them 2018-02-04 23:41:42 +01:00
jean-emmanuel
d00eedc5f8 widget base: props: add a list of dynamic props that don't need any action when changed to take effect 2018-02-04 23:25:42 +01:00
jean-emmanuel
1e7d13c279 widgets: props: add experimental #{} syntax for anywhere mathjs expression 2018-02-04 23:19:53 +01:00
jean-emmanuel
53b3dddade property inheritance: always check 'value' prop first if it's potentially chanched (to apply it asap) 2018-02-04 17:25:58 +01:00
jean-emmanuel
9c04c778e5 property inheritance: handle prop changing in a way that can be overrided (e.g. in case reCreateWidget is not needed) 2018-02-04 16:16:29 +01:00
jean-emmanuel
606723137c log: recent changes 2018-02-03 22:12:05 +01:00
jean-emmanuel
b165bdd001 formula: do the maths even if there's no widget value to retrieve, fallback widgets' values to 0 2018-02-03 22:10:04 +01:00
jean-emmanuel
acc1358849 session: prevent loading the same multiple times in a row (lock load function) 2018-02-03 16:35:27 +01:00
jean-emmanuel
cac62b1142 crossfader: tweak layout for ios compatibility (issue #121) 2018-02-03 10:48:38 +01:00
jean-emmanuel
7dbe6ec8d1 ipc: restore long polling to websocket upgrade, seems necessary sometimes; disable compression 2018-02-03 10:22:20 +01:00
jean-emmanuel
aa963ba248 editor: increase edited widget's z-index 2018-02-03 09:50:58 +01:00
jean-emmanuel
e3b1d404a5 dev: fix css reload socket transport 2018-02-03 09:50:33 +01:00
jean-emmanuel
7c94eb2887 input; add glass effect when editable is false 2018-02-02 21:44:43 +01:00
jean-emmanuel
a80a559eb1 dropdown: add sendKey option 2018-02-02 21:27:36 +01:00
jean-emmanuel
5dee11abdc switch: wrap non array values prop in array 2018-02-02 21:27:17 +01:00
jean-emmanuel
319e5e0dd9 dropdown: test received values against values' keys/indexes / wrap non-array/object value for values prop in an array 2018-02-02 21:09:20 +01:00
jean-emmanuel
a45fde2104 dropdown: remove jquery remain that prevents showing no value selected 2018-02-02 21:08:33 +01:00
jean-emmanuel
4f1728b941 package: fix removing bad modules by preventing electron-packager to reinstall them (-> no-prune) 2018-02-02 02:07:16 +01:00
jean-emmanuel
5460c62711 travis: remove bad modules manually, somehow electron-packager doesn't exclude them in travis' env 2018-02-01 23:21:31 +01:00
jean-emmanuel
d2d9081a19 package: fix build and bump 0.23.1 2018-02-01 22:46:43 +01:00
jean-emmanuel
f2657f6155 log: last things 2018-02-01 21:31:34 +01:00
jean-emmanuel
52579bfce5 package: fix ignore list, reduce package size and fix windows long path issue 2018-02-01 21:29:32 +01:00
jean-emmanuel
37f057e010 server: use websocket directly, no long polling 2018-02-01 21:29:11 +01:00
jean-emmanuel
f8aa45f318 touchstate: send touchend message if widget is remove/recreated while interacted with 2018-02-01 15:12:42 +01:00
jean-emmanuel
bc3891b6ae docs: typo in credits 2018-02-01 11:21:05 +01:00
bordun
3ad1a27168 update gitignore 2018-02-01 10:34:21 +01:00
bordun
33df54215a modal: fix typo breaking position in scrolled tabs 2018-02-01 10:14:38 +01:00
bordun
efd7202bf5 package: rename npm build command to package, add logo to electron-window 2018-01-31 21:30:56 +01:00
bordun
a0813568ae docs: missing input widget category 2018-01-31 19:50:25 +01:00
bordun
a2b4bd48b9 html: fix favicon and set title 2018-01-31 19:00:27 +01:00
bordun
7d4064486d package: don't package uws 2018-01-31 18:48:41 +01:00
bordun
df4b098032 html: better favicon 2018-01-31 18:41:23 +01:00
bordun
45d454d389 package: 0.23 2018-01-31 18:14:26 +01:00
bordun
12534ac102 html: explicitly link favicon 2018-01-31 18:13:42 +01:00
bordun
81c2178b7b travis: build with node 9 2018-01-31 18:06:46 +01:00
bordun
96db4489b5 package: add some already required dependency that can't be found when using npm2 node4 2018-01-31 18:05:14 +01:00
bordun
7c594167a0 package: update deps 2018-01-31 18:00:22 +01:00
bordun
a75300aef9 log: range shift mod 2018-01-31 17:56:53 +01:00
bordun
fac6992cd5 range: allow moving the range (both handles) with shift key pressed (issue #114) 2018-01-31 17:51:32 +01:00
bordun
3d2b2e0586 docs: add fancy buttons, move credits to dedicated page 2018-01-31 17:29:11 +01:00
bordun
c541f3f35b docs: missing symlink 2018-01-31 14:20:16 +01:00
bordun
867ccfc2f6 clone: don't unregister clone's children value/prop watchers, just disable their reCreateWidget method 2018-01-31 12:13:44 +01:00
bordun
00cc41ddc2 input: vertical fix 2 (better compromise) 2018-01-31 12:10:18 +01:00
bordun
e227ded1ad docs: logo update 2018-01-31 12:03:09 +01:00
bordun
782dd1f673 docs: update logo and put examples in main section 2018-01-31 11:51:03 +01:00
bordun
18390be315 inputs: fix standalone vertical input focused layout 2018-01-31 11:34:14 +01:00
bordun
b2345e456b style: tweak default theme colors 2018-01-30 20:48:47 +01:00
jean-emmanuel
ee746d4d1c editor: fix click handler on sortable widget list items 2018-01-30 12:59:52 +01:00
jean-emmanuel
8fd3198c46 misc: rm space 2018-01-30 12:41:39 +01:00
jean-emmanuel
ad40de2ffb panels: add noSync option 2018-01-30 12:41:32 +01:00
jean-emmanuel
e851361992 main: rename syncTargetsto targets to avoid confusion 2018-01-30 12:38:27 +01:00
jean-emmanuel
1d7d99a9e8 osc: rename nosync opt to noSync 2018-01-30 12:38:05 +01:00
jean-emmanuel
8a67f7d861 docs: fix wrong space chars breaking headers formatting 2018-01-30 10:45:40 +01:00
jean-emmanuel
95843e59bd docs: add examples, update deps list 2018-01-30 10:44:20 +01:00
jean-emmanuel
2f61b05af1 encoder: jquery remains 2018-01-30 10:16:52 +01:00
jean-emmanuel
836ddbfcfb docs: new logo, replace browserstack svg with compressed png 2018-01-30 10:13:32 +01:00
jean-emmanuel
1eeb38367c docs: format error 2018-01-29 13:20:38 +01:00
jean-emmanuel
5e8aea0022 plot: add support for stringified objects {} to allow change specific points' coordinates (issue #130) 2018-01-29 13:16:50 +01:00
jean-emmanuel
e8a5c83b00 plots: add bars options (issue #130) 2018-01-29 11:22:55 +01:00
jean-emmanuel
122bf58057 hdpi: fix rendering issue with horizontal sliders and vertical inputs 2018-01-28 18:26:54 +01:00
jean-emmanuel
3402efe0a6 plot: receive stringified arrays (issue #130) 2018-01-28 14:11:21 +01:00
jean-emmanuel
3a46d25e9c dropdown: add subtle focus hint 2018-01-27 16:56:46 +01:00
jean-emmanuel
7c7bbf7639 lobby: no mouse focus on browse/new links 2018-01-27 16:53:20 +01:00
jean-emmanuel
93c08db3a3 keys: use patched dependency until it gets merged eventually to fix problem mentionned in issue #57 2018-01-27 16:48:51 +01:00
jean-emmanuel
d6df5793bb widgets: add setValue empty method in base class 2018-01-27 11:11:00 +01:00
jean-emmanuel
dec1c947e0 state: array value prop changes fix fix 2018-01-27 11:06:49 +01:00
jean-emmanuel
f84696ac31 state: handle array-value case when checking for "value" prop update 2018-01-27 10:46:50 +01:00
jean-emmanuel
631e83ca67 strip: don't delete setvalue and getvalue 2018-01-27 10:46:14 +01:00
jean-emmanuel
02068e6d4d log: more info on --disable-gpu 2018-01-26 13:03:23 +01:00
jean-emmanuel
edbfaf1249 log: --disable-gpu 2018-01-26 11:11:21 +01:00
jean-emmanuel
a274fabb95 osc: add support for osc typetag in widget's precision property (issue #137) 2018-01-26 11:05:39 +01:00
jean-emmanuel
27b1ede452 editor: resolve conflict between state preservation and potential "value" prop update by queuing the latters and check for changes when edition is performed (->flush) 2018-01-26 00:57:31 +01:00
jean-emmanuel
3d3b7e1568 switch: receive array properly (issue #136) 2018-01-25 23:38:44 +01:00
jean-emmanuel
941c5ba847 switchers: remove default value for "value" option, fix crossfader not including its fader value in its initial state 2018-01-25 21:46:29 +01:00
jean-emmanuel
28c4bee396 ipc: use websocket only, no xhr to ws upgrade 2018-01-25 14:11:59 +01:00
jean-emmanuel
b3ec24e28f zeroconf: display more gentle errors 2018-01-25 14:06:29 +01:00
jean-emmanuel
71d21062cf ui: fix "remove" icons 2018-01-25 12:59:26 +01:00
jean-emmanuel
81d07d46bc labels/texts: allow arbitrary white spaces 2018-01-25 12:51:50 +01:00
jean-emmanuel
c8d3529523 rgb: remove touchAddress option, it would require a specific implementation to work 2018-01-25 12:31:14 +01:00
jean-emmanuel
1950a55cf1 range/xy/multixy: fix touchstate in snap/traversing mode (send /touched before any value) 2018-01-25 12:28:03 +01:00
jean-emmanuel
7bc93922d8 events/drag: make init and end events bubble, send drag events after init in traversing mode 2018-01-25 12:13:35 +01:00
jean-emmanuel
2df088d5fc events: rename normalizeEvent (drag specific) 2018-01-25 11:14:17 +01:00
jean-emmanuel
4106e33049 tabs: don't hide the tabs that going to be shown (avoid resetting scrollstate) 2018-01-25 11:12:40 +01:00
jean-emmanuel
72ddb4d396 rgb: remove useless draw 2018-01-25 09:33:32 +01:00
jean-emmanuel
bd2e7b16ae widgets: fix several widgets not passing parent reference to their children 2018-01-25 09:06:28 +01:00
jean-emmanuel
bd86a5df0e rgb: pass parent reference to inner pad 2018-01-25 09:03:26 +01:00
jean-emmanuel
bf51aee607 jquery: some remainings [0] errors 2018-01-25 08:59:14 +01:00
jean-emmanuel
31c201fcda dropdown: delete remaining jquery syntax 2018-01-25 08:44:43 +01:00
jean-emmanuel
5b52ff4d41 docs: update docs 2018-01-25 08:42:04 +01:00
jean-emmanuel
7752ed22cb widgets: remove useless method in base class 2018-01-24 19:11:17 +01:00
jean-emmanuel
012949dbe5 widgets: trigger onRemove on private child widget to avoid memory leaks 2018-01-24 19:10:28 +01:00
jean-emmanuel
7df37e2afa events:resize: fix teardown (missing options arg) 2018-01-24 19:09:50 +01:00
jean-emmanuel
9f3c762926 events/resize: fix teardown 2018-01-24 15:36:34 +01:00
jean-emmanuel
cf43836778 editor: clean 2018-01-24 13:59:58 +01:00
jean-emmanuel
4af2729faa widgets: set root's parent (aka manager) in base class constructor to allow all events from its children to bubble up to the manager while they are parsed 2018-01-24 13:52:15 +01:00
jean-emmanuel
2abba54d59 editor: only update root shortcut button data when root is edited 2018-01-24 13:51:30 +01:00
jean-emmanuel
ff2fdab80c clone: prevent cloned widgets from recreating themselves from prop inheritance changes
-> the clone widget was already watching for its target widget-created events and updating accordingly,
   thus causing concurrent attempts to update its children, errors and memory leaks
2018-01-24 12:34:48 +01:00
jean-emmanuel
0cd1a1a33c clone: remove old useless prop 2018-01-24 12:34:23 +01:00
jean-emmanuel
370bee3cd4 widgets: clean useless onremove() actions (already done in widgets base class method 2018-01-24 12:33:34 +01:00
jean-emmanuel
9efb0f4b86 manager/widgets: make reset() remove all widgets one by one and delete event listeners to avoid leaks 2018-01-24 12:32:38 +01:00
jean-emmanuel
3f807c6aee managers/widgets: carefully remove multiple widgets at a time 2018-01-24 12:31:10 +01:00
jean-emmanuel
dfe157f54c main: fix regression with --load : don't list recent sessions when loading 2018-01-24 10:37:02 +01:00
jean-emmanuel
bf97566730 dev: prevent error on live css reload when no session is loaded 2018-01-23 19:38:11 +01:00
bordun
1c2f683468 events: just in case, fake polyfill Touch event object 2018-01-23 10:28:17 +01:00
bordun
2ff9c52f45 canvas: clean 2018-01-23 10:15:25 +01:00
bordun
6a73a4b1f2 events: don't trigger resize on invisible (height||width==0) elements 2018-01-23 09:48:43 +01:00
bordun
d19bc1b38c lobby: fix remove from history handler 2018-01-22 15:10:07 +01:00
bordun
3e720b072e icons: fix warning ico 2018-01-22 15:09:44 +01:00
jean-emmanuel
46ea30b576 js: fix formatting 2018-01-21 17:48:26 +01:00
jean-emmanuel
55720cea18 events: prevent right click context menu reliable style 2018-01-20 18:54:24 +01:00
jean-emmanuel
5a6c1658f9 debug: always throw errors, not strings 2018-01-20 18:10:40 +01:00
jean-emmanuel
82960592dc browser: don't try to preload source map, stacktracesjs handles it if needed 2018-01-20 16:40:48 +01:00
jean-emmanuel
bab6647815 debug: use stacktrace js to print better debug message 2018-01-20 16:35:34 +01:00
jean-emmanuel
75f50c044c tabs: ensure tabs are showed/hidden when setting a panels value 2018-01-20 12:22:14 +01:00
jean-emmanuel
f298d73d1d cli: fix broken --blank switch (issue #135) 2018-01-20 11:20:32 +01:00
jean-emmanuel
6bfd949e34 docs: build: link to node installation guide 2018-01-20 00:05:43 +01:00
jean-emmanuel
9ef0a508a7 main: add --disable-gpu switch (pr #133 / issue #132) 2018-01-20 00:00:41 +01:00
jean-emmanuel
dd62bf8b28 lobby: hide links focus state unless tab key is hit 2018-01-19 20:20:39 +01:00
jean-emmanuel
eb661a0a17 events: rename fake-click to fast-click 2018-01-19 19:01:36 +01:00
jean-emmanuel
410949e6e7 events: drag: don't use passive listener as scroll needs to be prevented 2018-01-19 16:04:32 +01:00
jean-emmanuel
090ce0ed70 clone: trigger resize after recloning on target's content update 2018-01-19 07:45:44 +01:00
jean-emmanuel
23f2f9151c ui: tweak some transitions 2018-01-19 07:43:34 +01:00
jean-emmanuel
f62c9ded6e sidepanel: fix fullscreen button state 2018-01-19 01:52:25 +01:00
jean-emmanuel
1c699a7800 editor: don't select root when clicking on sidepanel toggle 2018-01-19 01:34:41 +01:00
jean-emmanuel
42f2bd2932 ui: lobby tweaks & dropdown icon fix 2018-01-19 01:31:47 +01:00
jean-emmanuel
54c481751e misc: prevent minifying jquery, increase timeout before init loading popup 2018-01-19 01:15:04 +01:00
jean-emmanuel
901367677d misc: remove old resize event 2018-01-19 00:36:27 +01:00
jean-emmanuel
201e4886e3 mics: handle some circular require loop differently 2018-01-18 22:17:26 +01:00
jean-emmanuel
1c8211214b js: load mathjs properly 2018-01-18 19:46:37 +01:00
jean-emmanuel
b8a723daaf js: better loading order 2018-01-18 15:13:02 +01:00
jean-emmanuel
076e94a0c3 js/dom: fix little quirks 2018-01-18 15:12:17 +01:00
jean-emmanuel
3f4695ec3c popup: store state 2018-01-18 14:53:22 +01:00
jean-emmanuel
b9c960f8da js compile logic: fix DOM.ready caveat 2018-01-18 14:52:45 +01:00
jean-emmanuel
7d2e7843cd ui: put popup class back in utils 2018-01-18 13:09:34 +01:00
jean-emmanuel
15128b05ec ui: add a smooth transition when loading a session 2018-01-18 12:30:18 +01:00
jean-emmanuel
049a296e61 🔥 removed jquery everywhere except from editor 2018-01-18 12:23:37 +01:00
jean-emmanuel
7f61710e24 sidepanel: vanillajs fullscreen 2018-01-16 17:08:27 +01:00
jean-emmanuel
86e3487e0a sidepanel: vanilla js + some clean 2018-01-16 16:57:30 +01:00
jean-emmanuel
f145839454 events: vanillajs traversing gesture 2018-01-16 16:54:35 +01:00
jean-emmanuel
bd2e6fa102 misc: reset vanilla document ready wait... 2018-01-16 16:10:07 +01:00
jean-emmanuel
fcabbae8b2 misc: removed nosleep (leaving it to 3rd-party apps) 2018-01-16 14:00:22 +01:00
jean-emmanuel
c037f734e9 editor: fix "edit parent" context menu & clean 2018-01-16 13:09:09 +01:00
jean-emmanuel
f1febf53fb event: drag: add remove routine 2018-01-16 10:34:20 +01:00
jean-emmanuel
6fbf9f87a4 events: make some touchstart listeners passive to remove chromium warnings 2018-01-16 10:11:11 +01:00
jean-emmanuel
3757f9c1c4 log: some recent changes 2018-01-15 23:09:07 +01:00
jean-emmanuel
b7a866634c mathjs: load min file 2018-01-15 21:40:33 +01:00
jean-emmanuel
911084c513 package: deps update 2018-01-15 21:39:51 +01:00
jean-emmanuel
949ba4a645 build: make --fast faster 2018-01-15 21:32:29 +01:00
jean-emmanuel
43fd389e40 build: wrap transform to ignore big minified files -> saves space, memory & build time 2018-01-15 21:23:57 +01:00
jean-emmanuel
6283726360 events; drag: listen for touchcancel too 2018-01-15 13:58:14 +01:00
jean-emmanuel
e5cfbbc91c font: wrong font name for FontAwesome 5 2018-01-15 13:40:31 +01:00
jean-emmanuel
9d919c7ea7 events: fake-click without jquery 2018-01-14 23:41:27 +01:00
jean-emmanuel
c896b38b43 event: rewrite drag handling without jquery 🎆 2018-01-14 23:29:51 +01:00
jean-emmanuel
ed2f35d649 property inheritance: don't try to check widgetManager's props (topmost parent) (issue #129) 2018-01-14 10:55:37 +01:00
jean-emmanuel
2fa0f165de editor: missing change in widget base class breaking property inheritance (issue #128) 2018-01-14 10:45:33 +01:00
jean-emmanuel
4b8e6edec9 editor: typo 2018-01-12 19:57:20 +01:00
jean-emmanuel
b4d78d87f4 editor: rename updateDom to updateWidget 2018-01-12 15:33:29 +01:00
jean-emmanuel
6e4a3af441 widgets: getwidgetbyelement: without jquery 2018-01-12 15:07:22 +01:00
jean-emmanuel
97cacd46ea editor: fix context menu regression 2018-01-12 14:57:47 +01:00
jean-emmanuel
3c83a35c37 events: fix tab-created (trigger parent directly) 2018-01-12 14:54:41 +01:00
jean-emmanuel
8c194be517 editor/widgets: centralize dom element to widget instance conversion (-> manager method) 2018-01-12 14:47:49 +01:00
jean-emmanuel
412866e417 events: restore "tab-created" usage 2018-01-12 13:14:06 +01:00
jean-emmanuel
a4266e2e76 events: handle "widget-created" event without dom, make widget auto register their children 2018-01-12 12:39:39 +01:00
jean-emmanuel
ae74946493 examples: fix keys (mathjs array zero-indexed) 2018-01-11 14:35:53 +01:00
jean-emmanuel
b96bf4f6f8 maths: don't import minified file as prod packaging doesn't work well with it 2018-01-11 14:19:19 +01:00
jean-emmanuel
25d4318e7f package: update deps 2018-01-11 14:07:36 +01:00
jean-emmanuel
c9354f3c78 canvas: objectify canvas queue and stop the rAF loop when idle 2018-01-11 13:57:13 +01:00
jean-emmanuel
c93db8b3c6 canvas: a bit smarter framerate handling + framerate url option 2018-01-11 10:15:09 +01:00
jean-emmanuel
77b3b6be85 canvas: redraw on resize one frame earlier 2018-01-10 23:57:49 +01:00
jean-emmanuel
aced94adfd events: missing widget "change" event migrations 2018-01-10 21:00:16 +01:00
jean-emmanuel
ead0d0f981 canvas: batch all canvas operations to optimize perfs 2018-01-10 20:07:23 +01:00
jean-emmanuel
80cf05b1d2 events: 🎆 migrate from jquery custom events to non-dom event emitter ("change" event ok) 2018-01-10 20:03:29 +01:00
jean-emmanuel
66ca153a34 docs: midi: typo 2018-01-10 14:20:35 +01:00
jean-emmanuel
eff2375a4b midi: define ipcSend before any possible use 2018-01-10 14:05:36 +01:00
jean-emmanuel
a6401b63e2 editor: use a shared tmp state to prevent a fresh "value" property value to be applied 2018-01-07 22:20:02 +01:00
jean-emmanuel
667c880745 property inheritance: on "value" update only send osc if there was a change event firing osc 2018-01-05 16:59:36 +01:00
jean-emmanuel
408945e399 parser: when applying "value" property, make widget emit "change" event 2018-01-05 16:58:36 +01:00
jean-emmanuel
e4fbb55d09 editor: handle "value" prop editing gracefully (just dont restore the widget's state, as the parser apply one already) 2018-01-05 16:57:19 +01:00
jean-emmanuel
17db9f5d77 doc: property inheritance 2018-01-05 16:49:18 +01:00
jean-emmanuel
370c73c7aa property inheritance: when updating "value", don't send osc if initial event is a widget sync-only "change" 2018-01-05 16:32:59 +01:00
jean-emmanuel
d86375f536 property inheritance: don't recreate the widget if only prop "value" has changed (call setValue)
-> this makes reverse inheritance work for a container's "value" property targetting its own children
2018-01-05 16:21:02 +01:00
jean-emmanuel
3cf45e9102 widgets: move widget instance dom reference storing to constructor 2018-01-05 16:19:49 +01:00
jean-emmanuel
dff4e252d3 editor: context menu: unfocus non-submenu item on mouseout 2018-01-04 22:56:23 +01:00
jean-emmanuel
ee7d167c53 editor: fix context menu regression (position correction) 2018-01-04 20:42:49 +01:00
jean-emmanuel
dda61f4641 editor: keep context menu items open when the mouse leaves 2018-01-04 20:12:46 +01:00
jean-emmanuel
69a4623dfd switch: log, doc and indentation fix 2018-01-04 14:56:36 +01:00
jean-emmanuel
c544a37434 switch: rename show_values to showValues and clean 2018-01-04 14:45:54 +01:00
jean-emmanuel
040c462ae8
Merge pull request #124 from cyberic99/master
Allow switch widgets to display "key: value" instead of the default "key"
2018-01-04 14:44:14 +01:00
cyberic99
f36664718d Allow switch widgets to display "key: value" instead of the default "key" 2018-01-04 11:09:35 +01:00
jean-emmanuel
532ba56635 log: prop inheritance 2018-01-04 09:20:26 +01:00
jean-emmanuel
d753646118 property inheritance: watch for widgetid creation event even if none found initially in case it gets created after 2018-01-04 09:16:28 +01:00
jean-emmanuel
e874cc7f96 property inheritance: trigger 'widget-created' after widget manager registration avoid ignoring widgets in resolveProp 2018-01-04 09:15:21 +01:00
jean-emmanuel
f9dc4f3d9d formula/mathjs: re-fix array to zero-based index instead of one-based index 2018-01-03 11:34:15 +01:00
jean-emmanuel
f2be501509 property inheritance: allow referring to a parent using its and fix infinite loop when editing (issue #122) 2018-01-03 10:24:35 +01:00
jean-emmanuel
aceb8e175d property inheritance: don't add eventlistener when not needed 2018-01-02 22:09:28 +01:00
jean-emmanuel
12d134d8a2 log: latest changes 2018-01-02 20:23:20 +01:00
jean-emmanuel
cfe0fe994f v8: fix some js optimization with the arguments object 2018-01-02 18:24:24 +01:00
jean-emmanuel
677d67f8e3 widgets: missing precision parameter in deepCopy 2018-01-02 15:16:26 +01:00
jean-emmanuel
f4cdf11c7f text: apply target's precision to value 2018-01-02 13:59:06 +01:00
jean-emmanuel
d2d3faf43d plots: emit change event to allow synchronization with other widgets 2018-01-02 13:55:02 +01:00
jean-emmanuel
43d6f2df0b property inheritance: fix geometry not applying the rules 2018-01-02 12:08:32 +01:00
jean-emmanuel
98e287b9e8 property inheritance: apply precision when retrieving a widget value, fix precision implementation mistake in getValue 2018-01-02 12:08:25 +01:00
jean-emmanuel
e6a6a38865 widgets: put input's deepCopyWithPrecision in widgets base class 2018-01-02 11:51:56 +01:00
jean-emmanuel
f6fb539e83 property inheritance: optimize and add support for special prop "_value" to get dynamic value (issue #122) 2018-01-02 11:50:09 +01:00
jean-emmanuel
dca301ae2e formula/keys: return arrays, not matrices 2017-12-31 14:56:10 +01:00
jean-emmanuel
840be72b2e example: add keys 2017-12-31 13:15:26 +01:00
jean-emmanuel
f25346015c keys: add missing dep 2017-12-31 12:59:53 +01:00
jean-emmanuel
ef2de79613 docs: fix wrong space char 2017-12-31 12:55:41 +01:00
jean-emmanuel
ca6eb09a48 docs: add keys docs 2017-12-31 12:53:53 +01:00
jean-emmanuel
891d1092f5 keys; default repeat to true 2017-12-31 12:53:36 +01:00
jean-emmanuel
1d221b7613 inputs: add keys widget (wip) (issue #57) 2017-12-31 12:41:41 +01:00
jean-emmanuel
2239c06bbb formula: fix multiline expression parsing 2017-12-31 12:40:37 +01:00
jean-emmanuel
fd1c34928d package: update some deps 2017-12-31 12:40:19 +01:00
jean-emmanuel
050988b6d1 package: get source-map from npm, don't include it in sources 2017-12-30 11:30:03 +01:00
jean-emmanuel
e842044652 travis: remove arm64 build until electron stable provides it 2017-12-28 14:38:43 +01:00
jean-emmanuel
b4d361f28a package: O.22.0 2017-12-28 14:12:43 +01:00
jean-emmanuel
e733f3e556 log: typo 2017-12-28 14:12:09 +01:00
jean-emmanuel
d66277866a led: set inner shadow border radius to inherit 2017-12-28 13:47:50 +01:00
jean-emmanuel
8cdf821926 server/osc: allow overriding all osc props, fix /GET for widgets without address/target (issue #120) 2017-12-28 10:22:54 +01:00
jean-emmanuel
caf412f16b range: fix relative dragging error outside of range boundaries 2017-12-27 21:51:53 +01:00
jean-emmanuel
0c12dfe6fd range: set init value to range min/max 2017-12-27 20:28:09 +01:00
jean-emmanuel
8b0f271419 examples: add a more complete widget showcase 2017-12-27 16:48:56 +01:00
jean-emmanuel
b5c8427011 docs: add a note concerning https 2017-12-27 10:31:11 +01:00
jean-emmanuel
96fd5effdc remote control: /EDIT/GET add support for address/preArgs widget targetting (issue #56) 2017-12-26 15:31:43 +01:00
jean-emmanuel
6d0947aea9 push: slightly fade label when active 2017-12-26 15:16:56 +01:00
jean-emmanuel
b3c82251f9 plots: testing a glass effect to differentiate non-interactable widgets 2017-12-26 15:16:03 +01:00
jean-emmanuel
8b59296010 inputs: reset size to 100% (was 108%) 2017-12-26 15:15:00 +01:00
jean-emmanuel
02c39debf2 leds: tweak css 2017-12-26 15:14:24 +01:00
jean-emmanuel
7b2da56bd1 example: ardour tiny line height fix 2017-12-26 15:13:11 +01:00
jean-emmanuel
83e338a183 sidepanel: fix broken quicksave (regression) 2017-12-25 09:01:11 +01:00
jean-emmanuel
993d3c6914 sliders: fix regression introduced with range widget 2017-12-22 17:47:18 +01:00
jean-emmanuel
bdfe6f6bb9 sliders/pads: holding Ctrl now enables high precision dragging with the mouse and bypasses the snap option 2017-12-22 13:16:56 +01:00
jean-emmanuel
56a05b61be mouse/drag: high precision (x8) dragging with ctrlKey pressed 2017-12-22 12:03:17 +01:00
jean-emmanuel
87903a484e input: rename prop horizontal to vertical 2017-12-21 13:16:06 +01:00
jean-emmanuel
41f77d8ffe example/ardour: add some swag 2017-12-21 13:09:37 +01:00
jean-emmanuel
c24fba0d07 input: fix horizontal mode when focused 2017-12-21 12:57:01 +01:00
jean-emmanuel
0be383c79d remote control: add /SET method (issue #56) 2017-12-21 12:38:45 +01:00
jean-emmanuel
e2ad561010 log: /GET, /EDIT/GET 2017-12-21 08:50:44 +01:00
jean-emmanuel
0986d2ae9d doc: typo 2017-12-21 08:47:28 +01:00
jean-emmanuel
c89eb4f84f docs: tiny typo fix 2017-12-21 08:46:16 +01:00
jean-emmanuel
f91b4c1ec3 osc: allow overriding preArgs value 2017-12-21 08:06:04 +01:00
jean-emmanuel
d7ce10c5e2 remote control: make /GET reply to /GET (with widget address in args) (issue #56) 2017-12-21 07:36:34 +01:00
jean-emmanuel
1849f2a6a9 remote control: /GET: disable broadcasting if target in invalid 2017-12-21 07:11:41 +01:00
jean-emmanuel
a263233bbd remote control: add /EDIT/GET, and a nosync flag in server/osc/sending method to prevent broadcasting 2017-12-21 07:09:11 +01:00
jean-emmanuel
185d4c6b80 remote control: rename /EDIT_SOFT to /EDIT/MERGE 2017-12-21 06:43:19 +01:00
jean-emmanuel
c904b941ba remote control: remove /EXEC 2017-12-21 06:39:55 +01:00
jean-emmanuel
ce7b6750c9 osc: don't choke on widgets without target prop (issue #56) 2017-12-20 10:59:19 +01:00
jean-emmanuel
cd05e21d47 osc: implementing /GET (issue #56) 2017-12-19 20:24:58 +01:00
jean-emmanuel
93fa6b2f72 client:osc: take all args for widget address+preArgs matching 2017-12-19 18:41:04 +01:00
jean-emmanuel
e5a123977f gui: add explicit edit shortcuts (attempt to fix OSX issue #116) 2017-12-19 14:19:31 +01:00
jean-emmanuel
d665222d9f engine: downgrade to stable electrono 2017-12-19 14:06:36 +01:00
jean-emmanuel
dea2b19ad5 editor: fix textareas scrollbar cursor 2017-12-19 13:35:44 +01:00
jean-emmanuel
57133f35e1 log: better log 2017-12-19 11:38:46 +01:00
jean-emmanuel
1c3389d736 image: add repeat option; add docs
text: fix default value (retreive value prop)
2017-12-19 09:56:47 +01:00
jean-emmanuel
e1e54c038b plots: add image widget (#64) 2017-12-18 21:38:42 +01:00
jean-emmanuel
e65d287907 main: resolve to absolute path when adding session to history 2017-12-18 09:48:18 +01:00
jean-emmanuel
c1dc378603 range: remove some weird things 2017-12-17 19:48:36 +01:00
jean-emmanuel
a432d52a68 doc: range's split prop 2017-12-17 19:47:22 +01:00
jean-emmanuel
6003add49a range: doc and log 2017-12-17 19:45:56 +01:00
jean-emmanuel
ec1434a651 range: add input (issue #114)
fader: fix vertical+compact focused input size
2017-12-17 13:49:51 +01:00
jean-emmanuel
30b55b6652 range: add split opt 2017-12-15 09:10:36 +01:00
jean-emmanuel
51eb674cd3 range: remove unnused options 2017-12-15 09:08:18 +01:00
jean-emmanuel
0aefc2dfab sliders: add range widget (testing) (issue #114) 2017-12-15 09:06:48 +01:00
jean-emmanuel
6c292e1d49 log: typo 2017-12-14 12:45:55 +01:00
jean-emmanuel
bc3d6db62f log: last changes 2017-12-14 12:43:39 +01:00
jean-emmanuel
1d1281e1d8 cli: add --instance-name option to differenciate mulitple instances in zeroconf networks (issue #118) 2017-12-14 12:38:23 +01:00
jean-emmanuel
dc01b51128 server: allow resolving absolute file paths (issue #64) 2017-12-14 12:12:29 +01:00
jean-emmanuel
db81e18443 zeroconf: typo 2017-12-10 22:49:01 +01:00
jean-emmanuel
d69d20b6e4 zeroconf: 1st implementation try (http.tcp ok, osc.udp not sure) (issue #118) 2017-12-10 15:10:34 +01:00
jean-emmanuel
95ae2f50e8 log: 0.21.3 2017-12-09 15:55:25 +01:00
jean-emmanuel
6fb8bf9438 package: v0.21.3 2017-12-09 15:52:22 +01:00
jean-emmanuel
9d210294ce session/state: fix regression breaking session/state save-to-file 2017-12-09 15:51:29 +01:00
jean-emmanuel
60fd409b75 fonts: update fontawesome (v5) 2017-12-09 15:51:21 +01:00
jean-emmanuel
17cde3a3df package: 0.21.2 2017-12-07 21:44:55 +01:00
jean-emmanuel
3279223e75 package: missing babel dep 2017-12-07 21:44:33 +01:00
jean-emmanuel
9bf7428108 package: update deps 2017-12-07 21:36:32 +01:00
jean-emmanuel
1f75b25996
Merge pull request #117 from amir-arad/patch-1
allow newer versions of node
2017-12-07 11:45:43 +01:00
Amir Arad
0e078b2c4f
allow newer versions of node 2017-12-04 23:07:13 +02:00
342 changed files with 14017 additions and 35286 deletions

13
.babelrc Normal file
View file

@ -0,0 +1,13 @@
{
"presets": [
["@babel/env", {
"targets": {
"ios": "10.3",
"chrome": "60"
},
"useBuiltIns": "usage",
"corejs": 3
}]
],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
}

View file

@ -1,3 +0,0 @@
node_modules
app
sessions

1
.eslintignore Normal file
View file

@ -0,0 +1 @@
jquery.*.js

View file

@ -1,18 +1,24 @@
{
"parser": "babel-eslint",
"env": {
"es2021": true,
"es6": true,
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"no-prototype-builtins": "off",
"no-console": "off",
"no-undef": "off",
"no-useless-escape": "off",
"no-self-assign": "off",
"no-fallthrough": "off",
"no-empty": [
"error",
{
@ -46,12 +52,14 @@
],
"quotes": [
"error",
"single",
{ "allowTemplateLiterals": true }
"single"
],
"semi": [
"error",
"never"
]
},
"globals": {
"module": true
}
}

View file

@ -1,24 +0,0 @@
name: Build
on: [workflow_dispatch]
jobs:
Deploy:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: 'true'
- name: Docker Login
run: |
docker login -u riksolo -p ${{secrets.CONTAINER_REGISTRY_TOKEN}} git.riksolo.com
- name: Build and push
run: |
docker build -t git.riksolo.com/riksolo/open-stage-control:latest -t git.riksolo.com/riksolo/open-stage-control:${{github.sha}} .
docker push git.riksolo.com/riksolo/open-stage-control:latest
docker push git.riksolo.com/riksolo/open-stage-control:${{github.sha}}

21
.github/ISSUE_TEMPLATE/bug.md vendored Normal file
View file

@ -0,0 +1,21 @@
---
name: Bug report
about: Report a bug in Open Stage Control
title: '[Bug] '
---
<!--
Please provide as much contextual informations as possible:
- Open Stage Control version (or commit if built from sources)
- Operating system
- Open Stage Control options
- Client type (built-in or external chromium/chrome browser) and version
- Session file (can be uploaded after adding the .txt extension)
- Custom module
- Server logs (from the terminal or the launcher's console)
- Client logs (hit F12 in chromium/chrome to open the console)
- Screenshot
-->

5
.github/ISSUE_TEMPLATE/feature.md vendored Normal file
View file

@ -0,0 +1,5 @@
---
name: Feature request
about: Suggest an idea for Open Stage Control
title: '[Feature] '
---

5
.github/SUPPORT.md vendored Normal file
View file

@ -0,0 +1,5 @@
## How do I get help ?
- If you found a bug, open a bug report
- If you have a suggestion, open a feature request
- If you have a question or want to share your experience with other users, please use the dedicated forum at https://openstagecontrol.discourse.group/

32
.gitignore vendored
View file

@ -1,17 +1,15 @@
# npmg
node_modules/
# build
/app/
# python/midi build
src/server/python/*
!src/server/python/*.py
# docs build
src/docs/widgets-reference.js
properties-reference.md
# packaging
dist/
sessions/
node_modules
dist
app/LICENSE
app/assets/fonts/*
app/assets/*.css*
app/assets/*.png
app/client/*.js*
app/launcher/*.js*
app/server/*
app/docs/*
!app/docs/.htaccess
!app/server/.keep
app/package.json
package-lock.json
*.pyc

51
.travis.yml Normal file
View file

@ -0,0 +1,51 @@
anHsudo: required
dist: bionic
language: node_js
node_js:
- "12"
before_install:
- sudo dpkg --add-architecture i386
- sudo apt-get update -qq
- sudo apt-get install -qq wine-stable fakeroot xvfb python3.8 python3-pip python3-setuptools
- sudo python3 -m pip install mkdocs-material
install: npm install
before_deploy:
deploy:
provider: releases
api-key:
secure: Nb4qJlmLEE2/ETHEYe8V8eGI08d4GuE5kdQef5ZnB4PrstppLlAjShv5E4DNTsyalMOMDjpw9v+9aQNzxGiGv+lCVVL5oFvqvDpcYusRuF9Qua7oJtFh+5FvjgC1DDjauk5Z7WQWMvzWwfNmqbY/lxPbA4zVy4kdYkGV/8WnzA9AL5fU0ZU8gDsFjcr9Pz81XDsDXtPH/+iMuclMsEl8V/ZuswWlZaFn1Jnb1tcGC5WUCsuNQo/+gGfSK6Qcf9AKsIrOjdzi55s4jqH1N7P/kKi4a2tWUTwmSLrOxdUmSYjXVOxMu0cAEnHSeYREv/5o6J0MbfQrDoxh2y5roPZzqE+FAuFLl+b/+bYlW0mrfYfSuP/VX9LYh5JSvrhN7rZuUfMqS1iM7c9Dx8sZadMnvYEAAJhH8IV/9SkuRa/8QoIpXf7YB9v1jERxs4gk5CPT5Aml6nY/CvMWiEQ/wJhC7iZd/QRHshgfNLfAGlbbNU2KP6ZsVAGD601fyST/8neoQqLqS9mteOr1QME3c5EFw+XaauIQNYZSl+wJr8Y1YMcKY+fbJqqR0TXkbsoxFgV9PRf/4ZCjIJYtmelQVlM7j20XavOHM/Ko6/y7a3pohFz+ql3YR9jGF5XW2foXb4+e6DwTGL91/f75hYcsvXxoKbeaBjWpaSK8532UTeVkhPM=
file_glob: true
file: dist/packages/*
skip_cleanup: true
on:
tags: true
before_deploy:
- export VERSION=$(sed -nE 's/^\s*"version":\ "(.*?)",$/\1/p' package.json)
- npm run build-docs
- npm run package -- --all
- npm run package-node
- npm run deb32
- npm run deb64
- npm run debarm
- cd dist
- mkdir packages
- mv open-stage-control-linux-ia32/*.deb packages/open-stage-control-${VERSION}-i386.deb
- mv open-stage-control-linux-x64/*.deb packages/open-stage-control-${VERSION}-amd64.deb
- mv open-stage-control-linux-armv7l/*.deb packages/open-stage-control-${VERSION}-armv7l.deb
- mv open-stage-control-node open-stage-control-${VERSION}-node
- mv open-stage-control-win32-ia32 open-stage-control-${VERSION}-win32-ia32
- mv open-stage-control-win32-x64 open-stage-control-${VERSION}-win32-x64
- mv open-stage-control-linux-ia32 open-stage-control-${VERSION}-linux-ia32
- mv open-stage-control-linux-x64 open-stage-control-${VERSION}-linux-x64
- mv open-stage-control-linux-armv7l open-stage-control-${VERSION}-linux-armv7l
- mv open-stage-control-linux-arm64 open-stage-control-${VERSION}-linux-arm64
- zip -q -r --symlinks packages/open-stage-control-${VERSION}-osx.zip open-stage-control-darwin-x64/open-stage-control.app
- zip -q -r packages/open-stage-control-${VERSION}-node.zip open-stage-control-${VERSION}-node
- zip -q -r packages/open-stage-control-${VERSION}-win32-ia32.zip open-stage-control-${VERSION}-win32-ia32
- zip -q -r packages/open-stage-control-${VERSION}-win32-x64.zip open-stage-control-${VERSION}-win32-x64
- zip -q -r packages/open-stage-control-${VERSION}-linux-ia32.zip open-stage-control-${VERSION}-linux-ia32
- zip -q -r packages/open-stage-control-${VERSION}-linux-x64.zip open-stage-control-${VERSION}-linux-x64
- zip -q -r packages/open-stage-control-${VERSION}-linux-armv7l.zip open-stage-control-${VERSION}-linux-armv7l
- zip -q -r packages/open-stage-control-${VERSION}-linux-arm64.zip open-stage-control-${VERSION}-linux-arm64
- ls packages
- cd ..

View file

@ -1,7 +0,0 @@
Anything AI-related is strictly prohibited from this project.
If you think this project could benefit from a smart use of AI, think harder.
Think harder about the (hundreds of) millions of data workers that make your AI "smart", not to mention the monumental ecological waste it represents.
If you still think this way, don't tell me.

File diff suppressed because it is too large Load diff

View file

@ -1,29 +0,0 @@
FROM node:24-alpine
RUN apk --no-cache add git
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
RUN mkdir /sessions
RUN touch /sessions/session.json
EXPOSE 8080
ENV ELECTRON_RUN_AS_NODE=1
ENV SEND="127.0.0.1:8080"
ENV LOAD="/sessions/main.json"
ENV PORT=8080
ENV OSC_PORT=8080
ENV READ_ONLY=false
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

1
Procfile Normal file
View file

@ -0,0 +1 @@
web: node app/ -n -p $PORT --remote-saving 127.0.0.1 $OPTIONS

View file

@ -4,18 +4,9 @@ Open Stage Control
*Libre and modular OSC / MIDI controller*
- Website: https://openstagecontrol.ammd.net/
- Forum: https://openstagecontrol.discourse.group/
- IRC: Libera.chat #openstagecontrol
https://openstagecontrol.ammd.net/
----
Docker additions by Rik Berkelder.
mount `/sessions` directory. default session file is created and loaded there.
---
Copyleft © Jean-Emmanuel Doucet 2014-2025.
This program is a free software released under the [GNU/GPL3](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/LICENSE) license.
Copyleft © Jean-Emmanuel Doucet @ [AMMD](http://ammd.net) 2014-2020.
This program is a free software released under the [GNU/GPL3](ttps://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE) license.

2
app/assets/themes/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

2
app/client/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

1
app/docs/.htaccess Normal file
View file

@ -0,0 +1 @@
ErrorDocument 404 /404.html

1
app/index.js Normal file
View file

@ -0,0 +1 @@
require('./server/open-stage-control-server')

2
app/launcher/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

0
app/server/.keep Normal file
View file

View file

@ -1,49 +0,0 @@
{
"createdWith": "Open Stage Control",
"version": "1.31.2",
"type": "session",
"content": {
"type": "root",
"lock": false,
"id": "root",
"visible": true,
"interaction": true,
"comments": "",
"width": "auto",
"height": "auto",
"colorText": "auto",
"colorWidget": "auto",
"alphaFillOn": "auto",
"borderRadius": "auto",
"padding": "auto",
"html": "",
"css": "",
"colorBg": "auto",
"layout": "default",
"justify": "start",
"gridTemplate": "",
"contain": true,
"scroll": true,
"innerPadding": true,
"tabsPosition": "top",
"hideMenu": false,
"variables": "@{parent.variables}",
"traversing": false,
"value": "",
"default": "",
"linkId": "",
"address": "auto",
"preArgs": "",
"typeTags": "",
"decimals": 2,
"target": "",
"ignoreDefaults": false,
"bypass": false,
"onCreate": "",
"onValue": "",
"onTouch": "",
"onPreload": "",
"widgets": [],
"tabs": []
}
}

View file

@ -1,8 +0,0 @@
services:
app:
build: .
volumes:
- ./sessions:/sessions
ports:
- 8080:8080

View file

@ -1,10 +0,0 @@
#!/bin/sh
test -f "$LOAD" || cp "basesession.json" "$LOAD"
exec node app/index.js \
--port $PORT \
--osc-port $OSC_PORT \
--send $SEND \
--load $LOAD \
--read-only=$READ_ONLY

9718
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
"name": "open-stage-control",
"productName": "Open Stage Control",
"description": "Libre and modular OSC / MIDI controller",
"version": "1.31.2",
"version": "1.3.0",
"author": {
"name": "Jean-Emmanuel Doucet",
"email": "jean-emmanuel@ammd.net"
@ -15,96 +15,95 @@
],
"repository": {
"type": "git",
"url": "https://framagit.org/jean-emmanuel/open-stage-control"
"url": "https://github.com/jean-emmanuel/open-stage-control"
},
"homepage": "http://openstagecontrol.ammd.net/",
"license": "GPL-3.0",
"dependencies": {
"@babel/core": "7.18.0",
"@babel/preset-env": "7.18.0",
"@electron/packager": "18.4.4",
"@electron/remote": "2.1.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"ace-builds": "1.39.0",
"ansi-html": "0.0.9",
"@babel/core": "7.10.3",
"@babel/plugin-proposal-object-rest-spread": "7.10.3",
"@babel/polyfill": "7.10.1",
"@babel/preset-env": "7.10.3",
"ansi-html": "0.0.7",
"babel-eslint": "10.1.0",
"babelify": "10.0.0",
"balanced-match": "2.0.0",
"bonjour": "git+https://framagit.org/jean-emmanuel/bonjour.git",
"chokidar": "3.5.3",
"chroma-js": "2.4.2",
"core-js": "3.22.5",
"bonjour": "github:jean-emmanuel/bonjour",
"browserify": "16.5.1",
"chroma-js": "2.1.0",
"core-js": "3.6.5",
"cpr": "3.0.1",
"deep-extend": "0.6.0",
"electron-localshortcut": "3.2.1",
"electron-packager": "14.2.1",
"electron-packager-plugin-non-proprietary-codecs-ffmpeg": "1.0.2",
"env-paths": "2.2.1",
"eslint": "8.16.0",
"fastdom": "1.0.10",
"file-saver": "2.0.5",
"http-auth": "4.1.9",
"json5": "2.2.1",
"env-paths": "2.2.0",
"eslint": "7.3.1",
"exorcist": "1.0.1",
"file-saver": "2.0.2",
"gyronorm": "2.0.6",
"http-auth": "4.1.2",
"json5": "2.1.3",
"jsondiffpatch": "0.4.1",
"keyboardjs": "2.6.4",
"minimatch": "5.1.0",
"nanohtml": "1.10.0",
"nanoid": "3.3.4",
"nanomorph": "5.4.3",
"node-forge": "1.3.1",
"node-mouse": "0.0.2",
"nodemon": "2.0.16",
"nosleep.js": "0.12.0",
"open": "8.4.0",
"osc": "2.4.5",
"python-shell": "3.0.1",
"qrcode": "1.5.1",
"keyboardjs": "2.6.3",
"licensify": "3.1.3",
"loop-protect": "github:jean-emmanuel/loop-protect#v1.0.1",
"minimatch": "3.0.4",
"nanohtml": "1.9.1",
"nanoid": "2.1.11",
"nanomorph": "5.4.1",
"node-forge": "0.10.0",
"node-sass": "4.14.1",
"nodemon": "2.0.4",
"nosleep.js": "0.11.0",
"open": "7.0.4",
"osc": "2.4.1",
"python-shell": "2.0.1",
"replacestream": "4.0.3",
"rollup": "4.50.1",
"rollup-plugin-copy": "3.5.0",
"rollup-plugin-license": "^3.6.0",
"rollup-plugin-node-externals": "^8.1.1",
"sass": "1.89.2",
"sanitize-html": "1.27.0",
"scope-css": "1.2.1",
"screenfull": "5.2.0",
"semver": "7.3.7",
"send": "0.18.0",
"sortablejs": "1.15.0",
"source-map-support": "0.5.21",
"screenfull": "5.0.2",
"semver": "7.3.2",
"send": "0.17.1",
"sortablejs": "1.10.2",
"source-map-support": "0.5.19",
"stacktrace-js": "2.0.2",
"ua-parser-js": "2.0.7",
"ws": "8.6.0",
"yargs": "17.5.1"
"through": "2.3.8",
"uglifyify": "5.0.2",
"webworkify": "1.5.0",
"ws": "7.3.0",
"yargs": "15.3.1"
},
"optionalDependencies": {
"electron": "36.9.5",
"electron-installer-debian": "3.1.0",
"electron-installer-redhat": "git+https://framagit.org/jean-emmanuel/electron-installer-redhat.git"
"electron": "7.1.11",
"electron-installer-debian": "3.0.0"
},
"scripts": {
"postinstall": "echo '\\033[36m=> Dependencies installed successfully. Run \"npm run build\" to build the assets.\\033[0m\n'",
"start": "electron app/",
"build": "npm run build-css && npm run build-js && echo '\\033[36m=> JS and CSS assets built successfully. Run \"npm run package\" to build an executable or \"npm start\" to run the app.\\033[0m\n'",
"build": "npm run build-css && npm run build-js && node scripts/copy-assets.js && echo '\\033[36m=> JS and CSS assets built successfully. Run \"npm run package\" to build an executable or \"npm start\" to run the app.\\033[0m\n'",
"package": "node scripts/package.js",
"package-rpi": "node scripts/package.js --old-rpi",
"package-node": "node scripts/package-node.js",
"deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/ --icon resources/images/logo.png",
"rpm64": "electron-installer-redhat --src dist/open-stage-control-linux-x64/ --arch x86_64 --dest dist/ --icon resources/images/logo.png",
"deb32": "electron-installer-debian --src dist/open-stage-control-linux-ia32/ --arch i386 --dest dist/open-stage-control-linux-ia32/ --icon resources/images/logo.png",
"deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png",
"debarm": "electron-installer-debian --src dist/open-stage-control-linux-armv7l/ --arch armv7l --dest dist/open-stage-control-linux-armv7l/ --icon resources/images/logo.png",
"build-css": "node scripts/build-css.js",
"watch-css": "nodemon --watch src/scss -e scss -x \"npm run build-css -- --reload\"",
"build-js": "npm run build-launcher-js && npm run build-client-js && npm run build-server-js",
"build-client-js": "rollup -c scripts/client.rollup.config.js",
"build-client-js": "node scripts/build-client.js",
"build-launcher-js": "node scripts/build-launcher.js",
"build-server-js": "node scripts/build-server.js",
"watch-client": "npm run build-client-js -- --watch",
"build-server-js": "rollup -c scripts/server.rollup.config.js",
"watch-server": "npm run build-server-js -- --watch",
"build-launcher-js": "rollup -c scripts/launcher.rollup.config.js",
"watch-launcher": "npm run build-launcher-js -- --watch",
"build-docs": "rollup -c scripts/docs.rollup.config.js && node src/docs/widgets-reference.js > resources/docs/docs/widgets/properties-reference.md && cd resources && python3 -m mkdocs build",
"lint": "eslint src --ext mjs",
"test": "npm run lint && npm run build"
"watch-browser": "npm run build-client-js -- --watch",
"watch-css": "nodemon --watch src/scss -e scss -x \"npm run build-css -- --reload\"",
"watch-server": "nodemon --watch src/server/ -e js -x \"npm run build-server-js\"",
"watch-launcher": "nodemon --watch src/launcher/ -e js -x \"npm run build-launcher-js\"",
"build-docs": "node scripts/build-widgets-reference.js > resources/docs/docs/widgets/properties-reference.md && cd resources && python3 -m mkdocs build",
"test": "eslint src && npm run build && node tests/test.js"
},
"engines": {
"node": ">=16"
"node": ">=6"
},
"devDependencies": {
"watchify": "3.11.1"
}
}

View file

@ -1 +0,0 @@
../../../CHANGELOG.md

View file

@ -5,21 +5,12 @@ Client options can be set either with the server's `--client-options` option, or
|----|----|----|----|
| hdpi | 1 / 0 | 0 | enable high resolution canvas |
| forceHdpi | number | 0 | force canvas scaling (ignore `hdpi`) |
| doubleTap | number | 375 | sets the double tap/click time threshold in milliseconds |
| doubletab | number | 375 | sets the double tap/click time threshold in milliseconds |
| zoom | number | 1 | sets the initial zoom |
| framerate | number | 60 | limit canvas drawing framerate |
| desyncCanvas | number | 0 | set to 1 to enable desynchronized canvas (may improve rendering performances) |
| lang | string | *system_default* | use a different language than the default if available (available languages: en, fr, de, pl) |
| consoleLength | number | 300 | sets the maximum number of log messages in the client's console |
| lang | string | *system_default* | use a different language than the default if available (available languages: en, fr) |
| id | string | *random_id* | client's unique id (use with caution: two clients should never have the same id) |
| usePercents | 1 / 0 | 0 | sets the editor's "relative units" option |
| noFocus | 1 / 0 | 0 | (built-in client only) prevent the client window from taking focus |
| clientSync | 1 / 0 | 1 | set to 0 to prevent the client from syncing with other clients |
| altTraversing | 1 / 0 | 0 | set to 1 to enable an alternative traversing behavior for toggle buttons (traversing gestures on toggle buttons will change their values in only one way depending on the first touched button's state) |
| virtualKeyboard | 1 / 0 | 0 | (desktop only) set to 1 to enable the virtual keyboard by default |
| notifications | 1 / 0 | 1 | set to 0 to hide notifications by default |
| title | string | '' | replace window title |
| noWarning | 1 / 0 | 0 | set to 0 to disable unsaved session warnings |
Example:

View file

@ -1,17 +1,19 @@
## License
Copyleft © Jean-Emmanuel Doucet 2014-2025.
This program is a free software released under the [GNU/GPL3](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/LICENSE) license.
Copyleft © Jean-Emmanuel Doucet @ [AMMD](http://ammd.net) 2014-2020.
This program is a free software released under the [GNU/GPL3](https://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE) license.
## Dependencies
Open Stage Control relies on several other free softwares listed in [package.json](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/package.json).
Open Stage Control relies on several other free softwares:
The default theme was based on [Nord](https://www.nordtheme.com/), some UI components were inspired by the text editor formerly known as Atom (now [Pulsar](https://pulsar-edit.dev/)).
https://github.com/jean-emmanuel/open-stage-control/network/dependencies
The default theme is based on [Nord](https://www.nordtheme.com/), some UI components are inspired by the [Atom](https://atom.io/) text editor.
## Contributors
[Jean-Emmanuel](https://framagit.org/jean-emmanuel), [MartinHN](https://github.com/MartinHN), [Eric Theise](https://github.com/erictheise), [danielappelt](https://github.com/erictheise), [ritschwumm](https://github.com/ritschwumm), [matthijskooijman](https://github.com/matthijskooijman), [WillyKaze](https://github.com/WillyKaze), [stefanboca](https://github.com/stefanboca), [pixelnerve](https://github.com/pixelnerve), [AdamAdamsMusic](https://github.com/AdamAdamsMusic), [wicast](https://github.com/wicast), [kdallafior](https://github.com/kdallafior), [brunetton](https://github.com/brunetton), [cyberic99](https://github.com/cyberic99), [kdejaeger](https://github.com/kdejaeger), [trebmuh](https://github.com/trebmuh), [MagnusReichel](https://github.com/MagnusReichel), [jpcima](https://github.com/jpcima), [t1st3](https://github.com/t1st3")
https://github.com/jean-emmanuel/open-stage-control/graphs/contributors
## Infrastructure supports
@ -37,4 +39,4 @@ Discourse provides the community forum.
<img src="/img/sponsors/browserstack.png" width="140px"/>
</a>
BrowserStack provides remote browsers for debugging.
BrowserStack provides remote browsers for debbuging.

View file

@ -1,35 +1,17 @@
# Custom module
Using the server's `custom-module` option, users can load a custom javascript module that filters incoming and outgoing OSC / MIDI messages.
## Writing a custom module
Using the `-c / --custom-module` command-line switch, users can load a javascript file to tune the way Open Stage Control behaves regarding osc.
```js
// Do whatever you want
// initialize variables
// declare functions
// listen to app events
// load modules
// etc
// Do whatever you want, initialize some variables, declare some functions, ...
module.exports = {
init: function(){
// this will be executed once when the osc server starts after
// connections are set up
// it is called for the main module only
},
stop: function(){
// this will be executed once when the osc server stops
// it is called for the main module only
},
reload: function(){
// this will be executed after the custom module is reloaded
// it is called for the main module only
// this will be executed once when the osc server starts
},
oscInFilter:function(data){
@ -58,12 +40,7 @@ module.exports = {
// return data if you want the message to be and sent
return {address, args, host, port}
},
unload: function(){
// this will be executed before the custom module is reloaded
// it is called for all modules, including other loaded modules
},
}
}
@ -76,7 +53,7 @@ The module is executed in a restricted context, only a few globals are available
----
#### `app`
[`Event Emitter`](https://nodejs.org/api/events.html#events_class_eventemitter), useful for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/src/server/node/ipc/callbacks.mjs), callbacks are called with 2 arguments: `data` (object) and `client` (object: `{address, id}`)
[`Event Emitter`](https://nodejs.org/api/events.html#events_class_eventemitter), useful for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/server/callbacks.js), callbacks are called with 2 arguments: `data` (object) and `client` (object: `{address, id}`)
----
@ -87,16 +64,14 @@ Send osc/midi message to connected clients. `host` and `port` can be specified t
- `host` (optional): `string` ip address, valid hostname or `"midi"`
- `port` (optional): `integer` port number or `string` midi device name
- `address`: osc address
- `args`: value or `{type: "OSC_TYPE_LETTER", value: VALUE}` `object` (objects that don't match this format will simply be turned to a JSON string).
- `options` (optional): set to `{clientId: id}` to define which client receives the message (where `id` is the client's id as retrieved from `app` events or `oscOutFilter`)
For convenience, `host` and `port` can be provided both as single string argument joined with a colon.
- `args`: value or `{type: "OSC_TYPE_LETTER", value: VALUE}` `object`
- `options` (optional): set to `{clientId: id}` to define which client receives the message (where `id` is the client's id as retreived from `app` events or `oscOutFilter`)
----
#### `send(host, port, address, ...args)`
Send osc/midi to a target (see `receive()`).
Send osc/midi to a target.
----
@ -106,115 +81,29 @@ Returns specified server option. `name` must be the option's long name without t
----
#### `settings.appAddresses()`
#### `options`
Returns the server's http addresses.
`Array` containing the extra options passed to `--custom-module` after the filename
----
#### `loadJSON(path, errorCallback)`
#### `loadJSON(path)`
Loads a json file (path is relative to the custom module location)
- `path`: `string`, path to file (any extension allowed, but the content must be valid JSON)
- `errorCallback` (optional): `function`, called with the error as argument if the file can't be loaded
----
#### `saveJSON(path, data, errorCallback)`
#### `saveJSON(path, object)`
Saves an object/array to a json file (path is relative to the custom module location)
- `path`: `string`, path to file (any extension allowed)
- `data`: `object`, `array` or any value that can be encoded to JSON
- `errorCallback` (optional): `function`, called with the error as argument if the file can't be loaded
----
#### `require(path)`
Load another javascript module. Returns the value of `module.exports` defined in this module. If `path` is a relative path, it will be resolved against its parent module's path. See [Managing Big Modules](../managing-big-modules).
This function is different from node's native `require` function, it's merely a way to split a custom module into separate files.
----
#### `nativeRequire(moduleName)`
This function can be used to load native node modules or locally installed modules (e.g. with npm) if a `node_modules` folder is found in the custom module's location.
??? "Installing node modules: resources"
- https://nodejs.dev/
- https://nodejs.dev/learn/an-introduction-to-the-npm-package-manager
- https://nodejs.dev/learn/the-package-json-guide
----
#### `tcpServer`
Raw access to the server's [TCP backend](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/src/server/node/osc/tcp.mjs). Can be used to monitor the state of TCP connections:
```js
for (var ip in tcpServer.clients) {
tcpServer.clients[ip].port.on('ready', ()=>{
console.log(`TCP connection established with ${ip}:${tcpServer.clients[ip].remotePort}`)
})
tcpServer.clients[ip].port.on('close', ()=>{
console.log(`TCP connection lost with ${ip}:${tcpServer.clients[ip].remotePort}`)
})
}
```
#### `restartMidiBackend()`
This function can be used to restart the midi backend (if already running) without restarting the server
#### Other javascript globals
- `console`
- `setTimeout`
- `clearTimeout`
- `setInterval`
- `clearInterval`
- `__dirname`
- `__filename`
- `process`
- `global`
----
## Autoreload
Custom modules (including submodules loaded with `require()`) are reloaded automatically when they are modified. Upon reload, timers (`setTimeout` and `setInterval`) and event listeners (added to the  `app` object) are reset. After each reload the `module.exports.reload()` function (if any) is called.
The `global` object persists accross reloads.
??? "Reloading native modules"
When using modules loaded with `nativeRequire()`, you may need to tell the custom module how to unload some components to allow reloading using the `module.exports.unload` definition. For example, if a port is bound using the `http` module, you'll need to unbind it otherwise the custom module will fail to bind it again when reloading:
```js
var http = nativeRequire('http'),
server = http.createServer((req, res)=>{
res.writeHead(200)
res.end('Hello world')
})
server.listen(5555, 'localhost')
module.exports = {
unload: function() {
server.close()
// otherwise you'd get "Error: listen EADDRINUSE: address already in use 127.0.0.1:5555"
}
}
```

View file

@ -178,65 +178,6 @@ module.exports = {
}
```
## Auto-save client state
```js
// store state in a variable
var state = {}
// keep track of connected clients
var clients = []
app.on('sessionOpened', (data, client)=>{
// client connected (and in a session)
if (!clients.includes(client.id)) clients.push(client.id)
// when a client opens a session, send the state
// but only if it's the only connected client (otherwise, let the regular sync happen)
if (clients.length === 1) {
receive('/STATE/SET', state, {clientId: clients[0]})
}
})
app.on('close', (data, client)=>{
// client disconnected
if (clients.includes(client.id)) clients.splice(clients.indexOf(client.id))
})
// request 1st client's state every 10 seconds
setInterval(()=>{
if (clients.length > 0) {
receive('/STATE/GET', '127.0.0.1:8888', {clientId: clients[0]})
}
}, 10000)
module.exports = {
oscOutFilter: function(data) {
if (data.address === '/STATE/GET') {
// update state variable when the client responds
state = data.args[0].value
// bypass the osc message
return
}
return data
}
}
```
## MIDI routing
@ -295,177 +236,3 @@ module.exports = {
}
```
## Read file
```js
var fs = nativeRequire('fs')
module.exports = {
oscOutFilter:function(data){
// Filter outgoing osc messages
var {address, args, host, port} = data
if (address === '/file') {
fs.readFile(args[0].value, 'utf8' , (err, data) => {
if (err) {
console.error(err)
return
}
receive('/html', data)
})
return // bypass original message
}
// return data if you want the message to be processed
return {address, args, host, port}
}
}
```
## Display RTSP Stream
```js
// requires ffmpeg installed on the system
// and rtsp-ffmpeg installed in the custom module's folder (by running npm install rtsp-ffmpeg)
// see https://github.com/agsh/rtsp-ffmpeg#ffmpeg for available options
var rtsp = nativeRequire('rtsp-ffmpeg')
var stream = new rtsp.FFMpeg({
input: 'rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream',
})
stream.on('data', (data)=>{
// send frame to image widget with address set to "/stream"
receive('/stream', 'data:image/jpeg;base64,' + data.toString('base64'))
})
module.exports = {
unload: ()=>{
stream.stop()
}
}
```
## Custom module merger
```js
var submodules = [
require('./custom_modA.js'),
require('./custom_modB.js'),
// etc
]
module.exports = {
init: function(){
for (var m of submodules) {
if (m.init) m.init()
}
},
reload: function(){
for (var m of submodules) {
if (m.reload) m.reload()
}
},
oscInFilter: function(data){
for (var m of submodules) {
if (m.oscInFilter) data = m.oscInFilter(data)
if (!data) return
}
return data
},
oscOutFilter: function(data){
for (var m of submodules) {
if (m.oscOutFilter) data = m.oscOutFilter(data)
if (!data) return
}
return data
}
}
```
## Dynamic widget creation
```js
function create_widgets() {
receive('', '', '/EDIT', 'root', {
widgets: [{
type: 'panel',
id: 'my_panel',
layout: 'vertical',
width: '100%',
height: '200%',
widgets: [
{
type: 'text',
id: 'notice',
value: 'Hello, world!',
width: '100%',
},
{
type: 'button',
id: 'button',
address: '/foo',
preArgs: [1],
},
]
}]
})
}
module.exports = {
reload: function(){
// Create widgets whenever the custom modules is edited
create_widgets()
},
}
// Create widgets whenever an existing session is loaded
app.on('sessionOpened', ()=>{
create_widgets()
})
// And when a new session is created
app.on('sessionSetPath', (e)=>{
if (e.path === '') {
create_widgets()
}
})
```
## Simple bridge
```js
module.exports = {
oscInFilter: function(data) {
// pass through incoming messages directly to another application
send('127.0.0.1', 12345, data.address, ...args)
return data // let original message reach clients / widgets
}
}
```

View file

@ -1,4 +1,6 @@
Starting with `v1.6.0`, custom modules can load submodules with the `require()` function.
Custom modules don't let you use node's `require` function at runtime, but you can manage your sources in multiple files and bundle them into a single file before loading it in OSC.
The common pattern for this is using the [browserify](http://browserify.org/) library:
**1**. define some variable in `number.js`
@ -20,3 +22,8 @@ module.exports = {
}
}
```
**3**. bundle your sources into `custom-module.js`:
`browserify main.js -o custom-module.js --standalone module.exports`

View file

@ -3,7 +3,7 @@
## Browser inspector
Hit ++f12++ to open the developers tools panel. The html/css inspector helps retrieving the class names needed to style specific parts of the widgets: hit ++ctrl+shift+c++ or click on the inspect icon (![x](/img/inspect.png)) and click on a element in the interface to reveal its html code.
Hit `F12` to open the developers tools panel. The html/css inspector helps retreiving the class names needed to style specific parts of the widgets
## Inline syntax
@ -11,7 +11,7 @@ Hit ++f12++ to open the developers tools panel. The html/css inspector helps ret
For simple use cases, the `css` property can be written as a HTML inline styles (without any CSS selector). CSS rules will apply to the widget element.
```css
opacity: 0.5; /* make the widget transparent */
opacity: 0.5; /* make the widget's transparent */
font-size: 120%; /* increase font-size */
```
@ -27,12 +27,12 @@ CSS selectors can be used to apply styles to specific elements:
*/
}
label {
/* style for the label elements */
.label {
/* style for the .label elements */
}
> label {
/* style for the direct child label element */
> .label {
/* style for the direct child .label element */
}
```
@ -50,7 +50,7 @@ Multiple classes can be added (one per `class` statement). Custom classes are al
## Layering: `z-index`
Z-Axis ordering can be set using the `z-index` rule. Widgets positioned at absolute coordinates (when `top` or `left` is different from `auto`) have `z-index:10;` by default.
Z-Axis ordering can be set using the `z-index` rule. Absolutely positionned widgets (when `top` or `left` is different from `auto`) have `z-index:10;` by default.
## Responsive sizing
@ -87,14 +87,6 @@ Media queries can also be used:
## CSS variables
[CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) declared in the [default theme](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/scss/themes/default.scss) can be overridden.
[CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) declared in the [default theme](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/scss/themes/default.scss) can be overriden.
Widgets also rely on CSS variables for the style properties (colors, padding, etc). These are documented in the widgets' `css` property description.
# Loading images
Image urls are resolved in this order:
- in the session's directory
- in theme's directory
- in the server's `remote-root` directory if the option is set
- as absolute paths

View file

@ -27,10 +27,11 @@ This will change the default accent color to red. Variables can also be overridd
This will change the default accent color to blue for all elements in panel widgets.
## Autoreload
## Scss / autoreload
Theme files are reloaded automatically when they are modified.
When running the app from sources, custom themes can be written in scss:
## SCSS
- the scss file must be located in `src/browser/scss/themes/`
- run `npm run watch-css`
If you want to use the [SCSS](https://sass-lang.com/documentation/syntax) syntax to write your theme, follow the [Running from sources](../../getting-started/running-from-sources) instructions, create a `.scss` file in `src/scss/themes/` and run `npm run watch-css`. The theme will be watched and compiled automatically to a css file located in `app/assets/themes/` (css files in this directory can be selected from the theme option by their name, without .css suffix).
The theme will be watched and compiled automatically to a css file located in app/browser/themes/ (css files in this directory can be selected from the theme option by their name, without .css suffix). If the app is running on default http port, clients will reload the theme automatically.

View file

@ -1,8 +1,11 @@
Welcome to Open Stage Control documentation. Along these pages you'll learn how to setup OSC on your system and everything you need to start building your own control interface.
!!! info "Still using v0 ?"
The documentation for this version is available [here](https://v0.openstagecontrol.ammd.net).
## Overview
Open Stage Control consists of 3 modules: the server, the launcher and the client.
Open Stage Control consists in 3 modules: the server, the launcher and the client.
The **server** is the core of the software, it is responsible for sending and receiving all osc/midi messages, and act as a web server that serves the clients web application. It is written in Javascript and runs with Electron, a cross-platform framework based on Chromium. By default, the server always opens a client window when it starts but it can be run in *headless* mode, without any window.
@ -17,19 +20,19 @@ The **server** can run on all [platforms supported by Electron](https://www.elec
The **client** is compatible with the following browsers:
- Firefox: version `75` and higher
- Chromium / Chrome: version `75` and higher
- Firefox: version `75`
- Chromium / Chrome: version `60`
iOS devices must be of version `11` or higher.
iOS devices must be of version `10.3` or higher.
## Installation
=== "Linux 64bit"
??? example "Linux"
**Ubuntu / Debian**
- [Download](/download) `open-stage-control-VERSION-amd64.deb`
- [Download](/download) `open-stage-control-VERSION-ARCH.deb`
- Install it by running this as root in a terminal:
```bash
dpkg -i path/to/open-stage-control-VERSION-ARCH.deb
@ -37,34 +40,18 @@ iOS devices must be of version `11` or higher.
**Other linux distributions**
- [Download](/download) `open-stage-control-VERSION-linux-x64.zip`
- [Download](/download) `open-stage-control-VERSION-linux-ARCH.zip`
- Extract it in the location of your choice
- The file inside it named `open-stage-control` is the app's main executable
=== "Mac 64bit"
??? example "Mac"
- [Download](/download) `open-stage-control-VERSION-osx-x64.zip`
- [Download](/download) `open-stage-control-VERSION-osx.zip`
- Extract it in the location of your choice
- Drag `open-stage-control.app` in your `Application` folder
??? example "Windows"
=== "Mac Silicon (arm)"
- [Download](/download) `open-stage-control-VERSION-osx-arm.zip`
- Extract it in the location of your choice
- Drag `open-stage-control.app` in your `Application` folder
See [https://disable-gatekeeper.github.io/](https://disable-gatekeeper.github.io/) to workaround the "damaged and can't be opened" error.
=== "Windows 64bit"
- [Download](/download) `open-stage-control-VERSION-win32-x64.zip`
- [Download](/download) `open-stage-control-VERSION-win32-ARCH.zip`
- Extract it in the location of your choice
- The file inside it named `open-stage-control.exe` is the app's main executable
=== "Other systems"
- Install [Node.js](https://nodejs.org/en/download/package-manager/)
- Download `open-stage-control-VERSION-node.zip`
- Extract it in the location of your choice
- In a terminal, run `node /path/to/open-stage-control-VERSION-node --help`

View file

@ -12,7 +12,7 @@ Running the app from the sources slightly differs from using prebuilt binaries:
**Download**
```bash
git clone https://framagit.org/jean-emmanuel/open-stage-control.git
git clone https://github.com/jean-emmanuel/open-stage-control
cd open-stage-control/
# uncomment next line if you want the latest release
# instead of the current development version
@ -21,14 +21,6 @@ npm install
npm run build
```
!!! tip "Raspberry systems"
Run one of these instead of `npm install` (you can get the system's `arch` by running `uname -m` in a terminal)
```
npm install --arch=arm64
npm install --arch=armv7l
```
!!! info "Updating from sources"
```bash
git pull
@ -45,10 +37,6 @@ npm start [ -- options]
!!! info ""
A double hyphen (`--`) is used here to tell npm that the options are to be passed to the app.
!!! warning "MIDI support"
When running from sources, MIDI support won't be enabled unless the [MIDI configuration procedure](../../midi/midi-configuration/) for "other systems" is followed.
## Build documentation
In order to make the local documentation available through the server's `--docs` option and the launcher's `Documentation` menu action, an extra step is needed.
@ -63,9 +51,12 @@ npm run build-docs
## Package from sources
Follow the "Run from sources" instructions, then:
```bash
git clone https://github.com/jean-emmanuel/open-stage-control
cd open-stage-control/
# uncomment next line if you want the latest release
# instead of the current development version
# git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
# TARGET_PLATFORM can be linux, win32 (windows) or darwin (os x)
export PLATFORM=TARGET_PLATFORM
@ -73,8 +64,21 @@ export PLATFORM=TARGET_PLATFORM
export ARCH=TARGET_ARCH
npm install
# run this instead if ARCH is armv7l
# npm install --arch=armv7l
npm run build
npm run package
# Do one of the following if you want a deb package for debian/ubuntu
npm run deb32
npm run deb64
npm run debarm
# The node-only package can be built with
npm run package-node
@ -85,25 +89,3 @@ This will build the app in `dist/open-stage-control-PLATFORM-ARCH`.
!!! info ""
Building the app for windows from a linux system requires wine to be installed.
## Debian / Ubuntu and RPM installers
=== "Debian / Ubuntu"
```
npm run deb64
```
=== "RPM"
```
npm run rpm
```
## Build script on Mac Silicon
This user-contributed script can be used to build open stage control on recent Macs:
https://github.com/rewgs/osc-as

View file

@ -1,209 +1,159 @@
The **server** can be configured with many options, either from a terminal or with the help of the **launcher**.
## Options
!!! abstract "Options"
!!! quote ""
#### `send`
=== "send"
Defines the default osc/midi targets. These will be added to the widget's individual targets. Targets must be separated by a space and formatted as follows:
Defines the default osc/midi targets. These will be added to the widget's individual targets. Targets must be separated by a space and formatted as follows:
- `ip_address:port`
- `host_name:port`
- `midi:device_name`
- `ip_address:port`
- `host_name:port`
- `midi:device_name`
!!! quote ""
#### `load`
=== "load"
Path to a session file (.json). All clients connecting the server will load it.
Path to a session file (.json). All clients connecting the server will load it.
!!! quote ""
#### `state`
=== "state"
Path to a state file (.state). All clients connecting the server will load it.
Path to a state file (.state). All clients connecting the server will load it.
!!! quote ""
#### `custom-module`
=== "custom-module"
Path to a custom module file (.js).
Path to a custom module file (.js).
**WARNING:** custom module can access the file system, use at your own risk.
=== "port"
!!! quote ""
#### `port`
HTTP port for the server (default: `8080`).
HTTP port for the server (default: `8080`).
=== "osc-port"
!!! quote ""
#### `osc-port`
OSC (UDP) input port (default: `port`).
OSC (UDP) input port (default: `port`).
=== "tcp-port"
!!! quote ""
#### `tcp-port`
OSC (TCP) input port.
OSC (TCP) input port.
=== "tcp-targets"
!!! quote ""
#### `tcp-targets`
TCP servers to connect to. When sending osc messages, if the target matches one of these, TCP protocol will be used instead of UDP. Targets must be separated by a space and formatted as follows:
TCP servers to connect to. When sending osc messages, if the target matches one of these, TCP protocol will be used instead of UDP. Targets must be separated by a space and formatted as follows:
- `ip_address:port`
- `host_name:port`
- `ip_address:port`
- `host_name:port`
=== "midi"
!!! quote ""
#### `midi`
MIDI options separated by spaces, MIDI support must be enabled, see [MIDI configuration](../midi/midi-configuration.md).
MIDI options separated by spaces, MIDI support must be enabled, see [MIDI configuration](../midi/midi-configuration.md).
=== "debug"
!!! quote ""
#### `debug`
Print sent and receiced messages in the console. This may impact performances and should not be enabled in production.
Print sent and received messages in the console. This may impact performance and should not be enabled in production.
=== "no-gui"
!!! quote ""
#### `no-gui`
Disable built-in client window.
Disable built-in client window.
=== "fullscreen"
!!! quote ""
#### `fullscreen`
Start the built-in client window in fullscreen.
Start the built-in client window in fullscreen.
=== "theme"
!!! quote ""
#### `theme`
Theme names or paths. See [Themes](../customization/themes.md).
Theme names or paths. See [Themes](../customization/themes.md).
=== "client-options"
!!! quote ""
#### `client-options`
Default [client options](../client-options.md), separated by spaces.
Default [client options](../client-options.md), separated by spaces.
=== "disable-vsync"
!!! quote ""
#### `disable-vsync`
Disable built-in client window's vertical synchronization.
Disable built-in client window's vertical synchronization.
=== "force-gpu"
!!! quote ""
#### `force-gpu`
Disable built-in client window's gpu blacklist (may improve rendering performance in some cases).
Disable built-in client window's gpu blacklist (may improve rendering performance in some cases).
=== "read-only"
!!! quote ""
#### `read-only`
Disable session editing, and file saving.
Disable session editing, and file saving.
=== "remote-saving"
!!! quote ""
#### `remote-saving`
Disable file saving for hosts that don't match the regular expression.
Disable file saving for hosts that don't match the regular expression.
Sessions are saved and opened on the server's filesystem. It is possible to limit this feature to specific client with a regular expression. For example, `"127.0.0.1|192.168.0.10"` disables remote saving except for clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`.
Sessions are saved and opened on the server's filesystem. It is possible to limit this feature to specific client with a regular expression. For example, `"127.0.0.1|192.168.0.10"` disables remote saving except for clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`.
=== "remote-root"
!!! quote ""
#### `remote-root`
Set file browsing root folder.
Set file browsing root folder. Prevent writing files outside of this folder.
=== "authentication"
!!! quote ""
#### `authentication`
Restrict access to `user:password` (remote clients will be prompted for these credentials).
Restrict access to `user:password` (remote clients will be prompted for these credentials).
=== "instance-name"
!!! quote ""
#### `instance-name`
Server's name on zeroconf/bonjour network. Incremented automatically if not available.
Server's name on zeroconf/bonjour network. Incremented automatically if not available.
=== "use-ssl"
!!! quote ""
#### `use-ssl`
Use HTTPS protocol instead of HTTP (a self-signed certificate will be created)
Use HTTPS protocol instead of HTTP (a self-signed certificate will be created)
!!! abstract "Command-line options"
## Command-line options
The following options can only be set from a terminal.
The following options can only be set from a terminal.
=== "disable-gpu"
!!! quote ""
#### `disable-gpu`
Disable hardware acceleration for the launcher window and the built-in client window.
Disable hardware acceleration for the launcher window and the built-in client window.
=== "inspect"
!!! quote ""
#### `inspect`
Enable node inspector.
Enable node inspector.
=== "cache-dir"
!!! quote ""
#### `cache-dir`
Override default cache directory (contains browser cache and localStorage data).
Override default cache directory (contains browser cache and localStorage data).
=== "config-file"
!!! quote ""
#### `config-file`
Override default config file location (contains session history and launcher config). Defaults to `cache-dir/config.json`.
Override default config file location (contains session history and launcher config). Defaults to `cache-dir/config.json`.
=== "help"
Show help.
!!! quote ""
#### `client-position`
=== "docs"
Define the built-in client window position, must be a pair of integers separated by a comma (`x,y`).
Serve documentation website locally and open it with the system\'s default browser
=== "version"
!!! quote ""
#### `client-size`
Define the built-in client window size, must be a pair of integers separated by a comma (`width,height`).
!!! quote ""
#### `no-qrcode`
Disable qrcode when the server starts.
!!! quote ""
#### `help`
Show help.
!!! quote ""
#### `docs`
Serve documentation website locally and open it with the system's default browser
!!! quote ""
#### `version`
Show version number.
Show version number.
## Running in a terminal

View file

@ -1,64 +1,19 @@
## Installation
## Requirements
MIDI support requires additional software to be installed on the server's system:
=== "Linux / Windows / OSX"
- [python 3](https://www.python.org/downloads/)
- python package [python-rtmidi](https://spotlightkid.github.io/python-rtmidi/installation.html#from-pypi)
Open Stage Control comes bundled with built-in MIDI support if you're using the official package for Linux, OSX or Windows.
=== "Other systems / Node"
Enabling MIDI support on other systems or when building Open Stage Control from sources requires additional softwares to be installed on the server's system:
- [python 3](https://www.python.org/downloads/)
- python package [python-rtmidi](https://spotlightkid.github.io/python-rtmidi/installation.html#from-pypi)
??? example "Linux"
Install `python3-rtmidi` from your distribution's package repository, or if it's not available:
- Install `python3` and `python3-pip` from your distribution's package repository
- Run this command in a terminal
```bash
python3 -m pip install python-rtmidi --upgrade
```
??? example "Mac"
- Download and install [Python 3 for Mac OS](https://www.python.org/downloads/mac-osx/)
- Open a terminal
- Install `pip` (package installer for python) by executing these commands
```
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
```
- Install `python-rtmidi` by executing this command
```bash
python -m pip install python-rtmidi --upgrade
```
??? example "Windows"
- Download and install [Python 3 for Windows](https://www.python.org/downloads/windows/)
- **make sure to check the option** "Add Python 3.x to PATH"
- Open a terminal (++win+r++)
- Install `pip` (package installer for python) by executing these commands
```
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
```
- Install `python-rtmidi` by executing this command
```bash
python -m pip install python-rtmidi --upgrade
```
!!! info "Why an additionnal dependency ?"
Providing cross-platform MIDI support is not trivial, as it requires OS-specific compilation that cannot be automated within Open Stage Control's current packaging workflow. Using a python addon seems to be the best compromise so far : the core app remains easy to build, and the extra dependency is easy to install.
## Configuration
The server's `midi` option accepts the following parameters, separated by spaces.
When running the app, the `-m / --midi` switch must be set and accepts the following options, separated by spaces.
!!! warning ""
If an option contains space characters, it must be quoted.
If an option contains space characters, it must be enquoted.
**`list`**
@ -66,9 +21,9 @@ Print the available MIDI ports to the console when the server starts. This actio
**`device_name:input,output`**
Create a virtual MIDI device that will translate OSC messages to MIDI messages
Create a virtual MIDI device that will translate OSC messsages to MIDI messages
- `device_name` is an arbitrary identifier that can be used as a target by widgets (see [Widget setup](#widget-setup)). It doesn't have to match any device's real name.
- `device_name` is an arbitrary identifier that can be used as a target by widgets (see [Widget setup](#widget-setup))
- `input` / `output` can be port numbers or strings (as reported by the `list` action). If a string is specified, the first port whose name contains the string will be used (comparison is case-insensitive).
**`sysex`**
@ -77,28 +32,16 @@ Enable parsing of system exclusive messages (disabled by default).
**`mtc`**
Enable parsing of midi time code messages (disabled by default).
**`rpn`**
Enable sending and receiving [RPN/NRPN](https://en.wikipedia.org/wiki/NRPN) controls on as single `/rpn` / `/nrpn` messages instead of 3 or 4 control changes that constitute them.
**`active_sensing`**
Enable parsing of midi active sensing messages (disabled by default). Active sensing messages will be received as sysex.
Enable parsing of midi time code messages (disabled by default). These will be received as raw sysex messages.
**`pc_offset`**
Send program changes with a `-1` offset to match some software/hardware implementations
**`note_off_velocity`**
Use `/note_on` for noteOn messages and `/note_off` for noteOff messages instead of the defaut `/note` and velocity 0 for note off.
**`path=/path/to/python`**
**`auto_note_off`**
Prevent converting outgoing noteOn messages with velocity 0 to noteOff messages.
Indicates where to find python binary in case open stage control doesn't (`Error: spawn python3 ENOENT`)
**`device_name:virtual`** (*Linux / Mac only*): creates a virtual midi device with one input port and one output port
@ -107,38 +50,15 @@ Prevent converting outgoing noteOn messages with velocity 0 to noteOff messages.
**`jack`** (*Linux only*): use JACK MIDI instead of ALSA. `python-rtmidi` must be compiled with [jack support](https://spotlightkid.github.io/python-rtmidi/installation.html#linux) for this to work.
**`path=/path/to/python`**
*Only use this if you know what you are doing. This option should not be set when using the official Linux / Windows / OSX packages.*
Indicates where to find python binary in case open stage control doesn't (`Error: spawn python3 ENOENT`).
## Widget setup
In order to send MIDI messages, a widget must have at least one `target` formatted as follows:
`midi:device_name` (where `device_name` is one of the declared midi devices)
Its `address` and `preArgs` properties must be set according to Open Stage Control's [midi messages](../midi-messages) specification.
!!! warning
Messages received from a MIDI port only affect widgets that send to this port.
## Debug
Enabling the server's `debug` options will print some extra information (sent/received midi messages, midi setup information, etc)
## Example configuration
Setting the server's `midi` option as follows:
```
sysex synth:1,2 daw:3,3
```
- enables sysex support (sysex messages will not be ignored)
- creates a midi device "synth" connected with input 1 and output 2
- creates a midi device "daw" connected with input 3 and output 3
If a widget has its `target` set to `midi:synth`, it will receive MIDI from port 1 and send MIDI to port 2.
Enabling the server's `debug` options will print some extra informations (sent/received midi messages, midi setup informations, etc)

View file

@ -1,31 +1,25 @@
!!! info ""
Define static argument values using the [`preArgs`](/docs/widgets/properties-reference/#preArgs) option in order to complete the respective MIDI message.
Define static argument values using the [`preArgs`](/docs/widgets-reference/#preArgs) option in order to complete the respective MIDI message.
----
#### `/note channel note velocity`
NoteOn event or noteOff if velocity equals `0`. Incoming noteOff events will be received as `/note` with velocity 0 if `note_off_velocity` is not set during [setup](../midi-configuration).
NoteOn event or noteOff if velocity equals `0`.
- `channel`: integer between 1 and 16
- `note`: integer between 0 and 127
- `velocity`: integer between 0 and 127
!!! example "Example"
Example:
A push button might be configured as follows in order to send a MIDI note whose velocity is defined by the button's on/off value:
A push button might be configured as follows in order to send a MIDI note whose velocity is defined by the button's on/off value:
- `address`: `/note`
- `preArgs`: `[1, 60]` (for MIDI channel 1, and note 60 / C4)
- `on`: `100` (for noteOn velocity of 100 on button push)
- `off`: `0` (to send a noteOff on button release)
- `target`: `midi:device_name` (where device_name is one of the declared midi devices defined during [setup](../midi-configuration))
----
#### `/note_off channel note velocity`
NoteOff event with any velocity. Incoming noteOff events will be received as `/note_off` if `note_off_velocity` is set during [setup](../midi-configuration).
- `address`: /note
- `preArgs`: [1, 60] (for MIDI channel 1, and note 60 / C4)
- `on`: 100 (for noteOn velocity of 100 on button push)
- `off`: 0 (to send a noteOff on button release)
- `target`: ["midi:device_name"] (where device_name is one of the declared midi devices defined during [setup](#setup))
----
@ -37,14 +31,14 @@ Control change event.
- `cc`: integer between 0 and 127
- `value`: integer between 0 and 127
!!! example "Example"
Example:
A fader might be configured as follows in order to send a MIDI control message (a volume control in this example):
A fader might be configured as follows in order to send a MIDI control message (a volume control in this example):
- `address`: `/control`
- `pre-args`: `[1, 7]` (MIDI channel 1, control number 7 generally used as volume control)
- `range`: `{"min": 0, "max": 127}` (MIDI values are encoded in this range)
- `target`: `midi:device_name`
- `address`: /control
- `pre-args`: [1, 7] (MIDI channel 1, control number 7 generally used as volume control)
- `range`: {"min": 0, "max": 127} (MIDI values are encoded in this range)
- `target`: ["midi:device_name"]
----
@ -56,7 +50,7 @@ Program change event.
- `program`: integer between 0 and 127*
!!! info
\* Some devices / softwares display the `program` value between 1 and 128, thus interpreting `program change 0` as `program change 1` and so on. Add the `pc_offset` parameter to the server's `midi` option to make Open Stage Control behave this way.
\* Some devices / softwares display the `program` value between 1 and 128, thus interpreting `program change 0` as `program change 1` and so on. Enable the `pc_offset` option to make Open Stage Control behave this way.
----
@ -75,15 +69,8 @@ System exclusive message.
- `msg`: hexadecimal sysex data string of the form `f0 ... f7`.
Instead of a single hexadecimal string, arguments can be separated and defined either as hexadecimal bytes or as integers. When received, system messages are always formatted as a single hexadecimal string.
Other system messages may be sent (midi time code for example: `f1 <mtc value>`). Instead of a single hexadecimal string, arguments can be separated and defined either as hexadecimal bytes or as integers. When received, system messages are always formatted as a single hexadecimal string.
----
#### `/mtc timecode`
MIDI time code message.
- `timecode`: `hh:mm:ss:ff` string.
----
@ -107,24 +94,3 @@ Polyphonic key pressure event.
- `pressure`: integer between 0 and 127
----
#### `/rpn channel rpn value`
Registered Parameter Number event.
- `channel`: integer between 1 and 16
- `rpn`: integer between 0 and 16383
- `value`: integer between 0 and 16383
----
#### `/nrpn channel nrpn value`
Non-Registered Parameter Number event.
- `channel`: integer between 1 and 16
- `nrpn`: integer between 0 and 16383
- `value`: integer between 0 and 16383
----

View file

@ -1,6 +1,6 @@
# Remote control
When osc messages are received, the default behavior is to update the value of all widgets that match the address and preArgs. Additionally, Open Stage Control clients respond to some general osc commands.
When osc messages are received, the default behavior is to update the value of all widgets that match the address and preArgs. Additionally, Open Stage Control responds to some general osc commands.
!!! note "Multi-client setup"
These commands are interpreted by each client connected to the server so there might be more than one reply. Using a custom module is the only way to send a message to a single client.
@ -11,7 +11,8 @@ When osc messages are received, the default behavior is to update the value of a
#### `/EDIT id properties options`
Apply a set of options to an existing widget by replacing the old ones with the new ones. This ignores the widget's `lock` property. If sent by a custom module using `receive()`, this command will not be prevented by the server's `read-only` option.
Apply a set of options to an existing widget by replacing the old ones with the new ones.
- `id`: `string`, widget's `id`
- `properties`: `string`, [JSON5](https://github.com/json5/json5) stringified object defining the new properties to merge
@ -19,6 +20,10 @@ Apply a set of options to an existing widget by replacing the old ones with the
- `options` (optional): `string`, [JSON5](https://github.com/json5/json5) stringified object defining extra option flags:
- `noWarning`: set to `true` to prevent further warning when exiting.
!!! danger "Warning"
Editing widgets is cpu expensive; for small and recurrent changes, consider using [osc listeners](./widgets/advanced-syntaxes.md) instead.
----
#### `/EDIT/MERGE id properties options`
@ -110,21 +115,6 @@ Replies `/GET address preArg1 preArg2 ... value`
Same as `/GET` but uses the widget's address instead of `/GET` to reply.
----
#### `/NOTIFY icon message`
Sends a notification message to the client.
- `icon`: icon for the notification, for example : `^play`, `^pause`, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free)
- `message`: message content
----
#### `/LOG message`
Print message in the client's console.
----
@ -159,12 +149,11 @@ Sends back the app's state to specified target
----
#### `/STATE/SET state send`
#### `/STATE/SET state`
Set widgets' state
- `state`: `string`, json stringified object (`"widget_id": value` pairs)
- `send` (optional): `boolean`, set to `false` to prevent widgets from sending their values when the state is applied
@ -180,58 +169,3 @@ Save the state of all widgets in the temporary slot.
#### `/STATE/RECALL`
Reload saved state from the temporary slot.
----
#### `/STATE/SEND`
Make all widgets send their current value.
----
#### `/STATE/OPEN path.state`
Open state file `path.state`.
----
#### `/STATE/SAVE path.state`
Save state session to `path.state`.
----
#### `/SESSION/CREATE`
Create a new empty session. Unsaved changes will be lost.
----
#### `/SESSION/OPEN path.json`
Open session file `path.json`.
----
#### `/SESSION/SAVE path.json`
Save current session to `path.json`. If `path.json` is omitted, current session's path is used.
----
#### `/TABS tab_id1 tab_id2 ...`
Open the tabs designated by the id parameters.
----
#### `/SCRIPT code`
Run code as if it where executed by a script widget.
----
#### `/RELOAD`
Reload page in the browser.

View file

@ -1,149 +0,0 @@
# Change a widget property with an osc message
By default, widgets only expose their value to incoming messages, but there are multiple ways to allow changing any widget property using osc messages as well. In this tutorial we'll explore the different possibilities for exposing the `visible` property of a widget to incoming messages, but it applies to any other property.
## 1. Using a variable widget
Create a variable widget and set up its `address` (and `preArgs` if needed) so that it receives the messages you want to use, and then in your other widget's `visible` property, use the [inheritance syntax](../widgets/advanced-syntaxes.md#inheritance-idproperty) to retrieve the variable's value:
=== "Inheritance syntax"
```
@{variable_id}
```
=== "Inheritance syntax + Javascript"
```js
JS{
// bonus, in case you don't want to use the variable's value as-is
if (@{variable_id} > 0.5) {
return true
} else {
return false
}
}
```
Now the variable's value will determine the visibility of the widget. The `visible` property expects a boolean value (`true` for visible, `false` for invisible) but any [truthy](https://developer.mozilla.org/en-US/docs/Glossary/truthy) / [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) will do (e.g. `1` for visible, `0` for invisible is a sensible choice).
## 2. Using the OSC listener syntax
The [OSC listener syntax](../widgets/advanced-syntaxes.md#osc-listeners-oscaddress-default-usepreargs) might be a more straightforward solution for simple use cases. Writing this in a widget's `visible` property:
=== "Relative address"
```
OSC{show}
```
will listen for messages on address `/widget_address/show` and return the last received value.
If we write this instead:
=== "Absolute address"
```
OSC{/show}
```
the address will be `/show` and won't be prefixed with the widget's address as before.
It is often needed to specify the initial state of the listener (before it receives any message), this is done via the second argument of the listener syntax:
=== "Default value (true)"
```
OSC{show, true}
```
=== "Default value (truthy)"
```
OSC{show, 1}
```
=== "Default value (false)"
```
OSC{show, false}
```
=== "Default value (falsy)"
```
OSC{show, 0}
```
If the widget has any preArgs set, the osc listener will inherit them by default, this means that for a message to change the listener's value it will not only have to match its address but also the widget's `preArgs`, this can be prevented using the third argument of the listener syntax:
=== "Ignore preArgs"
```
OSC{show, 1, false}
```
## 3. Using custom variables
The [custom variable syntax](../widgets/advanced-syntaxes.md#custom-variables-varvariablename-default) connects regular properties and scripting properties (`onCreate`, `onValue`, etc), writing this in the `visible` property:
```
VAR{show}
```
will create a custom variable named `show` scoped to the widget (custom variables do not use a global namespace and multiple widgets may use the same names for their custom variables without conflict). This custom variable can be read and set from any widget scripting property using the [`getVar()` / `setVar()`](../widgets/scripting.md#getvarid-name) functions.
For instance, we could use a variable widget as osc receiver like in the first example of this tutorial and use it's `onValue` script to change the custom variable's value (instead of using the inheritance syntax):
```js
// variable widget onValue
// simply pass received value to the custom variable
setVar('widget_id', 'show', value)
```
The custom variable's initial state can be specified:
```
VAR{show, 1}
```
## 4. Using /EDIT commands
The [`/EDIT`](../remote-control.md) remote control command can be used to modify any widget property in the session, for instance:
```
/EDIT widget_id '{visible: false}'
```
Will hide the widget with id `widget_id`. Note that this is different from the 3 techniques described above in that it actually modifies the session and changes the property value in a destructive way (the property is rewritten, not just its state). When quitting the session after using it a warning indicating the session has unsaved changes will be shown, this can be prevented by appending a extra argument to the message:
```
/EDIT widget_id '{visible: false}' '{noWarning: true}'
```
Note that the arguments after `widget_id` are sent as strings ([JSON5](https://github.com/json5/json5)-encoded objects), this is because sending plain javascript object over osc is not possible.
## Bonus: custom module
Any of these techniques can be used in conjunction with a [custom module](../custom-module/custom-module.md). Using the `receive()` function allows simulating incoming osc messages and can be used to trigger property changes:
=== "Variable widget"
```js
var visible = true
receive('/variable_id', visible)
// or if variable widgets has preArgs
receive('/variable_id', preArg1, preArg2, visible)
```
=== "OSC listener"
```js
var visible = true
receive('/widget_address/show', visible)
// or if listener has preArgs
receive('/widget_address/show', preArg1, preArg2, visible)
```
=== "Custom variable"
```js
var visible = true
receive('/SCRIPT', `setVar('widget_id', 'show', ${visible})`)
```
=== "/EDIT command"
```js
var visible = true
// what's really cool here is that you don't need to stringify objects arguments
// receive() will take care of that for you
receive('/EDIT', 'widget_id', {visible: visible}}, {noWarning: true})
```

View file

@ -1,252 +0,0 @@
# First Steps with Open Stage Control
*Contributed by H. James Harkins, Feb. 2023*
Let's walk through the basic steps to build a simple interface in Open Stage Control, send information to another app, and deploy the interface to remote (even mobile) devices.
Before beginning, you should already have installed Open Stage Control -- see the [Introduction](../getting-started/introduction.md).
Also: This document provides sample patches for SuperCollider, Pure Data and Max/MSP, to receive control data from the Open Stage Control interface. If you do not have any of these tools, I suggest to install [Pure Data](https://puredata.info/downloads/pure-data) because it has the smallest footprint.
## The Launcher
Use your system's application launcher, open the Open Stage Control app. Here, you can configure options for the interface server.
For now, go to the first box ("send") and type in `127.0.0.1:57120`. This will tell the server to send Open Sound Control messages to the same machine where the server is running, on port 57120.
NOTE: For your own applications, you can use any port that is not in use. For this example, I chose 57120 because it is SuperCollider's default UDP port (and I set the Pure Data and Max patches to use the same port, to simplify.)
You don't need to set any other options at this time.
### Addresses and ports
Many users approaching Open Sound Control for the first time get confused about ports. You need to be aware of the FROM and TO addresses. The "send" field in the Launcher should reference the address TO which messages should be sent. In this demo, we are assuming that Open Stage Control and the target app are running on the same machine. So the TO address is localhost: `127.0.0.1`. The "send" box should use the port *on which the target app is receiving messages*. This is typically under control of the target app: 1/ SuperCollider opens 57120 by default; 2/ Pd's [netreceive] object, and Max's [udpreceive], both require the TO port as an argument. So the TO port is your choice, as long as they match.
Open Stage Control sends messages FROM the IP address of the machine where Open Stage Control is running, and from port 8080 (or localhost = `127.0.0.1` if on the same machine). Thus, if the receiving app will filter incoming messages based on address, the filtering address should be the FROM address, port 8080. The target app can also update Open Stage Control's display by sending messages back to exactly this address. So you will see later, in the demo patches, that messages are sent to `127.0.0.1:8080` so that the user's interaction with the target app appears in Open Stage Control as well.
## Starting the server
Click the "play" button near the top left of the window. You should see status messages in the launcher window such as:
```
(INFO) Server started, app available at
http://127.0.0.1:8080
http://your.ip.ad.dress:8080
```
And a new, mostly empty, window will open. This new, larger window is the *client*.
## The client
The client allows you to edit and perform your interface.
The interface design is called a *session*. To create a new session, go to the "three-dots" menu at the top left, and choose Session > New session.
Two new panels are displayed: a project browser, and an object inspector (to set properties). The empty space in the middle is the editor, where you will build the interface.
Let's start with a toggle button. Right-click in the empty editor panel in the middle, and navigate to Add widget > Basics > button. For this demo, we don't need to change anything else: the button defaults to toggle behavior, and the display text is not important for now (although you can change it in the inspector, if you want).
And let's add one more control, to the right of this: Right-click, Add widget > Sliders > fader.
![](./first-steps/two-widgets.png)
When a widget is selected, you can move it by dragging the top-left handle, and resize it by dragging the bottom-right handle. Let's use these handles to position the fader to the right of the button, and stretch it to be horizontal instead of vertical.
![](./first-steps/resized-fader.png)
Notice, however, that the fader's value handle is still vertical. To fix this, look in the Inspector at the right, expand "Fader style," and check the "horizontal" checkbox.
![](./first-steps/fader-style.png)
![](./first-steps/horizontal-fader.png)
By the way: I suggest to keep the widgets closer to the top left, so that they are still visible on a phone screen (later).
When designing an interface for production, you would change other object properties as well. In particular, the Open Sound Control addresses `/button_1` and `/fader_1` are not very descriptive. You would probably want to assign different command paths, in the "osc" tab. As this is just an introduction, we won't do that now.
## Receiving the data
At this time, the interface can already be used: three-dots menu > Editor > "Enabled" (click to disable the editor). (The controls will respond also when the editor is enabled, but you have to click an extra time to select the widget before changing its value.)
To see the effect, launch one of the following apps and open the given patch. The Open Stage Control button should open and close the envelope, and the fader should control frequency. The patches also send control data from their own GUIs back to Open Stage Control, so all of the controls should be synced in both directions.
NOTE: In Pure Data and Max, the default slider/fader range is 0-127, integers. Open Stage Control uses the range 0.0 - 1.0 by default. If you just create a slider and connect it, you won't see much action. In the example patches, the slider's properties have been modified to take a 0.0 - 1.0 floating-point range, matching the data from Open Stage Control.
NOTE: Because all of the patches bind to the same UDP port, you can open only one at a time. You could, if you like, change the port number in one patch, and add that port by specifying multiple "send" targets in the Launcher, e.g. `127.0.0.1:57120 127.0.0.1:7374`.
NOTE: These patches are provided as a courtesy to get you started more quickly. Maintaining, extending or developing them is outside the scope of the Open Stage Control community.
!!! Example "Choose your app"
=== "Pure Data"
Copy the code below, and save it into a text file `osc-first-steps.pd`. Then open it in Pure Data.
```
#N canvas 436 127 562 502 12;
#X obj 86 51 loadbang;
#X msg 86 76 \; pd dsp 1;
#X obj 253 51 netreceive -u -b 57120;
#X obj 253 76 oscparse;
#X obj 253 101 list trim;
#X obj 253 126 route fader_1 button_1;
#X msg 253 190 4 \$1;
#X obj 253 215 pow;
#X obj 253 240 * 200;
#X obj 253 265 lop~ 3;
#X msg 328 265 \$1 100;
#X obj 328 304 line~;
#X obj 279 356 *~;
#X obj 279 381 *~ 0.1;
#X obj 266 424 dac~;
#X text 38 139 Open Stage Control \; "First Steps" tutorial \; hjh
2023;
#X obj 253 304 osc~ 200;
#X obj 328 159 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 0 1;
#X obj 256 159 hsl 60 15 0 1 0 0 empty empty empty -2 -8 0 10 #fcfcfc
#000000 #000000 0 1;
#X obj 70 251 unpack f s;
#X obj 70 325 oscformat;
#X msg 137 283 set \$1;
#X obj 70 424 netsend -u -b;
#X obj 93 356 loadbang;
#X msg 93 381 connect 127.0.0.1 8080;
#X obj 70 226 r sendback;
#X msg 379 200 \; sendback \$1 button_1;
#X msg 379 233 \; sendback \$1 fader_1;
#X connect 0 0 1 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 18 0;
#X connect 5 1 17 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 16 0;
#X connect 10 0 11 0;
#X connect 11 0 12 1;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 13 0 14 1;
#X connect 16 0 12 0;
#X connect 17 0 10 0;
#X connect 17 0 26 0;
#X connect 18 0 6 0;
#X connect 18 0 27 0;
#X connect 19 0 20 0;
#X connect 19 1 21 0;
#X connect 20 0 22 0;
#X connect 21 0 20 0;
#X connect 23 0 24 0;
#X connect 24 0 22 0;
#X connect 25 0 19 0;
```
=== "Max/MSP"
Copy the text below. In Max, choose File > New from clipboard.
```
----------begin_max5_patcher----------
949.3oc0XkraaCCD8rCP9GHDxo.GWRJpEWzaEnW6gdrInfVlwgoxjBRTYEMe
6khTx0HgVlwP1MFAwBZnjl2algyBe9zSFELS9.qJ.7YvOAiF8rVxHirFIi5D
LJXI8grbZk4ACVxppnKXAiaWTwdPYV3SWSmyJ+EBbFZ0h74lkjyt8BDdkzBp
J6FtXwuJYYJq1wwjIvw.LJt4RRh4F7DH3ptWRTujKxYJCJvqIUVq5Di5Dako
drfY+7AAfqLK8mSOo4p9x3AfwypUJoXiTNtWFSBaHIJB1bIM5iDiEr603+sD
tddQESLGfvZGj9ODHElBc5s8f5gnTqEHdKbG4l6vcleYxkKYB0aI32KXBvOT
ZuM3qRgpTlCtL3a7xJkVJqn5x.fpVIK4zbvEfat8F.FhCW8cx4BVlrVX9XgN
LK3DerKv0BLHoGNyRUNWuC1k6DG0GtsHEAM9wXCGvvsC6qykTkF3E0pdnC5e
JtjtjozoXXB5rbSbNruv+t0p3OYjhlr6lFkbwhblSSCoOSCBkLIZksAS5988
4R2Qa.uIP7pgeWxWt3BPVNO62.kDXABfVOmKcZe5MuOJzj3iDEYLSsUAfGtX
d1SyoYu3D3vdi4mNIQiXhcKKIp622W5a3fmh97W.57xNSIOsO9jfab.gSmZH
xfW+shuPPy2G0jN2oyCk5AYiwFZNs4liCx1TfwMeS7HKTaAWBb27t3sQ3wff
YTwh8RuVmgzIQc2pQrGTGaqQEAOFZyJ6wr7M3lIauNbqWd3o5+ivZz14KNM7
XNpNxcPMzCh21gX3wPL845p5vItnZpGL0NVHYvGRxzB5dwyR1vLgIdzHc693
ihQBKj26hl9LufceaX3GNm5l3ZoVULvpy4X03+tL.djn11rKJhrECPnaCP3l
8yia+e+bD.Zdv32w.QIHryjWgdTjxFBfR1sQ+eOw31uroFyqOpKC7ZV3UVhJ
YcYV2Wr6vq.qgw4rJEWPUboX8mx9Pa1l6s9Zl21C88JTIKaFeu+wJ7GBDefP
7dDAwGVadpWpCNX5KwG8EMXpyqHpzAScdE8fiFT8g1p9HCl9B8gejCbBgjMr
aDcvxGfh2iPn4DL7HnB9w.Bn8TZQjeIplNXwdHuxTYfEZXTneY9SFNFR7lgC
jBQdovgK+AB5kBcWMssCJZQwcrxp1WwpKcSi2JMg1ois2yE16ssnETxti28J
1SpNfVp6IToaHrtz.wfGha6VNXoTuQQTy61t1v1FUa5KUP0SaUPs7xz+5omn
ef+B9C+QQC
-----------end_max5_patcher-----------
```
=== "SuperCollider"
Copy/paste the code below into a new code document. Run the entire block to start. It will clean up when you close the GUI window.
```
// OSC response part
(
var addr = NetAddr("127.0.0.1", 8080); // FROM address
var freqRange = ControlSpec(200.0, 800.0, \exp);
var button, slider;
OSCdef(\button, { |msg|
defer { button.value = msg[1] };
if(x.notNil) { x.set(\gate, msg[1]) };
}, '/button_1', addr);
OSCdef(\slider, { |msg|
defer { slider.value = msg[1] };
if(x.notNil) { x.set(\freq, freqRange.map(msg[1])) };
}, '/fader_1', addr);
w = Window("Open Stage Control", Rect(800, 200, 400, 100)).front;
w.layout = HLayout(
button = Button(),
slider = Slider().orientation_(\horizontal)
);
w.alwaysOnTop = true; // may not take effect in all window managers
button.states = [["off"], ["playing", Color.black, Color(0.7, 1, 0.7)]];
button.action = { |view|
if(x.notNil) { x.set(\gate, view.value) };
addr.sendMsg('/button_1', view.value);
};
slider.action = { |view|
if(x.notNil) { x.set(\freq, freqRange.map(view.value)) };
addr.sendMsg('/fader_1', view.value);
};
w.onClose = {
if(x.notNil) { x.free };
OSCdef(\button).free;
OSCdef(\slider).free;
};
// audio part
// if this fails (if you have an issue with audio devices),
// you won't hear anything but the onscreen GUIs
// will reflect changes from Open Stage Control
s.waitForBoot {
x = { |freq = 200, amp = 0.1, gate = 0|
var eg = EnvGen.kr(Env.asr(0.1, 1, 0.1), gate);
(SinOsc.ar(Lag.kr(freq, 0.1)) * amp * eg).dup
}.play;
};
)
```
## Deploying the interface
The whole point of Open Stage Control is to make the interface available on other devices, especially mobile devices.
The interface will not be visible to other clients, however, until you save it to disk: three-dots menu > Session > Save, and give the file a name such as `open-stage-demo` (you don't need to type the `.json` extension).
Now -- remember those status messages in the launcher window? On another device (computer, phone or tablet), go to the `http://192.168.xxx.yyy:8080` address. The device should be on the same (W)LAN. (If there is another remote address, it may or may not work, depending on your network.) Supported browsers are Firefox v. 75 and higher, or Chromium/Chrome v. 60 and higher.
This should open an empty client window, similar to the one you saw before.
From here, you can open the session that you just saved: three-dots menu *in the webpage* > Session > Open Recent (yes, this is synced from the server!). This should display the controls created in that session, and the controls should function the same as in the other client window.
And that is... it! Basic usage is as simple as that.
For convenience, if there is a session you know that you will use often, and you don't want to load it in the webpage by hand every time, you can choose the file under "load" in the initial Launcher window. This is also useful for public deployments with audience participation, where you don't want audience members to have to load manually.
When not using Open Stage Control, you can also stop the server from the launcher window (stop button, top-left).

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

View file

@ -7,8 +7,6 @@
- Open: browse session files on the server
- Open recent: open a recent session on the server
- Save / Save as: save session file on the server
- Fragment mode: when enabled, the session will be saved as a fragment file (only the root's first child will be saved)
- Save backup: save a copy of current session with a incremented suffix appended to the file name
- Import: import a session file from the client's filesystem
- Export: export a session file to the client's filesystem
- State
@ -20,22 +18,17 @@
- Import: import a state file from the client's filesystem
- Export: export a state file to the client's filesystem
- Editor
- Enable: toggle editor's state
- Enable: togggle editor's state
- Grid: toggle grid
- Project tree: toggle project tree's visibility
- Inspector: toggle inspector's visibility
- Relative units (%): when enabled, newly created widgets will have their position and size set in percents.
- Console
- Enable: toggle console's state
- Clear console: remove logged messages from the console
- Virtual keyboard: (desktop only) toggle virtual keyboard (displayed only when a text input is in focus, except for code editors in the inspector)
- Fullscreen: toggle fullscreen
- Notifications: toggle visibility of notifications
- Prevent sleep (mobile only): attempt to prevent device from going to sleep when idle
## 2. Sidepanels
The sidepanels are only visible when the editor is active, they can be resized and/or hidden. Both are described in the [editor](./editor.md) section.
The sidepanels are only visible when the editor is active, they can be resized and/or hidden. Both are describe in the [editor](./editor.md) section.
## 3. Session
@ -43,7 +36,7 @@ It is the main component, it contains all the widgets and takes all the availabl
## 4. Notifications
Notifications appear in the lower right corner, they are usually used to convey server status information and can be dismissed with a single click.
Notifications appear in the lower right corner, they are usually used to convey server status informations.
## 5. Modals
@ -53,43 +46,21 @@ Modals are virtual popup windows that may contain various content: file browser,
## Keyboard shortcuts
=== "Linux"
=== "Linux / Windows"
| Shortcut | Description |
|---|---|
| ++ctrl+"Mousewheel"++ | change global zoom (pixel scaling) |
| ++ctrl+0++ | reset global zoom |
| ++ctrl+e++ | enable/disable editor |
| ++ctrl+k++ | show/hide console |
| ++ctrl+l++ | clear console |
| ++ctrl+s++ | save session |
| ++ctrl+shift+s++ | save session as... |
| ++ctrl+o++ | open a session file |
| ++ctrl+w++ | close client |
=== "Windows"
| Shortcut | Description |
|---|---|
| ++ctrl+"Mousewheel"++ | change global zoom (pixel scaling) |
| ++ctrl+0++ | reset global zoom |
| ++ctrl+e++ | enable/disable editor |
| ++ctrl+k++ | show/hide console |
| ++ctrl+l++ | clear console |
| ++ctrl+s++ | save session |
| ++ctrl+shift+s++ | save session as... |
| ++ctrl+o++ | open a session file |
| ++alt+f4++ | close client |
=== "Mac"
| Shortcut | Description |
|---|---|
| ++cmd+"Mousewheel"++ | change global zoom (pixel scaling) |
| ++cmd+0++ | reset zoom |
| ++cmd+e++ | enable/disable editor |
| ++cmd+k++ | show/hide console |
| ++cmd+l++ | clear console |
| ++cmd+s++ | save session |
| ++cmd+shift+s++ | save session as... |
| ++cmd+o++ | open a session file |

View file

@ -1,6 +1,6 @@
## Widget selection
Clicking on a widget, on a tab label or on an item in the project tree selects the widgets for editing:
Clicking on a widget, on a tab label or on an item in the project tree selects the widgets for edition:
- All its editable properties are shown in the inspector panel
- The corresponding item in the project tree is highlighted
@ -9,18 +9,12 @@ Clicking on a widget, on a tab label or on an item in the project tree selects t
![](../../img/screenshots/editor.png)
To interact with a widget directly without selecting it, either use the middle mouse button or hold ++shift+win++ (++shift+cmd++ on Mac).
## Menu
Right clicking on a widget displays a menu with the following actions
- `Show in tree`: show widget in project tree (hidden when clicking in the project tree)
- `Position`:
- `Send to back`: Send selected widget to back (first of siblings)
- `Send farther`: Send selected widget farther
- `Bring closer`: Bring selected widget closer
- `Bring to front`: Bring selected widget to front (last of siblings)
- `Copy`: copy widget's data
- `Cut`: copy widget's data and delete selected widget
- `Paste`: paste copied widget in selected container
@ -29,7 +23,6 @@ Right clicking on a widget displays a menu with the following actions
- `Clone` : create a clone widget targetting the copied widget
- `Add widget`: create a new widget in selected container
- `Add tab`: create a new tab in selected container
- `Export`: export as fragment file
- `Delete`: delete selected tab or widget
@ -38,28 +31,21 @@ Right clicking on a widget displays a menu with the following actions
Selected widget's properties are displayed and can be modified in the inspector. The [properties reference](../widgets/properties-reference.md) lists the available properties for each widget type.
- Property fields are all multiline (press `shift + enter` for new line).
- Properties are written in JSON, with some flexibility brought by the [JSON5](https://github.com/json5/json5) format. For example, double quotes around object keys are not mandatory.
- Properties are written in JSON, with some flexibility brought by the [JSON5](https://github.com/json5/json5) format. For example, doubles quotes around object keys are not mandatory.
- Clicking on a property name spawns a help modal window
- Properties are divided into multiple categories that can be toggled with a click. ++alt+"Click"++ on a category closes the other categories before toggling selected category.
Some properties (for example `onValue`) have a special code editor with syntax highlighting and many keyboard shortcuts (available by clicking on the "Help" button). In these properties, pressing `enter` will not submit pending changes but instead insert a new line at the cursor position (as you would expect in a regular editor). To submit pending changes, press ++ctrl+enter++ (or ++cmd+enter== on Mac) or click outside the editor.
Widgets can be locked for edition by enabling their `lock` property. When locked, a widget can't be modified by the editor but it remains possible to delete it or to move it from a container to another in the project tree.
## Project tree
The project tree displays the whole widget structure of the session. Widgets can be reordered or moved to another container with drag-and-drop.
The "Filter" input allows filtering displayed widgets by their `id`. It's also possible to only display a single type of widget by typing `type:fader` for example.
Invisible widgets are displayed with a lower opacity and their name in italic. Locked widgets are displayed with a lock icon after their name.
The project tree displays the whole widget structure of the session. Widgets can be reordered within a container with drag-and-drop.
## Widget resizing / dragging
Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle (holding ++alt++ extends this handle to the widget's size to ease dragging). If the widget's position/size was written in percents, the editor will try to keep using percents.
Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle. If the widget's position/size was written in percents, the editor will try to keep using percents.
When the grid is enabled, widget resizing / dragging snaps to a 10 pixel wide grid.
## Multi-widgets editing
Multiple widgets can be edited at once.
@ -81,7 +67,7 @@ Multiple widgets can be edited at once.
| ++ctrl+i++ | Toggle inspector. |
| ++"Click"++ | Widget selection. |
| ++ctrl+"Click"++ | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.|
| ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it. If ++ctrl++ is pressed too, current selection is kept and will be merged with the new one if possible. |
| ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it (starts by selecting the widget under the cursor). If ++ctrl++ is pressed too, current selection is kept and will be merged with the new one if possible. |
| ++ctrl+z++ | Undo |
| ++ctrl+y++ <br/>++ctrl+shift+z++ | Redo |
| ++delete++ | Delete selected widgets |
@ -89,30 +75,14 @@ Multiple widgets can be edited at once.
| ++ctrl+x++ | Cut selected widgets |
| ++ctrl+v++ | Paste clipboard in selected widget |
| ++ctrl+shift+v++ | Paste and increment id |
| ++ctrl+d++ | Duplicate selected widget |
| ++ctrl+shift+d++ | Duplicate selected widget and increment id |
| ++alt+c+"Drag"++ | Paste selection to position |
| ++alt+c+shift+"Drag"++ | Paste selection to dragged position and increment id |
| ++ctrl+up++ <br/>++ctrl+down++ <br/>++ctrl+left++ <br/>++ctrl+right++ | Move selected widgets (1 grid unit, hold ++shift++ for 5 grid units) |
| ++up++ <br/>++down++ <br/>++left++ <br/>++right++ | Move selected widgets (1 grid unit, hold ++shift++ for 5 grid units) |
| ++alt+up++ <br/>++alt+down++ <br/>++alt+left++ <br/>++alt+right++ | Resize selected widgets (1 grid unit, hold ++shift++ for 5 grid units) |
| ++ctrl+a++ | Select current widget's siblings and itself |
| ++ctrl+shift+a++ | Cancel current widget selection |
| ++up++ | Select current widget's previous sibling |
| ++down++ | Select current widget's next sibling |
| ++left++ | Select current widget's parent |
| ++right++ | Select current widget's first child |
| ++t++ | Show selected widget(s) in the project tree |
| ++y++ | Show selected widget(s) in the session |
| ++ctrl+f++ | Focus search input in project tree |
| ++"Home"++ | Send selected widget to back |
| ++"Page Up"++ | Send selected widget farther |
| ++"Page Down"++ | Bring selected widget closer |
| ++"End"++ | Bring selected widget to front |
| ++"F2"++ | Bring "label" property input into view if selected widget has one |
| ++h++ | Hide selection area and widget resize / drag handles while pressed |
| ++alt+"Mousewheel"++ | change editor zoom |
| ++ctrl+0++ | reset zoom |
| ++ctrl+up++ | Select current widget's parent |
| ++ctrl+down++ | Select current widget's first child |
| ++ctrl+right++ | Select current widget's next sibling |
| ++ctrl+left++ | Select current widget's previous sibling |
=== "Mac"
@ -123,7 +93,7 @@ Multiple widgets can be edited at once.
| ++cmd+i++ | Toggle inspector. |
| ++"Click"++ | Widget selection. |
| ++cmd+"Click"++ | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.|
| ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it. If ++cmd++ is pressed too, current selection is kept and will be merged with the new one if possible. |
| ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it (starts by selecting the widget under the cursor). If ++cmd++ is pressed too, current selection is kept and will be merged with the new one if possible. |
| ++cmd+z++ | Undo |
| ++cmd+y++ <br/>++cmd+shift+z++ | Redo |
| ++backspace++ | Delete selected widgets |
@ -131,26 +101,11 @@ Multiple widgets can be edited at once.
| ++cmd+x++ | Cut selected widgets |
| ++cmd+v++ | Paste clipboard in selected widget |
| ++cmd+shift+v++ | Paste and increment id |
| ++cmd+d++ | Duplicate selected widget |
| ++cmd+shift+d++ | Duplicate selected widget and increment id |
| ++alt+c+"Drag"++ | Paste selection to position |
| ++alt+c+shift+"Drag"++ | Paste selection to dragged position and increment id |
| ++cmd+up++ <br/>++cmd+down++ <br/>++cmd+left++ <br/>++cmd+right++ | Move selected widgets (1 grid unit, hold ++shift++ for 5 grid units) |
| ++up++ <br/>++down++ <br/>++left++ <br/>++right++ | Move selected widgets (1 grid unit, hold ++shift++ for 5 grid units) |
| ++alt+up++ <br/>++alt+down++ <br/>++alt+left++ <br/>++alt+right++ | Resize selected widgets (1 grid unit, hold ++shift++ for 5 grid units) |
| ++cmd+a++ | Select current widget's siblings and itself |
| ++cmd+shift+a++ | Cancel current widget selection |
| ++up++ | Select current widget's previous sibling |
| ++down++ | Select current widget's next sibling |
| ++left++ | Select current widget's parent |
| ++right++ | Select current widget's first child |
| ++t++ | Show selected widget in the project tree |
| ++y++ | Show selected widget(s) in the session |
| ++cmd+f++ | Focus search input in project tree |
| ++"Home"++ | Send selected widget to back |
| ++"Page Up"++ | Send selected widget farther |
| ++"Page Down"++ | Bring selected widget closer |
| ++"End"++ | Bring selected widget to front |
| ++"F2"++ | Bring "label" property input into view if selected widget has one |
| ++h++ | Hide selection area and widget resize / drag handles while pressed |
| ++alt+"Mousewheel"++ | change editor zoom |
| ++cmd+0++ | reset zoom |
| ++cmd+up++ | Select current widget's parent |
| ++cmd+down++ | Select current widget's first child |
| ++cmd+right++ | Select current widget's next sibling |
| ++cmd+left++ | Select current widget's previous sibling |

View file

@ -5,77 +5,36 @@
- Start: start the server (hidden when started)
- Stop: stop the server (hidden when stopped)
- New window: open a new client window (hidden when stopped)
- Load: load server configuration from file
- Load: load server configration from file
- Save / Save as: save server configuration to file
- MIDI
- List devices: list available MIDI devices in the console
- Restart backend: restart midi backend without restarting the server
- List MIDI devices: list available MIDI devices in the console
- Console:
- Clear: clear console
- Autoscroll: enable/disable console autoscroll
- Autoscrell: enable/disable console autoscroll
- Check for update at startup: enable/disable this feature
- Launcher
- Autostart: start the server automatically when launcher is started
- Always on top: pin the launcher window above other the windows
- Use tray: enable tray icon and menu
- Start minimized: starts the launcher minimized (or hidden in tray)
The "play/stop" icon can be used to start and stop the server without opening the menu.
## 2. Configuration form
## 2. Configuration form
Each server option is displayed here. When clicking on an option's label, a short help will be printed in the console. When an option is not correctly set, its label will turn to orange and an error message will be printed in the console.
Each server option is displayed here. When clicking on an option's label, a short help will be printed in the console. When an option is not correctly set, it's label will turn to orange and an error message will be printed in the console.
## 3. Console
The console displays various information, runtime errors and server debug messages.
## Tray icon
If `Use tray` is set, the launcher comes with a system tray icon that keeps the launcher alive when closed if there is at least one client window opened or if the server is running. Its context menu can be used to toggle the launcher's visibility and access some of the launcher's menu actions.
The console diplays various informations, runtime errors and server debug messages.
## Keyboard shortcuts
=== "Linux"
=== "Linux / Windows"
| Shortcut | Description |
|---|---|
| ++f5++ | start server |
| ++f6++ | stop server |
| ++ctrl+n++ | open new client window |
| ++ctrl+o++ | load settings |
| ++ctrl+s++ | save settings |
| ++ctrl+shift+s++ | save settings as... |
| ++ctrl+m++ | list midi devices |
| ++ctrl+l++ | clear console |
| ++ctrl+w++ | close window |
=== "Windows"
| Shortcut | Description |
|---|---|
| ++f5++ | start server |
| ++f6++ | stop server |
| ++ctrl+n++ | open new client window |
| ++ctrl+o++ | load settings |
| ++ctrl+s++ | save settings |
| ++ctrl+shift+s++ | save settings as... |
| ++ctrl+m++ | list midi devices |
| ++ctrl+l++ | clear console |
| ++alt+f4++ | close window |
=== "Mac"
| Shortcut | Description |
|---|---|
| ++f5++ | start server |
| ++f6++ | stop server |
| ++cmd+n++ | open new client window |
| ++cmd+o++ | load settings |
| ++cmd+s++ | save settings |
| ++cmd+shift+s++ | save settings as... |
| ++cmd+m++ | list midi devices |
| ++cmd+l++ | clear console |
| ++cmd+w++ | close window |
| ++cmd+q++ | quit app |

View file

@ -1,18 +1,20 @@
# Advanced syntaxes
Advanced syntaxes are special blocks of code that can be written in the widgets properties to customize the widgets and how they behave. These blocks end up replaced with the value they hold before the widgets evaluate the properties they're in.
## Inheritance: `@{id.property}`
The inheritance syntax returns either a widget's value or one of its properties. When using this syntax, value or property changes will be applied automatically.
Widgets can use each other's properties values and update automatically when they change by using this syntax.
- `id`: target widget's `id`. A widget can fetch its own properties or its direct parent's by using the keywords `this` or `parent` instead of `id`. When `this` or `parent` can be used, using the target widget's `id` instead won't work.
- `property`: target widget's property name. If omitted (along with the dot), the widget's value will be returned (`@{widgetId}` is the same as `@{widgetId.value}`). `value` always resolves to the target widget's current value, not its `value` property.
- `id`: the target widget's `id`
- `property`: is the target widget's property name
!!! note "Unique identifier"
Each widget has a unique random identifier that can be retrieved with the property name `uuid` (e.g. `@{this.uuid}`, `@{parent.uuid}`).
#### Value
The property name (and the dot) can be omitted and defaults to `value` (`@{widgetId}` => `@{widgetId.value}`). `value` always resolves to the target widget's current value, not its `value` property
#### `this` & `parent`
A widget can fetch its own properties or its direct parent's by using the keywords `this` or `parent` instead of `id`. When `this` or `parent` can be used, using the target widget's `id` instead won't work.
#### Dynamic properties
@ -28,17 +30,17 @@ Some properties have much cheaper update routines and can be considered as `dyna
#### Object properties
If the retrieved property is an object (`{}`), a subset can be retrieved directly by appending a dot and a key (array index or object key) : `@{parent.variables.key}`
If the retreived property is an object (`{}`) or an array (`[]`), a subset can be retreived directly by appending a dot and a key (array index or object key) : `@{parent.variables.key}`
#### Nesting
The inheritance syntax supports 1-level nesting for defining the target widget's id dynamically : `@{fader_@{toggle_1}}`
The inheritance syntax supports 1-level nesting : `@{fader_@{toggle_1}}`
## OSC listeners: `OSC{address, default, usePreArgs}`
The OSC listener syntax returns the value received on specified address (or the `default` value if none has been received yet).
This syntax allows listening on an osc address to define a property.
- `address`: osc address to listen to; if the leading slash (`/`) is omitted, the address will be prefixed with the widget's `address` property
- `default` (optional): default value returned before any message is received. Must be a primitive value, not an object or an array.
@ -46,79 +48,48 @@ The OSC listener syntax returns the value received on specified address (or the
Options can contain `@{}` blocks.
!!! note "Receiving MIDI"
Midi messages will be processed only if the receiver's widget includes the emitting MIDI device in its targets.
??? example "Array/Object default value"
```js
JS{
JS{{
return OSC{address} || {
"key a": 1,
"key b": 2
"key b", 2
}
}
}}
```
## Custom variables: `VAR{variableName, default}`
This syntax creates a custom variable in the widget that can be read and modified from any widget's script property (see [scripting](./scripting.md#getvarid-name)). Changes made to this variable using `setVar()` in scripts will be applied automatically where `VAR{}` is used.`
## Javascript: `JS{{ <code> }}`
## File imports: `IMPORT{file_name}`
This allows loading the content of an external file in a property. If used in a `JS{}` of `#{}` block, it will be seen as a string variable containing the raw content of the file. Changes made to the file be applied automatically.
File paths are resolved in this order:
- in the session's directory
- in theme's directory
- in the server's `remote-root` directory if the option is set
- as absolute paths
!!! warning
[Fragments](../fragments/) and session files already loaded with fragment widgets should not be imported using this syntax.
## Javascript: `JS{ <code> }`
This syntax allows defining a property using [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript). The code will be compiled as a function and executed in a restricted context.
This syntax allows writing formulas in pure javascript. The code will be compiled as a function and executed in a restricted context.
- if no `return` statement is found, the formula will return an empty string
- javascript [strict mode](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Strict_mode) is always enabled
- `setTimeout` and `setInterval` functions are not available
A property *cannot* contain multiple `JS{}` blocks
A property cannot contain multiple `JS{{}}` blocks
#### Available variables
- `console`: javascript console
- `locals`: object for storing/reading arbitrary values. Changing its properties *does not* trigger any synchronisation even if the value is used somewhere else.
- `globals`: same as `locals` but shared between all widgets, contains a few useful variables:
- `screen`: client screen informations (`{width, height, orientation}`)
- `screen`: client screen dimensions (`{width, height}`)
- `env`: client options (ie: url query options),
- `ip`: client's ip address,
- `url`: server url,
- `platform`: operating system as seen by the client
- `session`: session file path
- `clipboard`: instance of navigator [Clipboard](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard)
Parsing errors can be read in the console (++ctrl+k++).
In this context, `@{} / OSC{}` are also seen as variables (named `VAR_XXX`), not as the value they hold,
Parsing errors can be read in the DevTool console (F12).
!!! warning
Modifying values in `locals` or `globals` **does not** trigger anything if they are used somewhere else.
#### Using in advanced syntaxes
In this context, `@{}`, `VAR{}` and `OSC{}` syntaxes are seen as variables. When they change, the whole block will be evaluated again.
!!! danger "Do not mutate"
When these syntaxes return objects or arrays, mutating said objects will affect the underlying variables in memory and may lead to unexpected behavior.
The `@{}` syntax, when used for anything else than the widget's value, will always return a copy of the property and is not affected by this.
## Javascript: `#{ <code> }`
This is a shorthand for the `JS{}` syntax, the only difference being that `<code>` is automatically prepended with a `return` statement.
A property *can* contain multiple `#{}` blocks.
This is a shorthand for the `JS{{}}` syntax, the only difference being that `<code>` is automatically prepended with a `return` statement. A property can contain multiple `#{}` blocks.
!!! note "Compilation order"
`#{}` blocks are compiled after `JS{}` blocks
`#{}` blocks are compiled after `JS{{}}` blocks

View file

@ -1,195 +0,0 @@
# Canvas widget
The canvas widget allows creating custom widgets with user-defined drawings and touch reactions.
It has dedicated scripting properties (`onTouch`, `onDraw` and `onResize`) that work like the `onValue` property : they are used to defined scripts that will be executed when specific events occurs.
This widget requires a good understanding of the javascript [Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) and of the javascript programming language in general.
## Canvas properties
### `valueLength`
This property must be set to the number of values held by the widget : 1 for a simple slider, 2 for an XY pad, etc. Attempts to set the widget's value with a different number of values will be ignored.
```js
set("this", 1) // works if valueLength == 1
set("this", [1, 2]) // works if valueLength == 2
```
### `autoClear`
This is a convenience option that clears the canvas context and calls [`beginPath`](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/beginPath) before each drawing. When this property is set to `false`, the canvas must be cleared manually.
### `continuous`
If this property is enabled, the widget will be redrawn at a fixed rate even if not interacted with (see [`onDraw`](#onDraw)).
### `onTouch`
This script is executed when the widget is touched, when it is released, and during the movement of the pointer while the widget is touched.
This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following:
- `value`: widget value
- `width`: canvas width in pixels
- `height`: canvas height in pixels
- `event`: object containing the following:
- `type`: `"start"`, `"move"` or `"stop"`
- `target`: id of the widget under the pointer, `"this"` if it's the canvas widget itself, `null` if no widget is under the pointer
- `targetName`: name attribute of the html element under the pointer
- `targetTagName`: tag name of the html element under the pointer
- `offsetX`, `offsetY`: touch coordinates in pixels, relative to the html element under the pointer
- `movementX`, `movementY`: movement of the pointer in pixels since the last event
- `pageX`, `pageY`: touch coordinates in pixels, relative to the page
- `pointerId`: unique identifier used to differentiate fingers in multitouch situation
- `altKey`, `ctrlKey`, `shiftKey`: keyboard modifier states
- `force`: amount of pressure applied to the touch surface between `0` and `1` (see [Touch.force](https://developer.mozilla.org/en-US/docs/Web/API/Touch/force)). Equals `0` if the API is not supported or if no pressure information is found.
- `radiusX`, `radiusY`, `rotationAngle`: see [Touch.rotationAngle](https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle)
- (iOS only) `altitudeAngle`, `azimuthAngle`: see [Touch.altitudeAngle](https://w3c.github.io/touch-events/#dom-touch-altitudeangle)
- (iOS only) `touchType`: "direct" or "stylus"
!!! note "Extra html elements"
Elements added using the `html` property can be touched as well, `event.targetName` can be used to determine which element is touched.
### `onDraw`
This script is executed when the widget should be redrawn, which is when it's touched and when it receives a value.
This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following:
- `value`: widget value
- `width`: canvas width in pixels
- `height`: canvas height in pixels
- `ctx`: [canvas rendering context](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) of the widget
- `cssVars`: object containing the computed value of some of the widget's style properties such as `colorWidget`, `alphaFill`, `padding`, etc
In this script, all osc messages emissions are prevented and changing the value of a widget won't trigger widget synchronisation / scripts / advanced syntaxes updates.
### `onResize`
This script is executed when the widget has resized, before it is redrawn.
This script has access to the same variables and functions as the `onValue` property (except the event-specific ones), plus the following:
- `value`: widget value
- `width`: canvas width in pixels
- `height`: canvas height in pixels
- `cssVars`: object containing the computed value of some of the widget's style properties such as `colorWidget`, `alphaFill`, `padding`, etc
## Example: XY pad
Let's create a simple xy pad, with a value made of two numbers between 0 and 1. We set `valueLength` to `2` to make sure the widget only accepts incoming messages with two values (x and y).
First, we use the `onTouch` property to store the touch coordinates in the `locals` object. We also call `set()` to store these in the widget's value (this way, the widget can send messages and sync with other widgets).
```js
// onTouch
// store normalized coordinates
if (event.type == "start") {
locals.x = event.offsetX / width
locals.y = event.offsetY / height
} else {
// when the pointer is moving, increment coordinates
// because offsetX and offsetY may not be relevant
// if the pointer hovers a different widgets
locals.x += event.movementX / width
locals.y += event.movementY / height
}
// update widget value and send
set("this", [locals.x, locals.y])
```
Then, we use the `onDraw` property to draw a circle at the touch coordinates.
```js
// onDraw
// draw circle at touch coordinates
ctx.arc(value[0] * width, value[1] * height, 6, 0, Math.PI * 2)
// use colorFill property as stroke color
ctx.strokeStyle = cssVars.colorFill
// draw stroke
ctx.stroke()
```
Finally, we use the `onValue` property to apply limits to the values.
```js
// onValue
// apply limits
var x = Math.max(0, Math.min(1, value[0])),
y = Math.max(0, Math.min(1, value[1]))
// re-update widget value without retriggering script or sending message
set("this", [x, y], {sync: false, send: false})
// the widget will automatically send its value if
// this script was triggered by a user interaction
// no need to call send() here but we could, for example
// if we want to split the value in to multiple messages
```
## Example: multi slider
Let's build a row of 20-sliders with a single widget. We first set `valueLength` to... 20 !
```js
// onTouch
// store normalized coordinates
if (event.type == "start") {
locals.x = event.offsetX / width
locals.y = event.offsetY / height
} else {
// when the pointer is moving, increment coordinates
// because offsetX and offsetY may not be relevant
// if the pointer hovers a different widgets
locals.x += event.movementX / width
locals.y += event.movementY / height
}
// which slider are we touching ?
var n = parseInt(locals.x * value.length)
n = Math.max(0, Math.min(n, value.length-1))
// update value at slider's index
// 1 - locals.y because y axis is from top to bottom in js canvas
value[n] = 1 - locals.y
// update widget value and send
set("this", value)
```
```js
// onDraw
ctx.fillStyle = cssVars.colorFill
ctx.globalAlpha = cssVars.alphaFillOn
var sliderWidth = width / value.length - 1
for (var i in value){
ctx.beginPath()
ctx.rect(i * width / value.length, height, sliderWidth, - value[i] * height)
ctx.fill()
}
```
```js
// onValue
// apply limits
for (var i in value) {
value[i] = Math.max(0, Math.min(1, value[i]))
}
// re-update widget value without retriggering script or sending message
set("this", value, {sync: false, send: false})
```

View file

@ -1,15 +0,0 @@
# Fragments
Fragments allow breaking sessions into multiple files and reusable components made of multiple widgets.
## Fragment files
When right-clicking on a widget in the editor mode, it is possible to export it as a fragment file.
Fragment files have the same extension as session files (`.json`) and can be opened like regular sessions. When doing so, keep in mind that only the first child of the root widget will be saved. It is possible to save a fragment file as a session file (and vice versa) by toggling the `Fragment mode` in the main menu.
## Fragment widgets
Fragment widgets work like clone widget except their source widget are loaded from fragment files or session files. When the sources files are modified, the fragment widgets are updated automatically.

View file

@ -58,5 +58,3 @@ From a client to another, widgets are automatically synchronized if they share t
- `address`
- `preArgs`
- `targets`
Client synchronization can be disabled globally with the `clientSync` [client option](../client-options.md). Widgets with `bypass` set to `true` will not send synchronization messages to other clients.

View file

@ -0,0 +1,734 @@
<!-- This file is generated automatically from the widget class declarations. See scripts/build-widget-reference.js -->
## Common
??? api "<div id="generic_properties">Generic properties<a class="headerlink" href="#generic_properties" title="Permanent link">#</a></div>"
Properties shared by all widgets
=== "widget"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="type">type<a class="headerlink" href="#type" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Widget type |
| <h6 id="id">id<a class="headerlink" href="#id" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. |
| <h6 id="visible">visible<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#visible" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to hide the widget. |
| <h6 id="interaction">interaction<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#interaction" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to disable pointer interactions. |
=== "geometry"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="left">left<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#left" title="Permanent link">#</a></h6> | `number`&vert;<br/>`string` | <code>"auto"</code> | 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).<br/><br/>Otherwise, the widget will be absolutely positioned |
| <h6 id="top">top<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#top" title="Permanent link">#</a></h6> | `number`&vert;<br/>`percentage` | <code>"auto"</code> | 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).<br/><br/>Otherwise, the widget will be absolutely positioned |
| <h6 id="width">width<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#width" title="Permanent link">#</a></h6> | `number`&vert;<br/>`percentage` | <code>"auto"</code> | Widget width |
| <h6 id="height">height<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#height" title="Permanent link">#</a></h6> | `number`&vert;<br/>`percentage` | <code>"auto"</code> | Widget height |
| <h6 id="expand">expand<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#expand" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>"false"</code> | If parent's layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically. |
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="colorBg">colorBg<a class="headerlink" href="#colorBg" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Panel background color. Set to "auto" to inherit from parent widget. |
| <h6 id="colorText">colorText<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#colorText" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Text color. Set to "auto" to inherit from parent widget. |
| <h6 id="colorWidget">colorWidget<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#colorWidget" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Widget's default accent color. Set to "auto" to inherit from parent widget. |
| <h6 id="colorStroke">colorStroke<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#colorStroke" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Stroke color. Set to "auto" to use `colorWidget`. |
| <h6 id="colorFill">colorFill<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#colorFill" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Fill color. Set to "auto" to use `colorWidget`. |
| <h6 id="alphaStroke">alphaStroke<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#alphaStroke" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Stroke color opacity. |
| <h6 id="alphaFillOff">alphaFillOff<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#alphaFillOff" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Fill color opacity (off). |
| <h6 id="alphaFillOn">alphaFillOn<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#alphaFillOn" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Fill color opacity (on). |
| <h6 id="lineWidth">lineWidth<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#lineWidth" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Stroke width. |
| <h6 id="padding">padding<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#padding" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Inner spacing. |
| <h6 id="css">css<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#css" title="Permanent link">#</a></h6> | `string` | <code>""</code> | CSS rules. See <a href="https://openstagecontrol.ammd.net/docs/customization/css-tips/">documentation</a>.<br/><br/>Available css variables:<br/>- `--color-background`: `colorBg`<br/>- `--color-widget`: `colorWidget`<br/>- `--color-fill`: `colorFill`<br/>- `--color-stroke`: `colorStroke`<br/>- `--color-text`: `colorText`<br/>- `--widget-padding`: `padding`<br/>- `--line-width`: `lineWidth`<br/>- `--alpha-fill-on`: `alphaFillOn`<br/>- `--alpha-fill-off`: `alphaFillOff`<br/>- `--alpha-stroke`: `alphaStroke` |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#value" title="Permanent link">#</a></h6> | `*` | <code>""</code> | Define the widget's value depending on other widget's values / properties using the advanced property syntax |
| <h6 id="default">default<a class="headerlink" href="#default" title="Permanent link">#</a></h6> | `*` | <code>""</code> | If set, the widget will be initialized with this value when the session is loaded. |
| <h6 id="linkId">linkId<a class="headerlink" href="#linkId" title="Permanent link">#</a></h6> | `string`&vert;<br/>`array` | <code>""</code> | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.<br/><br/>When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)<br/><br/>When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending) |
| <h6 id="script">script<a class="headerlink" href="#script" title="Permanent link">#</a></h6> | `script` | <code>""</code> | Script executed whenever the widget's value updates. See <a href="https://openstagecontrol.ammd.net/docs/widgets/scripting/">documentation</a>. |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="address">address<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#address" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | OSC address for sending / receiving messages, it must start with a slash (`/`)<br/><br/>By default ("auto"), the widget's id is used: `/widget_id` |
| <h6 id="preArgs">preArgs<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#preArgs" title="Permanent link">#</a></h6> | `*`&vert;<br/>`array` | <code>""</code> | A value or array of values that will be prepended to the OSC messages. |
| <h6 id="typeTags">typeTags<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#typeTags" title="Permanent link">#</a></h6> | `string` | <code>""</code> | Defines the osc argument types, one letter per argument (including preArgs)<br/>- If empty, the types are infered automatically from the values (with numbers casted to floats by default)<br/>- If there are more arguments than type letters, the last type is used for the extra arguments<br/><br/>See http://opensoundcontrol.org/spec-1_0 for existing typetags |
| <h6 id="decimals">decimals<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#decimals" title="Permanent link">#</a></h6> | `integer` | <code>2</code> | Defines the number of decimals to send. |
| <h6 id="target">target<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#target" title="Permanent link">#</a></h6> | `string`&vert;<br/>`array`&vert;<br/>`null` | <code>""</code> | This defines the targets of the widget's OSC messages<br/>- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:port"]`<br/>- If midi is enabled, targets can be `midi:device_name`<br/>- If no target is set, messages can still be sent if the server has default targets |
| <h6 id="ignoreDefaults">ignoreDefaults<a class="headerlink" href="#ignoreDefaults" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to ignore the server's default targets |
| <h6 id="bypass">bypass<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#bypass" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to prevent the widget from sending any osc message |
## Basics
??? api "<div id="button">button<a class="headerlink" href="#button" title="Permanent link">#</a></div>"
On / off button.
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="button_css">css<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#button_css" title="Permanent link">#</a></h6> | `string` | <code>""</code> | CSS rules. See <a href="https://openstagecontrol.ammd.net/docs/customization/css-tips/">documentation</a>.<br/><br/>Available css variables:<br/>- `--color-background`: `colorBg`<br/>- `--color-widget`: `colorWidget`<br/>- `--color-fill`: `colorFill`<br/>- `--color-stroke`: `colorStroke`<br/>- `--color-text`: `colorText`<br/>- `--widget-padding`: `padding`<br/>- `--line-width`: `lineWidth`<br/>- `--alpha-fill-on`: `alphaFillOn`<br/>- `--alpha-fill-off`: `alphaFillOff`<br/>- `--alpha-stroke`: `alphaStroke`<br/>- `--color-text-on`: `colorTextOn` |
=== "button"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="button_label">label<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#button_label" title="Permanent link">#</a></h6> | `string`&vert;<br/>`boolean` | <code>"auto"</code> | Set to `false` to hide completely<br/>- Insert icons using the prefix ^ followed by the icon's name : `^play`, `^pause`, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free)<br/>- Icons can be transformed with the following suffixes: `.flip-[horizontal|vertical|both]`, `.rotate-[90|180|270]`, `.spin`, `.pulse`. Example: `^play.flip-horizontal` |
| <h6 id="button_vertical">vertical<a class="headerlink" href="#button_vertical" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to display the text vertically |
| <h6 id="button_wrap">wrap<a class="headerlink" href="#button_wrap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to wrap long lines automatically. |
| <h6 id="button_on">on<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#button_on" title="Permanent link">#</a></h6> | `*` | <code>1</code> | Set to `null` to send send no argument in the osc message |
| <h6 id="button_off">off<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#button_off" title="Permanent link">#</a></h6> | `*` | <code>0</code> | Set to `null` to send send no argument in the osc message. Must be different from `on`. |
| <h6 id="button_mode">mode<a class="headerlink" href="#button_mode" title="Permanent link">#</a></h6> | `string` | <code>"toggle"</code> | Interraction mode:<br/>- `toggle` (classic on/off switch)<br/>- `push` (press & release)<br/>- `tap` (no release)<br/><br/>Choices: `toggle`, `push`, `tap` |
| <h6 id="button_doubleTap">doubleTap<a class="headerlink" href="#button_doubleTap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the button require a double tap to be pushed instead of a single tap |
| <h6 id="button_colorTextOn">colorTextOn<a class="headerlink" href="#button_colorTextOn" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Defines the widget's text color when active. |
??? api "<div id="switch">switch<a class="headerlink" href="#switch" title="Permanent link">#</a></div>"
Value selector button.
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="switch_css">css<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#switch_css" title="Permanent link">#</a></h6> | `string` | <code>""</code> | CSS rules. See <a href="https://openstagecontrol.ammd.net/docs/customization/css-tips/">documentation</a>.<br/><br/>Available css variables:<br/>- `--color-background`: `colorBg`<br/>- `--color-widget`: `colorWidget`<br/>- `--color-fill`: `colorFill`<br/>- `--color-stroke`: `colorStroke`<br/>- `--color-text`: `colorText`<br/>- `--widget-padding`: `padding`<br/>- `--line-width`: `lineWidth`<br/>- `--alpha-fill-on`: `alphaFillOn`<br/>- `--alpha-fill-off`: `alphaFillOff`<br/>- `--alpha-stroke`: `alphaStroke`<br/>- `--color-text-on`: `colorTextOn` |
=== "switch"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="switch_layout">layout<a class="headerlink" href="#switch_layout" title="Permanent link">#</a></h6> | `string` | <code>"vertical"</code> | Choices: `vertical`, `horizontal`, `grid` |
| <h6 id="switch_gridTemplate">gridTemplate<a class="headerlink" href="#switch_gridTemplate" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number` | <code>""</code> | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
| <h6 id="switch_values">values<a class="headerlink" href="#switch_values" title="Permanent link">#</a></h6> | `array`&vert;<br/>`object` | <code>\{<br/>&nbsp;"Value 1": 1,<br/>&nbsp;"Value 2": 2<br/>}</code> | `Array` of possible values to switch between : `[1,2,3]`<br/><br/>`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept |
| <h6 id="switch_mode">mode<a class="headerlink" href="#switch_mode" title="Permanent link">#</a></h6> | `string` | <code>"tap"</code> | Interraction mode:<br/>- `tap`: activates when the pointer is down but prevents further scrolling<br/>- `slide`: same as `tap` but allows sliding between values<br/>- `click`: activates upon click only and allows further scrolling<br/><br/>Choices: `tap`, `slide`, `click` |
| <h6 id="switch_colorTextOn">colorTextOn<a class="headerlink" href="#switch_colorTextOn" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Defines the widget's text color when active. |
??? api "<div id="dropdown">dropdown<a class="headerlink" href="#dropdown" title="Permanent link">#</a></div>"
Native dropdown menu.
=== "dropdown"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="dropdown_align">align<a class="headerlink" href="#dropdown_align" title="Permanent link">#</a></h6> | `string` | <code>"center"</code> | Set to `left` or `right` to change text alignment (otherwise center)<br/><br/>Choices: `center`, `left`, `right` |
| <h6 id="dropdown_values">values<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#dropdown_values" title="Permanent link">#</a></h6> | `array`&vert;<br/>`object` | <code>\{<br/>&nbsp;"Value 1": 1,<br/>&nbsp;"Value 2": 2<br/>}</code> | `Array` of possible values to switch between : `[1,2,3]`<br/><br/>`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept |
??? api "<div id="menu">menu<a class="headerlink" href="#menu" title="Permanent link">#</a></div>"
Drag and drop menu with a circular or grid layout.
=== "menu"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="menu_size">size<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#menu_size" title="Permanent link">#</a></h6> | `number`&vert;<br/>`array` | <code>200</code> | - If `layout` is `circular`: diameter (in px)<br/>- Else: square size or `[width, height]` array |
| <h6 id="menu_textAlign">textAlign<a class="headerlink" href="#menu_textAlign" title="Permanent link">#</a></h6> | `string` | <code>"center"</code> | Set to `left` or `right` to change text alignment (otherwise center)<br/><br/>Choices: `center`, `left`, `right` |
| <h6 id="menu_menuAlignV">menuAlignV<a class="headerlink" href="#menu_menuAlignV" title="Permanent link">#</a></h6> | `string` | <code>"center"</code> | Set to `top` or `bottom` to change menu alignment (otherwise center)<br/><br/>Choices: `center`, `top`, `bottom` |
| <h6 id="menu_menuAlignH">menuAlignH<a class="headerlink" href="#menu_menuAlignH" title="Permanent link">#</a></h6> | `string` | <code>"center"</code> | Set to `left` or `right` to change menu alignment (otherwise center)<br/><br/>Choices: `center`, `left`, `right` |
| <h6 id="menu_layout">layout<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#menu_layout" title="Permanent link">#</a></h6> | `string` | <code>"circular"</code> | Defines whether the menu's layout should be rendered in a circle or in a box<br/><br/>Choices: `circular`, `horizontal`, `vertical`, `grid` |
| <h6 id="menu_gridTemplate">gridTemplate<a class="headerlink" href="#menu_gridTemplate" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number` | <code>""</code> | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
| <h6 id="menu_toggle">toggle<a class="headerlink" href="#menu_toggle" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the menu stay opened after mouse/touch release |
| <h6 id="menu_doubleTap">doubleTap<a class="headerlink" href="#menu_doubleTap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the menu require a double tap to be opened instead of a single tap |
| <h6 id="menu_values">values<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#menu_values" title="Permanent link">#</a></h6> | `array`&vert;<br/>`object` | <code>[<br/>&nbsp;1,<br/>&nbsp;2,<br/>&nbsp;3<br/>]</code> | `Array` of possible values to switch between : `[1,2,3]`<br/><br/>`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept |
| <h6 id="menu_weights">weights<a class="headerlink" href="#menu_weights" title="Permanent link">#</a></h6> | `array` | <code>""</code> | `Array` of `number` defining the weights of each value in `values`<br/><br/>Ignored when `mode` is `grid` |
??? api "<div id="input">input<a class="headerlink" href="#input" title="Permanent link">#</a></div>"
Text input.
=== "input"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="input_align">align<a class="headerlink" href="#input_align" title="Permanent link">#</a></h6> | `string` | <code>"center"</code> | Set to `left` or `right` to change text alignment (otherwise center)<br/><br/>Choices: `center`, `left`, `right` |
| <h6 id="input_unit">unit<a class="headerlink" href="#input_unit" title="Permanent link">#</a></h6> | `string` | <code>""</code> | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
| <h6 id="input_asYouType">asYouType<a class="headerlink" href="#input_asYouType" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the input send its value at each keystroke |
??? api "<div id="file">file<a class="headerlink" href="#file" title="Permanent link">#</a></div>"
File/Folder selector (server-side).
=== "file"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="file_align">align<a class="headerlink" href="#file_align" title="Permanent link">#</a></h6> | `string` | <code>"center"</code> | Set to `left` or `right` to change text alignment (otherwise center)<br/><br/>Choices: `center`, `left`, `right` |
| <h6 id="file_directory">directory<a class="headerlink" href="#file_directory" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Default browsing directory |
| <h6 id="file_extension">extension<a class="headerlink" href="#file_extension" title="Permanent link">#</a></h6> | `string` | <code>"*"</code> | Only display files with this extension |
| <h6 id="file_hidePath">hidePath<a class="headerlink" href="#file_hidePath" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to only display the filename (the whole path will still be used as value) |
| <h6 id="file_allowDir">allowDir<a class="headerlink" href="#file_allowDir" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Allow selecting a folder (by pressing "open" when no file is selected) |
## Containers
??? api "<div id="panel">panel<a class="headerlink" href="#panel" title="Permanent link">#</a></div>"
Widgets or Tabs container.
=== "panel"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="panel_variables">variables<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#panel_variables" title="Permanent link">#</a></h6> | `*` | <code>"@\{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
| <h6 id="panel_traversing">traversing<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#panel_traversing" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
=== "widget container"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="panel_layout">layout<a class="headerlink" href="#panel_layout" title="Permanent link">#</a></h6> | `string` | <code>"default"</code> | Defines how children are laid out.<br/><br/>Choices: `default`, `vertical`, `horizontal`, `grid` |
| <h6 id="panel_justify">justify<a class="headerlink" href="#panel_justify" title="Permanent link">#</a></h6> | `string` | <code>"start"</code> | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.<br/><br/>Choices: `start`, `end`, `center`, `space-around`, `space-between` |
| <h6 id="panel_gridTemplate">gridTemplate<a class="headerlink" href="#panel_gridTemplate" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number` | <code>""</code> | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
| <h6 id="panel_contain">contain<a class="headerlink" href="#panel_contain" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. |
| <h6 id="panel_scroll">scroll<a class="headerlink" href="#panel_scroll" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to disable scrollbars |
| <h6 id="panel_innerPadding">innerPadding<a class="headerlink" href="#panel_innerPadding" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. |
=== "tab container"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="panel_verticalTabs">verticalTabs<a class="headerlink" href="#panel_verticalTabs" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to display for vertical tab layout |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="panel_value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#panel_value" title="Permanent link">#</a></h6> | `integer` | <code>""</code> | Defines currently selected tab in the widget<br/><br/>A tab can be opened only by setting its parent's value |
=== "children"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="panel_widgets">widgets<a class="headerlink" href="#panel_widgets" title="Permanent link">#</a></h6> | `array` | <code>[]</code> | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
| <h6 id="panel_tabs">tabs<a class="headerlink" href="#panel_tabs" title="Permanent link">#</a></h6> | `array` | <code>[]</code> | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
??? api "<div id="modal">modal<a class="headerlink" href="#modal" title="Permanent link">#</a></div>"
A toggle button that opens a popup panel. Cannot contain tabs directly.
=== "modal"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="modal_label">label<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#modal_label" title="Permanent link">#</a></h6> | `string`&vert;<br/>`boolean` | <code>"auto"</code> | Set to `false` to hide completely<br/>- Insert icons using the prefix ^ followed by the icon's name : `^play`, `^pause`, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free)<br/>- Icons can be transformed with the following suffixes: `.flip-[horizontal|vertical|both]`, `.rotate-[90|180|270]`, `.spin`, `.pulse`. Example: `^play.flip-horizontal` |
| <h6 id="modal_doubleTap">doubleTap<a class="headerlink" href="#modal_doubleTap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the modal require a double tap to open instead of a single tap |
| <h6 id="modal_variables">variables<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#modal_variables" title="Permanent link">#</a></h6> | `*` | <code>"@\{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
| <h6 id="modal_traversing">traversing<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#modal_traversing" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
=== "popup"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="modal_popupLabel">popupLabel<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#modal_popupLabel" title="Permanent link">#</a></h6> | `string`&vert;<br/>`boolean` | <code>"auto"</code> | Alternative label for the modal popup |
| <h6 id="modal_popupWidth">popupWidth<a class="headerlink" href="#modal_popupWidth" title="Permanent link">#</a></h6> | `number`&vert;<br/>`percentage` | <code>"80%"</code> | Modal popup's size |
| <h6 id="modal_popupHeight">popupHeight<a class="headerlink" href="#modal_popupHeight" title="Permanent link">#</a></h6> | `number`&vert;<br/>`percentage` | <code>"80%"</code> | Modal popup's size |
| <h6 id="modal_popupLeft">popupLeft<a class="headerlink" href="#modal_popupLeft" title="Permanent link">#</a></h6> | `number`&vert;<br/>`percentage` | <code>"auto"</code> | Modal popup's position |
| <h6 id="modal_popupTop">popupTop<a class="headerlink" href="#modal_popupTop" title="Permanent link">#</a></h6> | `number`&vert;<br/>`percentage` | <code>"auto"</code> | Modal popup's position |
=== "widget container"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="modal_layout">layout<a class="headerlink" href="#modal_layout" title="Permanent link">#</a></h6> | `string` | <code>"default"</code> | Defines how children are laid out.<br/><br/>Choices: `default`, `vertical`, `horizontal`, `grid` |
| <h6 id="modal_gridTemplate">gridTemplate<a class="headerlink" href="#modal_gridTemplate" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number` | <code>""</code> | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
| <h6 id="modal_contain">contain<a class="headerlink" href="#modal_contain" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. |
| <h6 id="modal_scroll">scroll<a class="headerlink" href="#modal_scroll" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to disable scrollbars |
| <h6 id="modal_innerPadding">innerPadding<a class="headerlink" href="#modal_innerPadding" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="modal_value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#modal_value" title="Permanent link">#</a></h6> | `integer` | <code>""</code> | Defines the modal's state:`0` for closed, `1` for opened |
=== "children"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="modal_widgets">widgets<a class="headerlink" href="#modal_widgets" title="Permanent link">#</a></h6> | `array` | <code>[]</code> | Each element of the array must be a widget object |
??? api "<div id="clone">clone<a class="headerlink" href="#clone" title="Permanent link">#</a></div>"
Widget replication with overridable properties.
=== "clone"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="clone_widgetId">widgetId<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#clone_widgetId" title="Permanent link">#</a></h6> | `string` | <code>""</code> | `id` of the widget to clone |
| <h6 id="clone_props">props<a class="headerlink" href="#clone_props" title="Permanent link">#</a></h6> | `object` | <code>\{}</code> | Cloned widget's properties to override |
??? api "<div id="matrix">matrix<a class="headerlink" href="#matrix" title="Permanent link">#</a></div>"
Generic matrix for creating rows/columns of widgets.
=== "matrix"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="matrix_widgetType">widgetType<a class="headerlink" href="#matrix_widgetType" title="Permanent link">#</a></h6> | `string` | <code>"button"</code> | Defines the type of the widgets in the matrix |
| <h6 id="matrix_quantity">quantity<a class="headerlink" href="#matrix_quantity" title="Permanent link">#</a></h6> | `number` | <code>4</code> | Defines the number of widgets in the matrix |
| <h6 id="matrix_start">start<a class="headerlink" href="#matrix_start" title="Permanent link">#</a></h6> | `integer` | <code>0</code> | First widget's index |
| <h6 id="matrix_props">props<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#matrix_props" title="Permanent link">#</a></h6> | `object` | <code>\{}</code> | Defines a set of property to override the widgets' defaults.<br/><br/>Formulas in this field are resolved with an extra variable representing each widget's index: `$`<br/><br/>Note: by default, the widgets inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) |
=== "layout"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="matrix_layout">layout<a class="headerlink" href="#matrix_layout" title="Permanent link">#</a></h6> | `string` | <code>"horizontal"</code> | Defines how children are laid out.<br/><br/>Choices: `horizontal`, `vertical`, `grid` |
| <h6 id="matrix_gridTemplate">gridTemplate<a class="headerlink" href="#matrix_gridTemplate" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number` | <code>""</code> | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
| <h6 id="matrix_traversing">traversing<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#matrix_traversing" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to disable traversing gestures |
| <h6 id="matrix_innerPadding">innerPadding<a class="headerlink" href="#matrix_innerPadding" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. |
??? api "<div id="keyboard">keyboard<a class="headerlink" href="#keyboard" title="Permanent link">#</a></div>"
Piano keyboard.
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="keyboard_css">css<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#keyboard_css" title="Permanent link">#</a></h6> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-white:color;` (white keys color)<br/>- `--color-black:color;` (black keys color) |
=== "keyboard"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="keyboard_keys">keys<a class="headerlink" href="#keyboard_keys" title="Permanent link">#</a></h6> | `number` | <code>25</code> | Defines the number keys |
| <h6 id="keyboard_start">start<a class="headerlink" href="#keyboard_start" title="Permanent link">#</a></h6> | `number` | <code>48</code> | MIDI note number to start with (default is C4)<br/><br/>Standard keyboards settings are: `[25, 48]`, `[49, 36]`, `[61, 36]`, `[88, 21]` |
| <h6 id="keyboard_traversing">traversing<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#keyboard_traversing" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to disable traversing gestures |
| <h6 id="keyboard_on">on<a class="headerlink" href="#keyboard_on" title="Permanent link">#</a></h6> | `*` | <code>1</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
| <h6 id="keyboard_off">off<a class="headerlink" href="#keyboard_off" title="Permanent link">#</a></h6> | `*` | <code>0</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
| <h6 id="keyboard_mode">mode<a class="headerlink" href="#keyboard_mode" title="Permanent link">#</a></h6> | `string` | <code>"push"</code> | Interraction mode:<br/>- `push` (press & release)<br/>- `toggle` (on/off switches)<br/>- `tap` (no release)<br/><br/>Choices: `push`, `toggle`, `tap` |
??? api "<div id="patchbay">patchbay<a class="headerlink" href="#patchbay" title="Permanent link">#</a></div>"
Connect inputs to outputs.
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="patchbay_css">css<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#patchbay_css" title="Permanent link">#</a></h6> | `string` | <code>""</code> | The inputs/ouputs width can be adjusted by using the `.nodes` selector:<br/><br/>`.nodes { width: 25% }` |
=== "patchbay"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="patchbay_inputs">inputs<a class="headerlink" href="#patchbay_inputs" title="Permanent link">#</a></h6> | `array`&vert;<br/>`object` | <code>[<br/>&nbsp;"input_1",<br/>&nbsp;"input_2"<br/>]</code> | - `Array` of input names : `['input_1', 'input_2']`<br/>- `Object` of `"label_1": "input_1"` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept<br/><br/><br/><br/>Patchbay inputs can be connected to one or more outputs and will send messages of the following form when they are connected/disconnected: <br/><br/>`/patchbay_address input_x output_x output_y etc`<br/><br/>If no output is connected to the input, the message will be `/patchbay_address input_x`<br/><br/>The inputs values can be consumed with the property inheritance syntax: `@{patchbay_id/input_1}` returns an array of output names connected to `input_1` |
| <h6 id="patchbay_outputs">outputs<a class="headerlink" href="#patchbay_outputs" title="Permanent link">#</a></h6> | `array`&vert;<br/>`object` | <code>[<br/>&nbsp;"output_1",<br/>&nbsp;"output_2"<br/>]</code> | List of output values the inputs can connect to (see `inputs`). |
??? api "<div id="root">root<a class="headerlink" href="#root" title="Permanent link">#</a></div>"
Main (unique) container
=== "panel"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="root_variables">variables<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#root_variables" title="Permanent link">#</a></h6> | `*` | <code>"@\{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
| <h6 id="root_traversing">traversing<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#root_traversing" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
=== "widget container"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="root_layout">layout<a class="headerlink" href="#root_layout" title="Permanent link">#</a></h6> | `string` | <code>"default"</code> | Defines how children are laid out.<br/><br/>Choices: `default`, `vertical`, `horizontal`, `grid` |
| <h6 id="root_justify">justify<a class="headerlink" href="#root_justify" title="Permanent link">#</a></h6> | `string` | <code>"start"</code> | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.<br/><br/>Choices: `start`, `end`, `center`, `space-around`, `space-between` |
| <h6 id="root_gridTemplate">gridTemplate<a class="headerlink" href="#root_gridTemplate" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number` | <code>""</code> | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
| <h6 id="root_contain">contain<a class="headerlink" href="#root_contain" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. |
| <h6 id="root_scroll">scroll<a class="headerlink" href="#root_scroll" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to disable scrollbars |
| <h6 id="root_innerPadding">innerPadding<a class="headerlink" href="#root_innerPadding" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. |
=== "tab container"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="root_verticalTabs">verticalTabs<a class="headerlink" href="#root_verticalTabs" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to display for vertical tab layout |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="root_value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#root_value" title="Permanent link">#</a></h6> | `integer` | <code>""</code> | Defines currently widgeted tab in the widget<br/><br/>A tab can be opened only by setting its parent's value |
=== "children"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="root_widgets">widgets<a class="headerlink" href="#root_widgets" title="Permanent link">#</a></h6> | `array` | <code>[]</code> | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
| <h6 id="root_tabs">tabs<a class="headerlink" href="#root_tabs" title="Permanent link">#</a></h6> | `array` | <code>[]</code> | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
??? api "<div id="tab">tab<a class="headerlink" href="#tab" title="Permanent link">#</a></div>"
Tabbed panel widget
=== "panel"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="tab_label">label<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#tab_label" title="Permanent link">#</a></h6> | `string`&vert;<br/>`boolean` | <code>"auto"</code> | Set to `false` to hide completely<br/>- Insert icons using the prefix ^ followed by the icon's name : `^play`, `^pause`, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free)<br/>- Icons can be transformed with the following suffixes: `.flip-[horizontal|vertical|both]`, `.rotate-[90|180|270]`, `.spin`, `.pulse`. Example: `^play.flip-horizontal` |
| <h6 id="tab_variables">variables<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#tab_variables" title="Permanent link">#</a></h6> | `*` | <code>"@\{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
| <h6 id="tab_traversing">traversing<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#tab_traversing" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
=== "widget container"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="tab_layout">layout<a class="headerlink" href="#tab_layout" title="Permanent link">#</a></h6> | `string` | <code>"default"</code> | Defines how children are laid out.<br/><br/>Choices: `default`, `vertical`, `horizontal`, `grid` |
| <h6 id="tab_justify">justify<a class="headerlink" href="#tab_justify" title="Permanent link">#</a></h6> | `string` | <code>"start"</code> | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.<br/><br/>Choices: `start`, `end`, `center`, `space-around`, `space-between` |
| <h6 id="tab_gridTemplate">gridTemplate<a class="headerlink" href="#tab_gridTemplate" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number` | <code>""</code> | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
| <h6 id="tab_contain">contain<a class="headerlink" href="#tab_contain" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | If `layout` is `vertical` or `horizontal`, prevents children from overflowing the panel. |
| <h6 id="tab_scroll">scroll<a class="headerlink" href="#tab_scroll" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to disable scrollbars |
| <h6 id="tab_innerPadding">innerPadding<a class="headerlink" href="#tab_innerPadding" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to make the `padding` property apply only between children and not at the container's inner boundaries. |
=== "tab container"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="tab_verticalTabs">verticalTabs<a class="headerlink" href="#tab_verticalTabs" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to display for vertical tab layout |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="tab_value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#tab_value" title="Permanent link">#</a></h6> | `integer` | <code>""</code> | Defines currently widgeted tab in the widget<br/><br/>A tab can be opened only by setting its parent's value |
=== "children"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="tab_widgets">widgets<a class="headerlink" href="#tab_widgets" title="Permanent link">#</a></h6> | `array` | <code>[]</code> | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
| <h6 id="tab_tabs">tabs<a class="headerlink" href="#tab_tabs" title="Permanent link">#</a></h6> | `array` | <code>[]</code> | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
## Frames
??? api "<div id="frame">frame<a class="headerlink" href="#frame" title="Permanent link">#</a></div>"
Embed a page in a frame (local network only).
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="frame_value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#frame_value" title="Permanent link">#</a></h6> | `string` | <code>""</code> | External web page URL. |
??? api "<div id="svg">svg<a class="headerlink" href="#svg" title="Permanent link">#</a></div>"
Svg parser.
=== "svg"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="svg_svg">svg<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#svg_svg" title="Permanent link">#</a></h6> | `string` | <code>""</code> | Svg xml definition (will be wrapped in a `< svg />` element) |
??? api "<div id="html">html<a class="headerlink" href="#html" title="Permanent link">#</a></div>"
Simple HTML parser.
=== "html"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="html_html">html<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#html_html" title="Permanent link">#</a></h6> | `string` | <code>""</code> | Allowed HTML tags:<br/><br/>&nbsp;&nbsp;h1-6, blockquote, p, a, ul, ol, nl, li,<br/><br/>&nbsp;&nbsp;b, i, strong, em, strike, code, hr, br, div,<br/><br/>&nbsp;&nbsp;table, thead, img, caption, tbody, tr, th, td, pre<br/><br/>Allowed attributes:<br/><br/>&nbsp;&nbsp;<*>: class, style, title<br/><br/>&nbsp;&nbsp;<img>: src, width, height |
??? api "<div id="image">image<a class="headerlink" href="#image" title="Permanent link">#</a></div>"
Load a image (url or base64-encoded).
=== "image"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="image_size">size<a class="headerlink" href="#image_size" title="Permanent link">#</a></h6> | `string` | <code>"cover"</code> | CSS background-size |
| <h6 id="image_position">position<a class="headerlink" href="#image_position" title="Permanent link">#</a></h6> | `string` | <code>"center"</code> | CSS background-position |
| <h6 id="image_repeat">repeat<a class="headerlink" href="#image_repeat" title="Permanent link">#</a></h6> | `string` | <code>"no-repeat"</code> | CSS background-repeat |
| <h6 id="image_cache">cache<a class="headerlink" href="#image_cache" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to false to disable image caching (forces file reload when updating or editing the widget).<br/><br/>When true, sending `reload` to the widget reloads its image without changing its value |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="image_value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#image_value" title="Permanent link">#</a></h6> | `string` | <code>""</code> | - File `url` or `path` (relative to the session file location by default, falling back to absolute path)<br/>- Base64 encoded image : `data:image/...` |
## Graphs
??? api "<div id="plot">plot<a class="headerlink" href="#plot" title="Permanent link">#</a></div>"
XY coordinates plot.
=== "plot"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="plot_rangeX">rangeX<a class="headerlink" href="#plot_rangeX" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the x axis |
| <h6 id="plot_rangeY">rangeY<a class="headerlink" href="#plot_rangeY" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h6 id="plot_logScaleX">logScaleX<a class="headerlink" href="#plot_logScaleX" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm's base. |
| <h6 id="plot_logScaleY">logScaleY<a class="headerlink" href="#plot_logScaleY" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
| <h6 id="plot_origin">origin<a class="headerlink" href="#plot_origin" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it. |
| <h6 id="plot_dots">dots<a class="headerlink" href="#plot_dots" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Draw dots on the line |
| <h6 id="plot_bars">bars<a class="headerlink" href="#plot_bars" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) |
| <h6 id="plot_pips">pips<a class="headerlink" href="#plot_pips" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="plot_value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#plot_value" title="Permanent link">#</a></h6> | `array`&vert;<br/>`string` | <code>""</code> | - `Array` of `y` values<br/>- `Array` of `[x, y]` `array` values<br/>- `String` `array`<br/>- `String` `object` to update specific coordinates only: `{0:1, 4:0}` will change the 1st and 5th points' coordinates |
??? api "<div id="eq">eq<a class="headerlink" href="#eq" title="Permanent link">#</a></div>"
Draws logarithmic frequency response from an array of filter objects.
=== "eq"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="eq_filters">filters<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#eq_filters" title="Permanent link">#</a></h6> | `array` | <code>""</code> | Each item must be an object with the following properties<br/>- `type`: string ("highpass", "highshelf", "lowpass", "lowshelf", "peak", "bandpass" or "notch", default: "peak")<br/>- `freq`: number (filter's resonant frequency, default: 1000)<br/>- `q`: number (Q factor, default: 1)<br/>- `gain`: number (default: 0)<br/>- `on`: boolean (default: true)<br/><br/>See https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode |
| <h6 id="eq_pips">pips<a class="headerlink" href="#eq_pips" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to false to hide the scale |
| <h6 id="eq_rangeX">rangeX<a class="headerlink" href="#eq_rangeX" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 20,<br/>&nbsp;"max": 22000<br/>}</code> | Defines the min and max values for the x axis (in Hz, logarithmic scale) |
| <h6 id="eq_rangeY">rangeY<a class="headerlink" href="#eq_rangeY" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": -6,<br/>&nbsp;"max": 6<br/>}</code> | Defines the min and max values for the y axis (in dB) |
| <h6 id="eq_origin">origin<a class="headerlink" href="#eq_origin" title="Permanent link">#</a></h6> | `number`&vert;<br/>`boolean` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it |
??? api "<div id="visualizer">visualizer<a class="headerlink" href="#visualizer" title="Permanent link">#</a></div>"
Display its value over time.
=== "visualizer"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="visualizer_duration">duration<a class="headerlink" href="#visualizer_duration" title="Permanent link">#</a></h6> | `number` | <code>1</code> | Defines visualization duration in seconds |
| <h6 id="visualizer_framerate">framerate<a class="headerlink" href="#visualizer_framerate" title="Permanent link">#</a></h6> | `number` | <code>30</code> | Defines visualization framerate |
| <h6 id="visualizer_rangeY">rangeY<a class="headerlink" href="#visualizer_rangeY" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h6 id="visualizer_origin">origin<a class="headerlink" href="#visualizer_origin" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it |
| <h6 id="visualizer_logScaleY">logScaleY<a class="headerlink" href="#visualizer_logScaleY" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
| <h6 id="visualizer_pips">pips<a class="headerlink" href="#visualizer_pips" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
| <h6 id="visualizer_freeze">freeze<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#visualizer_freeze" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to freeze current view and ignore incoming values |
## Indicators
??? api "<div id="led">led<a class="headerlink" href="#led" title="Permanent link">#</a></div>"
Intensity display.
=== "led"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="led_mode">mode<a class="headerlink" href="#led_mode" title="Permanent link">#</a></h6> | `string` | <code>"intensity"</code> | Defines how value is interpreted (see `value`)<br/><br/>Choices: `intensity`, `color` |
| <h6 id="led_range">range<a class="headerlink" href="#led_range" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Value range |
| <h6 id="led_alphaRange">alphaRange<a class="headerlink" href="#led_alphaRange" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Alpha range (if `mode` is `color`) |
| <h6 id="led_logScale">logScale<a class="headerlink" href="#led_logScale" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | If `mode` is `intensity`, set to `true` to use logarithmic scale. |
| <h6 id="led_borderRadius">borderRadius<a class="headerlink" href="#led_borderRadius" title="Permanent link">#</a></h6> | `string` | <code>""</code> | Css border-radius property. |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="led_value">value<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#led_value" title="Permanent link">#</a></h6> | `number`&vert;<br/>`array`&vert;<br/>`string` | <code>""</code> | If `mode` is `intensity`:<br/>- `Number`: `intensity` between `range.min` and `range.max`<br/><br/>If `mode` is `color`:<br/>- `Array`: `[r, g, b]` (`r`, `g` and `b` between `range.min` and `range.max`)<br/>- `Array`: `[r, g, b, alpha]` (`alpha` between `alphaRange.min` and `alphaRange.max`)<br/>- `String`: CSS color |
??? api "<div id="text">text<a class="headerlink" href="#text" title="Permanent link">#</a></div>"
Display text.
=== "text"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="text_vertical">vertical<a class="headerlink" href="#text_vertical" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to display the text vertically |
| <h6 id="text_wrap">wrap<a class="headerlink" href="#text_wrap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to wrap long lines automatically. |
| <h6 id="text_align">align<a class="headerlink" href="#text_align" title="Permanent link">#</a></h6> | `string` | <code>"center"</code> | Css text-align property.<br/><br/>Choices: `center`, `left`, `right` |
## Pads
??? api "<div id="xy">xy<a class="headerlink" href="#xy" title="Permanent link">#</a></div>"
Two-dimensional slider.
=== "xy"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="xy_pointSize">pointSize<a class="headerlink" href="#xy_pointSize" title="Permanent link">#</a></h6> | `integer` | <code>20</code> | Defines the points' size |
| <h6 id="xy_snap">snap<a class="headerlink" href="#xy_snap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | By default, the points are dragged from their initial position.<br/><br/>If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
| <h6 id="xy_spring">spring<a class="headerlink" href="#xy_spring" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
| <h6 id="xy_pips">pips<a class="headerlink" href="#xy_pips" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
| <h6 id="xy_rangeX">rangeX<a class="headerlink" href="#xy_rangeX" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the x axis |
| <h6 id="xy_rangeY">rangeY<a class="headerlink" href="#xy_rangeY" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h6 id="xy_logScaleX">logScaleX<a class="headerlink" href="#xy_logScaleX" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. |
| <h6 id="xy_logScaleY">logScaleY<a class="headerlink" href="#xy_logScaleY" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. |
| <h6 id="xy_doubleTap">doubleTap<a class="headerlink" href="#xy_doubleTap" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`string` | <code>false</code> | Set to `true` to make the fader reset to its default value when receiving a double tap.<br/><br/>Can also be an osc address, which case the widget will just send an osc message: `/<doubleTap> <preArgs>` |
| <h6 id="xy_sensitivity">sensitivity<a class="headerlink" href="#xy_sensitivity" title="Permanent link">#</a></h6> | `number` | <code>1</code> | Defines the pad's sensitivity when `snap` is `false` |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="xy_touchAddress">touchAddress<a class="headerlink" href="#xy_touchAddress" title="Permanent link">#</a></h6> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) |
??? api "<div id="rgb">rgb<a class="headerlink" href="#rgb" title="Permanent link">#</a></div>"
Color picker with optional alpha slider.
=== "rgb"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="rgb_snap">snap<a class="headerlink" href="#rgb_snap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | By default, the points are dragged from their initial position.<br/><br/>If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
| <h6 id="rgb_spring">spring<a class="headerlink" href="#rgb_spring" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
| <h6 id="rgb_range">range<a class="headerlink" href="#rgb_range" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 255<br/>}</code> | Defines the widget's output scale. |
| <h6 id="rgb_alpha">alpha<a class="headerlink" href="#rgb_alpha" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to enable alpha channel |
| <h6 id="rgb_rangeAlpha">rangeAlpha<a class="headerlink" href="#rgb_rangeAlpha" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the widget's output scale for the alpha channel. |
??? api "<div id="multixy">multixy<a class="headerlink" href="#multixy" title="Permanent link">#</a></div>"
Multi-point XY pad.
=== "multi xy"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="multixy_points">points<a class="headerlink" href="#multixy_points" title="Permanent link">#</a></h6> | `integer`&vert;<br/>`array` | <code>2</code> | Defines the number of points on the pad<br/><br/>Can be an array of strings that will be used as labels for the points (ex: `['A', 'B']`) |
=== "xy"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="multixy_pointSize">pointSize<a class="headerlink" href="#multixy_pointSize" title="Permanent link">#</a></h6> | `integer` | <code>20</code> | Defines the points' size |
| <h6 id="multixy_snap">snap<a class="headerlink" href="#multixy_snap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | By default, the points are dragged from their initial position.<br/><br/>If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
| <h6 id="multixy_spring">spring<a class="headerlink" href="#multixy_spring" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
| <h6 id="multixy_pips">pips<a class="headerlink" href="#multixy_pips" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
| <h6 id="multixy_rangeX">rangeX<a class="headerlink" href="#multixy_rangeX" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the x axis |
| <h6 id="multixy_rangeY">rangeY<a class="headerlink" href="#multixy_rangeY" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h6 id="multixy_logScaleX">logScaleX<a class="headerlink" href="#multixy_logScaleX" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. |
| <h6 id="multixy_logScaleY">logScaleY<a class="headerlink" href="#multixy_logScaleY" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. |
| <h6 id="multixy_sensitivity">sensitivity<a class="headerlink" href="#multixy_sensitivity" title="Permanent link">#</a></h6> | `number` | <code>1</code> | Defines the pad's sensitivity when `snap` is `false` |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="multixy_touchAddress">touchAddress<a class="headerlink" href="#multixy_touchAddress" title="Permanent link">#</a></h6> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
## Sliders
??? api "<div id="fader">fader<a class="headerlink" href="#fader" title="Permanent link">#</a></div>"
Vertical / horizontal slider.
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="fader_css">css<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#fader_css" title="Permanent link">#</a></h6> | `string` | <code>""</code> | CSS rules. See <a href="https://openstagecontrol.ammd.net/docs/customization/css-tips/">documentation</a>.<br/><br/>Available css variables:<br/>- `--color-background`: `colorBg`<br/>- `--color-widget`: `colorWidget`<br/>- `--color-fill`: `colorFill`<br/>- `--color-stroke`: `colorStroke`<br/>- `--color-text`: `colorText`<br/>- `--widget-padding`: `padding`<br/>- `--line-width`: `lineWidth`<br/>- `--alpha-fill-on`: `alphaFillOn`<br/>- `--alpha-fill-off`: `alphaFillOff`<br/>- `--alpha-stroke`: `alphaStroke`<br/>- `--alpha-pips`: `alphaPips`<br/>- `--alpha-pips-text`: `alphaPipsText`<br/>- `--knob-size`: `knobSize` |
=== "fader"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="fader_design">design<a class="headerlink" href="#fader_design" title="Permanent link">#</a></h6> | `string` | <code>"default"</code> | Design style<br/><br/>Choices: `default`, `round`, `compact` |
| <h6 id="fader_knobSize">knobSize<a class="headerlink" href="#fader_knobSize" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Fader knob size |
| <h6 id="fader_horizontal">horizontal<a class="headerlink" href="#fader_horizontal" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to display the fader horizontally |
| <h6 id="fader_pips">pips<a class="headerlink" href="#fader_pips" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to show range breakpoints (ignored if `design` is `compact`) |
| <h6 id="fader_dashed">dashed<a class="headerlink" href="#fader_dashed" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`array` | <code>false</code> | Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]` |
| <h6 id="fader_gradient">gradient<a class="headerlink" href="#fader_gradient" title="Permanent link">#</a></h6> | `array`&vert;<br/>`object` | <code>[]</code> | When set, the meter's gauge will be filled with a linear color gradient<br/>- each item must be a CSS color string.<br/>- as an `object`: each key must be a number between 0 and 1<br/>- each item must be a CSS color string.<br/><br/>Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} |
| <h6 id="fader_snap">snap<a class="headerlink" href="#fader_snap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position |
| <h6 id="fader_spring">spring<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#fader_spring" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its `default` value when released |
| <h6 id="fader_doubleTap">doubleTap<a class="headerlink" href="#fader_doubleTap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the fader reset to its `default` value when receiving a double tap.<br/><br/>Can also be an osc address, in which case the widget will just send an osc message (`/<doubleTap> <preArgs>`) |
| <h6 id="fader_range">range<a class="headerlink" href="#fader_range" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the breakpoints of the fader's scale:<br/>- keys can be percentages and/or `min` / `max`<br/>- values can be `number` or `object` if a custom label is needed<br/><br/>Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) |
| <h6 id="fader_logScale">logScale<a class="headerlink" href="#fader_logScale" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
| <h6 id="fader_sensitivity">sensitivity<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#fader_sensitivity" title="Permanent link">#</a></h6> | `number` | <code>1</code> | Defines the fader's sensitivity when `snap` is `false` |
| <h6 id="fader_steps">steps<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#fader_steps" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number`&vert;<br/>`array` | <code>""</code> | Restricts the widget's value:<br/>- `auto`: use values defined in `range`<br/>- `number`: define a number of evenly spaced steps<br/>- `array`: use arbitrary values |
| <h6 id="fader_origin">origin<a class="headerlink" href="#fader_origin" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Defines the starting point's value of the fader's gauge |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="fader_touchAddress">touchAddress<a class="headerlink" href="#fader_touchAddress" title="Permanent link">#</a></h6> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
??? api "<div id="knob">knob<a class="headerlink" href="#knob" title="Permanent link">#</a></div>"
Rotative knob slider.
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="knob_css">css<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#knob_css" title="Permanent link">#</a></h6> | `string` | <code>""</code> | CSS rules. See <a href="https://openstagecontrol.ammd.net/docs/customization/css-tips/">documentation</a>.<br/><br/>Available css variables:<br/>- `--color-background`: `colorBg`<br/>- `--color-widget`: `colorWidget`<br/>- `--color-fill`: `colorFill`<br/>- `--color-stroke`: `colorStroke`<br/>- `--color-text`: `colorText`<br/>- `--widget-padding`: `padding`<br/>- `--line-width`: `lineWidth`<br/>- `--alpha-fill-on`: `alphaFillOn`<br/>- `--alpha-fill-off`: `alphaFillOff`<br/>- `--alpha-stroke`: `alphaStroke`<br/>- `--alpha-pips`: `alphaPips`<br/>- `--alpha-pips-text`: `alphaPipsText` |
=== "knob"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="knob_design">design<a class="headerlink" href="#knob_design" title="Permanent link">#</a></h6> | `string` | <code>"default"</code> | Design style<br/><br/>Note: "solid" design uses "colorStroke" for the central knob color.<br/><br/>Choices: `default`, `solid`, `line` |
| <h6 id="knob_mode">mode<a class="headerlink" href="#knob_mode" title="Permanent link">#</a></h6> | `string` | <code>"vertical"</code> | - `circular`: relative move in circular motion<br/>- `snap`: snap to touch position and move in vertical motion<br/>- `vertical`: relative move in vertical motion<br/><br/>Choices: `vertical`, `circular`, `snap` |
| <h6 id="knob_spring">spring<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#knob_spring" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its `default` value when released |
| <h6 id="knob_pips">pips<a class="headerlink" href="#knob_pips" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to show the scale's breakpoints |
| <h6 id="knob_dashed">dashed<a class="headerlink" href="#knob_dashed" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`array` | <code>false</code> | Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]` |
| <h6 id="knob_angle">angle<a class="headerlink" href="#knob_angle" title="Permanent link">#</a></h6> | `number` | <code>270</code> | Defines the angle's width of the knob, in degrees |
| <h6 id="knob_doubleTap">doubleTap<a class="headerlink" href="#knob_doubleTap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the knob reset to its `default` value when receiving a double tap.<br/><br/>Can also be an osc address, in which case the widget will just send an osc message (`/<doubleTap> <preArgs>`) |
| <h6 id="knob_range">range<a class="headerlink" href="#knob_range" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the breakpoints of the fader's scale:<br/>- keys can be percentages and/or `min` / `max`<br/>- values can be `number` or `object` if a custom label is needed<br/><br/>Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) |
| <h6 id="knob_logScale">logScale<a class="headerlink" href="#knob_logScale" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
| <h6 id="knob_sensitivity">sensitivity<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#knob_sensitivity" title="Permanent link">#</a></h6> | `number` | <code>1</code> | Defines the knob's sensitivity when `mode` is not `snap` |
| <h6 id="knob_steps">steps<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#knob_steps" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number`&vert;<br/>`array` | <code>""</code> | Restricts the widget's value:<br/>- `auto`: use values defined in `range`<br/>- `number`: define a number of evenly spaced steps<br/>- `array`: use arbitrary values |
| <h6 id="knob_origin">origin<a class="headerlink" href="#knob_origin" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Defines the starting point's value of the knob's gauge |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="knob_touchAddress">touchAddress<a class="headerlink" href="#knob_touchAddress" title="Permanent link">#</a></h6> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
??? api "<div id="encoder">encoder<a class="headerlink" href="#encoder" title="Permanent link">#</a></div>"
A knob that sends a relative direction infomation instead of an absolute value.
=== "encoder"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="encoder_ticks">ticks<a class="headerlink" href="#encoder_ticks" title="Permanent link">#</a></h6> | `number` | <code>360</code> | defines the granularity / verbosity of the encoder (number of step for a 360° arc) |
| <h6 id="encoder_back">back<a class="headerlink" href="#encoder_back" title="Permanent link">#</a></h6> | `*` | <code>-1</code> | Defines which value is sent when rotating the encoder anticlockwise |
| <h6 id="encoder_forth">forth<a class="headerlink" href="#encoder_forth" title="Permanent link">#</a></h6> | `*` | <code>1</code> | Defines which value is sent when rotating the encoder clockwise |
| <h6 id="encoder_release">release<a class="headerlink" href="#encoder_release" title="Permanent link">#</a></h6> | `number` | <code>""</code> | Defines which value is sent when releasing the encoder:<br/>- Set to `null` to send send no argument in the osc message<br/>- Can be an `object` if the type needs to be specified |
| <h6 id="encoder_mode">mode<a class="headerlink" href="#encoder_mode" title="Permanent link">#</a></h6> | `string` | <code>"circular"</code> | - `circular`: relative move in circular motion<br/>- `snap`: snap to touch position and move in vertical motion<br/>- `vertical`: relative move in vertical motion<br/><br/>Choices: `circular`, `snap`, `vertical` |
| <h6 id="encoder_doubleTap">doubleTap<a class="headerlink" href="#encoder_doubleTap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the fader reset to its `default` value when receiving a double tap.<br/><br/>Can also be an osc address, in which case the widget will just send an osc message (`/<doubleTap> <preArgs>`) |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="encoder_touchAddress">touchAddress<a class="headerlink" href="#encoder_touchAddress" title="Permanent link">#</a></h6> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
??? api "<div id="range">range<a class="headerlink" href="#range" title="Permanent link">#</a></div>"
A fader with two heads for setting a range.
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="range_css">css<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#range_css" title="Permanent link">#</a></h6> | `string` | <code>""</code> | CSS rules. See <a href="https://openstagecontrol.ammd.net/docs/customization/css-tips/">documentation</a>.<br/><br/>Available css variables:<br/>- `--color-background`: `colorBg`<br/>- `--color-widget`: `colorWidget`<br/>- `--color-fill`: `colorFill`<br/>- `--color-stroke`: `colorStroke`<br/>- `--color-text`: `colorText`<br/>- `--widget-padding`: `padding`<br/>- `--line-width`: `lineWidth`<br/>- `--alpha-fill-on`: `alphaFillOn`<br/>- `--alpha-fill-off`: `alphaFillOff`<br/>- `--alpha-stroke`: `alphaStroke`<br/>- `--alpha-pips`: `alphaPips`<br/>- `--alpha-pips-text`: `alphaPipsText`<br/>- `--knob-size`: `knobSize` |
=== "fader"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="range_design">design<a class="headerlink" href="#range_design" title="Permanent link">#</a></h6> | `string` | <code>"default"</code> | Design style<br/><br/>Choices: `default`, `round`, `compact` |
| <h6 id="range_knobSize">knobSize<a class="headerlink" href="#range_knobSize" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Fader knob size |
| <h6 id="range_horizontal">horizontal<a class="headerlink" href="#range_horizontal" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to display the fader horizontally |
| <h6 id="range_pips">pips<a class="headerlink" href="#range_pips" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to show range breakpoints (ignored if `design` is `compact`) |
| <h6 id="range_dashed">dashed<a class="headerlink" href="#range_dashed" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`array` | <code>false</code> | Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]` |
| <h6 id="range_gradient">gradient<a class="headerlink" href="#range_gradient" title="Permanent link">#</a></h6> | `array`&vert;<br/>`object` | <code>[]</code> | When set, the meter's gauge will be filled with a linear color gradient<br/>- each item must be a CSS color string.<br/>- as an `object`: each key must be a number between 0 and 1<br/>- each item must be a CSS color string.<br/><br/>Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} |
| <h6 id="range_snap">snap<a class="headerlink" href="#range_snap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position |
| <h6 id="range_spring">spring<a class="headerlink" href="#range_spring" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its `default` value when released |
| <h6 id="range_doubleTap">doubleTap<a class="headerlink" href="#range_doubleTap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the fader reset to its `default` value when receiving a double tap.<br/><br/>Can also be an osc address, in which case the widget will just send an osc message (`/<doubleTap> <preArgs>`) |
| <h6 id="range_range">range<a class="headerlink" href="#range_range" title="Permanent link">#</a></h6> | `object` | <code>\{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the breakpoints of the fader's scale:<br/>- keys can be percentages and/or `min` / `max`<br/>- values can be `number` or `object` if a custom label is needed<br/><br/>Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) |
| <h6 id="range_logScale">logScale<a class="headerlink" href="#range_logScale" title="Permanent link">#</a></h6> | `boolean`&vert;<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
| <h6 id="range_sensitivity">sensitivity<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#range_sensitivity" title="Permanent link">#</a></h6> | `number` | <code>1</code> | Defines the fader's sensitivity when `snap` is `false` |
| <h6 id="range_steps">steps<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#range_steps" title="Permanent link">#</a></h6> | `string`&vert;<br/>`number`&vert;<br/>`array` | <code>""</code> | Restricts the widget's value:<br/>- `auto`: use values defined in `range`<br/>- `number`: define a number of evenly spaced steps<br/>- `array`: use arbitrary values |
| <h6 id="range_origin">origin<a class="headerlink" href="#range_origin" title="Permanent link">#</a></h6> | `number` | <code>"auto"</code> | Defines the starting point's value of the fader's gauge |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="range_touchAddress">touchAddress<a class="headerlink" href="#range_touchAddress" title="Permanent link">#</a></h6> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
## Scripts
??? api "<div id="script">script<a class="headerlink" href="#script" title="Permanent link">#</a></div>"
Evaluates a script each time it receives a value.
=== "script"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="script_event">event<a class="headerlink" href="#script_event" title="Permanent link">#</a></h6> | `string` | <code>"value"</code> | Define which events trigger the script's execution.<br/><br/>Choices: `value`, `keyboard` |
| <h6 id="script_script">script<a class="headerlink" href="#script_script" title="Permanent link">#</a></h6> | `script` | <code>""</code> | Script executed whenever the widget's receives the defined event. See <a href="https://openstagecontrol.ammd.net/docs/widgets/scripting/">documentation</a>. |
=== "event: keyboard"
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="script_keyBinding">keyBinding<a class="headerlink" href="#script_keyBinding" title="Permanent link">#</a></h6> | `string`&vert;<br/>`array` | <code>""</code> | Key combo `string` or `array` of strings (see <a href="https://github.com/RobertWHurst/KeyboardJS">KeyboardJS</a> documentation) |
| <h6 id="script_keyRepeat">keyRepeat<a class="headerlink" href="#script_keyRepeat" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to prevent keydown repeats when holding the key combo pressed |
| <h6 id="script_keyType">keyType<a class="headerlink" href="#script_keyType" title="Permanent link">#</a></h6> | `string` | <code>"keydown"</code> | Determines which key event trigger the script's execution<br/><br/>Choices: `keydown`, `keyup`, `both` |
??? api "<div id="variable">variable<a class="headerlink" href="#variable" title="Permanent link">#</a></div>"
Receives / stores a value, to be used in scripts (using the get function) or in properties (using the @{} syntax).

View file

@ -1,114 +1,23 @@
# Scripting
Widgets can run [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) scripts upon specific events. These scripts are written in special properties under the scripting category.
The `script` property allows widgets to run javascript code when their value update. It differs from the [javascript property syntax ](./advanced-syntaxes.md#available-variables) in the following ways:
!!! warning "Advanced syntaxes"
Most [advanced syntaxes](../advanced-syntaxes/) should be avoided as much as possible in scripting properties:
- no `JS{{}}` wrapper, just the code
- `@{}`, `OSC{}`, `JS{{}}` and `#{}` blocks are replaced with their value before the script's compilation
- `@{}`: use `get()` and `getProp()` instead
- `OSC{}`: use `get()` instead (using another widget as receiver)
- `VAR{}`: use `getVar()`instead
- `JS{}` and `#{}` are useless (scripting properties are already interpreted as javascript code) unless you want to generate code procedurally
!!! warning "Avoid advanced syntax in scripts"
To avoid syntax errors it is recommended to use `getProp()` and `get()` instead of `@{}` and `OSC{}`. `JS{{}}` and `#{}` blocks should be avoided here as well.
The editor will always fail to recognize these syntaxes as they don't comply with the javacript language specification, even if the resulting code is valid.
## Event-dependent variables
## Events
Depending on what triggered the script's execution, a few variables are available to help determine the execution conditions.
### `onCreate`
**Event: value**
This script is called when the widget is created. If the widget has children, it will be executed after the children are created.
!!! warning "Modifying parent container"
Modifying a non-dynamic property on a parent container from this script **will not work**.
The following variables are available in this context:
- `value`: widget's value
### `onValue`
This script is called when the widget's value updates and when it receives a value.
The following variables are available in this context:
- `id` (`string`): id of the widget that's responsible for the value update
- `id` (`string`): id of the widget that's reponsible for the value update
- `value`: widget's value
- `touch`: see [Touch state](#touch-state)
??? infos "Keyboard & Matrix"
In keyboards and matrices, `id` is the id of the child widget that triggered the event, and `value` is an array containing the children's values.
The touched widget's value can be retrieved with:
```javascript
value[getIndex(id)]
```
??? infos "Touch state (deprecated)"
*This feature is deprecated, use `onTouch` instead*
When some widgets are touched or released, a special value event can be caught to trigger custom actions.
If the variable `touch` is not `undefined`, this means it holds the widget's current touch state:
- `0/1` for the widget's touch state (`fader`, `knob` and `xy`, `range` and `multixy`)
- `[i, 0/1]` if the widget is multi touch (`range` and `multixy`). In this case `i` is the touched handle's index, starting with `0`.
```js
if (touch !== undefined) {
// send multi touch state
if (touch.length) send('/touch_address', touch[0], touch[1])
// send global touch state
else send('/touch_address', touch)
} else {
// do something with the value ?
}
```
To avoid unwanted script executions, touch state events will only be caught if the script contains the word `touch` and if `onTouch` is empty.
### `onTouch`
This script is executed when the widget is touched, and when it is released.
This script has access to the same variables and functions as the `script` property (except the event-specific ones), plus the following:
- `value`: widget value
- `event`: object containing the following:
- `type`: `"start"` or `"stop"`
- `handle`: `undefined` if the event concerns the widget, `integer` if it concerns one of it's handles (`multixy` and `range` widgets only)
[Canvas](../canvas/) and containers expose more informations in their `onTouch` script.
??? infos "Containers onTouch"
Containers (root, panel, etc) can monitor touch events happening inside them, it works like with [Canvas](../canvas/#ontouch), with a few differences:
- `event.firstTarget` will return the id of the first touched widget
- setting `event.preventDefault` to `true` will prevent the event from reaching widgets in the container ('start' and 'move' events only)
- setting `event.allowScroll` to `true` will allow touch scrolling where it would normally be prevented ('start' event only)
- setting `event.inertia` will affect 'move' events (works like widget `sensitivity` in reverse (1 = normal, 10 = slow move))
- `width` and `height` are undefined
Containers with `traversing` enabled change how touch events are emitted:
- a new 'stop' event is emitted whenever the pointer exits a touchable widget while pressed.
- a new 'start' event is emitted whenever the pointer enters a touchable widget while pressed.
### `onDraw`
See [canvas](../canvas/).
### `onKeyboard`
*Script widget only*
This script is executed when the key(s) defined in the widget's `keyBinding` property are pressed.
The following variables are available in this context:
**Event: keyboard** (script widget only)
- `type` (`string`): `keydown` or `keyup`
- `key` (`string`): key name,
@ -119,110 +28,42 @@ The following variables are available in this context:
- `meta` (`boolean`): `true` if meta key is pressed
### `onPreload`
This script is specific to the root widget, it's called before any other widget is created and can be used to create global variables / functions accessible in other scripts.
In this script, all osc messages emissions are prevented and changing the value of a widget won't trigger widget synchronisation / scripts / advanced syntaxes updates.
## Available variables
The following variables and functions are accessible in this context.
- `console`: javascript console
- `locals`: object for storing/reading arbitrary values. Changing its properties *does not* trigger any synchronisation even if the value is used somewhere else.
- `globals`: same as `locals` but shared between all widgets, contains a few useful variables:
- `screen`: client screen informations (`{width, height, orientation}`)
- `env`: client options (ie: url query options),
- `ip`: client's ip address,
- `url`: server url,
- `platform`: operating system as seen by the client
- `session`: session file path
- `clipboard`: instance of navigator [Clipboard](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard)
- `Image`: javascript's [Image](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image) constructor
!!! note "this"
Unlike in most javascript contexts, the special keyword `this` doesn't point to an object but instead returns the string `"this"`.
Besides the variables available in the [javascript property syntax ](./advanced-syntaxes.md#available-variables), the following variables and functions are also accessible in this context.
----
#### `get(id)`
- `id`: widget `id` as a string.
Returns the value of the first matching widget. If the returned value is an object, a copy is returned to allow safe mutation.
Returns the value of the first matching widget.
----
#### `set(id, value, options)`
- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget. `id` may contains wildcards ('\*').
#### `set(id, value)`
- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
- `value`: new value for the widget.
- `options` (optional): `object`, accepts the following items:
- `sync: false`: prevents widgets from triggering synchronization and scripts
- `script: false`: prevents scripts but not synchronization
- `send: false`: prevents widgets from sending osc messages
- `external: true`: simulates a value coming from an osc/midi message (implies `send: false` automatically)
Sets the value of the first matching widget. If `ìd` contains wildcards, affects all matching widgets **except** the emitting widget.
If the event that triggered the script's execution was initiated by a user interaction, this will make the widget send its value as well (unless `options` is set to `{send: false}`).
----
#### `getVar(id, name)`
- `id`: widget `id` as a string.
- `name`: variable name as a string.
Returns the value of a widget's custom variable. If the returned value is an object, a copy is returned to allow safe mutation.
----
#### `setVar(id, name, value)`
- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget. `id` may contains wildcards ('\*').
- `name`: variable name as a string.
- `value`: new value for the variable.
Sets the value of a widget's custom variable (see [advanced syntaxes](./advanced-syntaxes.md##ustom-variables-varvariablename-default)). If `ìd` contains wildcards, affects all matching widgets.
Sets the value of the first matching widget.
If the event that triggered the script's execution was initiated by a user interaction, this will make the widget send its value as well.
----
#### `send(target, address, ...args)`
- `target` (optional): `"ip:port"` or `"midi:device_name"` string. If omitted, the widget's target (or the server's defaults) will be used.
- `target` (optional): `"ip:port"` or `"midi:device_name"` string. If omitted, the widget's target will be used.
- `address`: osc address, must start with a `/`
- `args`: values or `{type: "OSC_TYPE_LETTER", value: VALUE}` objects
Sends an osc message.
- `args`: value or `{type: "OSC_TYPE_LETTER", value: VALUE}` `object`
If the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.
This function ignores the widget's `bypass` and `ignoreDefaults` properties.
??? infos "Examples"
```javascript
send('127.0.0.1:4444', '/address', 1)
send('127.0.0.1:4444', '/address', 1, 2)
send('/address', 1) // uses the widget's target
send('/address', {type: 'i', value: 1}) // sends 1 as an integer
```
----
#### `getProp(id, name)`
- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
- `name`: property name.
Returns the property called `"name"` of the first matching widget. If the returned value is an object, a copy is returned to allow safe mutation.
----
#### `getIndex(id)`
- `id` (optional): widget `id` as a string. Defaults to `"this"`.
Returns the widget's index in its container.
Returns the property called `"name"` of the first matching widget.
----
@ -230,14 +71,7 @@ Returns the widget's index in its container.
- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
- `name`: property name.
Forces a widget to check if one of its properties has changed and update itself if needed.
----
#### `updateCanvas(id)`
- `id`: widget `id` as a string. Can be `"this"` to target the host widget.
Forces a canvas widget redraw.
Forcers a widget to check if one of its properties has changed and update itself if needed.
----
@ -255,16 +89,13 @@ Returns a state object (`id:value`) for matching widget and all their children.
----
#### `stateSet(state, options)`
#### `stateSet(state)`
Loads a state object. If the event that triggered the script's execution was initiated by a user interaction, this will make the updated widgets send their value as well.
- `options` (optional): `object`, accepts the following items:
- `send: false`: prevents widgets from sending osc messages
----
#### `storage`
#### `storage`: `localStorage`
Global [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) instance, allows storing data that persists upon refresh/relaunch.
@ -272,9 +103,9 @@ Global [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/lo
#### `setTimeout(id, callback, delay)` / `setInterval(id, callback, delay)`
These work like almost their native equivalent, with an extra (optional) `id` argument.
These work like their native equivalent, with an extra (optional) `id` argument.
- `id` (optional): unique identifier, if omitted, defaults to `undefined`. If a timeout with the same id is already running, it is cleared before the new one is created (even if `undefined`). `id`s are scoped to the widget's context: two timeouts with the same `id` in two different widgets can run concurrently
- `id` (optional): unique identifier. If a timeout with the same id is already running, it is cleared before the new one is created. If omitted, defaults to `undefined`. One can use `Math.random()` or `Date.now()` to force new id at each execution, though this might cause performance issues. `id`s are scoped to the widget's context: two timeouts with the same `id` in two different widgets can run concurrently
- `callback`: function to be executed
- `delay`: delay before execution is ms
@ -283,16 +114,11 @@ Reference:
- https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
- https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval
Usage note:
If no concurrent timeout / interval is needed, calling `setTimeout`, `setInterval`, `clearTimeout` and `clearInterval` with no `ìd` argument will do.
-----
#### `clearTimeout(id)` / `clearInterval(id)`
Clears timeout with matching `id`.
Clear timeout with matching `id`.
Reference:
@ -301,34 +127,16 @@ Reference:
----
#### `setFocus(id)`
- `id` (optional): widget `id` as a string
Gives focus to a widget (ie input widget). If `id` is omitted or falsy, currently focused element will be unfocused.
*Built-in client only*: tells the operating system to give the focus to the client window
----
#### `unfocus()`
*Built-in client only*: tells the operating system to give the focus to the window that was focused before.
----
#### `setFocusable(focusable)`
- `focusable`: `0` or `1`
*Built-in client only*: define whether the client window can be focused or not. Text inputs cannot be interacted with when the window is not focusable.
----
#### `getScroll(id)`
- `id`: widget `id` as a string.
Returns the scroll position of a container as a `[x, y]` array.
Returns the scroll state of a container as a `[x, y]` array.
----
@ -341,97 +149,12 @@ Sets the scroll state of a container.
----
#### `scrollIntoView(id, option)`
- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
- `option`: `alignToTop` or `options` argument as defined in https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
#### `toolbar(i1, i2, ...)`
- `iX`: menu entry index
Scroll containers to make widget(s) visible.
Trigger toolbar action at specified index. Examples:
- `toolbar(0, 0)` -> Open a new session
- `toolbar(3)` -> Toggle full screen
----
#### `toolbar(id)`
- `id` menu entry id (string)
Triggers toobar action if currently available (ie accessible from the menu). `id` can be one of the following:
- `session-new`,`session-open`, `session-save`, `session-save-as`, `session-fragment`, `session-backup`, `session-import`, `session-export`
- `state-store`, `state-recall`, `state-send`, `state-open`, `state-save`, `state-save-as`, `state-import`, `state-export`
- `editor-enabled`, `editor-grid`, `editor-tree`, `editor-inspector`, `editor-percents`
- `console-enabled`, `console-clear`
- `fullscreen`, `notifictions`, `prevent-sleep`, `virtual-keyboard`
Some actions will only be triggered if initiated with a physical user interaction, check the console for errors if it doesn't work as expected.
=== "Legacy syntax: `toolbar(i1, i2, ...)`"
- `iX`: menu entry index
Triggers toolbar action at specified index.
!!! example "Examples"
- `toolbar(0, 0)` -> Open a new session
- `toolbar(4)` -> Toggle full screen
----
#### `getToolbar(id)`
- `id` menu entry id (string)
Returns `true` if the toolbar entry exists and is currently activated.
#### `openUrl(url)`
- `url`: http(s) url
*Built-in client only*: opens url with the system's default browser
*External client only*: opens url in a new tab
If the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.
----
#### `runAs(id, callback)`
- `id`: widget `id` as a string.
- `callback`: function to be executed
Run `callback` function as if executed by another that widget matches specified id. This will not change the value of any local variable but `"this"` and `"parent"` arguments (accepted by functions such as `set()`) will be interpreted differently. Timeouts and intervals will be created and cleared in the target widget's scope.
----
#### `reload(keepState)`
- `keepState` (optional): `true` by default, set to false to discard the client's state.
Reload the client application. Cannot be called from the `onCreate` property.
If the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.
----
#### `getNavigator()`
Returns the instance of [Navigator](https://developer.mozilla.org/en-US/docs/Web/API/Navigator).
----
#### `browseFile(options, callback)`
Opens the server file browser and pass selected file to a callback function (does not create nor read files by itself).
- `options`: object with the following keys:
- `extension`: allowed extension (default: "*")
- `directory`: starting directory for browser (default: user's home)
- `allowDir`: allow choosing a directory instead of a file (default: false)
- `mode`: "save" or "open"
- `callback`: function called with 1 argument (file path)
#### `uploadFile(options, callback)`
Opens the client file upload prompt and pass the raw content of selected file to a callback function.
- `options`: object with the following keys:
- `types`: equivalent of HTML attribute [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/accept)
- `callback`: function called with 1 argument (file content)
Actions will only be triggered if initiated with a user interaction. Fullscreen cannot be toggled with a simulated interaction (i.e. using `/SET`)

View file

@ -1,22 +1,55 @@
# Download the latest release
!!! tip ""
[*Click here*](/docs/getting-started/introduction/#installation) to read the installation guide.
<a href="https://github.com/jean-emmanuel/open-stage-control/releases/latest"> Open Stage Control <span id="osc-version"span></a>
<a href="https://framagit.org/jean-emmanuel/open-stage-control/-/releases/v{{config.latest_release}}">
Open Stage Control v{{config.latest_release}}
</a>
<div id="osc-assets">Loading assets...</div>
<ul>
<li><a href="/packages/open-stage-control-{{config.latest_release}}-1.x86_64.rpm"><i class="fa fa-download"></i>GNU/Linux RPM (64-bit)</a></li>
<li><a href="/packages/open-stage-control_{{config.latest_release}}_amd64.deb"><i class="fa fa-download"></i>GNU/Linux Debian (64-bit)</a></li>
<li><a href="/packages/open-stage-control_{{config.latest_release}}_linux-x64.zip"><i class="fa fa-download"></i>GNU/Linux (64-bit)</a></li>
<li><a href="/packages/open-stage-control_{{config.latest_release}}_node.zip"><i class="fa fa-download"></i>Node.js</a></li>
<li><a href="/packages/open-stage-control_{{config.latest_release}}_osx-x64.zip"><i class="fa fa-download"></i>MacOS x64</a></li>
<li><a href="/packages/open-stage-control_{{config.latest_release}}_osx-arm64.zip"><i class="fa fa-download"></i>MacOS arm64</a></li>
<li><a href="/packages/open-stage-control_{{config.latest_release}}_win32-x64.zip"><i class="fa fa-download"></i>Windows (64-bit)</a></li>
??? abstract "Changelog"
<div class="highlight"><pre><code id="osc-changelog">Loading changelog...</code></pre></div>
</ul>
<script>
var oReq = new XMLHttpRequest();
oReq.addEventListener('load', reqListener);
oReq.open('GET', 'https://api.github.com/repos/jean-emmanuel/open-stage-control/releases/latest')
oReq.send()
function text(id, str) {
var el = typeof id === 'string' ? document.getElementById(id) : id
el.textContent = str
}
function reqListener () {
var data = JSON.parse(this.responseText)
var date = new Date(data.published_at)
text('osc-version', data.tag_name + ' (' + date.toLocaleDateString() + ')')
var list = document.createElement('ul')
for (var i in data.assets) {
var item = document.createElement('li'),
link = document.createElement('a')
link.textContent = data.assets[i].name + ' (' + (data.assets[i].size / 1024 / 1024).toFixed(1) + 'M)'
link.href = data.assets[i].browser_download_url
item.appendChild(link)
list.appendChild(item)
}
var assets = document.getElementById('osc-assets')
assets.innerHTML = ''
assets.appendChild(list)
text('osc-changelog', data.body)
}
</script>
<style>
@ -38,28 +71,4 @@ html {
margin-left: .8rem;
margin-right: .6rem;
}
li {
list-style: none;
}
li i {
margin-right: 10px
}
.download-size {
color: var(--md-typeset-color);
opacity: 0.5;
}
</style>
<div>
<a
href="/docs/changelog/"
class="md-button md-button-small"
>
Read the Changelog
</a>
<a
href="https://www.patreon.com/openstagecontrol?fan_landing=true"
class="md-button md-button-small patreon-icon"
>
Support on Patreon
</a></div>

View file

@ -1,21 +1,11 @@
document.addEventListener('DOMContentLoaded', ()=>{
if (window.location.hash && window.location.href.includes('properties-reference')) {
if (window.location.hash) {
// show target in tabs/details
document.querySelectorAll('[id='+window.location.hash.split("#")[1]+']').forEach(function(item){
var tab = item.closest('.tabbed-block'),
container= item.closest('.tabbed-set'),
details = item.closest('details'),
index = 0
while (tab.previousElementSibling) {
index++
tab = tab.previousElementSibling
}
console.log(index)
container.querySelectorAll('.tabbed-labels label:nth-child('+(index+1)+')').forEach(function(item,i){
item.click()
})
var tab = item.closest('.tabbed-content'),
details = item.closest('details')
if (tab) tab.previousSibling.click()
if (item) {
item.scrollIntoView()
document.documentElement.scrollTop -= 70

View file

@ -11,12 +11,6 @@ html {
background-color: var(--osc-background-color)!important;
}
@media screen and (min-width:1220px) {
.md-nav__title[for=__drawer] {
background-color: transparent!important;
}
}
.md-header-nav__title {
padding-top: 1px;
padding-left: 0!important
@ -102,22 +96,6 @@ details.api summary:before {
display: none!important;
}
details summary div {
display: inline-block;
}
i[title="dynamic"] {
color: var(--osc-accent-color);
}
.patreon-icon {
margin-top: 2em!important;
color: black!important;
display: block;
background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="black" viewBox="0 0 569 546" xmlns="http://www.w3.org/2000/svg"><g><circle cx="362.589996" cy="204.589996" data-fill="1" id="Oval" r="204.589996"></circle><rect data-fill="2" height="545.799988" id="Rectangle" width="100" x="0" y="0"></rect></g></svg>');
background-size: 20px 30px;
background-repeat: no-repeat;
background-position: 20px center;
padding-left: 3em!important;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

View file

@ -1,20 +1,14 @@
/*!
* Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2022 Fonticons, Inc.
* Font Awesome Free 5.0.8 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
:root, :host {
--fa-font-solid: normal 900 1em/1 "FontAwesome"; }
@font-face {
font-family: 'FontAwesome';
font-family: FontAwesome;
font-style: normal;
font-weight: 900;
font-display: block;
src: url("./fa-solid-900.woff2") format("woff2"); }
src: url("./fa-solid-900.woff2") format("woff2")}
.fa,
.fas,
.fa-solid {
font-family: 'FontAwesome';
.fas {
font-family: FontAwesome;
font-weight: 900; }

File diff suppressed because one or more lines are too long

View file

@ -2,14 +2,14 @@
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: url('./Roboto-Bold.woff2') format('woff2');
src: url('Roboto-Bold.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: url('./Roboto-Medium.woff2') format('woff2');
src: url('Roboto-Medium.woff2') format('woff2');
}
@ -17,19 +17,19 @@
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: url('./Roboto-Regular.woff2') format('woff2');
src: url('Roboto-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 100;
src: url('./Roboto-Light.woff2') format('woff2');
src: url('Roboto-Light.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 500;
src: url('./roboto-mono.woff') format('woff');
src: url('roboto-mono.woff') format('woff');
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -1,18 +1,17 @@
site_name: Open Stage Control
repo_name: open-stage-control
repo_url: https://framagit.org/jean-emmanuel/open-stage-control
repo_url: https://github.com/jean-emmanuel/open-stage-control
edit_uri: tree/master/resources/docs/
copyright: "Copyleft © Jean-Emmanuel Doucet @ <a href='http://ammd.net'>AMMD</a> (<a href='https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/LICENSE'>GNU/GPLv3</a>)"
copyright: "Copyleft © Jean-Emmanuel Doucet @ <a href='http://ammd.net'>AMMD</a> (<a href='https://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE'>GNU/GPLv3</a>)"
site_description: "Libre and modular OSC / MIDI controller"
site_dir: '../app/docs/'
latest_release: 1.31.2
theme:
name: 'material'
custom_dir: 'overrides'
features:
- navigation.tabs
- navigation.instant
- tabs
- instant
palette:
primary: 'Indigo'
accent: 'Indigo'
@ -36,9 +35,6 @@ nav:
- docs/getting-started/server-configuration.md
- docs/getting-started/running-from-sources.md
- docs/getting-started/running-with-node.md
- Tutorials:
- docs/tutorials/first-steps.md
- docs/tutorials/change-property-with-osc.md
- User interface:
- docs/user-interface/launcher.md
- docs/user-interface/client.md
@ -48,8 +44,6 @@ nav:
- docs/widgets/properties-reference.md
- docs/widgets/advanced-syntaxes.md
- docs/widgets/scripting.md
- docs/widgets/fragments.md
- docs/widgets/canvas.md
- MIDI:
- MIDI configuration: docs/midi/midi-configuration.md
- MIDI messages: docs/midi/midi-messages.md
@ -63,7 +57,9 @@ nav:
- Client options: docs/client-options.md
- Remote control: docs/remote-control.md
- Credits: docs/credits.md
- Changelog: docs/changelog.md
- Bug Tracker:
- 'Bug Tracker': 'https://github.com/jean-emmanuel/open-stage-control/issues'
- Community:
- 'Community forums': 'https://openstagecontrol.discourse.group'
@ -91,10 +87,5 @@ markdown_extensions:
custom_checkbox: true
- pymdownx.tilde
- pymdownx.keys
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tabbed
- pymdownx.details
plugins:
- macros

95
scripts/build-client.js Normal file
View file

@ -0,0 +1,95 @@
var build = require('./build'),
path = require('path'),
babelify = require('babelify'),
nanohtml = require('nanohtml'),
watch = process.argv.includes('--watch'),
through = require('through'),
minimatch = require('minimatch').Minimatch
var ignores = ['**/*.min.js', '**/jquery.ui.js', 'gyronorm.complete.min.js'],
transformWrapper = function(transform){
return function(file, opts){
if (ignores.some(pattern => minimatch(pattern).match(file))) {
return through()
} else {
return transform(file, opts)
}
}
}
var transforms = [
[transformWrapper(nanohtml)],
[transformWrapper(babelify)]
]
console.warn('\033[36m=> Building compressed client scripts...\033[0m')
transforms.push([transformWrapper(require('uglifyify')), {global: true, safari10: true}])
var bundle = build({
input: '../src/client/index.js',
output: '../app/client/open-stage-control-client.js',
options: {
debug: true,
insertGlobals: false,
noParse: ['**/*.min.js', '**/jquery.ui.js'],
cache: {},
packageCache: {}
},
plugins: watch ? [require('watchify')] : [],
transforms: transforms
})
if (watch) {
var ansiHTML = require('ansi-html'),
WS = require('../node_modules/ws')
function send(msg, data){
var ipc = new WS('ws://127.0.0.1:8080/dev')
ipc.on('error', ()=>{})
ipc.on('open', ()=>{
ipc.send(JSON.stringify([msg, data]))
ipc.close()
})
}
bundle.b.on('update', hotBundle)
bundle.b.on('log', function(msg) {console.warn('\x1b[36m%s\x1b[0m', msg)})
function hotBundle() {
var output = bundle()
output.on('end', (err)=> {
console.log('Build successful reloading...')
send('reload')
})
output.on('error', (err)=> {
console.error(err.stack)
send('errorPopup',
'<div class="error-stack">' +
ansiHTML(
err.stack
.replace(/^ at .*/gm, '') // remove useless stack
.replace(new RegExp(path.resolve(__dirname + '/..'), 'g'),'.') // shorten file path
.trim()
.replace('\n','\n\n') // add 1 new line after 1st line
) +
'</div>'
)
})
}
hotBundle()
} else {
bundle()
}

View file

@ -1,19 +1,16 @@
var sass = require('sass'),
var sass = require('node-sass'),
path = require('path'),
fs = require('fs')
var indir = path.resolve(__dirname + '/../src/scss/'),
outdir= path.resolve(__dirname + '/../app/assets/')
fs.mkdirSync(outdir + '/themes/', {recursive: true})
fs.readdirSync(indir + '/themes/').forEach(file => {
if (file.includes('.scss') && file !== 'default.scss') {
let result = sass.renderSync({
file: indir + '/themes/' + file,
outputStyle: 'compressed',
silenceDeprecations: ['mixed-decls', 'slash-div', 'import', 'legacy-js-api']
outputStyle: 'compressed'
})
fs.writeFileSync(outdir + '/themes/' + file.split('/').pop().replace('scss', 'css'), result.css)
@ -25,8 +22,7 @@ var result = sass.renderSync({
file: indir + '/index.scss',
outFile: outdir + '/open-stage-control.css',
outputStyle: 'compressed',
sourceMap: true,
silenceDeprecations: ['mixed-decls', 'slash-div', 'import', 'legacy-js-api']
sourceMap: true
})
fs.writeFileSync(outdir + '/open-stage-control.css', result.css)
@ -37,7 +33,7 @@ if (process.argv.includes('--reload')) {
var WS = require('../node_modules/ws')
var ipc = new WS('ws://127.0.0.1:8080/dev/')
var ipc = new WS('ws://127.0.0.1:8080/dev')
ipc.on('error', ()=>{})
ipc.on('open', ()=>{

13
scripts/build-launcher.js Normal file
View file

@ -0,0 +1,13 @@
var build = require('./build')
build({
input: '../src/launcher/index.js',
output: '../app/launcher/open-stage-control-launcher.js',
options: {
debug: true,
ignoreMissing: false,
detectGlobals: false,
bare: true,
noParse: ['**/mathjs/dist/math.min.js']
}
})()

21
scripts/build-midi-bin.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
# buid python midi addon for linux and windows
cd src/python
pyinstaller midi.py --onefile
docker run -v "$(pwd):/src/" cdrx/pyinstaller-linux:python3
mv dist/linux/midi midi-linux-x64
docker run -v "$(pwd):/src/" cdrx/pyinstaller-linux:python3-32bit
mv dist/linux/midi midi-linux-ia32
docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3
mv dist/windows/midi.exe midi-windows-x64.exe
docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3-32bit
mv dist/windows/midi.exe midi-windows-ia32.exe
rm -rf __pycache__ build midi.spec dist

40
scripts/build-server.js Normal file
View file

@ -0,0 +1,40 @@
var build = require('./build'),
babelify = require('babelify')
build({
input: '../src/server/index.js',
output: '../app/server/open-stage-control-server.js',
options: {
commonDir: false,
ignoreMissing: true,
debug: true,
builtins: false,
commondir: false,
insertGlobalVars: {
__filename: true,
__dirname: true,
process: true,
electron: true,
global: true
},
browserField: false,
},
ignore: 'serialport',
exclude: 'electron',
transforms: [
[babelify, {
'presets': [
['@babel/env', {
'targets': {
'node': '6',
},
'useBuiltIns': 'usage',
'corejs': 3
}]
],
'plugins': ['@babel/plugin-proposal-object-rest-spread'],
'global': true,
'only': ['**/ws/', '**/yargs/', '**/find-up/', '**/locate-path', '**/p-locate']
}]
]
})()

View file

@ -0,0 +1,117 @@
require('./client-shim')
// Here we go
var widgets = require('../src/client/widgets'),
baseClass = require('../src/client/widgets/common/widget'),
base = baseClass.defaults(),
doc = ['<!-- This file is generated automatically from the widget class declarations. See scripts/build-widget-reference.js -->']
doc.push(`
## Common
??? api "<div id="generic_properties">Generic properties<a class="headerlink" href="#generic_properties" title="Permanent link">#</a></div>"
Properties shared by all widgets
`
)
for (var propName in base) {
var prop = base[propName],
permalink = propName
if (propName[0] === '_' && propName !== '_props') {
doc.push(`\n
=== "${prop}"
| property | type |default | description |
| --- | --- | --- | --- |`
)
}
if (propName === '_props' || propName[0] === '_') continue
var help = Array.isArray(prop.help) ? prop.help.join('<br/><br/>').replace(/<br\/>-/g, '-') : prop.help || '',
dynamic = baseClass.dynamicProps.includes(propName) ? '<sup><i class="fas fa-bolt" title="dynamic"></i></sup>' : ''
if (prop.choices) {
if (help) help += '<br/><br/>'
help += 'Choices: ' + prop.choices.map(x=>'`' + x + '`').join(', ')
}
doc.push(`
| <h6 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h6> | \`${prop.type.replace(/\|/g,'\`&vert;<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, '&nbsp;') || '').replace(/\n/g,'<br/>').replace('{','\\{')}</code> | ${help} |`
)
}
for (var k in widgets.categories) {
var category = widgets.categories[k]
if (k == 'Containers') {
category.push('root')
category.push('tab')
}
doc.push(`
## ${k}`
)
for (var kk in category) {
var type = category[kk],
defaults = widgets.widgets[type].defaults(),
description = widgets.widgets[type].description(),
separator = false
doc.push(`
??? api "<div id="${type}">${type}<a class="headerlink" href="#${type}" title="Permanent link">#</a></div>"
${description}`
)
for (var propName in defaults) {
var prop = defaults[propName],
permalink = type + '_' + propName
if (propName[0] === '_' && propName !== '_props') {
if (separator) doc.pop()
if (doc[doc.length -1].trim()[0] === '=') doc.pop()
doc.push(`\n
=== "${prop}"
| property | type |default | description |
| --- | --- | --- | --- |`
)
separator = true
}
if (propName === '_props' || propName[0] === '_' || JSON.stringify(prop) == JSON.stringify(base[propName])) continue
var help = Array.isArray(prop.help) ? prop.help.join('<br/><br/>').replace(/<br\/>-/g, '-') : prop.help || '',
dynamic = widgets.widgets[type].dynamicProps.includes(propName) ? '<sup><i class="fas fa-bolt" title="dynamic"></i></sup>' : ''
if (prop.choices) {
if (help) help += '<br/><br/>'
help += 'Choices: ' + prop.choices.map(x=>'`' + x + '`').join(', ')
}
doc.push(`
| <h6 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h6> | \`${prop.type.replace(/\|/g,'\`&vert;<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, '&nbsp;') || '').replace(/\n/g,'<br/>').replace('{','\\{')}</code> | ${help} |`
)
separator = false
}
if (separator) doc.pop()
}
}
console.log(doc.join(''))
process.exit(0) // avoid setTimeout errors in required modules

49
scripts/build.js Normal file
View file

@ -0,0 +1,49 @@
var browserify = require('browserify'),
exorcist = require('exorcist'),
licensify = require('licensify'),
fs = require('fs'),
path = require('path')
module.exports = (opt) => {
var {input, output, options, ignore, exclude, transforms, plugins} = opt,
inputPath = path.resolve(__dirname + '/' + input),
outputPath = path.resolve(__dirname + '/' + output),
b
if (!plugins) plugins = []
if (!plugins.includes(licensify)) plugins.push(licensify)
b = browserify(inputPath, options)
if (ignore) b.ignore(ignore)
if (exclude) b.exclude(exclude)
for (var plugin of plugins) {
b.plugin(plugin)
}
if (transforms) {
for (var transform of transforms) {
var [t, opts] = transform
b.transform(t, opts)
}
}
function bundle() {
var output = b.bundle()
var toWrite = output.pipe(exorcist(outputPath + '.map'))
toWrite.pipe(fs.createWriteStream(outputPath))
return output
}
bundle.b = b
return bundle
}

View file

@ -1,12 +1,10 @@
// Dirty browser window shim
import * as DOM from '../client/dom.mjs'
// eslint-disable-next-line no-global-assign
document = {
createElement: x=>({
ownerDocument: document,
addEventListener: ()=>{},
style: {setProperty: ()=>{}},
style: {},
contentWindow: {},
nodeName: '',
childNodes: [],
setAttribute: ()=>{},
@ -14,16 +12,14 @@ document = {
lastChild: {},
toString: ()=>' ',
removeChild: ()=>{},
getPropertyValue: ()=>{},
contentWindow: {
document: {
open: ()=>{},
close: ()=>{},
write: ()=>{},
}
},
}
}),
getElementById: ()=>document.createElement(),
createTextNode: x=>({
nodeValue: '',
nodeName: '',
@ -49,44 +45,41 @@ document = {
appendChild: ()=>{},
addEventListener: ()=>{}
},
location: {search: ''},
location: {},
documentElement: {
appendChild: ()=>{},
removeChild: ()=>{}
}
}
document.documentElement = document.createElement()
// eslint-disable-next-line no-global-assign
window = {
screen: {width: 800, height: 600},
addEventListener: ()=>{},
location: {search: ''},
Image: Function,
location: {},
document: document,
navigator: {
platform:'',
userAgent: ''
},
NodeList: Array,
WebSocket: Object,
localStorage: {
getItem(){return null}
},
sessionStorage: {
}, sessionStorage: {
getItem(){return null},
setItem(){},
},
getComputedStyle: ()=>document.createElement(),
MutationObserver: class MutationObserver{},
ELECTRON_NOGPU: false,
CANVAS_FRAMERATE: 1,
LANG: 'en',
ENV: {id: ''},
IP: '',
DOM
}
if (!global.navigator) {
// defined as getter since node 22
window.navigator = {
platform:'',
userAgent: ''
}
setItem(){},
},
}
Object.assign(global, window)
console.debug = ()=>{}
// Required globals
DOM = require('../src/client/dom')
DOM.get = x=>[{addEventListener:()=>{}}]
DOM.init()
ELECTRON_NOGPU = false
CANVAS_FRAMERATE = 1
LANG = 'en'
ENV = {id: ''}
IP = ''

View file

@ -1,40 +0,0 @@
var ansiHTML = require('ansi-html'),
WS = require('../node_modules/ws'),
path = require('path')
function send(msg, data){
var ipc = new WS('ws://127.0.0.1:8080/dev/')
ipc.on('error', ()=>{})
ipc.on('open', ()=>{
ipc.send(JSON.stringify([msg, data]))
ipc.close()
})
}
module.exports = function watchChangePlugin() {
var reloadClient = false
return {
buildEnd(error) {
if (error) {
var msg = `<div class="error-stack">
${error.message.replace(path.resolve(__dirname + '/..'),'')} at line ${error.loc.line}\n${error.frame}
</div>`
send('errorPopup', msg.trim())
reloadClient = false
} else {
reloadClient = true
}
},
writeBundle() {
if (reloadClient) {
send('reload')
}
}
}
}

View file

@ -1,98 +0,0 @@
var commonjs = require('@rollup/plugin-commonjs'),
nodeResolve = require('@rollup/plugin-node-resolve'),
json = require('@rollup/plugin-json'),
babel = require('@rollup/plugin-babel'),
terser = require('@rollup/plugin-terser'),
copy = require('rollup-plugin-copy'),
license = require('rollup-plugin-license'),
watchChange = require('./client.plugin-watch'),
package = require('../package.json'),
path = require('path'),
watch = process.argv.includes('--watch')
module.exports = {
input: 'src/client/index.mjs',
output: [
{
dir: 'app/client/',
chunkFileNames: `[name].js`,
entryFileNames: `[name].js`,
format: 'es',
sourcemap: true,
sourcemapExcludeSources: true
},
],
treeshake: false,
watch: {
clearScreen: false
},
plugins: [
json(),
nodeResolve({
browser: true
}),
commonjs(),
watch ? {} : babel({
babelHelpers: 'bundled',
babelrc: false,
exclude: [
/node_modules\/core-js/,
/node_modules\/ace-builds/
],
presets: [[
'@babel/preset-env',
{
targets: {
ios: '11',
chrome: '70'
},
useBuiltIns: 'usage',
corejs: 3,
modules:false
}
]]
}),
watch ? {} : terser({
sourceMap: true,
keep_classnames: true,
keep_fnames: true,
output: {
comments: false,
},
}),
{
name: 'remove-node-modules-from-source-map',
enforce: 'post',
transform(code, id) {
if (id.includes('node_modules')) {
return { code, map: { mappings: '' } }
}
}
},
watch ? {} :license({
thirdParty: {
includeSelf: true,
output: 'app/client/LICENSES',
},
}),
watch ? {} : copy({
targets: [
{src: 'resources/images/logo_nobadge.png', dest: 'app/assets/', rename: 'favicon.png'},
{src: 'resources/images/logo.png', dest: 'app/assets/'},
{src: 'resources/images/logo_tray.png', dest: 'app/assets/'},
{src: 'resources/images/logo_tray@x2.png', dest: 'app/assets/'},
{src: 'resources/images/logo_16x16.png', dest: 'app/assets/'},
{src: 'resources/fonts/*', dest: 'app/assets/fonts/'},
{src: 'node_modules/ace-builds/src-min/worker-css.js', dest: 'app/client/ace/'},
{src: 'node_modules/ace-builds/src-min/worker-html.js', dest: 'app/client/ace/'},
{src: 'node_modules/ace-builds/src-min/worker-javascript.js', dest: 'app/client/ace/'},
{src: 'node_modules/ace-builds/src-min/ace.js', dest: 'app/client/ace/'},
{src: 'src/html/client.html', dest: 'app/client/', rename: 'index.html', transform: (contents)=>{
return contents.toString().replace(/\$\{([^\}]+)\}/g, (m, p1)=>{return package[p1]})
}},
]
}),
watchChange()
]
};

55
scripts/copy-assets.js Normal file
View file

@ -0,0 +1,55 @@
var cpr = require('cpr'),
fs = require('fs'),
path = require('path'),
files = [
['../resources/images/logo_nobadge.png', '../app/assets/favicon.png'],
['../resources/images/logo.png', '../app/assets/logo.png'],
['../LICENSE', '../app/LICENSE'],
['../src/python/', '../app/server/python/'],
['../resources/fonts/', '../app/assets/fonts/'],
['../src/html/launcher.html', '../app/launcher/index.html'],
]
for (var i in files) {
cpr(...files[i].map(f => path.resolve(__dirname + '/' + f)), {
overwrite: true
})
}
var packageJson = require('../package.json'),
appJson = {},
copiedProps = [
"name",
"productName",
"description",
"version",
"author",
"repository",
"homepage",
"license",
"yargs",
"engines"
]
for (var k of copiedProps) {
appJson[k] = packageJson[k]
}
appJson.main = appJson.bin = "index.js"
appJson.scripts = {
"start": "electron index.js",
"start-node": "node index.js"
}
appJson.optionalDependencies = {
electron: packageJson.optionalDependencies.electron
}
fs.writeFileSync(path.resolve(__dirname + '/../app/package.json'), JSON.stringify(appJson, null, ' '))
var clientHtml = fs.readFileSync(path.resolve(__dirname + '/../src/html/client.html'))
.toString()
.replace(/\$\{version\}/g, appJson.version)
fs.writeFileSync(path.resolve(__dirname + '/../app/client/index.html'), clientHtml)

View file

@ -1,45 +0,0 @@
#!/bin/bash
# clean
rm -rf dist app
# buid
npm run build
npm run build-docs
npm run package -- --all
PLATFORM=darwin ARCH=arm64 npm run package
npm run package-node
# get current version
VERSION=$(sed -nE 's/^\s*"version":\ "(.*?)",$/\1/p' package.json)
cd dist
# fetch & copy midi bins
mkdir tmp && cd tmp
cp ../../bin/osc-midi-* ./
chmod +x *
touch .expect-midi-bin
cp {.expect-midi-bin,osc-midi-linux} ../open-stage-control-linux-x64/resources/app/server/python/
cp {.expect-midi-bin,osc-midi-windows.exe} ../open-stage-control-win32-x64/resources/app/server/python/
cp {.expect-midi-bin,osc-midi-osx} ../open-stage-control-darwin-x64/open-stage-control.app/Contents/Resources/app/server/python/
cp {.expect-midi-bin,osc-midi-osx} ../open-stage-control-darwin-arm64/open-stage-control.app/Contents/Resources/app/server/python/
cd ..
rm -rf tmp
# make packages
mkdir packages
npm run deb64
npm run rpm64
mv *.{deb,rpm} packages/
mv open-stage-control-node open-stage-control_${VERSION}_node
mv open-stage-control-win32-x64 open-stage-control_${VERSION}_win32-x64
mv open-stage-control-linux-x64 open-stage-control_${VERSION}_linux-x64
echo "Creating zip packages..."
zip -q -r --symlinks packages/open-stage-control_${VERSION}_osx-x64.zip open-stage-control-darwin-x64/open-stage-control.app
zip -q -r --symlinks packages/open-stage-control_${VERSION}_osx-arm64.zip open-stage-control-darwin-arm64/open-stage-control.app
zip -q -r packages/open-stage-control_${VERSION}_node.zip open-stage-control_${VERSION}_node
zip -q -r packages/open-stage-control_${VERSION}_win32-x64.zip open-stage-control_${VERSION}_win32-x64
zip -q -r packages/open-stage-control_${VERSION}_linux-x64.zip open-stage-control_${VERSION}_linux-x64

View file

@ -1,25 +0,0 @@
var commonjs = require('@rollup/plugin-commonjs'),
nodeResolve = require('@rollup/plugin-node-resolve'),
json = require('@rollup/plugin-json')
module.exports = {
input: 'src/docs/widgets-reference.mjs',
output: [
{
file: 'src/docs/widgets-reference.js',
inlineDynamicImports: true,
format: 'commonjs',
sourcemap: false,
strict: false,
indent: false,
name: '_'
},
],
plugins: [
json(),
nodeResolve({
browser: true
}),
commonjs()
]
};

View file

@ -1,48 +0,0 @@
var commonjs = require('@rollup/plugin-commonjs'),
nodeResolve = require('@rollup/plugin-node-resolve'),
json = require('@rollup/plugin-json'),
babel = require('@rollup/plugin-babel'),
terser = require('@rollup/plugin-terser'),
copy = require('rollup-plugin-copy'),
license = require('rollup-plugin-license'),
package = require('../package.json'),
path = require('path')
module.exports = {
input: 'src/launcher/index.mjs',
output: [
{
dir: 'app/launcher/',
chunkFileNames: `[name].js`,
format: 'commonjs',
sourcemap: true,
sourcemapExcludeSources: true,
strict: false
},
],
treeshake: false,
external: ['electron'],
watch: {
clearScreen: false
},
plugins: [
json(),
commonjs({
ignoreGlobal: true,
ignoreDynamicRequires: true
}),
nodeResolve(),
terser(),
license({
thirdParty: {
includeSelf: true,
output: 'app/launcher/LICENSES',
},
}),
copy({
targets: [
{src: 'src/html/launcher.html', dest: 'app/launcher/', rename: 'index.html'},
]
})
]
};

View file

@ -1,4 +1,8 @@
var cpr = require('cpr'),
var browserify = require('browserify'),
exorcist = require('exorcist'),
licensify = require('licensify'),
fs = require('fs'),
cpr = require('cpr'),
path = require('path'),
files = ['../app', '../dist/open-stage-control-node']

View file

@ -1,18 +1,20 @@
const packager = require('@electron/packager'),
const packager = require('electron-packager'),
path = require('path'),
appData = require('../app/package.json'),
safeFFMPEG = require('electron-packager-plugin-non-proprietary-codecs-ffmpeg').default,
licensePath = path.resolve(__dirname + '/../LICENSE'),
fs = require('fs')
var all = process.argv.includes('--all')
var rpi = process.argv.includes('--old-rpi'),
all = process.argv.includes('--all')
packager({
dir: path.resolve(__dirname + '/../app'),
name: appData.name,
platform: all ? ['linux', 'win32', 'darwin'] : process.env.PLATFORM,
arch: process.env.ARCH || 'x64',
electronVersion: process.env.ELECTRON_VERSION || require('../package.json').optionalDependencies.electron,
all: all ? true : undefined,
platform: rpi ? 'linux' : process.env.PLATFORM,
arch: rpi ? 'armv7l' : process.env.ARCH,
electronVersion: rpi ? '1.7.11' : require('../package.json').optionalDependencies.electron,
overwrite: true,
out: path.resolve(__dirname + '/../dist'),
icon: path.resolve(__dirname + '/../resources/images/logo'),

View file

@ -1,65 +0,0 @@
var commonjs = require('@rollup/plugin-commonjs'),
nodeResolve = require('@rollup/plugin-node-resolve'),
json = require('@rollup/plugin-json'),
babel = require('@rollup/plugin-babel'),
terser = require('@rollup/plugin-terser'),
copy = require('rollup-plugin-copy'),
license = require('rollup-plugin-license'),
package = require('../package.json'),
path = require('path')
module.exports = {
input: {
'node/index': 'src/server/node/index.mjs',
'electron/index': 'src/server/electron/index.mjs'
},
output: [
{
dir: 'app/server/',
chunkFileNames: `[name].js`,
format: 'commonjs',
sourcemap: true,
sourcemapExcludeSources: true,
strict: false
},
],
treeshake: false,
external: ['electron', '@serialport'],
watch: {
clearScreen: false
},
plugins: [
json(),
commonjs({
ignoreGlobal: true,
ignoreDynamicRequires: true
}),
nodeResolve({
preferBuiltins: true
}),
license({
thirdParty: {
includeSelf: true,
output: 'app/server/LICENSES',
},
}),
terser({
sourceMap: true,
keep_classnames: true,
keep_fnames: true,
output: {
comments: false,
},
}),
copy({
targets: [
{src: 'src/index.js', dest: 'app/'},
{src: 'src/server/index.js', dest: 'app/server/'},
{src: 'src/server/python/*.py', dest: 'app/server/python/'},
{src: 'node_modules/fsevents/fsevents.node', dest: 'app/server/'},
{src: 'LICENSE', dest: 'app/'},
{src: 'package.json', dest: 'app/'},
]
})
]
};

59
src/client/backup.js Normal file
View file

@ -0,0 +1,59 @@
var cache = require('./managers/cache'),
localBackup = cache.get('backup', false)
module.exports = {
exists: localBackup !== null,
save: ()=>{
var session = require('./managers/session/'),
state = require('./managers/state'),
editor = require('./editor/')
if (session.session) {
cache.set('backup', {
session: session.session.data,
sessionPath: session.sessionPath,
state: state.get(),
history: editor.history,
historyState: editor.historyState,
editorEnabled: editor.enabled
}, false)
}
},
load: ()=>{
var session = require('./managers/session/'),
state = require('./managers/state'),
editor = require('./editor/'),
ipc = require('./ipc/')
if (localBackup) {
var data = localBackup
cache.remove('backup', false)
session.load(data.session, ()=>{
state.set(data.state, false)
editor.clearHistory()
editor.history = data.history
editor.historyState = data.historyState
if (data.editorEnabled) editor.enable()
ipc.send('sessionSetPath', {path: data.sessionPath})
session.setSessionPath(data.sessionPath)
})
}
}
}

View file

@ -1,62 +0,0 @@
import cache from './managers/cache.mjs'
var session, state, editor, ipc
;(async()=>{
session = (await import('./managers/session/index.mjs')).default
state = (await import('./managers/state.mjs')).default
editor = (await import('./editor/index.mjs')).default
ipc = (await import('./ipc/index.mjs')).default
})()
var localBackup = cache.get('backup', false)
export const exists = localBackup !== null
export function save() {
if (session.session) {
cache.set('backup', {
session: session.session.data,
saveMode: session.saveMode,
sessionPath: session.sessionPath,
fragments: session.fragments,
state: state.get(),
history: editor.history,
historyState: editor.historyState,
editorEnabled: editor.enabled,
}, false)
}
}
export function load() {
if (localBackup) {
var data = localBackup
cache.remove('backup', false)
for (let k in data.fragments) {
session.setFragment({path: k, fileContent: data.fragments[k]})
}
session.load(data.session, ()=>{
session.setSaveMode(data.saveMode)
state.set(data.state, false)
editor.clearHistory()
editor.history = data.history
editor.historyState = data.historyState
if (data.editorEnabled) editor.enable()
ipc.send('sessionSetPath', {path: data.sessionPath})
session.setSessionPath(data.sessionPath)
})
}
}

107
src/client/dom.js Normal file
View file

@ -0,0 +1,107 @@
var readyCallbacks = [],
initState = false
module.exports = {
init: function() {
for (var i in readyCallbacks) {
readyCallbacks[i]()
}
initState = true
},
ready: function(callback) {
if (initState) {
callback()
} else {
readyCallbacks.push(callback)
}
},
dispatchEvent: function(element, name, data) {
var event = new CustomEvent(name, {
detail: data,
bubbles: true,
cancelable: true
})
element.dispatchEvent(event)
},
addEventListener: function(element, events, listener, capture) {
var eventsAsObject = typeof events == 'string' ? events.split(' ') : events
for (var i in eventsAsObject) {
element.addEventListener(eventsAsObject[i], listener, capture)
}
},
get: function(a, b) {
var context = b ? a : document,
selector = b || a,
nodes
if (selector.indexOf('>') === 0) selector = ':scope ' + selector
if (selector.indexOf(' ') === -1 && selector.indexOf(',') === -1) {
if (selector.indexOf('#') === 0 && context === document) {
nodes = [document.getElementById(selector.substr(1, selector.length - 1))]
} else if (selector.indexOf('.') === 0) {
nodes = context.getElementsByClassName(selector.substr(1, selector.length - 1))
}
}
if (!nodes) nodes = context.querySelectorAll(selector)
return [...nodes]
},
each: function(context, selector, callback) {
var nodes = module.exports.get(context, selector)
nodes.forEach(callback)
return nodes
},
index: function(element) {
var parent = element.parentNode
return parent ? Array.prototype.indexOf.call(parent.children, element) : -1
},
offset: function(element, container) {
var offsetLeft = 0,
offsetTop = 0
if (element) {
do {
if (!isNaN(element.offsetLeft)) {
offsetLeft += element.offsetLeft - element.scrollLeft
}
if (!isNaN(element.offsetTop)) {
offsetTop += element.offsetTop - element.scrollTop
}
} while ((element = element.offsetParent) && element !== container)
}
return {
left: offsetLeft,
top: offsetTop
}
}
}

View file

@ -1,82 +0,0 @@
export function dispatchEvent(element, name, data) {
var event = new CustomEvent(name, {
detail: data,
bubbles: true,
cancelable: true
})
element.dispatchEvent(event)
}
export function addEventListener(element, events, listener, capture) {
var eventsAsObject = typeof events == 'string' ? events.split(' ') : events
for (var i in eventsAsObject) {
element.addEventListener(eventsAsObject[i], listener, capture)
}
}
export function get(a, b) {
var context = b ? a : document,
selector = b || a,
nodes
if (selector.indexOf('>') === 0) selector = ':scope ' + selector
if (selector.indexOf(' ') === -1 && selector.indexOf(',') === -1 && selector.indexOf('[') === -1) {
if (selector.indexOf('#') === 0 && context === document) {
nodes = [document.getElementById(selector.substr(1, selector.length - 1))]
} else if (selector.lastIndexOf('.') === 0) {
nodes = context.getElementsByClassName(selector.substr(1, selector.length - 1))
}
}
if (!nodes) nodes = context.querySelectorAll(selector)
return [...nodes]
}
export function each(context, selector, callback) {
var nodes = get(context, selector)
nodes.forEach(callback)
return nodes
}
export function index(element) {
var parent = element.parentNode
return parent ? Array.prototype.indexOf.call(parent.children, element) : -1
}
export function offset(element, container) {
var offsetLeft = 0,
offsetTop = 0
if (element) {
do {
if (!isNaN(element.offsetLeft)) {
offsetLeft += element.offsetLeft - element.scrollLeft
}
if (!isNaN(element.offsetTop)) {
offsetTop += element.offsetTop - element.scrollTop
}
} while ((element = element.offsetParent) && element !== container)
}
return {
left: offsetLeft,
top: offsetTop
}
}

View file

@ -1,29 +1,18 @@
import {updateWidget} from './data-workers.mjs'
import {categories} from '../widgets/index.mjs'
import widgetManager from '../managers/widgets.mjs'
import {icon} from '../ui/utils.mjs'
import editor from './index.mjs'
import locales from '../locales/index.mjs'
import ContextMenu from '../ui/context-menu.mjs'
import {GRIDWIDTH, PXSCALE} from '../globals.mjs'
var {updateWidget} = require('./data-workers'),
{categories} = require('../widgets/'),
widgetManager = require('../managers/widgets'),
{icon} = require('../ui/utils'),
editor = require('./'),
locales = require('../locales'),
ContextMenu = require('../ui/context-menu'),
contextMenu = new ContextMenu()
var sessionManager
;(async()=>{
sessionManager = (await import('../managers/session/index.mjs')).default
})()
var contextMenu = new ContextMenu()
var multiSelectKey = (navigator.platform || '').match('Mac') ? 'metaKey' : 'ctrlKey'
var handleClick = function(event) {
if (
!editor.enabled ||
event.detail.button === 1 ||
(event.detail.metaKey && event.detail.shiftKey)
) return
if (!editor.enabled) return
if (!event.detail[multiSelectKey] && event.type !== 'fast-right-click' && (
event.target.classList.contains('no-widget-select') ||
@ -35,10 +24,6 @@ var handleClick = function(event) {
if (!targetWidget) return
while (targetWidget.meta.not_editable && targetWidget.parent) {
targetWidget = targetWidget.parent
}
// if the widget is not already selected
if (!targetWidget.container.classList.contains('editing') || event.detail.ctrlKey || event.detail.shiftKey) {
// add a flag to the original event to prevent draginit
@ -48,41 +33,14 @@ var handleClick = function(event) {
}
if (editor.inspector.focusedInput) {
editor.inspector.onChange()
editor.inspector.focusedInput = null
if (!document.body.contains(eventData.target)) return
}
if (event.type !== 'fast-right-click') {
if (targetWidget.getProp('type') === 'tab') {
targetWidget.parent.setValue(targetWidget.parent.children.indexOf(targetWidget), {sync: true, send: true})
}
if (
event.target.tagName === 'LI' && // Project tree
event.detail.shiftKey &&
editor.selectedWidgets.length > 0 &&
targetWidget.parent === editor.selectedWidgets[0].parent
) {
var siblings = targetWidget.parent.children,
from = siblings.indexOf(editor.selectedWidgets[0]),
to = siblings.indexOf(targetWidget),
range = siblings.slice(Math.min(from, to), Math.max(from, to) + 1).filter(w=>!editor.selectedWidgets.includes(w))
targetWidget = editor.selectedWidgets.concat(range)
}
editor.select(targetWidget, {multi: event.detail[multiSelectKey]})
}
// right-click menu
if (event.type !== 'fast-right-click') return
if (!event.detail.shiftKey && !event.detail[multiSelectKey] && editor.selectedWidgets.length <= 1) {
if (editor.inspector.focusedInput) editor.inspector.onChange()
editor.select(targetWidget)
}
@ -98,44 +56,27 @@ var handleClick = function(event) {
if (parent !== widgetManager) {
if (event.target.tagName !== 'LI') { // not Project tree
if (event.target.tagName !== 'LI') {
actions.push({
label: icon('project-diagram') + ' ' + locales('editor_show_in_tree'),
action: ()=>{
editor.widgetTree.showWidget(editor.selectedWidgets[0])
editor.widgetTree.blinkSelected()
},
shortcut: 't'
}
})
} else {
actions.push({
label: icon('eye') + ' ' + locales('editor_show_in_session'),
action: ()=>{
for (let w of editor.selectedWidgets) {
editor.widgetTree.showWidgetInSession(w)
}
},
shortcut: 'y'
separator: true
})
}
actions.push({
separator: true
})
actions.push({
label: icon('copy') + ' ' + locales('editor_copy'),
action: editor.copyWidget.bind(editor),
shortcut: 'mod + c'
action: editor.copyWidget.bind(editor)
})
actions.push({
label: icon('cut') + ' ' + locales('editor_cut'),
action: editor.cutWidget.bind(editor),
shortcut: 'mod + x'
action: editor.cutWidget.bind(editor)
})
}
@ -158,16 +99,13 @@ var handleClick = function(event) {
label: icon('paste') + ' ' + locales('editor_paste'),
action: ()=>{
editor.pasteWidget(clickX, clickY)
},
shortcut: 'mod + v'
}
})
pasteActions.push({
label: icon('plus-square') + ' ' + locales('editor_pasteindent'),
action: ()=>{
editor.pasteWidget(clickX, clickY, true)
},
shortcut: 'mod + shift + v'
}
})
if (editor.idClipboard && widgetManager.getWidgetById(editor.idClipboard).length && editor.clipboard[0].type !== 'tab') {
@ -189,49 +127,6 @@ var handleClick = function(event) {
}
}
if (parent !== widgetManager && editor.selectedWidgets.length === 1 && editor.selectedWidgets[0].parent.children.length > 1) {
actions.push({
separator: true
})
actions.push({
label: icon('layer-group') + ' Position',
action: [
{
label: locales('editor_back'),
action: ()=>{
editor.handleKeydown('home')
},
shortcut: 'Home'
},
{
label: locales('editor_farther'),
action: ()=>{
editor.handleKeydown('pageup')
},
shortcut: 'Page Up'
},
{
label: locales('editor_closer'),
action: ()=>{
editor.handleKeydown('pagedown')
},
shortcut: 'Page Down'
},
{
label: locales('editor_front'),
action: ()=>{
editor.handleKeydown('end')
},
shortcut: 'End'
}
]
})
}
if (widget.childrenType !== undefined) {
var addActions = []
@ -266,15 +161,11 @@ var handleClick = function(event) {
data[0].widgets.push(newData)
var indexes = {addedIndexes: [data[0].widgets.length -1]}
updateWidget(editor.selectedWidgets[0], indexes)
editor.pushHistory(indexes)
var newWidget = editor.selectedWidgets[0].children[editor.selectedWidgets[0].children.length - 1]
editor.select([newWidget])
if (!editor.widgetTree.parent.minimized) editor.widgetTree.showWidget(newWidget)
}
})
@ -287,11 +178,9 @@ var handleClick = function(event) {
}
if (data.length == 1 && widget.childrenType !== undefined) {
if (actions.length) actions.push({
separator: true
})
}
if (actions.length) actions.push({
separator: true
})
if (data.length == 1 && widget.childrenType !== 'tab') {
actions.push({
@ -309,17 +198,9 @@ var handleClick = function(event) {
data[0].tabs.push({})
var indexes = {addedIndexes: [data[0].tabs.length -1]}
updateWidget(editor.selectedWidgets[0], indexes)
editor.pushHistory(indexes)
var newWidget = editor.selectedWidgets[0].children[editor.selectedWidgets[0].children.length - 1]
editor.select([newWidget])
if (!editor.widgetTree.parent.minimized) editor.widgetTree.showWidget(newWidget)
newWidget.parent.setValue(newWidget.parent.children.indexOf(newWidget))
}
})
@ -328,20 +209,6 @@ var handleClick = function(event) {
}
if (parent !== widgetManager && data.length === 1) {
actions.push({
separator: true
})
actions.push({
label: icon('file-download') + ' ' + locales('editor_fragment_export'),
action: ()=>{
sessionManager.saveFragment(editor.selectedWidgets[0].props)
}
})
}
if (parent !== widgetManager) {
actions.push({
@ -350,8 +217,7 @@ var handleClick = function(event) {
actions.push({
label: icon('trash') + ' ' + locales('editor_delete'),
action: editor.deleteWidget.bind(editor),
shortcut: 'delete'
action: editor.deleteWidget.bind(editor)
})
}

View file

@ -1,28 +1,28 @@
import widgetManager from '../managers/widgets.mjs'
import stateManager from '../managers/state.mjs'
import parser from '../parser.mjs'
import * as resize from '../events/resize.mjs'
var widgetManager = require('../managers/widgets'),
resize = require('../events/resize'),
stateManager = require('../managers/state'),
parser = require('../parser'),
Panel,
editor,
scrollState = {}
var Panel, Matrix, editor
;(async()=>{
Panel = (await import('../widgets/containers/panel.mjs')).default
Matrix = (await import('../widgets/containers/matrix.mjs')).default
editor = (await import('./index.mjs')).default
})()
var scrollState = {}
setTimeout(()=>{
editor = require('./')
Panel = require('../widgets/containers/panel')
})
function updateWidget(widget, options={}) {
if (options.editedProps) {
if (options.changedProps) {
// alternate routine for small edits
var propNames = options.editedProps
var propNames = options.changedProps
if (
// if non dynamic props have changed, skip this and use rebuild routine
!propNames.some(n => !widget.isDynamicProp(n))
) {
var edited = widget.updateProps(options.editedProps, null, {fromEditor: true}) || widget
var edited = widget.updateProps(options.changedProps, null, {fromEditor: true}) || widget
editor.widgetTree.updateTree(editor.selectedWidgets)
@ -43,7 +43,6 @@ function updateWidget(widget, options={}) {
}
var reuseChildren = options.reuseChildren !== false && widget instanceof Panel
&& !(widget instanceof Matrix)
var children = undefined,
removedChildren = []
@ -76,7 +75,7 @@ function updateWidget(widget, options={}) {
// save state
if (stateManager.queueCounter === 0) {
scrollState = {} // scrollable modals don't store their scroll state in their value
scrollState = {}
}
stateManager.incrementQueue()
for (let w of removedWidgets) {
@ -88,8 +87,8 @@ function updateWidget(widget, options={}) {
stateManager.pushValueState(id, value)
if (valueProp !== '' && valueProp !== undefined) stateManager.pushValueOldProp(id, valueProp)
}
if (w.getProp('scroll') && w.getProp('type') === 'modal') {
var s = w.getScroll()
if (widgetManager.scrollingWidgets.indexOf(w.hash) > -1 && w.scroll) {
var s = w.scroll()
if (s[0] !== 0 || s[1] !== 0) {
scrollState[w.getProp('id')] = s
}
@ -106,13 +105,12 @@ function updateWidget(widget, options={}) {
parentNode: widget.parentNode,
reCreateOptions: options.reCreateOptions,
locals: widget.parsersLocalScope,
variables: widget.variables,
hash: widget.hash,
children: children,
index: index,
meta: widget.meta
index: index
})
newWidget.container.parentNode.replaceChild(newWidget.container, widget.container)
if (newWidget.getProp('type') === 'tab') newWidget.parent.trigger('tab-created', {widget: widget})
@ -141,7 +139,7 @@ function updateWidget(widget, options={}) {
if (stateManager.queueCounter === 0) {
for (let id in scrollState) {
for (let w of widgetManager.getWidgetById(id)) {
if (w.getProp('scroll')) w.setScroll(scrollState[id][0], scrollState[id][1])
if (w.scroll) w.scroll(scrollState[id])
}
}
}
@ -177,19 +175,17 @@ var incrementWidget = function(data, root){
return data
}
var id = String(data.id),
address = String(data.address)
var id = data.id,
address = data.address
if (id && address == '/' + id) {
data.address = 'auto'
} else if (!address.match(/^(auto|\/control|\/note|\/program|\/sysex|\/mtc|\/key_pressure|\/channel_pressure|\/pitch)$/)) {
var addressref = widgetManager.createAddressRef(null, data.preArgs,address)
} else if (address !== 'auto') {
var addressref
while (fakeStore.address.indexOf(address) != -1 || widgetManager.getWidgetByAddress(addressref).length) {
address = address.replace(/([0-9]*)$/,function(m){
var n = parseInt(m)+1
n = isNaN(n)?1:n
@ -235,7 +231,7 @@ var incrementWidget = function(data, root){
}
export {
updateWidget,
incrementWidget
module.exports = {
updateWidget:updateWidget,
incrementWidget:incrementWidget
}

32
src/client/editor/diff.js Normal file
View file

@ -0,0 +1,32 @@
module.exports = {
diff: require('jsondiffpatch'),
diffToWidget: function(widget, diff) {
// traverse a diff patch and the associated widget
// to return the first node (widget and sub-patch) with actual changes
var children = diff.tabs || diff.widgets
if (children) {
var childrenKeys = Object.keys(children),
deletedChildren = childrenKeys.filter(x => typeof x === 'string' && x.match(/_[0-9]+/)),
changedChildren = childrenKeys.filter(x => !isNaN(x))
}
if (
!children ||
Array.isArray(children) || // 'tabs' or 'widgets' property created
deletedChildren.length || // 'tabs' or 'widgets' property created
changedChildren.length !== 1 || // children reordered (or same property edited in multiple widgets, but case ignored)
Array.isArray(children[changedChildren[0]]) // child item created
) {
return [widget, diff]
}
return module.exports.diffToWidget(widget.children[changedChildren[0]], children[changedChildren[0]])
}
}

View file

@ -1,29 +0,0 @@
import diff from 'jsondiffpatch'
export {diff}
export function diffToWidget(widget, diff) {
// traverse a diff patch and the associated widget
// to return the first node (widget and sub-patch) with actual changes
var children = diff.tabs || diff.widgets
if (children) {
var childrenKeys = Object.keys(children),
deletedChildren = childrenKeys.filter(x => typeof x === 'string' && x.match(/_[0-9]+/)),
changedChildren = childrenKeys.filter(x => !isNaN(x))
}
if (
!children ||
Array.isArray(children) || // 'tabs' or 'widgets' property created
deletedChildren.length || // 'tabs' or 'widgets' property created
changedChildren.length !== 1 || // children reordered (or same property edited in multiple widgets, but case ignored)
Array.isArray(children[changedChildren[0]]) // child item created
) {
return [widget, diff]
}
return diffToWidget(widget.children[changedChildren[0]], children[changedChildren[0]])
}

View file

@ -1,48 +1,37 @@
import keyboardJS from 'keyboardjs/dist/keyboard.min.js'
import {updateWidget, incrementWidget} from './data-workers.mjs'
import {diff, diffToWidget} from './diff.mjs'
import widgetManager from '../managers/widgets.mjs'
import {deepCopy} from '../utils.mjs'
import {defaults, widgets} from '../widgets/index.mjs'
import UiSelectArea from '../ui/ui-selectarea.mjs'
import UiInspector from '../ui/ui-inspector.mjs'
import UiTree from '../ui/ui-tree.mjs'
import UiDragResize from '../ui/ui-dragresize.mjs'
import uiConsole from '../ui/ui-console.mjs'
import notifications from '../ui/notifications.mjs'
import locales from '../locales/index.mjs'
import {leftUiSidePanel, rightUiSidePanel} from '../ui/index.mjs'
import ipc from '../ipc/index.mjs'
import {DOM, GRIDWIDTH, GRIDWIDTH_CSS, ENV, PXSCALE, setGRIDWIDTH, READ_ONLY} from '../globals.mjs'
import zoom from '../ui/zoom.mjs'
var {updateWidget, incrementWidget} = require('./data-workers'),
keyboardJS = require('keyboardjs/dist/keyboard.min.js'),
{diff, diffToWidget} = require('./diff'),
widgetManager = require('../managers/widgets'),
{deepCopy} = require('../utils'),
{defaults} = require('../widgets/'),
macOs = (navigator.platform || '').match('Mac'),
UiSelectArea = require('../ui/ui-selectarea'),
UiInspector = require('../ui/ui-inspector'),
UiTree = require('../ui/ui-tree'),
UiDragResize = require('../ui/ui-dragresize'),
notifications = require('../ui/notifications'),
locales = require('../locales'),
{leftUiSidePanel, rightUiSidePanel} = require('../ui/'),
ipc = require('../ipc'),
sessionManager
var sessionManager
;(async()=>{
sessionManager = (await import('../managers/session/index.mjs')).default
await import('./context-menu.mjs')
})()
setTimeout(()=>{
sessionManager = require('../managers/session/')
})
const macOs = (navigator.platform || '').match('Mac')
const HISTORY_SIZE = 50
class Editor {
constructor() {
zoom.editor = this
this.inspector = new UiInspector({selector: '#osc-inspector'})
this.inspector.on('update', (event)=>{
var {propName, value, preventHistory} = event,
var {propName, value} = event,
newWidgets = [],
error = false
if (this.selectedWidgets.some(w=>w.getProp('lock')) && propName !== 'lock') {
this.select(this.selectedWidgets)
return
}
for (var w of this.selectedWidgets) {
let previousValue = w.props[propName]
@ -50,83 +39,62 @@ class Editor {
if ((propName === 'label' || propName === 'popupLabel') && value === true) {
w.props[propName] = 'auto'
} else {
w.props[propName] = value !== '' ? value : deepCopy(defaults[w.props.type]._props()[propName])
w.props[propName] = value !== '' ? value : deepCopy(defaults[w.props.type][propName].value)
}
try {
newWidgets.push(updateWidget(w, {editedProps: [propName], preventSelect: this.selectedWidgets.length > 1}))
newWidgets.push(updateWidget(w, {changedProps: [propName], preventSelect: this.selectedWidgets.length > 1}))
} catch (e) {
w.props[propName] = previousValue
updateWidget(w, {editedProps: [propName], preventSelect: this.selectedWidgets.length > 1})
updateWidget(w, {changedProps: [propName], preventSelect: this.selectedWidgets.length > 1})
if (uiConsole.minimized) notifications.add({
notifications.add({
class: 'error',
message: locales('inspector_error'),
duration: 7000
})
console.error(
`Error while setting ${propName} to: ${JSON.stringify(value)}.\n` +
'It\'s probably a bug, please open a new bug ticket with the following informations at' +
'https://github.com/jean-emmanuel/open-stage-control/issues'
`Error while setting ${propName} to: ${JSON.stringify(value)}.`,
'It\'s probably a bug, please a new bug ticket with these informations (https://github.com/jean-emmanuel/open-stage-control/issues).'
)
throw e
// console.error(e)
// error = true
console.error(e)
error = true
}
}
if (error) return
if (!preventHistory) this.pushHistory()
this.pushHistory()
if (newWidgets.length > 1) this.select(newWidgets)
})
this.widgetTree = new UiTree({selector: '#osc-tree', parent: leftUiSidePanel})
this.widgetTree = new UiTree({selector: '#osc-tree'})
this.widgetTree.on('sorted', (event)=>{
var {oldIndex, newIndex, from, to} = event,
propName = from.childrenType + 's',
container
var {widget, oldIndex, newIndex} = event,
propName = widget.props.tabs && widget.props.tabs.length ? 'tabs' : 'widgets'
if (from === to) {
if (widget.props[propName].length < 2) return
if (to.props[propName].length < 2) return
widget.props[propName].splice(newIndex, 0, widget.props[propName].splice(oldIndex, 1)[0])
to.props[propName].splice(newIndex, 0, to.props[propName].splice(oldIndex, 1)[0])
var indices = [newIndex, oldIndex]
if (Math.abs(oldIndex - newIndex) > 1) {
for (var i = Math.min(newIndex, oldIndex) + 1; i < Math.max(newIndex, oldIndex); i++) {
indices.push(i)
}
var indices = [newIndex, oldIndex]
if (Math.abs(oldIndex - newIndex) > 1) {
for (var i = Math.min(newIndex, oldIndex) + 1; i < Math.max(newIndex, oldIndex); i++) {
indices.push(i)
}
container = updateWidget(to, {removedIndexes: indices, addedIndexes: indices, preventSelect: true})
this.pushHistory({removedIndexes: indices, addedIndexes: indices})
this.select(container.children[newIndex])
} else {
to.props[propName].splice(newIndex, 0, from.props[propName][oldIndex])
from.props[propName].splice(oldIndex, 1)
updateWidget(from, {removedIndexes: [oldIndex], preventSelect: true})
container = updateWidget(to, {addedIndexes: [newIndex], preventSelect: true})
this.pushHistory()
this.select(container.children[newIndex])
}
if (!event.ignoreTree) this.widgetTree.showWidget(container.children[newIndex])
var container = updateWidget(widget, {removedIndexes: indices, addedIndexes: indices, preventSelect: true})
this.pushHistory({removedIndexes: indices, addedIndexes: indices})
this.select(container.children[newIndex])
})
@ -138,14 +106,9 @@ class Editor {
this.widgetDragResize.on('move', (e)=>{
var left = Math.round(e.left / GRIDWIDTH) * GRIDWIDTH,
top = Math.round(e.top / GRIDWIDTH) * GRIDWIDTH
if (e.copying) {
this.duplicateWidget(left, top, e.shiftKey)
} else {
var dX = left - e.initLeft,
dY = top - e.initTop
this.moveWidget(dX, dY)
}
var dX = left - e.initLeft,
dY = top - e.initTop
this.moveWidget(dX, dY)
})
this.widgetDragResize.on('drag-resize', (e)=>{
var width = Math.round(e.width / GRIDWIDTH) * GRIDWIDTH,
@ -158,14 +121,13 @@ class Editor {
this.selectedWidgets = []
this.clipboard = null
this.tmpClipboard = null
this.idClipboard = null
ipc.on('clipboard', (data)=>{
this.clipboard = data.clipboard
this.idClipboard = data.idClipboard
})
this.usePercents = !!ENV.usepercents
this.usePercents = false
this.enabled = false
this.grid = true
@ -193,8 +155,6 @@ class Editor {
'mod + x',
'mod + v',
'mod + shift + v',
'mod + d',
'mod + shift + d',
macOs ? 'backspace' : 'delete',
'alt + up',
'alt + down',
@ -210,82 +170,35 @@ class Editor {
'mod + down',
'mod + left',
'mod + right',
'pageup',
'pagedown',
'home',
'end',
't',
'y',
'f2',
'h',
'mod + f'
'f2'
]
for (let c of combos) {
keyboardJS.bind(c, (e)=>{
e.catchedByEditor = true
this.handleKeydown(c, e)
}, (e)=>{
e.catchedByEditor = true
this.handleKeyup(c, e)
this.handleKeyboard(c, e)
})
}
})
this.selectarea = new UiSelectArea('[data-widget]:not(.not-editable)', (elements, e)=>{
this.selectarea = new UiSelectArea('[data-widget]:not(.not-editable)', (elements)=>{
var widgets = elements.map(e => widgetManager.getWidgetByElement(e, ':not(.not-editable)')).filter(e => e)
elements = elements.map(e => widgetManager.getWidgetByElement(e, ':not(.not-editable)')).filter(e => e)
if (e.ctrlKey) {
// only add siblings to current selection
for (var i in widgets) {
this.select(widgets[i], {multi:true, fromLasso:true, lassoEnd: i == widgets.length - 1})
}
} else {
// select the largest group of siblings in area
var groups = {}
for (var w of widgets) {
var g = w.parent.hash
if (!g) continue
if (!groups[g]) groups[g] = []
if (!groups[g].includes(w)) groups[g].push(w)
}
groups = Object.values(groups)
// if the event started from a container widget (but not in the project tree)
// remove groups that are more than one level away from that container
if (e.target.tagName !== 'LI' && this.selectedWidgets[0].childrenType !== undefined) {
groups = groups.filter(g=>g[0].parent === this.selectedWidgets[0] || g[0].parent === this.selectedWidgets[0].parent)
}
var lengths = groups.map(g=>g.length),
selection = groups[lengths.lastIndexOf(Math.max(...lengths))]
if (selection) this.select(selection)
for (var i in elements) {
this.select(elements[i], {multi:true, fromLasso:true, lassoEnd: i == elements.length - 1})
}
})
}
handleKeydown(combo, e){
handleKeyboard(combo, e){
if (
this.inspector.helpModalOpened ||
e && e.target && e.target.tagName.match(/INPUT|TEXTAREA|SELECT|OSC-CONSOLE/)
) return
if (this.inspector.helpModalOpened || e.target && (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA' || e.target.tagName === 'SELECT')) return
if (e) e.preventDefault()
e.preventDefault()
switch (combo) {
@ -299,29 +212,21 @@ class Editor {
break
case 'mod + c':
if (!window.getSelection().toString().length) this.copyWidget()
this.copyWidget()
break
case 'mod + x':
if (!window.getSelection().toString().length) this.cutWidget()
this.cutWidget()
break
case 'mod + v':
if (!window.getSelection().toString().length) this.pasteWidget(this.mousePosition.x, this.mousePosition.y, false)
this.pasteWidget(this.mousePosition.x, this.mousePosition.y, false)
break
case 'mod + shift + v':
this.pasteWidget(this.mousePosition.x, this.mousePosition.y, true)
break
case 'mod + d':
this.duplicateWidget(this.mousePosition.x, this.mousePosition.y, false)
break
case 'mod + shift + d':
this.duplicateWidget(this.mousePosition.x, this.mousePosition.y, true)
break
case 'backspace':
case 'delete':
this.deleteWidget()
@ -331,7 +236,7 @@ class Editor {
case 'alt + down':
case 'alt + right':
case 'alt + left':
if (!this.selectedWidgets.length || this.selectedWidgets[0].parent === widgetManager) return
if (!this.selectedWidgets.length) return
if (this.selectedWidgets[0].props.height === undefined && e.key.match(/Arrow(Up|Down)/)) return
if (this.selectedWidgets[0].props.width === undefined && e.key.match(/Arrow(Left|Right)/)) return
@ -348,10 +253,10 @@ class Editor {
break
case 'mod + up':
case 'mod + down':
case 'mod + right':
case 'mod + left':
case 'up':
case 'down':
case 'right':
case 'left':
if (!this.selectedWidgets.length) return
if (this.selectedWidgets[0].props.top === undefined && e.key.match(/Arrow(Up|Down)/)) return
@ -386,26 +291,33 @@ class Editor {
}
break
case 'up':
case 'down':
case 'right':
case 'left':
case 'mod + up':
case 'mod + down':
case 'mod + right':
case 'mod + left':
if (!this.selectedWidgets.length) return
var curWidget = this.selectedWidgets[0],
toSelect = null
if (e.key === 'ArrowLeft' && curWidget.parent !== widgetManager) {
if (e.key === 'ArrowUp' && curWidget.parent !== widgetManager) {
toSelect = curWidget.parent
} else if (e.key === 'ArrowRight') {
} else if (e.key === 'ArrowDown') {
if (curWidget.children[0] && !curWidget.children[0].meta.not_editable) {
toSelect = curWidget.children[0]
let toSelectList = [...curWidget.children]
if (toSelectList && toSelectList.length) {
toSelectList.sort((a,b) => a.container.offsetLeft>b.container.offsetLeft)
toSelect = toSelectList[0]
if (toSelect.container.classList.contains('not-editable')) {
toSelect = null
}
}
} else if((e.key == 'ArrowUp') || (e.key == 'ArrowDown')){
}
else if((e.key == 'ArrowLeft') || (e.key == 'ArrowRight')){
if (curWidget.parent === widgetManager) return
@ -415,7 +327,7 @@ class Editor {
toSelectList.sort((a,b) => a.container.offsetLeft > b.container.offsetLeft)
var idx = toSelectList.indexOf(curWidget)
if (idx >= 0) {
var nextIdx = (idx + (e.key === 'ArrowUp' ? -1 : 1 ) + toSelectList.length) % toSelectList.length
var nextIdx = (idx + (e.key === 'ArrowLeft' ? -1 : 1 ) + toSelectList.length) % toSelectList.length
toSelect = toSelectList[nextIdx]
}
}
@ -427,105 +339,18 @@ class Editor {
break
case 'pagedown':
case 'pageup':
case 'home':
case 'end':
if (this.selectedWidgets.length !== 1 || this.selectedWidgets[0].parent.children.length <= 1) return
var curWidget2 = this.selectedWidgets[0],
index = curWidget2.parent.children.indexOf(curWidget2),
maxIndex = curWidget2.parent.children.length - 1,
newIndex
if (combo === 'pagedown') newIndex = Math.min(index + 1, maxIndex)
else if (combo === 'pageup') newIndex = Math.max(index - 1, 0)
else if (combo === 'end') newIndex = maxIndex
else if (combo === 'home') newIndex = 0
if (index !== newIndex) {
this.widgetTree.trigger('sorted', {
from: curWidget2.parent,
to: curWidget2.parent,
oldIndex: index,
newIndex: newIndex,
ignoreTree: true
})
}
break
case 't':
if (!this.selectedWidgets.length) return
this.widgetTree.showWidget(editor.selectedWidgets[0])
this.widgetTree.blinkSelected()
break
case 'y':
if (!this.selectedWidgets.length) return
for (let w of editor.selectedWidgets) {
this.widgetTree.showWidgetInSession(w)
}
this.widgetTree.showWidget(editor.selectedWidgets[0])
break
case 'f2':
if (!this.selectedWidgets.length) return
if (this.selectedWidgets[0].props.label === undefined && this.selectedWidgets[0].props.html === undefined) return
if (!this.inspector.expandedCategories.includes('style')) {
var header = DOM.get(this.inspector.container, '.category-header[data-name="style"]')[0]
if (header) {
header.parentNode.classList.add('expanded')
this.inspector.expandedCategories.push('style')
}
}
var labelProp = this.selectedWidgets[0].props.label === undefined ? 'html' : 'label'
var input = DOM.get(this.inspector.container, `textarea[name="${labelProp}"]`)[0]
if (input) {
if (input._ace_input) {
input._ace_input.focus()
} else {
input.focus()
input.setSelectionRange(0, input.value.length)
input.scrollIntoView({block: 'center'})
}
}
break
case 'h':
document.body.classList.add('editor-hide-selection')
break
case 'mod + f':
if (this.widgetTree.parent.minimized) this.widgetTree.parent.restore()
this.widgetTree.filter.focus()
break
}
}
handleKeyup(combo, e){
if (
this.inspector.helpModalOpened ||
(e && e.target && e.target.tagName && e.target.tagName.match(/INPUT|TEXTAREA|SELECT/))
) return
if (e) e.preventDefault()
switch (combo) {
case 'h':
document.body.classList.remove('editor-hide-selection')
break
}
}
toggleGrid() {
this.grid = !this.grid
setGRIDWIDTH(this.grid ? GRIDWIDTH_CSS : 1)
GRIDWIDTH = this.grid ? 10 : 1
document.body.style.setProperty('--grid-width', GRIDWIDTH)
document.documentElement.style.setProperty('--grid-width', GRIDWIDTH)
document.body.classList.toggle('no-grid', GRIDWIDTH == 1)
}
@ -537,19 +362,13 @@ class Editor {
this.enabled = true
document.body.classList.add('editor-enabled')
document.body.classList.remove('editor-disabled')
this.widgetTree.updateTree(this.selectedWidgets)
leftUiSidePanel.enable()
rightUiSidePanel.enable()
// keyboardJS hack: prevent releaseAllKeys when switching context
var locale = keyboardJS._locale
keyboardJS._locale = null
keyboardJS.setContext('editing')
keyboardJS._locale = locale
this.oscContainer.addEventListener('mousemove', this.mouveMoveHandler)
this.oscContainer.addEventListener('mouseleave', this.mouveLeaveHandler)
@ -560,17 +379,13 @@ class Editor {
disable() {
this.unselect()
this.selectedWidgets = []
document.body.classList.add('editor-disabled')
document.body.classList.remove('editor-enabled')
// keyboardJS hack: prevent releaseAllKeys when switching context
var locale = keyboardJS._locale
keyboardJS._locale = null
keyboardJS.setContext('global')
keyboardJS._locale = locale
this.oscContainer.removeEventListener('mousemove', this.mouveMoveHandler)
this.oscContainer.removeEventListener('mouseleave', this.mouveLeaveHandler)
@ -635,16 +450,6 @@ class Editor {
}
if (this.selectedWidgets.length) {
var parent = this.selectedWidgets[0].parent
while (parent !== widgetManager) {
if (parent.getProp('lock')) {
this.selectedWidgets = [parent]
}
parent = parent.parent
}
}
if (options.fromLasso && !options.lassoEnd) return
this.unselect()
@ -672,9 +477,6 @@ class Editor {
}
this.widgetTree.select(this.selectedWidgets)
this.widgetDragResize.create(this.selectedWidgets)
if (!this.widgetTree.parent.minimized) {
this.widgetTree.showWidget(editor.selectedWidgets[editor.selectedWidgets.length-1])
}
}
@ -691,7 +493,7 @@ class Editor {
}
copyWidget(tmp) {
copyWidget() {
if (!this.selectedWidgets.length) return
if (this.selectedWidgets[0].getProp('type') === 'root') return
@ -706,19 +508,6 @@ class Editor {
}
duplicateWidget(x, y, increment) {
if (!this.selectedWidgets.length) return
if (this.selectedWidgets[0].getProp('type') === 'root') return
this.tmpClipboard = deepCopy(this.selectedWidgets.map((w)=>w.props))
var index = Math.max(...this.selectedWidgets.map(w=>w.parent.children.indexOf(w)))
this.select(this.selectedWidgets[0].parent)
this.pasteWidget(x, y, increment, index + 1, true)
this.select(this.selectedWidgets[0].children[index + 1])
}
cutWidget() {
this.copyWidget()
@ -726,21 +515,16 @@ class Editor {
}
pasteWidget(x, y, increment, index, tmp) {
if (!this.selectedWidgets.length) return
var clipboard = tmp ? this.tmpClipboard : this.clipboard
if (clipboard === null) return
pasteWidget(x, y, increment) {
if (!this.selectedWidgets.length || this.clipboard === null) return
if (
this.selectedWidgets[0].childrenType === undefined ||
clipboard[0].type === 'tab' && this.selectedWidgets[0].childrenType === 'widget' ||
clipboard[0].type !== 'tab' && this.selectedWidgets[0].childrenType === 'tab'
this.clipboard[0].type === 'tab' && this.selectedWidgets[0].childrenType === 'widget' ||
this.clipboard[0].type !== 'tab' && this.selectedWidgets[0].childrenType === 'tab'
) return
var pastedData = deepCopy(clipboard),
var pastedData = deepCopy(this.clipboard),
minTop = Infinity,
minLeft = Infinity
@ -776,27 +560,18 @@ class Editor {
for (let i in pastedData) {
if (!String(pastedData[i].left).match(/\{/)) {
if (pastedData[i]._pleft) {
pastedData[i].left = ((pastedData[i]._aleft - minLeft + x) * 100 / this.selectedWidgets[0].widget.offsetWidth).toFixed(2).replace(/\.?0+$/, '') + '%'
} else {
pastedData[i].left += - minLeft + x
}
if (pastedData[i]._pleft) {
pastedData[i].left = ((pastedData[i]._aleft - minLeft + x) * 100 / this.selectedWidgets[0].widget.offsetWidth).toFixed(2) + '%'
} else {
pastedData[i].left += - minLeft + x
}
if (!String(pastedData[i].top).match(/\{/)) {
if (pastedData[i]._ptop) {
pastedData[i].top = ((pastedData[i]._atop - minTop + y) * 100 / this.selectedWidgets[0].widget.offsetHeight).toFixed(2).replace(/\.?0+$/, '') + '%'
} else {
pastedData[i].top += - minTop + y
}
if (pastedData[i]._ptop) {
pastedData[i].top = ((pastedData[i]._atop - minTop + y) * 100 / this.selectedWidgets[0].widget.offsetHeight).toFixed(2) + '%'
} else {
pastedData[i].top += - minTop + y
}
}
}
@ -804,27 +579,20 @@ class Editor {
// paste data
var store = clipboard[0].type === 'tab' ? 'tabs' : 'widgets'
var store = this.clipboard[0].type === 'tab' ? 'tabs' : 'widgets'
this.selectedWidgets[0].props[store] = this.selectedWidgets[0].props[store] || []
this.selectedWidgets[0].props[store] = this.selectedWidgets[0].props[store].concat(pastedData)
var indexes = {addedIndexes: []},
start = index || this.selectedWidgets[0].props[store].length
this.selectedWidgets[0].props[store].splice(start, 0, ...pastedData)
var indexes = {addedIndexes: []}
for (let i = 0; i < pastedData.length; i++) {
indexes.addedIndexes.push(start + pastedData.length - 1 - i )
indexes.addedIndexes.push(this.selectedWidgets[0].props[store].length - 1 - i )
}
if (index)indexes.reuseChildren=false
updateWidget(this.selectedWidgets[0], indexes)
this.pushHistory(indexes)
if (!leftUiSidePanel.minimized) this.widgetTree.showWidget(this.selectedWidgets[0].children[0])
}
pasteWidgetAsClone(x, y) {
@ -851,8 +619,8 @@ class Editor {
clone.top = y
if (this.usePercents) {
clone.top = (100 * y / editor.selectedWidgets[0].widget.offsetHeight).toFixed(2).replace(/\.?0+$/, '') + '%'
clone.left= (100 * x / editor.selectedWidgets[0].widget.offsetWidth).toFixed(2).replace(/\.?0+$/, '') + '%'
clone.top = (100 * y / editor.selectedWidgets[0].widget.offsetHeight).toFixed(2) + '%'
clone.left= (100 * x / editor.selectedWidgets[0].widget.offsetWidth).toFixed(2) + '%'
}
@ -864,12 +632,8 @@ class Editor {
var indexes = {addedIndexes: [this.selectedWidgets[0].props.widgets.length -1]}
updateWidget(this.selectedWidgets[0], indexes)
this.pushHistory(indexes)
if (!leftUiSidePanel.minimized) this.widgetTree.showWidget(this.selectedWidgets[0].children[0])
}
@ -905,92 +669,51 @@ class Editor {
}
/* Utility function to retrieve the first sizable node */
getWidgetParentContainer(widget) {
while (widget.parent instanceof widgets.folder) {
widget = widget.parent
}
return widget.container.parentNode
}
resizeWidget(deltaW, deltaH) {
resizeWidget(deltaW, deltaH, ui) {
if (!this.selectedWidgets.length) return
if (this.selectedWidgets.some(w=>w.getProp('lock'))) {
this.createSelectionBlock()
return
}
var newWidgets = [],
area = this.widgetDragResize,
editedProps = []
var newWidgets = []
for (var i = 0; i < this.selectedWidgets.length; i++) {
let w = this.selectedWidgets[i],
nW, nH, nL, nT
nW, nH
nW = w.container.offsetWidth + deltaW * w.container.offsetWidth / area.initWidth
nH = w.container.offsetHeight + deltaH * w.container.offsetHeight / area.initHeight
if (i === 0 && ui) {
nW = ui.originalSize.width + deltaW
nH = ui.originalSize.height + deltaH
if (this.selectedWidgets.length > 1) {
nL = w.container.offsetLeft + deltaW * (w.container.offsetLeft - area.initLeft) / area.initWidth
nT = w.container.offsetTop + deltaH * (w.container.offsetTop - area.initTop) / area.initHeight
} else {
nW = w.container.offsetWidth + deltaW
nH = w.container.offsetHeight + deltaH
}
if (deltaW !== 0 && w.props.width !== undefined && w.parent.getProp('layout') !== 'vertical') {
if (w.props.width !== undefined && w.parent.getProp('layout') !== 'vertical') {
var newWidth = Math.max(nW, GRIDWIDTH) / PXSCALE
if (typeof w.props.width === 'string' && w.props.width.indexOf('%') > -1) {
w.props.width = (100 * PXSCALE * newWidth / this.getWidgetParentContainer(w).offsetWidth).toFixed(2).replace(/\.?0+$/, '') + '%'
w.props.width = (100 * PXSCALE * newWidth / w.container.parentNode.offsetWidth).toFixed(2) + '%'
} else {
w.props.width = newWidth
}
editedProps.push('width')
if (this.selectedWidgets.length > 1) {
var newLeft = Math.max(nL, GRIDWIDTH) / PXSCALE
if (typeof w.props.left === 'string' && w.props.left.indexOf('%') > -1) {
w.props.left = (100 * PXSCALE * newLeft / this.getWidgetParentContainer(w).offsetWidth).toFixed(2).replace(/\.?0+$/, '') + '%'
} else if (w.props.left !== 'auto'){
w.props.left = newLeft
}
editedProps.push('left')
}
}
if (deltaH !== 0 && w.props.height !== undefined && w.parent.getProp('layout') !== 'horizontal') {
if (w.props.height !== undefined && w.parent.getProp('layout') !== 'horizontal') {
var newHeight = Math.max(nH, GRIDWIDTH) / PXSCALE
if (typeof w.props.height === 'string' && w.props.height.indexOf('%') > -1) {
w.props.height = (100 * PXSCALE * newHeight / this.getWidgetParentContainer(w).offsetHeight).toFixed(2).replace(/\.?0+$/, '') + '%'
w.props.height = (100 * PXSCALE * newHeight / w.container.parentNode.offsetHeight).toFixed(2) + '%'
} else {
w.props.height = newHeight
}
editedProps.push('height')
if (this.selectedWidgets.length > 1) {
var newTop = Math.max(nT, GRIDWIDTH) / PXSCALE
if (typeof w.props.top === 'string' && w.props.top.indexOf('%') > -1) {
w.props.top = (100 * PXSCALE * newTop / this.getWidgetParentContainer(w).offsetHeight).toFixed(2).replace(/\.?0+$/, '') + '%'
} else if (w.props.top !== 'auto'){
w.props.top = newTop
}
editedProps.push('top')
}
}
if (w.props.width !== undefined || w.props.height !== undefined) newWidgets.push(updateWidget(w, {editedProps: editedProps, preventSelect: this.selectedWidgets.length > 1}))
if (w.props.width !== undefined || w.props.height !== undefined) newWidgets.push(updateWidget(w, {changedProps: ['width', 'height'], preventSelect: this.selectedWidgets.length > 1}))
}
this.pushHistory()
// if (newWidgets.length > 1) this.select(newWidgets, {preventSelect: this.selectedWidgets.length > 1})
this.createSelectionBlock()
if (newWidgets.length > 1) this.select(newWidgets, {preventSelect: this.selectedWidgets.length > 1})
}
@ -998,36 +721,30 @@ class Editor {
if (!this.selectedWidgets.length) return
if (this.selectedWidgets.some(w=>w.getProp('lock'))) {
this.createSelectionBlock()
return
}
var newWidgets = []
for (var w of this.selectedWidgets) {
var newTop = Math.max(parseInt(w.container.offsetTop) / PXSCALE + deltaY, 0)
if (typeof w.props.top === 'string' && w.props.top.indexOf('%') > -1) {
w.props.top = (100 * PXSCALE * newTop / this.getWidgetParentContainer(w).offsetHeight).toFixed(2).replace(/\.?0+$/, '') + '%'
w.props.top = (100 * PXSCALE * newTop / w.container.parentNode.offsetHeight).toFixed(2) + '%'
} else {
w.props.top = newTop
}
var newLeft = Math.max(parseInt(w.container.offsetLeft) / PXSCALE + deltaX, 0)
if (typeof w.props.left === 'string' && w.props.left.indexOf('%') > -1) {
w.props.left = (100 * PXSCALE * newLeft / this.getWidgetParentContainer(w).offsetWidth).toFixed(2).replace(/\.?0+$/, '') + '%'
w.props.left = (100 * PXSCALE * newLeft / w.container.parentNode.offsetWidth).toFixed(2) + '%'
} else {
w.props.left = newLeft
}
newWidgets.push(updateWidget(w, {editedProps: ['top', 'left'], preventSelect: this.selectedWidgets.length > 1}))
newWidgets.push(updateWidget(w, {changedProps: ['top', 'left'], preventSelect: this.selectedWidgets.length > 1}))
}
this.pushHistory()
// if (newWidgets.length > 1) this.select(newWidgets)
this.createSelectionBlock()
if (newWidgets.length > 1) this.select(newWidgets)
}
@ -1035,9 +752,7 @@ class Editor {
pushHistory(indexes) {
if (!ENV.noWarning) {
this.unsavedSession = true
}
this.unsavedSession = true
if (this.historyState > -1) {
this.history.splice(0, this.historyState + 1)
@ -1110,7 +825,7 @@ class Editor {
if (indexes) {
options = {...indexes}
} else {
options.editedProps = Object.keys(subpatch)
options.changedProps = Object.keys(subpatch)
options.reuseChildren = false
}
@ -1133,4 +848,6 @@ class Editor {
var editor = new Editor()
export default editor
module.exports = editor
require('./context-menu')

View file

@ -1,7 +1,4 @@
import iOS from '../ui/ios.mjs'
import editor from '../editor/index.mjs'
import {DOM, FOCUSABLE, ENV} from '../globals.mjs'
const iOS = require('../ui/ios')
const macOs = (navigator.platform || '').match('Mac')
var longTouchTimer = false,
@ -20,13 +17,7 @@ if (macOs) {
DOM.dispatchEvent(event.target, 'fast-right-click', event)
})
} else {
document.body.addEventListener('contextmenu', (event)=>{
if (
event.target &&
!event.target.classList.contains('ace_content') &&
!event.target.tagName.match(/INPUT|TEXTAREA|OSC-CONSOLE|OSC-CONSOLE-MESSAGE/)
) event.preventDefault()
})
document.body.setAttribute('oncontextmenu', 'return false')
}
function mouseToFastClick(event) {
@ -40,10 +31,6 @@ function mouseToFastClick(event) {
DOM.dispatchEvent(e.target, name, e)
if (!FOCUSABLE && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
console.debug('ELECTRON.BLUR()')
}
}
function touchToFastClick(event) {
@ -70,10 +57,6 @@ function touchToFastClick(event) {
}, 600)
if (ENV.nofocus && !editor.enabled && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
console.debug('ELECTRON.BLUR()')
}
}
if (!iOS) document.addEventListener('pointerdown', mouseToFastClick, true)

View file

@ -1,42 +0,0 @@
export default function(eventName, options={}){
var widget_storage_key = '_' + eventName + '_widget'
function closestWidgetContainer(target) {
var container = target
while (container !== null) {
if (container[widget_storage_key]) {
return container
} else {
container = container.parentNode
}
}
return null
}
function triggerWidgetEvent(target, event) {
var container = closestWidgetContainer(target)
if (container) container[widget_storage_key].trigger(eventName, event)
}
document.addEventListener(eventName, (event)=>{
triggerWidgetEvent(event.target, event)
}, {passive: !!options.passive, capture: !!options.capture})
return {
setup: function(options) {
var {element} = options || {element: this.container}
element[widget_storage_key] = this
},
teardown: function(options) {
var {element} = options || {element: this.container}
delete element[widget_storage_key]
}
}
}

View file

@ -1,6 +1,4 @@
import {DOUBLE_TAP_TIME} from '../globals.mjs'
export default (element, callback, options={})=>{
module.exports = (element, callback, options={})=>{
var lastTapTime = 0,
lastTapX,

331
src/client/events/drag.js Normal file
View file

@ -0,0 +1,331 @@
const {normalizeDragEvent, resetEventOffset, TRAVERSING_SAMEWIDGET} = require('./utils')
const iOS = require('../ui/ios')
var targets = {},
previousPointers = {}
function pointerDownHandler(event) {
if (event.capturedByEditor || event.touchPunch) return
if (!event.multitouch) {
for (var i in targets) {
if (targets[i] == event.target) return
}
}
event = normalizeDragEvent(event)
if (event.traversingStack) {
event.target = event.target.closest('.drag-event')
var widget = event.target.closest('.drag-event')._drag_widget,
local = event.traversingStack.stack[event.traversingStack.stack.length - 1]
if (widget.getProp) event.traversingStack.firstType = widget.getProp('type')
if (local.mode === TRAVERSING_SAMEWIDGET && local.type && local.type !== event.traversingStack.firstType) {
event.traversing = false
} else {
event.traversing = true
}
}
targets[event.pointerId] = event.target
previousPointers[event.pointerId] = event
triggerWidgetEvent(targets[event.pointerId], 'draginit', event)
}
function pointerMoveHandler(event) {
event = normalizeDragEvent(event, previousPointers[event.pointerId])
event.stopPropagation = true
if (event.traversing) {
var previousTarget = targets[event.pointerId],
target = event.isTouch ?
document.elementFromPoint(event.clientX, event.clientY)
: event.target
if (target) target = target.closest('.drag-event')
var local = null
if (target && event.traversingStack) {
for (var i = event.traversingStack.stack.length - 1; i > -1; i--) {
if (event.traversingStack.stack[i].container.contains(target)) {
local = event.traversingStack.stack[i]
break
}
}
if (!local) {
target = null
} else if (local.mode === TRAVERSING_SAMEWIDGET && local.type) {
var widget = target.closest('.drag-event')._drag_widget
if (widget.getProp && local.type !== widget.getProp('type')) target = null
}
}
if (target && event.isTouch) {
resetEventOffset(event, target)
}
if (previousTarget !== target) {
triggerWidgetEvent(previousTarget, 'dragend', event)
}
if (target && event.traversing) {
triggerWidgetEvent(target, previousTarget !== target ? 'draginit' : 'drag', event)
}
targets[event.pointerId] = target
} else {
triggerWidgetEvent(targets[event.pointerId], 'drag', event)
}
previousPointers[event.pointerId] = event
}
function pointerUpHandler(event) {
event = normalizeDragEvent(event, previousPointers[event.pointerId])
triggerWidgetEvent(targets[event.pointerId], 'dragend', event)
delete targets[event.pointerId]
delete previousPointers[event.pointerId]
}
// Move / Up Filter
function pointerMoveFilter(event) {
if (targets[event.pointerId] !== undefined) {
pointerMoveHandler.call(targets[event.pointerId], event)
}
}
function pointerUpFilter(event) {
if (targets[event.pointerId] !== undefined) {
pointerUpHandler.call(targets[event.pointerId], event)
delete targets[event.pointerId]
}
}
// Mouse events wrappers
function mouseMultiWrapper(event) {
mouseDownCapture(event, true)
}
function mouseDownCapture(event, multitouch) {
if (event.pointerType === 'touch') return
// event.pointerId = 'mouse'
event.multitouch = multitouch
pointerDownHandler(event)
}
function mouseMoveCapture(event) {
if (event.pointerType === 'touch') return
// event.pointerId = 'mouse'
event.inertia = event.ctrlKey ? 10 : 1
pointerMoveFilter(event)
}
function mouseUpCapture(event){
if (event.pointerType === 'touch') return
// event.pointerId = 'mouse'
pointerUpFilter(event)
}
// Touch events wrappers
function touchMultiWrapper(event) {
touchDownCapture(event, true)
}
function touchDownCapture(event, multitouch) {
event.preventDefault()
for (var i in event.changedTouches) {
if (isNaN(i) || !event.changedTouches[i]) continue
var touchEvent = event.changedTouches[i]
if (event.traversingStack) {
touchEvent.traversingStack = event.traversingStack
}
touchEvent.pointerId = touchEvent.identifier
touchEvent.multitouch = multitouch
pointerDownHandler(touchEvent)
}
}
function touchMoveCapture(event) {
for (var i in event.changedTouches) {
if (isNaN(i) || !event.changedTouches[i]) continue
var touchEvent = event.changedTouches[i]
var fingers = 0
for (var j in event.touches) {
if (event.touches[j].target && event.touches[j].target.isSameNode(touchEvent.target)) {
fingers += 1
if (fingers == 2) {
touchEvent.inertia = 10
break
}
}
}
touchEvent.pointerId = touchEvent.identifier
pointerMoveFilter(touchEvent)
}
}
function touchUpCapture(event) {
for (var i in event.changedTouches) {
if (isNaN(i) || !event.changedTouches[i]) continue
var touchEvent = event.changedTouches[i]
touchEvent.pointerId = touchEvent.identifier
pointerUpFilter(touchEvent)
}
}
// Callback trigger
function triggerWidgetEvent(target, name, event) {
if (target !== null && target._drag_widget) {
target._drag_widget.trigger(name, event)
} else if (target !== null) {
triggerWidgetEvent(target.closest('.drag-event'), name, event)
}
}
// init
DOM.ready(()=>{
if (!iOS) document.addEventListener('pointermove', mouseMoveCapture, true)
if (!iOS) document.addEventListener('pointerup', mouseUpCapture, true)
document.addEventListener('touchmove', touchMoveCapture, true)
DOM.addEventListener(document, 'touchend touchcancel', touchUpCapture, true)
})
module.exports = {
setup: function(options) {
if (
this._customBindings['drag'] !== 0 ||
this._customBindings['draginit'] !== 0 ||
this._customBindings['dragend'] !== 0 ||
!options || options.ignoreCustomBindings
) {
return
}
var {element, multitouch} = options
element._drag_widget = this
element.style.touchAction = 'none'
element.classList.add('drag-event')
if (multitouch) {
element.addEventListener('touchstart', touchMultiWrapper, false)
if (!iOS) element.addEventListener('pointerdown', mouseMultiWrapper)
} else {
element.addEventListener('touchstart', touchDownCapture, false)
if (!iOS) element.addEventListener('pointerdown', mouseDownCapture)
}
},
teardown: function(options) {
if (
this._customBindings['drag'] !== 0 ||
this._customBindings['draginit'] !== 0 ||
this._customBindings['dragend'] !== 0 ||
!options || options.ignoreCustomBindings
) {
return
}
var {element, multitouch} = options
delete element._drag_widget
element.style.touchAction = ''
element.classList.remove('drag-event')
if (multitouch) {
element.removeEventListener('touchstart', touchMultiWrapper, false)
if (!iOS) element.removeEventListener('pointerdown', mouseMultiWrapper)
} else {
element.removeEventListener('touchstart', touchDownCapture, false)
if (!iOS) element.removeEventListener('pointerdown', mouseDownCapture)
}
},
enableTraversingGestures: function(element, options={}) {
if (element._traversing) return
var traversing = options.type ? TRAVERSING_SAMEWIDGET : true,
traversingType = options.type === 'auto' ? '' : options.type
element._traversing = traversing
function makeEventTraversing(event) {
if (event.ctrlKey) return
if (!event.traversingStack) event.traversingStack = {firstType: '', stack: []}
event.traversingStack.stack.push({
container: element,
mode: traversing,
type: traversingType
})
}
if (!iOS) element.addEventListener('pointerdown', makeEventTraversing, true)
element.addEventListener('touchstart', makeEventTraversing, true)
element.addEventListener('disableTraversingGestures', (e)=>{
e.stopPropagation()
if (!iOS) element.removeEventListener('pointerdown', makeEventTraversing, true)
element.removeEventListener('touchstart', makeEventTraversing, true)
})
},
disableTraversingGestures: function(element) {
if (!element._traversing) return
delete element._traversing
DOM.dispatchEvent(element, 'disableTraversingGestures')
}
}

View file

@ -1,426 +0,0 @@
import {normalizeDragEvent, resetEventOffset, TRAVERSING_SAMEWIDGET} from './utils.mjs'
import iOS from '../ui/ios.mjs'
import {DOM} from '../globals.mjs'
var targets = {},
previousPointers = {}
function pointerDownHandler(event) {
if (event.capturedByEditor || event.touchPunch) return event
if (!event.target._drag_multitouch) {
for (var i in targets) {
if (targets[i] == event.target) return event
}
}
event = normalizeDragEvent(event)
event.stopPropagation = true
var target = closestDragContainer(event.target)
if (!target) return event
if (event.traversingStack) {
var widget = target._drag_widget,
local = event.traversingStack.stack[event.traversingStack.stack.length - 1]
if (widget.getProp) {
// if first touched widget is a container, wait until another widget is touched while moving
event.traversingStack.firstType = widget.isContainer ? '?' : widget.getProp('type')
}
if (local.mode === TRAVERSING_SAMEWIDGET) {
if (local.type === '') {
local.type = event.traversingStack.firstType
}
event.traversing = local.type === event.traversingStack.firstType || event.traversingStack.firstType === '?'
} else {
event.traversing = true
}
}
targets[event.pointerId] = target
previousPointers[event.pointerId] = event
if (event.pointerType !== 'mouse') domObserver.activate()
triggerWidgetEvent(targets[event.pointerId], 'draginit', event)
if (event.cancelDragEvent) clearPointer(event)
return event
}
function pointerMoveHandler(event) {
event = normalizeDragEvent(event, previousPointers[event.pointerId])
event.stopPropagation = true
if (event.traversing) {
var previousTarget = targets[event.pointerId],
target = event.isTouch ?
document.elementFromPoint(event.clientX, event.clientY)
: event.target
if (target) target = closestDragContainer(target)
var local = null,
containersOnly = false,
backupTarget = target
if (target && event.traversingStack) {
for (var i = event.traversingStack.stack.length - 1; i > -1; i--) {
if (event.traversingStack.stack[i].container.contains(target)) {
local = event.traversingStack.stack[i]
break
}
}
if (!local) {
target = null
} else if (local.mode === TRAVERSING_SAMEWIDGET) {
var widget = target._drag_widget
if (local.type === '?' && widget.getProp && !widget.isContainer) local.type = widget.getProp('type')
if (widget.getProp && local.type !== widget.getProp('type')) target = null
}
}
if (target && event.isTouch) {
resetEventOffset(event, target)
}
if (previousTarget !== target && !containersOnly) {
triggerWidgetEvent(previousTarget, 'dragend', event)
}
if (target) {
if (previousTarget === target) {
triggerWidgetEvent(target, 'drag', event)
} else {
triggerWidgetEvent(target, 'draginit', event)
}
} else {
// notify container of move events if no draggable widget is under the pointer
triggerWidgetEvent(backupTarget, 'drag', event, true)
}
targets[event.pointerId] = target
} else {
triggerWidgetEvent(targets[event.pointerId], 'drag', event)
}
previousPointers[event.pointerId] = event
}
function pointerUpHandler(event) {
event = normalizeDragEvent(event, previousPointers[event.pointerId])
event.stopPropagation = true
triggerWidgetEvent(targets[event.pointerId], 'dragend', event)
clearPointer(event)
}
function clearPointer(event) {
delete targets[event.pointerId]
delete previousPointers[event.pointerId]
if (domObserver.active) {
var t
for (var k in targets) {t=targets[k]}
if (t === undefined) domObserver.deactivate()
}
}
// Move / Up Filter
function pointerMoveFilter(event) {
if (targets[event.pointerId] !== undefined) {
pointerMoveHandler.call(targets[event.pointerId], event)
}
}
function pointerUpFilter(event) {
if (targets[event.pointerId] !== undefined) {
pointerUpHandler.call(targets[event.pointerId], event)
delete targets[event.pointerId]
}
}
// Mouse events wrappers
function mouseDownCapture(event) {
if (event.pointerType === 'touch') return
event.stopPropagation()
// event.pointerId = 'mouse'
pointerDownHandler(event)
}
function mouseMoveCapture(event) {
if (event.pointerType === 'touch') return
// event.pointerId = 'mouse'
event.inertia = event.ctrlKey ? 10 : 1
pointerMoveFilter(event)
}
function mouseUpCapture(event){
if (event.pointerType === 'touch') return
// event.pointerId = 'mouse'
pointerUpFilter(event)
}
// Touch events wrappers
// Touchend event is not emitted when target element is removed/detached
// Watch for DOM mutations and simulate pointerUp if a registered
// target is removed/detached
const domObserver = new MutationObserver(function(mutations) {
for (var id in targets) {
var event = previousPointers[id],
target = targets[id]
if (!event || event.pointerType === 'mouse') continue
for (var mutation of mutations) {
for (var node of mutation.removedNodes) {
if (node == target || node.contains(target)){
pointerUpHandler(event)
}
}
}
}
})
domObserver.active = false
domObserver.activate = ()=>{
if (!domObserver.active) {
domObserver.observe(DOM.get('#osc-container')[0], {subtree: true, childList: true})
domObserver.active = true
}
}
domObserver.deactivate = ()=>{
if (domObserver.active) {
domObserver.disconnect()
domObserver.active = false
}
}
function touchDownCapture(event) {
var preventDefault = true
event.stopPropagation()
for (var i in event.changedTouches) {
if (isNaN(i) || !event.changedTouches[i]) continue
var touchEvent = event.changedTouches[i]
if (event.traversingStack) {
touchEvent.traversingStack = event.traversingStack
}
touchEvent.pointerId = touchEvent.identifier
touchEvent = pointerDownHandler(touchEvent)
// allow scroll if drag is cancelled or widget is a container
if (touchEvent.cancelDragEvent || touchEvent.allowScroll) preventDefault = false
}
if (preventDefault) event.preventDefault()
}
function touchMoveCapture(event) {
for (var i in event.changedTouches) {
if (isNaN(i) || !event.changedTouches[i]) continue
var touchEvent = event.changedTouches[i]
touchEvent.fingers = 0
for (var j in event.touches) {
if (event.touches[j].target && event.touches[j].target.isSameNode(touchEvent.target)) {
touchEvent.fingers += 1
}
}
touchEvent.pointerId = touchEvent.identifier
pointerMoveFilter(touchEvent)
}
}
function touchUpCapture(event) {
for (var i in event.changedTouches) {
if (isNaN(i) || !event.changedTouches[i]) continue
var touchEvent = event.changedTouches[i]
touchEvent.pointerId = touchEvent.identifier
pointerUpFilter(touchEvent)
}
}
function ancestorDragContainers(target) {
var containers = [],
container = target
while (container !== null) {
if (container._drag_widget) {
containers.splice(0, 0, container._drag_widget)
if (container._drag_widget.root) break
}
container = container.parentNode
}
return containers
}
function closestDragContainer(target) {
var container = target
while (container !== null) {
if (container._drag_widget) {
return container
} else {
container = container.parentNode
}
}
return null
}
// Callback trigger
function triggerWidgetEvent(target, name, event, containersOnly) {
// trigger drag events from parent to child
var widgets = ancestorDragContainers(target),
widget
for (widget of widgets) {
if (containersOnly && !widget.isContainer) continue
widget.trigger(name, event)
if (event.preventDefault) break
}
// if child is a container, let it scroll
if (widget && widget.scroll) event.allowScroll = true
}
// init
if (!iOS) {
document.addEventListener('pointermove', mouseMoveCapture, true)
if ('onwebkitmouseforcechanged' in document) document.addEventListener('webkitmouseforcechanged', mouseMoveCapture, true)
}
if (!iOS) document.addEventListener('pointerup', mouseUpCapture, true)
document.addEventListener('touchmove', touchMoveCapture, true)
if ('ontouchforcechange' in document) document.addEventListener('touchforcechange', touchMoveCapture, true)
DOM.addEventListener(document, 'touchend touchcancel', touchUpCapture, true)
if (!iOS) document.addEventListener('pointerdown', mouseDownCapture)
export function setup(options) {
if (
this._customBindings['drag'] !== 0 ||
this._customBindings['draginit'] !== 0 ||
this._customBindings['dragend'] !== 0 ||
!options || options.ignoreCustomBindings
) {
return
}
var {element, multitouch} = options
element.addEventListener('touchstart', touchDownCapture, false)
element._drag_widget = this
element._drag_multitouch = multitouch
}
export function teardown(options) {
if (
this._customBindings['drag'] !== 0 ||
this._customBindings['draginit'] !== 0 ||
this._customBindings['dragend'] !== 0 ||
!options || options.ignoreCustomBindings
) {
return
}
var {element} = options
element.style.touchAction = ''
element.removeEventListener('touchstart', touchDownCapture, false)
delete element._drag_widget
delete element._drag_multitouch
}
export function enableTraversingGestures(element, options={}) {
if (element._traversing) return
var traversing = options.type ? TRAVERSING_SAMEWIDGET : true,
traversingType = options.type === 'smart' || options.type === 'auto' ? '' : options.type
element._traversing = traversing
function makeEventTraversing(event) {
if (event.ctrlKey) return
if (!event.traversingStack) event.traversingStack = {firstType: '', stack: []}
event.traversingStack.stack.push({
container: element.parentNode,
mode: traversing,
type: traversingType
})
}
if (!iOS) element.addEventListener('pointerdown', makeEventTraversing, true)
element.addEventListener('touchstart', makeEventTraversing, true)
element.addEventListener('disableTraversingGestures', (e)=>{
e.stopPropagation()
if (!iOS) element.removeEventListener('pointerdown', makeEventTraversing, true)
element.removeEventListener('touchstart', makeEventTraversing, true)
})
}
export function disableTraversingGestures(element) {
if (!element._traversing) return
delete element._traversing
DOM.dispatchEvent(element, 'disableTraversingGestures')
}

View file

@ -1,25 +1,13 @@
import domEvent from './dom-event.mjs'
import * as drag from './drag.mjs'
import * as resize from './resize.mjs'
var customEvents = {
'draginit': drag,
'drag': drag,
'dragend': drag,
'resize': resize,
'wheel': domEvent('wheel'),
'scroll': domEvent('scroll', {capture: true}),
'click': domEvent('click'),
'fast-click': domEvent('fast-click'),
'focus': domEvent('focus', {capture: true}),
'blur': domEvent('blur', {capture: true}),
'change': domEvent('change')
}
var customEvents = {}
setTimeout(()=>{
customEvents['draginit'] = customEvents['drag'] = customEvents['dragend'] = require('./drag')
customEvents['resize'] = require('./resize')
})
// micro optimisation from eventemitter3
var has = Object.prototype.hasOwnProperty
export default class EventEmitter {
module.exports = class EventEmitter {
constructor() {
@ -43,8 +31,6 @@ export default class EventEmitter {
}
// Event bubbling
// DOM events won't bubble
// Virtual events will unless data.stopPropagation is set
if (!data || !data.stopPropagation) {
if (this.parent) this.parent.trigger(evt, data)
}

View file

@ -0,0 +1,64 @@
var elements = []
function checkResizes(context, force){
// Iterate over all elements to which the 'resize' event is bound.
var resizedElems = [],
cachedStyles = []
for (let i = elements.length - 1; i >= 0; i--) {
var elem = elements[i]
if (!context.contains(elem)) continue
var style = window.getComputedStyle(elem),
width = parseInt(style['width']) - parseInt(style['padding-left']) - parseInt(style['padding-right']),
height = parseInt(style['height']) - parseInt(style['padding-top']) - parseInt(style['padding-bottom'])
if (!width || !height) continue
// If element size has changed since the last time, update the element
// data store and trigger the 'resize' event.
if (force || width != elem.resizedataw || height != elem.resizedatah) {
elem.resizedataw = width
elem.resizedatah = height
resizedElems.push(elem)
cachedStyles.push(style)
}
}
for (let i = resizedElems.length - 1; i >= 0; i--) {
resizedElems[i]._resize_widget.trigger('resize', {
width: resizedElems[i].resizedataw,
height: resizedElems[i].resizedatah,
style:cachedStyles[i],
stopPropagation: true
})
}
}
window.addEventListener('resize', ()=>{checkResizes(document)})
module.exports = {
setup: function(options) {
if (!options) return
if (elements.indexOf(options.element) == -1) {
elements.push(options.element)
options.element._resize_widget = this
}
},
teardown: function(options) {
if (!options) return
if (elements.indexOf(options.element) != -1) {
elements.splice(elements.indexOf(options.element), 1)
delete options.element._resize_widget
}
},
check: checkResizes
}

View file

@ -1,63 +0,0 @@
import fastdom from 'fastdom'
var elements = []
export function check(context, force){
fastdom.measure(()=>{
// Iterate over all elements to which the 'resize' event is bound.
let resizedElems = [],
cachedStyles = []
for (let i = elements.length - 1; i >= 0; i--) {
var elem = elements[i]
if (!context.contains(elem)) continue
var style = window.getComputedStyle(elem),
width = parseInt(style['width']) - parseInt(style['padding-left']) - parseInt(style['padding-right']),
height = parseInt(style['height']) - parseInt(style['padding-top']) - parseInt(style['padding-bottom'])
if (!width || !height) continue
// If element size has changed since the last time, update the element
// data store and trigger the 'resize' event.
if (force || width != elem.resizedataw || height != elem.resizedatah) {
elem.resizedataw = width
elem.resizedatah = height
resizedElems.push(elem)
cachedStyles.push(style)
}
}
for (let i = resizedElems.length - 1; i >= 0; i--) {
resizedElems[i]._resize_widget.trigger('resize', {
width: resizedElems[i].resizedataw,
height: resizedElems[i].resizedatah,
style:cachedStyles[i],
stopPropagation: true
})
}
})
}
window.addEventListener('resize', ()=>{check(document)})
export function setup(options) {
if (!options) return
if (elements.indexOf(options.element) == -1) {
elements.push(options.element)
options.element._resize_widget = this
}
}
export function teardown(options) {
if (!options) return
if (elements.indexOf(options.element) != -1) {
elements.splice(elements.indexOf(options.element), 1)
delete options.element._resize_widget
}
}

Some files were not shown because too many files have changed in this diff Show more