mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
jsdom: add Path2D API, All CanvasRenderingContext2D methods (except image methods) (#12404)
This commit is contained in:
@ -184,3 +184,19 @@ fn init() {
|
||||
#jsdom__document.node = document;
|
||||
#jsdom__window.node = window;
|
||||
}
|
||||
|
||||
pub struct TextMetrics {
|
||||
pub:
|
||||
width f64
|
||||
actual_bounding_box_left f64
|
||||
actual_bounding_box_right f64
|
||||
font_bounding_box_ascent f64
|
||||
font_bounding_box_descent f64
|
||||
actual_bounding_box_ascent f64
|
||||
actual_bounding_box_descent f64
|
||||
em_height_ascent f64
|
||||
em_height_descent f64
|
||||
hanging_baseline f64
|
||||
alphabetic_baseline f64
|
||||
ideographic_baseline f64
|
||||
}
|
||||
|
Reference in New Issue
Block a user