S. No |
Queries |
Solution |
|
Tools, specifically free form drawing of lines |
Tools – Xamarin Forms Diagram provides support for tools with two major tools options. i.e., Text Node tool and Connector tool like JS Diagram. The following explains more about Tools support in Xamarin Forms Diagram https://help.syncfusion.com/xamarin/sfdiagram/drawingmode
|
|
Compatibility of JSON diagram expression between implementations |
SaveAsJson() - Method to serialize (Save) diagram objects data in Json format. |
|
Custom SVG node templates leveraging, say, SkiaSharp within the template |
Custom SVG Template – We can handle SVG data from sample level and we can assign the template to diagram node template property to achieve the SVG template support in Xamarin Forms diagram. The Conversion for SVG stream to node template can be achieved through SkiaSharp support. Please find the sample for SVG template in the below mentioned link.
|
|
Export of the Xamarin Forms diagram to SVG with aforementioned customization |
Currently we don’t provide support for svg export in Xamarin Forms diagram. Diagram can be exported in Image format (.png , .jpeg) and Json format. Kindly shares us your complete details/scenario in which this feature is required. So, we will check for other possibilities solution to achieve your requirement. |
S.No |
Queries |
Solutions | |
|
1. The Connector tool in the Xamarin Forms diagram is the entry point for the free form drawing experience of Essential JS. There, I can activate the tool and draw lines, straight or curved, any number, until deactivated. What I read from your link and here is that it might be possible with customization of the behaviors of the tool and assembling segments from captured gestures, but there is no Connector tool mode that would allow me to draw and create multiple segments for that line or connector within the Xamarin Forms Diagram. |
We have provided support for connector tool in Xamarin Forms Diagram. The connector tool can be enabled using following sample code .
Code example:
Please refer the link for UG documentation:
| |
|
Yes, I am aware that I can save as JSON, however, I am specifically interested in the model compatibility between implementations. I understand there are some HTML/CSS specific annotations in the Essential JS version, however, if all other properties are similarly named and there is a development objective to retain compatibility with the other implementations, that is of interest to me. |
The JSON saved data from Xamarin forms Diagram can be retrieved only by using Xamarin forms Diagram. | |
|
Thank you for the sample, I will review it. |
Please let us know if you have any queries in the sample. | |
|
Relative to exporting to SVG - in the Essential JS version I was able to export the diagram as SVG and then scale it to appropriately fit a customized report output, which had variability in content beyond the diagram SVG content. I used the same SVG export support of the chart to then assemble a rich report from the visuals that the Syncfusion controls created to a scalable report output. Using the exported image (and this was true in Essential JS early-on too) is not feasible as the quality degrades. |
Can you please provide us more information about the issue which is reproduced at your end? So, we can provide a prompt solution for the mentioned issue / behaviors. |
S.no |
Queries |
Solutions |
|
The difference in the Connector Tool for Xamarin Forms is that it only provides for segment types and connections between shapes and ports of nodes. Activating the Connector Tool mode (using the SampleBrowser.SfDiagram Drawing Tool sample shipped in 17.1.0.38) does not allow me to draw a line on the diagram as I did with Essential JS (activate the connector tool in the sample, draw a line that does not connect any other nodes or ports to simulate recreating the behavior above.) |
We are regret to let you know that SfDiagram doesn’t provide support for Freeform / Polyline connector tool. |
|
There may be an issue with serializing diagrams that use custom models - this can be reproduced from the XF Sample Browser using the Organization Chart. |
We can reproduce the same issue from our side as mentioned. Currently we don’t provide support to serialize (save as JSON data) for custom model in Xamarin forms Diagram layout |
|
I see when serializing the sample node that the pathData property can be found in the JSON expression of the node. That would be more inline with SVG template support within Essential JS Diagram - is custom SVG node support then on the roadmap? |
In the given sample, we are adding the SVG path to node as a template using SkiaSharp conversion. The path data property holds the value of SfGraphics path so SVG data from the sample is not preserved. We have logged a feedback report for importing SVG data as a custom node. The feedback report link is available below.
|
|
SVG support in nodes and export is an issue. The Essential JS support for it is great and should be a high priority for porting to the XF implementation. An image export does not retain the quality of the original and does not scale without image quality loss. |
SfDiagram supported image support (.png and .jpeg) are raster image format so if you zoom on the saved image, the images will get pixelate which is a default behavior of .png and .jpeg. But SVG format is vector image file format which will not have pixels or grain effects like .png and .jpeg. We have logged this requirement as feature request. Once the feature is implemented (Importing and Exporting SVG for Diagram) this issue will be resolved. We don’t have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features. We will let you know when this feature is implemented.
Feedback report link:
|