Commit aaf8e4ab by 李耀琨

完成回显

parent d5093a79
...@@ -1294,6 +1294,7 @@ export default { ...@@ -1294,6 +1294,7 @@ export default {
// const parent = this.graph.getDefaultParent(); // const parent = this.graph.getDefaultParent();
this.graph.getModel().beginUpdate(); this.graph.getModel().beginUpdate();
const styleObj = { const styleObj = {
fillColor: 'transparent', fillColor: 'transparent',
strokeColor: '#000000', strokeColor: '#000000',
strokeWidth: '1', strokeWidth: '1',
...@@ -1349,9 +1350,9 @@ this.graph.getModel().beginUpdate(); ...@@ -1349,9 +1350,9 @@ this.graph.getModel().beginUpdate();
var cell = this.graph.insertVertex(this.graph.getDefaultParent(), null, res.documentElement, x, y, width, height,style var cell = this.graph.insertVertex(this.graph.getDefaultParent(), null, res.documentElement, x, y, width, height,style
); );
cell.title = toolItem["title"]; cell.title = toolItem["title"];
cell.ids = toolItem["id"]; // cell.ids = toolItem["id"];
cell.pluginId = toolItem["pluginId"]; // cell.pluginId = toolItem["pluginId"];
cell.icon = toolItem["icon"]; // cell.icon = toolItem["icon"];
this.graph.setSelectionCells([cell]); this.graph.setSelectionCells([cell]);
} finally } finally
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment