mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Move viewports stuff to crates/egui/src/viewports.rs
This commit is contained in:
@@ -9,7 +9,7 @@ use raw_window_handle::{HasRawDisplayHandle as _, HasRawWindowHandle as _};
|
|||||||
|
|
||||||
#[cfg(feature = "accesskit")]
|
#[cfg(feature = "accesskit")]
|
||||||
use egui::accesskit;
|
use egui::accesskit;
|
||||||
use egui::{window::ViewportBuilder, Context, NumExt as _};
|
use egui::{Context, NumExt as _, ViewportBuilder};
|
||||||
#[cfg(feature = "accesskit")]
|
#[cfg(feature = "accesskit")]
|
||||||
use egui_winit::accesskit_winit;
|
use egui_winit::accesskit_winit;
|
||||||
use egui_winit::{native_pixels_per_point, EventResponse, WindowSettings};
|
use egui_winit::{native_pixels_per_point, EventResponse, WindowSettings};
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
use std::{sync::Arc, time::Instant};
|
use std::{sync::Arc, time::Instant};
|
||||||
|
|
||||||
use egui::{epaint::ahash::HashMap, mutex::RwLock, window::ViewportBuilder};
|
use egui::{epaint::ahash::HashMap, mutex::RwLock, ViewportBuilder};
|
||||||
use raw_window_handle::{HasRawDisplayHandle as _, HasRawWindowHandle as _};
|
use raw_window_handle::{HasRawDisplayHandle as _, HasRawWindowHandle as _};
|
||||||
use winit::{
|
use winit::{
|
||||||
event_loop::{ControlFlow, EventLoop, EventLoopBuilder, EventLoopProxy, EventLoopWindowTarget},
|
event_loop::{ControlFlow, EventLoop, EventLoopBuilder, EventLoopProxy, EventLoopWindowTarget},
|
||||||
@@ -420,7 +420,7 @@ mod glow_integration {
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use egui::{
|
use egui::{
|
||||||
epaint::ahash::HashMap, mutex::RwLock, window::ViewportBuilder, NumExt as _, ViewportRender,
|
epaint::ahash::HashMap, mutex::RwLock, NumExt as _, ViewportBuilder, ViewportRender,
|
||||||
};
|
};
|
||||||
use egui_winit::EventResponse;
|
use egui_winit::EventResponse;
|
||||||
use glutin::{
|
use glutin::{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ pub use accesskit_winit;
|
|||||||
pub use egui;
|
pub use egui;
|
||||||
#[cfg(feature = "accesskit")]
|
#[cfg(feature = "accesskit")]
|
||||||
use egui::accesskit;
|
use egui::accesskit;
|
||||||
use egui::{mutex::RwLock, window::ViewportCommand};
|
use egui::{mutex::RwLock, ViewportCommand};
|
||||||
pub use winit;
|
pub use winit;
|
||||||
|
|
||||||
pub mod clipboard;
|
pub mod clipboard;
|
||||||
@@ -916,7 +916,7 @@ pub fn process_viewport_commands(
|
|||||||
let win = window.read();
|
let win = window.read();
|
||||||
|
|
||||||
match command {
|
match command {
|
||||||
egui::window::ViewportCommand::Drag => {
|
egui::ViewportCommand::Drag => {
|
||||||
// if this is not checked on x11 the input will be permanently taken until the app is killed!
|
// if this is not checked on x11 the input will be permanently taken until the app is killed!
|
||||||
if let Some(focus) = focused {
|
if let Some(focus) = focused {
|
||||||
if focus == viewport_id {
|
if focus == viewport_id {
|
||||||
@@ -924,10 +924,10 @@ pub fn process_viewport_commands(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
egui::window::ViewportCommand::InnerSize(width, height) => {
|
egui::ViewportCommand::InnerSize(width, height) => {
|
||||||
win.set_inner_size(PhysicalSize::new(width, height));
|
win.set_inner_size(PhysicalSize::new(width, height));
|
||||||
}
|
}
|
||||||
egui::window::ViewportCommand::Resize(top, bottom, right, left) => {
|
egui::ViewportCommand::Resize(top, bottom, right, left) => {
|
||||||
win.drag_resize_window(match (top, bottom, right, left) {
|
win.drag_resize_window(match (top, bottom, right, left) {
|
||||||
(true, false, false, false) => ResizeDirection::North,
|
(true, false, false, false) => ResizeDirection::North,
|
||||||
(false, true, false, false) => ResizeDirection::South,
|
(false, true, false, false) => ResizeDirection::South,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use egui::window::ViewportBuilder;
|
use egui::ViewportBuilder;
|
||||||
|
|
||||||
/// Can be used to store native window settings (position and size).
|
/// Can be used to store native window settings (position and size).
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
|
|||||||
@@ -2,156 +2,11 @@
|
|||||||
|
|
||||||
use crate::collapsing_header::CollapsingState;
|
use crate::collapsing_header::CollapsingState;
|
||||||
use crate::{widget_text::WidgetTextGalley, *};
|
use crate::{widget_text::WidgetTextGalley, *};
|
||||||
|
use crate::{ViewportBuilder, ViewportCommand};
|
||||||
use epaint::*;
|
use epaint::*;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[derive(Hash, PartialEq, Clone)]
|
|
||||||
pub struct ViewportBuilder {
|
|
||||||
pub title: String,
|
|
||||||
pub name: Option<String>,
|
|
||||||
pub position: Option<(i32, i32)>,
|
|
||||||
pub inner_size: Option<(u32, u32)>,
|
|
||||||
pub fullscreen: bool,
|
|
||||||
pub maximized: bool,
|
|
||||||
pub resizable: bool,
|
|
||||||
pub transparent: bool,
|
|
||||||
pub decorations: bool,
|
|
||||||
pub icon: Option<(u32, u32, Vec<u8>)>,
|
|
||||||
pub active: bool,
|
|
||||||
pub visible: bool,
|
|
||||||
pub title_hidden: bool,
|
|
||||||
pub titlebar_transparent: bool,
|
|
||||||
pub fullsize_content_view: bool,
|
|
||||||
pub min_inner_size: Option<(u32, u32)>,
|
|
||||||
pub max_inner_size: Option<(u32, u32)>,
|
|
||||||
pub drag_and_drop: bool,
|
|
||||||
|
|
||||||
pub close_button: bool,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Default for ViewportBuilder {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self {
|
|
||||||
title: "Dummy EGUI Window".into(),
|
|
||||||
name: None,
|
|
||||||
position: None,
|
|
||||||
inner_size: Some((300, 100)),
|
|
||||||
fullscreen: false,
|
|
||||||
maximized: false,
|
|
||||||
resizable: true,
|
|
||||||
transparent: false,
|
|
||||||
decorations: true,
|
|
||||||
icon: None,
|
|
||||||
active: true,
|
|
||||||
visible: true,
|
|
||||||
title_hidden: false,
|
|
||||||
titlebar_transparent: false,
|
|
||||||
fullsize_content_view: false,
|
|
||||||
min_inner_size: None,
|
|
||||||
max_inner_size: None,
|
|
||||||
drag_and_drop: true,
|
|
||||||
close_button: true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ViewportBuilder {
|
|
||||||
pub fn with_title(mut self, title: impl Into<String>) -> Self {
|
|
||||||
self.title = title.into();
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_decorations(mut self, decorations: bool) -> Self {
|
|
||||||
self.decorations = decorations;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_fullscreen(mut self, fullscreen: bool) -> Self {
|
|
||||||
self.fullscreen = fullscreen;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_maximized(mut self, maximized: bool) -> Self {
|
|
||||||
self.maximized = maximized;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_resizable(mut self, resizable: bool) -> Self {
|
|
||||||
self.resizable = resizable;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_transparent(mut self, transparent: bool) -> Self {
|
|
||||||
self.transparent = transparent;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_window_icon(mut self, icon: Option<(u32, u32, Vec<u8>)>) -> Self {
|
|
||||||
self.icon = icon;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_active(mut self, active: bool) -> Self {
|
|
||||||
self.active = active;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_visible(mut self, visible: bool) -> Self {
|
|
||||||
self.visible = visible;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_title_hidden(mut self, title_hidden: bool) -> Self {
|
|
||||||
self.title_hidden = title_hidden;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_titlebar_transparent(mut self, value: bool) -> Self {
|
|
||||||
self.titlebar_transparent = value;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_fullsize_content_view(mut self, value: bool) -> Self {
|
|
||||||
self.fullsize_content_view = value;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_inner_size(mut self, value: (u32, u32)) -> Self {
|
|
||||||
self.inner_size = Some(value);
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_min_inner_size(mut self, value: (u32, u32)) -> Self {
|
|
||||||
self.min_inner_size = Some(value);
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_max_inner_size(mut self, value: (u32, u32)) -> Self {
|
|
||||||
self.max_inner_size = Some(value);
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_drag_and_drop(mut self, value: bool) -> Self {
|
|
||||||
self.drag_and_drop = value;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn with_position(mut self, value: (i32, i32)) -> Self {
|
|
||||||
self.position = Some(value);
|
|
||||||
self
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone, PartialEq)]
|
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
|
||||||
pub enum ViewportCommand {
|
|
||||||
Drag,
|
|
||||||
InnerSize(u32, u32),
|
|
||||||
/// Top, Bottom, Right, Left
|
|
||||||
Resize(bool, bool, bool, bool),
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Builder for a floating window which can be dragged, closed, collapsed, resized and scrolled (off by default).
|
/// Builder for a floating window which can be dragged, closed, collapsed, resized and scrolled (off by default).
|
||||||
///
|
///
|
||||||
/// You can customize:
|
/// You can customize:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use std::sync::Arc;
|
|||||||
use crate::{
|
use crate::{
|
||||||
animation_manager::AnimationManager, data::output::PlatformOutput, frame_state::FrameState,
|
animation_manager::AnimationManager, data::output::PlatformOutput, frame_state::FrameState,
|
||||||
input_state::*, layers::GraphicLayers, memory::Options, os::OperatingSystem,
|
input_state::*, layers::GraphicLayers, memory::Options, os::OperatingSystem,
|
||||||
output::FullOutput, util::IdTypeMap, window::ViewportCommand, TextureHandle, *,
|
output::FullOutput, util::IdTypeMap, TextureHandle, ViewportCommand, *,
|
||||||
};
|
};
|
||||||
use ahash::HashMap;
|
use ahash::HashMap;
|
||||||
use epaint::{mutex::*, stats::*, text::Fonts, TessellationOptions, *};
|
use epaint::{mutex::*, stats::*, text::Fonts, TessellationOptions, *};
|
||||||
@@ -377,11 +377,11 @@ impl ContextImpl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ContextImpl {
|
impl ContextImpl {
|
||||||
fn get_viewport_id(&self) -> u64 {
|
pub(crate) fn get_viewport_id(&self) -> u64 {
|
||||||
self.frame_stack.last().cloned().unwrap_or_default().0
|
self.frame_stack.last().cloned().unwrap_or_default().0
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_parent_viewport_id(&self) -> u64 {
|
pub(crate) fn get_parent_viewport_id(&self) -> u64 {
|
||||||
self.frame_stack.last().cloned().unwrap_or_default().1
|
self.frame_stack.last().cloned().unwrap_or_default().1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2132,8 +2132,7 @@ impl Context {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
use containers::window::ViewportBuilder;
|
// Viewports
|
||||||
/// # Windows
|
|
||||||
impl Context {
|
impl Context {
|
||||||
pub fn get_viewport_id(&self) -> u64 {
|
pub fn get_viewport_id(&self) -> u64 {
|
||||||
self.read(|ctx| ctx.get_viewport_id())
|
self.read(|ctx| ctx.get_viewport_id())
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use crate::window::ViewportCommand;
|
|
||||||
use crate::Context;
|
use crate::Context;
|
||||||
use crate::{window::ViewportBuilder, WidgetType};
|
use crate::{ViewportBuilder, ViewportCommand, WidgetType};
|
||||||
|
|
||||||
/// What egui emits each frame from [`crate::Context::run`].
|
/// What egui emits each frame from [`crate::Context::run`].
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -322,6 +322,7 @@ mod sense;
|
|||||||
pub mod style;
|
pub mod style;
|
||||||
mod ui;
|
mod ui;
|
||||||
pub mod util;
|
pub mod util;
|
||||||
|
pub mod viewport;
|
||||||
pub mod widget_text;
|
pub mod widget_text;
|
||||||
pub mod widgets;
|
pub mod widgets;
|
||||||
|
|
||||||
@@ -371,6 +372,7 @@ pub use {
|
|||||||
style::{FontSelection, Margin, Style, TextStyle, Visuals},
|
style::{FontSelection, Margin, Style, TextStyle, Visuals},
|
||||||
text::{Galley, TextFormat},
|
text::{Galley, TextFormat},
|
||||||
ui::Ui,
|
ui::Ui,
|
||||||
|
viewport::*,
|
||||||
widget_text::{RichText, WidgetText},
|
widget_text::{RichText, WidgetText},
|
||||||
widgets::*,
|
widgets::*,
|
||||||
};
|
};
|
||||||
@@ -546,9 +548,6 @@ pub enum WidgetType {
|
|||||||
Other,
|
Other,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This is used to render a viewport
|
|
||||||
pub type ViewportRender = dyn Fn(&Context, u64, u64) + Sync + Send;
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// For use in tests; especially doctests.
|
/// For use in tests; especially doctests.
|
||||||
|
|||||||
152
crates/egui/src/viewport.rs
Normal file
152
crates/egui/src/viewport.rs
Normal file
@@ -0,0 +1,152 @@
|
|||||||
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
use crate::Context;
|
||||||
|
|
||||||
|
/// This is used to render a viewport
|
||||||
|
pub type ViewportRender = dyn Fn(&Context, u64, u64) + Sync + Send;
|
||||||
|
|
||||||
|
#[derive(Hash, PartialEq, Clone)]
|
||||||
|
pub struct ViewportBuilder {
|
||||||
|
pub title: String,
|
||||||
|
pub name: Option<String>,
|
||||||
|
pub position: Option<(i32, i32)>,
|
||||||
|
pub inner_size: Option<(u32, u32)>,
|
||||||
|
pub fullscreen: bool,
|
||||||
|
pub maximized: bool,
|
||||||
|
pub resizable: bool,
|
||||||
|
pub transparent: bool,
|
||||||
|
pub decorations: bool,
|
||||||
|
pub icon: Option<(u32, u32, Vec<u8>)>,
|
||||||
|
pub active: bool,
|
||||||
|
pub visible: bool,
|
||||||
|
pub title_hidden: bool,
|
||||||
|
pub titlebar_transparent: bool,
|
||||||
|
pub fullsize_content_view: bool,
|
||||||
|
pub min_inner_size: Option<(u32, u32)>,
|
||||||
|
pub max_inner_size: Option<(u32, u32)>,
|
||||||
|
pub drag_and_drop: bool,
|
||||||
|
|
||||||
|
pub close_button: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Default for ViewportBuilder {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
title: "Dummy EGUI Window".into(),
|
||||||
|
name: None,
|
||||||
|
position: None,
|
||||||
|
inner_size: Some((300, 100)),
|
||||||
|
fullscreen: false,
|
||||||
|
maximized: false,
|
||||||
|
resizable: true,
|
||||||
|
transparent: false,
|
||||||
|
decorations: true,
|
||||||
|
icon: None,
|
||||||
|
active: true,
|
||||||
|
visible: true,
|
||||||
|
title_hidden: false,
|
||||||
|
titlebar_transparent: false,
|
||||||
|
fullsize_content_view: false,
|
||||||
|
min_inner_size: None,
|
||||||
|
max_inner_size: None,
|
||||||
|
drag_and_drop: true,
|
||||||
|
close_button: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ViewportBuilder {
|
||||||
|
pub fn with_title(mut self, title: impl Into<String>) -> Self {
|
||||||
|
self.title = title.into();
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_decorations(mut self, decorations: bool) -> Self {
|
||||||
|
self.decorations = decorations;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_fullscreen(mut self, fullscreen: bool) -> Self {
|
||||||
|
self.fullscreen = fullscreen;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_maximized(mut self, maximized: bool) -> Self {
|
||||||
|
self.maximized = maximized;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_resizable(mut self, resizable: bool) -> Self {
|
||||||
|
self.resizable = resizable;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_transparent(mut self, transparent: bool) -> Self {
|
||||||
|
self.transparent = transparent;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_window_icon(mut self, icon: Option<(u32, u32, Vec<u8>)>) -> Self {
|
||||||
|
self.icon = icon;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_active(mut self, active: bool) -> Self {
|
||||||
|
self.active = active;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_visible(mut self, visible: bool) -> Self {
|
||||||
|
self.visible = visible;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_title_hidden(mut self, title_hidden: bool) -> Self {
|
||||||
|
self.title_hidden = title_hidden;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_titlebar_transparent(mut self, value: bool) -> Self {
|
||||||
|
self.titlebar_transparent = value;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_fullsize_content_view(mut self, value: bool) -> Self {
|
||||||
|
self.fullsize_content_view = value;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_inner_size(mut self, value: (u32, u32)) -> Self {
|
||||||
|
self.inner_size = Some(value);
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_min_inner_size(mut self, value: (u32, u32)) -> Self {
|
||||||
|
self.min_inner_size = Some(value);
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_max_inner_size(mut self, value: (u32, u32)) -> Self {
|
||||||
|
self.max_inner_size = Some(value);
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_drag_and_drop(mut self, value: bool) -> Self {
|
||||||
|
self.drag_and_drop = value;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_position(mut self, value: (i32, i32)) -> Self {
|
||||||
|
self.position = Some(value);
|
||||||
|
self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Clone, PartialEq)]
|
||||||
|
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||||
|
pub enum ViewportCommand {
|
||||||
|
Drag,
|
||||||
|
InnerSize(u32, u32),
|
||||||
|
/// Top, Bottom, Right, Left
|
||||||
|
Resize(bool, bool, bool, bool),
|
||||||
|
}
|
||||||
@@ -7,13 +7,40 @@ let wasm_bindgen;
|
|||||||
}
|
}
|
||||||
let wasm = undefined;
|
let wasm = undefined;
|
||||||
|
|
||||||
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
||||||
|
|
||||||
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
||||||
|
|
||||||
|
let cachedUint8Memory0 = null;
|
||||||
|
|
||||||
|
function getUint8Memory0() {
|
||||||
|
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
||||||
|
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
||||||
|
}
|
||||||
|
return cachedUint8Memory0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getStringFromWasm0(ptr, len) {
|
||||||
|
ptr = ptr >>> 0;
|
||||||
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
||||||
|
}
|
||||||
|
|
||||||
const heap = new Array(128).fill(undefined);
|
const heap = new Array(128).fill(undefined);
|
||||||
|
|
||||||
heap.push(undefined, null, true, false);
|
heap.push(undefined, null, true, false);
|
||||||
|
|
||||||
function getObject(idx) { return heap[idx]; }
|
let heap_next = heap.length;
|
||||||
|
|
||||||
let heap_next = heap.length;
|
function addHeapObject(obj) {
|
||||||
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
||||||
|
const idx = heap_next;
|
||||||
|
heap_next = heap[idx];
|
||||||
|
|
||||||
|
heap[idx] = obj;
|
||||||
|
return idx;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getObject(idx) { return heap[idx]; }
|
||||||
|
|
||||||
function dropObject(idx) {
|
function dropObject(idx) {
|
||||||
if (idx < 132) return;
|
if (idx < 132) return;
|
||||||
@@ -27,33 +54,6 @@ function takeObject(idx) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
||||||
|
|
||||||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
||||||
|
|
||||||
let cachedUint8Memory0 = null;
|
|
||||||
|
|
||||||
function getUint8Memory0() {
|
|
||||||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
||||||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
||||||
}
|
|
||||||
return cachedUint8Memory0;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getStringFromWasm0(ptr, len) {
|
|
||||||
ptr = ptr >>> 0;
|
|
||||||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
||||||
}
|
|
||||||
|
|
||||||
function addHeapObject(obj) {
|
|
||||||
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
||||||
const idx = heap_next;
|
|
||||||
heap_next = heap[idx];
|
|
||||||
|
|
||||||
heap[idx] = obj;
|
|
||||||
return idx;
|
|
||||||
}
|
|
||||||
|
|
||||||
let WASM_VECTOR_LEN = 0;
|
let WASM_VECTOR_LEN = 0;
|
||||||
|
|
||||||
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
||||||
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|||||||
function __wbg_adapter_28(arg0, arg1) {
|
function __wbg_adapter_28(arg0, arg1) {
|
||||||
try {
|
try {
|
||||||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
||||||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb0203c3310c02e85(retptr, arg0, arg1);
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3016326a7c9d0bd0(retptr, arg0, arg1);
|
||||||
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
||||||
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
||||||
if (r1) {
|
if (r1) {
|
||||||
@@ -235,11 +235,11 @@ function __wbg_adapter_28(arg0, arg1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function __wbg_adapter_31(arg0, arg1) {
|
function __wbg_adapter_31(arg0, arg1) {
|
||||||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2a3101d1095ab00a(arg0, arg1);
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbecb4c8c4c1689b4(arg0, arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function __wbg_adapter_34(arg0, arg1, arg2) {
|
function __wbg_adapter_34(arg0, arg1, arg2) {
|
||||||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4d1e0c1db4f0e0bb(arg0, arg1, addHeapObject(arg2));
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3ed37d848238a431(arg0, arg1, addHeapObject(arg2));
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeClosure(arg0, arg1, dtor, f) {
|
function makeClosure(arg0, arg1, dtor, f) {
|
||||||
@@ -264,11 +264,11 @@ function makeClosure(arg0, arg1, dtor, f) {
|
|||||||
return real;
|
return real;
|
||||||
}
|
}
|
||||||
function __wbg_adapter_37(arg0, arg1, arg2) {
|
function __wbg_adapter_37(arg0, arg1, arg2) {
|
||||||
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbc77240210741db8(arg0, arg1, addHeapObject(arg2));
|
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h049b4e5b45eb9682(arg0, arg1, addHeapObject(arg2));
|
||||||
}
|
}
|
||||||
|
|
||||||
function __wbg_adapter_42(arg0, arg1, arg2) {
|
function __wbg_adapter_42(arg0, arg1, arg2) {
|
||||||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19a82ca01a9b327d(arg0, arg1, addHeapObject(arg2));
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h719a81cc1cd97a97(arg0, arg1, addHeapObject(arg2));
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleError(f, args) {
|
function handleError(f, args) {
|
||||||
@@ -279,7 +279,7 @@ function handleError(f, args) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function __wbg_adapter_580(arg0, arg1, arg2, arg3) {
|
function __wbg_adapter_580(arg0, arg1, arg2, arg3) {
|
||||||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4169691c0456ed25(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4f6627fcd09764ad(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -418,9 +418,21 @@ async function __wbg_load(module, imports) {
|
|||||||
function __wbg_get_imports() {
|
function __wbg_get_imports() {
|
||||||
const imports = {};
|
const imports = {};
|
||||||
imports.wbg = {};
|
imports.wbg = {};
|
||||||
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
||||||
|
const ret = getStringFromWasm0(arg0, arg1);
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
||||||
takeObject(arg0);
|
takeObject(arg0);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
||||||
|
const obj = getObject(arg1);
|
||||||
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
||||||
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
var len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
||||||
const obj = takeObject(arg0).original;
|
const obj = takeObject(arg0).original;
|
||||||
if (obj.cnt-- == 1) {
|
if (obj.cnt-- == 1) {
|
||||||
@@ -430,25 +442,7 @@ function __wbg_get_imports() {
|
|||||||
const ret = false;
|
const ret = false;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
imports.wbg.__wbg_error_ef675d96d0bf24dc = function(arg0, arg1) {
|
||||||
const ret = getStringFromWasm0(arg0, arg1);
|
|
||||||
return addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
||||||
const obj = getObject(arg1);
|
|
||||||
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
||||||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
var len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
||||||
const obj = getObject(arg1);
|
|
||||||
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
||||||
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_error_e62b64b85c2bc545 = function(arg0, arg1) {
|
|
||||||
let deferred0_0;
|
let deferred0_0;
|
||||||
let deferred0_1;
|
let deferred0_1;
|
||||||
try {
|
try {
|
||||||
@@ -459,27 +453,33 @@ function __wbg_get_imports() {
|
|||||||
wasm.__wbindgen_free(deferred0_0, deferred0_1);
|
wasm.__wbindgen_free(deferred0_0, deferred0_1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_new_40620131643ca1cf = function() {
|
imports.wbg.__wbg_new_475b88b4c50a6bba = function() {
|
||||||
const ret = new Error();
|
const ret = new Error();
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_stack_e3e173f66e044a69 = function(arg0, arg1) {
|
imports.wbg.__wbg_stack_d45172f0caa39e17 = function(arg0, arg1) {
|
||||||
const ret = getObject(arg1).stack;
|
const ret = getObject(arg1).stack;
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
const len1 = WASM_VECTOR_LEN;
|
const len1 = WASM_VECTOR_LEN;
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_trace_8d8f961bba04f90a = function(arg0, arg1) {
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
||||||
|
const obj = getObject(arg1);
|
||||||
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
||||||
|
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_trace_822e2ec9f55bdc14 = function(arg0, arg1) {
|
||||||
console.trace(getStringFromWasm0(arg0, arg1));
|
console.trace(getStringFromWasm0(arg0, arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_debug_7fc527041707e16e = function(arg0, arg1) {
|
imports.wbg.__wbg_debug_02a842456bfd3d07 = function(arg0, arg1) {
|
||||||
console.debug(getStringFromWasm0(arg0, arg1));
|
console.debug(getStringFromWasm0(arg0, arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_info_e495fa41540a3eaa = function(arg0, arg1) {
|
imports.wbg.__wbg_info_9914de2e2314812b = function(arg0, arg1) {
|
||||||
console.info(getStringFromWasm0(arg0, arg1));
|
console.info(getStringFromWasm0(arg0, arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_warn_8b4e19d4032139f0 = function(arg0, arg1) {
|
imports.wbg.__wbg_warn_0d84cc9f60d72161 = function(arg0, arg1) {
|
||||||
console.warn(getStringFromWasm0(arg0, arg1));
|
console.warn(getStringFromWasm0(arg0, arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
||||||
@@ -746,15 +746,52 @@ function __wbg_get_imports() {
|
|||||||
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
||||||
return ret;
|
return ret;
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
imports.wbg.__wbg_setProperty_0a5af0fd1a9e8e25 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
imports.wbg.__wbg_size_a058ca48cf388fd6 = function(arg0) {
|
||||||
getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
const ret = getObject(arg0).size;
|
||||||
}, arguments) };
|
|
||||||
imports.wbg.__wbg_width_3f3962bb2721e365 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).width;
|
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_height_32cf02a714d68bd4 = function(arg0) {
|
imports.wbg.__wbg_arrayBuffer_932c610fd9598bef = function(arg0) {
|
||||||
const ret = getObject(arg0).height;
|
const ret = getObject(arg0).arrayBuffer();
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_type_a7d16081cac0a25b = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).type;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_voiceURI_1c374d1801636c26 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).voiceURI;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_name_b85b3a3d45d797bf = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).name;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_lang_760dcdec80a6c745 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).lang;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_default_e1aa2046d76cda57 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).default;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_top_7f927afdb53442c3 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).top;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_left_d363f2200ca7bca7 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).left;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_length_804062329ac4ddbb = function(arg0) {
|
imports.wbg.__wbg_length_804062329ac4ddbb = function(arg0) {
|
||||||
@@ -765,105 +802,18 @@ function __wbg_get_imports() {
|
|||||||
const ret = getObject(arg0)[arg1 >>> 0];
|
const ret = getObject(arg0)[arg1 >>> 0];
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_set_76353df4722f4954 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
imports.wbg.__wbg_bindVertexArrayOES_edb665af84add641 = function(arg0, arg1) {
|
||||||
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
getObject(arg0).bindVertexArrayOES(getObject(arg1));
|
||||||
}, arguments) };
|
|
||||||
imports.wbg.__wbg_error_49c7bf770cd75883 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).error;
|
|
||||||
return addHeapObject(ret);
|
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_setvoice_b89f15aafa327ee8 = function(arg0, arg1) {
|
imports.wbg.__wbg_createVertexArrayOES_72dc110fc4561db9 = function(arg0) {
|
||||||
getObject(arg0).voice = getObject(arg1);
|
const ret = getObject(arg0).createVertexArrayOES();
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setvolume_b175e9ad36c878ee = function(arg0, arg1) {
|
|
||||||
getObject(arg0).volume = arg1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setrate_ca2167dc6b346b26 = function(arg0, arg1) {
|
|
||||||
getObject(arg0).rate = arg1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setpitch_3a330092e7e9b96f = function(arg0, arg1) {
|
|
||||||
getObject(arg0).pitch = arg1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setonstart_963d173442cf886e = function(arg0, arg1) {
|
|
||||||
getObject(arg0).onstart = getObject(arg1);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setonend_1fea8ae30b203c54 = function(arg0, arg1) {
|
|
||||||
getObject(arg0).onend = getObject(arg1);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setonerror_c117a28570d46684 = function(arg0, arg1) {
|
|
||||||
getObject(arg0).onerror = getObject(arg1);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_newwithtext_8130d0159088eaf8 = function() { return handleError(function (arg0, arg1) {
|
|
||||||
const ret = new SpeechSynthesisUtterance(getStringFromWasm0(arg0, arg1));
|
|
||||||
return addHeapObject(ret);
|
|
||||||
}, arguments) };
|
|
||||||
imports.wbg.__wbg_length_e9385289cac41215 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).length;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_item_3ce7f6824dd8c355 = function(arg0, arg1) {
|
|
||||||
const ret = getObject(arg0).item(arg1 >>> 0);
|
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_get_969f46cb0fad92dc = function(arg0, arg1) {
|
imports.wbg.__wbg_deleteVertexArrayOES_bb2f05cfcd49a758 = function(arg0, arg1) {
|
||||||
const ret = getObject(arg0)[arg1 >>> 0];
|
getObject(arg0).deleteVertexArrayOES(getObject(arg1));
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_instanceof_HtmlInputElement_a15913e00980dd9c = function(arg0) {
|
imports.wbg.__wbg_now_c97f243e7947c4ac = function(arg0) {
|
||||||
let result;
|
const ret = getObject(arg0).now();
|
||||||
try {
|
|
||||||
result = getObject(arg0) instanceof HTMLInputElement;
|
|
||||||
} catch {
|
|
||||||
result = false;
|
|
||||||
}
|
|
||||||
const ret = result;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setautofocus_ae682319cc846b47 = function(arg0, arg1) {
|
|
||||||
getObject(arg0).autofocus = arg1 !== 0;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setsize_ae008b7511e35484 = function(arg0, arg1) {
|
|
||||||
getObject(arg0).size = arg1 >>> 0;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_value_09d384cba1c51c6f = function(arg0, arg1) {
|
|
||||||
const ret = getObject(arg1).value;
|
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
const len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_setvalue_7605619324f70225 = function(arg0, arg1, arg2) {
|
|
||||||
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_type_a7d16081cac0a25b = function(arg0, arg1) {
|
|
||||||
const ret = getObject(arg1).type;
|
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
const len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_clientX_7ffcce9d4cf5ed8f = function(arg0) {
|
|
||||||
const ret = getObject(arg0).clientX;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_clientY_2340b057451d96fb = function(arg0) {
|
|
||||||
const ret = getObject(arg0).clientY;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_ctrlKey_1c15f65d527fd45e = function(arg0) {
|
|
||||||
const ret = getObject(arg0).ctrlKey;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_shiftKey_1a7bf1612681d447 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).shiftKey;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_metaKey_3c7419a9d32c95d1 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).metaKey;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_button_88e86c8fe3039068 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).button;
|
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_instanceof_Response_7ade9a5a066d1a55 = function(arg0) {
|
imports.wbg.__wbg_instanceof_Response_7ade9a5a066d1a55 = function(arg0) {
|
||||||
@@ -906,6 +856,18 @@ function __wbg_get_imports() {
|
|||||||
const ret = getObject(arg0).arrayBuffer();
|
const ret = getObject(arg0).arrayBuffer();
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_length_e9385289cac41215 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).length;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_item_3ce7f6824dd8c355 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg0).item(arg1 >>> 0);
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_get_969f46cb0fad92dc = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg0)[arg1 >>> 0];
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_deltaX_0e9fe84a3998df5e = function(arg0) {
|
imports.wbg.__wbg_deltaX_0e9fe84a3998df5e = function(arg0) {
|
||||||
const ret = getObject(arg0).deltaX;
|
const ret = getObject(arg0).deltaX;
|
||||||
return ret;
|
return ret;
|
||||||
@@ -918,43 +880,12 @@ function __wbg_get_imports() {
|
|||||||
const ret = getObject(arg0).deltaMode;
|
const ret = getObject(arg0).deltaMode;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_matches_de64b7bec89b21e4 = function(arg0) {
|
imports.wbg.__wbg_width_3f3962bb2721e365 = function(arg0) {
|
||||||
const ret = getObject(arg0).matches;
|
const ret = getObject(arg0).width;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_bindVertexArrayOES_edb665af84add641 = function(arg0, arg1) {
|
imports.wbg.__wbg_height_32cf02a714d68bd4 = function(arg0) {
|
||||||
getObject(arg0).bindVertexArrayOES(getObject(arg1));
|
const ret = getObject(arg0).height;
|
||||||
};
|
|
||||||
imports.wbg.__wbg_createVertexArrayOES_72dc110fc4561db9 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).createVertexArrayOES();
|
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_deleteVertexArrayOES_bb2f05cfcd49a758 = function(arg0, arg1) {
|
|
||||||
getObject(arg0).deleteVertexArrayOES(getObject(arg1));
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_voiceURI_1c374d1801636c26 = function(arg0, arg1) {
|
|
||||||
const ret = getObject(arg1).voiceURI;
|
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
const len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_name_b85b3a3d45d797bf = function(arg0, arg1) {
|
|
||||||
const ret = getObject(arg1).name;
|
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
const len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_lang_760dcdec80a6c745 = function(arg0, arg1) {
|
|
||||||
const ret = getObject(arg1).lang;
|
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
const len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_default_e1aa2046d76cda57 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).default;
|
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_addEventListener_d25d1ffe6c69ae96 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_addEventListener_d25d1ffe6c69ae96 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
||||||
@@ -963,33 +894,34 @@ function __wbg_get_imports() {
|
|||||||
imports.wbg.__wbg_removeEventListener_7a381df5fdb6037f = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_removeEventListener_7a381df5fdb6037f = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
||||||
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
imports.wbg.__wbg_now_c97f243e7947c4ac = function(arg0) {
|
imports.wbg.__wbg_clientX_7ffcce9d4cf5ed8f = function(arg0) {
|
||||||
const ret = getObject(arg0).now();
|
const ret = getObject(arg0).clientX;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_writeText_f3c15480e7666d78 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_clientY_2340b057451d96fb = function(arg0) {
|
||||||
const ret = getObject(arg0).writeText(getStringFromWasm0(arg1, arg2));
|
const ret = getObject(arg0).clientY;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_ctrlKey_1c15f65d527fd45e = function(arg0) {
|
||||||
|
const ret = getObject(arg0).ctrlKey;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_shiftKey_1a7bf1612681d447 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).shiftKey;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_metaKey_3c7419a9d32c95d1 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).metaKey;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_button_88e86c8fe3039068 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).button;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_error_49c7bf770cd75883 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).error;
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_items_577e171b04c9aaa9 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).items;
|
|
||||||
return addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_files_7ce5634e8bc25a85 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).files;
|
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_getData_f586c0811a7ec1c4 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
||||||
const ret = getObject(arg1).getData(getStringFromWasm0(arg2, arg3));
|
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
const len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
}, arguments) };
|
|
||||||
imports.wbg.__wbg_dataTransfer_87da4b5e2c2e3bc4 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).dataTransfer;
|
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_instanceof_HtmlCanvasElement_b2dfeaf97587c9fa = function(arg0) {
|
imports.wbg.__wbg_instanceof_HtmlCanvasElement_b2dfeaf97587c9fa = function(arg0) {
|
||||||
let result;
|
let result;
|
||||||
try {
|
try {
|
||||||
@@ -1018,10 +950,86 @@ function __wbg_get_imports() {
|
|||||||
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_matches_de64b7bec89b21e4 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).matches;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
imports.wbg.__wbg_matches_03fa716e6d77d76f = function(arg0) {
|
imports.wbg.__wbg_matches_03fa716e6d77d76f = function(arg0) {
|
||||||
const ret = getObject(arg0).matches;
|
const ret = getObject(arg0).matches;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_writeText_f3c15480e7666d78 = function(arg0, arg1, arg2) {
|
||||||
|
const ret = getObject(arg0).writeText(getStringFromWasm0(arg1, arg2));
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_items_577e171b04c9aaa9 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).items;
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_files_7ce5634e8bc25a85 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).files;
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getData_f586c0811a7ec1c4 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
||||||
|
const ret = getObject(arg1).getData(getStringFromWasm0(arg2, arg3));
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_name_ae233a503e60a8f9 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).name;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_lastModified_75062097476be87c = function(arg0) {
|
||||||
|
const ret = getObject(arg0).lastModified;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_keyCode_48193538ac21d5a4 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).keyCode;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_altKey_1796184c5e96a92b = function(arg0) {
|
||||||
|
const ret = getObject(arg0).altKey;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_ctrlKey_a6ae383772af67d4 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).ctrlKey;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_shiftKey_0b1fd10d0674f847 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).shiftKey;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_metaKey_e6e67f783888f56d = function(arg0) {
|
||||||
|
const ret = getObject(arg0).metaKey;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_isComposing_11821d1699a0901e = function(arg0) {
|
||||||
|
const ret = getObject(arg0).isComposing;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_key_2e1ec0c70a342064 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).key;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_clipboard_4685056afb1bd02b = function(arg0) {
|
||||||
|
const ret = getObject(arg0).clipboard;
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_userAgent_cda809ba30048ef3 = function() { return handleError(function (arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).userAgent;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbg_headers_1eff4f53324496e6 = function(arg0) {
|
imports.wbg.__wbg_headers_1eff4f53324496e6 = function(arg0) {
|
||||||
const ret = getObject(arg0).headers;
|
const ret = getObject(arg0).headers;
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
@@ -1271,6 +1279,16 @@ function __wbg_get_imports() {
|
|||||||
imports.wbg.__wbg_viewport_d7c73a71f08f3aa1 = function(arg0, arg1, arg2, arg3, arg4) {
|
imports.wbg.__wbg_viewport_d7c73a71f08f3aa1 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
getObject(arg0).viewport(arg1, arg2, arg3, arg4);
|
getObject(arg0).viewport(arg1, arg2, arg3, arg4);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_data_64c5449b2adfdff6 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).data;
|
||||||
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
var len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setProperty_0a5af0fd1a9e8e25 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbg_length_bff46949c967d66a = function(arg0) {
|
imports.wbg.__wbg_length_bff46949c967d66a = function(arg0) {
|
||||||
const ret = getObject(arg0).length;
|
const ret = getObject(arg0).length;
|
||||||
return ret;
|
return ret;
|
||||||
@@ -1279,58 +1297,17 @@ function __wbg_get_imports() {
|
|||||||
const ret = getObject(arg0)[arg1 >>> 0];
|
const ret = getObject(arg0)[arg1 >>> 0];
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_name_ae233a503e60a8f9 = function(arg0, arg1) {
|
imports.wbg.__wbg_dataTransfer_87da4b5e2c2e3bc4 = function(arg0) {
|
||||||
const ret = getObject(arg1).name;
|
const ret = getObject(arg0).dataTransfer;
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
const len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_lastModified_75062097476be87c = function(arg0) {
|
|
||||||
const ret = getObject(arg0).lastModified;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_keyCode_48193538ac21d5a4 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).keyCode;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_altKey_1796184c5e96a92b = function(arg0) {
|
|
||||||
const ret = getObject(arg0).altKey;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_ctrlKey_a6ae383772af67d4 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).ctrlKey;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_shiftKey_0b1fd10d0674f847 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).shiftKey;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_metaKey_e6e67f783888f56d = function(arg0) {
|
|
||||||
const ret = getObject(arg0).metaKey;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_isComposing_11821d1699a0901e = function(arg0) {
|
|
||||||
const ret = getObject(arg0).isComposing;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_key_2e1ec0c70a342064 = function(arg0, arg1) {
|
|
||||||
const ret = getObject(arg1).key;
|
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
const len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_clipboard_4685056afb1bd02b = function(arg0) {
|
|
||||||
const ret = getObject(arg0).clipboard;
|
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_userAgent_cda809ba30048ef3 = function() { return handleError(function (arg0, arg1) {
|
imports.wbg.__wbg_parentElement_065722829508e41a = function(arg0) {
|
||||||
const ret = getObject(arg1).userAgent;
|
const ret = getObject(arg0).parentElement;
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
const len1 = WASM_VECTOR_LEN;
|
};
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
imports.wbg.__wbg_appendChild_1139b53a65d69bed = function() { return handleError(function (arg0, arg1) {
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
const ret = getObject(arg0).appendChild(getObject(arg1));
|
||||||
|
return addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
imports.wbg.__wbg_speaking_e166a6e6cd16926d = function(arg0) {
|
imports.wbg.__wbg_speaking_e166a6e6cd16926d = function(arg0) {
|
||||||
const ret = getObject(arg0).speaking;
|
const ret = getObject(arg0).speaking;
|
||||||
@@ -1346,71 +1323,12 @@ function __wbg_get_imports() {
|
|||||||
imports.wbg.__wbg_speak_79ff59113028b505 = function(arg0, arg1) {
|
imports.wbg.__wbg_speak_79ff59113028b505 = function(arg0, arg1) {
|
||||||
getObject(arg0).speak(getObject(arg1));
|
getObject(arg0).speak(getObject(arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_identifier_bcd0d7d8565303c9 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).identifier;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_pageX_da46b41c74531c31 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).pageX;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_pageY_1a5658948b63f9ed = function(arg0) {
|
|
||||||
const ret = getObject(arg0).pageY;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_force_77bad74f81971385 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).force;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_clipboardData_84b041aaf1dd9a2c = function(arg0) {
|
|
||||||
const ret = getObject(arg0).clipboardData;
|
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_preventDefault_2f38e1471796356f = function(arg0) {
|
imports.wbg.__wbg_preventDefault_2f38e1471796356f = function(arg0) {
|
||||||
getObject(arg0).preventDefault();
|
getObject(arg0).preventDefault();
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_stopPropagation_5df9f972a70ef515 = function(arg0) {
|
imports.wbg.__wbg_stopPropagation_5df9f972a70ef515 = function(arg0) {
|
||||||
getObject(arg0).stopPropagation();
|
getObject(arg0).stopPropagation();
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_parentElement_065722829508e41a = function(arg0) {
|
|
||||||
const ret = getObject(arg0).parentElement;
|
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_appendChild_1139b53a65d69bed = function() { return handleError(function (arg0, arg1) {
|
|
||||||
const ret = getObject(arg0).appendChild(getObject(arg1));
|
|
||||||
return addHeapObject(ret);
|
|
||||||
}, arguments) };
|
|
||||||
imports.wbg.__wbg_touches_08fba6286bed8021 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).touches;
|
|
||||||
return addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_changedTouches_0e21b77cd9200e74 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).changedTouches;
|
|
||||||
return addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_size_a058ca48cf388fd6 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).size;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_arrayBuffer_932c610fd9598bef = function(arg0) {
|
|
||||||
const ret = getObject(arg0).arrayBuffer();
|
|
||||||
return addHeapObject(ret);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_data_64c5449b2adfdff6 = function(arg0, arg1) {
|
|
||||||
const ret = getObject(arg1).data;
|
|
||||||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
var len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_top_7f927afdb53442c3 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).top;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_left_d363f2200ca7bca7 = function(arg0) {
|
|
||||||
const ret = getObject(arg0).left;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_href_68df54cac0a34be4 = function() { return handleError(function (arg0, arg1) {
|
imports.wbg.__wbg_href_68df54cac0a34be4 = function() { return handleError(function (arg0, arg1) {
|
||||||
const ret = getObject(arg1).href;
|
const ret = getObject(arg1).href;
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
@@ -1467,6 +1385,46 @@ function __wbg_get_imports() {
|
|||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_touches_08fba6286bed8021 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).touches;
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_changedTouches_0e21b77cd9200e74 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).changedTouches;
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_clipboardData_84b041aaf1dd9a2c = function(arg0) {
|
||||||
|
const ret = getObject(arg0).clipboardData;
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_set_76353df4722f4954 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_setvoice_b89f15aafa327ee8 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).voice = getObject(arg1);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setvolume_b175e9ad36c878ee = function(arg0, arg1) {
|
||||||
|
getObject(arg0).volume = arg1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setrate_ca2167dc6b346b26 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).rate = arg1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setpitch_3a330092e7e9b96f = function(arg0, arg1) {
|
||||||
|
getObject(arg0).pitch = arg1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setonstart_963d173442cf886e = function(arg0, arg1) {
|
||||||
|
getObject(arg0).onstart = getObject(arg1);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setonend_1fea8ae30b203c54 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).onend = getObject(arg1);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setonerror_c117a28570d46684 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).onerror = getObject(arg1);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_newwithtext_8130d0159088eaf8 = function() { return handleError(function (arg0, arg1) {
|
||||||
|
const ret = new SpeechSynthesisUtterance(getStringFromWasm0(arg0, arg1));
|
||||||
|
return addHeapObject(ret);
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbg_getItem_84095995ffbc84fc = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_getItem_84095995ffbc84fc = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
||||||
const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3));
|
const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3));
|
||||||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
@@ -1477,6 +1435,48 @@ function __wbg_get_imports() {
|
|||||||
imports.wbg.__wbg_setItem_e9a65f0e6892d9c9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
imports.wbg.__wbg_setItem_e9a65f0e6892d9c9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||||
getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_identifier_bcd0d7d8565303c9 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).identifier;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_pageX_da46b41c74531c31 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).pageX;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_pageY_1a5658948b63f9ed = function(arg0) {
|
||||||
|
const ret = getObject(arg0).pageY;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_force_77bad74f81971385 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).force;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_instanceof_HtmlInputElement_a15913e00980dd9c = function(arg0) {
|
||||||
|
let result;
|
||||||
|
try {
|
||||||
|
result = getObject(arg0) instanceof HTMLInputElement;
|
||||||
|
} catch {
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
const ret = result;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setautofocus_ae682319cc846b47 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).autofocus = arg1 !== 0;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setsize_ae008b7511e35484 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).size = arg1 >>> 0;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_value_09d384cba1c51c6f = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).value;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setvalue_7605619324f70225 = function(arg0, arg1, arg2) {
|
||||||
|
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) {
|
imports.wbg.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) {
|
||||||
const ret = getObject(arg0)[arg1 >>> 0];
|
const ret = getObject(arg0)[arg1 >>> 0];
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
@@ -1657,28 +1657,28 @@ function __wbg_get_imports() {
|
|||||||
const ret = wasm.memory;
|
const ret = wasm.memory;
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper2826 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper9594 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 996, __wbg_adapter_28);
|
const ret = makeMutClosure(arg0, arg1, 1373, __wbg_adapter_28);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper2827 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper9596 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 996, __wbg_adapter_31);
|
const ret = makeMutClosure(arg0, arg1, 1371, __wbg_adapter_31);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper2828 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper9598 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 996, __wbg_adapter_34);
|
const ret = makeMutClosure(arg0, arg1, 1375, __wbg_adapter_34);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper3214 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper10970 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeClosure(arg0, arg1, 1153, __wbg_adapter_37);
|
const ret = makeClosure(arg0, arg1, 1545, __wbg_adapter_37);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper3216 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper10972 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeClosure(arg0, arg1, 1153, __wbg_adapter_37);
|
const ret = makeClosure(arg0, arg1, 1545, __wbg_adapter_37);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper3259 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper11010 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 1176, __wbg_adapter_42);
|
const ret = makeMutClosure(arg0, arg1, 1568, __wbg_adapter_42);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
use eframe::egui;
|
use eframe::egui;
|
||||||
use eframe::egui::window::ViewportBuilder;
|
|
||||||
use eframe::egui::Id;
|
use eframe::egui::Id;
|
||||||
|
use eframe::egui::ViewportBuilder;
|
||||||
use eframe::NativeOptions;
|
use eframe::NativeOptions;
|
||||||
|
|
||||||
#[cfg(feature = "wgpu")]
|
#[cfg(feature = "wgpu")]
|
||||||
@@ -94,7 +94,7 @@ fn main() {
|
|||||||
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
|
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
|
||||||
ctx.viewport_command(
|
ctx.viewport_command(
|
||||||
ctx.get_viewport_id(),
|
ctx.get_viewport_id(),
|
||||||
egui::window::ViewportCommand::Drag,
|
egui::ViewportCommand::Drag,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
ctx.memory_mut(|mem| {
|
ctx.memory_mut(|mem| {
|
||||||
@@ -140,7 +140,7 @@ fn main() {
|
|||||||
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
|
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
|
||||||
ctx.viewport_command(
|
ctx.viewport_command(
|
||||||
ctx.get_viewport_id(),
|
ctx.get_viewport_id(),
|
||||||
egui::window::ViewportCommand::Drag,
|
egui::ViewportCommand::Drag,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
ctx.memory_mut(|mem| {
|
ctx.memory_mut(|mem| {
|
||||||
@@ -177,7 +177,7 @@ fn main() {
|
|||||||
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
|
if ctx.get_viewport_id() != ctx.get_parent_viewport_id() {
|
||||||
ctx.viewport_command(
|
ctx.viewport_command(
|
||||||
ctx.get_viewport_id(),
|
ctx.get_viewport_id(),
|
||||||
egui::window::ViewportCommand::Drag,
|
egui::ViewportCommand::Drag,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
ctx.memory_mut(|mem| {
|
ctx.memory_mut(|mem| {
|
||||||
|
|||||||
Reference in New Issue
Block a user