Compare commits

...

1335 commits

Author SHA1 Message Date
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
292 changed files with 25307 additions and 26763 deletions

View file

@ -1,11 +1,12 @@
{
"presets": [
["env", {
["@babel/env", {
"targets": {
"ios": "9.3",
"chrome": "50"
}
},
"useBuiltIns": "usage"
}]
],
"plugins": ["transform-object-rest-spread"]
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
}

1
.eslintignore Normal file
View file

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

62
.eslintrc.json Normal file
View file

@ -0,0 +1,62 @@
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"no-console": "off",
"no-undef": "off",
"no-useless-escape": "off",
"no-self-assign": "off",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-unused-vars": [
"error",
{
"args": "none"
}
],
"space-before-function-paren": [
"error",
"never"
],
"indent": [
"error",
4,
{
"SwitchCase": 1,
"ObjectExpression": 1,
"ArrayExpression": 1,
"MemberExpression": "off",
"ignoredNodes": ["ConditionalExpression"]
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
]
},
"globals": {
"module": true
}
}

12
.gitignore vendored
View file

@ -1,6 +1,10 @@
node_modules
dist
app/browser/styles.css
app/browser/scripts.js
app/browser/scripts.js.map
app/browser/favicon.ico
app/LICENSE
app/assets/*.css*
app/assets/*.png
app/client/*.js*
app/launcher/*.js*
app/server/*.js*
app/package.json
package-lock.json

View file

@ -2,11 +2,11 @@ anHsudo: required
dist: trusty
language: node_js
node_js:
- "6"
- "9"
before_install:
- sudo dpkg --add-architecture i386
- sudo apt-get update -qq
- sudo apt-get install -qq wine fakeroot
- sudo apt-get install -qq wine fakeroot xvfb
install: npm install
before_deploy:
deploy:
@ -20,7 +20,9 @@ deploy:
tags: true
before_deploy:
- export VERSION=$(sed -nE 's/^\s*"version":\ "(.*?)",$/\1/p' package.json)
- npm run build
- npm run package -- --all
- npm run package -- --rpi
- npm run package-node
- npm run deb32
- npm run deb64
- npm run debarm
@ -29,18 +31,20 @@ before_deploy:
- 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
# - 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
# - zip -q -r packages/open-stage-control-${VERSION}-linux-arm64.zip open-stage-control-${VERSION}-linux-arm64
- ls packages
- cd ..

View file

@ -1,11 +1,648 @@
# Changelog
## 0.40.2
- bug fixes
- regression reversing tabs order
## 0.40.1
- bug fixes
- editor: issue with tabs selection / edition
- regression breaking `svg`
## 0.40.0
- bug fixes
- `--read-only` option not properly working
- `keyboard`: dynamic properties `target`, `precision` & `preArgs` not being updated dynamically
- widgets
- formulas: added `indexOf` function
- **deprecated** `multifader` / `multipush` / `multitoggle` in favor of the generic `matrix` widget
- meter: `gradient` can be set as an object to define uneven color breakpoints
## 0.39.8
- bug fixes
- meter's properties not accessible (overridden with fader's properties)
- mobile
- button for preventing device sleep
## 0.39.7
- bug fixes
- iOS 9.3 compatibility
- widgets
- sliders: `steps` property is now dynamic
## 0.39.6
- bug fixes
- `modal` widgets not working since chrome v70
## 0.39.5
- bug fixes
- sliders: `steps` option not working when `range.min` is not `0`
- regression breaking the app for iOS 9.3
## 0.39.4
- widgets
- multiXy: added `.pad-N` class to inner xy pads to help with css customization
- xy/multiXy: added css variables `--background`, `--color-pips`, `--pips-opacity` and `--point-opacity`
- rgb: added `alpha` option
- xy/multiXy/rgb: design impovements;
- sliders: new `steps` option
## 0.39.3
- bug fixes
- broken tabs color property
- broken `/TABS` command; this command doesn't makes panels send osc messages anymore
## 0.39.2
- bug fixes
- regresssion: broken --theme option
- regression: missing 'edit parent' action in editor's context menu
## 0.39.1
- bug fixes
- regression breaking icons in switches' labels
## 0.39.0
- performance
- rendering speed improved (session loading time reduced by about 30%)
- widgets
- remove support for deprecated properties `path`, `noPip` and `noSync`
- sliders/pads: `precision` is no longer a dynamic property
## 0.38.7
- bug fixes
- launcher compatibility issues with electron v3
## 0.38.6
- bug fixes
- regression with dynamic property `color` in panels and matrices
- packaging
- node-only package can be run with electron too
## 0.38.5
- packaging
- regression causing the client js bundle to be much bigger than needed
- added node-only package built without electron for unsupported platforms (armv6, etc)
## 0.38.4
- bug fixes
- `@{parent}` calls not working consistently in clone widgets
- `slider/pads`: inteverted ranges not working
- fix `doubleTap` for sliders with `snap` set to `true`
- undo/redo errors
- widgets
- 1-level nested property inheritance calls (`@{id_@{id_2}}`) are now updated dynamically
- support special css property `class` for adding custom classes to widgets
- added "smart" traversing gestures mode that limits affected widgets by the type of the first touched widget
- root: added `traversing` property
- editor
- major performance improvements (containers' children are reused whenever possible instead of being recreated)
- removed widget deletion confirmation popup
- properties categories can now be folded
- added keyboard shortcut `F2` for editing the label quickly
- added keyboard shortcut `mod + s` for saving the session
- added keyboard shortcut `mod + o` for opening a session
- use `backspace` instead of `delete` for deleting widgets on MacOs
- added keyboard shortcut `mod + e` for enabling / disabling the editor
- added keyboard shortcuts `mod + arrows` for selecting widgets
- added keyboard shortcut `mod + a` for selecting a widget's siblings and itself
- added keyboard shortcut `mod + shift + a` for cancelling selection
- added multi widget selection with mouse when `shift` is pressed
- right-click doesn't modify current selection when `mod` or `shift` is pressed
- formulas
- added `extend(x, y)` function for merging two objects
- objects' closing brackets (`}`) don't need to be escaped with a backslash anymore
- show property's computed value in the help popup
## 0.37.4
- bug fixes
- osc receivers (`OSC{}`) not working in non-dynamic properties
- remote control
- added `/GET/#` to get a widget's value without using `/GET` as reply address
## 0.37.3
- bug fixes
- gyroscope: osc sendings not properly triggered on value updates
## 0.37.2
- bug fixes
- osc: regression making empty `preArgs` count as one empty string argument
## 0.37.1
- bug fixes
- closing popups when clicking precisely on the "x"
- translations
- fr: corrections
- ru: added russian translation
## 0.37.0
- bug fixes
- editor: opening the sidepanel doesn't select the root widget anymore
- ios: fix `doubleTap`
- widgets
- **new** `gyroscope` widget
- **new** `frame` widget
- **breaking change** in `panel`: dropped Visual Format Language support (`layout` and `spacing` properties)
- maths: added `timestamp()` function
- editor
- widget property names can be clicked to show documentation
- misc
- the client app can be translated (https://github.com/jean-emmanuel/open-stage-control/issues/302)
## 0.36.0
- bug fixes
- `linkId` synchronizations now correctly trigger property updates
- widgets with multiple `linkId` are now properly handled
- synchronization issue between `visualizer` widgets
- widgets
- `keys` (**breaking changes**): formulas in `keydown` and `keyup` must be explicitely written using the `#{}` syntax; variable `value` got removed from these formulas context (use `@{this}` instead); removed `widgetId` property, the value emitted by the widget on keypress events can be linked with other widgets via the `linkId` property or the property inheritance syntax;
- `visualizer`: update rate set to default canvas framerate
- editor
- **new** keyboard shortcuts (undo, redo, copy, paste, etc)
## 0.35.0
- main
- added `--state` option for loading a state file with a session file
- state
- loading a state file doesn't replace the quick save slot anymore
- widgets
- **new** `script` widget
- misc
- reduced session file size (indentation set to 2 instead of 4)
## 0.34.4
- bug fixes
- widgets: dynamic `address` when `split` is `true`
- strip: missing osc properties (`address` and `preArgs`) for remote control
- switcher: update linked widgets' osc properties before sending if they depend on the switcher's value
## 0.34.3
- bug fixes
- launcher: regression breaking the `port` option
## 0.34.2
- bug fixes
- matrices: spacing issue when wrapped in strips
- launcher: regression preventing options to be applied
## 0.34.1
- bug fixes
- switch: display object-values properly when `showValues` is set to `true`
- prevent non-dynamic properties updates from breaking an osc sending event chain
- deprecations
- `formula` has been removed from the editor's context menu
- custom module
- expose `app` to the custom module's scope: an event emitter for monitoring the events sent by the different clients
- misc
- fixed rpi build
## 0.33.3
- bug fixes
- matrix: recreation loop issue with matrices of clones
- multixy: glitch when some letters are used in the points' labels
## 0.33.2
- bug fixes
- matrix: set initial value at widget's creation; missing border under widget's label
- widgets
- property math syntax: add `values()` and `keys()` functions
## 0.33.1
- bug fixes
- 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)
## 0.33.0
- bug fixes
- osc receivers: unregister properly when widgets are recreated (memory leak); allow non-string values (eg. objects)
- circular property update issues
- widgets
- **new** generic `matrix` widget
- fader: restore right-click focusing the input in compact mode (mouse only)
## 0.32.6
- bug fixes
- css border-radius not applying correctly for some widgets
- themes
- multiple adjustments
## 0.32.5
- bug fixes
- missing feedback support for widgets with typed preArgs
- themes
- improved `dark` theme
- added `flat`
## 0.32.4
- bug fixes
- regression breaking typed osc args
## 0.32.3
- bug fixes
- regression in editor/resize function
## 0.32.2
- bug fixes
- sliders colors not displayed correctly on iOS
- widgets
- xy: tiny knob style change
- editor
- reallow editing disabled properties
## 0.32.1
- bug fixes
- error in osc receivers
## 0.32.0
- main
- add tcp support
## 0.31.0
- bug fixes
- regression breaking multitouch widgets
- widgets
- fader/knob/pad: right-click / long tap doesn't give focus to the input anymore
## 0.30.4
- bug fixes
- regression breaking touch traversing gestures
- clone widgets becomming unselectable for edition
- `preArgs` property still being coerced to an array
## 0.30.3
- bug fixes
- big regression breaking many touch gestures
## 0.30.2
- bug fixes
- broken remote-control /TABS command
- disabled `spacing` property in strips
- disabled properties in modals
- broken arm build
## 0.30.1
- midi
- prevent the main process from exiting when MIDI setup fails
## 0.30.0
- widgets
- `target` and `preArgs` properties are no longer coerced to arrays and can be written as single string values
- `linkId` supports master and slave modes with `>>` and `<<` prefixes
- the special `target` token `null` can now be used in conjunction with regular targets, it disables the default global targets set via the `--send` option
- editor
- disabled widget properties are now greyed out
## 0.29.2
- bug fixes
- launcher: parsing errors are not fatal anymore
- css parsing error on iOS
## 0.29.1
- bug fixes
- editor: "wrap" deleting the widget just before the one being wrapped
- regression breaking traversing gestures and high precision gestures (0.29.0)
- server
- allow sending osc to broadcast ip addresses
- widgets
- limited support for property inheritance nesting (`@{id_@{id_2}}`)
- support using property inheritance syntax in osc listeners' addresses
## 0.29.0
- beaking changes
- dropped supported for `.js` sessions (deprecated in 0.20.0)
- bug fixes
- zeroconf: unpublish when shutting down
- ios 9.3 compatibility issue
- function mispelling in rgb widget
- widgets
- modal: added `popupLeft` and `popupTop` properties
- faders/meter: add css variable `--gauge-opacity` to allow setting a fixed gauge opacity for meters and compact faders
- custom module
- messages converted from midi inputs can be filtered
## 0.28.3
- bug fixes
- widgets not correctly drawn when hidden/shown with dynamic css
- iOS: file upload failing sometimes
- widgets
- knob: small design improvements (pips don't take extra space anymore)
## 0.28.2
- bug fixes
- session list: fix "remove from history" always removing the first item in the list
- custom module
- expose `setInterval`
- expose `clearTimeout` and `clearInterval`
- prevent errors when failing to run the module
## 0.28.1
- bug fixes
- regression in nested clones structures handling
## 0.28.0
- widgets
- matrices: support setting `split` property as a string to allow using children's indexes in their address (`$` is replaced with the index number)
- text: `wrap` property doesn't break words by default anymore
- rgb: added `range` property
- launcher
- right-click context menu (copy, paste, clear console, toggle console autoscoll, relaunch app)
- better font for the console
## 0.27.2
- bug fixes
- session/state file upload sometimes failing silently
- regression breaking the app for iOS
## 0.27.1
- bug fixes
- error when resizing a widget and its clone(s) at the same time
- error with non string css property
- session list not reappearing when failing to load
- broken state file loading
- misc
- added a loading indicator when uploading a session file or a state file
## 0.27.0
- bug fixes
- strip: nested strips were inheriting their parent's `spacing`
- modal: prevent error when retrieving a child's property
- modal: prevent touch event from affecting elements behind the popup when closing it
- clone: some properies in target widget were not applied to the clone
- clone: prevent clone from resetting its target value when created
- text: vertical centering issues in narrow widgets
- dynamic properties: when using a widget's own value to determine its osc settings, these are checked and updated if needed before sending the message
- prevent error when loading a session containing invalid property inheritance calls
- broken build for iOS 9.3
- editor
- wrap in: insert wrapper at selected widget's index
- wrap in: set label to false by default when wrapping in a strip or a panel
- css property `pointer-events:none;` is now ignored when the editor is enabled
- preverve pecentages when dragging/resizing a widget that has its position/size written in percents
- widgets
- **new** `OSC{/address, default_value}` syntax
- ui
- sidepanel is now resizable
- themes
- `responsive-fonts`: increase size for big screens
- build
- dropped support for node < 4.8
## 0.26.3
- bug fixes
- ios: broken default accent color in clone Widgets
- ios/android: closing the sidepanel opened the tab next to the menu button
- editor
- mac: use `shift` instead of `command` for multi widget selection to match native behaviour and prevent unwanted zoom with trackpads
- widgets
- strip: `spacing` now accepts percents
## 0.26.2
- bug fixes
- regression preventing glass effect from using the widget's color
- missing last key in keyboard widget
- editor: select parent widget after deleting a widget
- regression letting user to scroll the main document
- editor: wrap/cut/delete multiple widget not working properly
- widgets
- text: set line-height relative to font size
- meter: added `gradient` feature
## 0.26.1
- bug fixes
- ios: text input fields not editable
- editor
- mac: use `command` instead of `ctrl` for multi widget selection
## 0.26.0
- bug fixes
- editor: when selecting another widget while editing a property, changes where applied to the newly selected widget
- widgets: css: @media queries parsing
- prevent some errors when synchronizing clients
- use command key instead of ctrl for zooming on mac
- clone: memory leak / freeze
- default client
- mac: disabled unsupported pinch zoom
- themes
- alt-buttons: modal font-weight & color fix; push button active state colored border
- added "responsive-fonts" theme
- editor
- allow multi widget resizing/dragging
- tweaked ctrl+click/right-click selection behaviors
- **new** "Wrap in" context menu
## 0.25.0
- bug fixes
- launcher: parse array options correctly when an item contains spaces,
- launcher: the terminal now grows and scrolls to bottom automatically
- editor: broken children reordering; children
list display bug with long `id`s
- main
- add `--fullscreen` switch (default gui only, bypasses the sidepanel fullscreen button)
- added/updated some themes: `orange`, `light`, `dark`, `alt-buttons` (the latter can be combined with other themes)
- widgets
- knob: big knobs design tweaks
- **new** `default` property that sets a widgets initial/doubleTap/spring value. The `value` property does no longer serve this purpose.
- **new** `bypass` property that disable osc messages (except when requested via `/GET` and `/EDIT/GET`)
- panel: **removed** `noSync` property (backward compatible fallback to `bypass`)
- property inheritance: `@{widget_id.value}`, `@{widget_id}` and `@{widget_id._value}` now all refer to the widget's current value (the latter being kept for backward compatibility); If a property update triggers an osc message, it will now be sent after the other dynamic properties changes are resolved (such as osc `address`, `target`, etc)
- text: added `align` and `wrap` properties
- input: added `align` property
- sliders/xy: `doubleTap` can be an osc address to send a special message instead of resetting the widget's value
- editor
- allow selecting multiple widgets (`ctrl + click`) if they share the same parent. Context-menu and sidepanel editing actions apply to all selected widgets
## 0.24.3
- bug fixes
- property maths: variables names declared in a formula were replaced by their associated value if found in the formula's result
- missing console logs on windows
- ui
- add iOS fullscreen support via add-to-home feature
- editor
- ask for confirmation when closing or refreshing the page if the editor has been enabled at least once
- prevent default widget interaction when selecting a widget for edition
- widgets
- knob: small design tweaks
- misc
- remove proprietary ffmepg codec from package
## 0.24.2
- bug fixes
- macOs app menu & shortcuts
## 0.24.1
- bug fixes
- server/client communication errors
- prevent error windows from spawning
- main
- added some menu items on macOs (including "Quit" !)
## 0.24.0
:warning: **BREAKING CHANGES** :warning:
Read the changelog carefully, old sessions files are likely to need some adjustements to work as they used to. Plots and input widgets had their `widgetId` option removed because it was redundant with the generic `linkId` property.
- bug fixes
- regression preventing dropdown to display no option selected
- crossfaders display issue on iOS
- restored compatibility options for server-client communications
- xy: `doubleTap` option
- range: `spring` option
- plot: crash when drawing only one point
- widget css: fixed @media queries @keyframes parsings
- main
- theme files changes are automatically applied
- server-client communication system rewritten -> HUGE latency reduction and stability improvement especially under stress conditions
- engine update (electron@1.8.2)
- widgets
- **new** svg plot widget
- switch: wrap non-array `values` property in an array
- dropdown: wrap non-array `values` property in an array; always add a default empty value
- property inheritance: added shorthand default to `_value` when no property is specified (`@{widgetId}`); some properties can now be dynamically changed without recreating the widget entirely
- property maths: added support for math expressions everywhere via `#{}`
- input: add glass effect when `editable` is `false`
- `linkId` can now be set as an array of linkIds
- plot: added `dots` options; **removed** `points` options (use `value` and property inheritance instead)
- eq: **removed** `filters` options (use `value` and property inheritance instead)
- plot/meter/led/rgbled/text: **removed** `widgetId` option
- input: **removed** `widgetId` option
- math: **deprecated** `formula` widget
## 0.23.1
- bug fixes
- regression breaking modal's position in scrolled tab containers
- widget with a `touchAddress` set now send their touch-off message when removed or recreated while being interacted with
- broken windows builds (long path issue)
## 0.23.0
- bug fixes
- plots now send their value to other widget for synchronization as expected
- text widgets now apply their target widget's precision
- property inheritance accepts targetting a parent widget by its id
- multiple icons not displayed correctly
- broken `--blank` option
- main
- added `--disable-gpu` option for disabling hardware acceleration (fixes rendering glitches and reduces input lag on some systems)
- widgets
- inputs: **new** `keys` widget, for keyboard bindings
- property inheritance: new special property name `_value` (retrieve the widget's value, and update when it changes)
- switch: added `showValues` to display both values and labels in the buttons; array values can now be selected via osc
- range: both handles can be moved by holding `shift` while dragging
- rgb: **removed** `touchAddress` option
- labels/texts: multiple white spaces are no longer merged
- plot: can receive stringified arrays of coordinates or stringified objects for merging coordinates sets; added `bars` option for drawing barcharts;
- widgets' `precision` option allows setting a specific data type for numbers (sliders can send doubles !)
- misc
- event system rewritten
- js build size reduced
## 0.22.0
- bug fixes
- sessions opened from command line with relative paths are now added to the history with their absolute path
- sending an empty message to a `text` widget resets it to its initial value and without ignoring its `value` property
- sending no value to a widget with `preArgs` is now possible : all the arguments found in incomming osc messages are now taken into account to match the widgets in the session
- regression breaking state quicksave from sidepanel
- engine
- downgraded to the latest *stable* electron release
- main
- added `zeroconf` / `bonjour` publishing for the app's http and osc input ports
- added `--instance-name` option to differenciate mulitple instances in zeroconf networks
- widgets
- sliders/pads: holding `Ctrl` now enables high precision dragging with the mouse and bypasses the `snap` option
- inputs: renamed `input`'s property `horizontal` to `vertical` to match how the widget actually displays
- sliders: **new** `range` widget
- plots: **new** `image` widget
- remote control
- **removed** deprecated `/EXEC`
- renamed `/EDIT_SOFT` to `/EDIT/MERGE`
- added `/EDIT/GET` (get a widget's data)
- added `/GET` (get a widget's value)
- added `/SET` (set a widget's value as if it was interacted with from the interface)
## 0.21.3
- bug fixes
- session/state: regression (0.21.2) breaking save-to-file function
- ui
- FontAwesome 5 (icon font) !
## 0.21.2
- bug fixes
- cli: broken long flag `--no-gui`
- headless: when running with `node`, errors don't stop the server; when running with `electron` (default), errors are logged in the console instead of being showed in a dialog window
- switcher widgets regression (broken)
- switcher widgets regression (broken)
- midi
- float values are now allowed and automatically rounded
- misc
@ -122,7 +759,7 @@
- widgets
- fader: added `dashed` option; added `input` option;
- meter: added `alignRight` option; added `dashed` option;
- knob: removed `compact` option; added `dashed` option; added `input` option;
- knob: removed `compact` option; added `dashed` option; added `input` option;
- xy/rgb: added `input` option; added `pips` option:
- panel/strip: removed inner widgets dark borders; added `border` option;
- buttons: new `dropdown` widget;
@ -388,17 +1025,17 @@ Dependencies updates.
- misc
- one example session added
## 0.11.5
## 0.11.5
- bug fixes
- [regression] broken horizontal fader and pads
## 0.11.4
## 0.11.4
- bug fixes
- fader: default `height/width` not set when `top/left` is `auto`
## 0.11.3
## 0.11.3
- widgets
- knob: gesture's precision is proportionnal to the widget's size
@ -639,7 +1276,7 @@ Dependencies updates.
- electron 1.0.2
## 0.4.8
## 0.4.8
- bug fixes
- regression preventing newly created widgets from using the pointer's coordinates as position
@ -689,7 +1326,7 @@ Dependencies updates.
- refining the fader's pip scale that looked choppy on mobile devices. All pips are now evenly spaced, not relatively to the fader's height.
- [desktop mode] saved sessions are added to history
## 0.4.3
## 0.4.3
- features
- text widget can be `vertical`

View file

@ -4,7 +4,7 @@
<p>
Open Stage Control is a libre desktop OSC bi-directionnal control surface application. It's built with HTML, JavaScript & CSS and run as a Node / <a href="http://electron.atom.io/">Electron</a> web server that accepts any number of Chrome / Chromium / Electron clients.
Open Stage Control is a libre desktop OSC bi-directional control surface application. It's built with HTML, JavaScript & CSS and run as a Node / <a href="http://electron.atom.io/">Electron</a> web server that accepts any number of Chrome / Chromium / Electron clients.
</p>
<p><a href="https://github.com/jean-emmanuel/open-stage-control/releases">Download the latest release (prebuilt binaries for Linux, OS X and Windows)</a></p>
@ -21,31 +21,30 @@
The documentation is located at [osc.ammd.net](http://osc.ammd.net)
## Features
- multiplatform desktop server application with built-in client interface
- mouse & multitouch interfaces compatible with **Chrome 50** or later
- all the widgets you need !
- built-in live editor
- clients synchronization
- deep customization possibilities such as theming and messages filtering
- *true* control over what the widgets send
- midi inputs/outputs
## Supported platforms
The server can run on all [platforms supported by Electron](https://electron.atom.io/docs/tutorial/supported-platforms/).
The only supported client browsers are the one provided with the server and Chrome/Chromium version `50` or later. For iOS devices, the minimal version required is `9.3`.
The server can run on all [platforms supported by Electron](https://electron.atom.io/docs/tutorial/supported-platforms/). Clients just need to connect to the server with a compatible browser :
- any system running Chrome/Chromium version `50` or later (Linux, MacOS, Windows, Android, etc)
- iOS version `9.3` or later
Firefox is *not* supported.
## License & credits
Copyleft © Jean-Emmanuel @ [AMMD](http://ammd.net) 2017
Copyleft © Jean-Emmanuel Doucet @ [AMMD](http://ammd.net) 2018.
This program is a free software released under the [GNU/GPL3](ttps://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE) license.
### Dependencies
This program is a free software released under the GNU/GPL3 license, it relies on the use of several other free softwares, including [Node.js](https://nodejs.org/), [Electron](http://electron.atom.io/), [osc.js](https://github.com/colinbdclark/osc.js), [socket.io](http://socket.io), [browserify](http://browserify.org), [exorcist](https://github.com/thlorenz/exorcist), [express](http://expressjs.com), [node-sass](https://github.com/sass/node-sass), [jQuery](http://jquery.com/), [jQuery-UI](http://jqueryui.com/), [Font Awesome](http://fontawesome.io/), [source-map](https://github.com/mozilla/source-map), [mathjs](http://mathjs.org/)
Open Stage Control relies on several other free softwares, including [Node.js](https://nodejs.org/), [Electron](http://electron.atom.io/), [osc.js](https://github.com/colinbdclark/osc.js), [babel](http://babeljs.io/), [browserify](http://browserify.org), [exorcist](https://github.com/thlorenz/exorcist), [express](http://expressjs.com), [node-sass](https://github.com/sass/node-sass), [jQuery](http://jquery.com/), [jQuery-UI](http://jqueryui.com/), [Font Awesome](http://fontawesome.io/), [stacktracejs](stacktracejs.com), [mathjs](http://mathjs.org/). A comprehensive and up-to-date list can be found [here](https://github.com/jean-emmanuel/open-stage-control/network/dependencies).
### Contributors
https://github.com/jean-emmanuel/open-stage-control/graphs/contributors
----
<a href="http://browserstack.com/"><img alt="BrowserStack" src="http://osc.ammd.net/img/logo-browserstack.svg" width="300" /></a>
<a href="http://browserstack.com/"><img alt="BrowserStack" src="http://osc.ammd.net/img/logo-browserstack.png" width="240" /></a>
BrowserStack helps debugging Open Stage Control by providing a complete suite of browser emulators for Android, iOS and Windows, how awesome is that ? *Quite very much indeed !*
BrowserStack supports Open Stage Control by providing a complete suite of browser emulators for Android, iOS and Windows.

View file

@ -1,674 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

Binary file not shown.

View file

@ -0,0 +1,14 @@
/*!
* 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)
*/
@font-face {
font-family: FontAwesome;
font-style: normal;
font-weight: 900;
src: url("./fa-solid-900.woff") format("woff")}
.fa,
.fas {
font-family: FontAwesome;
font-weight: 900; }

5
app/assets/fonts/fontawesome.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,13 @@
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: url('roboto-medium.woff') format('woff');
}
@font-face {
font-family: 'RobotoMono';
font-style: normal;
font-weight: 500;
src: url('roboto-mono.woff') format('woff');
}

Binary file not shown.

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

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

File diff suppressed because one or more lines are too long

View file

@ -1,6 +0,0 @@
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: url('roboto-medium.woff') format('woff');
}

View file

@ -1,22 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, user-scalable=no"/>
<link rel="preload" href="fonts/fontawesome-webfont.woff" as="font"/>
<link rel="preload" href="fonts/roboto-medium.woff" as="font"/>
<link rel="preload" href="scripts.js.map" as="fetch"/>
<link rel="stylesheet" type="text/css" href="styles.css" hot-reload/>
<link rel="stylesheet" type="text/css" href="theme.css" hot-reload/>
<link rel="stylesheet" type="text/css" href="fonts/font-awesome.min.css"/>
<link rel="stylesheet" type="text/css" href="fonts/roboto-medium.css"/>
<script src="scripts.js"></script>
</head>
<body>
<div id="lobby"></div>
<div id="container"></div>
<div id="sidepanel"></div>
</body>
</html>

26
app/client/index.html Normal file
View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, user-scalable=no"/>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon" href="assets/logo.png" />
<link rel="preload" href="assets/fonts/fa-solid-900.woff" as="font"/>
<link rel="preload" href="assets/fonts/roboto-medium.woff" as="font"/>
<link rel="stylesheet" type="text/css" href="assets/open-stage-control.css" hot-reload/>
<link rel="stylesheet" type="text/css" href="assets/theme.css" hot-reload/>
<link rel="stylesheet" type="text/css" href="assets/fonts/fontawesome.min.css"/>
<link rel="stylesheet" type="text/css" href="assets/fonts/fa-solid.css"/>
<link rel="stylesheet" type="text/css" href="assets/fonts/roboto-medium.css"/>
<link rel="shortcut icon" href="assets/favicon.png"/>
<script src="client/open-stage-control-client.js"></script>
</head>
<body>
<div id="container"></div>
<div id="sidepanel"></div>
</body>
</html>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

156
app/examples/keys.json Normal file
View file

@ -0,0 +1,156 @@
[
{
"type": "root",
"tabs": [
{
"type": "tab",
"id": "tab_1",
"label": "auto",
"color": "auto",
"css": "",
"layout": "",
"spacing": 0,
"value": "",
"precision": 0,
"address": "/tab_1",
"preArgs": [],
"target": [],
"variables": "@{parent.variables}",
"widgets": [
{
"type": "keys",
"top": 300,
"left": 0,
"id": "keys_1",
"width": "auto",
"height": "auto",
"label": "auto",
"color": "auto",
"css": "",
"binding": [
"r",
"f"
],
"keydown": "#{\nx = key == \"r\" ? 0.1 : -0.1;\n@{fader_1} + x\n}",
"repeat": true,
"keyup": "",
"linkId": ">> A"
},
{
"type": "fader",
"top": 0,
"left": 0,
"id": "fader_1",
"linkId": "<< A",
"width": "auto",
"height": "auto",
"label": "auto",
"color": "auto",
"css": "",
"horizontal": false,
"alignRight": false,
"pips": true,
"input": true,
"meter": false,
"compact": false,
"dashed": false,
"snap": false,
"spring": false,
"doubleTap": false,
"range": {
"min": 0,
"max": 1
},
"logScale": false,
"unit": "",
"origin": "auto",
"value": "",
"precision": 2,
"address": "/fader_1",
"touchAddress": "",
"meterAddress": "",
"preArgs": [],
"target": [],
"default": "",
"bypass": false
},
{
"type": "xy",
"top": 50,
"left": 170,
"id": "xy_1",
"linkId": "<< B",
"width": 210,
"height": 220,
"label": "auto",
"color": "auto",
"css": "",
"input": true,
"pips": true,
"pointSize": 20,
"snap": false,
"spring": false,
"doubleTap": false,
"rangeX": {
"min": 0,
"max": 1
},
"rangeY": {
"min": 0,
"max": 1
},
"logScaleX": false,
"logScaleY": false,
"value": "",
"precision": 2,
"address": "/xy_1",
"touchAddress": "",
"preArgs": [],
"split": false,
"target": [],
"default": "",
"bypass": false
},
{
"type": "keys",
"top": 270,
"left": 170,
"id": "keys_2",
"width": 210,
"height": "auto",
"label": "auto",
"color": "auto",
"css": "",
"binding": [
"g",
"t"
],
"keydown": "#{\nx = key == \"t\" ? 0.1 : -0.1;\n@{xy_1}[0] + x\n@{xy_1}[1] + x\n}",
"keyup": "",
"repeat": false,
"linkId": ">> B"
}
],
"tabs": [],
"linkId": "",
"default": "",
"bypass": false,
"scroll": true
}
],
"color": "auto",
"css": "",
"value": "",
"precision": 0,
"address": "/root",
"preArgs": [],
"target": [],
"variables": {},
"id": "root",
"linkId": "",
"default": "",
"bypass": false,
"scroll": true,
"label": false
}
]

89
app/examples/svg.json Normal file
View file

@ -0,0 +1,89 @@
[
{
"type": "root",
"tabs": [
{
"type": "tab",
"id": "tab_1",
"linkId": "",
"label": "Rgb Levels",
"color": "auto",
"css": "",
"layout": "",
"spacing": 0,
"default": "",
"value": "",
"precision": 0,
"address": "/tab_1",
"preArgs": [],
"target": [],
"bypass": false,
"variables": "@{parent.variables}",
"widgets": [
{
"type": "svg",
"top": 150,
"left": 0,
"id": "rgb_svg",
"linkId": "",
"width": "100%",
"height": 190,
"label": "auto",
"color": "auto",
"css": "path {\n fill:none;\n stroke-width:3rem\n}",
"svg": "#{\n\n# build the data array\n# [ [r,g,b], [r,g,b], [r,g,b], etc ]\ndata = @{rgb_matrix};\n\n# extract channels and convert to relative y-axis coordinates\n# assuming the y-range is 0-255\n# 96 - val * 94 for padding and y-axis reversal\n# we add a small offset to make sure the 3 lines are always visible\n\nred = 96 - flatten(data[0:end,0]) / 255 * 94 + 2;\ngreen = 96 - flatten(data[0:end,1]) / 255 * 94;\nblue = 96 - flatten(data[0:end,2]) / 255 * 94 - 2;\n\n# build the x-axis relative coordinates array\n\nlength = size(red)[0]\nxaxis = (0:length) / (length-1) * 100;\n\n\n# convert coords to svg path string\nsvgCoords(color) = map(color, f(c,i)=print(\"L$0%x $1%y\", [xaxis[i], c]));\n\n# svg path first command must be \"M\", not \"L\" \nsvgString(color) = concat(\"M\", unpack(svgCoords(color))[1:end]);\n\n}\n\n\n<path stroke=\"red\" d=\"#{svgString(red)}\" />\n<path stroke=\"lime\" d=\"#{svgString(green)}\" />\n<path stroke=\"blue\" d=\"#{svgString(blue)}\" />",
"preArgs": [],
"address": "/rgb_svg"
},
{
"type": "matrix",
"top": 0,
"left": 0,
"id": "rgb_matrix",
"width": "100.60%",
"height": 150,
"label": "auto",
"color": "auto",
"css": "",
"widgetType": "rgb",
"matrix": [
8,
1
],
"start": 0,
"spacing": 0,
"traversing": false,
"borders": false,
"props": {
"input": false,
"label": false
},
"default": "",
"value": "",
"precision": 2,
"address": "/matrix_1",
"preArgs": [],
"target": [],
"bypass": false
}
],
"tabs": [],
"scroll": true
}
],
"id": "root",
"linkId": "",
"color": "auto",
"css": "",
"default": "",
"value": "",
"precision": 0,
"address": "/root",
"preArgs": [],
"target": [],
"bypass": false,
"variables": {},
"scroll": true,
"label": false
}
]

1970
app/examples/widgets.json Normal file

File diff suppressed because it is too large Load diff

View file

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

18
app/launcher/index.html Normal file
View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html id="launcher">
<head>
<meta name="viewport" content="width=device-width, user-scalable=no"/>
<link rel="preload" href="../assets/fonts/roboto-medium.woff" as="font"/>
<link rel="preload" href="../assets/fonts/fa-solid-900.woff" as="font"/>
<link rel="stylesheet" type="text/css" href="../assets/open-stage-control.css"/>
<link rel="stylesheet" type="text/css" href="../assets/fonts/fontawesome.min.css"/>
<link rel="stylesheet" type="text/css" href="../assets/fonts/fa-solid.css"/>
<link rel="stylesheet" type="text/css" href="../assets/fonts/roboto-medium.css"/>
<script src="open-stage-control-launcher.js"></script>
</head>
<body>
<div id="loading"><div class="spinner"></div></div>
</body>
</html>

View file

@ -1,19 +0,0 @@
var {app, Menu} = require('electron'),
settings = require('./settings'),
path = require('path')
app.commandLine.appendSwitch('--touch-events')
if (settings.read('noVsync') || (!settings.cli && settings.read('argv')['disable-vsync'])) {
app.commandLine.appendSwitch('--disable-gpu-vsync')
}
app.on('window-all-closed', function() {
if (process.platform != 'darwin') {
app.quit()
}
})
module.exports = app

View file

@ -1,52 +0,0 @@
var path = require('path'),
{BrowserWindow} = require('electron'),
shortcut = require('electron-localshortcut'),
settings = require('./settings')
var bgColor = settings.read('theme') && settings.read('theme').indexOf('--color-bg:') != -1 ?
settings.read('theme').match(/--color-bg:([^;]*);/)[1].trim()
: '#191f2a'
module.exports = function(options={}) {
var window
window = new BrowserWindow({
width: options.width || 800,
height: options.height || 600,
title: options.title || settings.read('appName'),
backgroundColor: options.color || bgColor,
type:options.type
})
window.loadURL(options.address)
window.on('closed', function() {
window = null
})
window.setMenuBarVisibility(false)
if (options.shortcuts) {
shortcut.register(window,'CmdOrCtrl+R',function(){
window.reload()
})
shortcut.register(window,'F11',function(){
window.setFullScreen(!window.isFullScreen())
})
shortcut.register(window,'F12',function(){
window.toggleDevTools()
})
} else {
shortcut.register(window,'CmdOrCtrl+R',function(e){
return false
})
}
return window
}

View file

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no"/>
<link rel="preload" href="../../browser/fonts/roboto-medium.woff" as="font"/>
<link rel="preload" href="../../browser/fonts/fontawesome-webfont.woff" as="font"/>
<link rel="stylesheet" href="../../browser/styles.css"/>
<link rel="stylesheet" href="../../browser/fonts/font-awesome.min.css"/>
<link rel="stylesheet" href="../../browser/fonts/roboto-medium.css"/>
<script src="launcher.js"></script>
</head>
<body id="launcher">
<div id="loading"><div class="spinner"></div></div>
</body>
</html>

View file

@ -1,236 +0,0 @@
var {remote, ipcRenderer, shell} = require('electron'),
{dialog, webContents} = remote.require('electron'),
settings = remote.require('./main/settings'),
packageInfos = remote.require('./package.json')
packageVersion = packageInfos.version,
packageUrl = packageInfos.repository.url,
argv_remote = settings.read('argv'),
argv = {},
$ = require('jquery/dist/jquery.slim.min.js')
for (i in argv_remote) {
argv[i] = argv_remote[i]
}
$(document).ready(()=>{
var form = $(`
<form class="form" id="form">
<div class="btn header"><span id="title">Open Stage Control</span> <span id="version">(v${packageVersion})</span><span id="new-version"</div>
</form>
`)
$.each(settings.options, (i, option)=>{
if (option.launcher === false) return
var wrapper = $(`<div class="item-wrapper"></div>`),
item = $(`
<div class="input-wrapper">
<label>${option.alias || i}</label>
</div>
`).appendTo(wrapper),
input,
cancel,
value = argv[i] == undefined ? '' : argv[i]
input = $(`<input class="input" name="${i}" data-type="${option.type}" value="${value}" placeholder="${option.describe}"/>`)
if (option.type == 'boolean') {
var toggle = $(`<span class="checkbox ${value?'on':''}"><i class="fa fa-fw fa-check"></i></span>`)
toggle.appendTo(item)
toggle.click(function(e){
e.preventDefault()
input.val(!eval(input.val())).trigger('change')
toggle.toggleClass('on')
})
}
if (option.file) {
var browse = $(`<span class="checkbox">...</span>`)
browse.appendTo(item)
browse.click(function(e){
e.preventDefault()
dialog.showOpenDialog({filters:[{name:option.file.name,extensions:option.file.extensions}]},function(file){
input.val(file).change()
})
})
}
input.appendTo(item)
input.on('change',function(e,stop){
var v = $(this).val()
if (option.type == 'boolean') {
v = v == 'true' ? true : ''
input.val(v)
} else if (v && option.type == 'array'){
v = v.trim().split(' ')
} else if (v && option.type == 'number'){
v = parseFloat(v)
}
if (v != '' && option.check && option.check(v, argv) !== true) {
wrapper.addClass('error')
wrapper.find('.error-msg').remove()
wrapper.append(`<div class="error-msg">${option.check(v, argv )}</div>`)
} else {
wrapper.removeClass('error')
wrapper.find('.error-msg').remove()
argv[i] = v
}
if (option.restart && v!=value && !wrapper.hasClass('restart')) {
wrapper.addClass('restart')
wrapper.append(`<div class="restart-msg">The app must be restarted for this change to take effect.</div>`)
} else if (option.restart && wrapper.hasClass('restart')) {
wrapper.removeClass('restart')
wrapper.find('.restart-msg').remove()
}
if (!stop) $('input').not(input).trigger('change',true)
})
cancel = $(`<div class="btn clear"><i class="fa fa-remove fa-fw"></i></div>`)
cancel.click((e)=>{
e.preventDefault()
if (option.type == 'boolean') {
input.val('false')
} else {
input.val('')
}
input.trigger('change')
})
cancel.appendTo(item)
form.append(wrapper)
})
var save = $(`<div class="btn start save">Save</div>`).appendTo(form),
saveWithCallback = function(callback) {
$('input').change()
if (form.find('.error').length) return
setTimeout(()=>{
for (i in argv) {
if (argv[i] === '') {
argv[i] = undefined
}
}
try {
settings.makeDefaultConfig(argv)
settings.write('argv',argv)
save.addClass('saved')
setTimeout(()=>{
save.removeClass('saved')
}, 250)
if (callback) callback()
} catch (err) {
}
},1)
}
save.click((e)=>{
e.preventDefault()
saveWithCallback()
})
// Starter (oneshot)
var start = $(`<div class="btn start">Start</div>`).appendTo(form)
start.click((e)=>{
e.preventDefault()
saveWithCallback(()=>{
start.off('click')
save.off('click')
$('input').attr('disabled','true')
$('.clear').addClass('disabled')
$('.checkbox').addClass('disabled')
ipcRenderer.send('start')
})
})
form.appendTo('#launcher')
// server started callback
ipcRenderer.on('started',function(){
start.remove()
save.remove()
terminal.show()
})
// Fake console
var terminal = $(`<div class="terminal"></div>`).appendTo('#launcher').hide()
ipcRenderer.on('stdout', function(e, msg){
terminal.append(`<div class="log">${msg}</div>`)
terminal.scrollTop(terminal.prop('scrollHeight'))
})
ipcRenderer.on('stderr', function(e, msg){
terminal.append(`<div class="error">${msg}</div>`)
terminal.scrollTop(terminal.prop('scrollHeight'))
})
// ready
$('input').trigger('change')
$('#loading').remove()
setTimeout(()=>{
form.addClass('loaded')
},0)
// open links in system's browser
$(document).click((e,url)=>{
var url = $(e.target).attr('href')
if (url) {
e.preventDefault()
shell.openExternal(url)
}
})
// New version info
if (navigator.onLine) {
var request = new XMLHttpRequest();
request.open('GET', 'https://api.github.com/repos/jean-emmanuel/open-stage-control/tags', true);
request.onload = function() {
if (request.status >= 200 && request.status < 400) {
var data = JSON.parse(request.responseText);
if (data[0].name != 'v' + packageVersion) {
$('#new-version').html(` [<a href="${packageUrl}/releases" target="_blank">${data[0].name} is available</a>]`)
}
}
};
request.send();
}
})

View file

@ -1,51 +0,0 @@
var PythonShell = require('python-shell'),
path = require('path'),
settings = require('./settings')
var py = new PythonShell('midi.py', {scriptPath:__dirname, mode:'text', args: [
settings.read('debug') ? 'debug' : '',
...settings.read('midi')
]
})
oscToMidi = (data)=>{
var args = []
for (i in data.args) {
args.push(data.args[i].value)
}
py.send(JSON.stringify([data.port, data.address, ...args]))
}
stop = ()=>{
py.childProcess.kill()
}
init = (receiveOsc)=>{
py.on('message', function (message) {
// console.log(message)
var name, data
try {
[name, data] = JSON.parse(message)
} catch (err) {
// console.log(err)
}
if (name == 'log') {
console.log(data)
} else if (name == 'osc') {
receiveOsc(data)
} else if (name == 'error') {
console.log('ERROR: Midi: ' + data)
stop()
process.exit()
}
})
}
module.exports = {
send: oscToMidi,
init: init,
stop: stop
}

View file

@ -1,199 +0,0 @@
// destroy serialport module
// (electron-rebuild breaks it for node-only mode)
require('vmodule')('serialport', {}, {global: true})
var osc = require('osc'),
ipc = require('./server').ipc,
settings = require('./settings'),
oscInPort = settings.read('oscInPort') || settings.read('httpPort'),
debug = settings.read('debug'),
vm = require('vm'),
fs = require('fs'),
midi = settings.read('midi') ? require('./midi') : false
var oscServer = new osc.UDPPort({
localAddress: "0.0.0.0",
localPort: oscInPort,
metadata: true
})
var parseType = function(type){
var t = type[0].match(/[bhtdscrmifTFNI]/)
if (t!==null) {
return t[0]
} else {
return 's'
}
}
var parseArg = function(arg,precision){
if (arg==null) return null
switch (typeof arg) {
case 'number':
return {type: precision == 0 ? 'i' : 'f', value: parseFloat(arg.toFixed(precision))}
case 'boolean':
return {type: arg ? 'T' : 'F', value: arg}
case 'object':
if (arg.type) {
return {type: parseType(arg.type), value: arg.value}
} else {
return {type: 's', value:JSON.stringify(arg)}
}
case 'string':
return {type: 's', value:arg}
default:
return {type: 's', value:JSON.stringify(arg)}
}
}
var sendOsc = function(data){
if (!data) return
if (data.host == 'midi') {
if (midi) midi.send(data)
} else {
oscServer.send({
address: data.address,
args: data.args
}, data.host, data.port)
if (debug) console.log('OSC sent: ',{address:data.address, args: data.args}, 'To : ' + data.host + ':' + data.port)
}
}
// var receiveOscQueue = []
var receiveOsc = function(data, info){
if (!data) return
for (i in data.args) {
data.args[i] = data.args[i].value
}
if (data.args.length==1) data.args = data.args[0]
// receiveOscQueue.push(data)
ipc.send('receiveOsc',data)
if (debug) console.log('OSC received: ', {address:data.address, args: data.args}, 'From : ' + data.host + ':' + data.port)
}
// setInterval(()=>{
//
// if (receiveOscQueue.length > 0) {
// ipc.send('bundle',receiveOscQueue)
// receiveOscQueue = []
// }
//
// }, 5)
var customModule = (function(){
if (!settings.read('customModule')) return false
var file = (function(){
try {
return fs.readFileSync(settings.read('customModule'),'utf8')
} catch(err) {
console.log('CustomModule Error: File not found: ' + settings.read('customModule'))
return false
}
})(),
mod,
context = {
console: console,
sendOsc: sendOsc,
receiveOsc: receiveOsc,
setTimeout: setTimeout,
settings: settings
}
try {
mod = vm.runInContext(file, vm.createContext(context))
} catch(err) {
console.log(err)
}
return mod
})()
var oscInFilter = function(data){
if (customModule.oscInFilter) {
return customModule.oscInFilter(data)
} else {
return data
}
}
var oscOutFilter = function(data){
if (customModule.oscOutFilter) {
return customModule.oscOutFilter(data)
} else {
return data
}
}
var oscInHandler = function(msg, timetag, info){
var data = oscInFilter({address: msg.address, args: msg.args, host: info.address, port: info.port})
if (!data) return
receiveOsc(data)
}
oscServer.on('message', function (msg, timetag, info) {
var delay = timetag? Math.max(0,timetag.native - Date.now()) : 0
if (delay) {
setTimeout(()=>{
oscInHandler(msg, timetag, info)
}, delay)
} else {
oscInHandler(msg, timetag, info)
}
})
oscServer.on('error', function (error) {
console.log(error)
})
oscServer.open()
if (customModule.init) {
customModule.init()
}
if (midi) midi.init(receiveOsc)
module.exports = {
send: function(host,port,address,args,precision) {
var message = []
if (!Array.isArray(args)) args = [args]
if (typeof args=='object' && args!==null) {
for (var i in args) {
var arg = parseArg(args[i],precision)
if (arg!=null) message.push(arg)
}
}
var data = oscOutFilter({address:address, args: message, host: host, port: port})
sendOsc(data)
},
midi:midi
}

View file

@ -1,66 +0,0 @@
var express = require('express')(),
path = require('path'),
http = require('http'),
server = http.createServer(express),
io = require('socket.io')(server),
ipc = {},
settings = require('./settings'),
appAddresses = settings.read('appAddresses'),
clients = {}
express.get('/', function(req, res){
res.sendFile(path.resolve(__dirname + '/../browser/index.html'))
})
express.get('*', function(req, res){
if (req.path.indexOf('theme.css') != -1) {
res.set('Content-Type', 'text/css');
if (settings.read('theme')) {
res.send(new Buffer(settings.read('theme')))
} else {
res.send('')
}
} else {
res.sendFile(path.resolve(__dirname + '/../browser' + req.path))
}
})
server.listen(settings.read('httpPort'))
ipc.send = function(name,data,clientId) {
if (clientId) {
io.to(clientId).emit(name,data)
} else {
io.emit(name,data)
}
}
var bindCallbacks = function(callbacks) {
io.on('connection', function(socket) {
clients[socket.id] = socket
for (let name in callbacks) {
socket.on(name, (data)=>{
callbacks[name](data,socket.id)
})
}
socket.on('disconnect', function() {
callbacks.removeClientWidgets(socket.id)
})
})
}
console.log('App available at ' + appAddresses.join(' & '))
module.exports = {
ipc:ipc,
bindCallbacks:bindCallbacks,
clients:clients
}

View file

@ -1,180 +0,0 @@
// This prevents argv parsing to be breaked when the app is packaged (executed without 'electron' prefix)
if (process.argv[1]&&process.argv[1].indexOf('-')==0) process.argv.unshift('')
var baseDir = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'],
configPath = require('path').join(baseDir, '.open-stage-control'),
fs = require('fs'),
ifaces = require('os').networkInterfaces()
var options = {
's':{alias:'send',type:'array',describe:'default targets for all widgets (ip:port pairs)',
check: (s)=>{
return (s.join(' ').match('^([^:\s]*:[0-9]{4,5}[\s]*)*$') != null) ?
true : 'Targets must be ip:port pairs & port must be >= 1024'
}
},
'sync':{type:'array',describe:false,launcher:false,
check: (s)=>{
if (s) console.error('Warning: --sync is deprecated, use --send instead.')
return (s.join(' ').match('^([^:\s]*:[0-9]{4,5}[\s]*)*$') != null) ?
true : 'Targets must be ip:port pairs & port must be >= 1024'
}
},
'l':{alias:'load',type:'string',file:{name:'OSC Session (.json)', extensions: ['json', 'js']},describe:'session file to load'},
'b':{alias:'blank',type:'boolean',describe:'load a blank session and start the editor'},
'c':{alias:'custom-module',type:'string',file:{name:'OSC Custom module (.js)', extensions: ['js']},describe:'custom module file to load'},
'p':{alias:'port',type:'number',describe:'http port of the server (default to 8080)',
check: (p)=>{
return (!isNaN(p) && p > 1023 && parseInt(p)===p) ?
true : 'Port must be an integer >= 1024'
}
},
'o':{alias:'osc-port',type:'number',describe:'osc input port (default to --port)',
check: (o)=>{
return (!isNaN(o) && o > 1023 && parseInt(o)===o) ?
true : 'Port must be an integer >= 1024'
}
},
'm':{alias:'midi',type:'array',describe:'midi router settings (requires python-pyo)'},
'd':{alias:'debug',type:'boolean',describe:'log received osc messages in the console'},
'n':{alias:'no-gui',type:'boolean',describe:'disable default gui',
check: (n,argv)=>{
return (!n || !argv.g) ?
true : 'no-gui and gui-only can\'s be enabled simultaneously'
}
},
'g':{alias:'gui-only',type:'string',describe:'app server\'s url. If true, local port (--port) is used',
check: (g,argv)=>{
return (!g || !argv.n) ?
true : 'no-gui and gui-only can\'s be enabled simultaneously'
}
},
't':{alias:'theme',type:'array',describe:'theme name or path (mutliple values allowed)'},
'e':{alias:'examples',type:'boolean',describe:'list examples instead of recent sessions',
check: (e,argv)=>{
return (!e || !argv.l) ?
true : 'examples can\'t be listed if --load is set'
}
},
'url-options':{type:'array',describe:'url options (opt=value pairs)',
check: (u, argv)=>{
return (!u || !argv.n) ?
true : 'url options can\'t be passed in no-gui mode'
}
},
'disable-vsync':{type:'boolean',describe:'disable gui\'s vertical synchronization', restart: true},
'read-only':{type:'boolean',describe:'disable session editing and session history changes',
check: (r, argv)=>{
return (!r || !argv.b) ?
true : 'blank session can\'t be started in read-only mode'
}
},
}
var argv = require('yargs')
.help('help').usage(`\nUsage:\n $0 [options]`).alias('h', 'help')
.options(options)
.check((argv)=>{
var err = []
for (key in options) {
if (options[key].check && argv[key] != undefined) {
var c = options[key].check(argv[key],argv)
if (c!==true) {
err.push(`-${key}: ${c}`)
}
}
}
return err.length ? err.join('\n') : true
})
.strict()
.version().alias('v','version')
argv = argv.argv
var cli = false
for (i in argv) {
if (i != '_' && i != '$0' && (argv[i]!=undefined && argv[i]!==false)) cli = true
}
var configFile = function(){try {return JSON.parse(fs.readFileSync(configPath,'utf-8'))} catch(err) {return {}}}(),
config = JSON.parse(JSON.stringify(configFile)),
defaultConfig
var loadTheme = function(t){
if (!t) return
var style = []
for (i in t) {
try {style.push(fs.readFileSync(__dirname + '/themes/' + t[i] + '.css','utf-8'))}
catch(err) {
try {style.push(fs.readFileSync(t[i],'utf-8'))}
catch(err) {
console.log('Theme "' + t[i] + '" not found.')
}
}
}
return style.join('\n')
}
var makeDefaultConfig = function(argv){
defaultConfig = {
argv:argv,
presetPath : process.cwd(),
sessionPath: process.cwd(),
recentSessions: [],
appName: 'Open Stage Control',
syncTargets: argv.s || argv.sync || false,
oscInPort: argv.o || 0,
httpPort: argv.p || 8080,
debug: argv.d || false,
sessionFile: argv.l || false,
newSession: argv.b || false,
customModule: argv.c || false,
noGui: argv.n || false,
guiOnly: typeof argv.g == 'string' ? argv.g.length ? argv.g : true : false,
urlOptions: argv['url-options'] ? '?' + argv['url-options'].join('&') : '',
noVsync: argv['disable-vsync'] || false,
readOnly: argv['read-only'] || false,
midi: argv.m,
appAddresses:function(){
var appAddresses = []
Object.keys(ifaces).forEach(function (ifname) {
for (i=0;i<ifaces[ifname].length;i++) {
if (ifaces[ifname][i].family == 'IPv4') {
appAddresses.push('http://' + ifaces[ifname][i].address + ':' + (argv.p || 8080))
}
}
})
return appAddresses
}(),
examples: argv.e,
theme: loadTheme(argv.t)
}
}
makeDefaultConfig(argv)
module.exports = {
argv:argv,
options:options,
makeDefaultConfig:makeDefaultConfig,
read:function(key){
var x = config[key] || defaultConfig[key]
return x
},
write:function(key,value,tmp) {
config[key] = value
if (tmp) return
configFile[key] = value
fs.writeFile(configPath,JSON.stringify(configFile,null,4), function (err, data) {
if (err) throw err
})
},
reloadTheme:function(){
module.exports.write('theme',loadTheme(argv.t),true)
},
cli: cli
}

View file

@ -1,16 +0,0 @@
:root {
--color-text: rgba(255,255,255,0.7);
--color-text-fade: rgba(255,255,255,0.5);
/*--color-accent:#f58506;*/
--color-bg: #000;
--color-fg: #111;
--color-raised: #1C1C1C;
--color-track: #111;
--color-light: rgba(255,255,255,0.03);
}
.keyboard-container {
--color-black: #555;
}

View file

@ -1,21 +0,0 @@
:root {
--color-text: rgba(0,0,0,0.7);
--color-text-fade: rgba(0,0,0,0.5);
--color-accent:rgba(28, 133, 239, 1);
--color-grid: rgba(28, 133, 239, .1);
--color-bg: #bbb;
--color-fg: #ddd;
--color-raised: #efefef;
--color-track: #dadada;
--color-light: rgba(255,255,255,0.5);
--color-white: black;
}
.keyboard-container {
--color-black-key: #ccc;
--color-white-key: #eee;
}

View file

@ -1,3 +0,0 @@
.widget .input {
display: none;
}

View file

@ -1,43 +0,0 @@
{
"name": "open-stage-control",
"productName": "Open Stage Control",
"description": "A libre desktop OSC bi-directionnal control surface application.",
"version": "0.21.1",
"author": {
"name": "Jean-Emmanuel Doucet / AMMD",
"email": "jeannot@ammd.net"
},
"keywords": [
"osc",
"midi",
"interface",
"multi-touch"
],
"repository": {
"type": "git",
"url": "https://github.com/jean-emmanuel/open-stage-control"
},
"homepage": "http://osc.ammd.net/",
"license": "GPL-3.0",
"main": "index.js",
"dependencies": {
"vmodule":"1.0.1",
"electron-localshortcut": "2.0.2",
"osc": "2.2.0",
"yargs": "9.0.1",
"socket.io": "2.0.3",
"express": "4.16.1",
"jquery": "3.2.1",
"chokidar": "1.7.0",
"python-shell":"0.4.0"
},
"scripts": {
"start": "electron ."
},
"yargs": {
"boolean-negation": false
},
"engines": {
"node": "6"
}
}

View file

@ -4,13 +4,16 @@ import traceback
import json as JSON
import re
def ipcSend(name, data):
print(JSON.dumps([name, data]))
stdout.flush()
try:
import rtmidi
API = rtmidi.RtMidiIn.UNIX_JACK if 'jack' in argv else rtmidi.RtMidiIn.UNSPECIFIED
JACK = API == rtmidi.RtMidiIn.UNIX_JACK
in_dev = rtmidi.RtMidiIn(API, 'Midi->OSC probe')
out_dev = rtmidi.RtMidiOut(API, 'OSC->Midi probe')
in_dev = rtmidi.RtMidiIn(API, 'MIDI->OSC probe')
out_dev = rtmidi.RtMidiOut(API, 'OSC->MIDI probe')
except:
ipcSend('error', 'pyrtmidi not found (or wrong version)')
@ -18,10 +21,6 @@ except:
if version_info.major == 3:
raw_input = input
def ipcSend(name, data):
print(JSON.dumps([name, data]))
stdout.flush()
debug = False
if 'debug' in argv:
debug = True

View file

@ -1,10 +1,11 @@
{
"name": "open-stage-control-builder",
"description": "[Builder package] A libre desktop OSC bi-directionnal control surface application",
"version": "0.21.1",
"name": "open-stage-control",
"productName": "Open Stage Control",
"description": "Libre and modular OSC / MIDI controller",
"version": "0.40.2",
"author": {
"name": "Jean-Emmanuel Doucet / AMMD",
"email": "jeannot@ammd.net"
"name": "Jean-Emmanuel Doucet",
"email": "jean-emmanuel@ammd.net"
},
"keywords": [
"osc",
@ -19,48 +20,82 @@
"homepage": "http://osc.ammd.net/",
"license": "GPL-3.0",
"dependencies": {
"autolayout": "0.7.0",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-preset-env": "*",
"babelify": "7.3.0",
"browserify": "14.4.0",
"cardinal-spline-js": "2.3.6",
"electron": "~1.8.1",
"electron-packager": "9.1.0",
"exorcist": "1.0.0",
"file-saver": "1.3.3",
"jquery": "3.2.1",
"json5": "0.5.1",
"kiwi.js": "1.0.1",
"@babel/core": "7.1.2",
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "7.1.0",
"ansi-html": "0.0.7",
"babelify": "10.0.0",
"bonjour": "3.5.0",
"browserify": "16.2.3",
"cardinal-spline-js": "2.3.10",
"chokidar": "2.0.4",
"cpr": "3.0.1",
"deep-extend": "0.6.0",
"electron-localshortcut": "3.1.0",
"electron-packager": "12.2.0",
"electron-packager-plugin-non-proprietary-codecs-ffmpeg": "1.0.2",
"eslint": "5.8.0",
"exorcist": "1.0.1",
"express": "4.16.4",
"file-saver": "2.0.0-rc.4",
"gyronorm": "2.0.6",
"jquery": "3.3.1",
"json5": "2.1.0",
"jsondiffpatch": "0.3.11",
"keyboardjs": "github:jean-emmanuel/KeyboardJS",
"licensify": "3.1.3",
"mathjs": "3.16.4",
"node-sass": "4.5.3",
"nodemon": "1.12.0",
"nosleep.js": "0.7.0",
"screenfull": "3.3.1",
"shortid": "2.2.8",
"socket.io-client": "2.0.3",
"uglifyify": "4.0.4"
"mathjs": "5.2.3",
"minimatch": "3.0.4",
"nanohtml": "1.2.6",
"nanoid": "1.3.3",
"nanomorph": "5.1.3",
"node-sass": "4.9.4",
"nodemon": "1.18.5",
"nosleep.js": "^0.7.0",
"osc": "2.2.4",
"python-shell": "1.0.6",
"scope-css": "1.2.1",
"screenfull": "3.3.3",
"source-map-support": "0.5.9",
"stacktrace-js": "2.0.0",
"through": "2.3.8",
"uglifyify": "5.0.1",
"ws": "6.1.0",
"yargs": "12.0.2"
},
"optionalDependencies": {
"electron-installer-debian": "0.6.0"
"electron": "1.8.8",
"electron-installer-debian": "1.0.0"
},
"scripts": {
"postinstall": "cp resources/images/logo.ico app/browser/favicon.ico && cd app && npm install && cd .. && npm run build-js && npm run build-css",
"start": "cd app && npm start --",
"build": "npm run build-js -- --prod && npm run build-css && electron-packager ./app open-stage-control --platform=$PLATFORM --arch=$ARCH --out dist/ --icon=resources/images/logo --overwrite --ignore \"(node_modules/serialport)\"",
"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 && 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 --rpi",
"package-node": "node scripts/package-node.js",
"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",
"watch-css": "nodemon --watch src/browser/scss -e scss -x \"npm run build-css && node scripts/reload-css.js\"",
"watch-js": "nodemon --watch src/browser/js -e js -x \"npm run build-js\"",
"watch-themes": "nodemon --watch app/main/themes -e css -x \"node scripts/reload-css.js\"",
"build-css": "node-sass --include-path src/browser/scss src/browser/scss/style.scss app/browser/styles.css --output-style compressed",
"build-js": "node scripts/build-js.js > app/browser/scripts.js",
"deploy-docs": "cd resources && mkdocs gh-deploy --clean && rm -rf site",
"test": "npm run build-js && npm run build-css"
"build-css": "node scripts/build-css.js",
"build-js": "npm run build-launcher-js && npm run build-client-js -- --prod && npm run build-server-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",
"watch-browser": "npm run build-client-js -- --watch",
"watch-css": "nodemon --watch src/scss -e scss -x \"npm run build-css -- --reload\"",
"deploy-docs": "node scripts/build-widgets-reference.js > resources/docs/widgets-reference.md && cd resources && mkdocs gh-deploy --clean && rm -rf site",
"test": "eslint src && npm run build && node tests/test.js"
},
"engines": {
"node": "6"
"node": ">=6"
},
"devDependencies": {
"watchify": "3.11.0"
},
"yargs": {
"boolean-negation": false
}
}

20
resources/docs/credits.md Normal file
View file

@ -0,0 +1,20 @@
# License
Copyleft © Jean-Emmanuel Doucet @ [AMMD](http://ammd.net) 2018.
This program is a free software released under the [GNU/GPL3](ttps://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE) license.
## Dependencies
Open Stage Control relies on several other free softwares, including [Node.js](https://nodejs.org/), [Electron](http://electron.atom.io/), [osc.js](https://github.com/colinbdclark/osc.js), [babel](http://babeljs.io/), [browserify](http://browserify.org), [exorcist](https://github.com/thlorenz/exorcist), [express](http://expressjs.com), [node-sass](https://github.com/sass/node-sass), [jQuery](http://jquery.com/), [jQuery-UI](http://jqueryui.com/), [Font Awesome](http://fontawesome.io/), [stacktracejs](stacktracejs.com), [mathjs](http://mathjs.org/). A comprehensive and up-to-date list can be found [here](https://github.com/jean-emmanuel/open-stage-control/network/dependencies).
## Contributors
https://github.com/jean-emmanuel/open-stage-control/graphs/contributors
----
<div style="width:240px">
[![BrowserStack](img/logo-browserstack.png)](http://browserstack.com/)
</div>
BrowserStack supports Open Stage Control by providing a complete suite of browser emulators for Android, iOS and Windows.

View file

@ -1,2 +1,85 @@
body {overflow-y: scroll}
.md-nav__title.md-nav__title--site {display: none;}
.md-header, .md-tabs {
background:rgb(49, 63, 85)!important;
}
@media only screen and (max-width: 76.1875em) {
.md-header, .md-nav__title--site {
background:rgb(49, 63, 85)!important;
}
}
.md-header-nav__button.md-logo {
margin-right:-1rem!important;
}
.md-nav__title--site, .md-header-nav__title {
padding-top: 1px;
text-transform: uppercase;
font-size: 1.4rem!important;
/* font-weight:500!important; */
letter-spacing:1px;
}
a.button {
background:rgb(82, 168, 255);
color:white!important;
display: inline-block;
padding: 5px 10px;
border-radius: 3px;
transition: opacity .2s;
}
a.button:hover {
opacity: 0.90;
}
.align-center {
text-align: center;
}
article img {
border-radius: 3px;
}
.dynamic-prop-icon {
vertical-align:super;
font-size: 75%;
/* margin-left: -5px; */
opacity: 0.65!important;
}
.dynamic-prop-icon:after {
content:"flash_on";
font-family: Material Icons;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 1;
text-transform: none;
white-space: nowrap;
speak: none;
word-wrap: normal;
direction: ltr;
}
table code {
white-space: nowrap;
}
table .thead2 {
background: rgba(0,0,0,0.05);
color: #555;
text-transform: capitalize;
white-space: nowrap;
}
table thead {
text-transform: capitalize;
}
table h4 {
margin:0!important;
font-size: 1.28rem!important;
font-weight: normal!important;
}

View file

@ -1,8 +1,8 @@
# Editing sessions
The session editor can be enabled from the sidepanel. Once enabled, clicking on a widget will make it the *selected widget*, adding a fancy dashed blue border to it.
The session editor can be enabled from the sidepanel. Once enabled, clicking on a widget will make it the *selected widget*.
## Root panel
## Root panel
The root panel can be selected by clicking on the "Root" button in the sidepanel.
@ -10,21 +10,23 @@ The root panel can be selected by clicking on the "Root" button in the sidepanel
Right clicking / long touch on a widget or on a tab will also display a context menu providing useful utilities :
- `Edit parent`: selects the widget's parent for edition
- `Edit parent`: select widget's parent for edition
- `Copy`: copy widget's data
- `Cut`: copy widget's data and delete selected widget
- `Wrap in`: wrap the widget in a new container
- `Paste`: paste copied widget in selected container
- `n+1` : increments the id of the copied widget (and all its children) before pasting
- `Clone` : paste the exact same widget
- `Paste`: paste the widget as is
- `ID + 1` : increments the id of the copied widget (and all its children) before pasting
- `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
- `Delete`: delete selected tab or widget
## Save
## Save
Current session can be exported as a `.js` file. When overwriting a session file that's currently is use by other clients, they will reload it automatically.
Current session can be exported as a `.json` file. When overwriting a session file that's currently is use by other clients, they will reload it automatically.
## Load
## Load
Loading a session file doesn't affect other clients.
@ -34,11 +36,53 @@ By default, widget resizing / dragging snaps to a 10 pixel wide grid. Its width
## Properties
Selected widget's properties are displayed and can be modified in the sidepanel. The [widgets reference](widgets/widgets) section lists the available properties for each widget type. Property fields are all multiline (press `shit + enter` for new line).
Selected widget's properties are displayed and can be modified in the sidepanel. The [widgets reference](widgets/widgets) section 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, doubles quotes around object keys are not mandatory. All input will be converted to standard JSON.
## 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.
Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle. Using this feature will convert position and size values to plain number values, thus breaking previously set percent or inherited values.
## Keyboard shortcuts
The following shortcuts are always available:
| Shortcut | Description |
|---|---|
| `mod + e` | enable/disable editor |
| `mod + s` | save session as... |
| `mod + o` | open a session file |
The following shortcuts are available only when the editor is enabled:
| Shortcut | Description |
|---|---|
| `mod + 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 (starts by selecting the widget under the cursor). If `mod` is pressed too, current selection is kept and will be merged with the new one if possible. |
| `f2` | Edit selected widget's label |
| `mod + z` | Undo |
| `mod + y / mod + shift + z` | Redo |
| `delete` (`backspace` on Mac) | Delete selected widgets |
| `mod + c` | Copy selected widgets |
| `mod + x` | Cut selected widgets |
| `mod + v` | Paste clipboard in selected widget |
| `mod + shift + v` | Paste and increment id |
| `up, down, left, right` | Move selected widgets (1 grid unit, hold `shift` for 5 grid units) |
| `alt + [up, down, left, right]` | Resize selected widgets (1 grid unit, hold `shift` for 5 grid units) |
| `mod + a` | Select current widget's siblings and itself |
| `mod + shift + a` | Cancel current widget selection |
| `mod + up` | Select current widget's parent |
| `mod + down` | Select current widget's first child |
| `mod + right` | Select current widget's next sibling |
| `mod + left` | Select current widget's previous sibling |
Where `mod` is `ctrl` except on MacOs (`command`)
!!! note "* Multi-widgets editing"
- selection can only contain sibling widgets (same direct parent)
- context-menu actions and properties changes apply to all selected widgets
- resizing / dragging will affect all selected widgets, relatively to the first selected widget

View file

@ -0,0 +1,34 @@
# Community examples
Feel free to submitt you own by [opening an issue](https://github.com/jean-emmanuel/open-stage-control/issues/new?title=[example]) on github.
## Ardour
- [Ardour Control](https://github.com/jean-emmanuel/ardour-control)
![](https://user-images.githubusercontent.com/5261671/30510969-39451104-9acf-11e7-8ee0-6e93fa34464d.png)
## Reaper
- [Reaper OSC Panels](https://github.com/ThrashJazzAssassin/REAPER-OSC-panels)
![](https://raw.githubusercontent.com/ThrashJazzAssassin/REAPER-OSC-panels/master/ReaperOSCtja0.1.7-1.PNG)
## QLab
- [QLab Cook Book / Open Stage Control](https://qlabcookbook.com/tag/open-stage-control/)
![](https://user-images.githubusercontent.com/36141834/37744217-be4b5f7e-2d65-11e8-9b83-64ca245417d4.jpg)
## Bitwig
- [Open Stage Control Bitwig](https://github.com/kdejaeger/open-stage-control-bitwig)
![](https://raw.githubusercontent.com/kdejaeger/open-stage-control-bitwig/master/img/mixer_nexus_9.png)
- [OpenStageControl4Bitwig](http://www.mossgrabers.de/Software/Bitwig/Bitwig.html)
- https://www.youtube.com/watch?v=u-fgArpsHQQ
- https://www.youtube.com/watch?v=RvEMlo72ynQ
## Others
- [Manaberry's UI](https://vi-control.net/community/threads/open-stage-control-tutorial-an-alternative-to-lemur-and-touchosc.72643/)
![](https://i.imgur.com/4CPbtAz.jpg)

View file

@ -0,0 +1,90 @@
# Advanced property syntax
## Inheritance: `@{}`
Widgets can use each other's property values by using the following syntaxes:
- `@{this.propertyName}`
- `@{parent.propertyName}`
- `@{widgetId.propertyName}` (where `widgetId` is the target widget's `id`)
!!! note
Don't use `widgetId` when targetting `this` or `parent`, it won't work.
`propertyName` can be any of the target widget's properties.
It can be used to:
- concatenate strings: `/@{parent.id}/some_suffix`
- define object value: `["@{parent.id}"]`
If the retreived property is an object (`[] / {}`), a subset can be defined by appending a dot and a key (array index or object key) : `@{parent.variables.key}`
!!! note ""
The root panel's `id` is `root`.
### Using the value
The special property name `value`<i class="dynamic-prop-icon" title="dynamic"></i> refers to a widget's current value (which can be affected by its `value` *property*).
When omitted, the property name defaults to `value` : `@{widgetId}` => `@{widgetId.value}`
### Dynamic properties
Some properties, when changed, trigger a complete widget recreation that ends any ongoing user interaction. Also, updating these properties continuously (e.g. when linked to a slider's dynamic value) can be very cpu expensive.
Some properties have much cheaper update routines and can be considered as `dynamic`, as in performance safe. These properties are marked in the documentation with a ` `<i class="dynamic-prop-icon" title="dynamic"></i>.
### Circular references cases
- container widgets can inherit their children's properties only to define `dynamic` properties
- widgets can inherit their own `value`<i class="dynamic-prop-icon" title="dynamic"></i> property only to define `dynamic` properties
----
### Nesting
The inheritance syntax supports 1-level nesting : `@{fader_@{toggle_1}}`
## OSC listeners: `OSC{}`
The following syntax allows listening on an osc address to define a property, with an optionnal default value :
```
OSC{/address, 1}
```
Will return `1` at first and listen for osc messages on address `/address`. Each time a value is received, the property will be updated.
----
## Formulas: `#{}`
The following syntax allow writing mathematical formulas in widgets' properties:
```
#{FORMULA}
```
Where FORMULA is a valid [MathJS](http://mathjs.org/docs/expressions/syntax.html) expression:
- [syntax documentation](http://mathjs.org/docs/expressions/syntax.html)
- [available functions](http://mathjs.org/docs/reference/functions.html)
- [available constants](http://mathjs.org/docs/reference/constants.html)
- formulas can be [multiline](http://mathjs.org/docs/expressions/syntax.html#multiline-expressions)
- property inheritance calls (`@{...}`) are always resolved before formulas
- arrays / matrices indexes are **zero-based** (ie `["a","b"][0]` returns `"a"`)
- strings can be multiline when enclosed in backticks instead of double quotes (``` ` ` ```)
Additionnal functions:
- `indexOf(a, x)`: returns index of item `x` in array `a`
- `unpack(x)`: remove an array's brackets (`unpack([1,2])` returns `"1, 2"`)
- `pad(x, padding)`: add leading zeros if the length the integer part of `x` is smaller than `padding` (`pad(1,2)` returns `"01"`)
- `length(x)`: returns the length of an array or string
- `keys(x)`: returns an array of a given object's property names (from [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys))
- `values(x)`: returns an array of a given object's own enumerable property values (from [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values))
- `extend(x, y)`: merges two objects into one
!!! tip ""
A single widget property can contain multiple formulas. Variables and functions declared in a formula are available to subsequent formulas in the same property definition.

View file

@ -0,0 +1,107 @@
# CSS Tips
## Inline syntax
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's transparent */
font-size: 120%; /* increase font-size */
```
## Selector syntax
CSS selectors can be used to apply styles to specific elements:
```css
:host {
/* style for the widget element
& { } also works (deprecated)
*/
}
.label {
/* style for the .label elements */
}
> .label {
/* style for the direct child .label element */
}
```
!!! tip ""
Mixing Inline and Selector syntaxes doesn't work, once you use selectors, you have to use the `:host` selector to target the widget element.
## Extra css classes: `class`
This non-standard css property can be used to add custom css classes to the widget element: `class: my-custom-class;`
Multiple classes can be added (one per `class` statement).
!!! warning ""
Using class names that are already used in the app can be hazardous. In order to avoid that, custom class names should be prefixed with something uncommon and preferably cool, such as `xxx-myclass` or `crispy-seitan-myclass`.
## Layering: `z-index`
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.
## Layering: `pointer-events`
To make a widget ignore interactions (ie to be able to click through it), add `pointer-events:none;`.
!!! note ""
This is always ignored when the editor is enabled.
## Responsive sizing
In most cases, using percentages in `height` and `width` will do. CSS `calc()` function can help in some cases:
```css
:host {
width: calc(100% - 100rem);
}
```
Media queries can also be used:
```css
@media screen and (min-width: 768px) {
:host {
/* style the widget if the screen is bigger than 768px */
}
}
```
## Size units
- use `rem` instead of `px` (`px` values will not scale when zooming)
- use `%` for font-size
## CSS Variables
CSS Variables declared in the [default theme](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/browser/scss/themes/default.scss) can be overriden. Some widgets also use specific CSS variables (mostly to define colors) documented on their respective pages.
## Other tips
## Use the inspector
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.
### Panel's background-color
This works for panel, strip and tabs:
```css
> .panel {
background-color: red;
}
```

View file

@ -51,6 +51,11 @@ The module is executed in a restricted context, only a few globals are available
- `sendOsc`: `function({address, args, host, port})`
- `receiveOsc`: `function({address, args, host, port})`
- `setTimeout`: `function(function, delay)`
- `clearTimeout`: `function(timeout)`
- `setInterval`: `function(function, delay)`
- `clearInterval`: `function(interval)`
- `settings.read`: `function(name)`, see [settings.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/app/main/settings.js#L125-L162) for available options
- `app`: an [event emitter](https://nodejs.org/api/events.html#events_class_eventemitter) 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/app/main/callbacks.js), callbacks are called with 2 arguments: `data` (object) and `clientId` (string)
`sendOsc` and `receiveOsc` expect arguments formatted as follow:

View file

@ -7,14 +7,14 @@ Open Stage Control can send and receive MIDI messages.
MIDI support requires additional software to be installed on the server's system:
- python (2 / 3)
- python package [rtmidi](https://pypi.python.org/pypi/rtmidi) (version 2.3.2, compiled with `--jack-midi` flag for JACK MIDI support)
- python package [rtmidi](https://pypi.python.org/pypi/rtmidi) (version 2.3.2)
!!! note "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.
## Setup
When running the app, the `-m / -midi` switch must be set; it accepts the following options (separated by spaces):
When running the app, the `-m / --midi` switch must be set; it accepts the following options (separated by spaces):
- `list`: prints the available MIDI ports to the console; numbers in the first column may be used for `input`/`output` definition below
- `device_name:input,output`: connect to midi ports `input` and `output`; osc messages sent to target `midi:device_name` will be processed as midi events; Multiple devices can be declared
@ -22,7 +22,7 @@ When running the app, the `-m / -midi` switch must be set; it accepts the follow
*Linux only:*
- `device_name:virtual`: creates a virtual midi device with one input port and one output port
- `jack`: use JACK MIDI instead of ALSA (add as extra parameter)
- `jack`: use JACK MIDI instead of ALSA (add as extra parameter). `rtmidi` must be compiled with `--jack-midi` flag for this to work.
## Widget settings

View file

@ -1,17 +0,0 @@
# Property inheritance
Widgets can use each other's property values by using the following syntaxes:
- `@{this.propertyName}`
- `@{parent.propertyName}`
- `@{widgetId.propertyName}` (where `widgetId` is the target widget's `id`)
It can be used to:
- concatenate strings: `/@{parent.id}/some_suffix`
- define object value: `["@{parent.id}"]`
If the retreived property is an object (`[] / {}`), it can be used as is or one can retreive a specfic item from it: `@{parent.variables.0}` will try to return the first item of the parent's `variables` property.
!!! note ""
The root panel's `id` is `root`.

View file

@ -0,0 +1,30 @@
# Property maths
The following syntax allow writing mathematical formulas in widgets' properties:
```
#{ FORMULA }
```
Where FORMULA is a valid [MathJS](http://mathjs.org/docs/expressions/syntax.html) expression:
- [syntax documentation](http://mathjs.org/docs/expressions/syntax.html)
- [available functions](http://mathjs.org/docs/reference/functions.html)
- [available constants](http://mathjs.org/docs/reference/constants.html)
- formulas can be [multiline](http://mathjs.org/docs/expressions/syntax.html#multiline-expressions)
- property inheritance calls (`@{...}`) are always resolved before formulas
- arrays / matrices indexes are **zero-based** (ie `["a","b"][0]` returns `"a"`)
- strings can be multiline when enclosed in backticks (``` ` ` ```)
- inner closing brackets (`}`) must be escaped with a backslash (`\}`)
Additionnal functions:
- `unpack(x)`: remove an array's brackets (`unpack([1,2])` returns `"1, 2"`)
- `pad(x, padding)`: add leading zeros if the length the integer part of `x` is smaller than `padding` (`pad(1,2)` returns `"01"`)
- `length(x)`: returns the length of an array or string
- `values(x)`: returns an array of a given object's own property values
- `keys(x)`: returns an array of a given object's own property names
- `timestamp()`: returns the number of milliseconds elapsed since January 1, 1970
!!! tip ""
A single widget property can contain multiple formulas. Variables and functions declared in a formula are available to subsequent formulas in the same property definition.

View file

@ -16,7 +16,7 @@ Apply a set of options to an existing widget by replacing the old ones with the
!!! warning ""
Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
## `/EDIT_SOFT id options`
## `/EDIT/MERGE id options`
Apply a set of options to an existing widget by merging them to the widget's options.
@ -28,6 +28,87 @@ Apply a set of options to an existing widget by merging them to the widget's opt
!!! warning ""
Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
## `/EDIT/UNDO`
Undo editing action
## `/EDIT/REDO`
Redo editing action
## `/EDIT/GET target id`
Sends back a widget's data (JSON stringified object), including its children, to specified target.
- `target`: `string`, `ip:port` pair
- `id`: `string`, widget's `id`
Returns `/EDIT/GET id data`
- `id`: `string`
- `data`: `string`
## `/EDIT/GET target address preArg1 preArg2 ...`
Sends back a widget's data (JSON stringified object), including its children, to specified target.
- `target`: `string`, `ip:port` pair
- `address`: `string`, widget's `address`
- `preArg[1...]`: `*`, widget's `preArgs`
Returns `/EDIT/GET address preArg1 preArg2 ... data`
- `address`: `string`, widget's `address`
- `preArg[1...]`: `*`, widget's `preArgs`
- `data`: `string`
## `/GET target id`
Sends back a widget's value to specified target.
- `target`: `string`, `ip:port` pair
- `id`: `string`, widget's `id`
Returns `/GET id value`
- `id`: `string`
- `value`: `*`
## `/GET target address preArg1 preArg2 ...`
Sends back a widget's value to specified target.
- `target`: `string`, `ip:port` pair
- `address`: `string`, widget's `address`
- `preArg[1...]`: `*`, widget's `preArgs`
Returns `/GET address preArg1 preArg2 ... value`
- `address`: `string`, widget's `address`
- `preArg[1...]`: `*`, widget's `preArgs`
- `value`: `*`
## `/GET/#`
Same as `/GET` but uses the widget's address instead of `/GET` to reply.
## `/SET target id value`
Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
- `id`: `string`, widget's `id`
- `value`: `*`, widget's new value
## `/SET address preArg1 preArg2 ... value`
Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
- `address`: `string`, widget's `address`
- `preArg[1...]`: `*`, widget's `preArgs`
- `value`: `*`, widget's new value
## `/TABS id id etc`
Open the tabs designated by the `id` parameters. The target tab link must be accesible (opening a tab located in a disabled tab won't work unless you specify the parent tab's `id` before; the safest way to go is to pass the whole tab tree to enable).

View file

@ -1,6 +1,24 @@
# Theming
Theming is as simple as writing a tiny css file that will override the default style variables defined in [_vars.scss](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/browser/scss/_vars.scss) :
## Built-in themes
Themes can be loaded with the `--theme` option. Multiple themes can be combined. Built-in themes can be loaded using their name, custom theme files can be loaded using their path.
Available themes (full color scheme):
- `orange`: grey and orange theme
- `light`: light and blue
- `dark`: blue night theme
Available extensions (alternative visual settings)
- `flat`: remove 3d effects
- `alt-buttons`: colorful active buttons
- `responsive-fonts`: bigger texts for bigger screens
## Creating a custom theme
Creating a custom theme is as simple as writing a tiny css file that will override the default css variables defined in [default.scss](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/browser/scss/themes/default.scss) :
```css
:root {
@ -18,12 +36,11 @@ This will change the default accent color to red. Variables can also be overridd
This will change the default text color to blue for all elements in panel widgets.
Of course, regular css is also allowed :
## Scss / autoreload
```css
.widget .input {
display: none;
}
```
When running the app [from sources](../getting-started), custom themes can be written in scss:
This will hide the widgets' value inputs.
- the scss file must be located in `src/browser/scss/themes/`
- run `npm run watch-css`
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

@ -9,6 +9,8 @@ Client specific options can be set by adding query parameters to the server's ur
| forceHdpi | number | 0 | force canvas scaling (ignore `hdpi`) |
| doubletab | number | 375 | sets the double tap/click time thershold in milliseconds |
| zoom | number | 1 | sets the initial zoom |
| framerate | number | 60 | limit canvas drawing framerate |
| lang | string | *system_default* | use a different language than the default if available (available languages: en, fr, ru) |
Example:

View file

@ -8,72 +8,90 @@
Below are the available command-line options. Note that when running without any command-line switch (ie from a file browser), a launcher window will spawn to help setting them.
| Option | Description |
|---|---|
| -s, --send | default targets for all widgets (ip:port pairs)|
| -l, --load | session file to load |
| -b, --blank | load a blank session and start the editor |
| -c, --custom-module | custom module file to load |
| -p, --port | http port of the server (default to 8080) |
| -o, --osc-port | osc input port (default to --port) |
| -m, --midi | midi router settings (requires python-pyo) |
| -d, --debug | log received osc messages in the console |
| -n, --no-gui | disable default gui |
| -g, --gui-only | app server's url. If true, local port (--port) is used |
| -t, --theme | theme name or path (mutliple values allowed) |
| -e, --examples | list examples instead of recent sessions |
| --url-options | [url options](extras/url-options) (opt=value pairs) |
| --disable-vsync | disable gui's vertical synchronization |
| --read-only | disable session editing and session history changes |
!!! tip ""
Preferences are stored in the user's home folder in a file named `.open-stage-control` (hidden under Linux / macOS)
|| Option | Description |
|---||---|
| `-s` | `--send` | default targets for all widgets (ip:port pairs)|
| `-l` | `--load` | session file to load |
| | `--state` | state file to load (osc messages will be sent, unless there are other clients connected) |
| `-b` | `--blank` | load a blank session and start the editor |
| `-c` | `--custom-module` | custom module file to load |
| `-p` | `--port` | http port of the server (default to 8080) |
| `-o` | `--osc-port` | osc input port (default to --port) |
| | `--tcp-port` | tcp server input port |
| | `--tcp-targets` | tcp servers to connect to (ip:port pairs), does not susbtitute for --send |
| `-m` | `--midi` | midi router settings |
| `-d` | `--debug` | log received osc messages in the console |
| `-n` | `--no-gui` | disable default gui |
| `-g` | `--gui-only` | app server's url. If true, local port (--port) is used |
| `-t` | `--theme` | theme name or path (mutliple values allowed) see [theming](extras/theming/) |
| `-e` | `--examples` | list examples instead of recent sessions |
| | `--url-options` | [url options](extras/url-options) (opt=value pairs) |
| |`--disable-vsync` | disable gui's vertical synchronization |
| |`--disable-gpu` | disable hardware acceleration |
| |`--read-only` | disable session editing and session history changes |
| |`--instance-name` | used to differenciate multiple instances in a zeroconf network |
| |`--fullscreen` | launch in fullscreen mode (only affects the default gui, F11 to exit) |
Command-line only :
| Option | Description |
|---|---|
| -h, --help | print available options |
| -v, --version | print version number |
|| Option | Description |
|---||---|
| `-h` | `--help` | print available options |
| `-v` | `--version` | print version number |
**Examples**
```
$ open-stage-control --send 127.0.0.1:5555 127.0.0.1:6666 --port 7777
```bash
open-stage-control --send 127.0.0.1:5555 127.0.0.1:6666 --port 7777
```
This will create an app listening on port 7777 for synchronization messages, and sending its widgets state changes to ports 5555 and 6666.
```
$ open-stage-control --no-gui --load path/to/session.js --port 9999
```bash
open-stage-control --no-gui --load path/to/session.js --port 9999
```
This will create a headless app available through http on port 9999 with session.js loaded automatically.
!!! tip "What about HTTPS ?"
Security is out of the app's scope. If you are concerned about safety, using a private - protected - network should be enough.
## Run from sources
Running the app from the sources slightly differs from using built binaries : instead of running a binary, we'll launch the app with npm.
Running the app from the sources slightly differs from using built binaries : we'll build and launch the app with npm (node package manager).
**1. Requirements**
- [Node.js >= 4](https://nodejs.org/)
- [npm](https://www.npmjs.com/)
```
$ sudo apt-get install nodejs npm # install nodejs & npm
$ sudo npm install -g npm # update npm
```
- [Node.js >= 4.8](https://nodejs.org/en/#download)
- [git](https://git-scm.com/downloads)
**2. Download sources**
```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`)
npm install
npm run build
```
$ git clone https://github.com/jean-emmanuel/open-stage-control
$ cd open-stage-control/
$ npm install
```
!!! note "Updating from sources"
```bash
git pull
npm install
npm run build
```
**3. Run !**
```
$ npm start [ -- options]
```bash
npm start [ -- options]
```
!!! note ""
@ -84,35 +102,35 @@ $ npm start [ -- options]
**1. Requirements**
- [Node.js >= 4](https://nodejs.org/)
- [npm](https://www.npmjs.com/)
- [Node.js >= 4.8](https://nodejs.org/en/#download)
- [git](https://git-scm.com/downloads)
```
$ sudo apt-get install nodejs npm # install nodejs & npm
$ sudo npm install -g npm # update npm
```
**2. Download sources & build package**
**2. Build**
```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`)
npm install
```
$ git clone https://github.com/jean-emmanuel/open-stage-control
$ cd open-stage-control
$ npm install
$ export PLATFORM=TARGET_PLATFORM # TARGET_PLATFORM can be linux, win32 (windows) or darwin (os x)
$ export ARCH=TARGET_ARCH # TARGET_ARCH can be ia32, x64 or armv7l
$ npm run build
# TARGET_PLATFORM can be linux, win32 (windows) or darwin (os x)
export PLATFORM=TARGET_PLATFORM
# TARGET_ARCH can be ia32, x64 or armv7l
export ARCH=TARGET_ARCH
# Do the following if you want a deb package for debian/ubuntu
npm run build
$ npm run deb32
npm run package
# or
# For raspberry-pi / armv7l, run this instead
npm run package-rpi
$ npm run deb64
# or
$ npm run debarm
# Do one of the following if you want a deb package for debian/ubuntu
npm run deb32
npm run deb64
npm run debarm
```
This will build the app in `dist/open-stage-control-PLATFORM-ARCH`.
@ -126,15 +144,35 @@ Electron, Open Stage Control's engine, is based on chromium and can't run out of
In short: install [xvfb](https://en.wikipedia.org/wiki/Xvfb) and prepend your command with `xvfb-run`:
```
$ xvfb-run open-stage-control -n
```bash
xvfb-run open-stage-control -n
```
## Running without Electron
It is possible to run the server in headless mode without Electron using [node](https://nodejs.org) (v6 or higher) :
It is possible to run the server in headless mode without Electron using [node](https://nodejs.org/en/download/package-manager/) (v6 or higher) :
```bash
node /path/to/packaged/open-stage-control/resources/app/ -n
node /path/to/sources/open-stage-control/app/ -n
```
Or using the precompilled binaries for node:
```bash
node /path/to/packaged/open-stage-control-node/ -n
```
To build the app for node only from sources:
```bash
# git clone, etc...
npm install
npm run build
npm run package-node
```
$ node /path/to/packaged/open-stage-control/resources/app/ -n
$ node /path/to/sources/open-stage-control/app/ -n
```

View file

@ -0,0 +1 @@
../../images/logo-browserstack.png

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 950 KiB

View file

@ -1 +0,0 @@
../../images/logo-material.svg

View file

@ -0,0 +1 @@
../../images/logo-nobadge.png

View file

@ -0,0 +1 @@
../../images/logo-nobadge.svg

View file

@ -1 +0,0 @@
../../images/logo.png

1
resources/docs/img/logo.svg Symbolic link
View file

@ -0,0 +1 @@
../../images/logo.svg

View file

@ -1,35 +1,53 @@
# Open Stage Control
Open Stage Control is a libre desktop OSC bi-directionnal control surface application. It's built on web technologies and run as an [Electron](http://electron.atom.io/) web server that accepts any number of clients.
[Try the online demo (Chrome 50+ required)](http://demo.osc.ammd.net)
[Download the latest release](https://github.com/jean-emmanuel/open-stage-control/releases)
<div style="width:70%; box-shadow: 0 0 5px 0 rgba(0,0,0,.45); border-radius:2px;overflow:hidden">
<a href="img/ardour-osc.png" title="Controlling Ardour"><img alt="Controlling Ardour" src="img/ardour-osc.png" style="display:block"/></a>
</div>
# <img style="margin:0 auto;display:inline-block;width:60px;float:left;margin-right:20px;margin-top:-7px;" src="img/logo.svg"/> Open Stage Control
*Libre and modular OSC / MIDI controller*
Open Stage Control is a desktop OSC bi-directional control surface application. It's built on web technologies and run as an [Electron](http://electron.atom.io/) web server that accepts any number of clients.
<a class="button" href="http://demo.osc.ammd.net">Try the online demo (Chrome 50+ required)</a>
<a class="button" href="https://github.com/jean-emmanuel/open-stage-control/releases">Download the latest release</a>
![](img/ardour-osc.png)
## Supported platforms
The server can run on all [platforms supported by Electron](https://electron.atom.io/docs/tutorial/supported-platforms/).
The only supported client browsers are the one provided with the server and Chrome/Chromium version `50` or later. For iOS devices, the minimal version required is `9.3`.
The server can run on all [platforms supported by Electron](https://electron.atom.io/docs/tutorial/supported-platforms/) or [Node](https://nodejs.org/en/) (in headless mode only, see [Running without Electron](getting-started/#running-without-electron)). Clients just need to connect to the server with a compatible browser :
- any system running Chrome/Chromium version `50` or later (Linux, MacOS, Windows, Android, etc)
- iOS version `9.3` or later
Firefox is *not* supported.
## Need help ? Found a bug ?
Head over the github [issue tracker](https://github.com/jean-emmanuel/open-stage-control/issues) :)
Head over the [issue tracker](https://github.com/jean-emmanuel/open-stage-control/issues) :)
## License & credits
## Free what ?
Copyleft © Jean-Emmanuel @ [AMMD](http://ammd.net) 2017
Open Stage Control is a [free software](https://www.fsf.org/), as in *gratis* and — most importantly — **libre**. It always will be. If you want to support the project financially, consider using liberapay or [flattr](https://flattr.com/@jean-emmanuel) :
This program is a free software released under the GNU/GPL3 license, it relies on the use of several other free softwares, including [Node.js](https://nodejs.org/), [Electron](http://electron.atom.io/), [osc.js](https://github.com/colinbdclark/osc.js), [socket.io](http://socket.io), [browserify](http://browserify.org), [exorcist](https://github.com/thlorenz/exorcist), [express](http://expressjs.com), [node-sass](https://github.com/sass/node-sass), [jQuery](http://jquery.com/), [jQuery-UI](http://jqueryui.com/), [Font Awesome](http://fontawesome.io/), [source-map](https://github.com/mozilla/source-map), [mathjs](http://mathjs.org/)
<script src="https://liberapay.com/jean-emmanuel/widgets/button.js"></script>
<noscript><a href="https://liberapay.com/jean-emmanuel/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></noscript>
----
<div style="width:300px">
[![BrowserStack](img/logo-browserstack.svg)](http://browserstack.com/)
</div>
## Table of contents
BrowserStack helps debugging Open Stage Control by providing a complete suite of browser emulators for Android, iOS and Windows, how awesome is that ? *Quite very much indeed !*
- [Getting started](getting-started)
- [User interface](interface)
- [Editing sessions](editing-sessions)
- [Widgets reference](widgets-reference)
- Extras:
- [Advanced property syntax](extras/advanced-property-syntax)
- [CSS Tips](extras/css-tips)
- [Theming](extras/theming)
- [URL options](extras/url-options)
- [Remote control](extras/remote-control)
- [Custom module](extras/custom-module)
- [Midi](extras/midi)
- [Examples](examples)
- [Credits](credits)

View file

@ -12,13 +12,15 @@ The sidepanel can be opened by clicking the navigation icon in the upper right c
- Export: save the state of all widgets to a `.preset` file
- Import: load a state from a `.preset` file
### Traversing gestures
### Traversing gestures
By default, a dragging gesture can only affect the widget it started on. Enabling traversing gesture does two things:
- make gestures affect every widgets no matter where they started
- make sliders-like widgets respond as if their `snap` option is enabled
When traversing gestures are set to "Smart", these will only affect widgets that have the same type as the first touched widget.
### Editor
See [Editing sessions](editing-sessions.md).
@ -30,4 +32,6 @@ See [Editing sessions](editing-sessions.md).
| Click | Tap | Handled at pressing time, not releasing. |
| Double Click | Double Tap | Some widgets handle double click / tap events. |
| Right-click | Long touch | Widgets that have only one value input will give focus to it when receiving this event. When the editor is enabled, Right-click / Long touch spawns the editor's context menu. |
| Drag | | The widgets respond to mouse and touch drag gestures with a 1:1 precision ratio. By using two or more fingers, one can obtain higher precision gestures : each finger that touches the widget without moving will slow down the moving one. |
| Drag | Drag | The widgets respond to mouse and touch drag gestures with a 1:1 precision ratio. |
| `Ctrl` + Drag | | Holding the `Ctrl` key while dragging with the mouse increases the gesture's precision by 10.|
| | Two-fingers drag (single target) | Using two on a single-touch target increases the gesture's precision by 10. |

View file

@ -0,0 +1,476 @@
## Generic properties
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 id="type">type<a class="headerlink" href="#type" title="Permanent link"></a></h4> | `string` | <code>"auto"</code> | |
| <h4 id="id">id<a class="headerlink" href="#id" title="Permanent link"></a></h4> | `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. |
| <h4 id="linkId">linkId<a class="headerlink" href="#linkId" title="Permanent link"></a></h4> | `string`\|<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) |
| <h4 class="thead2" id="geometry">geometry<a class="headerlink" href="#geometry" title="Permanent link"></a></h4> ||||
| <h4 id="left">left<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#left" title="Permanent link"></a></h4> | `number`\|<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 |
| <h4 id="top">top<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#top" title="Permanent link"></a></h4> | `number`\|<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 |
| <h4 id="width">width<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#width" title="Permanent link"></a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | |
| <h4 id="height">height<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#height" title="Permanent link"></a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | |
| <h4 class="thead2" id="style">style<a class="headerlink" href="#style" title="Permanent link"></a></h4> ||||
| <h4 id="label">label<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#label" title="Permanent link"></a></h4> | `string`\|<br/>`boolean` | <code>"auto"</code> | Set to `false` to hide completely<br/><br/>Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc |
| <h4 id="color">color<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#color" title="Permanent link"></a></h4> | `string` | <code>"auto"</code> | CSS color code. Set to "auto" to inherit from parent widget. |
| <h4 id="css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#css" title="Permanent link"></a></h4> | `string` | <code>""</code> | CSS rules |
| <h4 class="thead2" id="value">value<a class="headerlink" href="#value" title="Permanent link"></a></h4> ||||
| <h4 id="default">default<a class="headerlink" href="#default" title="Permanent link"></a></h4> | `*` | <code>""</code> | If set, the widget will be initialized with this value when the session is loaded. |
| <h4 id="value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#value" title="Permanent link"></a></h4> | `*` | <code>""</code> | Define the widget's value depending on other widget's values / properties using property inheritance and property maths |
| <h4 class="thead2" id="osc">osc<a class="headerlink" href="#osc" title="Permanent link"></a></h4> ||||
| <h4 id="precision">precision<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#precision" title="Permanent link"></a></h4> | `integer`\|<br/>`string` | <code>2</code> | Defines the number of decimals to display and to send.<br/><br/>Set to `0` to send integers only.<br/><br/>Data type can be specified by appending a valid osc type tag to the precision value, for example : `3d` will make the widget send double precision numbers rounded to three decimals |
| <h4 id="address">address<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#address" title="Permanent link"></a></h4> | `string` | <code>"auto"</code> | OSC address for sending messages, it must start with a / |
| <h4 id="preArgs">preArgs<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#preArgs" title="Permanent link"></a></h4> | `*`\|<br/>`array` | <code>""</code> | A value or array of values that will be prepended to the OSC messages.<br/><br/>Values can be defined as objects if the osc type tag needs to be specified: `{type: "i", value: 1}` |
| <h4 id="target">target<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#target" title="Permanent link"></a></h4> | `string`\|<br/>`array`\|<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/>- The special item `"self"` can be used to refer to the emitting client directly.<br/>- If no target is set, messages can still be sent if the server has default targets<br/>- The server's default targets can be bypassed by setting one of the items to `null` |
| <h4 id="bypass">bypass<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#bypass" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to prevent the widget from sending any osc message |
## Sliders
### fader
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="fader_style">style<a class="headerlink" href="#fader_style" title="Permanent link"></a></h4> ||||
| <h4 id="fader_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#fader_css" title="Permanent link"></a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-gauge: color;`<br/>- `--color-knob: color;`<br/>- `--color-pips: color;`<br/>- `--gauge-opacity: number;` |
| <h4 class="thead2" id="fader_fader">fader<a class="headerlink" href="#fader_fader" title="Permanent link"></a></h4> ||||
| <h4 id="fader_horizontal">horizontal<a class="headerlink" href="#fader_horizontal" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display the fader horizontally |
| <h4 id="fader_alignRight">alignRight<a class="headerlink" href="#fader_alignRight" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to invert the pip's and fader's position |
| <h4 id="fader_pips">pips<a class="headerlink" href="#fader_pips" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
| <h4 id="fader_input">input<a class="headerlink" href="#fader_input" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the built-in input |
| <h4 id="fader_meter">meter<a class="headerlink" href="#fader_meter" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to true to display a vu-meter next in the fader<br/>- the meter's `id` will be the same as the widget's with `/meter` appended to it<br/>- the meter's `id` will be the same as the widget's with `/meter` appended to it |
| <h4 id="fader_compact">compact<a class="headerlink" href="#fader_compact" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display. |
| <h4 id="fader_dashed">dashed<a class="headerlink" href="#fader_dashed" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display a dashed gauge |
| <h4 id="fader_snap">snap<a class="headerlink" href="#fader_snap" title="Permanent link"></a></h4> | `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 |
| <h4 id="fader_spring">spring<a class="headerlink" href="#fader_spring" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its `default` value when released |
| <h4 id="fader_doubleTap">doubleTap<a class="headerlink" href="#fader_doubleTap" title="Permanent link"></a></h4> | `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>`) |
| <h4 id="fader_range">range<a class="headerlink" href="#fader_range" title="Permanent link"></a></h4> | `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}}`) |
| <h4 id="fader_steps">steps<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#fader_steps" title="Permanent link"></a></h4> | `string`\|<br/>`number`\|<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 |
| <h4 id="fader_logScale">logScale<a class="headerlink" href="#fader_logScale" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale |
| <h4 id="fader_unit">unit<a class="headerlink" href="#fader_unit" title="Permanent link"></a></h4> | `string` | <code>""</code> | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
| <h4 id="fader_origin">origin<a class="headerlink" href="#fader_origin" title="Permanent link"></a></h4> | `number` | <code>"auto"</code> | Defines the starting point's value of the fader's gauge |
| <h4 class="thead2" id="fader_osc">osc<a class="headerlink" href="#fader_osc" title="Permanent link"></a></h4> ||||
| <h4 id="fader_touchAddress">touchAddress<a class="headerlink" href="#fader_touchAddress" title="Permanent link"></a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
| <h4 id="fader_meterAddress">meterAddress<a class="headerlink" href="#fader_meterAddress" title="Permanent link"></a></h4> | `string` | <code>""</code> | OSC address for the built-in meter |
### knob
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="knob_style">style<a class="headerlink" href="#knob_style" title="Permanent link"></a></h4> ||||
| <h4 id="knob_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#knob_css" title="Permanent link"></a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-gauge: color;`<br/>- `--color-knob: color;`<br/>- `--color-pips: color;` |
| <h4 class="thead2" id="knob_knob">knob<a class="headerlink" href="#knob_knob" title="Permanent link"></a></h4> ||||
| <h4 id="knob_pips">pips<a class="headerlink" href="#knob_pips" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
| <h4 id="knob_input">input<a class="headerlink" href="#knob_input" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the built-in input |
| <h4 id="knob_dashed">dashed<a class="headerlink" href="#knob_dashed" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display a dashed gauge |
| <h4 id="knob_angle">angle<a class="headerlink" href="#knob_angle" title="Permanent link"></a></h4> | `number` | <code>270</code> | Defines the angle's width of the knob, in degrees |
| <h4 id="knob_snap">snap<a class="headerlink" href="#knob_snap" title="Permanent link"></a></h4> | `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 |
| <h4 id="knob_spring">spring<a class="headerlink" href="#knob_spring" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its `default` value when released |
| <h4 id="knob_doubleTap">doubleTap<a class="headerlink" href="#knob_doubleTap" title="Permanent link"></a></h4> | `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>`) |
| <h4 id="knob_range">range<a class="headerlink" href="#knob_range" title="Permanent link"></a></h4> | `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}}`) |
| <h4 id="knob_steps">steps<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#knob_steps" title="Permanent link"></a></h4> | `string`\|<br/>`number`\|<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 |
| <h4 id="knob_logScale">logScale<a class="headerlink" href="#knob_logScale" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale |
| <h4 id="knob_unit">unit<a class="headerlink" href="#knob_unit" title="Permanent link"></a></h4> | `string` | <code>""</code> | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
| <h4 id="knob_origin">origin<a class="headerlink" href="#knob_origin" title="Permanent link"></a></h4> | `number` | <code>"auto"</code> | Defines the starting point's value of the knob's gauge |
| <h4 class="thead2" id="knob_osc">osc<a class="headerlink" href="#knob_osc" title="Permanent link"></a></h4> ||||
| <h4 id="knob_touchAddress">touchAddress<a class="headerlink" href="#knob_touchAddress" title="Permanent link"></a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
### encoder
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="encoder_encoder">encoder<a class="headerlink" href="#encoder_encoder" title="Permanent link"></a></h4> ||||
| <h4 id="encoder_ticks">ticks<a class="headerlink" href="#encoder_ticks" title="Permanent link"></a></h4> | `number` | <code>"auto"</code> | defines the granularity / verbosity of the encoder (number of step for a 360° arc) |
| <h4 id="encoder_back">back<a class="headerlink" href="#encoder_back" title="Permanent link"></a></h4> | `*` | <code>-1</code> | Defines which value is sent when rotating the encoder anticlockwise |
| <h4 id="encoder_forth">forth<a class="headerlink" href="#encoder_forth" title="Permanent link"></a></h4> | `*` | <code>1</code> | Defines which value is sent when rotating the encoder clockwise |
| <h4 id="encoder_release">release<a class="headerlink" href="#encoder_release" title="Permanent link"></a></h4> | `number` | <code>"auto"</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 |
| <h4 id="encoder_snap">snap<a class="headerlink" href="#encoder_snap" title="Permanent link"></a></h4> | `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 |
| <h4 id="encoder_doubleTap">doubleTap<a class="headerlink" href="#encoder_doubleTap" title="Permanent link"></a></h4> | `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>`) |
| <h4 class="thead2" id="encoder_osc">osc<a class="headerlink" href="#encoder_osc" title="Permanent link"></a></h4> ||||
| <h4 id="encoder_touchAddress">touchAddress<a class="headerlink" href="#encoder_touchAddress" title="Permanent link"></a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
### range
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="range_style">style<a class="headerlink" href="#range_style" title="Permanent link"></a></h4> ||||
| <h4 id="range_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#range_css" title="Permanent link"></a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-gauge: color;`<br/>- `--color-knob: color;`<br/>- `--color-pips: color;`<br/>- `--gauge-opacity: number;` |
| <h4 class="thead2" id="range_range">range<a class="headerlink" href="#range_range" title="Permanent link"></a></h4> ||||
| <h4 id="range_range">range<a class="headerlink" href="#range_range" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | See fader's `range` |
| <h4 id="range_horizontal">horizontal<a class="headerlink" href="#range_horizontal" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `horizontal` |
| <h4 id="range_alignRight">alignRight<a class="headerlink" href="#range_alignRight" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `alignRight` |
| <h4 id="range_input">input<a class="headerlink" href="#range_input" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | See fader's `input` |
| <h4 id="range_compact">compact<a class="headerlink" href="#range_compact" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `compact` |
| <h4 id="range_pips">pips<a class="headerlink" href="#range_pips" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | See fader's `pips` |
| <h4 id="range_snap">snap<a class="headerlink" href="#range_snap" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `snap` |
| <h4 id="range_spring">spring<a class="headerlink" href="#range_spring" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `spring` |
| <h4 id="range_logScale">logScale<a class="headerlink" href="#range_logScale" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `logScale` |
| <h4 class="thead2" id="range_osc">osc<a class="headerlink" href="#range_osc" title="Permanent link"></a></h4> ||||
| <h4 id="range_touchAddress">touchAddress<a class="headerlink" href="#range_touchAddress" title="Permanent link"></a></h4> | `string` | <code>""</code> | See fader's `touchAddress` |
| <h4 id="range_split">split<a class="headerlink" href="#range_split" title="Permanent link"></a></h4> | `boolean`\|<br/>`object` | <code>false</code> | Set to `true` to send separate osc messages for `low` and `high` handles. The `address` will be the same as the widget's with `/low` or `/high` appended to it<br/><br/>Can be set as an object to specify a different `address` : `['/osc_address_low', '/osc_address_high']`<br/><br/>Note: the widget will only respond to its original osc address, not to the splitted version |
## Buttons
### toggle
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="toggle_toggle">toggle<a class="headerlink" href="#toggle_toggle" title="Permanent link"></a></h4> ||||
| <h4 id="toggle_doubleTap">doubleTap<a class="headerlink" href="#toggle_doubleTap" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to make the button require a double tap to be toggled instead of a single tap |
| <h4 id="toggle_led">led<a class="headerlink" href="#toggle_led" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display the toggle's state with a led |
| <h4 id="toggle_on">on<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#toggle_on" title="Permanent link"></a></h4> | `*` | <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) |
| <h4 id="toggle_off">off<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#toggle_off" title="Permanent link"></a></h4> | `*` | <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) |
### push
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="push_push">push<a class="headerlink" href="#push_push" title="Permanent link"></a></h4> ||||
| <h4 id="push_on">on<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_on" title="Permanent link"></a></h4> | `*` | <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) |
| <h4 id="push_off">off<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_off" title="Permanent link"></a></h4> | `*` | <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) |
| <h4 id="push_norelease">norelease<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_norelease" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to prevent sending any osc message when releasing the button |
### switch
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="switch_switch">switch<a class="headerlink" href="#switch_switch" title="Permanent link"></a></h4> ||||
| <h4 id="switch_horizontal">horizontal<a class="headerlink" href="#switch_horizontal" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display values horizontally |
| <h4 id="switch_showValues">showValues<a class="headerlink" href="#switch_showValues" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | If values is an object, set to `true` to display both values and labels instead of labels only |
| <h4 id="switch_values">values<a class="headerlink" href="#switch_values" title="Permanent link"></a></h4> | `array`\|<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 |
### dropdown
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="dropdown_dropdown">dropdown<a class="headerlink" href="#dropdown_dropdown" title="Permanent link"></a></h4> ||||
| <h4 id="dropdown_values">values<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#dropdown_values" title="Permanent link"></a></h4> | `array`\|<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<br/><br/>An empty option will always be prepended to values (sends an osc message without any value); it can be hidden by adding `option:first-child{display:none}` to the widget's `css` |
## Pads
### xy
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="xy_style">style<a class="headerlink" href="#xy_style" title="Permanent link"></a></h4> ||||
| <h4 id="xy_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#xy_css" title="Permanent link"></a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--background: background;`: sets the dragging area's background<br/>- `--pips-color: color;`<br/>- `--pips-opacity: number;`<br/>- `--point-opacity: number;` |
| <h4 class="thead2" id="xy_xy">xy<a class="headerlink" href="#xy_xy" title="Permanent link"></a></h4> ||||
| <h4 id="xy_pointSize">pointSize<a class="headerlink" href="#xy_pointSize" title="Permanent link"></a></h4> | `integer` | <code>20</code> | Defines the points' size |
| <h4 id="xy_snap">snap<a class="headerlink" href="#xy_snap" title="Permanent link"></a></h4> | `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 |
| <h4 id="xy_spring">spring<a class="headerlink" href="#xy_spring" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
| <h4 id="xy_pips">pips<a class="headerlink" href="#xy_pips" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
| <h4 id="xy_rangeX">rangeX<a class="headerlink" href="#xy_rangeX" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the x axis |
| <h4 id="xy_rangeY">rangeY<a class="headerlink" href="#xy_rangeY" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h4 id="xy_logScaleX">logScaleX<a class="headerlink" href="#xy_logScaleX" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (log10) |
| <h4 id="xy_logScaleY">logScaleY<a class="headerlink" href="#xy_logScaleY" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis (log10) |
| <h4 id="xy_input">input<a class="headerlink" href="#xy_input" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to false to hide the built-in input widget |
| <h4 id="xy_doubleTap">doubleTap<a class="headerlink" href="#xy_doubleTap" title="Permanent link"></a></h4> | `boolean`\|<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>` |
| <h4 class="thead2" id="xy_osc">osc<a class="headerlink" href="#xy_osc" title="Permanent link"></a></h4> ||||
| <h4 id="xy_touchAddress">touchAddress<a class="headerlink" href="#xy_touchAddress" title="Permanent link"></a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) |
| <h4 id="xy_split">split<a class="headerlink" href="#xy_split" title="Permanent link"></a></h4> | `boolean`\|<br/>`object` | <code>false</code> | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/x` or `/y` appended to it<br/><br/>Can be set as an `object` to specify a different address : ['/osc_address_x', '/osc_address_y']<br/><br/>Note: the widget will only respond to its original osc address, not to the splitted version |
### rgb
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="rgb_rgb">rgb<a class="headerlink" href="#rgb_rgb" title="Permanent link"></a></h4> ||||
| <h4 id="rgb_snap">snap<a class="headerlink" href="#rgb_snap" title="Permanent link"></a></h4> | `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 |
| <h4 id="rgb_spring">spring<a class="headerlink" href="#rgb_spring" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
| <h4 id="rgb_range">range<a class="headerlink" href="#rgb_range" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 255<br/>}</code> | Defines the widget's output scale. |
| <h4 id="rgb_input">input<a class="headerlink" href="#rgb_input" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the built-in input widget |
| <h4 id="rgb_alpha">alpha<a class="headerlink" href="#rgb_alpha" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to enable alpha channel |
| <h4 class="thead2" id="rgb_osc">osc<a class="headerlink" href="#rgb_osc" title="Permanent link"></a></h4> ||||
| <h4 id="rgb_split">split<a class="headerlink" href="#rgb_split" title="Permanent link"></a></h4> | `boolean`\|<br/>`object` | <code>false</code> | Set to `true` to send separate osc messages for for r and g & b. The address will be the same as the widget's with `/r`, `/g` or `/b` appended to it<br/><br/>Can be set as an `object` to specify a different address : `['/r', '/g', 'b']`<br/><br/>Note: the widget will only respond to its original osc address, not to the splitted version |
### multixy
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="multixy_style">style<a class="headerlink" href="#multixy_style" title="Permanent link"></a></h4> ||||
| <h4 id="multixy_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#multixy_css" title="Permanent link"></a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--background: background;`: sets the dragging area's background<br/>- `--pips-color: color;`<br/>- `--pips-opacity: number;`<br/>- `--color-text: point-color;`<br/><br/>Pads can be targetted individually with the .pad-X selector (where X is the pad's index) |
| <h4 class="thead2" id="multixy_multi xy">multi xy<a class="headerlink" href="#multixy_multi xy" title="Permanent link"></a></h4> ||||
| <h4 id="multixy_points">points<a class="headerlink" href="#multixy_points" title="Permanent link"></a></h4> | `integer`\|<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']`) |
| <h4 class="thead2" id="multixy_xy">xy<a class="headerlink" href="#multixy_xy" title="Permanent link"></a></h4> ||||
| <h4 id="multixy_pointSize">pointSize<a class="headerlink" href="#multixy_pointSize" title="Permanent link"></a></h4> | `integer` | <code>20</code> | Defines the points' size |
| <h4 id="multixy_snap">snap<a class="headerlink" href="#multixy_snap" title="Permanent link"></a></h4> | `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 |
| <h4 id="multixy_spring">spring<a class="headerlink" href="#multixy_spring" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
| <h4 id="multixy_pips">pips<a class="headerlink" href="#multixy_pips" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
| <h4 id="multixy_rangeX">rangeX<a class="headerlink" href="#multixy_rangeX" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the x axis |
| <h4 id="multixy_rangeY">rangeY<a class="headerlink" href="#multixy_rangeY" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h4 id="multixy_logScaleX">logScaleX<a class="headerlink" href="#multixy_logScaleX" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (log10) |
| <h4 id="multixy_logScaleY">logScaleY<a class="headerlink" href="#multixy_logScaleY" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis (log10) |
| <h4 class="thead2" id="multixy_osc">osc<a class="headerlink" href="#multixy_osc" title="Permanent link"></a></h4> ||||
| <h4 id="multixy_touchAddress">touchAddress<a class="headerlink" href="#multixy_touchAddress" title="Permanent link"></a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
| <h4 id="multixy_split">split<a class="headerlink" href="#multixy_split" title="Permanent link"></a></h4> | `boolean`\|<br/>`object` | <code>false</code> | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/N/x` or `/N/y` appended to it, where N is the point's id (or the point's label if points is an array)<br/><br/>Can be set as an `object` to specify a different address : `['/0/x', '/0/y', '/1/x', '/2/y']`<br/><br/>Note: the widget will only respond to its original osc address, not to the splitted version |
## Matrices
### matrix
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="matrix_matrix">matrix<a class="headerlink" href="#matrix_matrix" title="Permanent link"></a></h4> ||||
| <h4 id="matrix_widgetType">widgetType<a class="headerlink" href="#matrix_widgetType" title="Permanent link"></a></h4> | `string` | <code>"toggle"</code> | Defines the type of the widgets in the matrix |
| <h4 id="matrix_matrix">matrix<a class="headerlink" href="#matrix_matrix" title="Permanent link"></a></h4> | `array` | <code>[<br/>&nbsp;2,<br/>&nbsp;2<br/>]</code> | Defines the number of columns and and rows in the matrix |
| <h4 id="matrix_start">start<a class="headerlink" href="#matrix_start" title="Permanent link"></a></h4> | `integer` | <code>0</code> | First widget's index |
| <h4 id="matrix_spacing">spacing<a class="headerlink" href="#matrix_spacing" title="Permanent link"></a></h4> | `integer` | <code>0</code> | Adds space between widgets |
| <h4 id="matrix_traversing">traversing<a class="headerlink" href="#matrix_traversing" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to disable traversing gestures |
| <h4 id="matrix_border">border<a class="headerlink" href="#matrix_border" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to disables the widgets' borders |
| <h4 id="matrix_props">props<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#matrix_props" title="Permanent link"></a></h4> | `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: `$` |
### keyboard
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="keyboard_style">style<a class="headerlink" href="#keyboard_style" title="Permanent link"></a></h4> ||||
| <h4 id="keyboard_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#keyboard_css" title="Permanent link"></a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-white:color;` (white keys color)<br/>- `--color-black:color;` (black keys color) |
| <h4 class="thead2" id="keyboard_matrix">matrix<a class="headerlink" href="#keyboard_matrix" title="Permanent link"></a></h4> ||||
| <h4 id="keyboard_keys">keys<a class="headerlink" href="#keyboard_keys" title="Permanent link"></a></h4> | `number` | <code>25</code> | Defines the number keys |
| <h4 id="keyboard_start">start<a class="headerlink" href="#keyboard_start" title="Permanent link"></a></h4> | `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]` |
| <h4 id="keyboard_traversing">traversing<a class="headerlink" href="#keyboard_traversing" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to disable traversing gestures |
| <h4 id="keyboard_on">on<a class="headerlink" href="#keyboard_on" title="Permanent link"></a></h4> | `*` | <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) |
| <h4 id="keyboard_off">off<a class="headerlink" href="#keyboard_off" title="Permanent link"></a></h4> | `*` | <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) |
| <h4 class="thead2" id="keyboard_osc">osc<a class="headerlink" href="#keyboard_osc" title="Permanent link"></a></h4> ||||
| <h4 id="keyboard_split">split<a class="headerlink" href="#keyboard_split" title="Permanent link"></a></h4> | `boolean`\|<br/>`string` | <code>false</code> | `true`: the widget's index will be appended to the matrice's osc address<br/><br/>`false`: it will be prepended to the widget's preArgs<br/><br/>`string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)) |
## Plots
### plot
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="plot_plot">plot<a class="headerlink" href="#plot_plot" title="Permanent link"></a></h4> ||||
| <h4 id="plot_rangeX">rangeX<a class="headerlink" href="#plot_rangeX" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the x axis |
| <h4 id="plot_rangeY">rangeY<a class="headerlink" href="#plot_rangeY" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h4 id="plot_logScaleX">logScaleX<a class="headerlink" href="#plot_logScaleX" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (log10) |
| <h4 id="plot_logScaleY">logScaleY<a class="headerlink" href="#plot_logScaleY" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis (log10) |
| <h4 id="plot_origin">origin<a class="headerlink" href="#plot_origin" title="Permanent link"></a></h4> | `number` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it. |
| <h4 id="plot_dots">dots<a class="headerlink" href="#plot_dots" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | |
| <h4 id="plot_bars">bars<a class="headerlink" href="#plot_bars" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) |
| <h4 id="plot_smooth">smooth<a class="headerlink" href="#plot_smooth" title="Permanent link"></a></h4> | `boolean`\|<br/>`number` | <code>false</code> | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
| <h4 id="plot_pips">pips<a class="headerlink" href="#plot_pips" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
| <h4 class="thead2" id="plot_value">value<a class="headerlink" href="#plot_value" title="Permanent link"></a></h4> ||||
| <h4 id="plot_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#plot_value" title="Permanent link"></a></h4> | `array`\|<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 |
### eq
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="eq_eq">eq<a class="headerlink" href="#eq_eq" title="Permanent link"></a></h4> ||||
| <h4 id="eq_pips">pips<a class="headerlink" href="#eq_pips" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to false to hide the scale |
| <h4 id="eq_resolution">resolution<a class="headerlink" href="#eq_resolution" title="Permanent link"></a></h4> | `number` | <code>128</code> | Defines the number of points used to compute the frequency response |
| <h4 id="eq_rangeY">rangeY<a class="headerlink" href="#eq_rangeY" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h4 id="eq_origin">origin<a class="headerlink" href="#eq_origin" title="Permanent link"></a></h4> | `number`\|<br/>`boolean` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it |
| <h4 id="eq_logScaleX">logScaleX<a class="headerlink" href="#eq_logScaleX" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (log10) |
| <h4 id="eq_smooth">smooth<a class="headerlink" href="#eq_smooth" title="Permanent link"></a></h4> | `boolean`\|<br/>`number` | <code>false</code> | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
### visualizer
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="visualizer_visualizer">visualizer<a class="headerlink" href="#visualizer_visualizer" title="Permanent link"></a></h4> ||||
| <h4 id="visualizer_duration">duration<a class="headerlink" href="#visualizer_duration" title="Permanent link"></a></h4> | `number` | <code>1</code> | Defines visualization duration in seconds |
| <h4 id="visualizer_range">range<a class="headerlink" href="#visualizer_range" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Defines the min and max values for the y axis |
| <h4 id="visualizer_origin">origin<a class="headerlink" href="#visualizer_origin" title="Permanent link"></a></h4> | `number` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it |
| <h4 id="visualizer_logScale">logScale<a class="headerlink" href="#visualizer_logScale" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis |
| <h4 id="visualizer_smooth">smooth<a class="headerlink" href="#visualizer_smooth" title="Permanent link"></a></h4> | `boolean`\|<br/>`number` | <code>false</code> | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
| <h4 id="visualizer_pips">pips<a class="headerlink" href="#visualizer_pips" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
### led
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="led_led">led<a class="headerlink" href="#led_led" title="Permanent link"></a></h4> ||||
| <h4 id="led_range">range<a class="headerlink" href="#led_range" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | Value to led intensity mapping range |
| <h4 id="led_logScale">logScale<a class="headerlink" href="#led_logScale" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to use a logarithmic mapping scale) |
### rgbled
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="rgbled_value">value<a class="headerlink" href="#rgbled_value" title="Permanent link"></a></h4> ||||
| <h4 id="rgbled_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#rgbled_value" title="Permanent link"></a></h4> | `array`\|<br/>`string` | <code>""</code> | - `Array`: `[r, g, b]` (`r`, `g` and `b` between `0` and `255`)<br/>- `Array`: `[r, g, b, alpha]` (`alpha` between `0` and `255`)<br/>- `String`: CSS color |
### meter
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="meter_style">style<a class="headerlink" href="#meter_style" title="Permanent link"></a></h4> ||||
| <h4 id="meter_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#meter_css" title="Permanent link"></a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-gauge: color;`<br/>- `--color-knob: color;`<br/>- `--color-pips: color;`<br/>- `--gauge-opacity: number;` |
| <h4 class="thead2" id="meter_meter">meter<a class="headerlink" href="#meter_meter" title="Permanent link"></a></h4> ||||
| <h4 id="meter_range">range<a class="headerlink" href="#meter_range" title="Permanent link"></a></h4> | `object` | <code>{<br/>&nbsp;"min": 0,<br/>&nbsp;"max": 1<br/>}</code> | See fader's `range` |
| <h4 id="meter_logScale">logScale<a class="headerlink" href="#meter_logScale" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `logScale` |
| <h4 id="meter_origin">origin<a class="headerlink" href="#meter_origin" title="Permanent link"></a></h4> | `number` | <code>"auto"</code> | See fader's `origin` |
| <h4 id="meter_unit">unit<a class="headerlink" href="#meter_unit" title="Permanent link"></a></h4> | `string` | <code>"auto"</code> | See fader's `unit` |
| <h4 id="meter_alignRight">alignRight<a class="headerlink" href="#meter_alignRight" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `alignRight` |
| <h4 id="meter_horizontal">horizontal<a class="headerlink" href="#meter_horizontal" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `horizontal` |
| <h4 id="meter_pips">pips<a class="headerlink" href="#meter_pips" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `pips` |
| <h4 id="meter_dashed">dashed<a class="headerlink" href="#meter_dashed" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | See fader's `dashed` |
| <h4 id="meter_gradient">gradient<a class="headerlink" href="#meter_gradient" title="Permanent link"></a></h4> | `array`\|<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'} |
### text
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="text_text">text<a class="headerlink" href="#text_text" title="Permanent link"></a></h4> ||||
| <h4 id="text_vertical">vertical<a class="headerlink" href="#text_vertical" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display the text vertically |
| <h4 id="text_wrap">wrap<a class="headerlink" href="#text_wrap" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to wrap long lines automatically.<br/><br/>This will not break overflowing words by default, word-breaking can be enabled by adding `word-break: break-all;` to the `css` property |
| <h4 id="text_align">align<a class="headerlink" href="#text_align" title="Permanent link"></a></h4> | `string` | <code>""</code> | Set to `left` or `right` to change text alignment (otherwise center) |
### image
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="image_image">image<a class="headerlink" href="#image_image" title="Permanent link"></a></h4> ||||
| <h4 id="image_size">size<a class="headerlink" href="#image_size" title="Permanent link"></a></h4> | `string` | <code>"cover"</code> | CSS background-size |
| <h4 id="image_position">position<a class="headerlink" href="#image_position" title="Permanent link"></a></h4> | `string` | <code>"center"</code> | CSS background-position |
| <h4 id="image_repeat">repeat<a class="headerlink" href="#image_repeat" title="Permanent link"></a></h4> | `string` | <code>"no-repear"</code> | CSS background-repeat |
| <h4 id="image_border">border<a class="headerlink" href="#image_border" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to disable the borders and background-color |
| <h4 id="image_cache">cache<a class="headerlink" href="#image_cache" title="Permanent link"></a></h4> | `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 |
| <h4 class="thead2" id="image_value">value<a class="headerlink" href="#image_value" title="Permanent link"></a></h4> ||||
| <h4 id="image_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#image_value" title="Permanent link"></a></h4> | `string` | <code>""</code> | - File `url` or `absolute path`<br/>- Base64 encoded image : `data:image/...` |
### svg
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="svg_svg">svg<a class="headerlink" href="#svg_svg" title="Permanent link"></a></h4> ||||
| <h4 id="svg_svg">svg<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#svg_svg" title="Permanent link"></a></h4> | `string` | <code>""</code> | Svg xml definition:<br/>- will be wrapped in a `<svg></svg>` element<br/>- `<path>` commands support a special percent notation (`%x` and `%y`) |
### frame
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="frame_style">style<a class="headerlink" href="#frame_style" title="Permanent link"></a></h4> ||||
| <h4 id="frame_label">label<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#frame_label" title="Permanent link"></a></h4> | `string`\|<br/>`boolean` | <code>"auto"</code> | Set to `false` to hide completely<br/><br/>Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc<br/><br/>If set to `false`, all pointer-events will be disabled on the frame as long as the editor is enabled to ensure it can be selected |
| <h4 class="thead2" id="frame_frame">frame<a class="headerlink" href="#frame_frame" title="Permanent link"></a></h4> ||||
| <h4 id="frame_border">border<a class="headerlink" href="#frame_border" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to disable the borders and background-color |
| <h4 class="thead2" id="frame_value">value<a class="headerlink" href="#frame_value" title="Permanent link"></a></h4> ||||
| <h4 id="frame_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#frame_value" title="Permanent link"></a></h4> | `string` | <code>""</code> | External web page URL. Only local URLs are allowed (starting with `http://127.0.0.1/`, `http://10.x.x.x/`, `http://192.168.x.x/`, etc) |
## Containers
### panel
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="panel_panel">panel<a class="headerlink" href="#panel_panel" title="Permanent link"></a></h4> ||||
| <h4 id="panel_scroll">scroll<a class="headerlink" href="#panel_scroll" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to disable scrollbars |
| <h4 id="panel_border">border<a class="headerlink" href="#panel_border" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | By default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too |
| <h4 class="thead2" id="panel_value">value<a class="headerlink" href="#panel_value" title="Permanent link"></a></h4> ||||
| <h4 id="panel_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#panel_value" title="Permanent link"></a></h4> | `integer` | <code>""</code> | Defines currently opened tab in the widget<br/><br/>A tab can be opened only by setting its parent's value |
| <h4 class="thead2" id="panel_children">children<a class="headerlink" href="#panel_children" title="Permanent link"></a></h4> ||||
| <h4 id="panel_variables">variables<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#panel_variables" title="Permanent link"></a></h4> | `*` | <code>"@{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
| <h4 id="panel_widgets">widgets<a class="headerlink" href="#panel_widgets" title="Permanent link"></a></h4> | `array` | <code>[]</code> | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
| <h4 id="panel_tabs">tabs<a class="headerlink" href="#panel_tabs" title="Permanent link"></a></h4> | `array` | <code>[]</code> | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
### strip
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="strip_strip">strip<a class="headerlink" href="#strip_strip" title="Permanent link"></a></h4> ||||
| <h4 id="strip_scroll">scroll<a class="headerlink" href="#strip_scroll" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to disable scrollbars |
| <h4 id="strip_horizontal">horizontal<a class="headerlink" href="#strip_horizontal" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display widgets horizontally |
| <h4 id="strip_stretch">stretch<a class="headerlink" href="#strip_stretch" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to stretch widgets evenly |
| <h4 id="strip_border">border<a class="headerlink" href="#strip_border" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | By default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too |
| <h4 id="strip_spacing">spacing<a class="headerlink" href="#strip_spacing" title="Permanent link"></a></h4> | `integer`\|<br/>`percentage` | <code>0</code> | Adds space between widgets. Percents are always relative to the strips width |
| <h4 class="thead2" id="strip_children">children<a class="headerlink" href="#strip_children" title="Permanent link"></a></h4> ||||
| <h4 id="strip_variables">variables<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#strip_variables" title="Permanent link"></a></h4> | `*` | <code>"@{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
| <h4 id="strip_widgets">widgets<a class="headerlink" href="#strip_widgets" title="Permanent link"></a></h4> | `array` | <code>[]</code> | Each element of the array must be a widget object<br/>- By default, children widgets that don't have an explicit `width`/`height` set will be shrinked to respect the sizes specified by others<br/>- Adding `flex:1;` to a children's `css` will give it the ability the fill the remaining space<br/>- Multiple children can have a `flex:x;` css property (`x` will ponderate their expansion) |
### modal
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="modal_modal">modal<a class="headerlink" href="#modal_modal" title="Permanent link"></a></h4> ||||
| <h4 id="modal_doubleTap">doubleTap<a class="headerlink" href="#modal_doubleTap" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to make the modal require a double tap to open instead of a single tap |
| <h4 id="modal_popupLabel">popupLabel<a class="headerlink" href="#modal_popupLabel" title="Permanent link"></a></h4> | `string` | <code>""</code> | Alternative label for the modal popup |
| <h4 id="modal_popupWidth">popupWidth<a class="headerlink" href="#modal_popupWidth" title="Permanent link"></a></h4> | `number`\|<br/>`percentage` | <code>"80%"</code> | Modal popup's size |
| <h4 id="modal_popupHeight">popupHeight<a class="headerlink" href="#modal_popupHeight" title="Permanent link"></a></h4> | `number`\|<br/>`percentage` | <code>"80%"</code> | Modal popup's size |
| <h4 id="modal_popupLeft">popupLeft<a class="headerlink" href="#modal_popupLeft" title="Permanent link"></a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | Modal popup's position |
| <h4 id="modal_popupTop">popupTop<a class="headerlink" href="#modal_popupTop" title="Permanent link"></a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | Modal popup's position |
| <h4 class="thead2" id="modal_value">value<a class="headerlink" href="#modal_value" title="Permanent link"></a></h4> ||||
| <h4 id="modal_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#modal_value" title="Permanent link"></a></h4> | `integer` | <code>""</code> | Defines the modal's state:`0` for closed, `1` for opened |
| <h4 class="thead2" id="modal_children">children<a class="headerlink" href="#modal_children" title="Permanent link"></a></h4> ||||
| <h4 id="modal_variables">variables<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#modal_variables" title="Permanent link"></a></h4> | `*` | <code>"@{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
| <h4 id="modal_widgets">widgets<a class="headerlink" href="#modal_widgets" title="Permanent link"></a></h4> | `array` | <code>[]</code> | Each element of the array must be a widget object |
### clone
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="clone_clone">clone<a class="headerlink" href="#clone_clone" title="Permanent link"></a></h4> ||||
| <h4 id="clone_widgetId">widgetId<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#clone_widgetId" title="Permanent link"></a></h4> | `string` | <code>""</code> | `id` of the widget to clone |
| <h4 class="thead2" id="clone_overrides">overrides<a class="headerlink" href="#clone_overrides" title="Permanent link"></a></h4> ||||
| <h4 id="clone_props">props<a class="headerlink" href="#clone_props" title="Permanent link"></a></h4> | `object` | <code>{}</code> | Cloned widget's properties to override |
## Switchers
### switcher
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="switcher_switcher">switcher<a class="headerlink" href="#switcher_switcher" title="Permanent link"></a></h4> ||||
| <h4 id="switcher_linkedWidgets">linkedWidgets<a class="headerlink" href="#switcher_linkedWidgets" title="Permanent link"></a></h4> | `string`\|<br/>`array` | <code>""</code> | - `String`: a widget's `id` whose state changes will be stored<br/>- `Array`: a list of widget `id` string |
| <h4 id="switcher_horizontal">horizontal<a class="headerlink" href="#switcher_horizontal" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display values horizontally |
| <h4 id="switcher_values">values<a class="headerlink" href="#switcher_values" title="Permanent link"></a></h4> | `array`\|<br/>`object` | <code>{<br/>&nbsp;"Value 1": 1,<br/>&nbsp;"Value 2": 2<br/>}</code> | Each item represents a bank that stores the values from the widgets listed in `linkedWidgets`<br/>- `Array` of possible values to switch between : `[1,2,3]`<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 |
### crossfader
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="crossfader_crossfader">crossfader<a class="headerlink" href="#crossfader_crossfader" title="Permanent link"></a></h4> ||||
| <h4 id="crossfader_linkedWidgets">linkedWidgets<a class="headerlink" href="#crossfader_linkedWidgets" title="Permanent link"></a></h4> | `string`\|<br/>`array` | <code>""</code> | - `String`: a widget's `id` whose state changes will be stored<br/>- `Array`: a list of widget `id` string |
| <h4 id="crossfader_horizontal">horizontal<a class="headerlink" href="#crossfader_horizontal" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display values horizontally |
## Inputs
### input
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="input_input">input<a class="headerlink" href="#input_input" title="Permanent link"></a></h4> ||||
| <h4 id="input_vertical">vertical<a class="headerlink" href="#input_vertical" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to display the text vertically |
| <h4 id="input_align">align<a class="headerlink" href="#input_align" title="Permanent link"></a></h4> | `string` | <code>""</code> | Set to `left` or `right` to change text alignment (otherwise center) |
| <h4 id="input_unit">unit<a class="headerlink" href="#input_unit" title="Permanent link"></a></h4> | `string` | <code>""</code> | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
| <h4 id="input_editable">editable<a class="headerlink" href="#input_editable" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to make the input non-editable |
### keys
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="keys_keys">keys<a class="headerlink" href="#keys_keys" title="Permanent link"></a></h4> ||||
| <h4 id="keys_binding">binding<a class="headerlink" href="#keys_binding" title="Permanent link"></a></h4> | `string`\|<br/>`array` | <code>""</code> | Key combo `string` or `array` of strings (see <a href="https://github.com/RobertWHurst/KeyboardJS">KeyboardJS</a> documentation) |
| <h4 id="keys_keydown">keydown<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#keys_keydown" title="Permanent link"></a></h4> | `string` | <code>""</code> | This property is evaluated each time the key combo is pressed. Formulas are given extras variables in this context:<br/>- `key`: pressed key name (usefull for handling multiple keys with a single keys widget)<br/>- `ctrl`: control key state<br/>- `alt`: alt key state<br/>- `shift`: shift key state<br/>- `super`: command/windows key state |
| <h4 id="keys_keyup">keyup<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#keys_keyup" title="Permanent link"></a></h4> | `string` | <code>""</code> | Same as `keydown`, but evaluated when releasing the key combo |
| <h4 id="keys_repeat">repeat<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#keys_repeat" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Set to `false` to prevent keydown repeats when holding the key combo pressed |
### script
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="script_script">script<a class="headerlink" href="#script_script" title="Permanent link"></a></h4> ||||
| <h4 id="script_condition">condition<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#script_condition" title="Permanent link"></a></h4> | `string` | <code>1</code> | When the widget receives a value, if this property return a falsy value, the script property won't be evaluated. If it's non-falsy, it will be evaluated normally. Formulas are given one extra variable in this context:<br/>- `value`: the value received by the widget |
| <h4 id="script_script">script<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#script_script" title="Permanent link"></a></h4> | `string` | <code>""</code> | This property is evaluated each time the widget receives a value if condition is non-falsy. Formulas are given extras variables in this context:<br/>- `value`: the value received by the widget<br/>- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)<br/>- `set(id, value)`: function for setting a widget's value |
### gyroscope
| property | type |default | description |
| --- | --- | --- | --- |
| <h4 class="thead2" id="gyroscope_gyroscope">gyroscope<a class="headerlink" href="#gyroscope_gyroscope" title="Permanent link"></a></h4> ||||
| <h4 id="gyroscope_frequency">frequency<a class="headerlink" href="#gyroscope_frequency" title="Permanent link"></a></h4> | `number` | <code>30</code> | Value update frequency (updates per seconds) |
| <h4 id="gyroscope_normalize">normalize<a class="headerlink" href="#gyroscope_normalize" title="Permanent link"></a></h4> | `boolean` | <code>true</code> | Normalize gravity related values |
| <h4 id="gyroscope_compass">compass<a class="headerlink" href="#gyroscope_compass" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to return the orientation values with respect to the actual north direction of the world instead of the head direction of the device |
| <h4 id="gyroscope_screenAdjusted">screenAdjusted<a class="headerlink" href="#gyroscope_screenAdjusted" title="Permanent link"></a></h4> | `boolean` | <code>false</code> | Set to `true` to return screen adjusted values |
| <h4 class="thead2" id="gyroscope_value">value<a class="headerlink" href="#gyroscope_value" title="Permanent link"></a></h4> ||||
| <h4 id="gyroscope_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#gyroscope_value" title="Permanent link"></a></h4> | `object` | <code>""</code> | The gyroscope's value is an object containing multiple values, which can be used by other widgets via the property maths syntax<br/>- `value.do.alpha`: deviceorientation event alpha<br/>- `value.do.beta`: deviceorientation event beta<br/>- `value.do.gamma`: deviceorientation event gamma<br/>- `value.do.absolute`: deviceorientation event absolute<br/>- `value.dm.x`: devicemotion event acceleration x<br/>- `value.dm.y`: devicemotion event acceleration y<br/>- `value.dm.z`: devicemotion event acceleration z<br/>- `value.dm.gx`: devicemotion event accelerationIncludingGravity x<br/>- `value.dm.gy`: devicemotion event accelerationIncludingGravity y<br/>- `value.dm.gz`: devicemotion event accelerationIncludingGravity z<br/>- `value.dm.alpha`: devicemotion event rotationRate alpha<br/>- `value.dm.beta`: devicemotion event rotationRate beta<br/>- `value.dm.gamma`: devicemotion event rotationRate gamma |
<script>
document.querySelectorAll('.thead2').forEach(function(item){
item.classList.remove('thead2')
item.closest('tr').classList.add('thead2')
})
</script>

View file

@ -12,24 +12,24 @@ Buttons are exactly what you think they are.
}
```
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the button require a double tap to be toggled instead of a single tap
### `led`
### `led`
- type: `boolean`
- default: `false`
- usage: set to `true` to display the toggle's state with a led
### `on`
### `on`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string|number|object`
- default: `1`
- usage: defines which value is sent on `on` position
- set to `null` to send send no argument in the osc message
- can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
### `off`
### `off`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string|number|object`
- default: `0`
- usage: defines which value is sent on `off` position
@ -47,14 +47,14 @@ Buttons are exactly what you think they are.
}
```
### `on`
### `on`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string|number|object`
- default: `1`
- usage: defines which value is sent when pushing the button
- set to `null` to send send no argument in the osc message
- can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
### `off`
### `off`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string|number|object`
- default: `0`
- usage: defines which value is sent when releasing the button
@ -72,19 +72,25 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
## Switch
```js
{
type:'switch',
// etc
}
```
### `values`
### `values`
- type: `array|object`
- default: `{"Value 1":1,"Value 2":2}`
- usage:
- `array` of possible values to switch between : `[1,2,3]`
- `object` of `"label":value` pairs
- `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.
### `showValues`
- type: `boolean`
- default: `false`
- usage: if `values` is an `object`, set to `true` to display both values and labels instead of labels only
## Dropdown
```js
@ -94,9 +100,10 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
}
```
### `values`
### `values`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `array|object`
- default: `{"Value 1":1,"Value 2":2}`
- usage:
- `array` of possible values to switch between : `[1,2,3]`
- `object` of `"label":value` pairs
- `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.
- an empty option will always be prepended to `values` (sends an osc message without any value); it can be hidden by adding `option:first-child{display:none}` to the widget's `css`

View file

@ -15,28 +15,28 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can
}
```
### `scroll`
### `scroll`
- type: `boolean`
- default: `true`
- usage: set to `false` to disable scrollbars
### `border`
### `border`
- type: `boolean`
- default: `true`
- usage: by default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too.
### `widgets`
### `widgets`
- type: `array`
- default: `[]`
- usage: each element of the `array` must be a widget `object`. A panel cannot contain widgets and tabs simultaneously.
### `tabs`
### `tabs`
- type: `array`
- default: `[]`
- usage: each element of the `array` must be a tab `object`. A panel cannot contain widgets and tabs simultaneously.
### `variables`
### `variables`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `*`
- default: `@{parent.variables}`
- usage: defines one or more arbitrary variables that can be inherited by children widgets.
@ -47,23 +47,26 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can
- `@{parent.variables}` useful when nesting containers
### `layout`
### `layout`
- type: `string`
- default: `''`
- usage: `layout` must be a valid [Visual Format Language](https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/VisualFormatLanguage.html) expression. It accepts the [Extended Visual Format Language](https://github.com/IjzerenHein/autolayout.js#extended-visual-format-language-evfl) as well. Widgets are targeted using their `id` or their index prefixed with a `$` (`$0, $1, etc`), the latter method being incompatible with the [range spread operator](https://github.com/IjzerenHein/autolayout.js#view-ranges-spread-operator). Expressions can be tested and debugged with the online [Visual Format Editor](https://rawgit.com/IjzerenHein/visualformat-editor/master/dist/index.html).
- note: this only applies when the panel contains widgets, not tabs
### `spacing`
### `spacing`
- type: `integer|array`
- default: `0`
- usage: spacing size used in `layout` expression, can be set as a `[vertical,horizontal]` array.
- note: this only applies when the panel contains widgets, not tabs
### `css`
```css
--nav-height: number[rem|%];
```
## Strip
Unidirectionnal panel with stretching capability. By default, children widgets that don't have an explicit `width`/`height` set will be shrinked to respect the sizes specified by others. Adding `flex:1;` to a children's `css` will give it the ability the fill the remaining space. Multiple children can have a `flex:x;` css property (`x` will ponderate their expansion).
Unidirectional panel with stretching capability. By default, children widgets that don't have an explicit `width`/`height` set will be shrinked to respect the sizes specified by others. Adding `flex:1;` to a children's `css` will give it the ability the fill the remaining space. Multiple children can have a `flex:x;` css property (`x` will ponderate their expansion).
```js
{
@ -72,27 +75,27 @@ Unidirectionnal panel with stretching capability. By default, children widgets t
}
```
### `horizontal`
### `horizontal`
- type: `boolean`
- default: `false`
- usage: set to `true` to display widgets horizontally
### `stretch`
### `stretch`
- type: `boolean`
- default: `false`
- usage: set to `true` to stretch widgets evenly
### `spacing`
- type: `integer`
### `spacing`
- type: `integer|percentage`
- default: `0`
- usage: adds space between widgets
- usage: adds space between widgets. Percents are always relative to the strips width.
### `border`
### `border`
- type: `boolean`
- default: `true`
- usage: by default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the strip too.
### `widgets`
### `widgets`
- type: `array`
- default: `[]`
- usage: each element of the `array` must be a widget `object`
@ -111,22 +114,28 @@ Modals are buttons that turn into a centered popup panels when enabled. They can
}
```
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the modal require a double tap to open instead of a single tap
### `popupWidth` / `popupHeight`
### `popupWidth` / `popupHeight`
- type: `number|percentage`
- default: `100%`
- usage: sets the modal's size once opened
### `popupLabel`
### `popupLeft` / `popupTop`
- type: `number|percentage`
- default: `auto`
- usage: sets the modal's position once opened (centered by default)
### `popupLabel`
- type: `string`
- default: `empty`
- usage: alternative label for the popup
### `options`
### `options`
- see panel's [`options`](#panel)
@ -139,12 +148,12 @@ Modals are buttons that turn into a centered popup panels when enabled. They can
}
```
### `widgetId`
### `widgetId`
- type: `string`
- default: `empty`
- usage: `id` of the widget to clone
### `props`
### `props`
- type: `object`
- default: `{}`
- usage: cloned widget's properties to override

View file

@ -10,22 +10,147 @@
}
```
### `widgetId`
- type: `object`
- default: `empty`
- usage: a widget's `id` whose value will be linked to the input
### `editable`
### `editable`
- type: `boolean`
- default: `true`
- usage: set to `false` to make the input non-editable
### `horizontal`
### `horizontal`
- type: `boolean`
- default: `false`
- usage: set to `true` to display the input horizontally
### `unit`
### `align`
- type: `string`
- default: `''`
- usage: set to `left` or `right` to change text alignment (otherwise `center`)
### `unit`
- type: `string`
- default: `empty`
- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
## Keys
```js
{
type:'keys',
// etc
}
```
### `binding`
- type: `string|array`
- default: `''`
- usage: [keyboardjs](https://github.com/RobertWHurst/KeyboardJS) key combo string or array of strings.
### `keydown`
- type: `string`
- default: `''`
- usage: this property is evaluated each time the key combo is pressed. [Formulas](../extras/advanced-property-syntax/#formulas) are given extras variables in this context:
- `key`: pressed key name (usefull for handling multiple keys with a single `keys` widget)
- `ctrl`: control key state
- `alt`: alt key state
- `shift`: shift key state
- `super`: command/windows key state
### `keyup`
- type: `string`
- default: `''`
- usage: same as `keydown`, but evaluated when releasing the key combo.
### `repeat`
- type: `boolean`
- default: `true`
- usage: set to `false` to prevent `keydown` repeats when holding the key combo pressed.
## Script
```js
{
type:'script',
// etc
}
```
### `condition`
- type: `string`
- default: `''`
- usage: when the widget receives a value, if this property return a falsy value, the `script` property won't be evaluated. If it's non-falsy, it will be evaluated normally. [Formulas](../extras/advanced-property-syntax/#formulas) are given 1 extra variable in this context:
- `value`: the value received by the widget
### `script`
- type: `string`
- default: `''`
- usage: this property is evaluated each time the widget receives a value if `condition` is non-falsy. [Formulas](../extras/advanced-property-syntax/#formulas) are given extras variables in this context:
- `value`: the value received by the widget
- `send`: `function` for sending osc messages
- `set`: `function` for setting a widget's value
#### `send(target, address, arg1, arg2, ...)`
- `target` (`string` or `array` or `false`): one or several osc targets. Default targets (`--send` and the script's `target` property) are ignored unless `target` is `false`
- `address` (`string`): a valid osc address
- `arg`: one or several osc arguments to be sent. The script's `preArgs` property is ignored
#### `set(id, value)`
- `id` (`string`): a widget's id
- `value`: the widget's new value
## Gyroscope
```js
{
type:'gyroscope',
// etc
}
```
The gyroscope's value is an object containing multiple values, which can be used by other widgets via the [property maths syntax](../extras/advanced-property-syntax.md) :
```
// value.do.alpha ( deviceorientation event alpha value )
// value.do.beta ( deviceorientation event beta value )
// value.do.gamma ( deviceorientation event gamma value )
// value.do.absolute ( deviceorientation event absolute value )
// value.dm.x ( devicemotion event acceleration x value )
// value.dm.y ( devicemotion event acceleration y value )
// value.dm.z ( devicemotion event acceleration z value )
// value.dm.gx ( devicemotion event accelerationIncludingGravity x value )
// value.dm.gy ( devicemotion event accelerationIncludingGravity y value )
// value.dm.gz ( devicemotion event accelerationIncludingGravity z value )
// value.dm.alpha ( devicemotion event rotationRate alpha value )
// value.dm.beta ( devicemotion event rotationRate beta value )
// value.dm.gamma ( devicemotion event rotationRate gamma value )
```
### `frequency`
- type: `number`
- default: `30`
- usage: update frequency in Hz (value updates per seconds)
### `normalize`
- type: `boolean`
- default: `true`
- usage: normalize gravity related values
### `compass`
- type: `boolean`
- default: `false`
- usage: set to `true` to return the orientation values with respect to the actual north direction of the world instead of the head direction of the device
### `screenAdjusted`
- type: `boolean`
- default: `false`
- usage: set to `true` to return screen adjusted values

View file

@ -2,10 +2,11 @@
Maths do the maths !
## Formula
!!! warning "Deprecated"
Since `v0.24.0`, any widget property can be defined using math expressions. Formula widget is deprecated and will be removed in a future release.
Formula evaluates mathematical expressions over other widgets' values each one of these widgets changes.
```js
@ -16,7 +17,7 @@ Formula evaluates mathematical expressions over other widgets' values each one o
```
### `formula`
### `formula`
- type: `string`
- default: `''`
- usage: a [mathjs](http://mathjs.org/docs/expressions/syntax.html) expression in which
@ -24,19 +25,19 @@ Formula evaluates mathematical expressions over other widgets' values each one o
- example: `${fader_1} * 2 + ${fader_2}`
- **important note**: contrary to what is stated in *mathjs*' documentation, **matrix indexes are zero-based** here
### `condition`
### `condition`
- type: `string`
- default: `''`
- usage:
- a [mathjs](http://mathjs.org/docs/expressions/syntax.html) comparison expression that bypasses widget's osc sending when returning`false`
- example: `${fader_1} > 0.5`
### `unit`
### `unit`
- type: `string`
- default: `empty`
- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
### `split`
### `split`
- type: `object`
- default: `[]`
- usage: specify a different `address` for each item of the widget's value : `['/a', '/b']`

View file

@ -2,6 +2,49 @@
Matrices are special containers that only contain one type of widget. All contained widgets will be traversed by single dragging gestures.
!!! note ""
When using the [property inheritance syntax](../extras/advanced-property-syntax) to retreive a matrix' value, the returned value is an array containing all it's children's values.
## Matrix
Creates grid of widgets of a given type
```js
{
type:'matrix',
// etc
}
```
### `widgetType`
- type: `string`
- default: `toggle`
- usage: set the type of the widgets in the matrix
### `matrix`
- type: `array`
- default: `[2,2]`
- usage: defines the number of columns and and rows in the matrix
### `start`
- type: `integer`
- default: `0`
- usage: first widget's index
### `traversing`
- type: `boolean`
- default: `true`
- usage: set to false to disable traversing gestures
### `props`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `object`
- default: `{}`
- usage: define a set of property to override the widgets' defaults. [Formulas](../extras/advanced-property-syntax/#formulas) in this field are resolved with an extra variable `$` representing each widget's index
## Multifader
Multifader creates a row of vertical faders that respond to the same gestures.
@ -13,35 +56,39 @@ Multifader creates a row of vertical faders that respond to the same gestures.
}
```
### `strips`
### `strips`
- type: `integer`
- default: `2`
- usage: number of faders in the row, each fader will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
- `id`: same as the widget's with `/i` appended to it
- `label`: `i`
- `address`: same as the widget's with `/i` appended to it
- `address`: see `split`
### `start`
### `start`
- type: `integer`
- default: `0`
- usage: first faders's index
### `traversing`
### `traversing`
- type: `boolean`
- default: `true`
- usage: enable traversing gestures
- usage: set to false to disable traversing gestures
### `split`
### `borders`
- type: `boolean`
- default: `true`
- usage: set to false to disable widgets borders
### `split`
- type: `boolean|string`
- default: `false`
- usage: if `true`, the fader's index will be appended to the widget's osc `address`; if `false` it will be prepended to the widget's `preArgs`
- usage:
- `true`: the widget's index will be appended to the matrice's osc `address`
- `false`: it will be prepended to the widget's `preArgs`
- `string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)).
### `color`
- type: `string|array`
- default: `auto`, inherited accent color
- usage: can be an `array` of css color `strings`, which will be sequentially passed to the faders
### `options`
### `options`
- see fader's [`options`](sliders/#fader)
@ -56,42 +103,39 @@ Multifader creates a row of vertical faders that respond to the same gestures.
}
```
### `matrix`
### `matrix`
- type: `array`
- default: `[2,2]`
- usage: defines the number of columns and and rows. Each cell will contain a toggle button that will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
- `id`: same as the widget's with `/i` appended to it
- `label`: `i`
- `address`: same as the widget's with `/i` appended to it
- `address`: see `split`
### `start`
### `start`
- type: `integer`
- default: `0`
- usage: first toggle's index
### `spacing`
### `spacing`
- type: `integer`
- default: `0`
- usage: adds space between widgets
### `traversing`
### `traversing`
- type: `boolean`
- default: `true`
- usage: enable traversing gestures
- usage: set to false to disable traversing gestures
### `split`
- type: `boolean`
### `split`
- type: `boolean|string`
- default: `false`
- usage: if `true`, the toggle's index will be appended to the widget's osc `address`; if `false` it will be prepended to the widget's `preArgs`
### `color`
- type: `string|array`
- default: `auto`, inherited accent color
- usage: can be an `array` of css color `strings`, which will be sequentially passed to the toggles
- usage:
- `true`: the widget's index will be appended to the matrice's osc `address`
- `false`: it will be prepended to the widget's `preArgs`
- `string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)).
### `options`
### `options`
- see toggle's [`options`](buttons/#toggle)
@ -104,47 +148,45 @@ Multifader creates a row of vertical faders that respond to the same gestures.
}
```
### `matrix`
### `matrix`
- type: `array`
- default: `[2,2]`
- usage: defines the number of columns and and rows. Each cell will contain a push button that will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
- `id`: same as the widget's with `/i` appended to it
- `label`: `i`
- `address`: same as the widget's with `/i` appended to it
- `address`: see `split`
### `start`
### `start`
- type: `integer`
- default: `0`
- usage: first push's index
### `spacing`
### `spacing`
- type: `integer`
- default: `0`
- usage: adds space between widgets
### `traversing`
### `traversing`
- type: `boolean`
- default: `true`
- usage: enable traversing gestures
- usage: set to false to disable traversing gestures
### `split`
- type: `boolean`
### `split`
- type: `boolean|string`
- default: `false`
- usage: if `true`, the push's index will be appended to the widget's osc `address`; if `false` it will be prepended to the widget's `preArgs`
- usage:
- `true`: the widget's index will be appended to the matrice's osc `address`
- `false`: it will be prepended to the widget's `preArgs`
- `string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)).
### `color`
- type: `string|array`
- default: `auto`, inherited accent color
- usage: can be an `array` of css color `strings`, which will be sequentially passed to the pushes
### `options`
### `options`
- see push's [`options`](buttons/#push)
## Keyboard
This one works pretty much like the multipush, excepts it looks like a piano keyboard ad
This one works pretty much like the multipush, excepts it looks like a piano keyboard.
```js
{
@ -153,32 +195,42 @@ This one works pretty much like the multipush, excepts it looks like a piano key
}
```
### `keys`
### `keys`
- type: `integer`
- default: `24`
- usage: defines the number keys
### `start`
### `start`
- type: `integer`
- default: `60`
- usage: MIDI note number to start with (default is C4)
!!! note ""
Standard keyboards settings are:
25 keys - start 48
49 keys - start 36
61 keys - start 36
88 keys - start 21
### `traversing`
### `traversing`
- type: `boolean`
- default: `true`
- usage: enable traversing gestures
- usage: set to false to disable traversing gestures
### `split`
- type: `boolean`
### `split`
- type: `boolean|string`
- default: `false`
- usage: if `true`, the note's midi code will be appended to the widget's osc `address`; if `false` it will be prepended to the widget's `preArgs`
- usage:
- `true`: the widget's index will be appended to the matrice's osc `address`
- `false`: it will be prepended to the widget's `preArgs`
- `string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)).
### `options`
### `options`
- see push's [`options`](buttons/#push)
### `css`
```
```css
--color-white:color; /* white keys color */
--color-black:color; /* black keys color */
```

View file

@ -13,35 +13,35 @@ Pads are multidimensional widgets that output multiple values.
}
```
### `input`
### `input`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the built-in input
### `rangeX`
### `rangeX`
- type: `object`
- default:
`{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `x` axis. Same as fader's [`range`](sliders/#fader)
### `rangeY`
### `rangeY`
- type: `object`
- default:
`{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `y` axis. Same as fader's [`range`](sliders/#fader)
### `logScaleX`
### `logScaleX`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
### `logScaleY`
### `logScaleY`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `y` axis (log10)
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: 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.
@ -49,14 +49,15 @@ Pads are multidimensional widgets that output multiple values.
### `spring`
- type: `boolean`
- default: `false`
- usage: when set to `true`, the widget will go back to its initial value when released.
- usage: when set to `true`, the widget will go back to its `default` value when released.
### `doubleTap`
- type: `boolean`
### `doubleTap`
- type: `boolean|string`
- default: `false`
- usage: set to `true` to make the xy reset to its initial value when receiving a double tap
- usage: set to `true` to make the fader reset to its `default` value when receiving a double tap. `doubleTap` can also be an osc address, which case the widget will just send an osc message (`/<doubleTap> <preArgs>`),
### `split`
### `split`
- type: `boolean|object`
- default: `false`
- usage:
@ -75,7 +76,7 @@ Pads are multidimensional widgets that output multiple values.
}
```
### `points`
### `points`
- type: `integer|array`
- default: `2`
- usage: defines the number of points on the pad. Can be an `array` of `strings` that will be used as labels for the points (ex: `['A', 'B']`)
@ -85,30 +86,30 @@ Pads are multidimensional widgets that output multiple values.
- default: `15`
- usage: defines the points's size
### `rangeX`
### `rangeX`
- type: `object`
- default:
`{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `x` axis. Same as fader's [`range`](sliders/#fader)
### `rangeY`
### `rangeY`
- type: `object`
- default:
`{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `y` axis. Same as fader's [`range`](sliders/#fader)
### `logScaleX`
### `logScaleX`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
### `logScaleY`
### `logScaleY`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `y` axis (log10)
### `split`
### `split`
- type: `boolean|object`
- default: `false`
- usage:
@ -116,7 +117,7 @@ Pads are multidimensional widgets that output multiple values.
- can be set as an object to specify a different `address` : `['/0/x', '/0/y', '/1/x', '/2/y']`
- note: the widget will only respond to its original osc address, not to the splitted version
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: by default, the points are dragged from their initial position; if set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates (one per touch).
@ -135,22 +136,28 @@ RGB is a variant of XY, it outputs rgb values between 0 and 255.
}
```
### `input`
### `input`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the built-in input
### `precision`
### `precision`
- default:`0`
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: 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.
### `split`
### `range`
- type: `object`
- default: `{"min":0,"max":255}`
- usage: `range` defines the widget's output scale.
### `split`
- type: `boolean|object`
- default: `false`
- usage:
- set to `true` to send separate osc messages for `r` and `g` & `b`. The `address` will be the same as the widget's with `/r`, `/g` or `/b` appended to it
- can be set as an object to specify a different `address` : `['/r', '/b', '/b']`
- note: the widget will only respond to its original osc address, not to the splitted version

View file

@ -10,17 +10,12 @@ Plots are tools that display other widgets' state or incomming osc messages. The
}
```
### `widgetId`
- type: `string`
- default: `empty`
- usage: a widget's `id` whose value will be mapped to the led's color opacity
### `range`
### `range`
- type: `object`
- default: `{"min":0,"max":1}`
- usage: defines the `min` and `max` value the led's intensity will be mapped to
### `logScale`
### `logScale`
- type: `boolean`
- default: `false`
- usage: set to true to use logarithmic scaling
@ -38,7 +33,12 @@ This one is like the `led` except it takes either three arguments (red, green an
## Plot
The plot receives an array of [x,y] coordinates and draws them on a chart with linear or logarithmic interpolation.
The plot receives an array of coordinates and draws them on a chart. Coordinates can be :
- `y` values evenly spaced on the `x` axis
- `[x, y]` coordinates arrays
!!! info
Coordinates also can be sent as a stringified array (`[]`). A stringified object can also be sent to change specific points' coordinates (e.g. `{0:1, 4:0}` will change the 1st and 5th points' coordinates) .
```js
{
@ -47,16 +47,16 @@ The plot receives an array of [x,y] coordinates and draws them on a chart with
}
```
### `points`
### `value`
- type: `array|string`
- default: `[]`
- default: `['']`
- usage:
- as a `string`: a widget's `id` whose multiple values will be displayed on the `y` axis, evenly spaced on the `x` axis (only *[matrices](matrices.md)* and *[pads](pads.md)* will work)
- as an `array`: each element must be an `array` of `[x,y]` coordinates, where `x` and `y` can either be a:
- `number`: constant values
- `string`: a widget's `id` whose value will be used
- as an `array`: where items can be
- `number`
- `string` (widget's `id`)
- `[x, y]`: array of `number` or `string`
### `range`
### `range`
- type: `object`
- default:
`{
@ -65,20 +65,25 @@ The plot receives an array of [x,y] coordinates and draws them on a chart with
}`
- usage: defines the `min` and `max` values for the `x` and `y` axis
### `logScaleX`
### `bars`
- type: `boolean`
- default: `false`
- usage: set to `true` to use draw bars instead (disables `logScaleX` and forces `x-axis` even spacing)
### `logScaleX`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
### `logScaleY`
### `logScaleY`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `y` axis (log10)
### `smooth`
### `smooth`
- type: `boolean`
- default: `false`
- usage: set to true to make the line smooth. Float values are also acceptable (works fine between 0 and 0.5)
- usage: set to `true` to make the line smooth. Float values are also acceptable (works fine between 0 and 0.5)
### `origin`
- type: `number`
@ -96,7 +101,7 @@ The Eq receives an array of filter objects and draws their frequency response be
}
```
### `filters`
### `value`
- type: `array`
- default: `[]`
- usage:
@ -118,18 +123,18 @@ The Eq receives an array of filter objects and draws their frequency response be
- default: `128`
- usage: defines the number of points used to compute the frequency response
### `rangeY`
### `rangeY`
- type: `object`
- default:
`{"min":-20,"max":20}`
- usage: defines the `min` and `max` values for the `y` axis (dB level)
### `logScaleX`
### `logScaleX`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
### `smooth`
### `smooth`
- type: `boolean`
- default: `false`
- usage: set to true to make the line smooth. Float values are also acceptable (works fine between 0 and 0.5)
@ -150,27 +155,22 @@ The visualizer displays the evolution in time of a received value (through osc)
}
```
### `widgetId`
- type: `string`
- default: `empty`
- usage: a widget's `id` whose value will be displayed (thus bypassing the incoming osc)
### `duration`
### `duration`
- type: `number`
- default: `1`
- usage: window size in seconds
### `range`
### `range`
- type: `object`
- default: `{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `y` axis
### `logScale`
### `logScale`
- type: `boolean`
- default: `false`
- usage: set to `true` use logarithmic scaling (log10)
### `smooth`
### `smooth`
- type: `boolean`
- default: `false`
- usage: set to true to make the line smooth. Float values are also acceptable (works fine between 0 and 0.5)
@ -191,16 +191,21 @@ Text displays incoming values (via osc) as text. Sending a message with no argum
}
```
### `widgetId`
- type: `string`
- default: `empty`
- usage: a widget's `id` whose value will be displayed
### `vertical`
### `vertical`
- type: `boolean`
- default: `false`
- usage: set to `true` display vertically
### `wrap`
- type: `boolean`
- default: `false`
- usage: set to `true` to wrap long lines automatically. This will not break overflowing words by default, word-breaking can be enabled by adding `word-break: break-all;` to the `css` property.
### `align`
- type: `string`
- default: `''`
- usage: set to `left` or `right` to change text alignment (otherwise `center`)
## Meter
Meter displays incoming numerical values (via osc) as a gauge level
@ -212,18 +217,114 @@ Meter displays incoming numerical values (via osc) as a gauge level
}
```
### `widgetId`
- type: `object`
- default: `empty`
- usage: a widget's `id` whose value will be displayed
### `horizontal`
### `horizontal`
- type: `boolean`
- default: `false`
- usage: set to `true` to display the meter horizontally
### `range`
### `range`
- see fader's [`range`](sliders/#fader)
### `logScale`
### `logScale`
- see fader's [`logScale`](sliders/#fader)
### `gradient`
- type: `array`
- default: `[]`
- usage: when set, the meter's gauge will be filled with a linear color gradient : each item must be a color string. Example: `["blue", "red"]`
### `css`
```css
--color-gauge:color;
--color-knob:color; /* transparent by default */
--color-pips:color;
--gauge-opacity:number;
```
## Image
Image displays an image from a file path/url or from a base64 encoded image string. Sending an empty message resets the widget to its initial `value`.
```js
{
type:'image',
// etc
}
```
### `size`
- type: `string`
- default: `cover`
- usage: css [background-size](https://www.w3schools.com/CSSref/css3_pr_background-size.asp)
### `position`
- type: `string`
- default: `cover`
- usage: css [background-position](https://www.w3schools.com/CSSref/pr_background-position.asp)
### `repeat`
- type: `string`
- default: `no-repeat`
- usage: css [background-repeat](https://www.w3schools.com/CSSref/pr_background-repeat.asp)
### `border`
- type: `boolean`
- default: `false`
- usage: set to `true` to disable the image's borders and background-color.
### `cache`
- type: `boolean`
- default: `true`
- usage: set to `false` to disable image caching (forces file reload when updating or editing the widget). When `true`, sending `'reload'` to the widget reloads its image without changing its value.
### `value`
- type: `string`
- default: `''`
- usage : initial image
- file url or absolute path
- [base64 encoded image](https://duckduckgo.com/?q=base64+encode+image&ia=web) : `data:image/...`
## Svg
```js
{
type:'svg',
// etc
}
```
### `svg`
- type: `string`
- default: `''`
- usage : svg xml definition
- will be wrapped in a `<svg></svg>` element
- `<path>` commands support a special percent notation (`%x` and `%y`)
!!! tip ""
An exemple session called `svg.json` is shipped with the app.
## Frame
Frame loads and diplays an external web page, using its own value as URL. Only local URLs are allowed (starting with `http://127.0.0.1/`, `http://10.x.x.x/`, `http://192.168.x.x/`, etc).
```js
{
type:'frame',
// etc
}
```
### `border`
- type: `boolean`
- default: `false`
- usage: set to `true` to disable the frame's borders and background-color.
!!! note ""
If `label` is set to `false`, all pointer-events will be disabled on the frame as long as the editor is enabled to ensure it can be selected.

View file

@ -12,37 +12,37 @@ Sliders are unidimensional widgets that output one value at a time.
}
```
### `horizontal`
### `horizontal`
- type: `boolean`
- default: `false`
- usage: set to `true` to display the fader horizontally
### `alignRight`
### `alignRight`
- type: `boolean`
- default: `false`
- usage: set to `true` to invert the pip's and fader's position
### `pips`
### `pips`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the scale
### `input`
### `input`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the built-in input
### `compact`
### `compact`
- type: `boolean`
- default: `false`
- usage: set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display (right-click/long-touch still triggers it).
- usage: set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display.
### `dashed`
### `dashed`
- type: `boolean`
- default: `false`
- usage: set to `true` to display a dashed gauge
### `range`
### `range`
- type: `object`
- default: `{"min":0,"max":1}`
- usage: `range` defines the breakpoints of the fader's scale
@ -62,19 +62,19 @@ range: {
- default: `auto`
- usage: `origin` defines the starting point's value of the fader's gauge
### `logScale`
### `logScale`
- type: `boolean`
- default: `false`
- usage: set to `true` use logarithmic scaling between breakpoints (log10)
### `unit`
### `unit`
- type: `string`
- default: `empty`
- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: 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.
@ -82,31 +82,32 @@ range: {
### `spring`
- type: `boolean`
- default: `false`
- usage: when set to `true`, the widget will go back to its initial value when released.
- usage: when set to `true`, the widget will go back to its `default` value when released.
### `doubleTap`
- type: `boolean`
### `doubleTap`
- type: `boolean|string`
- default: `false`
- usage: set to `true` to make the fader reset to its initial value when receiving a double tap
- usage: set to `true` to make the fader reset to its `default` value when receiving a double tap. `doubleTap` can also be an osc address, which case the widget will just send an osc message (`/<doubleTap> <preArgs>`),
### `meter`
### `meter`
- type: `boolean`
- default: `false`
- usage: set to true to display a vu-meter next in the fader
- the meter's `id` will be the same as the widget's with `/meter` appended to it
- the meter's `address `will be the same as the widget's with `/meter` appended to it
### `meterAddress`
### `meterAddress`
- type: `boolean`
- default: `empty`
- usage: overrides the `meter`'s osc address
### `css`
```
```css
--color-gauge:color;
--color-knob:color;
--color-pips:color;
--gauge-opacity:number; /* compact mode only */
```
@ -121,27 +122,22 @@ range: {
```
### `pips`
### `pips`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the scale
### `input`
### `input`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the built-in input
### `compact`
- type: `boolean`
- default: `false`
- usage: set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display (right-click/long-touch still triggers it).
### `angle`
- type: `number`
- default: `270`
- usage: `angle` defines the angle's width of the knob, in degrees
### `range`
### `range`
- type: `object`
- default: `{"min":0,"max":1}`
- usage: `range` defines the breakpoints of the fader's scale
@ -161,19 +157,19 @@ range: {
- default: `auto`
- usage: `origin` defines the starting point's value of the knob's gauge
### `logScale`
### `logScale`
- type: `boolean`
- default: `false`
- usage: set to `true` use logarithmic scaling between breakpoints
### `unit`
### `unit`
- type: `string`
- default: `empty`
- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: by default, dragging the widget *vertically* will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position.
@ -181,12 +177,12 @@ range: {
### `spring`
- type: `boolean`
- default: `false`
- usage: when set to `true`, the widget will go back to its initial value when released.
- usage: when set to `true`, the widget will go back to its `default` value when released.
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the knob reset to its initial value when receiving a double tap
- usage: set to `true` to make the knob reset to its `default` value when receiving a double tap
### `css`
```
@ -231,12 +227,12 @@ An endless knob that only responds to rotative gestures.
- can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: 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.
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the encoder reset to its initial value when receiving a double tap
@ -245,3 +241,32 @@ An endless knob that only responds to rotative gestures.
```
--color-knob:color;
```
## Range
A range is a fader with two handles. To move the range (both handles at once), hold the `shift` key or use two fingers.
```js
{
type:'range',
// etc
}
```
### `split`
- type: `boolean|object`
- default: `false`
- usage:
- set to `true` to send separate osc messages for `low` and `high` handles. The `address` will be the same as the widget's with `/low` or `/high` appended to it
- can be set as an object to specify a different `address` : `['/osc_address_low', '/osc_address_high']`
- note: the widget will only respond to its original osc address, not to the splitted version
### `css`
```css
--color-gauge:color;
--color-knob:color;
--color-pips:color;
--gauge-opacity:number; /* compact mode only */
```

View file

@ -16,7 +16,7 @@ The switcher looks like the [`switch`](buttons/#switch). Each of its possible va
}
```
### `linkedWidgets`
### `linkedWidgets`
- type: `array|string`
- default:
`empty`
@ -25,7 +25,7 @@ The switcher looks like the [`switch`](buttons/#switch). Each of its possible va
- as an `array`: a list of widget `id` `strings`
### `values`
### `values`
- type: `array|object`
- default: `["A", "B"]`
- usage:

View file

@ -4,31 +4,33 @@ All widgets share a set of generic properties described below.
## Basics
### `type`
### `type`
- type: `string`
- default: `fader`
### `id`
### `id`
- type: `string`
- default: generated unique 'widget_n'
- usage: widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages.
### `linkId`
- type: `string`
### `linkId`
- type: `string|array`
- default: `empty`
- usage: widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.
- usage:
- widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.
- when prefixed with `>>`, the linkId will make the widget act as a master (sending but not receiving)
- when prefixed with `<<`, the linkId will make the widget act as a slave (receiving but not sending)
## Style
### `label`
### `label`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string|false`
- default: `auto`, which displays `id`
- usage:
- set to `false` to hide completely
- insert icons from [FontAwesome](http://fontawesome.io/icons/) using the prefix `^` followed by the icon's name : `made with ^heart`, etc
- insert icons from [FontAwesome](https://fontawesome.com/icons?d=gallery&s=solid&m=free) using the prefix `^` followed by the icon's name : `made with ^heart`, etc
### `top` / `left`
### `top`<i class="dynamic-prop-icon" title="dynamic"></i> / `left`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `number|percentage`
- default: `auto`
- usage:
@ -36,53 +38,61 @@ All widgets share a set of generic properties described below.
- otherwise, the widget will be absolutely positioned
### `width` / `height`
### `width`<i class="dynamic-prop-icon" title="dynamic"></i> / `height`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `number|percentage`
- default: `auto`
### `color`
### `color`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string`
- default: `auto`, inherited accent color
- usage: any valid `css` color code is valid, this will change the default accent color for the widget and all its children
### `css`
### `css`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string`
- default: *empty*
- usage: the `css` property can be used to override inherited [theming](../extras/theming.md) variables. Also, some widgets expose specific theming variables that allow a finer customization. Standard `css` properties can be applied to the widget's root element through this property, `css` selectors can also be used apply custom styles to the widget's children.
- examples:
- `border-radius:5rem; .label {font-size: 20rem}` will round the widget's corners and increase its label's font-size and all its children's labels'
- `border-radius:5rem; > .label {font-size: 20rem}` will round the widget's corners and increase its label's font-size (the `>` selector targets only the direct children of the widget element)
- usage: applies CSS rules to widget. See [css tips](../extras/css-tips.md).
## Value
### `default`
- type: `*`
- default: `empty`
- usage: if set, the widget will be initialized with this `value` when the session is loaded. Some widgets use this property under specific conditions (see fader's `doubleTap` for example).
### `value`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `*`
- default: `empty`
- usage: set `value` to define a widget's value depending on other widget's values / properties using [property inheritance and property maths](../extras/advanced-property-syntax.md). When updated by an osc-sending event (e.g. dragging a slider), the widget will send its own osc message as well.
!!! note ""
`default` and `value` must match the widget's value type (ie a `number` for sliders, an `array` for pads, etc) and restrictions (equal to `on` or `off` for a push/toggle button)
## OSC
### `value`
- type: `*`
- default: `empty`
- usage: if set, the widget will be initialized with this `value`. This won't affect linked widgets and won't send any osc message.
- note: its `type` must match the widget's value type (ie a `number` for sliders, an `array` for pads, etc).
### `precision`
- type: `integer`
### `precision`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `integer|string`
- default: `2`
- usage: the `precision` property defines the number of decimals to display and to send. Set to `0` to send `integers` only.
- usage: the `precision` property defines the number of decimals to display and to send.
- set to `0` to send `integers` only.
- a specific data type can be specified by appending a valid osc type tag to the precision value, for example : `3d` will make the widget send double precision numbers rounded to three decimals
### `target`
- type: `array`
### `target`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `array|string`
- default: `[]`
- usage:
- this defines the targets of the widget's osc messages
- each element of the `array` must be a string formatted as follows : `"ip:port"`
- multiple targets can be specified : `["ip1:port1","ip2:port2"]`
- a single target can be set : `ip:port`
- if [`midi`](../extras/midi.md) is enabled, targets can be `"midi:device_name"`
- special item `"self"` can be used to refer to the emitting client directly
- if no target is set (empty array `[]`), messages can still be sent if the server has defaults targets (`-s / --send`)
- to disable osc regardless of the previous point, set `target` to `[null]`
- to disable the default global osc targets (set via the app's `--send` option), set one of the array's item as `null` (unquoted).
### `address`
### `address`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `string`
- default: `/widgets_id`
- usage: this is the `address` of the osc messages sent by the widget, it must start with a `/`
@ -95,12 +105,13 @@ All widgets share a set of generic properties described below.
/touch/address [preArgs] 0/1
```
### `preArgs`
- type: `array`
### `preArgs`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `array|*`
- default: `[]`
- usage:
- each element of the `array` defines a constant value that will be prepended to the osc message
- values can be defined as objects if the type needs to be specified (ie different from the default implied by the `precision`)
- values can be defined as objects if the osc data type needs to be specified (ie different from the default implied by the `precision` option)
- a single non-array value can be set
- example:
```js
preArgs: [
@ -125,3 +136,11 @@ preArgs: [
}
]
```
### `bypass`<i class="dynamic-prop-icon" title="dynamic"></i>
- type: `boolean`
- default: `false`
- usage: set to `true` to prevent the widget from sending any osc message
!!! note ""
Changing OSC properties dynamically using advanced property syntax is likely to break synchronisation between multiple clients.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -1,101 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="146.75555mm"
height="146.75555mm"
viewBox="0 0 520 519.99999"
id="svg2"
version="1.1"
inkscape:version="0.92.1 r15371"
enable-background="new"
sodipodi:docname="logo-material.svg"
inkscape:export-filename="/home/bordun/Ammd/open-stage-control/resources/images/logo.png"
inkscape:export-xdpi="44.307693"
inkscape:export-ydpi="44.307693">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="0.60172068"
inkscape:cx="365.73236"
inkscape:cy="375.30189"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1024"
inkscape:window-height="768"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
showguides="true" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1">
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.505;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#fffbff;fill-opacity:0.79365081;fill-rule:nonzero;stroke:#ffffff;stroke-width:7.49999965;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 261.27684,38.57666 c -138.98447,0 -252.0208589,113.03638 -252.0208589,252.02086 0,70.16669 28.8215489,133.70969 75.2362029,179.44335 L 108.65112,445.88194 C 68.506687,406.42298 43.635863,351.4771 43.635863,290.59752 c 0,-120.40349 97.237497,-217.640978 217.640977,-217.640979 120.4035,0 217.64098,97.237489 217.64098,217.640979 0,61.10926 -25.05967,116.23905 -65.47118,155.72937 l 24.15894,24.15893 c 46.68197,-45.76612 75.69579,-109.49245 75.69579,-179.8883 0,-138.98448 -113.04005,-252.02086 -252.02453,-252.02086 z"
id="circle942"
inkscape:connector-curvature="0"
inkscape:transform-center-x="1.8122676"
inkscape:transform-center-y="-32.620818" />
<circle
style="opacity:0.819;fill:#fbfbfb;fill-opacity:1;stroke:none;stroke-width:41.35679245;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.33160622"
id="circle940"
cx="261.27762"
cy="290.5976"
r="168.40112" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#52a8ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:34.38120651;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 261.27571,38.574572 c -138.98447,0 -252.0215348,113.037068 -252.0215348,252.021528 0,69.81688 28.5311308,133.08046 74.5395508,178.76343 L 107.95269,445.20057 C 68.216666,405.79166 43.638798,351.12389 43.638798,290.5961 c 0,-120.40348 97.233432,-217.639483 217.636912,-217.639483 60.52778,0 115.19555,24.580443 154.60444,64.316463 l 24.15896,-24.15896 C 394.35617,67.105818 331.09248,38.574572 261.27571,38.574572 Z"
id="circle944"
inkscape:connector-curvature="0" />
<circle
r="169.31087"
cy="290.5976"
cx="261.27762"
id="circle938"
style="opacity:1;fill:none;fill-opacity:1;stroke:#fff6ff;stroke-width:5.07821894;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="opacity:1;fill:none;stroke:#52a8ff;stroke-width:35.16100311;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 389.38926,163.59698 278.09817,275.90931"
id="path956"
inkscape:connector-curvature="0" />
<path
inkscape:transform-center-y="-32.620818"
inkscape:transform-center-x="1.8122676"
inkscape:connector-curvature="0"
id="path4487"
d="m 261.27684,38.57666 c -138.98447,0 -252.0208589,113.03638 -252.0208589,252.02086 0,70.16669 28.8215489,133.70969 75.2362029,179.44335 L 108.65112,445.88194 C 68.506687,406.42298 43.635863,351.4771 43.635863,290.59752 c 0,-120.40349 97.237497,-217.640978 217.640977,-217.640979 120.4035,0 217.64098,97.237489 217.64098,217.640979 0,61.10926 -25.05967,116.23905 -65.47118,155.72937 l 24.15894,24.15893 c 46.68197,-45.76612 75.69579,-109.49245 75.69579,-179.8883 0,-138.98448 -113.04005,-252.02086 -252.02453,-252.02086 z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.819;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:none;fill-opacity:0.33160622;fill-rule:nonzero;stroke:#989898;stroke-width:7.49999965;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="svg869"
width="152.39748"
height="152.39748"
viewBox="0 0 152.39747 152.39747"
sodipodi:docname="logo-nobadge.svg"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
inkscape:export-filename="/home/bordun/Dev/open-stage-control/resources/images/logo-nobadge.png"
inkscape:export-xdpi="128.47"
inkscape:export-ydpi="128.47">
<metadata
id="metadata875">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1024"
inkscape:window-height="732"
id="namedview871"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="1.0826988"
inkscape:cx="68.419328"
inkscape:cy="35.281297"
inkscape:window-x="465"
inkscape:window-y="174"
inkscape:window-maximized="0"
inkscape:current-layer="layer2"
showguides="true"
inkscape:pagecheckerboard="true" />
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2"
style="display:inline"
transform="translate(-27.577888,-27.577888)">
<circle
style="opacity:0.25;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#52a8ff;stroke-width:9.8682642;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1248"
cx="103.94808"
cy="103.94808"
r="71.093147" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#52a8ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:9.8682642;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:3.94730568;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="M 95.689453,19.320312 C 53.570636,19.320161 19.320161,53.570636 19.320312,95.689453 v 0.002 0.002 c 0.0188,20.287517 8.112393,39.739747 22.490235,54.052727 l 3.488281,3.47071 3.480469,-3.47657 c 1.170641,-1.1695 2.479275,-2.4813 3.683594,-3.68554 a 66.450541,66.450541 0 0 1 -8.574219,-8.84375 c -0.778679,-0.96909 -1.532773,-1.95573 -2.253906,-2.96289 a 66.450541,66.450541 0 0 1 -1.396485,-2.0293 c -0.80336,-1.214 -1.558656,-2.45633 -2.279297,-3.7168 A 66.450541,66.450541 0 0 1 37.111328,127 c -0.897256,-1.66796 -1.717662,-3.37537 -2.46875,-5.11133 a 66.450541,66.450541 0 0 1 -0.277344,-0.65625 c -0.806112,-1.91929 -1.517819,-3.87702 -2.140625,-5.86523 a 66.450541,66.450541 0 0 1 -0.0293,-0.0957 C 30.237383,108.98786 29.196062,102.39776 29.18945,95.689463 v -0.002 -0.002 c 0.002,-36.782445 29.713649,-66.494101 66.496094,-66.496094 h 0.0039 c 15.991786,0.01465 31.342816,5.83597 43.363276,16.216797 -4.71457,4.724703 -11.30899,11.327736 -16.77929,16.808594 a 42.789684,42.789684 0 0 1 6.99609,6.96289 c 6.75716,-6.770561 14.8928,-14.917957 20.41992,-20.457031 L 153.16797,45.236328 149.68945,41.75 C 135.38,27.407791 115.95315,19.337687 95.693359,19.320312 h -0.002 z"
transform="translate(8.257576,8.257576)"
id="circle4863"
inkscape:connector-curvature="0" />
<circle
r="15.22825"
cy="103.94808"
cx="103.94808"
id="circle1241-3"
style="display:inline;opacity:1;fill:#52a8ff;fill-opacity:1;stroke:#52a8ff;stroke-width:4.52424622;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 264 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before After
Before After

View file

@ -10,231 +10,96 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="146.75555mm"
height="146.75555mm"
viewBox="0 0 520 519.99999"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
enable-background="new"
sodipodi:docname="logo.svg"
inkscape:export-filename="/home/bordun/Ammd/open-stage-control/resources/images/logo.png"
inkscape:export-xdpi="44.307693"
inkscape:export-ydpi="44.307693">
<defs
id="defs4">
<linearGradient
inkscape:collect="always"
id="linearGradient4297">
<stop
style="stop-color:#ffffff;stop-opacity:0.10714286"
offset="0"
id="stop4299" />
<stop
style="stop-color:#283143;stop-opacity:0;"
offset="1"
id="stop4301" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4259">
<stop
style="stop-color:#85c2ff;stop-opacity:0.29761904"
offset="0"
id="stop4261" />
<stop
style="stop-color:#85c2ff;stop-opacity:0;"
offset="1"
id="stop4263" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4259"
id="linearGradient4265"
x1="-193.99495"
y1="85.18219"
x2="-193.99495"
y2="545.25653"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4297"
id="linearGradient4305"
x1="-193.34166"
y1="59.609463"
x2="-201.81757"
y2="580.39752"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.25865385"
inkscape:cx="-205.39515"
inkscape:cy="617.86431"
inkscape:document-units="px"
inkscape:current-layer="g4138"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1022"
inkscape:window-height="730"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="0"
showguides="true" />
id="svg869"
width="191.29887"
height="191.29887"
viewBox="0 0 191.29887 191.29887"
sodipodi:docname="logo-2.svg"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)">
<metadata
id="metadata7">
id="metadata875">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(68.571426,-55.21936)"
id="g4138"
inkscape:groupmode="layer"
inkscape:label="ring"
style="display:inline;opacity:1">
<circle
style="opacity:1;fill:#283143;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:15;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:1"
id="circle4979"
cx="-191.42857"
cy="315.21936"
r="234.28572"
transform="scale(-1,1)" />
<circle
transform="scale(-1,1)"
cy="315.21936"
cx="-191.42857"
id="circle4180"
style="opacity:1;fill:#283143;fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient4265);stroke-width:14.55027962;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:1"
r="227.26151" />
</g>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1024"
inkscape:window-height="732"
id="namedview871"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="1.0826988"
inkscape:cx="41.558745"
inkscape:cy="54.862386"
inkscape:window-x="0"
inkscape:window-y="36"
inkscape:window-maximized="0"
inkscape:current-layer="layer2"
showguides="true"
inkscape:pagecheckerboard="true" />
<g
inkscape:groupmode="layer"
id="layer6"
inkscape:label="knob center"
id="layer2"
inkscape:label="Layer 2"
style="display:inline"
sodipodi:insensitive="true">
transform="translate(-8.257576,-8.257576)">
<circle
style="opacity:1;fill:#324056;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:0.41089107"
id="path4179"
r="63.481098"
cy="258.8757"
cx="263.81882" />
r="95.649437"
cy="103.90701"
cx="103.90701"
id="circle933"
style="display:inline;opacity:1;fill:#313f55;fill-opacity:1;stroke:none;stroke-width:6.05208206;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<circle
cx="263.81882"
cy="258.8757"
r="62.471825"
id="circle4190"
style="opacity:1;fill:#324056;fill-opacity:1;fill-rule:nonzero;stroke:#85c2ff;stroke-width:1.96820235;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:0.09803922" />
</g>
<g
inkscape:groupmode="layer"
id="layer7"
inkscape:label="knob track"
style="display:inline"
sodipodi:insensitive="true">
<g
id="g4203">
<circle
r="144.47998"
cy="-367.7128"
cx="0.016809432"
style="opacity:0;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#2d2d2d;stroke-width:14.92252636;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:1"
id="path4972"
transform="matrix(-0.70710678,0.70710678,-0.70710678,-0.70710678,0,0)"
inkscape:transform-center-x="-111.67956"
inkscape:transform-center-y="-6.3381804" />
<path
inkscape:transform-center-y="-6.3381804"
inkscape:transform-center-x="-111.67956"
sodipodi:cx="0.016809432"
sodipodi:cy="-367.7128"
sodipodi:rx="144.47998"
sodipodi:ry="144.47998"
sodipodi:end="4.712389"
sodipodi:start="3.0194196"
sodipodi:open="true"
sodipodi:type="arc"
d="M -143.38624,-350.10512 A 144.47998,144.47998 0 0 1 -108.1923,-463.44813 144.47998,144.47998 0 0 1 0.01681227,-512.19278"
transform="matrix(-0.70710678,0.70710678,-0.70710678,-0.70710678,0,0)"
id="path3340"
style="opacity:0.52600002;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#191f2a;stroke-width:8;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:1" />
<path
inkscape:transform-center-y="-21.652282"
inkscape:transform-center-x="25.310703"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#52a8ff;stroke-width:8;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:1"
id="path4383"
sodipodi:type="arc"
sodipodi:cx="0.016809432"
sodipodi:cy="-367.7128"
sodipodi:rx="144.47998"
sodipodi:ry="144.47998"
sodipodi:start="0"
sodipodi:end="3.1590459"
sodipodi:open="true"
d="m 144.49679,-367.7128 a 144.47998,144.47998 0 0 1 -72.969145,125.54149 144.47998,144.47998 0 0 1 -145.201775,-1.26715 144.47998,144.47998 0 0 1 -70.76704,-126.79586"
transform="matrix(-0.70710678,0.70710678,-0.70710678,-0.70710678,0,0)" />
</g>
</g>
<g
inkscape:groupmode="layer"
id="layer8"
inkscape:label="knob"
style="display:inline"
sodipodi:insensitive="true">
style="opacity:0.25;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#52a8ff;stroke-width:9.8682642;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path1248"
cx="103.94808"
cy="103.94808"
r="71.093147" />
<circle
style="opacity:1;fill:#52a8ff;fill-opacity:1;fill-rule:nonzero;stroke:#52a8ff;stroke-width:45.92961884;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:0.33160622"
id="path4150"
cx="357.68915"
cy="154.52687"
r="19.711832"
inkscape:transform-center-x="-0.1829093"
inkscape:transform-center-y="-0.26599212" />
</g>
<g
inkscape:groupmode="layer"
id="layer9"
inkscape:label="text">
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:65.30352783px;line-height:125%;font-family:'Open Sans';-inkscape-font-specification:'Open Sans';letter-spacing:-4.78892565px;word-spacing:0px;fill:#5c91fe;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="198.33574"
y="411.88702"
id="text4998"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan5000"
x="198.33574"
y="411.88702"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'Droid Sans';-inkscape-font-specification:'Droid Sans';fill:#5c91fe;fill-opacity:1">OSC</tspan></text>
</g>
<g
style="display:inline;opacity:1"
inkscape:label="Copie de ring"
inkscape:groupmode="layer"
id="g4283"
transform="translate(68.571426,-55.21936)"
sodipodi:insensitive="true">
cx="103.90701"
cy="103.90701"
r="95.649437"
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:5;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="circle935" />
<path
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:#52a8ff;stroke-width:9.8682642;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:3.94730568;stroke-opacity:1"
d="m 103.94708,32.512665 a 71.434158,71.434158 0 0 0 -71.434415,71.434415 71.434158,71.434158 0 0 0 21.03688,50.55944 C 87.639333,120.45 128.86768,79.135788 154.45512,53.493007 A 71.434158,71.434158 0 0 0 103.94708,32.512665 Z"
id="circle4863"
inkscape:connector-curvature="0" />
<path
style="display:inline;opacity:1;fill:#313f55;fill-opacity:1;stroke:none;stroke-width:10.82293892;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 57.180757,56.782429 a 66.450541,66.450541 0 0 0 -19.682562,47.164651 66.450541,66.450541 0 0 0 66.448885,66.45146 66.450541,66.450541 0 0 0 47.35225,-19.91386 z"
id="circle1221"
inkscape:connector-curvature="0" />
<circle
transform="scale(-1,1)"
r="234.28572"
cy="315.21936"
cx="-191.42857"
id="circle4285"
style="opacity:0.57300002;fill:url(#linearGradient4305);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:15;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:10;stroke-opacity:1" />
r="42.789684"
cy="103.94808"
cx="103.94808"
id="circle933-5"
style="display:inline;opacity:1;fill:#313f55;fill-opacity:1;stroke:none;stroke-width:6.96924591;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<circle
r="15.22825"
cy="103.94808"
cx="103.94808"
id="circle1241-3"
style="display:inline;opacity:1;fill:#52a8ff;fill-opacity:1;stroke:#52a8ff;stroke-width:4.52424622;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before After
Before After

BIN
resources/images/mockup.xcf Normal file

Binary file not shown.

View file

@ -1,40 +1,54 @@
site_name: Open Stage Control
repo_name: open-stage-control
repo_url: https://github.com/jean-emmanuel/open-stage-control
edit_uri: tree/master/resources/docs/
copyright: "Open Stage Control is an <a href='http://ammd.net'>AMMD</a> software licensed under the <a href='https://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE'>GNU/GPLv3</a> License"
site_description: "A libre desktop OSC bi-directionnal control surface application."
site_description: "Libre and modular OSC / MIDI controller"
theme_dir: mkdocs-material/material
site_favicon: img/logo.png
extra:
theme:
name: 'material'
custom_dir: 'mkdocs-material/material'
feature:
tabs: false
logo: img/logo-material.svg
tabs: true
favicon: 'img/logo-nobadge.png?1'
language: 'en'
logo: 'img/logo-nobadge.svg'
palette:
primary: 'blue grey'
accent: 'light blue'
font:
text: 'Roboto'
code: 'Roboto Mono'
extra_css:
- 'css/extra.css'
pages:
- Open Stage Control: index.md
- OSC Control Surface: index.md
- Getting started: getting-started.md
- User interface: interface.md
- Editing sessions: editing-sessions.md
- Widgets reference:
- Widget properties: widgets/widgets.md
- Containers: widgets/containers.md
- Sliders: widgets/sliders.md
- Pads: widgets/pads.md
- Buttons: widgets/buttons.md
- Switchers: widgets/switchers.md
- Plots: widgets/plots.md
- Matrices: widgets/matrices.md
- Maths: widgets/maths.md
- Widgets reference: widgets-reference.md
# - Widget properties: widgets/widgets.md
# - Containers: widgets/containers.md
# - Sliders: widgets/sliders.md
# - Pads: widgets/pads.md
# - Buttons: widgets/buttons.md
# - Switchers: widgets/switchers.md
# - Plots: widgets/plots.md
# - Matrices: widgets/matrices.md
# - Inputs: widgets/inputs.md
# - Maths: widgets/maths.md
- Extras:
- Property inheritance: extras/property-inheritance.md
- Advanced property syntax: extras/advanced-property-syntax.md
- CSS Tips: extras/css-tips.md
- Theming: extras/theming.md
- URL options: extras/url-options.md
- Remote control: extras/remote-control.md
- Custom module: extras/custom-module.md
- Midi: extras/midi.md
- Examples: examples.md
- Credits: credits.md
markdown_extensions:
- markdown.extensions.admonition

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

@ -0,0 +1,98 @@
var build = require('./build'),
path = require('path'),
babelify = require('babelify'),
nanohtml = require('nanohtml'),
watch = process.argv.includes('--watch'),
prod = process.argv.includes('--prod'),
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(babelify)],
[transformWrapper(nanohtml)]
]
if (prod) {
console.warn('\033[36m=> Building minified client bundle, this may take a while...\033[0m')
transforms.push([transformWrapper(require('uglifyify')), {global: 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()
}

44
scripts/build-css.js Normal file
View file

@ -0,0 +1,44 @@
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.readdirSync(indir + '/themes/').forEach(file => {
if (file.includes('.scss') && file !== 'default.scss') {
let result = sass.renderSync({
file: indir + '/themes/' + file,
outputStyle: 'compressed'
})
fs.writeFileSync(outdir + '/themes/' + file.split('/').pop().replace('scss', 'css'), result.css)
}
})
var result = sass.renderSync({
file: indir + '/index.scss',
outFile: outdir + '/open-stage-control.css',
outputStyle: 'compressed',
sourceMap: true
})
fs.writeFileSync(outdir + '/open-stage-control.css', result.css)
fs.writeFileSync(outdir + '/open-stage-control.css.map', result.map)
if (process.argv.includes('--reload')) {
var WS = require('../node_modules/ws')
var ipc = new WS('ws://127.0.0.1:8080/dev')
ipc.on('error', ()=>{})
ipc.on('open', ()=>{
ipc.send('["reloadCss"]')
process.exit()
})
}

View file

@ -1,25 +0,0 @@
var browserify = require('browserify'),
licensify = require('licensify'),
exorcist = require('exorcist'),
path = require('path'),
babelify = require('babelify'),
prod = process.argv.indexOf('--prod') != -1,
fast = process.argv.indexOf('--fast') != -1,
b
if (prod) console.warn('\x1b[36m%s\x1b[0m', 'Building minified js bundle for production... This may take a while... ');
b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'), {debug:!fast})
b.plugin(licensify)
b = b.transform(babelify, {presets: ["env"]})
if (prod) b = b.transform('uglifyify', {global: true})
b = b.bundle()
if (!fast) b = b.pipe(exorcist(path.resolve(__dirname + '/../app/browser/scripts.js.map')))
b.pipe(process.stdout)

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']
}
})()

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

@ -0,0 +1,23 @@
var build = require('./build')
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'
})()

View file

@ -0,0 +1,103 @@
require('./client-shim')
// Here we go
var widgets = require('../src/client/app/widgets'),
baseClass = require('../src/client/app/widgets/common/widget'),
base = baseClass.defaults(),
doc = []
doc.push(`
## Generic properties
| property | type |default | description |
| --- | --- | --- | --- |`
)
for (var propName in base) {
var prop = base[propName],
permalink = propName
if (propName[0] === '_' && propName !== '_props') {
doc.push(`
| <h4 class="thead2" id="${prop}">${prop}<a class="headerlink" href="#${prop}" title="Permanent link"></a></h4> ||||`
)
}
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) ? '<i class="dynamic-prop-icon" title="dynamic"></i>' : ''
doc.push(`
| <h4 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link"></a></h4> | \`${prop.type.replace(/\|/g,'\`\\|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, '&nbsp;') || '').replace(/\n/g,'<br/>')}</code> | ${help} |`
)
}
for (var k in widgets.categories) {
var category = widgets.categories[k]
doc.push(`
## ${k}`
)
for (var kk in category) {
var type = category[kk],
defaults = widgets.widgets[type].defaults(),
separator = false
doc.push(`
### ${type}
| property | type |default | description |
| --- | --- | --- | --- |`
)
for (var propName in defaults) {
var prop = defaults[propName],
permalink = type + '_' + propName
if (propName[0] === '_' && propName !== '_props') {
if (separator) doc.pop()
doc.push(`
| <h4 class="thead2" id="${type + '_' + prop}">${prop}<a class="headerlink" href="#${type + '_' + prop}" title="Permanent link"></a></h4> ||||`
)
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) ? '<i class="dynamic-prop-icon" title="dynamic"></i>' : ''
doc.push(`
| <h4 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link"></a></h4> | \`${prop.type.replace(/\|/g,'\`\\|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, '&nbsp;') || '').replace(/\n/g,'<br/>')}</code> | ${help} |`
)
separator = false
}
if (separator) doc.pop()
}
}
doc.push(`\n\n
<script>
document.querySelectorAll('.thead2').forEach(function(item){
item.classList.remove('thead2')
item.closest('tr').classList.add('thead2')
})
</script>
`)
console.log(doc.join('').replace(/^ +/gm,''))

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
}

58
scripts/client-shim.js Normal file
View file

@ -0,0 +1,58 @@
// Dirty browser window shim
document = {
createElement: x=>({
nodeName: '',
childNodes: [],
setAttribute: ()=>{},
appendChild: ()=>{},
lastChild: {},
toString: ()=>' ',
removeChild: ()=>{}
}),
createTextNode: x=>({
nodeValue: '',
nodeName: '',
childNodes: [],
setAttribute: ()=>{},
appendChild: ()=>{},
lastChild: {},
toString: ()=>' '
}),
createElementNS: x=>[],
addEventListener: ()=>{},
createRange: ()=>{
return {
createContextualFragment:()=>{return {
firstChild: {
querySelectorAll: x=>[]
}
}},
selectNode: ()=>{}
}
},
body: {
appendChild: ()=>{}
}
}
window = {
addEventListener: ()=>{},
location: {},
document: document,
navigator: {
platform:''
},
NodeList: Array,
WebSocket: Object
}
Object.assign(global, window)
// Required globals
DOM = require('../src/client/app/dom')
DOM.get = x=>[{addEventListener:()=>{}}]
DOM.init()
CANVAS_FRAMERATE = 1
LANG = 'en'

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

@ -0,0 +1,44 @@
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'],
]
for (var i in files) {
cpr(...files[i].map(f => path.resolve(__dirname + '/' + f)), {})
}
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, ' '))

16
scripts/package-node.js Normal file
View file

@ -0,0 +1,16 @@
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']
cpr(...files.map(f => path.resolve(__dirname + '/' + f)), {
filter: /node_modules\/(serialport|uws)/,
overwrite: true
}, ()=>{
console.warn('\x1b[36m%s\x1b[0m', '=> Build artifacts created in ' + path.resolve(__dirname + '/../dist'))
})

26
scripts/package.js Normal file
View file

@ -0,0 +1,26 @@
const packager = require('electron-packager'),
path = require('path'),
appData = require('../app/package.json'),
safeFFMPEG = require('electron-packager-plugin-non-proprietary-codecs-ffmpeg').default
var rpi = process.argv.includes('--rpi'),
all = process.argv.includes('--all')
packager({
dir: path.resolve(__dirname + '/../app'),
name: appData.name,
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'),
ignore: /node_modules\/(serialport|uws)/,
afterExtract: [safeFFMPEG],
prune: false
}).then(()=>{
console.warn('\x1b[36m%s\x1b[0m', '=> Build artifacts created in ' + path.resolve(__dirname + '/../dist'))
})

View file

@ -1,5 +0,0 @@
var socket = require('socket.io-client')
var ipc = socket.connect('http://127.0.0.1:8080')
ipc.emit('reloadCss')
setTimeout(process.exit,500)

View file

@ -1,59 +0,0 @@
var correctPosition = function (m, parent){
var pos = m.offset(),
width = m.outerWidth(),
height = m.outerHeight(),
totalWidth = $('body').outerWidth(),
totalHeight = $('body').outerHeight(),
leftAdjust = parent=='body'?0:parent.outerWidth()-2
if (width + pos.left > totalWidth) {
m.css({'margin-left':totalWidth-(width + pos.left + leftAdjust)})
}
if (height + pos.top > totalHeight) {
m.css({'margin-top':totalHeight-(height + pos.top)})
}
}
var ev = 'fake-click'
var menu = function(e,actions,parent){
var m = $('<div class="context-menu"></div>')
if (parent=='body') {
m.css({top:e.pageY+'px',left:e.pageX+'px'})
}
for (let label in actions) {
if (typeof actions[label] == 'object') {
var item = $(`<div class="item has-sub" tabIndex="1">${label}</div>`).appendTo(m).on(ev,function(e){e.stopPropagation()})
menu(e,actions[label],item)
} else {
$(`<div class="item">${label}</div>`).on(ev + '.editor',function(){
var callback = actions[label]
return function(e){
callback()
$('.context-menu').remove()
}
}()).appendTo(m)
}
}
m.appendTo(parent)
if (parent=='body') {
correctPosition(m,parent)
} else {
parent.hover(function(){correctPosition(m,parent)})
}
}
module.exports = menu

View file

@ -1,160 +0,0 @@
var editObject = function(){editObject = require('./edit-objects').editObject; editObject(...arguments)},
purgeStores = require('./purge'),
{iconify} = require('../utils'),
widgetManager = require('../managers/widgets'),
parser = require('../parser')
var getObjectData = function(obj){
var path = []
if (obj.hasClass('widget')) {
return obj[0].abstract.props
} else {
return obj.closest('.widget')[0].abstract.props
}
}
var updateDom = function(container,data, remote) {
// save state
var scroll = $('#sidepanel').scrollTop(),
oldWidgets = container[0].abstract.hashes || [container[0].abstract.hash],
wState = {},
wScroll = {}
for (let h of oldWidgets) {
if (widgetManager.widgets[h] && widgetManager.widgets[h].getValue) {
wState[widgetManager.widgets[h].getProp('id')] = widgetManager.widgets[h].getValue()
}
}
// save scroll states
for (let h of widgetManager.scrollingWidgets) {
if (widgetManager.widgets[h] && widgetManager.widgets[h].scroll) {
wScroll[widgetManager.widgets[h].getProp('id')] = widgetManager.widgets[h].scroll()
}
}
// widget
var newContainer = parser.parse([data], container[0].abstract.parentNode, container[0].abstract.parent)
container.replaceWith(newContainer)
if (data.type == 'tab') newContainer.trigger('tab-created')
if (container[0].abstract.parent && container[0].abstract.parent.registerHashes) {
container[0].abstract.parent.registerHashes(true)
}
$('.editor-root').attr('data-widget', $('.root-container').attr('data-widget'))
newContainer.trigger('resize')
purgeStores(oldWidgets)
// restore state
for (let id in wState) {
for (let w of widgetManager.getWidgetById(id)) {
if (w.setValue) w.setValue(wState[id])
}
}
// restore scroll states
for (let id in wScroll) {
for (let w of widgetManager.getWidgetById(id)) {
if (w.scroll) w.scroll(wScroll[id])
}
}
if (!remote) {
editObject(newContainer,data,true)
}
$('#sidepanel').scrollTop(scroll)
// return updated node
return newContainer
}
var fakeStore = {}
var incrementWidget = function(data, root){
if (!data) return
if (root !== false) {
fakeStore = {
id:[],
address:[]
}
}
delete data.linkId
var id = data.id,
label = data.label,
address = data.address
if (id && id==label) {
data.label = 'auto'
}
if (id && address == '/'+id) {
data.address = 'auto'
} else if (address){
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
return n
})
addressref = widgetManager.createAddressRef(null, data.preArgs,address)
}
fakeStore.address.push(address)
data.address = address
}
if (id) {
while (fakeStore.id.indexOf(id) != -1 || widgetManager.getWidgetById(id).length) {
id = id.replace(/([0-9]*)$/,function(m){
var n = parseInt(m)+1
n = isNaN(n)?1:n
return n
})
}
fakeStore.id.push(id)
data.id = id
}
if (data.widgets && data.widgets.length) {
for (let i in data.widgets) {
data.widgets[i] = incrementWidget(data.widgets[i], false)
}
}
if (data.tabs && data.tabs.length) {
for (let i in data.tabs) {
data.tabs[i] = incrementWidget(data.tabs[i], false)
}
}
return data
}
module.exports = {
updateDom:updateDom,
getObjectData:getObjectData,
incrementWidget:incrementWidget
}

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