Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AbortController , typescript_type = "AbortController")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AbortController` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortController`*"]
pub type AbortController;
#[cfg(feature = "AbortSignal")]
# [wasm_bindgen (structural , method , getter , js_class = "AbortController" , js_name = signal)]
#[doc = "Getter for the `signal` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/signal)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortController`, `AbortSignal`*"]
pub fn signal(this: &AbortController) -> AbortSignal;
#[wasm_bindgen(catch, constructor, js_class = "AbortController")]
#[doc = "The `new AbortController(..)` constructor, creating a new instance of `AbortController`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/AbortController)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortController`*"]
pub fn new() -> Result<AbortController, JsValue>;
# [wasm_bindgen (method , structural , js_class = "AbortController" , js_name = abort)]
#[doc = "The `abort()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortController`*"]
pub fn abort(this: &AbortController);
# [wasm_bindgen (method , structural , js_class = "AbortController" , js_name = abort)]
#[doc = "The `abort()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortController`*"]
pub fn abort_with_reason(this: &AbortController, reason: &::wasm_bindgen::JsValue);
}

View File

@@ -0,0 +1,85 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AbortSignal , typescript_type = "AbortSignal")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AbortSignal` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub type AbortSignal;
# [wasm_bindgen (structural , method , getter , js_class = "AbortSignal" , js_name = aborted)]
#[doc = "Getter for the `aborted` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/aborted)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn aborted(this: &AbortSignal) -> bool;
# [wasm_bindgen (structural , method , getter , js_class = "AbortSignal" , js_name = reason)]
#[doc = "Getter for the `reason` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/reason)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn reason(this: &AbortSignal) -> ::wasm_bindgen::JsValue;
# [wasm_bindgen (structural , method , getter , js_class = "AbortSignal" , js_name = onabort)]
#[doc = "Getter for the `onabort` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn onabort(this: &AbortSignal) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "AbortSignal" , js_name = onabort)]
#[doc = "Setter for the `onabort` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn set_onabort(this: &AbortSignal, value: Option<&::js_sys::Function>);
# [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = abort)]
#[doc = "The `abort()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/abort_static)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn abort() -> AbortSignal;
# [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = abort)]
#[doc = "The `abort()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/abort_static)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn abort_with_reason(reason: &::wasm_bindgen::JsValue) -> AbortSignal;
# [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = any)]
#[doc = "The `any()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/any_static)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn any(signals: &::wasm_bindgen::JsValue) -> AbortSignal;
# [wasm_bindgen (method , structural , js_class = "AbortSignal" , js_name = throwIfAborted)]
#[doc = "The `throwIfAborted()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/throwIfAborted)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn throw_if_aborted(this: &AbortSignal);
# [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = timeout)]
#[doc = "The `timeout()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn timeout_with_u32(milliseconds: u32) -> AbortSignal;
# [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = timeout)]
#[doc = "The `timeout()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"]
pub fn timeout_with_f64(milliseconds: f64) -> AbortSignal;
}

View File

@@ -0,0 +1,91 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AddEventListenerOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AddEventListenerOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"]
pub type AddEventListenerOptions;
#[doc = "Get the `capture` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"]
#[wasm_bindgen(method, getter = "capture")]
pub fn get_capture(this: &AddEventListenerOptions) -> Option<bool>;
#[doc = "Change the `capture` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"]
#[wasm_bindgen(method, setter = "capture")]
pub fn set_capture(this: &AddEventListenerOptions, val: bool);
#[doc = "Get the `once` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"]
#[wasm_bindgen(method, getter = "once")]
pub fn get_once(this: &AddEventListenerOptions) -> Option<bool>;
#[doc = "Change the `once` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"]
#[wasm_bindgen(method, setter = "once")]
pub fn set_once(this: &AddEventListenerOptions, val: bool);
#[doc = "Get the `passive` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"]
#[wasm_bindgen(method, getter = "passive")]
pub fn get_passive(this: &AddEventListenerOptions) -> Option<bool>;
#[doc = "Change the `passive` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"]
#[wasm_bindgen(method, setter = "passive")]
pub fn set_passive(this: &AddEventListenerOptions, val: bool);
#[cfg(feature = "AbortSignal")]
#[doc = "Get the `signal` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `AddEventListenerOptions`*"]
#[wasm_bindgen(method, getter = "signal")]
pub fn get_signal(this: &AddEventListenerOptions) -> Option<AbortSignal>;
#[cfg(feature = "AbortSignal")]
#[doc = "Change the `signal` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `AddEventListenerOptions`*"]
#[wasm_bindgen(method, setter = "signal")]
pub fn set_signal(this: &AddEventListenerOptions, val: &AbortSignal);
}
impl AddEventListenerOptions {
#[doc = "Construct a new `AddEventListenerOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_capture()` instead."]
pub fn capture(&mut self, val: bool) -> &mut Self {
self.set_capture(val);
self
}
#[deprecated = "Use `set_once()` instead."]
pub fn once(&mut self, val: bool) -> &mut Self {
self.set_once(val);
self
}
#[deprecated = "Use `set_passive()` instead."]
pub fn passive(&mut self, val: bool) -> &mut Self {
self.set_passive(val);
self
}
#[cfg(feature = "AbortSignal")]
#[deprecated = "Use `set_signal()` instead."]
pub fn signal(&mut self, val: &AbortSignal) -> &mut Self {
self.set_signal(val);
self
}
}
impl Default for AddEventListenerOptions {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,55 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesCbcParams)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AesCbcParams` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"]
pub type AesCbcParams;
#[doc = "Get the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"]
#[wasm_bindgen(method, getter = "name")]
pub fn get_name(this: &AesCbcParams) -> ::alloc::string::String;
#[doc = "Change the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"]
#[wasm_bindgen(method, setter = "name")]
pub fn set_name(this: &AesCbcParams, val: &str);
#[doc = "Get the `iv` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"]
#[wasm_bindgen(method, getter = "iv")]
pub fn get_iv(this: &AesCbcParams) -> ::js_sys::Object;
#[doc = "Change the `iv` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"]
#[wasm_bindgen(method, setter = "iv")]
pub fn set_iv(this: &AesCbcParams, val: &::js_sys::Object);
}
impl AesCbcParams {
#[doc = "Construct a new `AesCbcParams`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"]
pub fn new(name: &str, iv: &::js_sys::Object) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_name(name);
ret.set_iv(iv);
ret
}
#[deprecated = "Use `set_name()` instead."]
pub fn name(&mut self, val: &str) -> &mut Self {
self.set_name(val);
self
}
#[deprecated = "Use `set_iv()` instead."]
pub fn iv(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_iv(val);
self
}
}

View File

@@ -0,0 +1,71 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesCtrParams)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AesCtrParams` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"]
pub type AesCtrParams;
#[doc = "Get the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"]
#[wasm_bindgen(method, getter = "name")]
pub fn get_name(this: &AesCtrParams) -> ::alloc::string::String;
#[doc = "Change the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"]
#[wasm_bindgen(method, setter = "name")]
pub fn set_name(this: &AesCtrParams, val: &str);
#[doc = "Get the `counter` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"]
#[wasm_bindgen(method, getter = "counter")]
pub fn get_counter(this: &AesCtrParams) -> ::js_sys::Object;
#[doc = "Change the `counter` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"]
#[wasm_bindgen(method, setter = "counter")]
pub fn set_counter(this: &AesCtrParams, val: &::js_sys::Object);
#[doc = "Get the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"]
#[wasm_bindgen(method, getter = "length")]
pub fn get_length(this: &AesCtrParams) -> u8;
#[doc = "Change the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"]
#[wasm_bindgen(method, setter = "length")]
pub fn set_length(this: &AesCtrParams, val: u8);
}
impl AesCtrParams {
#[doc = "Construct a new `AesCtrParams`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"]
pub fn new(name: &str, counter: &::js_sys::Object, length: u8) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_name(name);
ret.set_counter(counter);
ret.set_length(length);
ret
}
#[deprecated = "Use `set_name()` instead."]
pub fn name(&mut self, val: &str) -> &mut Self {
self.set_name(val);
self
}
#[deprecated = "Use `set_counter()` instead."]
pub fn counter(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_counter(val);
self
}
#[deprecated = "Use `set_length()` instead."]
pub fn length(&mut self, val: u8) -> &mut Self {
self.set_length(val);
self
}
}

View File

@@ -0,0 +1,55 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesDerivedKeyParams)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AesDerivedKeyParams` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"]
pub type AesDerivedKeyParams;
#[doc = "Get the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"]
#[wasm_bindgen(method, getter = "name")]
pub fn get_name(this: &AesDerivedKeyParams) -> ::alloc::string::String;
#[doc = "Change the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"]
#[wasm_bindgen(method, setter = "name")]
pub fn set_name(this: &AesDerivedKeyParams, val: &str);
#[doc = "Get the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"]
#[wasm_bindgen(method, getter = "length")]
pub fn get_length(this: &AesDerivedKeyParams) -> u32;
#[doc = "Change the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"]
#[wasm_bindgen(method, setter = "length")]
pub fn set_length(this: &AesDerivedKeyParams, val: u32);
}
impl AesDerivedKeyParams {
#[doc = "Construct a new `AesDerivedKeyParams`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"]
pub fn new(name: &str, length: u32) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_name(name);
ret.set_length(length);
ret
}
#[deprecated = "Use `set_name()` instead."]
pub fn name(&mut self, val: &str) -> &mut Self {
self.set_name(val);
self
}
#[deprecated = "Use `set_length()` instead."]
pub fn length(&mut self, val: u32) -> &mut Self {
self.set_length(val);
self
}
}

View File

@@ -0,0 +1,85 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesGcmParams)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AesGcmParams` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
pub type AesGcmParams;
#[doc = "Get the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
#[wasm_bindgen(method, getter = "name")]
pub fn get_name(this: &AesGcmParams) -> ::alloc::string::String;
#[doc = "Change the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
#[wasm_bindgen(method, setter = "name")]
pub fn set_name(this: &AesGcmParams, val: &str);
#[doc = "Get the `additionalData` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
#[wasm_bindgen(method, getter = "additionalData")]
pub fn get_additional_data(this: &AesGcmParams) -> Option<::js_sys::Object>;
#[doc = "Change the `additionalData` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
#[wasm_bindgen(method, setter = "additionalData")]
pub fn set_additional_data(this: &AesGcmParams, val: &::js_sys::Object);
#[doc = "Get the `iv` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
#[wasm_bindgen(method, getter = "iv")]
pub fn get_iv(this: &AesGcmParams) -> ::js_sys::Object;
#[doc = "Change the `iv` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
#[wasm_bindgen(method, setter = "iv")]
pub fn set_iv(this: &AesGcmParams, val: &::js_sys::Object);
#[doc = "Get the `tagLength` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
#[wasm_bindgen(method, getter = "tagLength")]
pub fn get_tag_length(this: &AesGcmParams) -> Option<u8>;
#[doc = "Change the `tagLength` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
#[wasm_bindgen(method, setter = "tagLength")]
pub fn set_tag_length(this: &AesGcmParams, val: u8);
}
impl AesGcmParams {
#[doc = "Construct a new `AesGcmParams`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"]
pub fn new(name: &str, iv: &::js_sys::Object) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_name(name);
ret.set_iv(iv);
ret
}
#[deprecated = "Use `set_name()` instead."]
pub fn name(&mut self, val: &str) -> &mut Self {
self.set_name(val);
self
}
#[deprecated = "Use `set_additional_data()` instead."]
pub fn additional_data(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_additional_data(val);
self
}
#[deprecated = "Use `set_iv()` instead."]
pub fn iv(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_iv(val);
self
}
#[deprecated = "Use `set_tag_length()` instead."]
pub fn tag_length(&mut self, val: u8) -> &mut Self {
self.set_tag_length(val);
self
}
}

View File

@@ -0,0 +1,55 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesKeyAlgorithm)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AesKeyAlgorithm` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"]
pub type AesKeyAlgorithm;
#[doc = "Get the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"]
#[wasm_bindgen(method, getter = "name")]
pub fn get_name(this: &AesKeyAlgorithm) -> ::alloc::string::String;
#[doc = "Change the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"]
#[wasm_bindgen(method, setter = "name")]
pub fn set_name(this: &AesKeyAlgorithm, val: &str);
#[doc = "Get the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"]
#[wasm_bindgen(method, getter = "length")]
pub fn get_length(this: &AesKeyAlgorithm) -> u16;
#[doc = "Change the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"]
#[wasm_bindgen(method, setter = "length")]
pub fn set_length(this: &AesKeyAlgorithm, val: u16);
}
impl AesKeyAlgorithm {
#[doc = "Construct a new `AesKeyAlgorithm`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"]
pub fn new(name: &str, length: u16) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_name(name);
ret.set_length(length);
ret
}
#[deprecated = "Use `set_name()` instead."]
pub fn name(&mut self, val: &str) -> &mut Self {
self.set_name(val);
self
}
#[deprecated = "Use `set_length()` instead."]
pub fn length(&mut self, val: u16) -> &mut Self {
self.set_length(val);
self
}
}

View File

@@ -0,0 +1,55 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesKeyGenParams)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AesKeyGenParams` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"]
pub type AesKeyGenParams;
#[doc = "Get the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"]
#[wasm_bindgen(method, getter = "name")]
pub fn get_name(this: &AesKeyGenParams) -> ::alloc::string::String;
#[doc = "Change the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"]
#[wasm_bindgen(method, setter = "name")]
pub fn set_name(this: &AesKeyGenParams, val: &str);
#[doc = "Get the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"]
#[wasm_bindgen(method, getter = "length")]
pub fn get_length(this: &AesKeyGenParams) -> u16;
#[doc = "Change the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"]
#[wasm_bindgen(method, setter = "length")]
pub fn set_length(this: &AesKeyGenParams, val: u16);
}
impl AesKeyGenParams {
#[doc = "Construct a new `AesKeyGenParams`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"]
pub fn new(name: &str, length: u16) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_name(name);
ret.set_length(length);
ret
}
#[deprecated = "Use `set_name()` instead."]
pub fn name(&mut self, val: &str) -> &mut Self {
self.set_name(val);
self
}
#[deprecated = "Use `set_length()` instead."]
pub fn length(&mut self, val: u16) -> &mut Self {
self.set_length(val);
self
}
}

View File

@@ -0,0 +1,39 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = Algorithm)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `Algorithm` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Algorithm`*"]
pub type Algorithm;
#[doc = "Get the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Algorithm`*"]
#[wasm_bindgen(method, getter = "name")]
pub fn get_name(this: &Algorithm) -> ::alloc::string::String;
#[doc = "Change the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Algorithm`*"]
#[wasm_bindgen(method, setter = "name")]
pub fn set_name(this: &Algorithm, val: &str);
}
impl Algorithm {
#[doc = "Construct a new `Algorithm`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Algorithm`*"]
pub fn new(name: &str) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_name(name);
ret
}
#[deprecated = "Use `set_name()` instead."]
pub fn name(&mut self, val: &str) -> &mut Self {
self.set_name(val);
self
}
}

View File

@@ -0,0 +1,15 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `AlignSetting` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AlignSetting`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AlignSetting {
Start = "start",
Center = "center",
End = "end",
Left = "left",
Right = "right",
}

View File

@@ -0,0 +1,110 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AllowedBluetoothDevice)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AllowedBluetoothDevice` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AllowedBluetoothDevice;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `allowedServices` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "allowedServices")]
pub fn get_allowed_services(this: &AllowedBluetoothDevice) -> ::wasm_bindgen::JsValue;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `allowedServices` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "allowedServices")]
pub fn set_allowed_services(this: &AllowedBluetoothDevice, val: &::wasm_bindgen::JsValue);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `deviceId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "deviceId")]
pub fn get_device_id(this: &AllowedBluetoothDevice) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `deviceId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "deviceId")]
pub fn set_device_id(this: &AllowedBluetoothDevice, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `mayUseGATT` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "mayUseGATT")]
pub fn get_may_use_gatt(this: &AllowedBluetoothDevice) -> bool;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `mayUseGATT` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "mayUseGATT")]
pub fn set_may_use_gatt(this: &AllowedBluetoothDevice, val: bool);
}
#[cfg(web_sys_unstable_apis)]
impl AllowedBluetoothDevice {
#[doc = "Construct a new `AllowedBluetoothDevice`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(
allowed_services: &::wasm_bindgen::JsValue,
device_id: &str,
may_use_gatt: bool,
) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_allowed_services(allowed_services);
ret.set_device_id(device_id);
ret.set_may_use_gatt(may_use_gatt);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_allowed_services()` instead."]
pub fn allowed_services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_allowed_services(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_device_id()` instead."]
pub fn device_id(&mut self, val: &str) -> &mut Self {
self.set_device_id(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_may_use_gatt()` instead."]
pub fn may_use_gatt(&mut self, val: bool) -> &mut Self {
self.set_may_use_gatt(val);
self
}
}

View File

@@ -0,0 +1,105 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AllowedUSBDevice)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AllowedUsbDevice` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AllowedUsbDevice;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `productId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "productId")]
pub fn get_product_id(this: &AllowedUsbDevice) -> u8;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `productId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "productId")]
pub fn set_product_id(this: &AllowedUsbDevice, val: u8);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `serialNumber` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "serialNumber")]
pub fn get_serial_number(this: &AllowedUsbDevice) -> Option<::alloc::string::String>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `serialNumber` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "serialNumber")]
pub fn set_serial_number(this: &AllowedUsbDevice, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `vendorId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "vendorId")]
pub fn get_vendor_id(this: &AllowedUsbDevice) -> u8;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `vendorId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "vendorId")]
pub fn set_vendor_id(this: &AllowedUsbDevice, val: u8);
}
#[cfg(web_sys_unstable_apis)]
impl AllowedUsbDevice {
#[doc = "Construct a new `AllowedUsbDevice`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(product_id: u8, vendor_id: u8) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_product_id(product_id);
ret.set_vendor_id(vendor_id);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_product_id()` instead."]
pub fn product_id(&mut self, val: u8) -> &mut Self {
self.set_product_id(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_serial_number()` instead."]
pub fn serial_number(&mut self, val: &str) -> &mut Self {
self.set_serial_number(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_vendor_id()` instead."]
pub fn vendor_id(&mut self, val: u8) -> &mut Self {
self.set_vendor_id(val);
self
}
}

View File

@@ -0,0 +1,16 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
#[doc = "The `AlphaOption` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AlphaOption`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AlphaOption {
Keep = "keep",
Discard = "discard",
}

View File

@@ -0,0 +1,162 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AnalyserNode , typescript_type = "AnalyserNode")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnalyserNode` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub type AnalyserNode;
# [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = fftSize)]
#[doc = "Getter for the `fftSize` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn fft_size(this: &AnalyserNode) -> u32;
# [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = fftSize)]
#[doc = "Setter for the `fftSize` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn set_fft_size(this: &AnalyserNode, value: u32);
# [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = frequencyBinCount)]
#[doc = "Getter for the `frequencyBinCount` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/frequencyBinCount)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn frequency_bin_count(this: &AnalyserNode) -> u32;
# [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = minDecibels)]
#[doc = "Getter for the `minDecibels` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn min_decibels(this: &AnalyserNode) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = minDecibels)]
#[doc = "Setter for the `minDecibels` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn set_min_decibels(this: &AnalyserNode, value: f64);
# [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = maxDecibels)]
#[doc = "Getter for the `maxDecibels` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn max_decibels(this: &AnalyserNode) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = maxDecibels)]
#[doc = "Setter for the `maxDecibels` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn set_max_decibels(this: &AnalyserNode, value: f64);
# [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = smoothingTimeConstant)]
#[doc = "Getter for the `smoothingTimeConstant` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn smoothing_time_constant(this: &AnalyserNode) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = smoothingTimeConstant)]
#[doc = "Setter for the `smoothingTimeConstant` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn set_smoothing_time_constant(this: &AnalyserNode, value: f64);
#[cfg(feature = "BaseAudioContext")]
#[wasm_bindgen(catch, constructor, js_class = "AnalyserNode")]
#[doc = "The `new AnalyserNode(..)` constructor, creating a new instance of `AnalyserNode`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/AnalyserNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `BaseAudioContext`*"]
pub fn new(context: &BaseAudioContext) -> Result<AnalyserNode, JsValue>;
#[cfg(all(feature = "AnalyserOptions", feature = "BaseAudioContext",))]
#[wasm_bindgen(catch, constructor, js_class = "AnalyserNode")]
#[doc = "The `new AnalyserNode(..)` constructor, creating a new instance of `AnalyserNode`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/AnalyserNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `AnalyserOptions`, `BaseAudioContext`*"]
pub fn new_with_options(
context: &BaseAudioContext,
options: &AnalyserOptions,
) -> Result<AnalyserNode, JsValue>;
# [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getByteFrequencyData)]
#[doc = "The `getByteFrequencyData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteFrequencyData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn get_byte_frequency_data(this: &AnalyserNode, array: &mut [u8]);
# [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getByteFrequencyData)]
#[doc = "The `getByteFrequencyData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteFrequencyData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn get_byte_frequency_data_with_u8_array(this: &AnalyserNode, array: &::js_sys::Uint8Array);
# [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getByteTimeDomainData)]
#[doc = "The `getByteTimeDomainData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteTimeDomainData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn get_byte_time_domain_data(this: &AnalyserNode, array: &mut [u8]);
# [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getByteTimeDomainData)]
#[doc = "The `getByteTimeDomainData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteTimeDomainData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn get_byte_time_domain_data_with_u8_array(
this: &AnalyserNode,
array: &::js_sys::Uint8Array,
);
# [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getFloatFrequencyData)]
#[doc = "The `getFloatFrequencyData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatFrequencyData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn get_float_frequency_data(this: &AnalyserNode, array: &mut [f32]);
# [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getFloatFrequencyData)]
#[doc = "The `getFloatFrequencyData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatFrequencyData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn get_float_frequency_data_with_f32_array(
this: &AnalyserNode,
array: &::js_sys::Float32Array,
);
# [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getFloatTimeDomainData)]
#[doc = "The `getFloatTimeDomainData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn get_float_time_domain_data(this: &AnalyserNode, array: &mut [f32]);
# [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getFloatTimeDomainData)]
#[doc = "The `getFloatTimeDomainData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"]
pub fn get_float_time_domain_data_with_f32_array(
this: &AnalyserNode,
array: &::js_sys::Float32Array,
);
}

View File

@@ -0,0 +1,139 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnalyserOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnalyserOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
pub type AnalyserOptions;
#[doc = "Get the `channelCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, getter = "channelCount")]
pub fn get_channel_count(this: &AnalyserOptions) -> Option<u32>;
#[doc = "Change the `channelCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, setter = "channelCount")]
pub fn set_channel_count(this: &AnalyserOptions, val: u32);
#[cfg(feature = "ChannelCountMode")]
#[doc = "Get the `channelCountMode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelCountMode`*"]
#[wasm_bindgen(method, getter = "channelCountMode")]
pub fn get_channel_count_mode(this: &AnalyserOptions) -> Option<ChannelCountMode>;
#[cfg(feature = "ChannelCountMode")]
#[doc = "Change the `channelCountMode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelCountMode`*"]
#[wasm_bindgen(method, setter = "channelCountMode")]
pub fn set_channel_count_mode(this: &AnalyserOptions, val: ChannelCountMode);
#[cfg(feature = "ChannelInterpretation")]
#[doc = "Get the `channelInterpretation` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelInterpretation`*"]
#[wasm_bindgen(method, getter = "channelInterpretation")]
pub fn get_channel_interpretation(this: &AnalyserOptions) -> Option<ChannelInterpretation>;
#[cfg(feature = "ChannelInterpretation")]
#[doc = "Change the `channelInterpretation` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelInterpretation`*"]
#[wasm_bindgen(method, setter = "channelInterpretation")]
pub fn set_channel_interpretation(this: &AnalyserOptions, val: ChannelInterpretation);
#[doc = "Get the `fftSize` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, getter = "fftSize")]
pub fn get_fft_size(this: &AnalyserOptions) -> Option<u32>;
#[doc = "Change the `fftSize` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, setter = "fftSize")]
pub fn set_fft_size(this: &AnalyserOptions, val: u32);
#[doc = "Get the `maxDecibels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, getter = "maxDecibels")]
pub fn get_max_decibels(this: &AnalyserOptions) -> Option<f64>;
#[doc = "Change the `maxDecibels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, setter = "maxDecibels")]
pub fn set_max_decibels(this: &AnalyserOptions, val: f64);
#[doc = "Get the `minDecibels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, getter = "minDecibels")]
pub fn get_min_decibels(this: &AnalyserOptions) -> Option<f64>;
#[doc = "Change the `minDecibels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, setter = "minDecibels")]
pub fn set_min_decibels(this: &AnalyserOptions, val: f64);
#[doc = "Get the `smoothingTimeConstant` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, getter = "smoothingTimeConstant")]
pub fn get_smoothing_time_constant(this: &AnalyserOptions) -> Option<f64>;
#[doc = "Change the `smoothingTimeConstant` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
#[wasm_bindgen(method, setter = "smoothingTimeConstant")]
pub fn set_smoothing_time_constant(this: &AnalyserOptions, val: f64);
}
impl AnalyserOptions {
#[doc = "Construct a new `AnalyserOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_channel_count()` instead."]
pub fn channel_count(&mut self, val: u32) -> &mut Self {
self.set_channel_count(val);
self
}
#[cfg(feature = "ChannelCountMode")]
#[deprecated = "Use `set_channel_count_mode()` instead."]
pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self {
self.set_channel_count_mode(val);
self
}
#[cfg(feature = "ChannelInterpretation")]
#[deprecated = "Use `set_channel_interpretation()` instead."]
pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self {
self.set_channel_interpretation(val);
self
}
#[deprecated = "Use `set_fft_size()` instead."]
pub fn fft_size(&mut self, val: u32) -> &mut Self {
self.set_fft_size(val);
self
}
#[deprecated = "Use `set_max_decibels()` instead."]
pub fn max_decibels(&mut self, val: f64) -> &mut Self {
self.set_max_decibels(val);
self
}
#[deprecated = "Use `set_min_decibels()` instead."]
pub fn min_decibels(&mut self, val: f64) -> &mut Self {
self.set_min_decibels(val);
self
}
#[deprecated = "Use `set_smoothing_time_constant()` instead."]
pub fn smoothing_time_constant(&mut self, val: f64) -> &mut Self {
self.set_smoothing_time_constant(val);
self
}
}
impl Default for AnalyserOptions {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,69 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ANGLE_instanced_arrays , typescript_type = "ANGLE_instanced_arrays")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AngleInstancedArrays` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
pub type AngleInstancedArrays;
# [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawArraysInstancedANGLE)]
#[doc = "The `drawArraysInstancedANGLE()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
pub fn draw_arrays_instanced_angle(
this: &AngleInstancedArrays,
mode: u32,
first: i32,
count: i32,
primcount: i32,
);
# [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawElementsInstancedANGLE)]
#[doc = "The `drawElementsInstancedANGLE()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
pub fn draw_elements_instanced_angle_with_i32(
this: &AngleInstancedArrays,
mode: u32,
count: i32,
type_: u32,
offset: i32,
primcount: i32,
);
# [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawElementsInstancedANGLE)]
#[doc = "The `drawElementsInstancedANGLE()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
pub fn draw_elements_instanced_angle_with_f64(
this: &AngleInstancedArrays,
mode: u32,
count: i32,
type_: u32,
offset: f64,
primcount: i32,
);
# [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = vertexAttribDivisorANGLE)]
#[doc = "The `vertexAttribDivisorANGLE()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
pub fn vertex_attrib_divisor_angle(this: &AngleInstancedArrays, index: u32, divisor: u32);
}
impl AngleInstancedArrays {
#[doc = "The `ANGLE_instanced_arrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
pub const VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: u32 = 35070u64 as u32;
}

View File

@@ -0,0 +1,228 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Animation , typescript_type = "Animation")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `Animation` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub type Animation;
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = id)]
#[doc = "Getter for the `id` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/id)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn id(this: &Animation) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = id)]
#[doc = "Setter for the `id` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/id)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn set_id(this: &Animation, value: &str);
#[cfg(feature = "AnimationEffect")]
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = effect)]
#[doc = "Getter for the `effect` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"]
pub fn effect(this: &Animation) -> Option<AnimationEffect>;
#[cfg(feature = "AnimationEffect")]
# [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = effect)]
#[doc = "Setter for the `effect` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"]
pub fn set_effect(this: &Animation, value: Option<&AnimationEffect>);
#[cfg(feature = "AnimationTimeline")]
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = timeline)]
#[doc = "Getter for the `timeline` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationTimeline`*"]
pub fn timeline(this: &Animation) -> Option<AnimationTimeline>;
#[cfg(feature = "AnimationTimeline")]
# [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = timeline)]
#[doc = "Setter for the `timeline` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationTimeline`*"]
pub fn set_timeline(this: &Animation, value: Option<&AnimationTimeline>);
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = startTime)]
#[doc = "Getter for the `startTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn start_time(this: &Animation) -> Option<f64>;
# [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = startTime)]
#[doc = "Setter for the `startTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn set_start_time(this: &Animation, value: Option<f64>);
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = currentTime)]
#[doc = "Getter for the `currentTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn current_time(this: &Animation) -> Option<f64>;
# [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = currentTime)]
#[doc = "Setter for the `currentTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn set_current_time(this: &Animation, value: Option<f64>);
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = playbackRate)]
#[doc = "Getter for the `playbackRate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn playback_rate(this: &Animation) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = playbackRate)]
#[doc = "Setter for the `playbackRate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn set_playback_rate(this: &Animation, value: f64);
#[cfg(feature = "AnimationPlayState")]
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = playState)]
#[doc = "Getter for the `playState` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationPlayState`*"]
pub fn play_state(this: &Animation) -> AnimationPlayState;
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = pending)]
#[doc = "Getter for the `pending` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn pending(this: &Animation) -> bool;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Animation" , js_name = ready)]
#[doc = "Getter for the `ready` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn ready(this: &Animation) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Animation" , js_name = finished)]
#[doc = "Getter for the `finished` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn finished(this: &Animation) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = onfinish)]
#[doc = "Getter for the `onfinish` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn onfinish(this: &Animation) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = onfinish)]
#[doc = "Setter for the `onfinish` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn set_onfinish(this: &Animation, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = oncancel)]
#[doc = "Getter for the `oncancel` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn oncancel(this: &Animation) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = oncancel)]
#[doc = "Setter for the `oncancel` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn set_oncancel(this: &Animation, value: Option<&::js_sys::Function>);
#[wasm_bindgen(catch, constructor, js_class = "Animation")]
#[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn new() -> Result<Animation, JsValue>;
#[cfg(feature = "AnimationEffect")]
#[wasm_bindgen(catch, constructor, js_class = "Animation")]
#[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"]
pub fn new_with_effect(effect: Option<&AnimationEffect>) -> Result<Animation, JsValue>;
#[cfg(all(feature = "AnimationEffect", feature = "AnimationTimeline",))]
#[wasm_bindgen(catch, constructor, js_class = "Animation")]
#[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`, `AnimationTimeline`*"]
pub fn new_with_effect_and_timeline(
effect: Option<&AnimationEffect>,
timeline: Option<&AnimationTimeline>,
) -> Result<Animation, JsValue>;
# [wasm_bindgen (method , structural , js_class = "Animation" , js_name = cancel)]
#[doc = "The `cancel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn cancel(this: &Animation);
# [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = finish)]
#[doc = "The `finish()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/finish)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn finish(this: &Animation) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = pause)]
#[doc = "The `pause()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/pause)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn pause(this: &Animation) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = play)]
#[doc = "The `play()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/play)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn play(this: &Animation) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = reverse)]
#[doc = "The `reverse()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/reverse)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn reverse(this: &Animation) -> Result<(), JsValue>;
# [wasm_bindgen (method , structural , js_class = "Animation" , js_name = updatePlaybackRate)]
#[doc = "The `updatePlaybackRate()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/updatePlaybackRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Animation`*"]
pub fn update_playback_rate(this: &Animation, playback_rate: f64);
}

View File

@@ -0,0 +1,49 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationEffect , typescript_type = "AnimationEffect")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnimationEffect` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"]
pub type AnimationEffect;
#[cfg(feature = "ComputedEffectTiming")]
# [wasm_bindgen (method , structural , js_class = "AnimationEffect" , js_name = getComputedTiming)]
#[doc = "The `getComputedTiming()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getComputedTiming)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `ComputedEffectTiming`*"]
pub fn get_computed_timing(this: &AnimationEffect) -> ComputedEffectTiming;
#[cfg(feature = "EffectTiming")]
# [wasm_bindgen (method , structural , js_class = "AnimationEffect" , js_name = getTiming)]
#[doc = "The `getTiming()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getTiming)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `EffectTiming`*"]
pub fn get_timing(this: &AnimationEffect) -> EffectTiming;
# [wasm_bindgen (catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming)]
#[doc = "The `updateTiming()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"]
pub fn update_timing(this: &AnimationEffect) -> Result<(), JsValue>;
#[cfg(feature = "OptionalEffectTiming")]
# [wasm_bindgen (catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming)]
#[doc = "The `updateTiming()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `OptionalEffectTiming`*"]
pub fn update_timing_with_timing(
this: &AnimationEffect,
timing: &OptionalEffectTiming,
) -> Result<(), JsValue>;
}

View File

@@ -0,0 +1,54 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AnimationEvent , typescript_type = "AnimationEvent")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnimationEvent` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
pub type AnimationEvent;
# [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = animationName)]
#[doc = "Getter for the `animationName` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/animationName)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
pub fn animation_name(this: &AnimationEvent) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = elapsedTime)]
#[doc = "Getter for the `elapsedTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/elapsedTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
pub fn elapsed_time(this: &AnimationEvent) -> f32;
# [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = pseudoElement)]
#[doc = "Getter for the `pseudoElement` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/pseudoElement)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
pub fn pseudo_element(this: &AnimationEvent) -> ::alloc::string::String;
#[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")]
#[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
pub fn new(type_: &str) -> Result<AnimationEvent, JsValue>;
#[cfg(feature = "AnimationEventInit")]
#[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")]
#[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEvent`, `AnimationEventInit`*"]
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &AnimationEventInit,
) -> Result<AnimationEvent, JsValue>;
}

View File

@@ -0,0 +1,118 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationEventInit)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnimationEventInit` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
pub type AnimationEventInit;
#[doc = "Get the `bubbles` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, getter = "bubbles")]
pub fn get_bubbles(this: &AnimationEventInit) -> Option<bool>;
#[doc = "Change the `bubbles` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, setter = "bubbles")]
pub fn set_bubbles(this: &AnimationEventInit, val: bool);
#[doc = "Get the `cancelable` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, getter = "cancelable")]
pub fn get_cancelable(this: &AnimationEventInit) -> Option<bool>;
#[doc = "Change the `cancelable` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, setter = "cancelable")]
pub fn set_cancelable(this: &AnimationEventInit, val: bool);
#[doc = "Get the `composed` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, getter = "composed")]
pub fn get_composed(this: &AnimationEventInit) -> Option<bool>;
#[doc = "Change the `composed` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, setter = "composed")]
pub fn set_composed(this: &AnimationEventInit, val: bool);
#[doc = "Get the `animationName` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, getter = "animationName")]
pub fn get_animation_name(this: &AnimationEventInit) -> Option<::alloc::string::String>;
#[doc = "Change the `animationName` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, setter = "animationName")]
pub fn set_animation_name(this: &AnimationEventInit, val: &str);
#[doc = "Get the `elapsedTime` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, getter = "elapsedTime")]
pub fn get_elapsed_time(this: &AnimationEventInit) -> Option<f32>;
#[doc = "Change the `elapsedTime` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, setter = "elapsedTime")]
pub fn set_elapsed_time(this: &AnimationEventInit, val: f32);
#[doc = "Get the `pseudoElement` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, getter = "pseudoElement")]
pub fn get_pseudo_element(this: &AnimationEventInit) -> Option<::alloc::string::String>;
#[doc = "Change the `pseudoElement` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
#[wasm_bindgen(method, setter = "pseudoElement")]
pub fn set_pseudo_element(this: &AnimationEventInit, val: &str);
}
impl AnimationEventInit {
#[doc = "Construct a new `AnimationEventInit`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_bubbles()` instead."]
pub fn bubbles(&mut self, val: bool) -> &mut Self {
self.set_bubbles(val);
self
}
#[deprecated = "Use `set_cancelable()` instead."]
pub fn cancelable(&mut self, val: bool) -> &mut Self {
self.set_cancelable(val);
self
}
#[deprecated = "Use `set_composed()` instead."]
pub fn composed(&mut self, val: bool) -> &mut Self {
self.set_composed(val);
self
}
#[deprecated = "Use `set_animation_name()` instead."]
pub fn animation_name(&mut self, val: &str) -> &mut Self {
self.set_animation_name(val);
self
}
#[deprecated = "Use `set_elapsed_time()` instead."]
pub fn elapsed_time(&mut self, val: f32) -> &mut Self {
self.set_elapsed_time(val);
self
}
#[deprecated = "Use `set_pseudo_element()` instead."]
pub fn pseudo_element(&mut self, val: &str) -> &mut Self {
self.set_pseudo_element(val);
self
}
}
impl Default for AnimationEventInit {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,14 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `AnimationPlayState` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlayState`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AnimationPlayState {
Idle = "idle",
Running = "running",
Paused = "paused",
Finished = "finished",
}

View File

@@ -0,0 +1,47 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AnimationPlaybackEvent , typescript_type = "AnimationPlaybackEvent")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnimationPlaybackEvent` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"]
pub type AnimationPlaybackEvent;
# [wasm_bindgen (structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = currentTime)]
#[doc = "Getter for the `currentTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/currentTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"]
pub fn current_time(this: &AnimationPlaybackEvent) -> Option<f64>;
# [wasm_bindgen (structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = timelineTime)]
#[doc = "Getter for the `timelineTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/timelineTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"]
pub fn timeline_time(this: &AnimationPlaybackEvent) -> Option<f64>;
#[wasm_bindgen(catch, constructor, js_class = "AnimationPlaybackEvent")]
#[doc = "The `new AnimationPlaybackEvent(..)` constructor, creating a new instance of `AnimationPlaybackEvent`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"]
pub fn new(type_: &str) -> Result<AnimationPlaybackEvent, JsValue>;
#[cfg(feature = "AnimationPlaybackEventInit")]
#[wasm_bindgen(catch, constructor, js_class = "AnimationPlaybackEvent")]
#[doc = "The `new AnimationPlaybackEvent(..)` constructor, creating a new instance of `AnimationPlaybackEvent`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`, `AnimationPlaybackEventInit`*"]
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &AnimationPlaybackEventInit,
) -> Result<AnimationPlaybackEvent, JsValue>;
}

View File

@@ -0,0 +1,103 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPlaybackEventInit)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnimationPlaybackEventInit` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
pub type AnimationPlaybackEventInit;
#[doc = "Get the `bubbles` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, getter = "bubbles")]
pub fn get_bubbles(this: &AnimationPlaybackEventInit) -> Option<bool>;
#[doc = "Change the `bubbles` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, setter = "bubbles")]
pub fn set_bubbles(this: &AnimationPlaybackEventInit, val: bool);
#[doc = "Get the `cancelable` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, getter = "cancelable")]
pub fn get_cancelable(this: &AnimationPlaybackEventInit) -> Option<bool>;
#[doc = "Change the `cancelable` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, setter = "cancelable")]
pub fn set_cancelable(this: &AnimationPlaybackEventInit, val: bool);
#[doc = "Get the `composed` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, getter = "composed")]
pub fn get_composed(this: &AnimationPlaybackEventInit) -> Option<bool>;
#[doc = "Change the `composed` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, setter = "composed")]
pub fn set_composed(this: &AnimationPlaybackEventInit, val: bool);
#[doc = "Get the `currentTime` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, getter = "currentTime")]
pub fn get_current_time(this: &AnimationPlaybackEventInit) -> Option<f64>;
#[doc = "Change the `currentTime` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, setter = "currentTime")]
pub fn set_current_time(this: &AnimationPlaybackEventInit, val: Option<f64>);
#[doc = "Get the `timelineTime` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, getter = "timelineTime")]
pub fn get_timeline_time(this: &AnimationPlaybackEventInit) -> Option<f64>;
#[doc = "Change the `timelineTime` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
#[wasm_bindgen(method, setter = "timelineTime")]
pub fn set_timeline_time(this: &AnimationPlaybackEventInit, val: Option<f64>);
}
impl AnimationPlaybackEventInit {
#[doc = "Construct a new `AnimationPlaybackEventInit`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_bubbles()` instead."]
pub fn bubbles(&mut self, val: bool) -> &mut Self {
self.set_bubbles(val);
self
}
#[deprecated = "Use `set_cancelable()` instead."]
pub fn cancelable(&mut self, val: bool) -> &mut Self {
self.set_cancelable(val);
self
}
#[deprecated = "Use `set_composed()` instead."]
pub fn composed(&mut self, val: bool) -> &mut Self {
self.set_composed(val);
self
}
#[deprecated = "Use `set_current_time()` instead."]
pub fn current_time(&mut self, val: Option<f64>) -> &mut Self {
self.set_current_time(val);
self
}
#[deprecated = "Use `set_timeline_time()` instead."]
pub fn timeline_time(&mut self, val: Option<f64>) -> &mut Self {
self.set_timeline_time(val);
self
}
}
impl Default for AnimationPlaybackEventInit {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,90 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPropertyDetails)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnimationPropertyDetails` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
pub type AnimationPropertyDetails;
#[doc = "Get the `property` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
#[wasm_bindgen(method, getter = "property")]
pub fn get_property(this: &AnimationPropertyDetails) -> ::alloc::string::String;
#[doc = "Change the `property` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
#[wasm_bindgen(method, setter = "property")]
pub fn set_property(this: &AnimationPropertyDetails, val: &str);
#[doc = "Get the `runningOnCompositor` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
#[wasm_bindgen(method, getter = "runningOnCompositor")]
pub fn get_running_on_compositor(this: &AnimationPropertyDetails) -> bool;
#[doc = "Change the `runningOnCompositor` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
#[wasm_bindgen(method, setter = "runningOnCompositor")]
pub fn set_running_on_compositor(this: &AnimationPropertyDetails, val: bool);
#[doc = "Get the `values` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
#[wasm_bindgen(method, getter = "values")]
pub fn get_values(this: &AnimationPropertyDetails) -> ::js_sys::Array;
#[doc = "Change the `values` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
#[wasm_bindgen(method, setter = "values")]
pub fn set_values(this: &AnimationPropertyDetails, val: &::wasm_bindgen::JsValue);
#[doc = "Get the `warning` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
#[wasm_bindgen(method, getter = "warning")]
pub fn get_warning(this: &AnimationPropertyDetails) -> Option<::alloc::string::String>;
#[doc = "Change the `warning` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
#[wasm_bindgen(method, setter = "warning")]
pub fn set_warning(this: &AnimationPropertyDetails, val: &str);
}
impl AnimationPropertyDetails {
#[doc = "Construct a new `AnimationPropertyDetails`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
pub fn new(
property: &str,
running_on_compositor: bool,
values: &::wasm_bindgen::JsValue,
) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_property(property);
ret.set_running_on_compositor(running_on_compositor);
ret.set_values(values);
ret
}
#[deprecated = "Use `set_property()` instead."]
pub fn property(&mut self, val: &str) -> &mut Self {
self.set_property(val);
self
}
#[deprecated = "Use `set_running_on_compositor()` instead."]
pub fn running_on_compositor(&mut self, val: bool) -> &mut Self {
self.set_running_on_compositor(val);
self
}
#[deprecated = "Use `set_values()` instead."]
pub fn values(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_values(val);
self
}
#[deprecated = "Use `set_warning()` instead."]
pub fn warning(&mut self, val: &str) -> &mut Self {
self.set_warning(val);
self
}
}

View File

@@ -0,0 +1,89 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPropertyValueDetails)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnimationPropertyValueDetails` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"]
pub type AnimationPropertyValueDetails;
#[cfg(feature = "CompositeOperation")]
#[doc = "Get the `composite` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"]
#[wasm_bindgen(method, getter = "composite")]
pub fn get_composite(this: &AnimationPropertyValueDetails) -> CompositeOperation;
#[cfg(feature = "CompositeOperation")]
#[doc = "Change the `composite` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"]
#[wasm_bindgen(method, setter = "composite")]
pub fn set_composite(this: &AnimationPropertyValueDetails, val: CompositeOperation);
#[doc = "Get the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"]
#[wasm_bindgen(method, getter = "easing")]
pub fn get_easing(this: &AnimationPropertyValueDetails) -> Option<::alloc::string::String>;
#[doc = "Change the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"]
#[wasm_bindgen(method, setter = "easing")]
pub fn set_easing(this: &AnimationPropertyValueDetails, val: &str);
#[doc = "Get the `offset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"]
#[wasm_bindgen(method, getter = "offset")]
pub fn get_offset(this: &AnimationPropertyValueDetails) -> f64;
#[doc = "Change the `offset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"]
#[wasm_bindgen(method, setter = "offset")]
pub fn set_offset(this: &AnimationPropertyValueDetails, val: f64);
#[doc = "Get the `value` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"]
#[wasm_bindgen(method, getter = "value")]
pub fn get_value(this: &AnimationPropertyValueDetails) -> Option<::alloc::string::String>;
#[doc = "Change the `value` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"]
#[wasm_bindgen(method, setter = "value")]
pub fn set_value(this: &AnimationPropertyValueDetails, val: &str);
}
impl AnimationPropertyValueDetails {
#[cfg(feature = "CompositeOperation")]
#[doc = "Construct a new `AnimationPropertyValueDetails`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"]
pub fn new(composite: CompositeOperation, offset: f64) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_composite(composite);
ret.set_offset(offset);
ret
}
#[cfg(feature = "CompositeOperation")]
#[deprecated = "Use `set_composite()` instead."]
pub fn composite(&mut self, val: CompositeOperation) -> &mut Self {
self.set_composite(val);
self
}
#[deprecated = "Use `set_easing()` instead."]
pub fn easing(&mut self, val: &str) -> &mut Self {
self.set_easing(val);
self
}
#[deprecated = "Use `set_offset()` instead."]
pub fn offset(&mut self, val: f64) -> &mut Self {
self.set_offset(val);
self
}
#[deprecated = "Use `set_value()` instead."]
pub fn value(&mut self, val: &str) -> &mut Self {
self.set_value(val);
self
}
}

View File

@@ -0,0 +1,22 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationTimeline , typescript_type = "AnimationTimeline")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AnimationTimeline` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationTimeline)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`*"]
pub type AnimationTimeline;
# [wasm_bindgen (structural , method , getter , js_class = "AnimationTimeline" , js_name = currentTime)]
#[doc = "Getter for the `currentTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationTimeline/currentTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`*"]
pub fn current_time(this: &AnimationTimeline) -> Option<f64>;
}

View File

@@ -0,0 +1,43 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AssignedNodesOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AssignedNodesOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"]
pub type AssignedNodesOptions;
#[doc = "Get the `flatten` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"]
#[wasm_bindgen(method, getter = "flatten")]
pub fn get_flatten(this: &AssignedNodesOptions) -> Option<bool>;
#[doc = "Change the `flatten` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"]
#[wasm_bindgen(method, setter = "flatten")]
pub fn set_flatten(this: &AssignedNodesOptions, val: bool);
}
impl AssignedNodesOptions {
#[doc = "Construct a new `AssignedNodesOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_flatten()` instead."]
pub fn flatten(&mut self, val: bool) -> &mut Self {
self.set_flatten(val);
self
}
}
impl Default for AssignedNodesOptions {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,14 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `AttestationConveyancePreference` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AttestationConveyancePreference`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AttestationConveyancePreference {
None = "none",
Indirect = "indirect",
Direct = "direct",
Enterprise = "enterprise",
}

64
vendor/web-sys/src/features/gen_Attr.rs vendored Normal file
View File

@@ -0,0 +1,64 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Attr , typescript_type = "Attr")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `Attr` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`*"]
pub type Attr;
# [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = localName)]
#[doc = "Getter for the `localName` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/localName)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`*"]
pub fn local_name(this: &Attr) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = value)]
#[doc = "Getter for the `value` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`*"]
pub fn value(this: &Attr) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , setter , js_class = "Attr" , js_name = value)]
#[doc = "Setter for the `value` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`*"]
pub fn set_value(this: &Attr, value: &str);
# [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = name)]
#[doc = "Getter for the `name` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/name)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`*"]
pub fn name(this: &Attr) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = namespaceURI)]
#[doc = "Getter for the `namespaceURI` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/namespaceURI)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`*"]
pub fn namespace_uri(this: &Attr) -> Option<::alloc::string::String>;
# [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = prefix)]
#[doc = "Getter for the `prefix` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/prefix)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`*"]
pub fn prefix(this: &Attr) -> Option<::alloc::string::String>;
# [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = specified)]
#[doc = "Getter for the `specified` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/specified)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`*"]
pub fn specified(this: &Attr) -> bool;
}

View File

@@ -0,0 +1,55 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AttributeNameValue)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AttributeNameValue` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"]
pub type AttributeNameValue;
#[doc = "Get the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"]
#[wasm_bindgen(method, getter = "name")]
pub fn get_name(this: &AttributeNameValue) -> ::alloc::string::String;
#[doc = "Change the `name` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"]
#[wasm_bindgen(method, setter = "name")]
pub fn set_name(this: &AttributeNameValue, val: &str);
#[doc = "Get the `value` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"]
#[wasm_bindgen(method, getter = "value")]
pub fn get_value(this: &AttributeNameValue) -> ::alloc::string::String;
#[doc = "Change the `value` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"]
#[wasm_bindgen(method, setter = "value")]
pub fn set_value(this: &AttributeNameValue, val: &str);
}
impl AttributeNameValue {
#[doc = "Construct a new `AttributeNameValue`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"]
pub fn new(name: &str, value: &str) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_name(name);
ret.set_value(value);
ret
}
#[deprecated = "Use `set_name()` instead."]
pub fn name(&mut self, val: &str) -> &mut Self {
self.set_name(val);
self
}
#[deprecated = "Use `set_value()` instead."]
pub fn value(&mut self, val: &str) -> &mut Self {
self.set_value(val);
self
}
}

View File

@@ -0,0 +1,153 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBuffer , typescript_type = "AudioBuffer")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioBuffer` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub type AudioBuffer;
# [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = sampleRate)]
#[doc = "Getter for the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/sampleRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn sample_rate(this: &AudioBuffer) -> f32;
# [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = length)]
#[doc = "Getter for the `length` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/length)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn length(this: &AudioBuffer) -> u32;
# [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = duration)]
#[doc = "Getter for the `duration` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/duration)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn duration(this: &AudioBuffer) -> f64;
# [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = numberOfChannels)]
#[doc = "Getter for the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/numberOfChannels)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn number_of_channels(this: &AudioBuffer) -> u32;
#[cfg(feature = "AudioBufferOptions")]
#[wasm_bindgen(catch, constructor, js_class = "AudioBuffer")]
#[doc = "The `new AudioBuffer(..)` constructor, creating a new instance of `AudioBuffer`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/AudioBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferOptions`*"]
pub fn new(options: &AudioBufferOptions) -> Result<AudioBuffer, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel)]
#[doc = "The `copyFromChannel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn copy_from_channel(
this: &AudioBuffer,
destination: &mut [f32],
channel_number: i32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel)]
#[doc = "The `copyFromChannel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn copy_from_channel_with_f32_array(
this: &AudioBuffer,
destination: &::js_sys::Float32Array,
channel_number: i32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel)]
#[doc = "The `copyFromChannel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn copy_from_channel_with_start_in_channel(
this: &AudioBuffer,
destination: &mut [f32],
channel_number: i32,
start_in_channel: u32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel)]
#[doc = "The `copyFromChannel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn copy_from_channel_with_f32_array_and_start_in_channel(
this: &AudioBuffer,
destination: &::js_sys::Float32Array,
channel_number: i32,
start_in_channel: u32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel)]
#[doc = "The `copyToChannel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn copy_to_channel(
this: &AudioBuffer,
source: &[f32],
channel_number: i32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel)]
#[doc = "The `copyToChannel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn copy_to_channel_with_f32_array(
this: &AudioBuffer,
source: &::js_sys::Float32Array,
channel_number: i32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel)]
#[doc = "The `copyToChannel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn copy_to_channel_with_start_in_channel(
this: &AudioBuffer,
source: &[f32],
channel_number: i32,
start_in_channel: u32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel)]
#[doc = "The `copyToChannel()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn copy_to_channel_with_f32_array_and_start_in_channel(
this: &AudioBuffer,
source: &::js_sys::Float32Array,
channel_number: i32,
start_in_channel: u32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = getChannelData)]
#[doc = "The `getChannelData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/getChannelData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"]
pub fn get_channel_data(
this: &AudioBuffer,
channel: u32,
) -> Result<::alloc::vec::Vec<f32>, JsValue>;
}

View File

@@ -0,0 +1,70 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBufferOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioBufferOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"]
pub type AudioBufferOptions;
#[doc = "Get the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"]
#[wasm_bindgen(method, getter = "length")]
pub fn get_length(this: &AudioBufferOptions) -> u32;
#[doc = "Change the `length` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"]
#[wasm_bindgen(method, setter = "length")]
pub fn set_length(this: &AudioBufferOptions, val: u32);
#[doc = "Get the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"]
#[wasm_bindgen(method, getter = "numberOfChannels")]
pub fn get_number_of_channels(this: &AudioBufferOptions) -> Option<u32>;
#[doc = "Change the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"]
#[wasm_bindgen(method, setter = "numberOfChannels")]
pub fn set_number_of_channels(this: &AudioBufferOptions, val: u32);
#[doc = "Get the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"]
#[wasm_bindgen(method, getter = "sampleRate")]
pub fn get_sample_rate(this: &AudioBufferOptions) -> f32;
#[doc = "Change the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"]
#[wasm_bindgen(method, setter = "sampleRate")]
pub fn set_sample_rate(this: &AudioBufferOptions, val: f32);
}
impl AudioBufferOptions {
#[doc = "Construct a new `AudioBufferOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"]
pub fn new(length: u32, sample_rate: f32) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_length(length);
ret.set_sample_rate(sample_rate);
ret
}
#[deprecated = "Use `set_length()` instead."]
pub fn length(&mut self, val: u32) -> &mut Self {
self.set_length(val);
self
}
#[deprecated = "Use `set_number_of_channels()` instead."]
pub fn number_of_channels(&mut self, val: u32) -> &mut Self {
self.set_number_of_channels(val);
self
}
#[deprecated = "Use `set_sample_rate()` instead."]
pub fn sample_rate(&mut self, val: f32) -> &mut Self {
self.set_sample_rate(val);
self
}
}

View File

@@ -0,0 +1,177 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioBufferSourceNode , typescript_type = "AudioBufferSourceNode")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioBufferSourceNode` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub type AudioBufferSourceNode;
#[cfg(feature = "AudioBuffer")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = buffer)]
#[doc = "Getter for the `buffer` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceNode`*"]
pub fn buffer(this: &AudioBufferSourceNode) -> Option<AudioBuffer>;
#[cfg(feature = "AudioBuffer")]
# [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = buffer)]
#[doc = "Setter for the `buffer` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceNode`*"]
pub fn set_buffer(this: &AudioBufferSourceNode, value: Option<&AudioBuffer>);
#[cfg(feature = "AudioParam")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = playbackRate)]
#[doc = "Getter for the `playbackRate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/playbackRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioParam`*"]
pub fn playback_rate(this: &AudioBufferSourceNode) -> AudioParam;
#[cfg(feature = "AudioParam")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = detune)]
#[doc = "Getter for the `detune` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/detune)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioParam`*"]
pub fn detune(this: &AudioBufferSourceNode) -> AudioParam;
# [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loop)]
#[doc = "Getter for the `loop` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn loop_(this: &AudioBufferSourceNode) -> bool;
# [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loop)]
#[doc = "Setter for the `loop` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn set_loop(this: &AudioBufferSourceNode, value: bool);
# [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loopStart)]
#[doc = "Getter for the `loopStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn loop_start(this: &AudioBufferSourceNode) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loopStart)]
#[doc = "Setter for the `loopStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn set_loop_start(this: &AudioBufferSourceNode, value: f64);
# [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loopEnd)]
#[doc = "Getter for the `loopEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn loop_end(this: &AudioBufferSourceNode) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loopEnd)]
#[doc = "Setter for the `loopEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn set_loop_end(this: &AudioBufferSourceNode, value: f64);
# [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = onended)]
#[doc = "Getter for the `onended` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/onended)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
#[deprecated]
pub fn onended(this: &AudioBufferSourceNode) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = onended)]
#[doc = "Setter for the `onended` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/onended)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
#[deprecated]
pub fn set_onended(this: &AudioBufferSourceNode, value: Option<&::js_sys::Function>);
#[cfg(feature = "BaseAudioContext")]
#[wasm_bindgen(catch, constructor, js_class = "AudioBufferSourceNode")]
#[doc = "The `new AudioBufferSourceNode(..)` constructor, creating a new instance of `AudioBufferSourceNode`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/AudioBufferSourceNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `BaseAudioContext`*"]
pub fn new(context: &BaseAudioContext) -> Result<AudioBufferSourceNode, JsValue>;
#[cfg(all(feature = "AudioBufferSourceOptions", feature = "BaseAudioContext",))]
#[wasm_bindgen(catch, constructor, js_class = "AudioBufferSourceNode")]
#[doc = "The `new AudioBufferSourceNode(..)` constructor, creating a new instance of `AudioBufferSourceNode`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/AudioBufferSourceNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioBufferSourceOptions`, `BaseAudioContext`*"]
pub fn new_with_options(
context: &BaseAudioContext,
options: &AudioBufferSourceOptions,
) -> Result<AudioBufferSourceNode, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)]
#[doc = "The `start()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn start(this: &AudioBufferSourceNode) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)]
#[doc = "The `start()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn start_with_when(this: &AudioBufferSourceNode, when: f64) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)]
#[doc = "The `start()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn start_with_when_and_grain_offset(
this: &AudioBufferSourceNode,
when: f64,
offset: f64,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)]
#[doc = "The `start()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
pub fn start_with_when_and_grain_offset_and_grain_duration(
this: &AudioBufferSourceNode,
when: f64,
offset: f64,
duration: f64,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = stop)]
#[doc = "The `stop()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/stop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
#[deprecated]
pub fn stop(this: &AudioBufferSourceNode) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = stop)]
#[doc = "The `stop()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/stop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"]
#[deprecated]
pub fn stop_with_when(this: &AudioBufferSourceNode, when: f64) -> Result<(), JsValue>;
}

View File

@@ -0,0 +1,121 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBufferSourceOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioBufferSourceOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
pub type AudioBufferSourceOptions;
#[cfg(feature = "AudioBuffer")]
#[doc = "Get the `buffer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, getter = "buffer")]
pub fn get_buffer(this: &AudioBufferSourceOptions) -> Option<AudioBuffer>;
#[cfg(feature = "AudioBuffer")]
#[doc = "Change the `buffer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, setter = "buffer")]
pub fn set_buffer(this: &AudioBufferSourceOptions, val: Option<&AudioBuffer>);
#[doc = "Get the `detune` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, getter = "detune")]
pub fn get_detune(this: &AudioBufferSourceOptions) -> Option<f32>;
#[doc = "Change the `detune` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, setter = "detune")]
pub fn set_detune(this: &AudioBufferSourceOptions, val: f32);
#[doc = "Get the `loop` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, getter = "loop")]
pub fn get_loop(this: &AudioBufferSourceOptions) -> Option<bool>;
#[doc = "Change the `loop` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, setter = "loop")]
pub fn set_loop(this: &AudioBufferSourceOptions, val: bool);
#[doc = "Get the `loopEnd` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, getter = "loopEnd")]
pub fn get_loop_end(this: &AudioBufferSourceOptions) -> Option<f64>;
#[doc = "Change the `loopEnd` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, setter = "loopEnd")]
pub fn set_loop_end(this: &AudioBufferSourceOptions, val: f64);
#[doc = "Get the `loopStart` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, getter = "loopStart")]
pub fn get_loop_start(this: &AudioBufferSourceOptions) -> Option<f64>;
#[doc = "Change the `loopStart` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, setter = "loopStart")]
pub fn set_loop_start(this: &AudioBufferSourceOptions, val: f64);
#[doc = "Get the `playbackRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, getter = "playbackRate")]
pub fn get_playback_rate(this: &AudioBufferSourceOptions) -> Option<f32>;
#[doc = "Change the `playbackRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
#[wasm_bindgen(method, setter = "playbackRate")]
pub fn set_playback_rate(this: &AudioBufferSourceOptions, val: f32);
}
impl AudioBufferSourceOptions {
#[doc = "Construct a new `AudioBufferSourceOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(feature = "AudioBuffer")]
#[deprecated = "Use `set_buffer()` instead."]
pub fn buffer(&mut self, val: Option<&AudioBuffer>) -> &mut Self {
self.set_buffer(val);
self
}
#[deprecated = "Use `set_detune()` instead."]
pub fn detune(&mut self, val: f32) -> &mut Self {
self.set_detune(val);
self
}
#[deprecated = "Use `set_loop()` instead."]
pub fn loop_(&mut self, val: bool) -> &mut Self {
self.set_loop(val);
self
}
#[deprecated = "Use `set_loop_end()` instead."]
pub fn loop_end(&mut self, val: f64) -> &mut Self {
self.set_loop_end(val);
self
}
#[deprecated = "Use `set_loop_start()` instead."]
pub fn loop_start(&mut self, val: f64) -> &mut Self {
self.set_loop_start(val);
self
}
#[deprecated = "Use `set_playback_rate()` instead."]
pub fn playback_rate(&mut self, val: f32) -> &mut Self {
self.set_playback_rate(val);
self
}
}
impl Default for AudioBufferSourceOptions {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,88 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioConfiguration)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioConfiguration` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
pub type AudioConfiguration;
#[doc = "Get the `bitrate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
#[wasm_bindgen(method, getter = "bitrate")]
pub fn get_bitrate(this: &AudioConfiguration) -> Option<f64>;
#[doc = "Change the `bitrate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
#[wasm_bindgen(method, setter = "bitrate")]
pub fn set_bitrate(this: &AudioConfiguration, val: f64);
#[doc = "Get the `channels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
#[wasm_bindgen(method, getter = "channels")]
pub fn get_channels(this: &AudioConfiguration) -> Option<::alloc::string::String>;
#[doc = "Change the `channels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
#[wasm_bindgen(method, setter = "channels")]
pub fn set_channels(this: &AudioConfiguration, val: &str);
#[doc = "Get the `contentType` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
#[wasm_bindgen(method, getter = "contentType")]
pub fn get_content_type(this: &AudioConfiguration) -> Option<::alloc::string::String>;
#[doc = "Change the `contentType` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
#[wasm_bindgen(method, setter = "contentType")]
pub fn set_content_type(this: &AudioConfiguration, val: &str);
#[doc = "Get the `samplerate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
#[wasm_bindgen(method, getter = "samplerate")]
pub fn get_samplerate(this: &AudioConfiguration) -> Option<u32>;
#[doc = "Change the `samplerate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
#[wasm_bindgen(method, setter = "samplerate")]
pub fn set_samplerate(this: &AudioConfiguration, val: u32);
}
impl AudioConfiguration {
#[doc = "Construct a new `AudioConfiguration`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_bitrate()` instead."]
pub fn bitrate(&mut self, val: f64) -> &mut Self {
self.set_bitrate(val);
self
}
#[deprecated = "Use `set_channels()` instead."]
pub fn channels(&mut self, val: &str) -> &mut Self {
self.set_channels(val);
self
}
#[deprecated = "Use `set_content_type()` instead."]
pub fn content_type(&mut self, val: &str) -> &mut Self {
self.set_content_type(val);
self
}
#[deprecated = "Use `set_samplerate()` instead."]
pub fn samplerate(&mut self, val: u32) -> &mut Self {
self.set_samplerate(val);
self
}
}
impl Default for AudioConfiguration {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,553 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (vendor_prefix = webkit , extends = BaseAudioContext , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioContext , typescript_type = "AudioContext")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioContext` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub type AudioContext;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = sinkId)]
#[doc = "Getter for the `sinkId` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sinkId)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn sink_id(this: &AudioContext) -> ::wasm_bindgen::JsValue;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = onsinkchange)]
#[doc = "Getter for the `onsinkchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onsinkchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn onsinkchange(this: &AudioContext) -> Option<::js_sys::Function>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , setter , js_class = "AudioContext" , js_name = onsinkchange)]
#[doc = "Setter for the `onsinkchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onsinkchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_onsinkchange(this: &AudioContext, value: Option<&::js_sys::Function>);
#[cfg(feature = "AudioDestinationNode")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = destination)]
#[doc = "Getter for the `destination` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/destination)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioDestinationNode`*"]
pub fn destination(this: &AudioContext) -> AudioDestinationNode;
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = sampleRate)]
#[doc = "Getter for the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sampleRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn sample_rate(this: &AudioContext) -> f32;
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = currentTime)]
#[doc = "Getter for the `currentTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/currentTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn current_time(this: &AudioContext) -> f64;
#[cfg(feature = "AudioListener")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = listener)]
#[doc = "Getter for the `listener` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/listener)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioListener`*"]
pub fn listener(this: &AudioContext) -> AudioListener;
#[cfg(feature = "AudioContextState")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = state)]
#[doc = "Getter for the `state` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/state)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioContextState`*"]
pub fn state(this: &AudioContext) -> AudioContextState;
#[cfg(feature = "AudioWorklet")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "AudioContext" , js_name = audioWorklet)]
#[doc = "Getter for the `audioWorklet` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/audioWorklet)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioWorklet`*"]
pub fn audio_worklet(this: &AudioContext) -> Result<AudioWorklet, JsValue>;
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = onstatechange)]
#[doc = "Getter for the `onstatechange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onstatechange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn onstatechange(this: &AudioContext) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "AudioContext" , js_name = onstatechange)]
#[doc = "Setter for the `onstatechange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onstatechange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn set_onstatechange(this: &AudioContext, value: Option<&::js_sys::Function>);
#[wasm_bindgen(catch, constructor, js_class = "AudioContext")]
#[doc = "The `new AudioContext(..)` constructor, creating a new instance of `AudioContext`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn new() -> Result<AudioContext, JsValue>;
#[cfg(feature = "AudioContextOptions")]
#[wasm_bindgen(catch, constructor, js_class = "AudioContext")]
#[doc = "The `new AudioContext(..)` constructor, creating a new instance of `AudioContext`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioContextOptions`*"]
pub fn new_with_context_options(
context_options: &AudioContextOptions,
) -> Result<AudioContext, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = close)]
#[doc = "The `close()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/close)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn close(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>;
#[cfg(all(feature = "HtmlMediaElement", feature = "MediaElementAudioSourceNode",))]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaElementSource)]
#[doc = "The `createMediaElementSource()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaElementSource)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `HtmlMediaElement`, `MediaElementAudioSourceNode`*"]
pub fn create_media_element_source(
this: &AudioContext,
media_element: &HtmlMediaElement,
) -> Result<MediaElementAudioSourceNode, JsValue>;
#[cfg(feature = "MediaStreamAudioDestinationNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaStreamDestination)]
#[doc = "The `createMediaStreamDestination()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamDestination)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStreamAudioDestinationNode`*"]
pub fn create_media_stream_destination(
this: &AudioContext,
) -> Result<MediaStreamAudioDestinationNode, JsValue>;
#[cfg(all(feature = "MediaStream", feature = "MediaStreamAudioSourceNode",))]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaStreamSource)]
#[doc = "The `createMediaStreamSource()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamSource)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStream`, `MediaStreamAudioSourceNode`*"]
pub fn create_media_stream_source(
this: &AudioContext,
media_stream: &MediaStream,
) -> Result<MediaStreamAudioSourceNode, JsValue>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (method , structural , js_class = "AudioContext" , js_name = setSinkId)]
#[doc = "The `setSinkId()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_sink_id_with_str(this: &AudioContext, sink_id: &str) -> ::js_sys::Promise;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSinkOptions")]
# [wasm_bindgen (method , structural , js_class = "AudioContext" , js_name = setSinkId)]
#[doc = "The `setSinkId()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioSinkOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_sink_id_with_audio_sink_options(
this: &AudioContext,
sink_id: &AudioSinkOptions,
) -> ::js_sys::Promise;
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = suspend)]
#[doc = "The `suspend()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/suspend)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn suspend(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>;
#[cfg(feature = "AnalyserNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createAnalyser)]
#[doc = "The `createAnalyser()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createAnalyser)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `AudioContext`*"]
pub fn create_analyser(this: &AudioContext) -> Result<AnalyserNode, JsValue>;
#[cfg(feature = "BiquadFilterNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBiquadFilter)]
#[doc = "The `createBiquadFilter()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBiquadFilter)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `BiquadFilterNode`*"]
pub fn create_biquad_filter(this: &AudioContext) -> Result<BiquadFilterNode, JsValue>;
#[cfg(feature = "AudioBuffer")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBuffer)]
#[doc = "The `createBuffer()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioContext`*"]
pub fn create_buffer(
this: &AudioContext,
number_of_channels: u32,
length: u32,
sample_rate: f32,
) -> Result<AudioBuffer, JsValue>;
#[cfg(feature = "AudioBufferSourceNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBufferSource)]
#[doc = "The `createBufferSource()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBufferSource)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioContext`*"]
pub fn create_buffer_source(this: &AudioContext) -> Result<AudioBufferSourceNode, JsValue>;
#[cfg(feature = "ChannelMergerNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelMerger)]
#[doc = "The `createChannelMerger()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelMerger)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelMergerNode`*"]
pub fn create_channel_merger(this: &AudioContext) -> Result<ChannelMergerNode, JsValue>;
#[cfg(feature = "ChannelMergerNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelMerger)]
#[doc = "The `createChannelMerger()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelMerger)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelMergerNode`*"]
pub fn create_channel_merger_with_number_of_inputs(
this: &AudioContext,
number_of_inputs: u32,
) -> Result<ChannelMergerNode, JsValue>;
#[cfg(feature = "ChannelSplitterNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelSplitter)]
#[doc = "The `createChannelSplitter()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelSplitter)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelSplitterNode`*"]
pub fn create_channel_splitter(this: &AudioContext) -> Result<ChannelSplitterNode, JsValue>;
#[cfg(feature = "ChannelSplitterNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelSplitter)]
#[doc = "The `createChannelSplitter()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelSplitter)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelSplitterNode`*"]
pub fn create_channel_splitter_with_number_of_outputs(
this: &AudioContext,
number_of_outputs: u32,
) -> Result<ChannelSplitterNode, JsValue>;
#[cfg(feature = "ConstantSourceNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createConstantSource)]
#[doc = "The `createConstantSource()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createConstantSource)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ConstantSourceNode`*"]
pub fn create_constant_source(this: &AudioContext) -> Result<ConstantSourceNode, JsValue>;
#[cfg(feature = "ConvolverNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createConvolver)]
#[doc = "The `createConvolver()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createConvolver)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ConvolverNode`*"]
pub fn create_convolver(this: &AudioContext) -> Result<ConvolverNode, JsValue>;
#[cfg(feature = "DelayNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDelay)]
#[doc = "The `createDelay()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDelay)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DelayNode`*"]
pub fn create_delay(this: &AudioContext) -> Result<DelayNode, JsValue>;
#[cfg(feature = "DelayNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDelay)]
#[doc = "The `createDelay()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDelay)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DelayNode`*"]
pub fn create_delay_with_max_delay_time(
this: &AudioContext,
max_delay_time: f64,
) -> Result<DelayNode, JsValue>;
#[cfg(feature = "DynamicsCompressorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDynamicsCompressor)]
#[doc = "The `createDynamicsCompressor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDynamicsCompressor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DynamicsCompressorNode`*"]
pub fn create_dynamics_compressor(
this: &AudioContext,
) -> Result<DynamicsCompressorNode, JsValue>;
#[cfg(feature = "GainNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createGain)]
#[doc = "The `createGain()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createGain)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `GainNode`*"]
pub fn create_gain(this: &AudioContext) -> Result<GainNode, JsValue>;
#[cfg(feature = "IirFilterNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createIIRFilter)]
#[doc = "The `createIIRFilter()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createIIRFilter)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `IirFilterNode`*"]
pub fn create_iir_filter(
this: &AudioContext,
feedforward: &::wasm_bindgen::JsValue,
feedback: &::wasm_bindgen::JsValue,
) -> Result<IirFilterNode, JsValue>;
#[cfg(feature = "OscillatorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createOscillator)]
#[doc = "The `createOscillator()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createOscillator)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `OscillatorNode`*"]
pub fn create_oscillator(this: &AudioContext) -> Result<OscillatorNode, JsValue>;
#[cfg(feature = "PannerNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPanner)]
#[doc = "The `createPanner()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPanner)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PannerNode`*"]
pub fn create_panner(this: &AudioContext) -> Result<PannerNode, JsValue>;
#[cfg(feature = "PeriodicWave")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`*"]
pub fn create_periodic_wave(
this: &AudioContext,
real: &mut [f32],
imag: &mut [f32],
) -> Result<PeriodicWave, JsValue>;
#[cfg(feature = "PeriodicWave")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`*"]
pub fn create_periodic_wave_with_f32_array_and_f32_slice(
this: &AudioContext,
real: &::js_sys::Float32Array,
imag: &mut [f32],
) -> Result<PeriodicWave, JsValue>;
#[cfg(feature = "PeriodicWave")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`*"]
pub fn create_periodic_wave_with_f32_slice_and_f32_array(
this: &AudioContext,
real: &mut [f32],
imag: &::js_sys::Float32Array,
) -> Result<PeriodicWave, JsValue>;
#[cfg(feature = "PeriodicWave")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`*"]
pub fn create_periodic_wave_with_f32_array_and_f32_array(
this: &AudioContext,
real: &::js_sys::Float32Array,
imag: &::js_sys::Float32Array,
) -> Result<PeriodicWave, JsValue>;
#[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"]
pub fn create_periodic_wave_with_constraints(
this: &AudioContext,
real: &mut [f32],
imag: &mut [f32],
constraints: &PeriodicWaveConstraints,
) -> Result<PeriodicWave, JsValue>;
#[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"]
pub fn create_periodic_wave_with_f32_array_and_f32_slice_and_constraints(
this: &AudioContext,
real: &::js_sys::Float32Array,
imag: &mut [f32],
constraints: &PeriodicWaveConstraints,
) -> Result<PeriodicWave, JsValue>;
#[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"]
pub fn create_periodic_wave_with_f32_slice_and_f32_array_and_constraints(
this: &AudioContext,
real: &mut [f32],
imag: &::js_sys::Float32Array,
constraints: &PeriodicWaveConstraints,
) -> Result<PeriodicWave, JsValue>;
#[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"]
pub fn create_periodic_wave_with_f32_array_and_f32_array_and_constraints(
this: &AudioContext,
real: &::js_sys::Float32Array,
imag: &::js_sys::Float32Array,
constraints: &PeriodicWaveConstraints,
) -> Result<PeriodicWave, JsValue>;
#[cfg(feature = "ScriptProcessorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)]
#[doc = "The `createScriptProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"]
pub fn create_script_processor(this: &AudioContext) -> Result<ScriptProcessorNode, JsValue>;
#[cfg(feature = "ScriptProcessorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)]
#[doc = "The `createScriptProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"]
pub fn create_script_processor_with_buffer_size(
this: &AudioContext,
buffer_size: u32,
) -> Result<ScriptProcessorNode, JsValue>;
#[cfg(feature = "ScriptProcessorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)]
#[doc = "The `createScriptProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"]
pub fn create_script_processor_with_buffer_size_and_number_of_input_channels(
this: &AudioContext,
buffer_size: u32,
number_of_input_channels: u32,
) -> Result<ScriptProcessorNode, JsValue>;
#[cfg(feature = "ScriptProcessorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)]
#[doc = "The `createScriptProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"]
pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels(
this: &AudioContext,
buffer_size: u32,
number_of_input_channels: u32,
number_of_output_channels: u32,
) -> Result<ScriptProcessorNode, JsValue>;
#[cfg(feature = "StereoPannerNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createStereoPanner)]
#[doc = "The `createStereoPanner()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createStereoPanner)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `StereoPannerNode`*"]
pub fn create_stereo_panner(this: &AudioContext) -> Result<StereoPannerNode, JsValue>;
#[cfg(feature = "WaveShaperNode")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createWaveShaper)]
#[doc = "The `createWaveShaper()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createWaveShaper)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`, `WaveShaperNode`*"]
pub fn create_wave_shaper(this: &AudioContext) -> Result<WaveShaperNode, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)]
#[doc = "The `decodeAudioData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn decode_audio_data(
this: &AudioContext,
audio_data: &::js_sys::ArrayBuffer,
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)]
#[doc = "The `decodeAudioData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn decode_audio_data_with_success_callback(
this: &AudioContext,
audio_data: &::js_sys::ArrayBuffer,
success_callback: &::js_sys::Function,
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)]
#[doc = "The `decodeAudioData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn decode_audio_data_with_success_callback_and_error_callback(
this: &AudioContext,
audio_data: &::js_sys::ArrayBuffer,
success_callback: &::js_sys::Function,
error_callback: &::js_sys::Function,
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = resume)]
#[doc = "The `resume()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/resume)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub fn resume(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>;
}

View File

@@ -0,0 +1,13 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `AudioContextLatencyCategory` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextLatencyCategory`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AudioContextLatencyCategory {
Balanced = "balanced",
Interactive = "interactive",
Playback = "playback",
}

View File

@@ -0,0 +1,82 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioContextOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioContextOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
pub type AudioContextOptions;
#[doc = "Get the `latencyHint` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
#[wasm_bindgen(method, getter = "latencyHint")]
pub fn get_latency_hint(this: &AudioContextOptions) -> ::wasm_bindgen::JsValue;
#[doc = "Change the `latencyHint` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
#[wasm_bindgen(method, setter = "latencyHint")]
pub fn set_latency_hint(this: &AudioContextOptions, val: &::wasm_bindgen::JsValue);
#[doc = "Get the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
#[wasm_bindgen(method, getter = "sampleRate")]
pub fn get_sample_rate(this: &AudioContextOptions) -> Option<f32>;
#[doc = "Change the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
#[wasm_bindgen(method, setter = "sampleRate")]
pub fn set_sample_rate(this: &AudioContextOptions, val: f32);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `sinkId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "sinkId")]
pub fn get_sink_id(this: &AudioContextOptions) -> ::wasm_bindgen::JsValue;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `sinkId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "sinkId")]
pub fn set_sink_id(this: &AudioContextOptions, val: &::wasm_bindgen::JsValue);
}
impl AudioContextOptions {
#[doc = "Construct a new `AudioContextOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_latency_hint()` instead."]
pub fn latency_hint(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_latency_hint(val);
self
}
#[deprecated = "Use `set_sample_rate()` instead."]
pub fn sample_rate(&mut self, val: f32) -> &mut Self {
self.set_sample_rate(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_sink_id()` instead."]
pub fn sink_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_sink_id(val);
self
}
}
impl Default for AudioContextOptions {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,13 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `AudioContextState` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextState`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AudioContextState {
Suspended = "suspended",
Running = "running",
Closed = "closed",
}

View File

@@ -0,0 +1,183 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioData , typescript_type = "AudioData")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioData` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioData;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSampleFormat")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = format)]
#[doc = "Getter for the `format` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/format)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioSampleFormat`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn format(this: &AudioData) -> Option<AudioSampleFormat>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = sampleRate)]
#[doc = "Getter for the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/sampleRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn sample_rate(this: &AudioData) -> f32;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = numberOfFrames)]
#[doc = "Getter for the `numberOfFrames` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/numberOfFrames)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn number_of_frames(this: &AudioData) -> u32;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = numberOfChannels)]
#[doc = "Getter for the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/numberOfChannels)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn number_of_channels(this: &AudioData) -> u32;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = duration)]
#[doc = "Getter for the `duration` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/duration)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn duration(this: &AudioData) -> f64;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = timestamp)]
#[doc = "Getter for the `timestamp` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/timestamp)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn timestamp(this: &AudioData) -> f64;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDataInit")]
#[wasm_bindgen(catch, constructor, js_class = "AudioData")]
#[doc = "The `new AudioData(..)` constructor, creating a new instance of `AudioData`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/AudioData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(init: &AudioDataInit) -> Result<AudioData, JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDataCopyToOptions")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = allocationSize)]
#[doc = "The `allocationSize()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/allocationSize)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn allocation_size(
this: &AudioData,
options: &AudioDataCopyToOptions,
) -> Result<u32, JsValue>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = clone)]
#[doc = "The `clone()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/clone)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn clone(this: &AudioData) -> Result<AudioData, JsValue>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (method , structural , js_class = "AudioData" , js_name = close)]
#[doc = "The `close()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/close)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn close(this: &AudioData);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDataCopyToOptions")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = copyTo)]
#[doc = "The `copyTo()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/copyTo)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn copy_to_with_buffer_source(
this: &AudioData,
destination: &::js_sys::Object,
options: &AudioDataCopyToOptions,
) -> Result<(), JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDataCopyToOptions")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = copyTo)]
#[doc = "The `copyTo()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/copyTo)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn copy_to_with_u8_slice(
this: &AudioData,
destination: &mut [u8],
options: &AudioDataCopyToOptions,
) -> Result<(), JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDataCopyToOptions")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = copyTo)]
#[doc = "The `copyTo()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/copyTo)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn copy_to_with_u8_array(
this: &AudioData,
destination: &::js_sys::Uint8Array,
options: &AudioDataCopyToOptions,
) -> Result<(), JsValue>;
}

View File

@@ -0,0 +1,131 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDataCopyToOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioDataCopyToOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioDataCopyToOptions;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSampleFormat")]
#[doc = "Get the `format` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`, `AudioSampleFormat`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "format")]
pub fn get_format(this: &AudioDataCopyToOptions) -> Option<AudioSampleFormat>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSampleFormat")]
#[doc = "Change the `format` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`, `AudioSampleFormat`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "format")]
pub fn set_format(this: &AudioDataCopyToOptions, val: AudioSampleFormat);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `frameCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "frameCount")]
pub fn get_frame_count(this: &AudioDataCopyToOptions) -> Option<u32>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `frameCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "frameCount")]
pub fn set_frame_count(this: &AudioDataCopyToOptions, val: u32);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `frameOffset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "frameOffset")]
pub fn get_frame_offset(this: &AudioDataCopyToOptions) -> Option<u32>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `frameOffset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "frameOffset")]
pub fn set_frame_offset(this: &AudioDataCopyToOptions, val: u32);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `planeIndex` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "planeIndex")]
pub fn get_plane_index(this: &AudioDataCopyToOptions) -> u32;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `planeIndex` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "planeIndex")]
pub fn set_plane_index(this: &AudioDataCopyToOptions, val: u32);
}
#[cfg(web_sys_unstable_apis)]
impl AudioDataCopyToOptions {
#[doc = "Construct a new `AudioDataCopyToOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(plane_index: u32) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_plane_index(plane_index);
ret
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSampleFormat")]
#[deprecated = "Use `set_format()` instead."]
pub fn format(&mut self, val: AudioSampleFormat) -> &mut Self {
self.set_format(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_frame_count()` instead."]
pub fn frame_count(&mut self, val: u32) -> &mut Self {
self.set_frame_count(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_frame_offset()` instead."]
pub fn frame_offset(&mut self, val: u32) -> &mut Self {
self.set_frame_offset(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_plane_index()` instead."]
pub fn plane_index(&mut self, val: u32) -> &mut Self {
self.set_plane_index(val);
self
}
}

View File

@@ -0,0 +1,192 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDataInit)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioDataInit` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioDataInit;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `data` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "data")]
pub fn get_data(this: &AudioDataInit) -> ::js_sys::Object;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `data` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "data")]
pub fn set_data(this: &AudioDataInit, val: &::js_sys::Object);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSampleFormat")]
#[doc = "Get the `format` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`, `AudioSampleFormat`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "format")]
pub fn get_format(this: &AudioDataInit) -> AudioSampleFormat;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSampleFormat")]
#[doc = "Change the `format` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`, `AudioSampleFormat`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "format")]
pub fn set_format(this: &AudioDataInit, val: AudioSampleFormat);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "numberOfChannels")]
pub fn get_number_of_channels(this: &AudioDataInit) -> u32;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "numberOfChannels")]
pub fn set_number_of_channels(this: &AudioDataInit, val: u32);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `numberOfFrames` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "numberOfFrames")]
pub fn get_number_of_frames(this: &AudioDataInit) -> u32;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `numberOfFrames` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "numberOfFrames")]
pub fn set_number_of_frames(this: &AudioDataInit, val: u32);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "sampleRate")]
pub fn get_sample_rate(this: &AudioDataInit) -> f32;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "sampleRate")]
pub fn set_sample_rate(this: &AudioDataInit, val: f32);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `timestamp` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "timestamp")]
pub fn get_timestamp(this: &AudioDataInit) -> f64;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `timestamp` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "timestamp")]
pub fn set_timestamp(this: &AudioDataInit, val: f64);
}
#[cfg(web_sys_unstable_apis)]
impl AudioDataInit {
#[cfg(feature = "AudioSampleFormat")]
#[doc = "Construct a new `AudioDataInit`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`, `AudioSampleFormat`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(
data: &::js_sys::Object,
format: AudioSampleFormat,
number_of_channels: u32,
number_of_frames: u32,
sample_rate: f32,
timestamp: f64,
) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_data(data);
ret.set_format(format);
ret.set_number_of_channels(number_of_channels);
ret.set_number_of_frames(number_of_frames);
ret.set_sample_rate(sample_rate);
ret.set_timestamp(timestamp);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_data()` instead."]
pub fn data(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_data(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSampleFormat")]
#[deprecated = "Use `set_format()` instead."]
pub fn format(&mut self, val: AudioSampleFormat) -> &mut Self {
self.set_format(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_number_of_channels()` instead."]
pub fn number_of_channels(&mut self, val: u32) -> &mut Self {
self.set_number_of_channels(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_number_of_frames()` instead."]
pub fn number_of_frames(&mut self, val: u32) -> &mut Self {
self.set_number_of_frames(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_sample_rate()` instead."]
pub fn sample_rate(&mut self, val: f32) -> &mut Self {
self.set_sample_rate(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_timestamp()` instead."]
pub fn timestamp(&mut self, val: f64) -> &mut Self {
self.set_timestamp(val);
self
}
}

View File

@@ -0,0 +1,123 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoder , typescript_type = "AudioDecoder")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioDecoder` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioDecoder;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "CodecState")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioDecoder" , js_name = state)]
#[doc = "Getter for the `state` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/state)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `CodecState`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn state(this: &AudioDecoder) -> CodecState;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioDecoder" , js_name = decodeQueueSize)]
#[doc = "Getter for the `decodeQueueSize` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/decodeQueueSize)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn decode_queue_size(this: &AudioDecoder) -> u32;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDecoderInit")]
#[wasm_bindgen(catch, constructor, js_class = "AudioDecoder")]
#[doc = "The `new AudioDecoder(..)` constructor, creating a new instance of `AudioDecoder`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/AudioDecoder)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `AudioDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(init: &AudioDecoderInit) -> Result<AudioDecoder, JsValue>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (catch , method , structural , js_class = "AudioDecoder" , js_name = close)]
#[doc = "The `close()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/close)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn close(this: &AudioDecoder) -> Result<(), JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDecoderConfig")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioDecoder" , js_name = configure)]
#[doc = "The `configure()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/configure)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn configure(this: &AudioDecoder, config: &AudioDecoderConfig) -> Result<(), JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "EncodedAudioChunk")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioDecoder" , js_name = decode)]
#[doc = "The `decode()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/decode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `EncodedAudioChunk`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn decode(this: &AudioDecoder, chunk: &EncodedAudioChunk) -> Result<(), JsValue>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (method , structural , js_class = "AudioDecoder" , js_name = flush)]
#[doc = "The `flush()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/flush)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn flush(this: &AudioDecoder) -> ::js_sys::Promise;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDecoderConfig")]
# [wasm_bindgen (static_method_of = AudioDecoder , js_class = "AudioDecoder" , js_name = isConfigSupported)]
#[doc = "The `isConfigSupported()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/isConfigSupported_static)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn is_config_supported(config: &AudioDecoderConfig) -> ::js_sys::Promise;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (catch , method , structural , js_class = "AudioDecoder" , js_name = reset)]
#[doc = "The `reset()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/reset)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn reset(this: &AudioDecoder) -> Result<(), JsValue>;
}

View File

@@ -0,0 +1,130 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderConfig)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioDecoderConfig` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioDecoderConfig;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `codec` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "codec")]
pub fn get_codec(this: &AudioDecoderConfig) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `codec` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "codec")]
pub fn set_codec(this: &AudioDecoderConfig, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `description` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "description")]
pub fn get_description(this: &AudioDecoderConfig) -> Option<::js_sys::Object>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `description` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "description")]
pub fn set_description(this: &AudioDecoderConfig, val: &::js_sys::Object);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "numberOfChannels")]
pub fn get_number_of_channels(this: &AudioDecoderConfig) -> u32;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "numberOfChannels")]
pub fn set_number_of_channels(this: &AudioDecoderConfig, val: u32);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "sampleRate")]
pub fn get_sample_rate(this: &AudioDecoderConfig) -> u32;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "sampleRate")]
pub fn set_sample_rate(this: &AudioDecoderConfig, val: u32);
}
#[cfg(web_sys_unstable_apis)]
impl AudioDecoderConfig {
#[doc = "Construct a new `AudioDecoderConfig`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(codec: &str, number_of_channels: u32, sample_rate: u32) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_codec(codec);
ret.set_number_of_channels(number_of_channels);
ret.set_sample_rate(sample_rate);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_codec()` instead."]
pub fn codec(&mut self, val: &str) -> &mut Self {
self.set_codec(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_description()` instead."]
pub fn description(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_description(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_number_of_channels()` instead."]
pub fn number_of_channels(&mut self, val: u32) -> &mut Self {
self.set_number_of_channels(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_sample_rate()` instead."]
pub fn sample_rate(&mut self, val: u32) -> &mut Self {
self.set_sample_rate(val);
self
}
}

View File

@@ -0,0 +1,81 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderInit)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioDecoderInit` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioDecoderInit;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `error` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "error")]
pub fn get_error(this: &AudioDecoderInit) -> ::js_sys::Function;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `error` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "error")]
pub fn set_error(this: &AudioDecoderInit, val: &::js_sys::Function);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `output` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "output")]
pub fn get_output(this: &AudioDecoderInit) -> ::js_sys::Function;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `output` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "output")]
pub fn set_output(this: &AudioDecoderInit, val: &::js_sys::Function);
}
#[cfg(web_sys_unstable_apis)]
impl AudioDecoderInit {
#[doc = "Construct a new `AudioDecoderInit`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(error: &::js_sys::Function, output: &::js_sys::Function) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_error(error);
ret.set_output(output);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_error()` instead."]
pub fn error(&mut self, val: &::js_sys::Function) -> &mut Self {
self.set_error(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_output()` instead."]
pub fn output(&mut self, val: &::js_sys::Function) -> &mut Self {
self.set_output(val);
self
}
}

View File

@@ -0,0 +1,88 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderSupport)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioDecoderSupport` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioDecoderSupport;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDecoderConfig")]
#[doc = "Get the `config` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`, `AudioDecoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "config")]
pub fn get_config(this: &AudioDecoderSupport) -> Option<AudioDecoderConfig>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDecoderConfig")]
#[doc = "Change the `config` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`, `AudioDecoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "config")]
pub fn set_config(this: &AudioDecoderSupport, val: &AudioDecoderConfig);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `supported` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "supported")]
pub fn get_supported(this: &AudioDecoderSupport) -> Option<bool>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `supported` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "supported")]
pub fn set_supported(this: &AudioDecoderSupport, val: bool);
}
#[cfg(web_sys_unstable_apis)]
impl AudioDecoderSupport {
#[doc = "Construct a new `AudioDecoderSupport`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDecoderConfig")]
#[deprecated = "Use `set_config()` instead."]
pub fn config(&mut self, val: &AudioDecoderConfig) -> &mut Self {
self.set_config(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_supported()` instead."]
pub fn supported(&mut self, val: bool) -> &mut Self {
self.set_supported(val);
self
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for AudioDecoderSupport {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,22 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioDestinationNode , typescript_type = "AudioDestinationNode")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioDestinationNode` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`*"]
pub type AudioDestinationNode;
# [wasm_bindgen (structural , method , getter , js_class = "AudioDestinationNode" , js_name = maxChannelCount)]
#[doc = "Getter for the `maxChannelCount` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode/maxChannelCount)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`*"]
pub fn max_channel_count(this: &AudioDestinationNode) -> u32;
}

View File

@@ -0,0 +1,123 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoder , typescript_type = "AudioEncoder")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioEncoder` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioEncoder;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "CodecState")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioEncoder" , js_name = state)]
#[doc = "Getter for the `state` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/state)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`, `CodecState`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn state(this: &AudioEncoder) -> CodecState;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioEncoder" , js_name = encodeQueueSize)]
#[doc = "Getter for the `encodeQueueSize` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/encodeQueueSize)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn encode_queue_size(this: &AudioEncoder) -> u32;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioEncoderInit")]
#[wasm_bindgen(catch, constructor, js_class = "AudioEncoder")]
#[doc = "The `new AudioEncoder(..)` constructor, creating a new instance of `AudioEncoder`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/AudioEncoder)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`, `AudioEncoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(init: &AudioEncoderInit) -> Result<AudioEncoder, JsValue>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (catch , method , structural , js_class = "AudioEncoder" , js_name = close)]
#[doc = "The `close()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/close)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn close(this: &AudioEncoder) -> Result<(), JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioEncoderConfig")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioEncoder" , js_name = configure)]
#[doc = "The `configure()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/configure)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`, `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn configure(this: &AudioEncoder, config: &AudioEncoderConfig) -> Result<(), JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioData")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioEncoder" , js_name = encode)]
#[doc = "The `encode()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/encode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn encode(this: &AudioEncoder, data: &AudioData) -> Result<(), JsValue>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (method , structural , js_class = "AudioEncoder" , js_name = flush)]
#[doc = "The `flush()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/flush)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn flush(this: &AudioEncoder) -> ::js_sys::Promise;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioEncoderConfig")]
# [wasm_bindgen (static_method_of = AudioEncoder , js_class = "AudioEncoder" , js_name = isConfigSupported)]
#[doc = "The `isConfigSupported()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/isConfigSupported_static)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`, `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn is_config_supported(config: &AudioEncoderConfig) -> ::js_sys::Promise;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (catch , method , structural , js_class = "AudioEncoder" , js_name = reset)]
#[doc = "The `reset()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/reset)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn reset(this: &AudioEncoder) -> Result<(), JsValue>;
}

View File

@@ -0,0 +1,128 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderConfig)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioEncoderConfig` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioEncoderConfig;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `bitrate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "bitrate")]
pub fn get_bitrate(this: &AudioEncoderConfig) -> Option<f64>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `bitrate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "bitrate")]
pub fn set_bitrate(this: &AudioEncoderConfig, val: f64);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `codec` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "codec")]
pub fn get_codec(this: &AudioEncoderConfig) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `codec` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "codec")]
pub fn set_codec(this: &AudioEncoderConfig, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "numberOfChannels")]
pub fn get_number_of_channels(this: &AudioEncoderConfig) -> Option<u32>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `numberOfChannels` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "numberOfChannels")]
pub fn set_number_of_channels(this: &AudioEncoderConfig, val: u32);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "sampleRate")]
pub fn get_sample_rate(this: &AudioEncoderConfig) -> Option<u32>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "sampleRate")]
pub fn set_sample_rate(this: &AudioEncoderConfig, val: u32);
}
#[cfg(web_sys_unstable_apis)]
impl AudioEncoderConfig {
#[doc = "Construct a new `AudioEncoderConfig`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(codec: &str) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_codec(codec);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_bitrate()` instead."]
pub fn bitrate(&mut self, val: f64) -> &mut Self {
self.set_bitrate(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_codec()` instead."]
pub fn codec(&mut self, val: &str) -> &mut Self {
self.set_codec(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_number_of_channels()` instead."]
pub fn number_of_channels(&mut self, val: u32) -> &mut Self {
self.set_number_of_channels(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_sample_rate()` instead."]
pub fn sample_rate(&mut self, val: u32) -> &mut Self {
self.set_sample_rate(val);
self
}
}

View File

@@ -0,0 +1,81 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderInit)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioEncoderInit` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioEncoderInit;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `error` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "error")]
pub fn get_error(this: &AudioEncoderInit) -> ::js_sys::Function;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `error` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "error")]
pub fn set_error(this: &AudioEncoderInit, val: &::js_sys::Function);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `output` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "output")]
pub fn get_output(this: &AudioEncoderInit) -> ::js_sys::Function;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `output` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "output")]
pub fn set_output(this: &AudioEncoderInit, val: &::js_sys::Function);
}
#[cfg(web_sys_unstable_apis)]
impl AudioEncoderInit {
#[doc = "Construct a new `AudioEncoderInit`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(error: &::js_sys::Function, output: &::js_sys::Function) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_error(error);
ret.set_output(output);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_error()` instead."]
pub fn error(&mut self, val: &::js_sys::Function) -> &mut Self {
self.set_error(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_output()` instead."]
pub fn output(&mut self, val: &::js_sys::Function) -> &mut Self {
self.set_output(val);
self
}
}

View File

@@ -0,0 +1,88 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderSupport)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioEncoderSupport` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioEncoderSupport;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioEncoderConfig")]
#[doc = "Get the `config` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`, `AudioEncoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "config")]
pub fn get_config(this: &AudioEncoderSupport) -> Option<AudioEncoderConfig>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioEncoderConfig")]
#[doc = "Change the `config` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`, `AudioEncoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "config")]
pub fn set_config(this: &AudioEncoderSupport, val: &AudioEncoderConfig);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `supported` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "supported")]
pub fn get_supported(this: &AudioEncoderSupport) -> Option<bool>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `supported` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "supported")]
pub fn set_supported(this: &AudioEncoderSupport, val: bool);
}
#[cfg(web_sys_unstable_apis)]
impl AudioEncoderSupport {
#[doc = "Construct a new `AudioEncoderSupport`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderSupport`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioEncoderConfig")]
#[deprecated = "Use `set_config()` instead."]
pub fn config(&mut self, val: &AudioEncoderConfig) -> &mut Self {
self.set_config(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_supported()` instead."]
pub fn supported(&mut self, val: bool) -> &mut Self {
self.set_supported(val);
self
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for AudioEncoderSupport {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,72 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioListener , typescript_type = "AudioListener")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioListener` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
pub type AudioListener;
# [wasm_bindgen (structural , method , getter , js_class = "AudioListener" , js_name = dopplerFactor)]
#[doc = "Getter for the `dopplerFactor` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
pub fn doppler_factor(this: &AudioListener) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "AudioListener" , js_name = dopplerFactor)]
#[doc = "Setter for the `dopplerFactor` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
pub fn set_doppler_factor(this: &AudioListener, value: f64);
# [wasm_bindgen (structural , method , getter , js_class = "AudioListener" , js_name = speedOfSound)]
#[doc = "Getter for the `speedOfSound` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
pub fn speed_of_sound(this: &AudioListener) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "AudioListener" , js_name = speedOfSound)]
#[doc = "Setter for the `speedOfSound` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
pub fn set_speed_of_sound(this: &AudioListener, value: f64);
# [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setOrientation)]
#[doc = "The `setOrientation()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
pub fn set_orientation(
this: &AudioListener,
x: f64,
y: f64,
z: f64,
x_up: f64,
y_up: f64,
z_up: f64,
);
# [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setPosition)]
#[doc = "The `setPosition()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
pub fn set_position(this: &AudioListener, x: f64, y: f64, z: f64);
# [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setVelocity)]
#[doc = "The `setVelocity()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setVelocity)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
pub fn set_velocity(this: &AudioListener, x: f64, y: f64, z: f64);
}

View File

@@ -0,0 +1,209 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioNode , typescript_type = "AudioNode")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioNode` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub type AudioNode;
#[cfg(feature = "BaseAudioContext")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = context)]
#[doc = "Getter for the `context` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/context)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `BaseAudioContext`*"]
pub fn context(this: &AudioNode) -> BaseAudioContext;
# [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = numberOfInputs)]
#[doc = "Getter for the `numberOfInputs` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfInputs)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn number_of_inputs(this: &AudioNode) -> u32;
# [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = numberOfOutputs)]
#[doc = "Getter for the `numberOfOutputs` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfOutputs)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn number_of_outputs(this: &AudioNode) -> u32;
# [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelCount)]
#[doc = "Getter for the `channelCount` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn channel_count(this: &AudioNode) -> u32;
# [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelCount)]
#[doc = "Setter for the `channelCount` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn set_channel_count(this: &AudioNode, value: u32);
#[cfg(feature = "ChannelCountMode")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelCountMode)]
#[doc = "Getter for the `channelCountMode` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*"]
pub fn channel_count_mode(this: &AudioNode) -> ChannelCountMode;
#[cfg(feature = "ChannelCountMode")]
# [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelCountMode)]
#[doc = "Setter for the `channelCountMode` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*"]
pub fn set_channel_count_mode(this: &AudioNode, value: ChannelCountMode);
#[cfg(feature = "ChannelInterpretation")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelInterpretation)]
#[doc = "Getter for the `channelInterpretation` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*"]
pub fn channel_interpretation(this: &AudioNode) -> ChannelInterpretation;
#[cfg(feature = "ChannelInterpretation")]
# [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelInterpretation)]
#[doc = "Setter for the `channelInterpretation` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*"]
pub fn set_channel_interpretation(this: &AudioNode, value: ChannelInterpretation);
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)]
#[doc = "The `connect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn connect_with_audio_node(
this: &AudioNode,
destination: &AudioNode,
) -> Result<AudioNode, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)]
#[doc = "The `connect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn connect_with_audio_node_and_output(
this: &AudioNode,
destination: &AudioNode,
output: u32,
) -> Result<AudioNode, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)]
#[doc = "The `connect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn connect_with_audio_node_and_output_and_input(
this: &AudioNode,
destination: &AudioNode,
output: u32,
input: u32,
) -> Result<AudioNode, JsValue>;
#[cfg(feature = "AudioParam")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)]
#[doc = "The `connect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"]
pub fn connect_with_audio_param(
this: &AudioNode,
destination: &AudioParam,
) -> Result<(), JsValue>;
#[cfg(feature = "AudioParam")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)]
#[doc = "The `connect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"]
pub fn connect_with_audio_param_and_output(
this: &AudioNode,
destination: &AudioParam,
output: u32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)]
#[doc = "The `disconnect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn disconnect(this: &AudioNode) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)]
#[doc = "The `disconnect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn disconnect_with_output(this: &AudioNode, output: u32) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)]
#[doc = "The `disconnect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn disconnect_with_audio_node(
this: &AudioNode,
destination: &AudioNode,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)]
#[doc = "The `disconnect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn disconnect_with_audio_node_and_output(
this: &AudioNode,
destination: &AudioNode,
output: u32,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)]
#[doc = "The `disconnect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`*"]
pub fn disconnect_with_audio_node_and_output_and_input(
this: &AudioNode,
destination: &AudioNode,
output: u32,
input: u32,
) -> Result<(), JsValue>;
#[cfg(feature = "AudioParam")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)]
#[doc = "The `disconnect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"]
pub fn disconnect_with_audio_param(
this: &AudioNode,
destination: &AudioParam,
) -> Result<(), JsValue>;
#[cfg(feature = "AudioParam")]
# [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)]
#[doc = "The `disconnect()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"]
pub fn disconnect_with_audio_param_and_output(
this: &AudioNode,
destination: &AudioParam,
output: u32,
) -> Result<(), JsValue>;
}

View File

@@ -0,0 +1,79 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioNodeOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioNodeOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"]
pub type AudioNodeOptions;
#[doc = "Get the `channelCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"]
#[wasm_bindgen(method, getter = "channelCount")]
pub fn get_channel_count(this: &AudioNodeOptions) -> Option<u32>;
#[doc = "Change the `channelCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"]
#[wasm_bindgen(method, setter = "channelCount")]
pub fn set_channel_count(this: &AudioNodeOptions, val: u32);
#[cfg(feature = "ChannelCountMode")]
#[doc = "Get the `channelCountMode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelCountMode`*"]
#[wasm_bindgen(method, getter = "channelCountMode")]
pub fn get_channel_count_mode(this: &AudioNodeOptions) -> Option<ChannelCountMode>;
#[cfg(feature = "ChannelCountMode")]
#[doc = "Change the `channelCountMode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelCountMode`*"]
#[wasm_bindgen(method, setter = "channelCountMode")]
pub fn set_channel_count_mode(this: &AudioNodeOptions, val: ChannelCountMode);
#[cfg(feature = "ChannelInterpretation")]
#[doc = "Get the `channelInterpretation` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelInterpretation`*"]
#[wasm_bindgen(method, getter = "channelInterpretation")]
pub fn get_channel_interpretation(this: &AudioNodeOptions) -> Option<ChannelInterpretation>;
#[cfg(feature = "ChannelInterpretation")]
#[doc = "Change the `channelInterpretation` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelInterpretation`*"]
#[wasm_bindgen(method, setter = "channelInterpretation")]
pub fn set_channel_interpretation(this: &AudioNodeOptions, val: ChannelInterpretation);
}
impl AudioNodeOptions {
#[doc = "Construct a new `AudioNodeOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_channel_count()` instead."]
pub fn channel_count(&mut self, val: u32) -> &mut Self {
self.set_channel_count(val);
self
}
#[cfg(feature = "ChannelCountMode")]
#[deprecated = "Use `set_channel_count_mode()` instead."]
pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self {
self.set_channel_count_mode(val);
self
}
#[cfg(feature = "ChannelInterpretation")]
#[deprecated = "Use `set_channel_interpretation()` instead."]
pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self {
self.set_channel_interpretation(val);
self
}
}
impl Default for AudioNodeOptions {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,129 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioParam , typescript_type = "AudioParam")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioParam` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub type AudioParam;
# [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = value)]
#[doc = "Getter for the `value` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn value(this: &AudioParam) -> f32;
# [wasm_bindgen (structural , method , setter , js_class = "AudioParam" , js_name = value)]
#[doc = "Setter for the `value` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn set_value(this: &AudioParam, value: f32);
# [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = defaultValue)]
#[doc = "Getter for the `defaultValue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/defaultValue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn default_value(this: &AudioParam) -> f32;
# [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = minValue)]
#[doc = "Getter for the `minValue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/minValue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn min_value(this: &AudioParam) -> f32;
# [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = maxValue)]
#[doc = "Getter for the `maxValue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/maxValue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn max_value(this: &AudioParam) -> f32;
# [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = cancelScheduledValues)]
#[doc = "The `cancelScheduledValues()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/cancelScheduledValues)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn cancel_scheduled_values(
this: &AudioParam,
start_time: f64,
) -> Result<AudioParam, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = exponentialRampToValueAtTime)]
#[doc = "The `exponentialRampToValueAtTime()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/exponentialRampToValueAtTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn exponential_ramp_to_value_at_time(
this: &AudioParam,
value: f32,
end_time: f64,
) -> Result<AudioParam, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = linearRampToValueAtTime)]
#[doc = "The `linearRampToValueAtTime()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/linearRampToValueAtTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn linear_ramp_to_value_at_time(
this: &AudioParam,
value: f32,
end_time: f64,
) -> Result<AudioParam, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setTargetAtTime)]
#[doc = "The `setTargetAtTime()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setTargetAtTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn set_target_at_time(
this: &AudioParam,
target: f32,
start_time: f64,
time_constant: f64,
) -> Result<AudioParam, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueAtTime)]
#[doc = "The `setValueAtTime()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueAtTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn set_value_at_time(
this: &AudioParam,
value: f32,
start_time: f64,
) -> Result<AudioParam, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueCurveAtTime)]
#[doc = "The `setValueCurveAtTime()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueCurveAtTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn set_value_curve_at_time(
this: &AudioParam,
values: &mut [f32],
start_time: f64,
duration: f64,
) -> Result<AudioParam, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueCurveAtTime)]
#[doc = "The `setValueCurveAtTime()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueCurveAtTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
pub fn set_value_curve_at_time_with_f32_array(
this: &AudioParam,
values: &::js_sys::Float32Array,
start_time: f64,
duration: f64,
) -> Result<AudioParam, JsValue>;
}

View File

@@ -0,0 +1,65 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioParamMap , typescript_type = "AudioParamMap")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioParamMap` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
pub type AudioParamMap;
# [wasm_bindgen (structural , method , getter , js_class = "AudioParamMap" , js_name = size)]
#[doc = "Getter for the `size` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/size)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
pub fn size(this: &AudioParamMap) -> u32;
# [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = entries)]
#[doc = "The `entries()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/entries)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
pub fn entries(this: &AudioParamMap) -> ::js_sys::Iterator;
# [wasm_bindgen (catch , method , structural , js_class = "AudioParamMap" , js_name = forEach)]
#[doc = "The `forEach()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/forEach)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
pub fn for_each(this: &AudioParamMap, callback: &::js_sys::Function) -> Result<(), JsValue>;
#[cfg(feature = "AudioParam")]
# [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = get)]
#[doc = "The `get()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/get)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParam`, `AudioParamMap`*"]
pub fn get(this: &AudioParamMap, key: &str) -> Option<AudioParam>;
# [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = has)]
#[doc = "The `has()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/has)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
pub fn has(this: &AudioParamMap, key: &str) -> bool;
# [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = keys)]
#[doc = "The `keys()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/keys)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
pub fn keys(this: &AudioParamMap) -> ::js_sys::Iterator;
# [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = values)]
#[doc = "The `values()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/values)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"]
pub fn values(this: &AudioParamMap) -> ::js_sys::Iterator;
}

View File

@@ -0,0 +1,38 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AudioProcessingEvent , typescript_type = "AudioProcessingEvent")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioProcessingEvent` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"]
pub type AudioProcessingEvent;
# [wasm_bindgen (structural , method , getter , js_class = "AudioProcessingEvent" , js_name = playbackTime)]
#[doc = "Getter for the `playbackTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/playbackTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"]
pub fn playback_time(this: &AudioProcessingEvent) -> f64;
#[cfg(feature = "AudioBuffer")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "AudioProcessingEvent" , js_name = inputBuffer)]
#[doc = "Getter for the `inputBuffer` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/inputBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"]
pub fn input_buffer(this: &AudioProcessingEvent) -> Result<AudioBuffer, JsValue>;
#[cfg(feature = "AudioBuffer")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "AudioProcessingEvent" , js_name = outputBuffer)]
#[doc = "Getter for the `outputBuffer` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/outputBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"]
pub fn output_buffer(this: &AudioProcessingEvent) -> Result<AudioBuffer, JsValue>;
}

View File

@@ -0,0 +1,22 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
#[doc = "The `AudioSampleFormat` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioSampleFormat`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AudioSampleFormat {
U8 = "u8",
S16 = "s16",
S32 = "s32",
F32 = "f32",
U8Planar = "u8-planar",
S16Planar = "s16-planar",
S32Planar = "s32-planar",
F32Planar = "f32-planar",
}

View File

@@ -0,0 +1,57 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioScheduledSourceNode , typescript_type = "AudioScheduledSourceNode")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioScheduledSourceNode` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
pub type AudioScheduledSourceNode;
# [wasm_bindgen (structural , method , getter , js_class = "AudioScheduledSourceNode" , js_name = onended)]
#[doc = "Getter for the `onended` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
pub fn onended(this: &AudioScheduledSourceNode) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "AudioScheduledSourceNode" , js_name = onended)]
#[doc = "Setter for the `onended` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
pub fn set_onended(this: &AudioScheduledSourceNode, value: Option<&::js_sys::Function>);
# [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = start)]
#[doc = "The `start()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
pub fn start(this: &AudioScheduledSourceNode) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = start)]
#[doc = "The `start()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
pub fn start_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = stop)]
#[doc = "The `stop()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
pub fn stop(this: &AudioScheduledSourceNode) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = stop)]
#[doc = "The `stop()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
pub fn stop_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>;
}

View File

@@ -0,0 +1,31 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioSinkInfo , typescript_type = "AudioSinkInfo")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioSinkInfo` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioSinkInfo)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioSinkInfo`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioSinkInfo;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSinkType")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioSinkInfo" , js_name = type)]
#[doc = "Getter for the `type` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioSinkInfo/type)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioSinkInfo`, `AudioSinkType`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn type_(this: &AudioSinkInfo) -> AudioSinkType;
}

View File

@@ -0,0 +1,60 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioSinkOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioSinkOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AudioSinkOptions;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSinkType")]
#[doc = "Get the `type` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`, `AudioSinkType`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "type")]
pub fn get_type(this: &AudioSinkOptions) -> AudioSinkType;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSinkType")]
#[doc = "Change the `type` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`, `AudioSinkType`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "type")]
pub fn set_type(this: &AudioSinkOptions, val: AudioSinkType);
}
#[cfg(web_sys_unstable_apis)]
impl AudioSinkOptions {
#[cfg(feature = "AudioSinkType")]
#[doc = "Construct a new `AudioSinkOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`, `AudioSinkType`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(type_: AudioSinkType) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_type(type_);
ret
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioSinkType")]
#[deprecated = "Use `set_type()` instead."]
pub fn type_(&mut self, val: AudioSinkType) -> &mut Self {
self.set_type(val);
self
}
}

View File

@@ -0,0 +1,15 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
#[doc = "The `AudioSinkType` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioSinkType`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AudioSinkType {
None = "none",
}

View File

@@ -0,0 +1,15 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioStreamTrack , typescript_type = "AudioStreamTrack")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioStreamTrack` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioStreamTrack)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioStreamTrack`*"]
pub type AudioStreamTrack;
}

View File

@@ -0,0 +1,65 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioTrack , typescript_type = "AudioTrack")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioTrack` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"]
pub type AudioTrack;
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = id)]
#[doc = "Getter for the `id` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/id)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"]
pub fn id(this: &AudioTrack) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = kind)]
#[doc = "Getter for the `kind` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/kind)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"]
pub fn kind(this: &AudioTrack) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = label)]
#[doc = "Getter for the `label` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/label)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"]
pub fn label(this: &AudioTrack) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = language)]
#[doc = "Getter for the `language` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/language)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"]
pub fn language(this: &AudioTrack) -> ::alloc::string::String;
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = enabled)]
#[doc = "Getter for the `enabled` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/enabled)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"]
pub fn enabled(this: &AudioTrack) -> bool;
# [wasm_bindgen (structural , method , setter , js_class = "AudioTrack" , js_name = enabled)]
#[doc = "Setter for the `enabled` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/enabled)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"]
pub fn set_enabled(this: &AudioTrack, value: bool);
#[cfg(feature = "SourceBuffer")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = sourceBuffer)]
#[doc = "Getter for the `sourceBuffer` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/sourceBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `SourceBuffer`*"]
pub fn source_buffer(this: &AudioTrack) -> Option<SourceBuffer>;
}

View File

@@ -0,0 +1,80 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioTrackList , typescript_type = "AudioTrackList")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioTrackList` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
pub type AudioTrackList;
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = length)]
#[doc = "Getter for the `length` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/length)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
pub fn length(this: &AudioTrackList) -> u32;
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onchange)]
#[doc = "Getter for the `onchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
pub fn onchange(this: &AudioTrackList) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onchange)]
#[doc = "Setter for the `onchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
pub fn set_onchange(this: &AudioTrackList, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onaddtrack)]
#[doc = "Getter for the `onaddtrack` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
pub fn onaddtrack(this: &AudioTrackList) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onaddtrack)]
#[doc = "Setter for the `onaddtrack` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
pub fn set_onaddtrack(this: &AudioTrackList, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onremovetrack)]
#[doc = "Getter for the `onremovetrack` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
pub fn onremovetrack(this: &AudioTrackList) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onremovetrack)]
#[doc = "Setter for the `onremovetrack` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
pub fn set_onremovetrack(this: &AudioTrackList, value: Option<&::js_sys::Function>);
#[cfg(feature = "AudioTrack")]
# [wasm_bindgen (method , structural , js_class = "AudioTrackList" , js_name = getTrackById)]
#[doc = "The `getTrackById()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/getTrackById)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"]
pub fn get_track_by_id(this: &AudioTrackList, id: &str) -> Option<AudioTrack>;
#[cfg(feature = "AudioTrack")]
#[wasm_bindgen(method, structural, js_class = "AudioTrackList", indexing_getter)]
#[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"]
pub fn get(this: &AudioTrackList, index: u32) -> Option<AudioTrack>;
}

View File

@@ -0,0 +1,15 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = Worklet , extends = :: js_sys :: Object , js_name = AudioWorklet , typescript_type = "AudioWorklet")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioWorklet` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorklet)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorklet`*"]
pub type AudioWorklet;
}

View File

@@ -0,0 +1,47 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = AudioWorkletGlobalScope , typescript_type = "AudioWorkletGlobalScope")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioWorkletGlobalScope` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
pub type AudioWorkletGlobalScope;
# [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentFrame)]
#[doc = "Getter for the `currentFrame` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentFrame)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
pub fn current_frame(this: &AudioWorkletGlobalScope) -> f64;
# [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentTime)]
#[doc = "Getter for the `currentTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
pub fn current_time(this: &AudioWorkletGlobalScope) -> f64;
# [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = sampleRate)]
#[doc = "Getter for the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/sampleRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
pub fn sample_rate(this: &AudioWorkletGlobalScope) -> f32;
# [wasm_bindgen (method , structural , js_class = "AudioWorkletGlobalScope" , js_name = registerProcessor)]
#[doc = "The `registerProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
pub fn register_processor(
this: &AudioWorkletGlobalScope,
name: &str,
processor_ctor: &::js_sys::Function,
);
}

View File

@@ -0,0 +1,65 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioWorkletNode , typescript_type = "AudioWorkletNode")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioWorkletNode` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"]
pub type AudioWorkletNode;
#[cfg(feature = "AudioParamMap")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletNode" , js_name = parameters)]
#[doc = "Getter for the `parameters` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/parameters)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioParamMap`, `AudioWorkletNode`*"]
pub fn parameters(this: &AudioWorkletNode) -> Result<AudioParamMap, JsValue>;
#[cfg(feature = "MessagePort")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletNode" , js_name = port)]
#[doc = "Getter for the `port` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/port)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `MessagePort`*"]
pub fn port(this: &AudioWorkletNode) -> Result<MessagePort, JsValue>;
# [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletNode" , js_name = onprocessorerror)]
#[doc = "Getter for the `onprocessorerror` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/onprocessorerror)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"]
pub fn onprocessorerror(this: &AudioWorkletNode) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "AudioWorkletNode" , js_name = onprocessorerror)]
#[doc = "Setter for the `onprocessorerror` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/onprocessorerror)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"]
pub fn set_onprocessorerror(this: &AudioWorkletNode, value: Option<&::js_sys::Function>);
#[cfg(feature = "BaseAudioContext")]
#[wasm_bindgen(catch, constructor, js_class = "AudioWorkletNode")]
#[doc = "The `new AudioWorkletNode(..)` constructor, creating a new instance of `AudioWorkletNode`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/AudioWorkletNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `BaseAudioContext`*"]
pub fn new(context: &BaseAudioContext, name: &str) -> Result<AudioWorkletNode, JsValue>;
#[cfg(all(feature = "AudioWorkletNodeOptions", feature = "BaseAudioContext",))]
#[wasm_bindgen(catch, constructor, js_class = "AudioWorkletNode")]
#[doc = "The `new AudioWorkletNode(..)` constructor, creating a new instance of `AudioWorkletNode`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/AudioWorkletNode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `AudioWorkletNodeOptions`, `BaseAudioContext`*"]
pub fn new_with_options(
context: &BaseAudioContext,
name: &str,
options: &AudioWorkletNodeOptions,
) -> Result<AudioWorkletNode, JsValue>;
}

View File

@@ -0,0 +1,156 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioWorkletNodeOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioWorkletNodeOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
pub type AudioWorkletNodeOptions;
#[doc = "Get the `channelCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, getter = "channelCount")]
pub fn get_channel_count(this: &AudioWorkletNodeOptions) -> Option<u32>;
#[doc = "Change the `channelCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, setter = "channelCount")]
pub fn set_channel_count(this: &AudioWorkletNodeOptions, val: u32);
#[cfg(feature = "ChannelCountMode")]
#[doc = "Get the `channelCountMode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelCountMode`*"]
#[wasm_bindgen(method, getter = "channelCountMode")]
pub fn get_channel_count_mode(this: &AudioWorkletNodeOptions) -> Option<ChannelCountMode>;
#[cfg(feature = "ChannelCountMode")]
#[doc = "Change the `channelCountMode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelCountMode`*"]
#[wasm_bindgen(method, setter = "channelCountMode")]
pub fn set_channel_count_mode(this: &AudioWorkletNodeOptions, val: ChannelCountMode);
#[cfg(feature = "ChannelInterpretation")]
#[doc = "Get the `channelInterpretation` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelInterpretation`*"]
#[wasm_bindgen(method, getter = "channelInterpretation")]
pub fn get_channel_interpretation(
this: &AudioWorkletNodeOptions,
) -> Option<ChannelInterpretation>;
#[cfg(feature = "ChannelInterpretation")]
#[doc = "Change the `channelInterpretation` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelInterpretation`*"]
#[wasm_bindgen(method, setter = "channelInterpretation")]
pub fn set_channel_interpretation(this: &AudioWorkletNodeOptions, val: ChannelInterpretation);
#[doc = "Get the `numberOfInputs` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, getter = "numberOfInputs")]
pub fn get_number_of_inputs(this: &AudioWorkletNodeOptions) -> Option<u32>;
#[doc = "Change the `numberOfInputs` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, setter = "numberOfInputs")]
pub fn set_number_of_inputs(this: &AudioWorkletNodeOptions, val: u32);
#[doc = "Get the `numberOfOutputs` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, getter = "numberOfOutputs")]
pub fn get_number_of_outputs(this: &AudioWorkletNodeOptions) -> Option<u32>;
#[doc = "Change the `numberOfOutputs` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, setter = "numberOfOutputs")]
pub fn set_number_of_outputs(this: &AudioWorkletNodeOptions, val: u32);
#[doc = "Get the `outputChannelCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, getter = "outputChannelCount")]
pub fn get_output_channel_count(this: &AudioWorkletNodeOptions) -> Option<::js_sys::Array>;
#[doc = "Change the `outputChannelCount` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, setter = "outputChannelCount")]
pub fn set_output_channel_count(this: &AudioWorkletNodeOptions, val: &::wasm_bindgen::JsValue);
#[doc = "Get the `parameterData` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, getter = "parameterData")]
pub fn get_parameter_data(this: &AudioWorkletNodeOptions) -> Option<::js_sys::Object>;
#[doc = "Change the `parameterData` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, setter = "parameterData")]
pub fn set_parameter_data(this: &AudioWorkletNodeOptions, val: &::js_sys::Object);
#[doc = "Get the `processorOptions` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, getter = "processorOptions")]
pub fn get_processor_options(this: &AudioWorkletNodeOptions) -> Option<::js_sys::Object>;
#[doc = "Change the `processorOptions` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
#[wasm_bindgen(method, setter = "processorOptions")]
pub fn set_processor_options(this: &AudioWorkletNodeOptions, val: Option<&::js_sys::Object>);
}
impl AudioWorkletNodeOptions {
#[doc = "Construct a new `AudioWorkletNodeOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_channel_count()` instead."]
pub fn channel_count(&mut self, val: u32) -> &mut Self {
self.set_channel_count(val);
self
}
#[cfg(feature = "ChannelCountMode")]
#[deprecated = "Use `set_channel_count_mode()` instead."]
pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self {
self.set_channel_count_mode(val);
self
}
#[cfg(feature = "ChannelInterpretation")]
#[deprecated = "Use `set_channel_interpretation()` instead."]
pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self {
self.set_channel_interpretation(val);
self
}
#[deprecated = "Use `set_number_of_inputs()` instead."]
pub fn number_of_inputs(&mut self, val: u32) -> &mut Self {
self.set_number_of_inputs(val);
self
}
#[deprecated = "Use `set_number_of_outputs()` instead."]
pub fn number_of_outputs(&mut self, val: u32) -> &mut Self {
self.set_number_of_outputs(val);
self
}
#[deprecated = "Use `set_output_channel_count()` instead."]
pub fn output_channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_output_channel_count(val);
self
}
#[deprecated = "Use `set_parameter_data()` instead."]
pub fn parameter_data(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_parameter_data(val);
self
}
#[deprecated = "Use `set_processor_options()` instead."]
pub fn processor_options(&mut self, val: Option<&::js_sys::Object>) -> &mut Self {
self.set_processor_options(val);
self
}
}
impl Default for AudioWorkletNodeOptions {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,40 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioWorkletProcessor , typescript_type = "AudioWorkletProcessor")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioWorkletProcessor` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`*"]
pub type AudioWorkletProcessor;
#[cfg(feature = "MessagePort")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletProcessor" , js_name = port)]
#[doc = "Getter for the `port` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/port)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`, `MessagePort`*"]
pub fn port(this: &AudioWorkletProcessor) -> Result<MessagePort, JsValue>;
#[wasm_bindgen(catch, constructor, js_class = "AudioWorkletProcessor")]
#[doc = "The `new AudioWorkletProcessor(..)` constructor, creating a new instance of `AudioWorkletProcessor`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`*"]
pub fn new() -> Result<AudioWorkletProcessor, JsValue>;
#[cfg(feature = "AudioWorkletNodeOptions")]
#[wasm_bindgen(catch, constructor, js_class = "AudioWorkletProcessor")]
#[doc = "The `new AudioWorkletProcessor(..)` constructor, creating a new instance of `AudioWorkletProcessor`."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `AudioWorkletProcessor`*"]
pub fn new_with_options(
options: &AudioWorkletNodeOptions,
) -> Result<AudioWorkletProcessor, JsValue>;
}

View File

@@ -0,0 +1,182 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientInputs)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsClientInputs` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
pub type AuthenticationExtensionsClientInputs;
#[doc = "Get the `appid` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
#[wasm_bindgen(method, getter = "appid")]
pub fn get_appid(
this: &AuthenticationExtensionsClientInputs,
) -> Option<::alloc::string::String>;
#[doc = "Change the `appid` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
#[wasm_bindgen(method, setter = "appid")]
pub fn set_appid(this: &AuthenticationExtensionsClientInputs, val: &str);
#[doc = "Get the `appidExclude` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
#[wasm_bindgen(method, getter = "appidExclude")]
pub fn get_appid_exclude(
this: &AuthenticationExtensionsClientInputs,
) -> Option<::alloc::string::String>;
#[doc = "Change the `appidExclude` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
#[wasm_bindgen(method, setter = "appidExclude")]
pub fn set_appid_exclude(this: &AuthenticationExtensionsClientInputs, val: &str);
#[doc = "Get the `credProps` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
#[wasm_bindgen(method, getter = "credProps")]
pub fn get_cred_props(this: &AuthenticationExtensionsClientInputs) -> Option<bool>;
#[doc = "Change the `credProps` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
#[wasm_bindgen(method, setter = "credProps")]
pub fn set_cred_props(this: &AuthenticationExtensionsClientInputs, val: bool);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsDevicePublicKeyInputs")]
#[doc = "Get the `devicePubKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsDevicePublicKeyInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "devicePubKey")]
pub fn get_device_pub_key(
this: &AuthenticationExtensionsClientInputs,
) -> Option<AuthenticationExtensionsDevicePublicKeyInputs>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsDevicePublicKeyInputs")]
#[doc = "Change the `devicePubKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsDevicePublicKeyInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "devicePubKey")]
pub fn set_device_pub_key(
this: &AuthenticationExtensionsClientInputs,
val: &AuthenticationExtensionsDevicePublicKeyInputs,
);
#[cfg(feature = "AuthenticationExtensionsLargeBlobInputs")]
#[doc = "Get the `largeBlob` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsLargeBlobInputs`*"]
#[wasm_bindgen(method, getter = "largeBlob")]
pub fn get_large_blob(
this: &AuthenticationExtensionsClientInputs,
) -> Option<AuthenticationExtensionsLargeBlobInputs>;
#[cfg(feature = "AuthenticationExtensionsLargeBlobInputs")]
#[doc = "Change the `largeBlob` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsLargeBlobInputs`*"]
#[wasm_bindgen(method, setter = "largeBlob")]
pub fn set_large_blob(
this: &AuthenticationExtensionsClientInputs,
val: &AuthenticationExtensionsLargeBlobInputs,
);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfInputs")]
#[doc = "Get the `prf` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsPrfInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "prf")]
pub fn get_prf(
this: &AuthenticationExtensionsClientInputs,
) -> Option<AuthenticationExtensionsPrfInputs>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfInputs")]
#[doc = "Change the `prf` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsPrfInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "prf")]
pub fn set_prf(
this: &AuthenticationExtensionsClientInputs,
val: &AuthenticationExtensionsPrfInputs,
);
#[doc = "Get the `uvm` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
#[wasm_bindgen(method, getter = "uvm")]
pub fn get_uvm(this: &AuthenticationExtensionsClientInputs) -> Option<bool>;
#[doc = "Change the `uvm` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
#[wasm_bindgen(method, setter = "uvm")]
pub fn set_uvm(this: &AuthenticationExtensionsClientInputs, val: bool);
}
impl AuthenticationExtensionsClientInputs {
#[doc = "Construct a new `AuthenticationExtensionsClientInputs`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_appid()` instead."]
pub fn appid(&mut self, val: &str) -> &mut Self {
self.set_appid(val);
self
}
#[deprecated = "Use `set_appid_exclude()` instead."]
pub fn appid_exclude(&mut self, val: &str) -> &mut Self {
self.set_appid_exclude(val);
self
}
#[deprecated = "Use `set_cred_props()` instead."]
pub fn cred_props(&mut self, val: bool) -> &mut Self {
self.set_cred_props(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsDevicePublicKeyInputs")]
#[deprecated = "Use `set_device_pub_key()` instead."]
pub fn device_pub_key(
&mut self,
val: &AuthenticationExtensionsDevicePublicKeyInputs,
) -> &mut Self {
self.set_device_pub_key(val);
self
}
#[cfg(feature = "AuthenticationExtensionsLargeBlobInputs")]
#[deprecated = "Use `set_large_blob()` instead."]
pub fn large_blob(&mut self, val: &AuthenticationExtensionsLargeBlobInputs) -> &mut Self {
self.set_large_blob(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfInputs")]
#[deprecated = "Use `set_prf()` instead."]
pub fn prf(&mut self, val: &AuthenticationExtensionsPrfInputs) -> &mut Self {
self.set_prf(val);
self
}
#[deprecated = "Use `set_uvm()` instead."]
pub fn uvm(&mut self, val: bool) -> &mut Self {
self.set_uvm(val);
self
}
}
impl Default for AuthenticationExtensionsClientInputs {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,37 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientInputsJSON)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsClientInputsJson` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputsJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticationExtensionsClientInputsJson;
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticationExtensionsClientInputsJson {
#[doc = "Construct a new `AuthenticationExtensionsClientInputsJson`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputsJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for AuthenticationExtensionsClientInputsJson {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,186 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientOutputs)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsClientOutputs` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
pub type AuthenticationExtensionsClientOutputs;
#[doc = "Get the `appid` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
#[wasm_bindgen(method, getter = "appid")]
pub fn get_appid(this: &AuthenticationExtensionsClientOutputs) -> Option<bool>;
#[doc = "Change the `appid` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
#[wasm_bindgen(method, setter = "appid")]
pub fn set_appid(this: &AuthenticationExtensionsClientOutputs, val: bool);
#[doc = "Get the `appidExclude` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
#[wasm_bindgen(method, getter = "appidExclude")]
pub fn get_appid_exclude(this: &AuthenticationExtensionsClientOutputs) -> Option<bool>;
#[doc = "Change the `appidExclude` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
#[wasm_bindgen(method, setter = "appidExclude")]
pub fn set_appid_exclude(this: &AuthenticationExtensionsClientOutputs, val: bool);
#[cfg(feature = "CredentialPropertiesOutput")]
#[doc = "Get the `credProps` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `CredentialPropertiesOutput`*"]
#[wasm_bindgen(method, getter = "credProps")]
pub fn get_cred_props(
this: &AuthenticationExtensionsClientOutputs,
) -> Option<CredentialPropertiesOutput>;
#[cfg(feature = "CredentialPropertiesOutput")]
#[doc = "Change the `credProps` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `CredentialPropertiesOutput`*"]
#[wasm_bindgen(method, setter = "credProps")]
pub fn set_cred_props(
this: &AuthenticationExtensionsClientOutputs,
val: &CredentialPropertiesOutput,
);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")]
#[doc = "Get the `devicePubKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "devicePubKey")]
pub fn get_device_pub_key(
this: &AuthenticationExtensionsClientOutputs,
) -> Option<AuthenticationExtensionsDevicePublicKeyOutputs>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")]
#[doc = "Change the `devicePubKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "devicePubKey")]
pub fn set_device_pub_key(
this: &AuthenticationExtensionsClientOutputs,
val: &AuthenticationExtensionsDevicePublicKeyOutputs,
);
#[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")]
#[doc = "Get the `largeBlob` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsLargeBlobOutputs`*"]
#[wasm_bindgen(method, getter = "largeBlob")]
pub fn get_large_blob(
this: &AuthenticationExtensionsClientOutputs,
) -> Option<AuthenticationExtensionsLargeBlobOutputs>;
#[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")]
#[doc = "Change the `largeBlob` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsLargeBlobOutputs`*"]
#[wasm_bindgen(method, setter = "largeBlob")]
pub fn set_large_blob(
this: &AuthenticationExtensionsClientOutputs,
val: &AuthenticationExtensionsLargeBlobOutputs,
);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfOutputs")]
#[doc = "Get the `prf` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsPrfOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "prf")]
pub fn get_prf(
this: &AuthenticationExtensionsClientOutputs,
) -> Option<AuthenticationExtensionsPrfOutputs>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfOutputs")]
#[doc = "Change the `prf` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsPrfOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "prf")]
pub fn set_prf(
this: &AuthenticationExtensionsClientOutputs,
val: &AuthenticationExtensionsPrfOutputs,
);
#[doc = "Get the `uvm` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
#[wasm_bindgen(method, getter = "uvm")]
pub fn get_uvm(this: &AuthenticationExtensionsClientOutputs) -> Option<::js_sys::Array>;
#[doc = "Change the `uvm` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
#[wasm_bindgen(method, setter = "uvm")]
pub fn set_uvm(this: &AuthenticationExtensionsClientOutputs, val: &::wasm_bindgen::JsValue);
}
impl AuthenticationExtensionsClientOutputs {
#[doc = "Construct a new `AuthenticationExtensionsClientOutputs`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_appid()` instead."]
pub fn appid(&mut self, val: bool) -> &mut Self {
self.set_appid(val);
self
}
#[deprecated = "Use `set_appid_exclude()` instead."]
pub fn appid_exclude(&mut self, val: bool) -> &mut Self {
self.set_appid_exclude(val);
self
}
#[cfg(feature = "CredentialPropertiesOutput")]
#[deprecated = "Use `set_cred_props()` instead."]
pub fn cred_props(&mut self, val: &CredentialPropertiesOutput) -> &mut Self {
self.set_cred_props(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")]
#[deprecated = "Use `set_device_pub_key()` instead."]
pub fn device_pub_key(
&mut self,
val: &AuthenticationExtensionsDevicePublicKeyOutputs,
) -> &mut Self {
self.set_device_pub_key(val);
self
}
#[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")]
#[deprecated = "Use `set_large_blob()` instead."]
pub fn large_blob(&mut self, val: &AuthenticationExtensionsLargeBlobOutputs) -> &mut Self {
self.set_large_blob(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfOutputs")]
#[deprecated = "Use `set_prf()` instead."]
pub fn prf(&mut self, val: &AuthenticationExtensionsPrfOutputs) -> &mut Self {
self.set_prf(val);
self
}
#[deprecated = "Use `set_uvm()` instead."]
pub fn uvm(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_uvm(val);
self
}
}
impl Default for AuthenticationExtensionsClientOutputs {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,37 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientOutputsJSON)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsClientOutputsJson` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticationExtensionsClientOutputsJson;
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticationExtensionsClientOutputsJson {
#[doc = "Construct a new `AuthenticationExtensionsClientOutputsJson`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for AuthenticationExtensionsClientOutputsJson {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,92 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsDevicePublicKeyInputs)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsDevicePublicKeyInputs` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticationExtensionsDevicePublicKeyInputs;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `attestation` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "attestation")]
pub fn get_attestation(
this: &AuthenticationExtensionsDevicePublicKeyInputs,
) -> Option<::alloc::string::String>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `attestation` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "attestation")]
pub fn set_attestation(this: &AuthenticationExtensionsDevicePublicKeyInputs, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `attestationFormats` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "attestationFormats")]
pub fn get_attestation_formats(
this: &AuthenticationExtensionsDevicePublicKeyInputs,
) -> Option<::js_sys::Array>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `attestationFormats` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "attestationFormats")]
pub fn set_attestation_formats(
this: &AuthenticationExtensionsDevicePublicKeyInputs,
val: &::wasm_bindgen::JsValue,
);
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticationExtensionsDevicePublicKeyInputs {
#[doc = "Construct a new `AuthenticationExtensionsDevicePublicKeyInputs`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_attestation()` instead."]
pub fn attestation(&mut self, val: &str) -> &mut Self {
self.set_attestation(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_attestation_formats()` instead."]
pub fn attestation_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_attestation_formats(val);
self
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for AuthenticationExtensionsDevicePublicKeyInputs {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,66 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsDevicePublicKeyOutputs)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsDevicePublicKeyOutputs` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticationExtensionsDevicePublicKeyOutputs;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `signature` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "signature")]
pub fn get_signature(
this: &AuthenticationExtensionsDevicePublicKeyOutputs,
) -> Option<::js_sys::ArrayBuffer>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `signature` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "signature")]
pub fn set_signature(
this: &AuthenticationExtensionsDevicePublicKeyOutputs,
val: &::js_sys::ArrayBuffer,
);
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticationExtensionsDevicePublicKeyOutputs {
#[doc = "Construct a new `AuthenticationExtensionsDevicePublicKeyOutputs`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_signature()` instead."]
pub fn signature(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self {
self.set_signature(val);
self
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for AuthenticationExtensionsDevicePublicKeyOutputs {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,75 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsLargeBlobInputs)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsLargeBlobInputs` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
pub type AuthenticationExtensionsLargeBlobInputs;
#[doc = "Get the `read` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
#[wasm_bindgen(method, getter = "read")]
pub fn get_read(this: &AuthenticationExtensionsLargeBlobInputs) -> Option<bool>;
#[doc = "Change the `read` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
#[wasm_bindgen(method, setter = "read")]
pub fn set_read(this: &AuthenticationExtensionsLargeBlobInputs, val: bool);
#[doc = "Get the `support` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
#[wasm_bindgen(method, getter = "support")]
pub fn get_support(
this: &AuthenticationExtensionsLargeBlobInputs,
) -> Option<::alloc::string::String>;
#[doc = "Change the `support` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
#[wasm_bindgen(method, setter = "support")]
pub fn set_support(this: &AuthenticationExtensionsLargeBlobInputs, val: &str);
#[doc = "Get the `write` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
#[wasm_bindgen(method, getter = "write")]
pub fn get_write(this: &AuthenticationExtensionsLargeBlobInputs) -> Option<::js_sys::Object>;
#[doc = "Change the `write` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
#[wasm_bindgen(method, setter = "write")]
pub fn set_write(this: &AuthenticationExtensionsLargeBlobInputs, val: &::js_sys::Object);
}
impl AuthenticationExtensionsLargeBlobInputs {
#[doc = "Construct a new `AuthenticationExtensionsLargeBlobInputs`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_read()` instead."]
pub fn read(&mut self, val: bool) -> &mut Self {
self.set_read(val);
self
}
#[deprecated = "Use `set_support()` instead."]
pub fn support(&mut self, val: &str) -> &mut Self {
self.set_support(val);
self
}
#[deprecated = "Use `set_write()` instead."]
pub fn write(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_write(val);
self
}
}
impl Default for AuthenticationExtensionsLargeBlobInputs {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,75 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsLargeBlobOutputs)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsLargeBlobOutputs` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
pub type AuthenticationExtensionsLargeBlobOutputs;
#[doc = "Get the `blob` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
#[wasm_bindgen(method, getter = "blob")]
pub fn get_blob(
this: &AuthenticationExtensionsLargeBlobOutputs,
) -> Option<::js_sys::ArrayBuffer>;
#[doc = "Change the `blob` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
#[wasm_bindgen(method, setter = "blob")]
pub fn set_blob(this: &AuthenticationExtensionsLargeBlobOutputs, val: &::js_sys::ArrayBuffer);
#[doc = "Get the `supported` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
#[wasm_bindgen(method, getter = "supported")]
pub fn get_supported(this: &AuthenticationExtensionsLargeBlobOutputs) -> Option<bool>;
#[doc = "Change the `supported` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
#[wasm_bindgen(method, setter = "supported")]
pub fn set_supported(this: &AuthenticationExtensionsLargeBlobOutputs, val: bool);
#[doc = "Get the `written` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
#[wasm_bindgen(method, getter = "written")]
pub fn get_written(this: &AuthenticationExtensionsLargeBlobOutputs) -> Option<bool>;
#[doc = "Change the `written` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
#[wasm_bindgen(method, setter = "written")]
pub fn set_written(this: &AuthenticationExtensionsLargeBlobOutputs, val: bool);
}
impl AuthenticationExtensionsLargeBlobOutputs {
#[doc = "Construct a new `AuthenticationExtensionsLargeBlobOutputs`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_blob()` instead."]
pub fn blob(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self {
self.set_blob(val);
self
}
#[deprecated = "Use `set_supported()` instead."]
pub fn supported(&mut self, val: bool) -> &mut Self {
self.set_supported(val);
self
}
#[deprecated = "Use `set_written()` instead."]
pub fn written(&mut self, val: bool) -> &mut Self {
self.set_written(val);
self
}
}
impl Default for AuthenticationExtensionsLargeBlobOutputs {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,95 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsPRFInputs)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsPrfInputs` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticationExtensionsPrfInputs;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfValues")]
#[doc = "Get the `eval` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`, `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "eval")]
pub fn get_eval(
this: &AuthenticationExtensionsPrfInputs,
) -> Option<AuthenticationExtensionsPrfValues>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfValues")]
#[doc = "Change the `eval` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`, `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "eval")]
pub fn set_eval(
this: &AuthenticationExtensionsPrfInputs,
val: &AuthenticationExtensionsPrfValues,
);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `evalByCredential` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "evalByCredential")]
pub fn get_eval_by_credential(
this: &AuthenticationExtensionsPrfInputs,
) -> Option<::js_sys::Object>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `evalByCredential` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "evalByCredential")]
pub fn set_eval_by_credential(this: &AuthenticationExtensionsPrfInputs, val: &::js_sys::Object);
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticationExtensionsPrfInputs {
#[doc = "Construct a new `AuthenticationExtensionsPrfInputs`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfValues")]
#[deprecated = "Use `set_eval()` instead."]
pub fn eval(&mut self, val: &AuthenticationExtensionsPrfValues) -> &mut Self {
self.set_eval(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_eval_by_credential()` instead."]
pub fn eval_by_credential(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_eval_by_credential(val);
self
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for AuthenticationExtensionsPrfInputs {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,93 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsPRFOutputs)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsPrfOutputs` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticationExtensionsPrfOutputs;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `enabled` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "enabled")]
pub fn get_enabled(this: &AuthenticationExtensionsPrfOutputs) -> Option<bool>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `enabled` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "enabled")]
pub fn set_enabled(this: &AuthenticationExtensionsPrfOutputs, val: bool);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfValues")]
#[doc = "Get the `results` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`, `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "results")]
pub fn get_results(
this: &AuthenticationExtensionsPrfOutputs,
) -> Option<AuthenticationExtensionsPrfValues>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfValues")]
#[doc = "Change the `results` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`, `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "results")]
pub fn set_results(
this: &AuthenticationExtensionsPrfOutputs,
val: &AuthenticationExtensionsPrfValues,
);
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticationExtensionsPrfOutputs {
#[doc = "Construct a new `AuthenticationExtensionsPrfOutputs`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_enabled()` instead."]
pub fn enabled(&mut self, val: bool) -> &mut Self {
self.set_enabled(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsPrfValues")]
#[deprecated = "Use `set_results()` instead."]
pub fn results(&mut self, val: &AuthenticationExtensionsPrfValues) -> &mut Self {
self.set_results(val);
self
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for AuthenticationExtensionsPrfOutputs {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,80 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsPRFValues)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationExtensionsPrfValues` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticationExtensionsPrfValues;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `first` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "first")]
pub fn get_first(this: &AuthenticationExtensionsPrfValues) -> ::js_sys::Object;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `first` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "first")]
pub fn set_first(this: &AuthenticationExtensionsPrfValues, val: &::js_sys::Object);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `second` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "second")]
pub fn get_second(this: &AuthenticationExtensionsPrfValues) -> Option<::js_sys::Object>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `second` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "second")]
pub fn set_second(this: &AuthenticationExtensionsPrfValues, val: &::js_sys::Object);
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticationExtensionsPrfValues {
#[doc = "Construct a new `AuthenticationExtensionsPrfValues`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(first: &::js_sys::Object) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_first(first);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_first()` instead."]
pub fn first(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_first(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_second()` instead."]
pub fn second(&mut self, val: &::js_sys::Object) -> &mut Self {
self.set_second(val);
self
}
}

View File

@@ -0,0 +1,209 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationResponseJSON)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticationResponseJson` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticationResponseJson;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `authenticatorAttachment` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "authenticatorAttachment")]
pub fn get_authenticator_attachment(
this: &AuthenticationResponseJson,
) -> Option<::alloc::string::String>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `authenticatorAttachment` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "authenticatorAttachment")]
pub fn set_authenticator_attachment(this: &AuthenticationResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsClientOutputsJson")]
#[doc = "Get the `clientExtensionResults` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "clientExtensionResults")]
pub fn get_client_extension_results(
this: &AuthenticationResponseJson,
) -> AuthenticationExtensionsClientOutputsJson;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsClientOutputsJson")]
#[doc = "Change the `clientExtensionResults` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "clientExtensionResults")]
pub fn set_client_extension_results(
this: &AuthenticationResponseJson,
val: &AuthenticationExtensionsClientOutputsJson,
);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `id` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "id")]
pub fn get_id(this: &AuthenticationResponseJson) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `id` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "id")]
pub fn set_id(this: &AuthenticationResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `rawId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "rawId")]
pub fn get_raw_id(this: &AuthenticationResponseJson) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `rawId` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "rawId")]
pub fn set_raw_id(this: &AuthenticationResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticatorAssertionResponseJson")]
#[doc = "Get the `response` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`, `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "response")]
pub fn get_response(this: &AuthenticationResponseJson) -> AuthenticatorAssertionResponseJson;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticatorAssertionResponseJson")]
#[doc = "Change the `response` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`, `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "response")]
pub fn set_response(
this: &AuthenticationResponseJson,
val: &AuthenticatorAssertionResponseJson,
);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `type` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "type")]
pub fn get_type(this: &AuthenticationResponseJson) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `type` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "type")]
pub fn set_type(this: &AuthenticationResponseJson, val: &str);
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticationResponseJson {
#[cfg(all(
feature = "AuthenticationExtensionsClientOutputsJson",
feature = "AuthenticatorAssertionResponseJson",
))]
#[doc = "Construct a new `AuthenticationResponseJson`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `AuthenticationResponseJson`, `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(
client_extension_results: &AuthenticationExtensionsClientOutputsJson,
id: &str,
raw_id: &str,
response: &AuthenticatorAssertionResponseJson,
type_: &str,
) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_client_extension_results(client_extension_results);
ret.set_id(id);
ret.set_raw_id(raw_id);
ret.set_response(response);
ret.set_type(type_);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_authenticator_attachment()` instead."]
pub fn authenticator_attachment(&mut self, val: &str) -> &mut Self {
self.set_authenticator_attachment(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticationExtensionsClientOutputsJson")]
#[deprecated = "Use `set_client_extension_results()` instead."]
pub fn client_extension_results(
&mut self,
val: &AuthenticationExtensionsClientOutputsJson,
) -> &mut Self {
self.set_client_extension_results(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_id()` instead."]
pub fn id(&mut self, val: &str) -> &mut Self {
self.set_id(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_raw_id()` instead."]
pub fn raw_id(&mut self, val: &str) -> &mut Self {
self.set_raw_id(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AuthenticatorAssertionResponseJson")]
#[deprecated = "Use `set_response()` instead."]
pub fn response(&mut self, val: &AuthenticatorAssertionResponseJson) -> &mut Self {
self.set_response(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_type()` instead."]
pub fn type_(&mut self, val: &str) -> &mut Self {
self.set_type(val);
self
}
}

View File

@@ -0,0 +1,49 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = AuthenticatorResponse , extends = :: js_sys :: Object , js_name = AuthenticatorAssertionResponse , typescript_type = "AuthenticatorAssertionResponse")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticatorAssertionResponse` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"]
pub type AuthenticatorAssertionResponse;
# [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = authenticatorData)]
#[doc = "Getter for the `authenticatorData` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"]
pub fn authenticator_data(this: &AuthenticatorAssertionResponse) -> ::js_sys::ArrayBuffer;
# [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = signature)]
#[doc = "Getter for the `signature` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/signature)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"]
pub fn signature(this: &AuthenticatorAssertionResponse) -> ::js_sys::ArrayBuffer;
# [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = userHandle)]
#[doc = "Getter for the `userHandle` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/userHandle)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"]
pub fn user_handle(this: &AuthenticatorAssertionResponse) -> Option<::js_sys::ArrayBuffer>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = attestationObject)]
#[doc = "Getter for the `attestationObject` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/attestationObject)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn attestation_object(
this: &AuthenticatorAssertionResponse,
) -> Option<::js_sys::ArrayBuffer>;
}

View File

@@ -0,0 +1,162 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorAssertionResponseJSON)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticatorAssertionResponseJson` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticatorAssertionResponseJson;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `attestationObject` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "attestationObject")]
pub fn get_attestation_object(
this: &AuthenticatorAssertionResponseJson,
) -> Option<::alloc::string::String>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `attestationObject` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "attestationObject")]
pub fn set_attestation_object(this: &AuthenticatorAssertionResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `authenticatorData` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "authenticatorData")]
pub fn get_authenticator_data(
this: &AuthenticatorAssertionResponseJson,
) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `authenticatorData` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "authenticatorData")]
pub fn set_authenticator_data(this: &AuthenticatorAssertionResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `clientDataJSON` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "clientDataJSON")]
pub fn get_client_data_json(
this: &AuthenticatorAssertionResponseJson,
) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `clientDataJSON` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "clientDataJSON")]
pub fn set_client_data_json(this: &AuthenticatorAssertionResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `signature` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "signature")]
pub fn get_signature(this: &AuthenticatorAssertionResponseJson) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `signature` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "signature")]
pub fn set_signature(this: &AuthenticatorAssertionResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `userHandle` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "userHandle")]
pub fn get_user_handle(
this: &AuthenticatorAssertionResponseJson,
) -> Option<::alloc::string::String>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `userHandle` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "userHandle")]
pub fn set_user_handle(this: &AuthenticatorAssertionResponseJson, val: &str);
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticatorAssertionResponseJson {
#[doc = "Construct a new `AuthenticatorAssertionResponseJson`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(authenticator_data: &str, client_data_json: &str, signature: &str) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_authenticator_data(authenticator_data);
ret.set_client_data_json(client_data_json);
ret.set_signature(signature);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_attestation_object()` instead."]
pub fn attestation_object(&mut self, val: &str) -> &mut Self {
self.set_attestation_object(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_authenticator_data()` instead."]
pub fn authenticator_data(&mut self, val: &str) -> &mut Self {
self.set_authenticator_data(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_client_data_json()` instead."]
pub fn client_data_json(&mut self, val: &str) -> &mut Self {
self.set_client_data_json(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_signature()` instead."]
pub fn signature(&mut self, val: &str) -> &mut Self {
self.set_signature(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_user_handle()` instead."]
pub fn user_handle(&mut self, val: &str) -> &mut Self {
self.set_user_handle(val);
self
}
}

View File

@@ -0,0 +1,12 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `AuthenticatorAttachment` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttachment`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AuthenticatorAttachment {
Platform = "platform",
CrossPlatform = "cross-platform",
}

View File

@@ -0,0 +1,56 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = AuthenticatorResponse , extends = :: js_sys :: Object , js_name = AuthenticatorAttestationResponse , typescript_type = "AuthenticatorAttestationResponse")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticatorAttestationResponse` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
pub type AuthenticatorAttestationResponse;
# [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAttestationResponse" , js_name = attestationObject)]
#[doc = "Getter for the `attestationObject` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/attestationObject)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
pub fn attestation_object(this: &AuthenticatorAttestationResponse) -> ::js_sys::ArrayBuffer;
# [wasm_bindgen (catch , method , structural , js_class = "AuthenticatorAttestationResponse" , js_name = getAuthenticatorData)]
#[doc = "The `getAuthenticatorData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
pub fn get_authenticator_data(
this: &AuthenticatorAttestationResponse,
) -> Result<::js_sys::ArrayBuffer, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AuthenticatorAttestationResponse" , js_name = getPublicKey)]
#[doc = "The `getPublicKey()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
pub fn get_public_key(
this: &AuthenticatorAttestationResponse,
) -> Result<Option<::js_sys::ArrayBuffer>, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "AuthenticatorAttestationResponse" , js_name = getPublicKeyAlgorithm)]
#[doc = "The `getPublicKeyAlgorithm()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
pub fn get_public_key_algorithm(
this: &AuthenticatorAttestationResponse,
) -> Result<i32, JsValue>;
# [wasm_bindgen (method , structural , js_class = "AuthenticatorAttestationResponse" , js_name = getTransports)]
#[doc = "The `getTransports()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getTransports)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"]
pub fn get_transports(this: &AuthenticatorAttestationResponse) -> ::js_sys::Array;
}

View File

@@ -0,0 +1,197 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorAttestationResponseJSON)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticatorAttestationResponseJson` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type AuthenticatorAttestationResponseJson;
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `attestationObject` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "attestationObject")]
pub fn get_attestation_object(
this: &AuthenticatorAttestationResponseJson,
) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `attestationObject` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "attestationObject")]
pub fn set_attestation_object(this: &AuthenticatorAttestationResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `authenticatorData` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "authenticatorData")]
pub fn get_authenticator_data(
this: &AuthenticatorAttestationResponseJson,
) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `authenticatorData` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "authenticatorData")]
pub fn set_authenticator_data(this: &AuthenticatorAttestationResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `clientDataJSON` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "clientDataJSON")]
pub fn get_client_data_json(
this: &AuthenticatorAttestationResponseJson,
) -> ::alloc::string::String;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `clientDataJSON` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "clientDataJSON")]
pub fn set_client_data_json(this: &AuthenticatorAttestationResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `publicKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "publicKey")]
pub fn get_public_key(
this: &AuthenticatorAttestationResponseJson,
) -> Option<::alloc::string::String>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `publicKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "publicKey")]
pub fn set_public_key(this: &AuthenticatorAttestationResponseJson, val: &str);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `publicKeyAlgorithm` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "publicKeyAlgorithm")]
pub fn get_public_key_algorithm(this: &AuthenticatorAttestationResponseJson) -> f64;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `publicKeyAlgorithm` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "publicKeyAlgorithm")]
pub fn set_public_key_algorithm(this: &AuthenticatorAttestationResponseJson, val: f64);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `transports` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "transports")]
pub fn get_transports(this: &AuthenticatorAttestationResponseJson) -> ::js_sys::Array;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `transports` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "transports")]
pub fn set_transports(
this: &AuthenticatorAttestationResponseJson,
val: &::wasm_bindgen::JsValue,
);
}
#[cfg(web_sys_unstable_apis)]
impl AuthenticatorAttestationResponseJson {
#[doc = "Construct a new `AuthenticatorAttestationResponseJson`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(
attestation_object: &str,
authenticator_data: &str,
client_data_json: &str,
public_key_algorithm: f64,
transports: &::wasm_bindgen::JsValue,
) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_attestation_object(attestation_object);
ret.set_authenticator_data(authenticator_data);
ret.set_client_data_json(client_data_json);
ret.set_public_key_algorithm(public_key_algorithm);
ret.set_transports(transports);
ret
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_attestation_object()` instead."]
pub fn attestation_object(&mut self, val: &str) -> &mut Self {
self.set_attestation_object(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_authenticator_data()` instead."]
pub fn authenticator_data(&mut self, val: &str) -> &mut Self {
self.set_authenticator_data(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_client_data_json()` instead."]
pub fn client_data_json(&mut self, val: &str) -> &mut Self {
self.set_client_data_json(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_public_key()` instead."]
pub fn public_key(&mut self, val: &str) -> &mut Self {
self.set_public_key(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_public_key_algorithm()` instead."]
pub fn public_key_algorithm(&mut self, val: f64) -> &mut Self {
self.set_public_key_algorithm(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_transports()` instead."]
pub fn transports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_transports(val);
self
}
}

View File

@@ -0,0 +1,22 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorResponse , typescript_type = "AuthenticatorResponse")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticatorResponse` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorResponse)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`*"]
pub type AuthenticatorResponse;
# [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorResponse" , js_name = clientDataJSON)]
#[doc = "Getter for the `clientDataJSON` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorResponse/clientDataJSON)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`*"]
pub fn client_data_json(this: &AuthenticatorResponse) -> ::js_sys::ArrayBuffer;
}

View File

@@ -0,0 +1,106 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorSelectionCriteria)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AuthenticatorSelectionCriteria` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"]
pub type AuthenticatorSelectionCriteria;
#[cfg(feature = "AuthenticatorAttachment")]
#[doc = "Get the `authenticatorAttachment` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttachment`, `AuthenticatorSelectionCriteria`*"]
#[wasm_bindgen(method, getter = "authenticatorAttachment")]
pub fn get_authenticator_attachment(
this: &AuthenticatorSelectionCriteria,
) -> Option<AuthenticatorAttachment>;
#[cfg(feature = "AuthenticatorAttachment")]
#[doc = "Change the `authenticatorAttachment` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttachment`, `AuthenticatorSelectionCriteria`*"]
#[wasm_bindgen(method, setter = "authenticatorAttachment")]
pub fn set_authenticator_attachment(
this: &AuthenticatorSelectionCriteria,
val: AuthenticatorAttachment,
);
#[doc = "Get the `requireResidentKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"]
#[wasm_bindgen(method, getter = "requireResidentKey")]
pub fn get_require_resident_key(this: &AuthenticatorSelectionCriteria) -> Option<bool>;
#[doc = "Change the `requireResidentKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"]
#[wasm_bindgen(method, setter = "requireResidentKey")]
pub fn set_require_resident_key(this: &AuthenticatorSelectionCriteria, val: bool);
#[doc = "Get the `residentKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"]
#[wasm_bindgen(method, getter = "residentKey")]
pub fn get_resident_key(
this: &AuthenticatorSelectionCriteria,
) -> Option<::alloc::string::String>;
#[doc = "Change the `residentKey` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"]
#[wasm_bindgen(method, setter = "residentKey")]
pub fn set_resident_key(this: &AuthenticatorSelectionCriteria, val: &str);
#[cfg(feature = "UserVerificationRequirement")]
#[doc = "Get the `userVerification` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `UserVerificationRequirement`*"]
#[wasm_bindgen(method, getter = "userVerification")]
pub fn get_user_verification(
this: &AuthenticatorSelectionCriteria,
) -> Option<UserVerificationRequirement>;
#[cfg(feature = "UserVerificationRequirement")]
#[doc = "Change the `userVerification` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `UserVerificationRequirement`*"]
#[wasm_bindgen(method, setter = "userVerification")]
pub fn set_user_verification(
this: &AuthenticatorSelectionCriteria,
val: UserVerificationRequirement,
);
}
impl AuthenticatorSelectionCriteria {
#[doc = "Construct a new `AuthenticatorSelectionCriteria`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(feature = "AuthenticatorAttachment")]
#[deprecated = "Use `set_authenticator_attachment()` instead."]
pub fn authenticator_attachment(&mut self, val: AuthenticatorAttachment) -> &mut Self {
self.set_authenticator_attachment(val);
self
}
#[deprecated = "Use `set_require_resident_key()` instead."]
pub fn require_resident_key(&mut self, val: bool) -> &mut Self {
self.set_require_resident_key(val);
self
}
#[deprecated = "Use `set_resident_key()` instead."]
pub fn resident_key(&mut self, val: &str) -> &mut Self {
self.set_resident_key(val);
self
}
#[cfg(feature = "UserVerificationRequirement")]
#[deprecated = "Use `set_user_verification()` instead."]
pub fn user_verification(&mut self, val: UserVerificationRequirement) -> &mut Self {
self.set_user_verification(val);
self
}
}
impl Default for AuthenticatorSelectionCriteria {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,14 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `AuthenticatorTransport` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AuthenticatorTransport`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AuthenticatorTransport {
Usb = "usb",
Nfc = "nfc",
Ble = "ble",
Internal = "internal",
}

View File

@@ -0,0 +1,11 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `AutoKeyword` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutoKeyword`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AutoKeyword {
Auto = "auto",
}

View File

@@ -0,0 +1,88 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AutocompleteInfo)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AutocompleteInfo` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
pub type AutocompleteInfo;
#[doc = "Get the `addressType` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
#[wasm_bindgen(method, getter = "addressType")]
pub fn get_address_type(this: &AutocompleteInfo) -> Option<::alloc::string::String>;
#[doc = "Change the `addressType` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
#[wasm_bindgen(method, setter = "addressType")]
pub fn set_address_type(this: &AutocompleteInfo, val: &str);
#[doc = "Get the `contactType` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
#[wasm_bindgen(method, getter = "contactType")]
pub fn get_contact_type(this: &AutocompleteInfo) -> Option<::alloc::string::String>;
#[doc = "Change the `contactType` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
#[wasm_bindgen(method, setter = "contactType")]
pub fn set_contact_type(this: &AutocompleteInfo, val: &str);
#[doc = "Get the `fieldName` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
#[wasm_bindgen(method, getter = "fieldName")]
pub fn get_field_name(this: &AutocompleteInfo) -> Option<::alloc::string::String>;
#[doc = "Change the `fieldName` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
#[wasm_bindgen(method, setter = "fieldName")]
pub fn set_field_name(this: &AutocompleteInfo, val: &str);
#[doc = "Get the `section` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
#[wasm_bindgen(method, getter = "section")]
pub fn get_section(this: &AutocompleteInfo) -> Option<::alloc::string::String>;
#[doc = "Change the `section` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
#[wasm_bindgen(method, setter = "section")]
pub fn set_section(this: &AutocompleteInfo, val: &str);
}
impl AutocompleteInfo {
#[doc = "Construct a new `AutocompleteInfo`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_address_type()` instead."]
pub fn address_type(&mut self, val: &str) -> &mut Self {
self.set_address_type(val);
self
}
#[deprecated = "Use `set_contact_type()` instead."]
pub fn contact_type(&mut self, val: &str) -> &mut Self {
self.set_contact_type(val);
self
}
#[deprecated = "Use `set_field_name()` instead."]
pub fn field_name(&mut self, val: &str) -> &mut Self {
self.set_field_name(val);
self
}
#[deprecated = "Use `set_section()` instead."]
pub fn section(&mut self, val: &str) -> &mut Self {
self.set_section(val);
self
}
}
impl Default for AutocompleteInfo {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,29 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = BarProp , typescript_type = "BarProp")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `BarProp` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BarProp`*"]
pub type BarProp;
# [wasm_bindgen (structural , catch , method , getter , js_class = "BarProp" , js_name = visible)]
#[doc = "Getter for the `visible` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BarProp`*"]
pub fn visible(this: &BarProp) -> Result<bool, JsValue>;
# [wasm_bindgen (structural , catch , method , setter , js_class = "BarProp" , js_name = visible)]
#[doc = "Setter for the `visible` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BarProp`*"]
pub fn set_visible(this: &BarProp, value: bool) -> Result<(), JsValue>;
}

View File

@@ -0,0 +1,433 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BaseAudioContext , typescript_type = "BaseAudioContext")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `BaseAudioContext` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub type BaseAudioContext;
#[cfg(feature = "AudioDestinationNode")]
# [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = destination)]
#[doc = "Getter for the `destination` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/destination)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`, `BaseAudioContext`*"]
pub fn destination(this: &BaseAudioContext) -> AudioDestinationNode;
# [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = sampleRate)]
#[doc = "Getter for the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/sampleRate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub fn sample_rate(this: &BaseAudioContext) -> f32;
# [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = currentTime)]
#[doc = "Getter for the `currentTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/currentTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub fn current_time(this: &BaseAudioContext) -> f64;
#[cfg(feature = "AudioListener")]
# [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = listener)]
#[doc = "Getter for the `listener` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/listener)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioListener`, `BaseAudioContext`*"]
pub fn listener(this: &BaseAudioContext) -> AudioListener;
#[cfg(feature = "AudioContextState")]
# [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = state)]
#[doc = "Getter for the `state` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/state)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextState`, `BaseAudioContext`*"]
pub fn state(this: &BaseAudioContext) -> AudioContextState;
#[cfg(feature = "AudioWorklet")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "BaseAudioContext" , js_name = audioWorklet)]
#[doc = "Getter for the `audioWorklet` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/audioWorklet)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioWorklet`, `BaseAudioContext`*"]
pub fn audio_worklet(this: &BaseAudioContext) -> Result<AudioWorklet, JsValue>;
# [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = onstatechange)]
#[doc = "Getter for the `onstatechange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub fn onstatechange(this: &BaseAudioContext) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "BaseAudioContext" , js_name = onstatechange)]
#[doc = "Setter for the `onstatechange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub fn set_onstatechange(this: &BaseAudioContext, value: Option<&::js_sys::Function>);
#[cfg(feature = "AnalyserNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createAnalyser)]
#[doc = "The `createAnalyser()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createAnalyser)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `BaseAudioContext`*"]
pub fn create_analyser(this: &BaseAudioContext) -> Result<AnalyserNode, JsValue>;
#[cfg(feature = "BiquadFilterNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBiquadFilter)]
#[doc = "The `createBiquadFilter()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBiquadFilter)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`*"]
pub fn create_biquad_filter(this: &BaseAudioContext) -> Result<BiquadFilterNode, JsValue>;
#[cfg(feature = "AudioBuffer")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBuffer)]
#[doc = "The `createBuffer()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `BaseAudioContext`*"]
pub fn create_buffer(
this: &BaseAudioContext,
number_of_channels: u32,
length: u32,
sample_rate: f32,
) -> Result<AudioBuffer, JsValue>;
#[cfg(feature = "AudioBufferSourceNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBufferSource)]
#[doc = "The `createBufferSource()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBufferSource)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `BaseAudioContext`*"]
pub fn create_buffer_source(this: &BaseAudioContext) -> Result<AudioBufferSourceNode, JsValue>;
#[cfg(feature = "ChannelMergerNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger)]
#[doc = "The `createChannelMerger()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*"]
pub fn create_channel_merger(this: &BaseAudioContext) -> Result<ChannelMergerNode, JsValue>;
#[cfg(feature = "ChannelMergerNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger)]
#[doc = "The `createChannelMerger()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*"]
pub fn create_channel_merger_with_number_of_inputs(
this: &BaseAudioContext,
number_of_inputs: u32,
) -> Result<ChannelMergerNode, JsValue>;
#[cfg(feature = "ChannelSplitterNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter)]
#[doc = "The `createChannelSplitter()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"]
pub fn create_channel_splitter(this: &BaseAudioContext)
-> Result<ChannelSplitterNode, JsValue>;
#[cfg(feature = "ChannelSplitterNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter)]
#[doc = "The `createChannelSplitter()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"]
pub fn create_channel_splitter_with_number_of_outputs(
this: &BaseAudioContext,
number_of_outputs: u32,
) -> Result<ChannelSplitterNode, JsValue>;
#[cfg(feature = "ConstantSourceNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createConstantSource)]
#[doc = "The `createConstantSource()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConstantSource)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConstantSourceNode`*"]
pub fn create_constant_source(this: &BaseAudioContext) -> Result<ConstantSourceNode, JsValue>;
#[cfg(feature = "ConvolverNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createConvolver)]
#[doc = "The `createConvolver()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConvolver)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`*"]
pub fn create_convolver(this: &BaseAudioContext) -> Result<ConvolverNode, JsValue>;
#[cfg(feature = "DelayNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay)]
#[doc = "The `createDelay()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*"]
pub fn create_delay(this: &BaseAudioContext) -> Result<DelayNode, JsValue>;
#[cfg(feature = "DelayNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay)]
#[doc = "The `createDelay()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*"]
pub fn create_delay_with_max_delay_time(
this: &BaseAudioContext,
max_delay_time: f64,
) -> Result<DelayNode, JsValue>;
#[cfg(feature = "DynamicsCompressorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDynamicsCompressor)]
#[doc = "The `createDynamicsCompressor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDynamicsCompressor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`*"]
pub fn create_dynamics_compressor(
this: &BaseAudioContext,
) -> Result<DynamicsCompressorNode, JsValue>;
#[cfg(feature = "GainNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createGain)]
#[doc = "The `createGain()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createGain)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `GainNode`*"]
pub fn create_gain(this: &BaseAudioContext) -> Result<GainNode, JsValue>;
#[cfg(feature = "IirFilterNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createIIRFilter)]
#[doc = "The `createIIRFilter()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createIIRFilter)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `IirFilterNode`*"]
pub fn create_iir_filter(
this: &BaseAudioContext,
feedforward: &::wasm_bindgen::JsValue,
feedback: &::wasm_bindgen::JsValue,
) -> Result<IirFilterNode, JsValue>;
#[cfg(feature = "OscillatorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createOscillator)]
#[doc = "The `createOscillator()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createOscillator)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`*"]
pub fn create_oscillator(this: &BaseAudioContext) -> Result<OscillatorNode, JsValue>;
#[cfg(feature = "PannerNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPanner)]
#[doc = "The `createPanner()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPanner)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`*"]
pub fn create_panner(this: &BaseAudioContext) -> Result<PannerNode, JsValue>;
#[cfg(feature = "PeriodicWave")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*"]
pub fn create_periodic_wave(
this: &BaseAudioContext,
real: &mut [f32],
imag: &mut [f32],
) -> Result<PeriodicWave, JsValue>;
#[cfg(feature = "PeriodicWave")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*"]
pub fn create_periodic_wave_with_f32_array_and_f32_slice(
this: &BaseAudioContext,
real: &::js_sys::Float32Array,
imag: &mut [f32],
) -> Result<PeriodicWave, JsValue>;
#[cfg(feature = "PeriodicWave")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*"]
pub fn create_periodic_wave_with_f32_slice_and_f32_array(
this: &BaseAudioContext,
real: &mut [f32],
imag: &::js_sys::Float32Array,
) -> Result<PeriodicWave, JsValue>;
#[cfg(feature = "PeriodicWave")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*"]
pub fn create_periodic_wave_with_f32_array_and_f32_array(
this: &BaseAudioContext,
real: &::js_sys::Float32Array,
imag: &::js_sys::Float32Array,
) -> Result<PeriodicWave, JsValue>;
#[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"]
pub fn create_periodic_wave_with_constraints(
this: &BaseAudioContext,
real: &mut [f32],
imag: &mut [f32],
constraints: &PeriodicWaveConstraints,
) -> Result<PeriodicWave, JsValue>;
#[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"]
pub fn create_periodic_wave_with_f32_array_and_f32_slice_and_constraints(
this: &BaseAudioContext,
real: &::js_sys::Float32Array,
imag: &mut [f32],
constraints: &PeriodicWaveConstraints,
) -> Result<PeriodicWave, JsValue>;
#[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"]
pub fn create_periodic_wave_with_f32_slice_and_f32_array_and_constraints(
this: &BaseAudioContext,
real: &mut [f32],
imag: &::js_sys::Float32Array,
constraints: &PeriodicWaveConstraints,
) -> Result<PeriodicWave, JsValue>;
#[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)]
#[doc = "The `createPeriodicWave()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"]
pub fn create_periodic_wave_with_f32_array_and_f32_array_and_constraints(
this: &BaseAudioContext,
real: &::js_sys::Float32Array,
imag: &::js_sys::Float32Array,
constraints: &PeriodicWaveConstraints,
) -> Result<PeriodicWave, JsValue>;
#[cfg(feature = "ScriptProcessorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)]
#[doc = "The `createScriptProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"]
pub fn create_script_processor(this: &BaseAudioContext)
-> Result<ScriptProcessorNode, JsValue>;
#[cfg(feature = "ScriptProcessorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)]
#[doc = "The `createScriptProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"]
pub fn create_script_processor_with_buffer_size(
this: &BaseAudioContext,
buffer_size: u32,
) -> Result<ScriptProcessorNode, JsValue>;
#[cfg(feature = "ScriptProcessorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)]
#[doc = "The `createScriptProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"]
pub fn create_script_processor_with_buffer_size_and_number_of_input_channels(
this: &BaseAudioContext,
buffer_size: u32,
number_of_input_channels: u32,
) -> Result<ScriptProcessorNode, JsValue>;
#[cfg(feature = "ScriptProcessorNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)]
#[doc = "The `createScriptProcessor()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"]
pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels(
this: &BaseAudioContext,
buffer_size: u32,
number_of_input_channels: u32,
number_of_output_channels: u32,
) -> Result<ScriptProcessorNode, JsValue>;
#[cfg(feature = "StereoPannerNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createStereoPanner)]
#[doc = "The `createStereoPanner()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createStereoPanner)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`*"]
pub fn create_stereo_panner(this: &BaseAudioContext) -> Result<StereoPannerNode, JsValue>;
#[cfg(feature = "WaveShaperNode")]
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createWaveShaper)]
#[doc = "The `createWaveShaper()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createWaveShaper)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`*"]
pub fn create_wave_shaper(this: &BaseAudioContext) -> Result<WaveShaperNode, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)]
#[doc = "The `decodeAudioData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub fn decode_audio_data(
this: &BaseAudioContext,
audio_data: &::js_sys::ArrayBuffer,
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)]
#[doc = "The `decodeAudioData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub fn decode_audio_data_with_success_callback(
this: &BaseAudioContext,
audio_data: &::js_sys::ArrayBuffer,
success_callback: &::js_sys::Function,
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)]
#[doc = "The `decodeAudioData()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub fn decode_audio_data_with_success_callback_and_error_callback(
this: &BaseAudioContext,
audio_data: &::js_sys::ArrayBuffer,
success_callback: &::js_sys::Function,
error_callback: &::js_sys::Function,
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = resume)]
#[doc = "The `resume()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/resume)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"]
pub fn resume(this: &BaseAudioContext) -> Result<::js_sys::Promise, JsValue>;
}

View File

@@ -0,0 +1,106 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = BaseComputedKeyframe)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `BaseComputedKeyframe` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
pub type BaseComputedKeyframe;
#[cfg(feature = "CompositeOperation")]
#[doc = "Get the `composite` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`, `CompositeOperation`*"]
#[wasm_bindgen(method, getter = "composite")]
pub fn get_composite(this: &BaseComputedKeyframe) -> Option<CompositeOperation>;
#[cfg(feature = "CompositeOperation")]
#[doc = "Change the `composite` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`, `CompositeOperation`*"]
#[wasm_bindgen(method, setter = "composite")]
pub fn set_composite(this: &BaseComputedKeyframe, val: Option<CompositeOperation>);
#[doc = "Get the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
#[wasm_bindgen(method, getter = "easing")]
pub fn get_easing(this: &BaseComputedKeyframe) -> Option<::alloc::string::String>;
#[doc = "Change the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
#[wasm_bindgen(method, setter = "easing")]
pub fn set_easing(this: &BaseComputedKeyframe, val: &str);
#[doc = "Get the `offset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
#[wasm_bindgen(method, getter = "offset")]
pub fn get_offset(this: &BaseComputedKeyframe) -> Option<f64>;
#[doc = "Change the `offset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
#[wasm_bindgen(method, setter = "offset")]
pub fn set_offset(this: &BaseComputedKeyframe, val: Option<f64>);
#[doc = "Get the `simulateComputeValuesFailure` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
#[wasm_bindgen(method, getter = "simulateComputeValuesFailure")]
pub fn get_simulate_compute_values_failure(this: &BaseComputedKeyframe) -> Option<bool>;
#[doc = "Change the `simulateComputeValuesFailure` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
#[wasm_bindgen(method, setter = "simulateComputeValuesFailure")]
pub fn set_simulate_compute_values_failure(this: &BaseComputedKeyframe, val: bool);
#[doc = "Get the `computedOffset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
#[wasm_bindgen(method, getter = "computedOffset")]
pub fn get_computed_offset(this: &BaseComputedKeyframe) -> Option<f64>;
#[doc = "Change the `computedOffset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
#[wasm_bindgen(method, setter = "computedOffset")]
pub fn set_computed_offset(this: &BaseComputedKeyframe, val: f64);
}
impl BaseComputedKeyframe {
#[doc = "Construct a new `BaseComputedKeyframe`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(feature = "CompositeOperation")]
#[deprecated = "Use `set_composite()` instead."]
pub fn composite(&mut self, val: Option<CompositeOperation>) -> &mut Self {
self.set_composite(val);
self
}
#[deprecated = "Use `set_easing()` instead."]
pub fn easing(&mut self, val: &str) -> &mut Self {
self.set_easing(val);
self
}
#[deprecated = "Use `set_offset()` instead."]
pub fn offset(&mut self, val: Option<f64>) -> &mut Self {
self.set_offset(val);
self
}
#[deprecated = "Use `set_simulate_compute_values_failure()` instead."]
pub fn simulate_compute_values_failure(&mut self, val: bool) -> &mut Self {
self.set_simulate_compute_values_failure(val);
self
}
#[deprecated = "Use `set_computed_offset()` instead."]
pub fn computed_offset(&mut self, val: f64) -> &mut Self {
self.set_computed_offset(val);
self
}
}
impl Default for BaseComputedKeyframe {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,91 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = BaseKeyframe)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `BaseKeyframe` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"]
pub type BaseKeyframe;
#[cfg(feature = "CompositeOperation")]
#[doc = "Get the `composite` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`, `CompositeOperation`*"]
#[wasm_bindgen(method, getter = "composite")]
pub fn get_composite(this: &BaseKeyframe) -> Option<CompositeOperation>;
#[cfg(feature = "CompositeOperation")]
#[doc = "Change the `composite` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`, `CompositeOperation`*"]
#[wasm_bindgen(method, setter = "composite")]
pub fn set_composite(this: &BaseKeyframe, val: Option<CompositeOperation>);
#[doc = "Get the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"]
#[wasm_bindgen(method, getter = "easing")]
pub fn get_easing(this: &BaseKeyframe) -> Option<::alloc::string::String>;
#[doc = "Change the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"]
#[wasm_bindgen(method, setter = "easing")]
pub fn set_easing(this: &BaseKeyframe, val: &str);
#[doc = "Get the `offset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"]
#[wasm_bindgen(method, getter = "offset")]
pub fn get_offset(this: &BaseKeyframe) -> Option<f64>;
#[doc = "Change the `offset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"]
#[wasm_bindgen(method, setter = "offset")]
pub fn set_offset(this: &BaseKeyframe, val: Option<f64>);
#[doc = "Get the `simulateComputeValuesFailure` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"]
#[wasm_bindgen(method, getter = "simulateComputeValuesFailure")]
pub fn get_simulate_compute_values_failure(this: &BaseKeyframe) -> Option<bool>;
#[doc = "Change the `simulateComputeValuesFailure` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"]
#[wasm_bindgen(method, setter = "simulateComputeValuesFailure")]
pub fn set_simulate_compute_values_failure(this: &BaseKeyframe, val: bool);
}
impl BaseKeyframe {
#[doc = "Construct a new `BaseKeyframe`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(feature = "CompositeOperation")]
#[deprecated = "Use `set_composite()` instead."]
pub fn composite(&mut self, val: Option<CompositeOperation>) -> &mut Self {
self.set_composite(val);
self
}
#[deprecated = "Use `set_easing()` instead."]
pub fn easing(&mut self, val: &str) -> &mut Self {
self.set_easing(val);
self
}
#[deprecated = "Use `set_offset()` instead."]
pub fn offset(&mut self, val: Option<f64>) -> &mut Self {
self.set_offset(val);
self
}
#[deprecated = "Use `set_simulate_compute_values_failure()` instead."]
pub fn simulate_compute_values_failure(&mut self, val: bool) -> &mut Self {
self.set_simulate_compute_values_failure(val);
self
}
}
impl Default for BaseKeyframe {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,73 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasePropertyIndexedKeyframe)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `BasePropertyIndexedKeyframe` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
pub type BasePropertyIndexedKeyframe;
#[doc = "Get the `composite` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
#[wasm_bindgen(method, getter = "composite")]
pub fn get_composite(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue;
#[doc = "Change the `composite` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
#[wasm_bindgen(method, setter = "composite")]
pub fn set_composite(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue);
#[doc = "Get the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
#[wasm_bindgen(method, getter = "easing")]
pub fn get_easing(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue;
#[doc = "Change the `easing` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
#[wasm_bindgen(method, setter = "easing")]
pub fn set_easing(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue);
#[doc = "Get the `offset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
#[wasm_bindgen(method, getter = "offset")]
pub fn get_offset(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue;
#[doc = "Change the `offset` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
#[wasm_bindgen(method, setter = "offset")]
pub fn set_offset(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue);
}
impl BasePropertyIndexedKeyframe {
#[doc = "Construct a new `BasePropertyIndexedKeyframe`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_composite()` instead."]
pub fn composite(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_composite(val);
self
}
#[deprecated = "Use `set_easing()` instead."]
pub fn easing(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_easing(val);
self
}
#[deprecated = "Use `set_offset()` instead."]
pub fn offset(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_offset(val);
self
}
}
impl Default for BasePropertyIndexedKeyframe {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,58 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasicCardRequest)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `BasicCardRequest` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
pub type BasicCardRequest;
#[doc = "Get the `supportedNetworks` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
#[wasm_bindgen(method, getter = "supportedNetworks")]
pub fn get_supported_networks(this: &BasicCardRequest) -> Option<::js_sys::Array>;
#[doc = "Change the `supportedNetworks` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
#[wasm_bindgen(method, setter = "supportedNetworks")]
pub fn set_supported_networks(this: &BasicCardRequest, val: &::wasm_bindgen::JsValue);
#[doc = "Get the `supportedTypes` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
#[wasm_bindgen(method, getter = "supportedTypes")]
pub fn get_supported_types(this: &BasicCardRequest) -> Option<::js_sys::Array>;
#[doc = "Change the `supportedTypes` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
#[wasm_bindgen(method, setter = "supportedTypes")]
pub fn set_supported_types(this: &BasicCardRequest, val: &::wasm_bindgen::JsValue);
}
impl BasicCardRequest {
#[doc = "Construct a new `BasicCardRequest`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[deprecated = "Use `set_supported_networks()` instead."]
pub fn supported_networks(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_supported_networks(val);
self
}
#[deprecated = "Use `set_supported_types()` instead."]
pub fn supported_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_supported_types(val);
self
}
}
impl Default for BasicCardRequest {
fn default() -> Self {
Self::new()
}
}

View File

@@ -0,0 +1,117 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasicCardResponse)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `BasicCardResponse` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
pub type BasicCardResponse;
#[cfg(feature = "PaymentAddress")]
#[doc = "Get the `billingAddress` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`, `PaymentAddress`*"]
#[wasm_bindgen(method, getter = "billingAddress")]
pub fn get_billing_address(this: &BasicCardResponse) -> Option<PaymentAddress>;
#[cfg(feature = "PaymentAddress")]
#[doc = "Change the `billingAddress` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`, `PaymentAddress`*"]
#[wasm_bindgen(method, setter = "billingAddress")]
pub fn set_billing_address(this: &BasicCardResponse, val: Option<&PaymentAddress>);
#[doc = "Get the `cardNumber` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, getter = "cardNumber")]
pub fn get_card_number(this: &BasicCardResponse) -> ::alloc::string::String;
#[doc = "Change the `cardNumber` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, setter = "cardNumber")]
pub fn set_card_number(this: &BasicCardResponse, val: &str);
#[doc = "Get the `cardSecurityCode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, getter = "cardSecurityCode")]
pub fn get_card_security_code(this: &BasicCardResponse) -> Option<::alloc::string::String>;
#[doc = "Change the `cardSecurityCode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, setter = "cardSecurityCode")]
pub fn set_card_security_code(this: &BasicCardResponse, val: &str);
#[doc = "Get the `cardholderName` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, getter = "cardholderName")]
pub fn get_cardholder_name(this: &BasicCardResponse) -> Option<::alloc::string::String>;
#[doc = "Change the `cardholderName` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, setter = "cardholderName")]
pub fn set_cardholder_name(this: &BasicCardResponse, val: &str);
#[doc = "Get the `expiryMonth` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, getter = "expiryMonth")]
pub fn get_expiry_month(this: &BasicCardResponse) -> Option<::alloc::string::String>;
#[doc = "Change the `expiryMonth` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, setter = "expiryMonth")]
pub fn set_expiry_month(this: &BasicCardResponse, val: &str);
#[doc = "Get the `expiryYear` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, getter = "expiryYear")]
pub fn get_expiry_year(this: &BasicCardResponse) -> Option<::alloc::string::String>;
#[doc = "Change the `expiryYear` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
#[wasm_bindgen(method, setter = "expiryYear")]
pub fn set_expiry_year(this: &BasicCardResponse, val: &str);
}
impl BasicCardResponse {
#[doc = "Construct a new `BasicCardResponse`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"]
pub fn new(card_number: &str) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.set_card_number(card_number);
ret
}
#[cfg(feature = "PaymentAddress")]
#[deprecated = "Use `set_billing_address()` instead."]
pub fn billing_address(&mut self, val: Option<&PaymentAddress>) -> &mut Self {
self.set_billing_address(val);
self
}
#[deprecated = "Use `set_card_number()` instead."]
pub fn card_number(&mut self, val: &str) -> &mut Self {
self.set_card_number(val);
self
}
#[deprecated = "Use `set_card_security_code()` instead."]
pub fn card_security_code(&mut self, val: &str) -> &mut Self {
self.set_card_security_code(val);
self
}
#[deprecated = "Use `set_cardholder_name()` instead."]
pub fn cardholder_name(&mut self, val: &str) -> &mut Self {
self.set_cardholder_name(val);
self
}
#[deprecated = "Use `set_expiry_month()` instead."]
pub fn expiry_month(&mut self, val: &str) -> &mut Self {
self.set_expiry_month(val);
self
}
#[deprecated = "Use `set_expiry_year()` instead."]
pub fn expiry_year(&mut self, val: &str) -> &mut Self {
self.set_expiry_year(val);
self
}
}

Some files were not shown because too many files have changed in this diff Show More