Google Drive Realtime API, how should I model SVG in the collaborative model -


what or recommended way model svg dom tree in google's realtime api? specifically, stringify svg dom tree , choose collaborative string model or there better way? thanks.

it depends on want it. if want display something, without being editable, store blob. e.g., maybe static string.

if want able edit it, collaborative string problematic, hard guarantee results of merging different collaborator's actions result in well-formed xml.

instead use custom objects model various nodes in tree. either generic dom-like model nodes have arbitrary attributes, or specific classes different element types. think last powerful way deal it, , nicest work with, work setup.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -