gpt4 book ai didi

javascript - jQuery 中有类似 Dojo GFX 的东西吗?

转载 作者:行者123 更新时间:2023-11-28 02:19:29 24 4
gpt4 key购买 nike

dojox.gfx (GFX) 是一个与 dojo 一起运行的跨平台矢量图形 API。

它有助于将您的应用程序与所有现代浏览器中的许多 native 矢量图形实现差异隔离开来。

来自dojox/gfx文档:

As of Dojo 1.8, the following native vector graphics engine adaptations are implemented:

  • SVG (Firefox 1.5-3.0, Safari(Webkit) 3+, Opera 9+, Chrome 1.0+, iPhone Safari 2.1+
  • VML (IE 6-7-8)
  • Silverlight (wherever it is supported by Microsoft)
  • Canvas (Firefox 3.0+, Safari 3.0+ including iOS Safari 1.0+), Opera 9.0+, Chrome, IE9+

Development of a new experimental renderer which uses SVGWeb is also underway.

jQuery 中有类似 dojo GFX 的东西吗?

最佳答案

不幸的是, native jQuery 库中没有任何内容。您将必须使用其他插件/库才能获得相同级别的支持。我相信raphael支持 SVG 和 VML。或者,您仍然可以将 dojox/gfx 模块与 jQuery 一起使用。由于许多 Dojo 库将不再使用,因此您的 JS 中可能会出现一些额外的膨胀,但是缩小会有所帮助(如果您真的雄心勃勃,您可以删除不需要的部分需要,但这需要对源代码进行大量挖掘)。

关于javascript - jQuery 中有类似 Dojo GFX 的东西吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15878609/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com