View Source Kino.Excalidraw.Options (KinoExcalidraw v0.3.0)

The options for configuring the Excalidraw editor.

OptionDescriptionDefault
:heightThe height of the editor in pixels.600
:scroll_to_contentWhether to scroll to the content when the editor is loaded.true
:view_mode_enabledWhether the view mode is enabled.false
:zen_mode_enabledWhether the zen mode is enabled.false
:grid_mode_enabledWhether the grid mode is enabled.false

Summary

Types

t()

@type t() :: %{
  optional(:height) => pos_integer(),
  optional(:scroll_to_content) => boolean(),
  optional(:view_mode_enabled) => boolean(),
  optional(:zen_mode_enabled) => boolean(),
  optional(:grid_mode_enabled) => boolean()
}

Functions

build(options)

@spec build(Enumerable.t(tuple())) :: t()