fix canvas position, dynamic layout
This commit is contained in:
parent
1b9bb6ae9e
commit
bb852ceb24
6 changed files with 93 additions and 43 deletions
|
@ -1,4 +1,5 @@
|
|||
use zoon::*;
|
||||
pub use js_bridge::PixiController;
|
||||
|
||||
pub struct PixiCanvas {
|
||||
raw_el: RawHtmlEl<web_sys::HtmlElement>,
|
||||
|
@ -89,6 +90,7 @@ mod js_bridge {
|
|||
// Note: Add all corresponding methods to `frontend/typescript/pixi_canvas/pixi_canvas.ts`
|
||||
#[wasm_bindgen(module = "/typescript/bundles/pixi_canvas.js")]
|
||||
extern "C" {
|
||||
#[derive(Clone)]
|
||||
pub type PixiController;
|
||||
|
||||
// @TODO `row_height` and `row_gap` is FastWave-specific
|
||||
|
|
Reference in a new issue