435 questions
0
votes
0
answers
51
views
"Jest Cannot Find Module '@maxgraph/core' in Angular Application Despite Correct Configuration"
I'm working on an Angular application where I'm using the @maxgraph/core library. I've written unit tests using Jest, but I'm encountering an issue where Jest cannot find the @maxgraph/core module. ...
0
votes
1
answer
53
views
I want to insert <image> tag into mxgraph using jquery
I want to insert image tag to mxGraph with the help of jQuery.
$(this).parent().append('<image class="rep" xlink:href="'+src+'" width="25px" height="25px" /&...
0
votes
1
answer
121
views
Why does using structuredClone on an Object in mxGraph result in "Uncaught TypeError: terminal.insertEdge is not a function"
I'm trying to clone an Vertex object in mxgraph, to edit the coordinates without changing the original Vertex, but I get the Error "Uncaught TypeError: terminal.insertEdge is not a function"...
0
votes
2
answers
110
views
Why document.addEventListener('click', handleClick, true) doesn't work
I have a react hook that detects a click outside the element:
export const useClickOutside = (
ref: React.MutableRefObject<HTMLDivElement | null>,
callback: Function,
) => {
const ...
0
votes
1
answer
103
views
No display when loading diagram.xml in mxgraph and react
I am carrying out a project with mxgraph and react in which I want to implement a function that allows loading a diagram saved in an xml file, but when loading the diagram the diagram is not displayed ...
2
votes
2
answers
9k
views
How to import/convert SVG to native Draw.io shape? [closed]
I'm in search of a diagram editor that supports importing intricate shapes while maintaining the page's styling. Draw.io seems promising, but if I'm not mistaken, it primarily facilitates SVG imports ...
0
votes
0
answers
118
views
How do I put a live React component inside a mxgraph (drawio) box?
How do I properly put a live React component inside of mxgraph (drawio) shape?
So far, I have managed to put a pre-rendered react component (see the picture above). This works fine, but events and ...
0
votes
1
answer
81
views
insertvertex is not rendering the image. 'alt' image is shown
createImageShape(imageData) {
console.log(imageData);
alert(imageData);
console.log(mxgraph);
console.log(mxImage);
console.log(mxUtils);
console.log(mxConstants);
console....
0
votes
1
answer
210
views
how to center the graph in mxGraph jn Java
I am trying to center the graph using mxGraph on the center of the graph canvas, and I am writing:
mxGraphComponent comp = ...; // this is my mxGraph component
comp.setCenterPage(true);
But the ...
1
vote
0
answers
61
views
When apply validation in mxgraph take error message as a string
if (mxCell.isEdge()) {
const t = this.graph.getEdgeValidationError(
mxCell,
this.graph.getModel().getTerminal(mxCell, true),
this.graph.getModel().getTerminal(...
2
votes
0
answers
140
views
Append html code to mxgraph diagrm befor export
I am not an English native speaker so please ignore my grammar mistakes.
The question is,
I am drawing shapes on the div using mxgraph and javascript and then exporting it to PNG and SVG, it is ...
-2
votes
1
answer
86
views
How to remove endarrow on mxgraph?
I want to remove andarrow on edge and join the line
I want to remove endarrow on edge on mxgraph.
How can I do as below?
orijinal is here
I want to like this
0
votes
2
answers
143
views
How to find all cells under the selected cell
When I select a cell, I want to find all the connected cells under that cell.
For example, when I choose the ellipse cell as in the picture, I just want to find the cells under it
-1
votes
1
answer
126
views
How can ı get label name in mxgraph?
I place figures on the screen in the mxgraph editor.
How can I access the names of these shapes I placed?
For example, there are 2 ellipses and 1 square on the screen. When I press the button, I want ...
1
vote
2
answers
4k
views
Is it possible to convert Mermaid script to XML(mxGraphModel), so that components in the Mermaid diagram can be customized in Draw.io?
Mermaid allows us to draft and edit diagrams in markdown-styled code, and Draw.io (or Diagrams.net) is able to import Mermaid script, which is however treated as a standalone object after import. The ...