Commit Graph

353 Commits (dac46fd46416eb9ce5af367b469348c125328b75)

Author SHA1 Message Date
Martin Boonk bf5c44c922 graphics_utils - Use correct parameter variable 2023-01-22 10:06:32 +01:00
Martin Boonk 7fb4c6f786 graphics_utils - Set a default step allowing a full circle arc 2023-01-22 10:06:32 +01:00
Gabriele Monaco 9ec805c67a clkinfo: added altitude ranges and unfocus on lock 2023-01-21 08:02:31 +01:00
nravanelli e68c526a3e
Update Layout.js 2023-01-20 23:54:13 -05:00
nravanelli f01202ef4a
Update Layout.md
defined `bgCol` for when used on a `type:"btn"`
2023-01-20 22:51:20 -05:00
nravanelli 9e8a44dca6
Update Layout.js
fixed "fat finger" error in copy/paste from local code; Line 193; l.btnBorder

removed btnCol and replaced to bgCol, which is typically ignored in the type:btn
2023-01-20 22:49:22 -05:00
Gabriele Monaco 605916ae0a Fixed stepGoal json path in clkinfo 2023-01-20 15:28:53 +01:00
nravanelli a37bfcc9c1
Update Layout.md 2023-01-19 13:11:34 -05:00
nravanelli a725dc7a78
Update Layout.js
added functionality for button colour specifications
2023-01-19 13:09:35 -05:00
Gordon Williams 150e79e11d
Merge pull request #2497 from sir-indy/master
[mosaic][fuzzyw] Update for fast launch, and optionally hide widgets with widget_utils
2023-01-18 09:06:16 +00:00
sir-indy 915b562026
Add drawWidgets to end of swipeOn
Trying to fix https://github.com/espruino/BangleApps/issues/2474.
2023-01-17 08:54:47 +00:00
Gabriele Monaco 0cc4e318f8 weather: redraw clock_info on update and provide color field 2023-01-13 19:36:19 +01:00
David Peer 6774bc113c Merge branch 'master' of https://github.com/peerdavid/BangleApps 2023-01-09 18:12:53 +01:00
David Peer 6fc98b723a Buzz on run() 2023-01-09 18:12:51 +01:00
Gordon Williams 3ba8f7729e Fix layout error when there's not a h or v element as root - https://forum.espruino.com/conversations/382806/#comment16819463 2023-01-09 14:21:27 +00:00
BartS23 be956095c1 missing options update 2023-01-09 14:39:19 +01:00
BartS23 db17b225d0 add setItem to clock_info 2023-01-09 14:33:52 +01:00
Richard de Boer fe61fd2a12
ClockFace: remove clockHasWidgets hack
Added in 1d4fb1301a to make fast loading
work correctly (workaround for the fact that ClockFace clocks contained
`loadWidgets` in their source, but sometimes didn't call it)
No longer needed, as we now always call loadWidgets.
2023-01-07 17:52:31 +01:00
Richard de Boer 6980a0d9c9
ClockFace: always loadWidgets, option to hide them using widget_utils 2023-01-07 16:50:30 +01:00
thyttan 5fd3424764
shorten the error variable 2022-12-27 20:16:58 +01:00
thyttan 914d2f15d9 Catch error when Bangle.getPressure() returns...
... undefined. This makes it so BW Clock doesn't hang when running in the emulator and is trying to display altitude.
2022-12-25 19:21:07 +01:00
Gordon Williams 93a4fc248c
Merge pull request #2415 from halemmerich/choozi
Choozi - Recombine app files and some improvements
2022-12-19 12:15:41 +00:00
Martin Boonk 36557e4f5e choozi - Rename drawArc to fillArc 2022-12-19 13:01:28 +01:00
Martin Boonk d8543f4d41 choozi - Fix library not working standalone 2022-12-19 12:52:33 +01:00
Gordon Williams 285b03dbb9 Ensure that widgets_utils swipeOn falls back on Bangle.js 1 - fix #2414 2022-12-19 09:18:45 +00:00
Martin Boonk f467227d8d choozi - Extract drawing of arcs into lib for others to use 2022-12-18 22:08:07 +01:00
Gabriele Monaco 1fb5c0433d clkinfo: repeating selection if menu is empty 2022-12-15 20:15:40 +01:00
Gordon Williams dcefe4b393 Update clock_info's heart rate handling to ensure the HRM value is up to date 2022-12-14 09:33:03 +00:00
Gordon Williams a0a3b5c66e
Merge pull request #2384 from rigrig/clockface-really-remove
ClockFace: fix fast loading
2022-12-12 08:58:12 +00:00
Erik Andresen 90b68051c5 astrocalc
- Compatibility with Bangle.js 2
- Get location from My Location
2022-12-11 22:09:16 +01:00
Richard de Boer 825a705339
ClockFace: fix fast loading 2022-12-11 15:15:44 +01:00
Gordon Williams 00a022c7c1 Use 'modules/suncalc.js' to avoid it being copied 8 times for different apps 2022-12-09 09:49:33 +00:00
Gordon Williams 341517881b update docs to put the best solution at the top 2022-12-06 09:41:54 +00:00
Gordon Williams 4249f6397e
Merge pull request #2349 from peerdavid/master
[AIClock] Added clkinfos
2022-12-05 10:01:54 +00:00
Martin Boonk 141eb9b90b widget_utils - Allow setting a time for auto hideout 2022-12-04 20:26:18 +01:00
David Peer fa70e5354c aiclock -- support clkinfo module and updated icons of some clkinfos... 2022-12-04 16:42:24 +01:00
Gordon Williams e665d35f56
Merge pull request #2331 from halemmerich/layout
layout - Allow providing a remove handler in options
2022-12-01 10:06:20 +00:00
Richard de Boer 1d4fb1301a
ClockFace: support Fast Loading, by adding a remove() function to clocks 2022-12-01 01:13:34 +01:00
Martin Boonk dec95eb281 layout - Allow providing a remove handler in options 2022-11-30 18:46:21 +01:00
Gabriele Monaco 18d91bf5f9 Added short field and general clkinfo improvements 2022-11-25 18:50:38 +01:00
Gabriele Monaco c8ee05a4b6 clkinfo: added sched and ranges in weather 2022-11-25 18:35:10 +01:00
Gordon Williams 7bdafa281a clock_info images now optional 2022-11-25 16:27:42 +00:00
Gordon Williams adcee06813 doc tweaks 2022-11-24 14:43:38 +00:00
Gordon Williams a901ad042f Layout performance improvements by keeping functions pre-parsed in RAM when needed. 2022-11-24 10:19:27 +00:00
Gordon Williams 6868ca321e widget utils swipeOn now updates appRect to match where the widgets are - see https://github.com/espruino/BangleApps/pull/2306 2022-11-23 10:46:52 +00:00
Gordon Williams c039069db7 slopeclockpp 0.04: Changed to use clock_info for displayed data (see #2226)
Made fonts smaller to avoid overlap when (eg) 22:00
      Allowed black/white background (as that can look nice too)
2022-11-23 10:36:03 +00:00
Gordon Williams f9433dc4be clock_info now remembers what was shown before 2022-11-23 10:00:54 +00:00
Gordon Williams 032d769f97 note 2022-11-23 09:35:13 +00:00
Gordon Williams 11f63df3b1 Big addInteractive changes - allow >1 clock_info on screen at once. Each can have focus, and fix redraw queue issue 2022-11-21 19:53:08 +00:00
Gordon Williams c4e1fd01be Added clkinfosunrise to allow clocks to display sunrise and sunset if they use clock_info 2022-11-21 16:37:04 +00:00
Gordon Williams 6554c1a9d0
Merge pull request #2301 from halemmerich/widgetutils
widget_utils - Prevent initial draw clearing on global g
2022-11-21 10:45:32 +00:00
Martin Boonk b2965fe4e2 widget_utils - Prevent initial draw clearing on global g 2022-11-21 00:33:49 +01:00
lauzonhomeschool ef47fc6858
Update README.md 2022-11-20 00:11:13 -05:00
Gordon Williams a03a036ba5 Add widget_utils swipeOn method to hide widgets and allow them to be swiped back onto the screen 2022-11-19 19:22:21 +00:00
Gordon Williams 91649606f2 oops - forgot to commit lint config 2022-11-10 13:57:38 +00:00
Gordon Williams a6ae5240bd click-info can now return a value 'range' if some kind of guage is to be drawn 2022-11-10 13:55:31 +00:00
Gordon Williams 38ec9aecaa Now lint modules too 2022-11-10 13:54:39 +00:00
Gordon Williams 69dbac6128 Add require("clock_info").addInteractive to allow info displays to be added to the screen easily (ref #2226) 2022-11-04 11:50:33 +00:00
Gordon Williams 1727fac713 Add widget visibility library 2022-10-26 11:51:30 +01:00
David Peer faabba9919 Improved stability of clockinfo in case a clock info app raises an exception 2022-10-02 15:51:58 +02:00
David Peer c362881de1 Added clockinfo to simple timer and improved the clkinfo module (run with optional feedback). 2022-09-23 16:08:16 +02:00
David Peer 59d63885fa Advanced merge function of menu objects and items. 2022-09-22 18:49:12 +02:00
David Peer 8036d976b3 Use this.interval insntead of interval. 2022-09-22 18:25:42 +02:00
Peer David 28bcc3f632
Merge branch 'espruino:master' into master 2022-09-19 17:26:04 +02:00
David Peer 24972e3128 Refactored into clkinfo.js files 2022-09-19 17:23:37 +02:00
Spence Churchill 4a2d8212c1
optimize for precision over accuracy
correctly classifying when the watch is on is more important than classifying classifying when the watch is off
2022-09-09 17:54:08 -07:00
Spence Churchill dc8319d97a
use 10-minute acceleration and charging
removes temperature due to weather situations
2022-09-09 10:38:37 -07:00
Gordon Williams 1f3695efff Allow clock 'info screens' to be defined - as per https://github.com/espruino/BangleApps/pull/2114#issuecomment-1240836007 2022-09-08 16:01:48 +01:00
Gordon Williams ff9a5c4c20 Add wear de4tect library based on http://forum.espruino.com/conversations/379538/ and https://github.com/espruino/Espruino/pull/2264 2022-09-08 10:40:03 +01:00
Gordon Williams 43b2a0b55c
Merge pull request #2046 from rigrig/clockface-powersave
Clockface: powersaving
2022-07-15 08:16:38 +01:00
Gordon Williams 828f9821ad Fix issue caused by minification (moving the declaration of 'var btnList/a' into an 'if' statement). Now we can use 'let' and the minifier doesn't try and do stupid things with that 2022-06-29 09:16:45 +01:00
Gordon Williams 6ad485c628 Fix issue with >1 layout button on Bangle.js 2: http://forum.espruino.com/conversations/377235/#comment16576403 2022-06-28 13:39:46 +01:00
Richard de Boer fed49792de
ClockFace: make `tick` a "ram" function
Should allow clocks to update without waking flash storage if their
`update` runs in "ram" as well.
2022-06-25 23:58:34 +02:00
Richard de Boer ba58178ab3
ClockFace_menu: add "powerSave" menu option 2022-06-25 23:58:33 +02:00
Richard de Boer 9fb3fccb32
ClockFace: minor cleanup
No idea how that `true` got there, but it does nothing.
2022-06-19 20:00:54 +02:00
Richard de Boer 6090b453c3
ClockFace: don't erase widgets when using `draw`
If a clock specifies `draw` but not `update`, we create our own
`update`, but it should only erase the clock area, not the whole screen.
2022-06-19 20:00:18 +02:00
Gordon Williams 0cc0a40356 fix layout minification issue 2022-06-10 09:19:53 +01:00
Gordon Williams d07580cc90 Add minified layout library, which should improve layout speed a lot. 2022-06-09 10:41:03 +01:00
Richard de Boer 5ffb6117e6
ClockFace_menu: addSettingsFile with included Storage code 2022-06-07 21:43:00 +02:00
Richard de Boer aded08293f
ClockFace_menu: remove old options exports 2022-06-07 21:29:18 +02:00
Richard de Boer 66bf7f3b12
ClockFace_menu: use addItems for settings 2022-06-07 21:23:12 +02:00
Gordon Williams 0c3a7dfe9e exstats: Add altitude (GPS and barometer)
Ensure speed(and alt) updates from GPS even when a run isn't started
2022-06-07 16:47:45 +01:00
Gordon Williams 6bcd41eac3
Merge pull request #1899 from alessandrococco/time-utils-patch
[time_utils] Update formatDuration
2022-06-06 11:34:27 +01:00
Gordon Williams 1a2d7a6e25
Merge pull request #1893 from rigrig/clockface-settings
ClockFace: add settings support
2022-06-06 11:30:29 +01:00
Gordon Williams a4f79367ba constant decl in function saves RAM 2022-06-06 11:16:41 +01:00
Alessandro Cocco 091006e9c5 [buzz] Add support for ',' and ';' 2022-06-03 17:29:57 +02:00
Alessandro Cocco 019f635ad4 [buzz] Add support for ':' and '=' 2022-06-03 17:29:57 +02:00
Alessandro Cocco 889de43d26 [time_utils] Add compact mode to formatDuration 2022-05-28 21:30:50 +02:00
Alessandro Cocco dc0157cf1f [time_utils] Fix typo 2022-05-28 21:30:30 +02:00
Richard de Boer ecd5868821
ClockFace: add settings support 2022-05-27 17:08:50 +02:00
Alessandro Cocco f0e2627571 Move Layout docs to a separate file 2022-05-25 12:38:45 +02:00
Gordon Williams 43a3d70571 run 0.14: Fix Bangle.js 1 issue where after the 'overwrite track' menu, the start/stop button stopped working
Add 'setUI' to Layout
2022-05-23 11:53:25 +01:00
Gordon Williams 778432e945 comment 2022-05-23 10:25:31 +01:00
Richard de Boer 365b3859b3
ClockFace: set Bangle.CLOCK=1 before loading widgets 2022-05-22 19:59:17 +02:00
Alessandro Cocco 9b195adc95 [time_utils] Add support for days and seconds, improve formatDuration 2022-05-18 23:52:12 +02:00
Richard de Boer f7efc338f1
ClockFace: add `is12Hour` property, document `paused` 2022-05-16 20:21:24 +02:00
Gordon Williams a2ff4b9b21
Merge pull request #1822 from alessandrococco/refactor-alarms
[Alarms & Timers] New UI
2022-05-16 14:54:16 +01:00
Richard de Boer 12f84357ca
add ClockFace module 2022-05-15 18:27:35 +02:00
Alessandro Cocco 94690a81ee Add new time_utils module and move some functions from sched module to it 2022-05-13 15:25:28 +02:00
Gordon Williams 0a36095dc1 Merge branch 'messages-back' 2022-05-11 09:10:32 +01:00
Gordon Williams 537744bcf7
Merge pull request #1788 from sir-indy/master
[layout & smpltmr] New interface for Simple Timer, and changes to layout to make it work.
2022-05-04 11:16:38 +01:00
sir-indy c94b8be629
Update Layout.js
Removed as per https://github.com/espruino/BangleApps/pull/1788#discussion_r863924717
2022-05-04 10:18:48 +01:00
Alessandro Cocco ce06879fe4 [date_utils] Refactor functions, documentation
- Use the same names used in locale module (so dow instead of getDOW, month instead of getMonth, etc.)
- Add documentation
2022-05-03 23:22:50 +02:00
sir-indy 0a93ea7c00
Update Layout.js
Remove text scale option, as scale can be set in font, as per #1699
2022-05-03 10:06:10 +01:00
sir-indy baa242e92b
Update Layout.js 2022-04-29 11:28:58 +01:00
sir-indy fc1bd36ec2
Update Layout.js 2022-04-29 11:16:48 +01:00
sir-indy 5e42476f29
Merge branch 'espruino:master' into master 2022-04-29 10:26:55 +01:00
sir-indy 1e4486861a
Update Layout.js 2022-04-29 10:26:44 +01:00
sir-indy 826bc29738
Update Layout.js 2022-04-29 10:16:42 +01:00
sir-indy 7f2af3c892
Update Layout.js 2022-04-29 09:55:31 +01:00
Gordon Williams e6eb8b0cb4 Fix typo that meant that watches on buttons from E.showMenu/etc weren't removed like they should be 2022-04-27 09:28:16 +01:00
Gordon Williams 2e2275c262 Add date_utils lib (https://github.com/espruino/BangleApps/pull/1753) 2022-04-26 10:27:23 +01:00
Gordon Williams cb9c0100ea
Merge pull request #1687 from rigrig/buzz-demonstrate
buzz_menu: give a demonstration after selecting a pattern
2022-04-19 10:39:42 +01:00
Richard de Boer 0b9d8b16a6
buzz_menu: give a demonstration after selecting a pattern 2022-04-10 17:01:28 +02:00
Richard de Boer 44810118b4
buzz_menu: fix duplicate "Off" option 2022-04-10 16:41:19 +02:00
Gordon Williams 30e94e15ad Merge branch 'master' into new_alarm 2022-04-04 15:07:42 +01:00
Salim Blume 7322013f10 Fix for when to include maxbpm 2022-04-02 21:00:45 -05:00
Salim Blume fff5ddef67 Add maxbpm as a tracked stat in exstats. 2022-04-02 20:54:48 -05:00
Gordon Williams 5c33cad685 Adding alarm.vibrate and menu 2022-04-01 13:27:37 +01:00
Gordon Williams 45cde94a26 messages 0.29: Support for the setUI 'back' icon in the top left 2022-04-01 09:49:57 +01:00
Gordon Williams 48efab699d Show distance more accurately in conjunction with new locale app (fix #1523)
Also slightly more memory efficient locale module
2022-03-30 15:11:14 +01:00
Gordon Williams dcd39418a5 quick removal of GPS clear from #1619 2022-03-29 10:58:48 +01:00
BartS23 02fca7a4c8
Fix.speed could be NaN
then curSpeed during the entire run is NaN
2022-03-28 00:04:01 +02:00
Salim Blume 9a0c31c56d Fix run notifications bugs and improve accuracy 2022-03-24 22:19:51 -05:00
Gordon Williams 03a2bc29b8 Remove files that weren't meant to be in the PR 2022-03-18 08:41:02 +00:00
Gordon Williams a292cee7b0 Merge branch 'master' of https://github.com/bernschneider/BangleApps into bernschneider-master 2022-03-18 08:39:28 +00:00
Richard de Boer 7b842294e0
Layout: add support for `back` option 2022-03-17 15:33:32 +01:00
Klaus-Peter Bernschneider 5602eadf68
Add files via upload 2022-03-15 09:22:07 +01:00
Salim Blume 6ffa4b28b3 Menu fixes and tweaking vibe options 2022-03-05 21:19:34 -06:00
Salim Blume 4810eefe08 More tweaks 2022-03-05 21:19:31 -06:00
Salim Blume 8a7b30cf6c Cleanup 2022-03-05 21:19:28 -06:00
Salim Blume e823ae8496 Fix for nested options not set yet 2022-03-05 21:19:26 -06:00
Salim Blume 50ca281500 Settings fix 2022-03-05 21:19:25 -06:00
Salim Blume f5c50a7e1e Fix for step notification 2022-03-05 21:19:20 -06:00
Salim Blume d65726d9fc Fix for step notification, debug for time notification, better buzzes 2022-03-05 21:19:18 -06:00
Salim Blume 63426d9b97 Correct initial step notification increment 2022-03-05 21:19:13 -06:00
Salim Blume 3a6009a963 Add vibration settings and reorg to use object for settings 2022-03-05 21:19:10 -06:00
Salim Blume d0cb22e7df Bug fixes 2022-03-05 21:19:09 -06:00
Salim Blume 1cf5a07761 Debug 2022-03-05 21:19:07 -06:00
Salim Blume 4b371e1f18 Don't use spread operator 2022-03-05 21:19:06 -06:00
Salim Blume c3fc12dfa2 Chasing down a settings bug 2022-03-05 21:19:04 -06:00
Salim Blume b923423238 Cleanup 2022-03-05 21:19:02 -06:00
Salim Blume 35d1cf85e8 More notification testing 2022-03-05 21:19:00 -06:00
Salim Blume 5e3e7a0c0f Testing exstats notifications 2022-03-05 21:18:58 -06:00
Salim Blume aebc8bb3d5 Initial commit 2022-03-05 21:18:51 -06:00
copoer 54ca2eed97 Fix step count 2022-02-23 12:57:22 -04:00
Gordon Williams 17b7d85950 Layout: remove 'fsz' hack as any firmware 2v11+ will support font size in the string now 2022-02-23 10:45:18 +00:00
Gordon Williams 580497b1e7 Fix Layout module rendering black text on white 2022-02-21 10:55:22 +00:00
Gordon Williams 71e60eda00 stop cadence needing GPS - fix #1480 2022-02-21 10:25:56 +00:00
Gordon Williams af0dfed2c3 allow non-button elements of Layout to be tapped 2022-02-08 10:42:14 +00:00
Gordon Williams c4c539006a fix speed calcs 2022-02-01 17:26:43 +00:00
Gordon Williams 55b7650a0d fix distance over-calculation, add averaging to current speed 2022-02-01 14:23:37 +00:00
Gordon Williams 5708e0b433 run 0.05: exstats updated so update 'distance' label is updated, option for 'speed' 2022-01-31 10:40:35 +00:00
Gordon Williams 08e168ab62 docs on modules 2022-01-28 09:46:19 +00:00
Gordon Williams d2ec2ce3e6 run 0.04: Use the exstats module, and make what is displayed configurable 2022-01-28 09:45:56 +00:00
Gordon Williams 30d038324a create xstats module and make run app configurable to display different stats 2022-01-27 14:05:47 +00:00
Richard de Boer 6a72aafc19
layout: use 'col' for btn label/image 2022-01-07 20:18:17 +01:00
Gordon Williams 896508e7a2 docs 2022-01-05 16:37:24 +00:00
Richard de Boer 3baa465f01 remove Settings module
Better not to have this at all than to have a library that you can't
actually use in widgets/boot/settings code
2021-12-01 19:34:52 +01:00
Gordon Williams d1534bdcbf comment 2021-11-26 15:05:05 +00:00
Richard de Boer efd12d627a Settings library: use `appid.json`, update README.md and sanitycheck.js 2021-11-20 17:52:44 +01:00
Richard de Boer b44df86f27 simplify Settings library some more, suggest users make their own helper 2021-11-20 17:16:06 +01:00
Richard de Boer 68569cd9ba simplify Settings library 2021-11-20 17:16:06 +01:00
Richard de Boer 477b2e5fdc create Settings library 2021-11-20 17:16:06 +01:00
Gordon Williams f4f40cee3a Fixes for Bangle.js 1 2021-11-10 13:42:11 +00:00
Gordon Williams 935d409f4c ability to depend on a specific app ID
Layout can display images in buttons
iOS and Android integration apps
2021-11-04 17:16:02 +00:00
Gordon Williams f87f0a19f4 Layout now uses appRect (should be fine with the new polyFill) 2021-10-27 16:50:16 +01:00
Gordon Williams fc3ce86009 misc tweaks for layout/gps time/bootloader 2021-10-20 20:28:28 +01:00
Gordon Williams 1e0f6cd675 Allow non-function images, and fix touch handling for 'fake' buttons on Bangle.js 2 2021-10-18 14:33:42 +01:00
Gordon Williams c4c2a93056 oops 2021-10-18 13:35:28 +01:00
Gordon Williams f41b3c5a88 Update bootloader to include polyfills for g.wrapString, g.imageMetrics, g.stringMetrics - and modify Layout lib to use those functions 2021-10-18 12:01:40 +01:00
Gordon Williams 3f26b8b88e Layout module now allows 'soft' buttons to be cycled through and selected using up/down on Bangle.js 1 2021-10-18 11:32:46 +01:00
Ben Whittaker cdf95566bd Layout: Add `forgetLazyState` method 2021-10-05 20:57:10 -04:00
Ben Whittaker f37b744ed5 Layout: defer initial update until first render 2021-10-05 12:32:06 -04:00
Ben Whittaker 202690de40 Layout: Implement text wrapping 2021-10-04 16:06:46 -04:00
Gordon Williams c5d7a73f4f fix image width/height code 2021-09-30 17:00:46 +01:00
Gordon Williams dd49e1f631 tweaks to reduce layout memory usage 2021-09-29 14:22:36 +01:00
Gordon Williams c96ae6c8ae Minor layout speed tweak 2021-09-29 09:20:56 +01:00
Gordon Williams ee60bda59b Merge branch 'master' of github.com:espruino/BangleApps 2021-09-29 09:18:46 +01:00
Ben Whittaker 3622895f09 Layout: avoid floating point numbers
The previous approach involved calculating the width of each element
independently, and deriving the `x` coordinate of each element by
summing the previous widths. However, if the widths are rounded, summing
them leads to accumulated rounding errors.

This change effectively takes the alternate approach of calculating the
`x` coordinate of each element independently, and then deriving the
widths from the differences between adjacent values of `x`.

As a bonus, this change corrects a couple issues in the
`padding_with_fill` test.
2021-09-28 23:07:00 -04:00
Gordon Williams 912b7e8dbf Minor speed/memory layout tweaks - issue with floating point width/height still outstanding 2021-09-28 11:19:46 +01:00
Ben Whittaker be5539d948 Lazy Layout: don't assume bg is already cleared 2021-09-27 11:00:22 -04:00
Ben Whittaker 221c3acc94 Layout: make `pad` behave more consistently
Fixes the second test case in #819
2021-09-24 17:43:56 -04:00
Ben Whittaker 807ac743fc Layout: only set fillxy/y if null
Fixes #820
2021-09-23 22:32:06 -04:00
Gordon Williams 0109a8114b Ensure padding works correctly (fix #819), also add Layout test harness basics 2021-09-23 12:47:12 +01:00
Gordon Williams bc2ed2f495
Merge branch 'master' into layout-img-object 2021-09-20 10:14:10 +01:00
Gordon Williams fc11f68d2e remove solid bg - not needed now we fill the bg anyway 2021-09-17 19:38:02 +01:00
Gordon Williams e280d192ee More speed improvements, and fix issue with minifier so we don't need .min.js 2021-09-16 11:27:52 +01:00
Gordon Williams 7a9aad93e4 Switch to object lookup for update & render code - around 20% faster 2021-09-16 10:49:14 +01:00
Gordon Williams 76b6ca0bff allow numeric fill values 2021-09-16 10:17:27 +01:00
Ben Whittaker 0c4ac74214 Optimization 2021-09-15 20:28:49 -04:00
Ben Whittaker 74e739d019 Handle bg colors correctly in lazy layout render 2021-09-15 10:13:46 -04:00
Ben Whittaker 6bd606b645 Don't use getModified in lazy layout rendering 2021-09-15 06:00:35 -04:00
Ben Whittaker 95d353a749 Add lazy rendering support to Layout 2021-09-14 20:02:09 -04:00
Richard de Boer 5972b991f9 Layout: add support for "img" with object or ArrayBuffer Graphics object
Rendering these already worked, because we simply pass src to drawImage,
so we just need to determine the correct size.
2021-09-05 20:42:36 +02:00
Gordon Williams 39a263c22d update minified layout 2021-09-03 10:31:03 +01:00
Gordon Williams c34216c884 layout lib tweaks 2021-09-02 11:39:53 +01:00
Gordon Williams 97bdf0b7d0 force use of unminified module for now 2021-08-25 17:06:06 +01:00
Gordon Williams 0410a0dd8e accellog: 0.02: Use the new multiplatform 'Layout' library
Loads of layout lib improvements
2021-08-25 17:00:44 +01:00
Gordon Williams f6b46395fc add first draft of layout module 2021-07-27 17:01:21 +01:00