相关疑难解决方法(0)

Titanium桌面的SVG?

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

在此输入图像描述

svg desktop-application titanium appcelerator

5
推荐指数
1
解决办法
776
查看次数

标签 统计

appcelerator ×1

desktop-application ×1

svg ×1

titanium ×1