我正在运行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中不呈现任何内容(或仅呈现文本元素):
