25 Commits
Author SHA1 Message Date
Christopher Serr ba45f1759c Dynamically adjust the column widths (#926)
Instead of assuming each column has the width of the text `88:88:88`, we
now determine the largest string per column (based on unicode scalar
values) and adjust the column width accordingly. There is still a fixed
minimum width based on the string `88:88`, which ensures that the
columns don't switch sizes too often, especially if you start with empty
splits. We could've also chosen `8:88:88`, which would ensure there's no
column size change as you approach the hour mark. However, this would
increase the size of delta columns unnecessarily. So it's a little bit
of a trade-off.
2024-06-09 18:05:53 +02:00
Christopher Serr 3e249de680 Switch to Canvas Rendering
This switches the rendering of the layout from using HTML and CSS to
using a canvas (technically it's two). This not only should improve the
performance but also brings the rendering in line with our native
renderers, enabling new features such as vertical resizing and
horizontal layouts. This also removes a lot of code specific to the HTML
rendering and thus greatly simplifies the codebase. There is one slight
regression in that the layout editor doesn't allow clicking and dragging
the individual components directly on the layout anymore. This is
however something we can explore directly in `livesplit-core` in the
future, so other frontends can benefit from it as well.
2024-04-27 21:45:41 +02:00
Christopher Serr c54123f150 Implement Layout Background Images (#844)
This adds support for layout background images. This also includes a
bunch of smaller fixes.
2024-02-24 13:22:56 +01:00
Christopher Serr 9c71a7c8c9 Allow stepping through the Rust code (#826)
This allows stepping through the Rust code. `wasm-bindgen` 0.2.89 just
got released and it finally properly allows keeping the debug symbols
that Rust creates around fully. Thankfully `webpack` does not pose a
problem here and the debug symbols now properly work in Chrome, allowing
us to step through the Rust code in the developer tools.
2023-11-30 17:33:17 +01:00
Christopher Serr e7b893edce Implement more Detailed Timer Settings (#765)
This implements the following settings / features for the Detailed
Timer:
1. The ability to set / override the colors of the timer, segment timer,
   segment name, comparison names and comparison times.
2. The ability to turn off the gradient of the timer and segment timer.
3. The ability to set the accuracy of the comparison times.

This also updates all the npm packages to their latest versions.
2023-01-24 20:26:02 +01:00
Christopher Serr 2c371bf9f7 Update most remaining dependencies (#737)
This updates all the remaining dependencies that I was able to update.
React is still at version 16 because some of the components I use
apparently haven't been updated to support more recent versions of
React.
2022-10-01 16:09:51 +02:00
Christopher Serr 30c38779ce Update some dependencies (#730)
This should hopefully allow dependabot to progress further.
2022-10-01 01:50:46 +02:00
Christopher Serr df51936aea Update livesplit-core (#716)
This updates `livesplit-core` to the latest version. This mostly adds
custom variable columns and allows for the timer to visualize the delta
for the background. There's some performance improvements as well.

Also we now build `livesplit-core` in debug mode by default when
building locally. So compilation is a little bit
faster and additional debug checks are active, such as integer
overflows.
2022-09-28 20:27:36 +02:00
Chris Santamaria 0d4ac4b0db Use prod build instead of dev server for tests 2021-10-23 15:42:23 -04:00
wooferzfg 924dcc537e Fix webpack config issues 2021-09-02 22:07:36 -04:00
Christopher Serr fbfb6ebe17 Game Icon size changed
It seems like the game icon size has changed. It is now always a square
rather than trying to fit the icon in the space. We'll have to
investigate later what is going on.
2021-08-01 18:51:26 +02:00
Christopher Serr baced68cae Fix the Tests 2021-07-01 19:40:59 +02:00
wooferzfg 2c1c18abec Add a threshold for the image hash comparison 2020-06-14 11:37:07 -05:00
Sergey Papushin d8ece95bfa Increase test timeouts and add more logging 2020-05-01 16:05:53 +02:00
wooferzfg afc4dbb734 Fix hash for rendering test 2020-04-19 14:17:44 -05:00
Sergey Papushin 231d7ffc8e Increase pixelmatch threshold 2020-04-19 13:44:18 -05:00
Sergey Papushin 75b6132147 Update tests to work with new splits selection 2020-04-18 12:57:34 -05:00
wooferzfg 8e99317acc Fix rendering test hash 2020-04-18 12:57:34 -05:00
wooferzfg 9f15bda7e2 Fix rendering test hashes 2020-03-02 21:41:34 -06:00
wooferzfg 53f2f765e6 Wait for the server to start before trying to load the page 2020-03-02 21:17:40 -06:00
wooferzfg 3abb897eec Reduce rendering test timeouts 2020-03-02 21:17:40 -06:00
wooferzfg 2194f4b603 Fix size of game icon to match the two row split icon size 2020-02-23 15:24:46 -06:00
wooferzfg 8e8528cfb3 Increase the size of the hash to 24 2020-02-22 13:13:10 -06:00
wooferzfg 27f6924d1f Remove the Roboto font 2020-02-22 11:30:42 -06:00
wooferzfg 0a4158b564 Add visual testing for layout rendering 2020-02-21 23:09:08 -06:00