You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this amazing library! I tried to render a world map, but noticed it seems off - at the top is the browser and at the bottom the same widget on the terminal:
This is the code I'm using for the browser:
use ratatui::{prelude::*, style::Color, widgets, widgets::canvas};use webatui::prelude::*;fnmain(){run_tui(HelloWorld)}#[derive(Clone,Default,PartialEq)]structHelloWorld;implTerminalAppforHelloWorld{// This is a static app, so there's no need for a message typetypeMessage = ();// Yew is message-based (reactive), but this is a static example, so this method is not neededfnupdate(&mutself,_ctx:TermContext<'_,Self>,_msg:Self::Message) -> bool{false}// Put your existing rendering logic here.fnrender(&self,area:Rect,frame:&mutFrame<'_>){let canvas = canvas::Canvas::default().block(widgets::Block::bordered().title("World")).marker(Marker::Braille).x_bounds([-180.0,180.0]).y_bounds([-90.0,90.0]).paint(|ctx| {
ctx.draw(&canvas::Map{resolution: canvas::MapResolution::High,color:Color::Gray,});});// let para = Paragraph::new("Hello World!");
frame.render_widget(canvas, area);}}
Hello!
Thank you for this amazing library! I tried to render a world map, but noticed it seems off - at the top is the browser and at the bottom the same widget on the terminal:
This is the code I'm using for the browser:
This is the code I'm using for the terminal:
Despite monospace, it seems some lines are longer than others.
The html is taken from the examples folder:
I'm suspecting this is some kind of css issue, or maybe my browser not applying the font correctly?
Thank you!
The text was updated successfully, but these errors were encountered: