Commit graph

631 commits

Author SHA1 Message Date
jean-emmanuel
565c6bfe41 canvas: a bit smarter framerate handling + framerate url option 2018-01-11 10:15:09 +01:00
jean-emmanuel
18ef775125 canvas: redraw on resize one frame earlier 2018-01-10 23:57:49 +01:00
jean-emmanuel
bc9cef5e9d events: missing widget "change" event migrations 2018-01-10 21:00:16 +01:00
jean-emmanuel
93d8391b5b canvas: batch all canvas operations to optimize perfs 2018-01-10 20:07:23 +01:00
jean-emmanuel
a0040ab488 events: 🎆 migrate from jquery custom events to non-dom event emitter ("change" event ok) 2018-01-10 20:03:29 +01:00
jean-emmanuel
cb86370cb4 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
66d48a38fc 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
74f59a5c9e parser: when applying "value" property, make widget emit "change" event 2018-01-05 16:58:36 +01:00
jean-emmanuel
59506a6b82 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
344b39a2fb 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
23df2be2e7 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
f675e05d7e widgets: move widget instance dom reference storing to constructor 2018-01-05 16:19:49 +01:00
jean-emmanuel
7a544b862d editor: context menu: unfocus non-submenu item on mouseout 2018-01-04 22:56:23 +01:00
jean-emmanuel
841ea9e19c editor: fix context menu regression (position correction) 2018-01-04 20:42:49 +01:00
jean-emmanuel
ec3113501e editor: keep context menu items open when the mouse leaves 2018-01-04 20:12:46 +01:00
jean-emmanuel
85785709c8 switch: log, doc and indentation fix 2018-01-04 14:56:36 +01:00
jean-emmanuel
c0a01813d5 switch: rename show_values to showValues and clean 2018-01-04 14:45:54 +01:00
cyberic99
85de70b29a Allow switch widgets to display "key: value" instead of the default "key" 2018-01-04 11:09:35 +01:00
jean-emmanuel
55298d001a 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
0b01829a1c property inheritance: trigger 'widget-created' after widget manager registration avoid ignoring widgets in resolveProp 2018-01-04 09:15:21 +01:00
jean-emmanuel
80c3ab8aa0 formula/mathjs: re-fix array to zero-based index instead of one-based index 2018-01-03 11:34:15 +01:00
jean-emmanuel
6cd29dbdd8 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
b0d5a8e06b property inheritance: don't add eventlistener when not needed 2018-01-02 22:09:28 +01:00
jean-emmanuel
18af57168b v8: fix some js optimization with the arguments object 2018-01-02 18:24:24 +01:00
jean-emmanuel
ea5521840d widgets: missing precision parameter in deepCopy 2018-01-02 15:16:26 +01:00
jean-emmanuel
ef52135525 text: apply target's precision to value 2018-01-02 13:59:06 +01:00
jean-emmanuel
8fcf7e2cf0 plots: emit change event to allow synchronization with other widgets 2018-01-02 13:55:02 +01:00
jean-emmanuel
3bc928ebe9 property inheritance: fix geometry not applying the rules 2018-01-02 12:08:32 +01:00
jean-emmanuel
e1d43b0e31 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
25d6f30ed3 widgets: put input's deepCopyWithPrecision in widgets base class 2018-01-02 11:51:56 +01:00
jean-emmanuel
2eb6c7b998 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
59aa447ff2 formula/keys: return arrays, not matrices 2017-12-31 14:56:10 +01:00
jean-emmanuel
184f8d203a keys; default repeat to true 2017-12-31 12:53:36 +01:00
jean-emmanuel
3e4899668d inputs: add keys widget (wip) (issue #57) 2017-12-31 12:41:41 +01:00
jean-emmanuel
179f48e1e1 formula: fix multiline expression parsing 2017-12-31 12:40:37 +01:00
jean-emmanuel
d86fd1f3d0 package: get source-map from npm, don't include it in sources 2017-12-30 11:30:03 +01:00
jean-emmanuel
c97d29acb5 range: fix relative dragging error outside of range boundaries 2017-12-27 21:51:53 +01:00
jean-emmanuel
8953c74ef2 range: set init value to range min/max 2017-12-27 20:28:09 +01:00
jean-emmanuel
73617beb9b remote control: /EDIT/GET add support for address/preArgs widget targetting (issue #56) 2017-12-26 15:31:43 +01:00
jean-emmanuel
5bca3e3ceb leds: tweak css 2017-12-26 15:14:24 +01:00
jean-emmanuel
e1b0ff9b39 sidepanel: fix broken quicksave (regression) 2017-12-25 09:01:11 +01:00
jean-emmanuel
679f523682 sliders: fix regression introduced with range widget 2017-12-22 17:47:18 +01:00
jean-emmanuel
9ee38507fd 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
658a097fd5 mouse/drag: high precision (x8) dragging with ctrlKey pressed 2017-12-22 12:03:17 +01:00
jean-emmanuel
492b117f49 input: rename prop horizontal to vertical 2017-12-21 13:16:06 +01:00
jean-emmanuel
c772f6ad77 input: fix horizontal mode when focused 2017-12-21 12:57:01 +01:00
jean-emmanuel
322c98ce6e remote control: add /SET method (issue #56) 2017-12-21 12:38:45 +01:00
jean-emmanuel
9651b2871c remote control: make /GET reply to /GET (with widget address in args) (issue #56) 2017-12-21 07:36:34 +01:00
jean-emmanuel
279663d53f remote control: /GET: disable broadcasting if target in invalid 2017-12-21 07:11:41 +01:00
jean-emmanuel
e0bb727c0c 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