importPath

fun importPath(jsonString: String)

Import a previously exported drawing from JSON string.

Clears the canvas and loads elements from the provided JSON. Emits an Event.Error if deserialization fails.

Parameters

jsonString

The exported drawing as JSON