mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
Better text handling for flowcharts
This commit is contained in:
@@ -57,7 +57,7 @@ var addVertices = function (vert, g) {
|
||||
|
||||
// Create the node in the graph based on defined form
|
||||
if (vertice.type === 'round') {
|
||||
g.setNode(vertice.id, {label: verticeText, rx: 5, ry: 5, style: style, id:vertice.id});
|
||||
g.setNode(vertice.id, {labelType: "html",label: verticeText, rx: 5, ry: 5, style: style, id:vertice.id});
|
||||
} else {
|
||||
if (vertice.type === 'diamond') {
|
||||
g.setNode(vertice.id, {shape: "question", label: verticeText, rx: 0, ry: 0, style: style, id:vertice.id});
|
||||
@@ -249,7 +249,7 @@ var init = function () {
|
||||
* @returns {string}
|
||||
*/
|
||||
exports.version = function(){
|
||||
return '0.2.3';
|
||||
return '0.2.4';
|
||||
}
|
||||
|
||||
var equals = function (val, variable){
|
||||
|
Reference in New Issue
Block a user