ShapeID is -1 when shape comes from LoadEdits()

The new ShapeID feature works great for shapes added through the interface, but when they are added using the .LoadEdits() function the ShapeID is set to -1 on all of them.

You can see this by adding a shape, verifying that the Settings property contains a ShapeID in the Selected action, then doing a .SaveEdits() and .LoadEdits(), and verifying that the ShapeID is -1 now in the selected action.

I'm expecting ShapeID to get set to an index like the ones created by the interface.


2 Replies

VR Vignesh Ramesh Syncfusion Team December 23, 2021 03:20 PM UTC

Hi Johan Coleman, 

Greetings from Syncfusion. 

We can reproduce the reported scenario, we have considered this internally and include it in our upcoming weekly NuGet release which is scheduled to be rolled out on 28th December 2021. We appreciate your patience until then. Also, we would like to inform you that the behavior of this scenario will be while calling LoadEdits(), if there are no shapes added newly in ImageEditor after serializing the shapes, then the same ShapeID will be retained. otherwise, the ShapeID of the serialized objects will be updated based on the ShapeID of the newly added shapes since we need to maintain the unique ID for every shape. 

Regards,  
Vignesh Ramesh. 



ET Eswaran Thirugnanasambandam Syncfusion Team December 28, 2021 02:03 PM UTC

Hi Johan Coleman, 
 
 We have fixed the reported issue and the fix is included in our weekly NuGet of December 28, 2021. 
 
NuGet Version: 19.4.0.40 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Eswaran 


Loader.
Up arrow icon