Titanium桌面的SVG?

dan*_*ani 5 svg desktop-application titanium appcelerator

我正在运行Titanium Desktop的1.1.0 SDK,只有我的SVG文本元素才能正确呈现.诸如getBBox()之类的SVG方法会给出错误消息.

该应用程序在Titanium环境之外运行良好 - 即:Chrome,Firefox,Safari.

关于如何解决这个问题的任何想法?(什么浏览器+版本真的在Titanium中运行??)

谢谢.

编辑:

示例SVG代码:

<svg width="400" height="400" viewBox="0 0 400 400"
     xmlns="http://www.w3.org/2000/svg" version="1.1">
  <title>Example triangle01- simple example of a 'path'</title>
  <desc>A path that draws a triangle</desc>
  <rect x="1" y="1" width="398" height="398"
        fill="none" stroke="blue" />
  <path d="M 100 100 L 300 100 L 200 300 z"
        fill="red" stroke="blue" stroke-width="3" />
</svg>
Run Code Online (Sandbox Code Playgroud)

在Chrome和其他浏览器中呈现三角形:

在此输入图像描述

在Titanium Desktop中不呈现任何内容(或仅呈现文本元素):

在此输入图像描述

Dro*_*ona 1

您粘贴的 SVG 非常基本,应该可以在所有 SVG 支持的环境中正常工作。以下是 W3C 综合测试套件的链接,用于测试 SVG 标准的一致性。请找到一种在您的环境中运行这些测试的方法。如果测试失败,那么您的环境可能不支持完整的 SVG 规范。

http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-index.html