convert_base
This commit is contained in:
parent
bc023d38b8
commit
4168c645ec
7 changed files with 20 additions and 7 deletions
|
@ -13,6 +13,7 @@ wasm-bindgen-test = "0.3.19"
|
|||
[dependencies]
|
||||
zoon.workspace = true
|
||||
wellen.workspace = true
|
||||
convert-base.workspace = true
|
||||
shared = { path = "../shared", features = ["frontend"] }
|
||||
web-sys = { version = "*", features = ["FileSystemFileHandle"] }
|
||||
gloo-file = { version = "0.3.0", features = ["futures"] }
|
||||
|
|
|
@ -35152,12 +35152,12 @@ var PixiController = class {
|
|||
// Default automatic Pixi resizing according to the parent is not reliable
|
||||
// and the `app.renderer`'s `resize` event is fired on every browser window size change
|
||||
async resize(width, height) {
|
||||
this.app.resize();
|
||||
const width_changed = width !== this.previous_parent_width;
|
||||
this.previous_parent_width = width;
|
||||
if (width_changed) {
|
||||
await this.redraw_rows();
|
||||
}
|
||||
this.app.resize();
|
||||
}
|
||||
destroy() {
|
||||
const rendererDestroyOptions = {
|
||||
|
|
|
@ -46,14 +46,13 @@ export class PixiController {
|
|||
// Default automatic Pixi resizing according to the parent is not reliable
|
||||
// and the `app.renderer`'s `resize` event is fired on every browser window size change
|
||||
async resize(width: number, height: number) {
|
||||
this.app.resize();
|
||||
// -- FastWave-specific --
|
||||
const width_changed = width !== this.previous_parent_width;
|
||||
this.previous_parent_width = width;
|
||||
if (width_changed) {
|
||||
await this.redraw_rows();
|
||||
}
|
||||
// -- // --
|
||||
this.app.resize();
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
|
Reference in a new issue