-
Notifications
You must be signed in to change notification settings - Fork 0
Ext.graph.Clipboard
tianmo edited this page Aug 30, 2012
·
3 revisions
实现剪切板的功能
Ext.create('Ext.graph.Clipboard', {
graph: this//Ext.graph.Panel
});
绘图组件容器
Type: Ext.graph.Panel
剪切板是否为空
返回:boolean
剪切
- graph:要剪切的元素所在的绘图容器,如果没有,则是剪切板容器的graph。
- cells:要剪切的元素,如果没有,则为graph选中的元素
返回:剪切的元素集合
复制
- graph:要剪切的元素所在的绘图容器,如果没有,则是剪切板容器的graph。
- cells:要剪切的元素,如果没有,则为graph选中的元素
返回:复制的元素集合
粘贴
- graph:目标容器,如果没有,则是剪切板容器的graph。
- xy:目标位置,如果没有,则默认当前要粘贴的元素的位置