Florian Festi
ddcf13bf6c
svgutil: Make detection of view port a bit more robust
2017-08-20 19:56:33 +02:00
Florian Festi
121e2107fb
Import lxml locally to avoid hard dependency
...
The code is used in the Inkscape plugin only.
2017-03-10 23:00:41 +01:00
Florian Festi
a81ba48d45
Take viewBox and size of SVG documents into account when merging them
2017-02-25 16:10:28 +01:00
Florian Festi
ff7ee22885
Add svgutil.svgMerge() allwing to add generated box into anoterh svg
...
Implemetation has still many short comings. E.g. assumes units and layout of
document passed in. Also assumes to be merged document to be generated by
boxes.py.
2017-02-23 17:38:26 +01:00
schinken
93af56ff9c
Code Reformat #1
2016-08-17 15:07:41 +02:00
Florian Festi
2117bfbc15
Do not error out if drawing does into the negative x direction
...
... unless there is not enough place for the viewport.
2016-07-25 18:56:00 +02:00
Marius Bergmann
4b487014d0
Fix project for use within virtualenv
...
- Use /usr/bin/env to determine path to python3 instead of a hard-coded
path, so that virtualenv stubs work properly.
- Change package name to 'boxes' ('boxes.py' did not work within
virtualenv).
2016-07-12 13:13:03 +02:00
Florian Festi
a1c6652552
Use a more robust way to replace the size and viewport in the svg
...
Increase maximum size of canvas to 10000mm squared.
2016-06-29 14:07:51 +02:00
Florian Festi
3d60aa096b
Fix default matrix used when parsing svg path without transform attribute
2016-06-22 23:10:26 +02:00
Florian Festi
1c0ec91fe1
Fix parsing for integer numbers
2016-06-22 23:09:16 +02:00
Florian Festi
43c34e6a42
Fix start of viewport to x=0
...
as we do not have the place to write a different value anyway.
This fixes the scaling in x direction: gh#7
2016-06-22 10:47:47 +02:00
Florian Festi
de3629eb96
Add new file rebased away during cleanup of previous patchset
2016-06-13 18:57:04 +02:00