class

Opal::UI::MermaidViewer

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

Constructors

new(source : String, scrollable : Bool = true, auto_scroll : Bool = false, scroll_speed : Float64 = 1.0, border : Border = Border.rounded)
Source

Instance methods

auto_scroll=(auto_scroll : Bool)
Source
auto_scroll?
Source
border
Source
border=(border : Border)
Source
diagram
Source
diagram=(diagram : Mermaid::Diagram)
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
scroll_down(lines : Int32 = 1) : Nil
Source
scroll_speed
Source
scroll_speed=(scroll_speed : Float64)
Source
scroll_up(lines : Int32 = 1) : Nil
Source
scroll_x
Source
scroll_x=(scroll_x : Int32)
Source
scroll_y
Source
scroll_y=(scroll_y : Int32)
Source
scrollable=(scrollable : Bool)
Source
scrollable?
Source
source
Source
source=(new_source : String)
Source
tick(dt : Float64 = 0.0166) : Nil
Source