Commit graph

23 commits

Author SHA1 Message Date
ogoffart
b25ae6fbcd Bump version number to 0.1.5 2021-10-26 07:36:54 +00:00
ogoffart
77fcd5221b Bump version number to 0.1.4 2021-10-07 09:36:43 +00:00
ogoffart
8b9717633e Bump version number to 0.1.3 2021-10-05 10:31:45 +00:00
ogoffart
e54e03148f Bump version number to 0.1.2 2021-09-04 10:08:51 +02:00
Tobias Hunger
aea4ecca99 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
ogoffart
53f286258c Bump version number to 0.1.1 2021-08-10 08:06:20 +00: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
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
mwaitzman
2d2afad670 polish to figma_import's README.md 2021-07-20 16:05:10 +02:00
Olivier Goffart
13bd828b96 Update license date 2021-07-02 15:55:54 +02:00
Simon Hausmann
7cea088a2c Add support for letter-spacing in text
This is conveniently supported by femtovg and Qt
2021-02-16 22:14:50 +01:00
Olivier Goffart
1d1d42bec1 Figma import: fix images importing 2021-02-12 21:40:34 +01:00
Olivier Goffart
670bef069d Figma import: Warning insted of generating wrong code for unsupported gradients 2021-02-12 20:47:59 +01:00
Olivier Goffart
36ecc19d3c figma_import: import images in parallel 2021-02-12 20:47:59 +01:00
Olivier Goffart
9077cf86b0 Figma import: allow loading from cache and be more resillient when geometry is null 2021-02-12 20:47:59 +01:00
Olivier Goffart
1793ef4d77 Figma importer: linear gradients 2021-02-10 18:45:10 +01:00
Olivier Goffart
238ff9e92a Figma import: Clip items with isMask 2021-02-10 17:32:08 +01:00
Olivier Goffart
c3a4095c35 Figma import: line 2021-02-10 17:17:25 +01:00
Olivier Goffart
203a18d958 Figma import: add clip 2021-02-10 14:54:53 +01:00
Olivier Goffart
6b162dac9e Figma importer: Fix the border radius 2021-02-10 14:40:36 +01:00
Olivier Goffart
3c50f13c2a Figma import: make use of Path::fill-rule 2021-02-10 14:21:42 +01:00
Olivier Goffart
600186220c Some work towards a figma importer 2021-02-10 12:49:59 +01:00