以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  2000元人民币急寻能实现SVG分组功能的  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=57847)


--  作者:earthbird
--  发布时间:1/8/2008 10:11:00 PM

--  2000元人民币急寻能实现SVG分组功能的
SVG Grouping function
SVG的分组功能

The purpose of this function is to be able to create groups of objects and apply animated functions like Move, Rotate, Scale.
这个功能的目的,是能够创造出很多组群的对象和适用的动画功能,如移动,旋转,缩放。

Class has to be compatible with Mootools V1.11 for mouse events and if possible for requests
如果可以的话CLASS必须符合鼠标事件的Mootools V1.11。

The function should use the Id of the objects selected
该功能应使用选定对象的ID

Must work as Inline SVG
必须作为内嵌的SVG来工作

Has to work for any kind of shapes
必须为任何类型的形状工作

Group of objects can include un-scalable objects and scalable objects (class 'no_resize')
这些组群对象可以包括 不可缩放对象和可缩放对象(class 'no_resize '不可缩放 )

1. Shift & Click selects or unselects objects in SVG canvas
在SVG的画布上 拖放 和 点击 已选定和未选定 对象

2. Selected object is marked up with a bold border
2 。选定对象能显著标明边界

3. Click on no objects but in Canvas unselects all
{不确定含义}点击任何物体,但在画布上不选定所有

4. Create a tracker around group of selected objects for the Scaling/Rotation/Move functions
为所选对象的组群的缩放/旋转/移动功能建立一个操作记录

5. create an array with original state/ after state with coordinates of objects for Undo / Redo function
为该对象的坐标创建一个原始状态/修改后状态的阵列,以实现撤销/重做的功能

6. After transformation confirmation the objects have to become independent objects again
确认修改以后,该对象再次成为相对独立的对象。


Browser: FireFox and Internet Explorer
浏览器:FireFox and IE
能做的请加我QQ:303569或者打我手机13607006588,没有相关案例不要来找我哈


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms