[英]SVG JavaScript/ECMAScript API
SVG is ofcourse a XML language, but it's also accessible through JavaScript/ECMAScript. SVG当然是一种XML语言,但它也可以通过JavaScript / ECMAScript访问。 It supports various functions like
getCTM
, getScreenCTM
, getBBox
, but I can't find a list anywhere of all the functions that are related to SVG. 它支持各种函数,如
getCTM
, getScreenCTM
, getBBox
,但是我无法找到与SVG相关的所有函数的任何位置。 Or a list that shows which functions are implemented by the various browser vendors. 或者列出显示各种浏览器供应商实现的功能的列表。 Before I dig into the source , I wonder whether someone did that already, or knows a place where I can find a full API reference for SVG.
在深入研究源代码之前,我想知道是否有人已经这样做了,或者知道我可以在哪里找到SVG的完整API参考。
The SVG specification has a DOM chapter From there you can navigate to the different DOM interfaces eg basic DOM . SVG规范有一个DOM章节从那里你可以导航到不同的DOM接口,例如基本DOM 。
The Mozilla project is also attempting to document the SVG DOM . Mozilla项目也试图记录SVG DOM 。 It has specifica documentation on many interfaces eg SVGLengthList and is trying to document what UAs support which DOM methods but that information is currently rather incomplete.
它具有许多接口的特定文档,例如SVGLengthList,并且正在尝试记录哪些UA支持哪些DOM方法,但该信息当前相当不完整。 Anyone can add additional information/corrections to the mozilla documentation though.
但是,任何人都可以在mozilla文档中添加其他信息/更正。
Microsoft also has a documentation site . 微软还有一个文档站点 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.