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
3 answers

Draw.io - Custom arrow with object in middle

I would like to create my custom arrow similar to Message Flow 2 arrow of draw.io palette. The mentioned arrow has an object in the middle and they behave nicely; middle object not gets resized, it moves with the line, stays upright etc. When…
Adam Horvath
  • 1,249
  • 1
  • 10
  • 25
1
vote
0 answers

import Visio diagram into draw.io automatically (with api, with script..)

I am using mxgraph since a lot of time for creating diagrams and saving into database. I saw that with drawio i can import Visio files. question is how to do it more automatically.. i want to save it in database so i can easily search. in mxgraph…
Vasilev
  • 87
  • 1
  • 9
1
vote
0 answers

Make a path from multiple connectors (in draw.io or other free tool)

is it possible in draw.io to associate multiple connectors/lines to a path, so that when I select one of these connectors/lines (or hover a mouser over it or something else) then I also see (e.g. highlighted) the whole path? Example Sample…
Tomeg
  • 5,549
  • 2
  • 14
  • 9
1
vote
1 answer

Partially filling a rectangle with mxgraph

Is it possible to fill only part of a shape (at least for a rectangle)? For instance 75% blue and 25% red as in a bargraph? Or any advice on how to do it programmatically? Of course I can always put a rectangle on top on another one but if I can do…
Xavier M.
  • 136
  • 1
  • 7
1
vote
0 answers

Draw.io embed mode - customize edit link form

Does Draw.io embed API provide any way to customize the edit link form? For example supplying a list of autocomplete values, dynamically fetched as the user types in the text field. I have only found the embed mode documentation, which does not seem…
Ladas125
  • 265
  • 3
  • 14
1
vote
0 answers

why the dynamically created element's events can not catch more then once?

I have an HTML page which is generated by draw.io. I have made a tree which has expandable and collapsible feature. My Ultimate goal is to make the tree expandable as if it opens level by level inspite of expanding all the level at a time. But I can…
tuhin47
  • 5,172
  • 4
  • 19
  • 29
1
vote
2 answers

How to give unique line names for draw.io diagram generated form CSV?

I am using sample csv to generate a network diagram. I need to name the lines that connects one component to other. In the sample Lines are generated by the following code: # connect: {"from": "user", "to": "name", "invert": true, "label": "", \ # …
ZeeProgrammer
  • 195
  • 1
  • 13
1
vote
1 answer

How to not stretch a shape I put inside a server rack in draw.io?

Every shape I place inside a server rack is stretched out over the full width of the server rack. I need to place some smaller items in the rack, how do I prevent the stretching? I have tried to add the style property resizable=0; but that gives no…
markovang
  • 31
  • 5
1
vote
0 answers

Autoscroll overflow text in mxGraph

I want to have autoscroll on label if it overflows it's container(effect like this: https://codepen.io/jamesbarnett/pen/kfmKa ). Label on SVG is rendered as foreignObject tag that contains value wrapped into two divs. I tried to override…
Godric
  • 769
  • 7
  • 18
1
vote
0 answers

In mxgraph inside draw.io we pop up a dialog that has a text area. How to control scroll speed while selecting?

Thank you for making mxgraph and draw.io open source. We have been extending it to enhance productivity. One thing we did was add a dialog box that pops up, where you can enter a text description. However, after you enter a lot of text, and then…
seanhalle
  • 973
  • 7
  • 27
1
vote
1 answer

Export / Access Confluence page as HTML including graphics

We are creating / managing user documentation for our solution in Confluence Cloud with the Draw.io plugin. We want to present the content as HTML on our secure portal. To do this we need to export / access the pages as html as well as any…
JMcLeman
  • 49
  • 5
1
vote
1 answer

Draw.io - catch changes

When a user load the draw.io on my site, I want to know when he does any change on it. My goal is to disable the save button as long there are no changes. I could set a property at mxEvent.CELLS_ADDED, mxEvent.CELLS_REMOVED, mxEvent.CELLS_RESIZED,…
Frank Mehlhop
  • 1,480
  • 4
  • 25
  • 48
1
vote
1 answer

get text of vertex on click in MxGraph

I am working on mxGraph, I need to get the the text of clicked vertex. The click should be right click. By default, on right click on vertex,a menu is shown, I have added my custom menu on it, and on that Custom Menu click I need to get the Text of…
Bilal Zafar
  • 447
  • 7
  • 20
1
vote
1 answer

Apache app(draw.io) redirected to https automatically

I tried deploying the draw.io into tomcat:latest docker, by copying the draw.io into webapps folder. But when I try to access it, it is automatically getting redirected to https. But other apps are working fine with the same tomcat. What could be…
Kannan Ramamoorthy
  • 3,980
  • 9
  • 45
  • 63
1
vote
0 answers

Using draw.io OR build own interactive flow chart

Is it possible to use draw.io like the JQuery UI Library where I can integrate it into a web application? If not, what are the best tools available that I can use to create an interactive flow chart similar to draw.io feature for a web application?
TA27318
  • 11
  • 2