Comments (2)
Hi derVedro, thanks for pointing this out!
I don't know what the debug
flag in svgwrite.Drawing
does and I'm not sure why the makers of svgwrite
set this flag to True
by default. Without that knowledge I'm too nervous to merge in your requested default overriding of their default. Especially since...
A simple (though not obvious) workaround also exists:
from svgpathtools import *
wsvg(Path(Line(0, 100+100j)), svg_attributes={'debug': False})
From the one %timeit
test I did, this does appear to provide a significant speed increase. I just made a note of this in the disvg
docstring.
from svgpathtools.
I use this workaround already for a while and it works allways (for my stuff). A note in docstring is a good deal.
from svgpathtools.
Related Issues (20)
- Faster Approximate Intersections Code HOT 4
- Converting from CubicBezier to Poly1D doesnt work correctly
- Is `svgpathtools` officially dead? HOT 1
- Cannot get the intersection between two Bezier Curves HOT 3
- closed paths d() method does not write a final "z" HOT 1
- isclosed() suffers from rounding errors when reading paths HOT 3
- negative scale breaks arc sweep
- Deprecated escape sequences
- bpoints2bezier() does not always return a value HOT 4
- Path.point() might not return a value due to numerical errors HOT 2
- Path parsing floating point issue HOT 2
- Crash if Bad Polyline HOT 2
- Provide Access to Parents and Other Tags (diff)
- Order is Not Preserved HOT 1
- Intersection is not counted properly HOT 1
- Any plan for path boolean operations and path simplification? HOT 1
- baseunit ignored in disvg when viewbox parameter is provided
- Create new svg from code
- Reading in dpaths introduces a lot of floating point approximation noise
- ARC Start and End Angles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svgpathtools.