Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The main entry point for the widget is the `XMLDiagram` property. This represent
* `JSONArrayGraphCells`: Override allowing you to do state formatting on the element. It should be an JSON object containing id, value, fillColor and strokeColor.
* `SelectedCellId`: The Id of the currently selected cell.
* `AutoLayout`: The layout algorithm to be applied in the cells in the diagram. By default, no algorithm is selected, meaning that the positions of the cells in the XML are respected. If one algorithm is selected, the graph will be organized acording to that layout.
* `EdgeStyle`: Override the edge style algorithm in the XML. Usually used toghether with `AutoLayout`, allows for generation of good looking edged between cells.
* `EdgeStyleValue`: Override the edge style algorithm in the XML. Usually used toghether with `AutoLayout`, allows for generation of good looking edged between cells.


The following events are also available:
Expand Down Expand Up @@ -49,12 +49,8 @@ The following commands allow you to build and compile your widget:

# Gallery

![mxGraph](demo/img/mxGraph1.png)

![mxGraph](demo/img/mxGraph2.png)

![mxGraph](demo/img/mxGraph3.png)

# Credit/Acknowledgment
Petrisor Lacatus (@stefan-lacatus)

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mxdiagram",
"version": "0.0.300",
"version": "0.0.301",
"description": "Widget to display draw.io diagrams or value process diagrams",
"thingworxServer": "http://localhost:8016/",
"thingworxUser": "Administrator",
Expand Down Expand Up @@ -58,4 +58,4 @@
"jjgraph": "github:stefan-lacatus/jjgraph#master",
"pako": "^1.0.6"
}
}
}
4 changes: 2 additions & 2 deletions src/mxdiagram.ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ TW.IDE.Widgets.mxdiagram = function () {
},
]
},
'EdgeStyle': {
'EdgeStyleValue': {
'description': 'The edge style to be applied to loaded XML.',
'baseType': 'STRING',
'defaultValue': 'None',
Expand Down Expand Up @@ -195,4 +195,4 @@ TW.IDE.Widgets.mxdiagram = function () {
return '<div class="widget-content widget-mxdiagram-viewer"></div>';
};

}
}
2 changes: 1 addition & 1 deletion src/mxdiagram.runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ TW.Runtime.Widgets.mxdiagram = function () {
this.resetCurrentGraph();
let container = this.jqElement[0];
let currentGraph = xmlDiagramLoader.createGraphFromXML(container, updatePropertyInfo.SinglePropertyValue,
this.getProperty("CustomShapesXMLPath"), this.getProperty("AutoLayout"), this.getProperty("EdgeStyle"));
this.getProperty("CustomShapesXMLPath"), this.getProperty("AutoLayout"), this.getProperty("EdgeStyleValue"));
this.setNewActiveGraph(currentGraph);
break;
}
Expand Down