Commit graph

441 commits

Author SHA1 Message Date
jean-emmanuel
52147ba0a6 osc receivers: apply the same rule as widgets regarding midi messages (only receive if the message's origin matches one of the host widget's midi targets) 2022-01-22 13:10:12 +01:00
jean-emmanuel
26207f0e70 clone/fragment: remove scripting properties as theyr are supposed to bo overriden in props 2022-01-22 11:40:58 +01:00
jean-emmanuel
feab5194d8 clone/fragment: broken onDraw / onTouch scripts if cloned widget is a canvas 2022-01-21 20:08:54 +01:00
jean-emmanuel
5e85baa278 scripting: regression: missing try catch on code compilation 2022-01-18 12:32:34 +01:00
jean-emmanuel
ddd94d377c docs: update 2022-01-17 18:16:57 +01:00
jean-emmanuel
66592fc68b lint 2022-01-16 23:09:59 +01:00
jean-emmanuel
c956d0d1e9 scripting: special keyword this now returns the string "this" 2022-01-16 23:04:04 +01:00
jean-emmanuel
e83f12eac4 widget: missing custom variables in a prop update routing 2022-01-16 20:25:34 +01:00
jean-emmanuel
cfa6bd7645 scripting: setVar not affecting all widgets when mutliple widgets match provided id 2022-01-16 20:25:24 +01:00
jean-emmanuel
ce86c41531 widget: prop update routine misses fragment check 2022-01-15 11:14:47 +01:00
jean-emmanuel
9917a024dd vm; avoid error with non string codes 2022-01-14 21:25:24 +01:00
jean-emmanuel
286cf2fbd2 widget: updatea dvanced syntax update routine 2022-01-14 13:55:18 +01:00
jean-emmanuel
5c08c7167e missing file 2022-01-13 13:56:07 +01:00
jean-emmanuel
73231ec5d4 scripting: fix legacy touch state 2022-01-13 13:16:24 +01:00
jean-emmanuel
df6f9e110a scripting: refactor script to reduce heap (builtin script are not widgets anymore)
script widget: add onKeyboard and remove onEvent
2022-01-13 11:53:58 +01:00
jean-emmanuel
6e6c0adc56 canvas: props order 2022-01-12 16:02:19 +01:00
jean-emmanuel
3c6a0a047b widget: remove some dangling handlers 2022-01-12 14:54:24 +01:00
jean-emmanuel
24db0ed984 scrpting: restore legacy touch state feature, deprecate it and replace with a more generic onTouch handler 2022-01-12 14:42:39 +01:00
jean-emmanuel
e466c66052 multixy: prevent leaving empty elements to be consumed by canvas ctx.clearRect() 2022-01-11 17:51:33 +01:00
jean-emmanuel
0178079fb8 import fragment syntax: always import as raw text 2022-01-10 15:41:25 +01:00
jean-emmanuel
708a62613d clean file import syntax bindings 2022-01-10 11:26:06 +01:00
jean-emmanuel
697f3e8acc wip ext file import syntax 2022-01-10 10:43:59 +01:00
jean-emmanuel
e11f994b8f script-vm: rm debug log 2022-01-09 18:10:55 +01:00
jean-emmanuel
7a216a5da7 fragment: unbind fragment-update listener at removal 2022-01-09 17:45:26 +01:00
jean-emmanuel
467b2cd4c2 - renamed script to onValue, draw to onDraw, touch to onTouch
- added `onCreate` script property to all widgets
2022-01-09 12:07:55 +01:00
jean-emmanuel
e8ce280308 script: setTimeout and clearTimeout should return an id 2022-01-08 17:40:33 +01:00
jean-emmanuel
52ecafd04b button.script: fix nasty bug where old value script may be called upon modification validated with a click on the button 2022-01-08 01:33:34 +01:00
jean-emmanuel
4ce9506e91 canvas: expose touch events for extra elements added with the html propery 2021-12-22 11:46:09 +01:00
jean-emmanuel
6b76631003 editor: update widget selection rectangle when the widget's size changes 2021-12-20 11:30:46 +01:00
jean-emmanuel
80c0f40106 editor: 2 spaces indent; add editor without syntax checking for containter.props 2021-12-17 09:26:20 +01:00
jean-emmanuel
f04c506ce3 root: add hideMenu option 2021-12-14 19:36:33 +01:00
jean-emmanuel
58872c2814 inspector: better layout for editor 2021-12-14 13:04:08 +01:00
jean-emmanuel
7c654e6412 console: attempt to fix line numbers in script errors 2021-12-13 18:56:49 +01:00
jean-emmanuel
fa27696b6f scripting: fix stateGet() 2021-12-13 18:54:11 +01:00
jean-emmanuel
1058cb551c inspector: code editor for script/touch/draw properties 2021-12-13 12:40:09 +01:00
jean-emmanuel
0a1b30416f button: safe script string search 2021-12-13 10:20:04 +01:00
jean-emmanuel
f173bc20d4 scripting: set(): add script flag to prevent script execution 2021-12-07 08:00:42 +01:00
jean-emmanuel
2f8f15939e canvas: doc links & better value length check 2021-12-06 17:18:01 +01:00
jean-emmanuel
31605085dd canvas widget: add valueLength option and multislider example 2021-12-06 14:06:51 +01:00
jean-emmanuel
6478d3362b canvas widget: call sync/script before send because we might need to reupdate the value before sending occurs 2021-12-06 12:20:33 +01:00
jean-emmanuel
3a872f6920 canvas widget: pretty much working 2021-12-06 12:01:05 +01:00
jean-emmanuel
df101eac0e lint 2021-12-05 16:45:07 +01:00
jean-emmanuel
8167f2c588 button: invert touchCoords y-axis for consistency with xy pads 2021-12-05 16:41:39 +01:00
jean-emmanuel
5371989084 button: touchCoords typos 2021-12-05 16:39:55 +01:00
jean-emmanuel
d11fd0c366 button: expose generic normalized touchCoords instead of velocity 2021-12-05 16:31:45 +01:00
jean-emmanuel
16a87b5b0b script: print warning when using advanced syntaxes in scripts. 2021-12-05 16:16:05 +01:00
jean-emmanuel
74fdf17efd button: early implementation of velocity property (maps touch y-coord to off-on value and expose it in script) 2021-11-21 15:49:25 +01:00
jean-emmanuel
57959bcdf6 panel: fix initial scroll 2021-11-20 12:40:43 +01:00
jean-emmanuel
897db8108d misc: print full debug stack in browser debug console in case widget.errorProp() is not precise enough 2021-10-22 12:39:48 +02:00
jean-emmanuel
899c40bdc2 script: print explicit error when script functions are called in the wrong scope (ie when leaked using the globals object) 2021-10-22 12:39:42 +02:00