diff --git a/README.md b/README.md index 201bdb4..b050fc9 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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) diff --git a/package.json b/package.json index f248bbb..ff1f0d9 100644 --- a/package.json +++ b/package.json @@ -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", @@ -58,4 +58,4 @@ "jjgraph": "github:stefan-lacatus/jjgraph#master", "pako": "^1.0.6" } -} \ No newline at end of file +} diff --git a/src/mxdiagram.ide.ts b/src/mxdiagram.ide.ts index 3de51ad..2753c4e 100644 --- a/src/mxdiagram.ide.ts +++ b/src/mxdiagram.ide.ts @@ -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', @@ -195,4 +195,4 @@ TW.IDE.Widgets.mxdiagram = function () { return '
'; }; -} \ No newline at end of file +} diff --git a/src/mxdiagram.runtime.ts b/src/mxdiagram.runtime.ts index c534085..f4f1738 100644 --- a/src/mxdiagram.runtime.ts +++ b/src/mxdiagram.runtime.ts @@ -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; }