SVG的precision坐标? [英] Precision of SVG coordinates?
问题描述
有谁知道SVG的官方precision在浏览器中的坐标?
Does anyone know the "official" precision of SVG coordinates in browsers?
例如:如果我画弧一>几乎360°它最终会消失,因为开始和结束的崩溃。
For example: If I draw an arc with almost 360° it will eventually disappear because start and end are collapsing.
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<style>
path {
stroke-width: 10px;
stroke: black;
fill: none;
}
</style>
<path
d="
M 200 200
A 100 100 0 1 1 199.99999 199.99999"
/>
</svg>
画一个完美的圆圈(在Firefox 34)。然而,加入 9
到 199.99999
收益率没有被绘制。被指定的任何地方这种行为?
draws a perfect circle (in Firefox 34). However, adding a 9
to 199.99999
yields to nothing being drawn. Is this behavior specified anywhere?
推荐答案
SVG规范说的双击precision 。没有UA实现这个虽然因为它们都通过平台的能力,如Direct3D的这一般都是单件precision制约。
The SVG specification says double precision. No UA implements this though because they are all constrained by platform capabilities such as direct3d which are generally single precision.
这篇关于SVG的precision坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!