-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Slider] New library for input via sliders #2953
Commits on Oct 17, 2023
-
libslider: new library with conf. slider
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 89f0df1 - Browse repository at this point
Copy the full SHA 89f0df1View commit details -
libslider: export method, add test app.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 1bc45a8 - Browse repository at this point
Copy the full SHA 1bc45a8View commit details -
libslider: tweaks to match changes in gadgetbridge
PR to Gadgetbridge: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3241
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 904935b - Browse repository at this point
Copy the full SHA 904935bView commit details -
libslider: link files to storage in metadata.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 18662e5 - Browse repository at this point
Copy the full SHA 18662e5View commit details -
thyttan committed
Oct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 0fb9569 - Browse repository at this point
Copy the full SHA 0fb9569View commit details -
libslider: tweaks to the lib and the test app
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 91055f1 - Browse repository at this point
Copy the full SHA 91055f1View commit details -
libslider: refactor to split logic and graphics
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for d25f09d - Browse repository at this point
Copy the full SHA d25f09dView commit details -
libslider: Add configurability.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 0a81020 - Browse repository at this point
Copy the full SHA 0a81020View commit details -
libslider: init w current android audio level
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 9909ff7 - Browse repository at this point
Copy the full SHA 9909ff7View commit details -
libslider: update and wait for volume level...
... from android before initiating the slider.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 3824a5e - Browse repository at this point
Copy the full SHA 3824a5eView commit details -
libslider: draw outer border only once on init
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 2b1d209 - Browse repository at this point
Copy the full SHA 2b1d209View commit details -
libslider: remove rounded corners ...
... to make debugging graphics easier.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for cdf10ac - Browse repository at this point
Copy the full SHA cdf10acView commit details -
libslider: graphics now behave on low levels...
... keeping the border intact. (Still some problems if the rectangle is given rounded corners)
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 4f5929b - Browse repository at this point
Copy the full SHA 4f5929bView commit details -
libslider: lock input method to first e.x position
Before you could alternate between 'increment' mode and 'map' mode by `drag`ing horizontally. Now you can't. This makes it much less likely to accidentally trigger near maximum level when you just wanted to increment the level.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 2ce848b - Browse repository at this point
Copy the full SHA 2ce848bView commit details -
libslider: move stopEventPropagation on top
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 3b17433 - Browse repository at this point
Copy the full SHA 3b17433View commit details -
Configuration menu - View commit details
-
Copy full SHA for a00fdc1 - Browse repository at this point
Copy the full SHA a00fdc1View commit details -
libslider: split and move to modules and test app
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 3c21342 - Browse repository at this point
Copy the full SHA 3c21342View commit details -
slidertest: remove slider test app
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 2ad99fe - Browse repository at this point
Copy the full SHA 2ad99feView commit details -
SliderInput: be lazy about running callback funct
only run if the sliders level was changed.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 3290332 - Browse repository at this point
Copy the full SHA 3290332View commit details -
SliderInput: default prevLevel to middle of range.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 49d8346 - Browse repository at this point
Copy the full SHA 49d8346View commit details -
SliderInput: add horizontal configuration
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for ffab963 - Browse repository at this point
Copy the full SHA ffab963View commit details -
SliderInput: refactor to not use LCD overlay
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 604350e - Browse repository at this point
Copy the full SHA 604350eView commit details -
SliderInput: (WIP) fix rotation after refactor
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for ead101b - Browse repository at this point
Copy the full SHA ead101bView commit details -
SliderInput: precalculate static rectangles
also remove unneeded variable 'levelHeight'
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for afa7fd9 - Browse repository at this point
Copy the full SHA afa7fd9View commit details -
SliderInput: load test app on load from Web IDE
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for c86fd34 - Browse repository at this point
Copy the full SHA c86fd34View commit details -
SliderInput: fix slider graphics
that was a little off after changing from using LCD overlay.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for abfca68 - Browse repository at this point
Copy the full SHA abfca68View commit details -
SliderInput: tweaks for showing multiple sliders
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for a7787ab - Browse repository at this point
Copy the full SHA a7787abView commit details -
SliderInput: default graphics depend on appRect
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 644d23a - Browse repository at this point
Copy the full SHA 644d23aView commit details -
SliderInput: add function to auto progress
making it possible to track progress in e.g. a song.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 87a8593 - Browse repository at this point
Copy the full SHA 87a8593View commit details -
SliderInput: contain config in an object
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 53242e8 - Browse repository at this point
Copy the full SHA 53242e8View commit details -
SliderInput:refactor to return obj w funcs & vars
... making it possible to interact with the slider reachable in the scope where the slider was initiated from.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 7e906ed - Browse repository at this point
Copy the full SHA 7e906edView commit details -
SliderInput: vim auto-format + format tweak
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for b69274f - Browse repository at this point
Copy the full SHA b69274fView commit details -
SliderInput: track active drag handler in variable
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 4ca116a - Browse repository at this point
Copy the full SHA 4ca116aView commit details -
SliderInput: add rectangle object to slider object
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for a353fdb - Browse repository at this point
Copy the full SHA a353fdbView commit details -
SliderInput: add
stopAutoUpdate
functionthyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 0f9cb53 - Browse repository at this point
Copy the full SHA 0f9cb53View commit details -
SliderInput: fix inability to initiate w level 0
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for f10ff21 - Browse repository at this point
Copy the full SHA f10ff21View commit details -
SliderInput: change name to "Slider.js"
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for c24499d - Browse repository at this point
Copy the full SHA c24499dView commit details -
Slider: add callback on auto progress
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 873fcca - Browse repository at this point
Copy the full SHA 873fccaView commit details -
Slider: make drawing borders optional
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 9f7b658 - Browse repository at this point
Copy the full SHA 9f7b658View commit details -
Slider: option to set border size
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 5b19330 - Browse repository at this point
Copy the full SHA 5b19330View commit details -
Slider: hide slider while still auto incrementing
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 5df5f56 - Browse repository at this point
Copy the full SHA 5df5f56View commit details -
Slider:add var containing the app to load on error
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for d157f51 - Browse repository at this point
Copy the full SHA d157f51View commit details -
Slider: draw directly when starting auto update
... if the slider should be drawn. Otherwise will just keep track of position to draw later.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 9407430 - Browse repository at this point
Copy the full SHA 9407430View commit details -
Slider: change to only add required parts
... depending on how the slider is configured when initializing. Assumed to reduce ram use, have not tested to see if it actually is an improvement in rem use or general performance in practice.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 9e978b2 - Browse repository at this point
Copy the full SHA 9e978b2View commit details -
Slider: list currLevel among the constants
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for ef650f5 - Browse repository at this point
Copy the full SHA ef650f5View commit details -
Slider: fix dy not initialized for increment mode
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 14dd207 - Browse repository at this point
Copy the full SHA 14dd207View commit details -
Slider: add ability to limit drag area
... of the sliders drag handler.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 8e6b9c7 - Browse repository at this point
Copy the full SHA 8e6b9c7View commit details -
Slider: vim auto format - no functional change
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 31a6de6 - Browse repository at this point
Copy the full SHA 31a6de6View commit details -
... and fix some warnings from Espruino Web IDE
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for eb00e69 - Browse repository at this point
Copy the full SHA eb00e69View commit details -
Slider: set timeoutID to
undefined
on remove... fixing interference with other timeouts where the same id was assigned to another timeout that would be deleted erroneously. This was tracked down because a timeout in the `spotrem` version being developed alongside this slider module would stop executing code.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 52fe14f - Browse repository at this point
Copy the full SHA 52fe14fView commit details -
Slider: refine drawing rounded sliders
So far only tested on a standard config width slider.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for cd4e4ab - Browse repository at this point
Copy the full SHA cd4e4abView commit details -
Slider: fix logic re rounded or not
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for d2f69df - Browse repository at this point
Copy the full SHA d2f69dfView commit details -
Slider:map input acounts for size & pos of slider
... and also if the slider is rounded.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for c2b2620 - Browse repository at this point
Copy the full SHA c2b2620View commit details -
Slider: fix level=0 on rounded horizontal sliders
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 6f4b876 - Browse repository at this point
Copy the full SHA 6f4b876View commit details -
Slider: fix map input for horizontal sliders
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 8c4ad72 - Browse repository at this point
Copy the full SHA 8c4ad72View commit details -
Slider:move laziness from draw fun to drag handler
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 5657492 - Browse repository at this point
Copy the full SHA 5657492View commit details -
Slider:tweak code re zero level on rounded sliders
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for b9c5245 - Browse repository at this point
Copy the full SHA b9c5245View commit details -
Slider: small refactor to shorten code
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 2444e75 - Browse repository at this point
Copy the full SHA 2444e75View commit details -
Slider: move
let incr
intowhile
scopethyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 98a6417 - Browse repository at this point
Copy the full SHA 98a6417View commit details -
Slider: refactor logic re auto progressing sliders
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 0952ad9 - Browse repository at this point
Copy the full SHA 0952ad9View commit details -
Slider: Assign empty function to cb if undefined
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for ecd4a7e - Browse repository at this point
Copy the full SHA ecd4a7eView commit details -
Slider: remove some unused vars and consts
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 573fa38 - Browse repository at this point
Copy the full SHA 573fa38View commit details -
Slider: Add some documentation
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 9c4fd1d - Browse repository at this point
Copy the full SHA 9c4fd1dView commit details -
Slider: Add some descriptive comments
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for a238086 - Browse repository at this point
Copy the full SHA a238086View commit details -
Slider: tweaks to Slider.md documentation
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 17f72c6 - Browse repository at this point
Copy the full SHA 17f72c6View commit details -
Slider:
ebLast
anddy
only needed with dragingthyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 9b1cfd4 - Browse repository at this point
Copy the full SHA 9b1cfd4View commit details -
Slider:use actual current level for auto progress
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for a9562b8 - Browse repository at this point
Copy the full SHA a9562b8View commit details -
Slider: tweak documentation in slider.md
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 795fec6 - Browse repository at this point
Copy the full SHA 795fec6View commit details -
Slider: reorder default config values
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 944da80 - Browse repository at this point
Copy the full SHA 944da80View commit details -
Slider:move draw and cb to deduplicate code
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 408990d - Browse repository at this point
Copy the full SHA 408990dView commit details -
Slider: ask what the screens height is
Should make this more likely to work on different size screens.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for bcb6e0c - Browse repository at this point
Copy the full SHA bcb6e0cView commit details -
Slider: disregard laziness on max/min levels
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 01cf0fb - Browse repository at this point
Copy the full SHA 01cf0fbView commit details -
thyttan committed
Oct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 93112f4 - Browse repository at this point
Copy the full SHA 93112f4View commit details -
Slider: callback first, then draw
as per: espruino#2953 (comment) To still be able to draw on top of the slider, in the callback wrap the extra drawing inside a `setTimeout(extraDraw,0)` or similar. Thanks @bobrippling!
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 40c205c - Browse repository at this point
Copy the full SHA 40c205cView commit details -
Slider: shorten conditional assignment logic
Co-authored-by: Rob Pilling <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3adb21d - Browse repository at this point
Copy the full SHA 3adb21dView commit details -
Slider: remove unnecessary var initialization
Co-authored-by: Rob Pilling <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3afd9ac - Browse repository at this point
Copy the full SHA 3afd9acView commit details -
Slider: refactor useIncr/Map -> mode:"incr"/"map"/
/"mapincr" Thanks @bobrippling
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 9b882c2 - Browse repository at this point
Copy the full SHA 9b882c2View commit details -
Slider: fix Slider.md code blocks
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for fae1025 - Browse repository at this point
Copy the full SHA fae1025View commit details -
Slider: update Slider.md re mode:"incr"/"map"
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 070d3d4 - Browse repository at this point
Copy the full SHA 070d3d4View commit details -
Slider: add tip to Slider.md, and tweaks
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 8cf9cd7 - Browse repository at this point
Copy the full SHA 8cf9cd7View commit details -
Slider: change
currLevel
->initLevel
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for ac568fb - Browse repository at this point
Copy the full SHA ac568fbView commit details -
Slider:update
currLevel
->initLevel
, and tweaksthyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for bbb2907 - Browse repository at this point
Copy the full SHA bbb2907View commit details -
Slider: add level to auto callback
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for ee5e08d - Browse repository at this point
Copy the full SHA ee5e08dView commit details -
Slider: add
FIXME:
comment re error in callbackthyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 962d874 - Browse repository at this point
Copy the full SHA 962d874View commit details -
Slider: fix callback running prematurely
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 9d532a8 - Browse repository at this point
Copy the full SHA 9d532a8View commit details -
Slider: move let statement out of function scope
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for b2a72dc - Browse repository at this point
Copy the full SHA b2a72dcView commit details -
Slider:make rounded mode dynamic, depend on width
Fixes graphics for different size sliders.
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 186832f - Browse repository at this point
Copy the full SHA 186832fView commit details -
thyttan committed
Oct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 0a1e3a6 - Browse repository at this point
Copy the full SHA 0a1e3a6View commit details -
Slider: remove two lines of debug
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 0fbcb34 - Browse repository at this point
Copy the full SHA 0fbcb34View commit details -
Slider: scale default borders with appRect width
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for ac27deb - Browse repository at this point
Copy the full SHA ac27debView commit details -
thyttan committed
Oct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for cd67e0d - Browse repository at this point
Copy the full SHA cd67e0dView commit details -
Slider: fix logic re roundedness
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for c4ba51a - Browse repository at this point
Copy the full SHA c4ba51aView commit details -
Slider: update documentation at Slider.md
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for eb52a9a - Browse repository at this point
Copy the full SHA eb52a9aView commit details -
Slider: remove unnecessary condition check
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 7e01449 - Browse repository at this point
Copy the full SHA 7e01449View commit details -
Slider: move and refactor step size calculation
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 0c12bfa - Browse repository at this point
Copy the full SHA 0c12bfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c1fb8c - Browse repository at this point
Copy the full SHA 6c1fb8cView commit details -
Slider: add missing semicolons
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 4d6edb1 - Browse repository at this point
Copy the full SHA 4d6edb1View commit details -
Slider:add param for auto progress update interval
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 5156b8a - Browse repository at this point
Copy the full SHA 5156b8aView commit details -
Slider: remove unnecessary spaces
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 4d7bcce - Browse repository at this point
Copy the full SHA 4d7bcceView commit details -
thyttan committed
Oct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 04c5cbd - Browse repository at this point
Copy the full SHA 04c5cbdView commit details -
Slider: remove development try-catch statement
thyttan committedOct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for bdf7aab - Browse repository at this point
Copy the full SHA bdf7aabView commit details -
thyttan committed
Oct 17, 2023 Configuration menu - View commit details
-
Copy full SHA for 03a1f10 - Browse repository at this point
Copy the full SHA 03a1f10View commit details
Commits on Oct 18, 2023
-
Slider: add to documentation Slider.md
thyttan committedOct 18, 2023 Configuration menu - View commit details
-
Copy full SHA for 05e2ff8 - Browse repository at this point
Copy the full SHA 05e2ff8View commit details -
Slider: add to documentation re timeout
thyttan committedOct 18, 2023 Configuration menu - View commit details
-
Copy full SHA for 8bd1cbb - Browse repository at this point
Copy the full SHA 8bd1cbbView commit details -
thyttan committed
Oct 18, 2023 Configuration menu - View commit details
-
Copy full SHA for 71a445c - Browse repository at this point
Copy the full SHA 71a445cView commit details