Tobias Hunger
d79894769b
viewer: Prettify help output
...
The options in sixtyfps-viewer --help used to look like this:
```
OPTIONS:
--backend <backend> The rendering backend [default: ]
-I <include path for other .60 files>...
--load-data <load data file> Load properties from a json file ('-' for stdin)
--save-data <save data file> Store properties values in a json file at exit ('-' for stdout)
--style <style name> The style name ('native', 'fluent', or 'ugly') [default: ]
```
This patch removes the useless "[default: ]" part. These are options,
so even without this text it should be very obvious that the `--style`
and the `--backend` parameters are indeed optional.
2021-10-05 21:40:13 +02:00
ogoffart
8b9717633e
Bump version number to 0.1.3
2021-10-05 10:31:45 +00:00
Simon Hausmann
c564482343
Update dependencies as per release checklist
2021-09-30 14:58:49 +02:00
Olivier Goffart
cf2e189245
Small fix to the viewer docs
2021-09-30 11:48:09 +02:00
Olivier Goffart
efae60ae7e
Add README for the sixtyfps-viewer
2021-09-30 10:26:12 +02:00
Olivier Goffart
7db9f3dfa9
Dialog: automatically add clicked callback for the standard button
...
And make the viewer listen to them and set them to automatically close dialogs
2021-09-30 10:21:13 +02:00
Simon Hausmann
21f9850b43
Small spelling fix
2021-09-29 14:55:08 +02:00
Olivier Goffart
0eb223b2ca
Update tools/viewer/main.rs
...
Co-authored-by: Simon Hausmann <simon.hausmann@sixtyfps.io>
2021-09-24 09:23:48 +02:00
Olivier Goffart
321d985242
Viewer: add ability to load and save property values from/to json
...
issue #238
2021-09-24 09:23:48 +02:00
Jocelyn Turcotte
0292afa325
LSP Sublime Text: Fix '%YAML indicator is required'
...
This only happened to me on Linux yet for some reason, but
moving the %YAML indicator to the first line above the license
header fixed it.
2021-09-11 17:20:18 +02:00
Olivier Goffart
fe015a8086
Allow the sixtyfps-compiler and sixtyfps-viewer to read from stdin
...
By specifing `-` as a path
2021-09-09 15:30:52 +02:00
Olivier Goffart
f69ad502d6
Update rowan version
2021-09-04 10:50:06 +02:00
ogoffart
e54e03148f
Bump version number to 0.1.2
2021-09-04 10:08:51 +02:00
Olivier Goffart
4ebc49f57d
Missing license header in new file
2021-08-25 17:07:47 +02:00
Olivier Goffart
ab21dc6462
Move the semantic token code to its own module
2021-08-25 13:30:28 +02:00
Olivier Goffart
11398c19eb
First implementation of semantic token in the LSP
2021-08-25 13:26:50 +02:00
Olivier Goffart
293130e2e3
Also use touch-action: none; in the online editor
2021-08-20 16:28:51 +02:00
Tobias Hunger
aea4ecca99
Apply pre-commit hooks to all files
2021-08-17 22:38:16 +02:00
Simon Hausmann
43eea7b655
Apply the loading spinner from the plotter example to the online preview
2021-08-12 10:50:09 +02:00
Olivier Goffart
ffccef4e0c
Examples: replace all _ by - in identifiers
2021-08-10 22:21:01 +02:00
Simon Hausmann
01c3347d19
Make fluent the new default style
...
It's not ugly :-)
2021-08-10 15:56:38 +02:00
ogoffart
53f286258c
Bump version number to 0.1.1
2021-08-10 08:06:20 +00:00
Olivier Goffart
5d9608a565
Keep the Rotate element as internal
2021-08-09 17:43:22 +02:00
Olivier Goffart
b6137ecbc4
Error when trying to use internal builtin items
2021-08-09 17:43:22 +02:00
Tobias Hunger
9dcd107e84
Janitor: Fix clippy::single_match
2021-08-09 13:19:34 +02:00
Tobias Hunger
bac4d895ce
Janitor: Fix clippy::while_let_on_iterator
2021-08-09 13:19:34 +02:00
Tobias Hunger
1d71a2beeb
Janitor: Fix clippy::collapsible_if
2021-08-09 13:19:34 +02:00
Olivier Goffart
23e3c68357
Online editor: ability to select the style
2021-08-07 12:49:53 +02:00
Tobias Hunger
4c7ecc57d8
Janitor: Fix clippy::or_fun_call
2021-08-04 22:50:35 +02:00
Tobias Hunger
04738a900f
Janitor: Fix clippy::map_clone
2021-08-04 22:50:35 +02:00
Tobias Hunger
0d73917526
Janitor: Fix clippy::writeln_empty_string
2021-08-04 22:50:35 +02:00
Tobias Hunger
ce976a1dbb
Janitor: Fix clippy::useless_conversion
2021-08-04 22:50:35 +02:00
Tobias Hunger
c74565a883
Janitor: Fix clippy::needless_return
2021-08-04 22:50:35 +02:00
Tobias Hunger
24a2021226
Janitor: Fix clippy::needless_borrow
2021-08-04 22:50:35 +02:00
Tobias Hunger
ce4727b2e8
Janitor: Fix clippy::single_char_pattern
2021-08-04 22:50:35 +02:00
Tobias Hunger
5cf23f102e
Janitor: Fix clippy::redundant_pattern_matching
2021-08-04 22:50:35 +02:00
Simon Hausmann
29f5853332
Provide sixtyfps::Window by reference in the Rust API
...
This also removes Clone from the Window again, to avoid having to face
the question: Does cloning a window duplicate it on the screen?
2021-08-03 10:32:04 +02:00
Benoit Canet
f1f9ff63cf
importer: Fix build compilation errors.
...
A crate that disapeared was probably providing the
used trait.
Switch the transparency comparison code to use:
https://docs.rs/float-cmp/0.9.0/float_cmp/ .
Given I a not a graphic programmer the patch uses
value that seems meaningfull according to the doc
of the float_cmp crate.
Excerpt from the documentation:
"""For most cases, I recommend you use a smallish
integer for the ulps parameter (1 to 5 or so),
and a similar small multiple of the floating point’s
EPSILON constant (1.0 to 5.0 or so), but there are
plenty of cases where this is insufficient."""
Signed-off-by: Benoît Canet <benoit@nodalink.com>
2021-07-29 08:08:09 +02:00
Benoit Canet
b45aa8dcf6
importer: Remove spurious semicolumns.
...
These extras semicolumns were triggering
compiler warnings; get rid of them.
Signed-off-by: Benoît Canet <benoit@nodalink.com>
2021-07-29 08:08:09 +02:00
Simon Hausmann
235ce85edd
Fix warning about unused import
...
Accidentally missed in #347 , amends 742c1eddfd
2021-07-23 13:57:55 +02:00
Simon Hausmann
742c1eddfd
Fix alpha detection condition in the color presentation request
...
It needs to be not 1
Co-authored-by: Olivier Goffart <olivier@woboq.com>
2021-07-23 13:48:52 +02:00
Tobias Hunger
2cdc5848a2
Janitor: Replace float comparison dance with approx_eq from euclid
...
Sixtyfps uses euclid already, so let's use euclid for float comparisons
as well.
I changed the code to decide whether a number is a positive integer to
make do without a comparison along the way.
2021-07-23 13:48:52 +02:00
Tobias Hunger
27b42687fa
Janitor: Fix clippy::redundant_closure
2021-07-23 13:48:52 +02:00
Tobias Hunger
9539a53480
Janitor: Fix clippy::redundant_clone
2021-07-23 13:48:52 +02:00
Tobias Hunger
0405beed83
Janitor: Fix clippy::redundant_static_lifetimes
2021-07-23 13:48:52 +02:00
Tobias Hunger
c3e0324787
Janitor: Spelling/grammar fixes in comments
2021-07-23 13:48:52 +02:00
Olivier Goffart
a095d8322e
LSP: add a "Show preview" code lense
2021-07-22 09:19:41 +02:00
Olivier Goffart
0766ebbd0d
LSP: update the lsp-types crate version
2021-07-22 09:19:41 +02:00
Tobias Hunger
4bd8920ac4
Janitor: Fix clippy::declare_interior_mutable_const
2021-07-21 19:44:57 +02:00
mwaitzman
2d2afad670
polish to figma_import's README.md
2021-07-20 16:05:10 +02:00