1 #![allow(unused_imports)]
4 use wasm_bindgen
::prelude
::*;
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasePropertyIndexedKeyframe)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `BasePropertyIndexedKeyframe` dictionary."]
11 #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
12 pub type BasePropertyIndexedKeyframe
;
14 impl BasePropertyIndexedKeyframe
{
15 #[doc = "Construct a new `BasePropertyIndexedKeyframe`."]
17 #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
18 pub fn new() -> Self {
20 let mut ret
: Self = ::wasm_bindgen
::JsCast
::unchecked_into(::js_sys
::Object
::new());
23 #[doc = "Change the `composite` field of this object."]
25 #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
26 pub fn composite(&mut self, val
: &::wasm_bindgen
::JsValue
) -> &mut Self {
27 use wasm_bindgen
::JsValue
;
28 let r
= ::js_sys
::Reflect
::set(
30 &JsValue
::from("composite"),
35 "setting properties should never fail on our dictionary objects"
40 #[doc = "Change the `easing` field of this object."]
42 #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
43 pub fn easing(&mut self, val
: &::wasm_bindgen
::JsValue
) -> &mut Self {
44 use wasm_bindgen
::JsValue
;
46 ::js_sys
::Reflect
::set(self.as_ref(), &JsValue
::from("easing"), &JsValue
::from(val
));
49 "setting properties should never fail on our dictionary objects"
54 #[doc = "Change the `offset` field of this object."]
56 #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
57 pub fn offset(&mut self, val
: &::wasm_bindgen
::JsValue
) -> &mut Self {
58 use wasm_bindgen
::JsValue
;
60 ::js_sys
::Reflect
::set(self.as_ref(), &JsValue
::from("offset"), &JsValue
::from(val
));
63 "setting properties should never fail on our dictionary objects"
69 impl Default
for BasePropertyIndexedKeyframe
{
70 fn default() -> Self {