SVG的precision坐标? [英] Precision of SVG coordinates?

查看:144
本文介绍了SVG的precision坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆