ExcaliDocument | R Documentation |
R6 Methods for ExcaliDocument object. Object structure is based on the Excalidraw JSON Schema: https://docs.excalidraw.com/docs/codebase/json-schema
type
(character(1)
)
The type of the Excalidraw schema
version
(integer(1)
)
The version of the Excalidraw schema
source
(character(1)
)
The source URL of the Excalidraw application
elements
(list()
)
A list of objects representing excalidraw elements on canvas
appState
(list()
)
Additional application state/configuration
files
(list()
)
List of data for excalidraw image elements
new()
Initialize an ExcalidrawDoc object
ExcaliDocument$new()
add()
Add a glyph to the scene
ExcaliDocument$add(...)
...
glyph attributes
replace()
Replace all diagram components
ExcaliDocument$replace(...)
...
List of replacement components
export()
Save the document as json
ExcaliDocument$export(file)
file
Export file path
clone()
The objects of this class are cloneable with this method.
ExcaliDocument$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.