Comments (6)
All visual rendering must be accurate to within one device pixel (px unit) to
the mathematically correct result at the initial 1:1 zoom ratio. It is suggested
that viewers attempt to keep a high degree of accuracy when zooming.
and
Both a Conforming High-Quality Static SVG Viewer and a Conforming
High-Quality Dynamic SVG Viewer must support the following additional
features:
...
At least double-precision floating point computation on coordinate system
transformation numerical calculations.
SkScalar of SKIA, the Chrome rendering library, which use float in it's pipeline.
Simply put, for rendering, float precision is sufficient. Thus said, holding all the geometry and transformation can be put in double, if it can open more use of the library. But changing the type of the drawing attributes hold literally no value.
And what is more problematic for me, it's a major change forcing a bump to a 0.3 version, that will force me to update rasterific-svg . I'm willing to accept a patch, if only transformation/geometry is switched to doubles.
from svg-tree.
What about _strokeWidth :: Number
? That's a drawing attribute but is it OK to switch that to using Double since all the transformation/geometry uses the Number type as well?
from svg-tree.
I think we can, let's just keep only the color stuff with Float
from svg-tree.
So the problem I am running into in making this change as you describe is that the other attributes are tied to Number through the cssUniqueFloat
and cssUniqueMayFloat
lenses. I haven't had the time to understand whether these can be decoupled from Number in a nice way.
from svg-tree.
I've pulled your modifications and switched back the value for opacity, and bumped the revision number. is it good for you?
from svg-tree.
Yes, perfect, thanks very much! The ASetter
type and the Lense operators were confusing me.
from svg-tree.
Related Issues (15)
- Handle path with whitespace on front HOT 1
- Haddock seems to run forever (GHC 8.2) HOT 2
- Support <desc> tag
- Export NamedColors HOT 1
- Are the monoids necessary? HOT 1
- ElementRef doesn't support basic shapes. HOT 1
- The ID attribute doesn't belong in DrawAttributes.
- <a> inside Text HOT 2
- Confusion with reanimate-svg HOT 3
- documentSize return type HOT 1
- strange bug in parsing/printing xlink:href attributes HOT 1
- Exception thrown while printing test case: '<<loop>>' HOT 6
- Serialization of None values in Trees HOT 1
- Id redefination is still possible HOT 4
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 svg-tree.