Olivier Goffart
3ae7c6e0b5
Hover effect
2020-11-24 18:09:32 +01:00
Simon Hausmann
d80868bbf4
Add support for font_weight to Text and TextInput
...
This allows implementing another sliding puzzle theme feature, the
boldness of the tile number text in the simple theme when the tile is in
the correct position. For the other themes the weight is constant and
it's bold.
More cleanup to follow later: unify the font handle and FontCacheKey
handling, improve the API to allow for the use of symbolic constants
(normal, bold, etc.) instead of the CSS number values.
2020-11-24 10:10:00 +01:00
Olivier Goffart
55c21c71fa
Slide puzzle: add numbers
...
To infer the number of lines of code without comments:
```
cat ... | grep -v "^ *$" | grep -v "^ *//" | wc -l
```
This does not account for the `/* ... */` comments which we use for the lisense,
which are deduced manually
2020-11-23 18:06:24 +01:00
Olivier Goffart
ecd7f7dd7a
Some changes to the Changelog
2020-11-23 16:58:42 +01:00
Olivier Goffart
7c159c2284
slide_puzzle: Add the last tile on the image when the puzzle is finished
2020-11-23 16:39:43 +01:00
Simon Hausmann
3d85e45ec3
Add support for source clipping to the Image element
...
This allows rendering only a sub-rectangle of the original image, which
we can use right away in the sliding puzzle demo.
2020-11-23 15:46:59 +01:00
Olivier Goffart
2d6751a87a
Puzzle: stop the auto-play when resetting
2020-11-23 13:41:48 +01:00
Olivier Goffart
807dbb3c00
Puzzle: Kick animation
...
Also support timer that can be cancelled from the timer event
2020-11-23 13:38:44 +01:00
Olivier Goffart
4383566db9
slide puzzle: Animation on checkbox
2020-11-20 17:14:04 +01:00
Olivier Goffart
781e92941c
Slide puzzle: move the checkbox to its own component
2020-11-20 17:14:04 +01:00
Simon Hausmann
9283a43d3e
Small typo fixes
2020-11-20 16:19:00 +01:00
Olivier Goffart
08fe5f6c72
Add a Clip
2020-11-20 15:45:45 +01:00
Olivier Goffart
2cc1070b7b
Slide puzzle circle animation
2020-11-20 15:15:42 +01:00
Olivier Goffart
280414b556
slide_puzzle: Thumb up icon when winning
2020-11-16 13:30:48 +01:00
Olivier Goffart
0672f4b3cd
Expose Timer API to rust API
...
And use it in the puzzle demo to implement the auto play mode
2020-11-16 12:17:02 +01:00
Olivier Goffart
eadfdbe5fb
Add README to the slide_puzzle
2020-11-15 11:20:37 +01:00
Olivier Goffart
69aa4cb03b
Make the puzzle solvable
2020-11-13 16:52:40 +01:00
Olivier Goffart
6ca7c85eab
Implement min and max
2020-11-13 15:30:07 +01:00
Olivier Goffart
b8d9373edd
Slide Puzzle: add an image
2020-11-13 14:13:51 +01:00
Olivier Goffart
d499e86640
Implement cubic-bezier
2020-11-13 13:36:32 +01:00
Simon Hausmann
3cf02e57f4
Fix sliding puzzle on wasm
...
Activate the wasm-bindgen feature on the rand crate
2020-11-12 15:33:19 +01:00
Olivier Goffart
3c79488637
Wasm build for the slide_puzzle
2020-11-12 13:14:16 +01:00
Olivier Goffart
01356bde33
Some more logic got the sliding puzzle
2020-11-12 12:59:18 +01:00
Olivier Goffart
06a3baf3e7
Slide puzzle: add some themes
2020-11-11 17:39:24 +01:00
Olivier Goffart
8f362ead43
Missing license header
2020-11-10 15:12:25 +01:00
Olivier Goffart
270e1b3e5b
Start experimenting with the sliding puzzle example
2020-11-10 14:30:36 +01:00