Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce map svg size #375

Merged
merged 33 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
030e0d2
Used SVG for map image generation, added support for not connected tr…
lukakama Dec 13, 2023
3d43493
Code formatting
lukakama Dec 13, 2023
3ca5583
Migrated code to use an high-level library (svg.py) to build SVG elem…
lukakama Dec 14, 2023
c1d0228
Optimize map pieces
edenhaus Dec 16, 2023
a44a420
improve comment
edenhaus Dec 16, 2023
f89fd07
Apply suggestions from code review
lukakama Dec 16, 2023
dc1d9bc
Converted static Defs to svg.py elements.
lukakama Dec 16, 2023
672b959
Removed room rendering
lukakama Dec 16, 2023
21a83e4
Converted test_calc_point to floating point precision (for SVG)
lukakama Dec 16, 2023
3ba394e
Merge branch 'pr/lukakama/373' into map-optimization
edenhaus Dec 16, 2023
db69f91
Reduce unnecessary spaces in svg lib
edenhaus Dec 18, 2023
2ac2e73
use NamedTuple
edenhaus Dec 18, 2023
a27d589
use one struct.unpack
edenhaus Dec 18, 2023
938ea99
Merge branch 'dev' into map-optimization
edenhaus Dec 23, 2023
6acf437
Remove point type
edenhaus Dec 23, 2023
94dd06e
Flip image before adding to svg
edenhaus Dec 23, 2023
8b00bd3
use our Path
edenhaus Dec 23, 2023
de7a057
use shorthand notation
edenhaus Dec 23, 2023
b11a5f2
optimize transformation and round values
edenhaus Dec 23, 2023
a7de74f
fix test
edenhaus Dec 23, 2023
8ed2155
Use dataclass instead
edenhaus Dec 23, 2023
976d776
shorten ids
edenhaus Dec 23, 2023
29e8349
fix charger icon
edenhaus Dec 23, 2023
3deb06e
Use svggo to optimize further
edenhaus Dec 23, 2023
ee5b04a
Optimize svg string
edenhaus Dec 23, 2023
cf5a843
create color palette dynamically
edenhaus Dec 24, 2023
1e9e5ae
Some command names need to written always
edenhaus Dec 24, 2023
c5dd249
Copied new background values from #372
edenhaus Dec 26, 2023
a19d85e
fix background and move it to own function
edenhaus Dec 27, 2023
1f12bc9
Add path test
edenhaus Dec 28, 2023
cd02569
Add test for _points_to_svg_path
edenhaus Dec 28, 2023
4a103ca
Improve test
edenhaus Dec 28, 2023
60ddf03
Improve tests and AxisManipulation
edenhaus Dec 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading