Coder Social home page Coder Social logo

Comments (5)

byorgey avatar byorgey commented on June 16, 2024

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.

jfischoff avatar jfischoff commented on June 16, 2024

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.

jfischoff avatar jfischoff commented on June 16, 2024

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.

fryguybob avatar fryguybob commented on June 16, 2024

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.

jfischoff avatar jfischoff commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.