View Source Kino.Excalidraw.Options (KinoExcalidraw v0.4.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
:variableThe variable name to be used for source code export.nil

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(),
  optional(:variable) => boolean()
}

Functions

build(options, valid_options \\ [:height, :scroll_to_content, :view_mode_enabled, :zen_mode_enabled, :grid_mode_enabled, :variable])

@spec build(Enumerable.t(tuple()), [atom()]) :: t()