Questions tagged [draw.io]

draw.io is an open source online diagramming application

diagrams.net (formerly draw.io) is an open source online diagramming application. This tag should be used for development questions specific to diagrams.net. For questions about the base of the stack in diagrams.net, use the mxgraph tag instead.

180 questions
0
votes
2 answers

How do I enable and use placeholders in connectors using CSV import of diagrams.net

I have a diagram I'm building using CSV. I've figured out how to user placeholders in shape labels. However I would like to also be able to use placeholders in the connections. I noticed that after I import what I already have, the connection…
Jaycuse
  • 31
  • 6
0
votes
1 answer

nested collapsible container in drawio?

I'm wondering if it's possible to nest collapsible containers? In the picture below I have a container containing various lists of text organised in "sections"; it'd be great to be able to collapse the sections individually as well. Related query,…
baptiste
  • 75,767
  • 19
  • 198
  • 294
0
votes
1 answer

Restrict default templates using Draw.io embed

Is it possible to restrict the default templates used in draw.io? I can restrict the custom libraries accessible by passing in an array at the start, but there appears to be no such parameters that limit the initial templates. I've went through the…
Niall Lonergan
  • 891
  • 1
  • 7
  • 29
0
votes
1 answer

Fill grouped lines with background

I want to create a grouped object with multiple lines and fill the object with a background color. As you can see, however, the background does not respect the lines as a frame. Is it possible to fill only the grouped object within the lines?
Bowers
  • 836
  • 8
  • 20
0
votes
1 answer

Override Shape clicked in Palette action

What handler/event do I have to override to change what happens when Shape is clicked in left hand Shapes menu? I would like to just change style/shape of selected vertex already placed on graph, rather than place new shape on the graph.
ga5tan
  • 11
  • 2
0
votes
1 answer

Is it possible to change color for Edge's endArrow?

I'm getting into draw.io and trying to understand whether it's possible to set color not for the whole Edge but only for the endArrow or startArrow. Is there a style property for this?
sys463
  • 337
  • 2
  • 5
  • 18
0
votes
1 answer

How to add new property to a custom Edge shape

I need to add a new property to a custom Edge shape (which extends mxConnector) to change color of the Edge, basing on that property value. Example is below: function ExecutorEdge() { mxConnector.call(this); }; mxUtils.extend(ExecutorEdge,…
sys463
  • 337
  • 2
  • 5
  • 18
0
votes
2 answers

Change mxGraphModel of current mxGraph

I would like to change the model of the current graph displayed. With Java (JGraph) I can use graph.setModel(...) but there is no such method in JavaScript. What is the best way to do this ?
Xavier M.
  • 136
  • 1
  • 7
0
votes
1 answer

Draw a ER diagram using Draw.io

My aim is to draw a ER diagram for a natural language scenario. I already implemented some part of that using python. For drawing an ERD I used draw.io CSV file importing option. The implemented code generate the file which can draw a diagram from…
Sashini Hettiarachchi
  • 1,630
  • 2
  • 10
  • 21
0
votes
1 answer

add sub menus in the sidebar of mxgraph editor?

is it possible to add submenu in mxgraph editor sidebar ? I need many shapes and i wont be able to find them if i cant make submenu Example : -General : --Circles : ---all circles shapes here- --Squares : ---Rounded Squares : -all rounded squares…
Cyri1
  • 389
  • 1
  • 3
  • 9
0
votes
1 answer

How to draw a shape vector for "quarter" circle

I've been going round and round on this. Apparently, my usual muddle-through-the-geometry approach is not working. I'm just trying to create a perfect "quarter" circle sector in draw.io. I read through…
mtyson
  • 8,196
  • 16
  • 66
  • 106
0
votes
1 answer

Encoded image not rendered

I am trying to display a diagram imported with draw.io editor and saved as xml file. To parse and render the diagram's xml I use the mxGraph library that display it correctly except for the encoded images. I mean this part of the xml:
0
votes
2 answers

DrawioEditor extension does not seem to work in MediaWiki 1.33

I have just installed DrawioEditor in mediawiki 1.33 and followed the simple usage step by creating a placeholder {{#drawio:ChartName}} for the chart. According to the doc, when I save the page I ought to see a placeholder with an edit link Save…
Olumide
  • 5,397
  • 10
  • 55
  • 104
0
votes
3 answers

How to get the XML from mxGrpah diagram?

Pointed index.html from mxGraph diagram sample Able to draw the diagrams using editor Enabled local storage Able to get the XML from local storage Editor.useLocalStorage = true; var temp =…
Bala
  • 618
  • 5
  • 21
0
votes
2 answers

How to load xml in to the draw.io diagram?

How to read an xml file to draw the graph. my code line below for fetching the XML data like this. I need to all XML data into the var doc object for drawing the shape in the diagram var doc = mxUtils.parseXml(STYLE_PATH+'/Test.xml'); full code…
Sajith
  • 856
  • 4
  • 19
  • 48