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
1
vote
1 answer

In diagrams.net, create "connector with symbol" with custom shape

Pretty recently, in the "General" section of shapes, the "connector with symbol" was added. I was able to replace the email symbol with built-in shapes by editing the "Style" of the shape and setting shape=message to shape=cloud, for instance. But…
von_court
  • 152
  • 2
  • 10
1
vote
0 answers

Draw.io IIS Virtual Directory

I am struggling to make the necessesary configurations to run the Draw.io Asp.net samples (https://jgraph.github.io/mxgraph/dotnet/index.html). According to the docs To run the ASP.NET examples in IIS, a virtual directory must be created that maps…
Jim
  • 2,760
  • 8
  • 42
  • 66
1
vote
0 answers

Can't create the shape I want in drawio

I am trying to make a simple custom triangle shape in draw.io. Unfortunately, there is something very fundamental that I don't understand. The first image shows the XML I used to create the image. Note that a preview shows the offset from (0,0) The…
Tony Ennis
  • 12,000
  • 7
  • 52
  • 73
1
vote
1 answer

How do I decompress the diagram data in a .drawio file with node.js and zlib?

Diagrams.net, previously and still more widely known as draw.io, is a popular tool for drawing diagrams of various kinds. It stores diagrams in an XML-based format that uses the file ending .drawio. The file content has the structure:
Florian
  • 4,821
  • 2
  • 19
  • 44
1
vote
1 answer

auto-connect nearby connectors in imported draw.io file?

I am importing flowcharts from another platform and most of the objects come through intact, but connectors are not attached to their intended shapes. Manually connecting every one of these lines is tedious and this is a frequent task for me. Is…
1
vote
1 answer

How to convert draw.io compressed data from exported png file to xml

I exported a draw.io diagram as png from local draw.io application. The xml is somehow hidden inside this png file probably in the "tExt" chunk. I am trying to "borrow" the draw.io JS implementation of parsePng and convert that to python. The XML is…
Igor L.
  • 3,159
  • 7
  • 40
  • 61
1
vote
1 answer

Confluence embedded draw.io png created via confluence plugin does not contain xml metadata

When exporting my diagram created via local draw.io into a png named "sample.png"I can import it back into a blank draw.io project and the objects are parsed out allowing me to proceed with editing the diagram via draw.io When I create a new…
Igor L.
  • 3,159
  • 7
  • 40
  • 61
1
vote
0 answers

Catchs more events into the iframe diagrams.net

I would like to know if in app.diagram.net (embedded) it was possible to capture events via postMessage() from the app to the client and vice versa? Here is what I am looking for: the "drag and drop" event of a shape on the canvas the right click…
jdelpierre
  • 11
  • 4
1
vote
0 answers

Add submenu to an option

I am developing a plugin for draw.io and I have the following code Draw.loadPlugin(function(ui){ if (ui.sidebar != null){ mxResources.parse('Download=Download'); mxResources.parse('Err=Err'); …
H_2525
  • 11
  • 2
1
vote
1 answer

Does draw.io expose any JS API for manipulating its drawing elements programatically?

I mean I want to use draw.io in my own product which requires drawing. But I need to able to programatically control the elements also. as a simple example based on certain conditions I want to highlight a certain element programatically, like a…
sktguha
  • 524
  • 3
  • 21
1
vote
0 answers

Weird behavior for textarea in diagrams.net (draw.io) format panel

I'm facing a very weird (& blocking) issue using diagrams.net webapp. I'm trying to add some nodes in the Format Panel. I created a new tab in this panel & added in it some new inputs. There are text inputs, checkbox inputs & textarea. But the…
Totone
  • 162
  • 7
1
vote
2 answers

draw.io How do I set a container element to be vertically scrollable

I can currently add a container element from the sidebar to my diagram and drag and drop text to the container, where each text line added to the container becomes a separately selectable element. I want, when I drag and drop more text lines to the…
rcaschultz
  • 173
  • 6
1
vote
1 answer

Can you fix a background/line/border in draw.io that stretches when you go onto a new work area/page?

I'm in the process of setting up a template in Draw.io but would like to set it up so the background/page border stays fixed when extending the size of the work area. Is there any way to do this either in Draw.io or maybe through a plugin? Or if I…
samhankin
  • 93
  • 1
  • 1
  • 8
1
vote
1 answer

Import Shapes of Custom Library from Draw.io in mxGraph

I'm currently working with the mxGraph library in javascript and I'm trying to create my own shapes in draw.io, to export them, then to reuse them as much as I want in my own program using the mxGraph library. So far, I have tried to create a custom…
Jensyl
  • 25
  • 5
1
vote
0 answers

XMLHttpRequest blocked in draw.io Electron app

I am desperatly trying to code a plugin for Draw.io that will basically do a request to another website in order to get some images. It works fine on the local web version of Draw.io, but on the desktop version I get an empty responseText. Here is…
Docteur G
  • 11
  • 1