class RatatuiRuby::Canvas
The Canvas Widget. @param shapes [Array] Array of shape objects (Line, Rectangle, Circle, Map). @param x_bounds [Array<Float>] [min, max] range for the x-axis. @param y_bounds [Array<Float>] [min, max] range for the y-axis. @param marker [Symbol] The marker to use for drawing (:braille, :dot, :block, :bar). @param block [Block, nil] Optional Block widget to wrap the canvas.
Public Class Methods
Source
# File lib/ratatui_ruby/schema/canvas.rb, line 58 def initialize(shapes: [], x_bounds: [0.0, 100.0], y_bounds: [0.0, 100.0], marker: :braille, block: nil) super end
@param shapes [Array] Array of shape objects (Line, Rectangle, Circle, Map). @param x_bounds [Array<Float>] [min, max] range for the x-axis. @param y_bounds [Array<Float>] [min, max] range for the y-axis. @param marker [Symbol] The marker to use for drawing (:braille, :dot, :block, :bar). @param block [Block, nil] Optional Block widget to wrap the canvas.