Comments (5)
Can you also give precise information about which browser/other program you are using to view the SVGs? The SVG spec certainly allows this format for numbers (http://www.w3.org/TR/SVG/types.html#DataTypeNumber) but it may be that whatever SVG renderer you are using does not.
from diagrams-svg.
It doesn't work in the OSX finder preview, and Safari Version 6.0.3 (8536.28.10). Works fine in chrome and gimp.
from diagrams-svg.
My guess is that a workaround in blaze svg to render only decimal numbers would fix this, although it's frustrated that apple screwed this up.
from diagrams-svg.
I experimented a little with emitting fewer digits to decrease the size of
the output a little while ago but similar code would need to be changed to
avoid IEEE scientific notation. In my case I used a newtype wrapper with a
different show instance here:
https://github.com/diagrams/diagrams-svg/blob/master/src/Graphics/Rendering/SVG.hs#L61-L65.
If it is just the linewidth that is parsing incorrectly then this isn't
that big of a change.
On Sun, Mar 31, 2013 at 2:41 PM, Jonathan Fischoff <[email protected]
wrote:
My guess is that a workaround in blaze svg to render only decimal numbers
would fix this, although it's frustrated that apple screwed this up.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-15695833
.
from diagrams-svg.
I actually don't think it is just line width. I'll figure out the extent of the the issue.
On Mar 31, 2013, at 12:02 PM, Ryan Yates [email protected] wrote:
I experimented a little with emitting fewer digits to decrease the size of
the output a little while ago but similar code would need to be changed to
avoid IEEE scientific notation. In my case I used a newtype wrapper with a
different show instance here:
https://github.com/diagrams/diagrams-svg/blob/master/src/Graphics/Rendering/SVG.hs#L61-L65.
If it is just the linewidth that is parsing incorrectly then this isn't
that big of a change.On Sun, Mar 31, 2013 at 2:41 PM, Jonathan Fischoff <[email protected]
wrote:
My guess is that a workaround in blaze svg to render only decimal numbers
would fix this, although it's frustrated that apple screwed this up.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-15695833
.—
Reply to this email directly or view it on GitHub.
from diagrams-svg.
Related Issues (20)
- Embed SVG images HOT 3
- Why is the viewport rounded?
- SVG backend has broken text fusion HOT 5
- Support for GHC-8.8 HOT 4
- diagrams-svg-1.4.3.1 requires diagrams-lib-1.4.5 HOT 1
- Drawing a circle produes a path and not a circle. HOT 3
- Embedding JPEG images without repacking
- Data type for command line options need to be exported
- Font size not applied properly in composite diagram HOT 2
- clipping broken HOT 3
- Put `clip path`, `gradients`, etc in defs tag. HOT 1
- hackage release for ghc-7.10.1 compatability HOT 1
- Embedded font definitions HOT 7
- Applying SVG Attribute via SVGOptions' _svgDefinitions Fails HOT 2
- Allow xml references HOT 2
- Transformation returned by adjustDia is flipped
- Spaces not preserved in text HOT 3
- Support for <foreignObject>
- Option to not XML-escape text HOT 8
- Gradient is not applied to text HOT 1
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 diagrams-svg.