Query |
Response | |
Is this the best way to go about this or is there some other kind of object type that can display something like this on a diagram? |
Yes, the best way is to use our HTML node to display a table data in diagram. | |
Do you have any examples of adding a layer with a node using nothing but JS?
this is what I was trying to do during the create event but it doesn't seem to work and I suspect I'm missing something. |
In your code example, you have set a node object in layers objects collection in the addLayer method, but the node object should be passed as a second parameter in addLayer method. Please refer to a code example, help documentation and sample below.
Code example:
Help documentation: https://ej2.syncfusion.com/documentation/diagram/layers/?no-cache=1#add-layer-at-runtime
|
Query |
Response |
Just realized you can't export the html data. What option is there to do something like this and allow for it to be exported into an image format with the diagram? |
We can export native or HTML node to image format using webkit rendering engine. Please refer to a KB link and sample below.
|
Also, is there a way to get the print option to actually print the entire diagram if it doesn't fit in the window? (it scrolls) |
Yes, the diagram content within/outside the viewport will be printed/exported in a single image. In webkit, we don’t have option to print multiple image. Please refer to the sample provided above. |
Another question is, is there a way to add titles to the diagrams so that when you print or export you can display something? |
You can use our TextNode to add titles in the diagram control. Please refer to a help documentation.
Help documentation: https://ej2.syncfusion.com/javascript/documentation/diagram/shapes/#text
|
Query |
Response |
So... I started using the webkit to for the HTML to an image and we need an explanation of how this actually works because CrowdStrike started going NUTS with critical no nos because the webkit binaries or whatever were writing something and executing something every time we tried to run the code to generate the image.
It looks as if it writes a file under w3wp.exe into a temp location and the executes that file when it runs. Can you give us any incite on this and how this process actually works so we can determine how to make sure CrowdStrike does not flag this process as some kind of injection/virus?
|
We use webkit rendering engine to convert HTML to image format. Please refer to a help documentation to know more about webkit.
Help documentation: https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit
|
Also, when adding a layer and a node into that layer, why does setting offsetX and offsetY not seem to do anything? I assume there is no way to just place a node at the top/center or such? |
No, you can position the nodes with offset and add that nodes into layer. We have created a sample in which we have created nodes and added into layers. Please refer to a sample and help documentation below.
Help documentation: https://ej2.syncfusion.com/javascript/documentation/diagram/layers/
|