Improve visuals of the Xray path component
- Return null for hidden paths in the Path component. This fixes#266 and restores v3 behavior here. (An optional toggle to show hidden paths might be useful in the future.)
- Reverse animation direction in stroke-dashoffset. This ensures that the path animates in the internal direction, which is less confusing since you can hover over a path to check that it is counter-clockwise.
Also remove a duplicate array key.
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/323
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
This fixes#310 by ensuring the user units are respected.
It also includes some tweaks for the header menu in the editor
- Better default/non-default styling for icons
- Fix alignment of various menus within the ribbon
Fixes#54
Also adds the fabric class to lumina parts for proper line width and rainbow coloring.
The last commit is probably not right. It works, but I'm not sure if these are the right functions to change.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/261
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
Running `updateHandler(part, undefined)` will set the setting to null instead of removing/resetting it, which causes problems.
Fixes#239
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/259
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
This fixes some react wiring in the inspect view.
The drillProps argument contains the info function which displays the popup. Also `strings` should be passed for translation, instead of the t function.
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/256
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
Also by default view imperial measurement sets as imperial and metric ones as metric (this is questionable, and should probably be discussed, alternatively we could default displayAsMetric to the account setting?)
Fixes#230
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/247
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
Various fixes for the measurement view and editor:
- Translate measurements in the measurement set view and align the measurements table properly
- Display a question mark next to the measurements that links to the corresponding docs page
This fixes a part of #226
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/233
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
Fixes#229
unsure if expand is intended to be enabled or disabled by default, I opted for saving paper by default, but this can be easily changed.
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/234
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/221
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
Fix the export functionality in the pattern editor:
* Fix the export button in the header bar
* Fix the copy to clipboard buttons displaying no text and having a weird styling.
Before:

After:

Fixes#215
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/218
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
If drafting a part fails, the logs store contains an array [message, stacktrace] instead of a simple string. Handle this in the LogView.
Also display an error message in the DraftView when there were errors during drafting.

after clicking the button:

(could also display the stack traces, but they're quite unhelpful and you can find them in the browser console anyway, the code for that is commented out)
Closes#163
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/205
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
Fixes#197
Not tested in detail since that needs an account without measurement sets, which I don't have.
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/201
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>