This is a migrated thread and some comments may be shown as answers.

Recommended approach for saving to/opening from stream

4 Answers 68 Views
Drawing API
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 2
Iron
Jack asked on 28 Jul 2016, 07:25 AM

I need to build a drawing tool which can save to a stream (possibly JSON) and load form the same stream either to display or make changes.

This scenario does not seem to be supported by the drawing API but since the Surface has a draw method, I am assuming it has an internal representation of drawing objects which can be saved and reloaded.

What would be the best approach to achieve this.

Would you have a basic dojo/fiddle available?

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 01 Aug 2016, 07:52 AM
Hi,

We don't currently have built-in means to serialize a scene graph. It's easy to see how this feature can be very useful.

Each drawing element has a "nodeType" field and an "options" configuration object.
Serializing a shape tree with these fields should be sufficient.

Please, file a feature request on our UserVoice portal if you have a minute.
This will help us gauge the overall interest and prioritize.

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Jack
Top achievements
Rank 2
Iron
answered on 02 Aug 2016, 05:47 PM

I would have loved to but I have been out of votes on UserVoice for several years. UserVoice does not reward suggestions, it limits suggestions/votes to 10, which is very low.

0
T. Tsonev
Telerik team
answered on 04 Aug 2016, 08:50 AM
Hi,

That's interesting, I didn't realize you can run out of votes permanently.

Please, feel free to file it as a feature suggestion on our public issue tracker. Thanks!

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Jack
Top achievements
Rank 2
Iron
answered on 18 Aug 2016, 07:00 PM
Tags
Drawing API
Asked by
Jack
Top achievements
Rank 2
Iron
Answers by
T. Tsonev
Telerik team
Jack
Top achievements
Rank 2
Iron
Share this question
or