2
2
#![ allow( clippy:: all) ]
3
3
use super :: * ;
4
4
use wasm_bindgen:: prelude:: * ;
5
- #[ cfg( web_sys_unstable_apis) ]
6
5
#[ wasm_bindgen]
7
6
extern "C" {
8
7
# [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ResizeObserver , typescript_type = "ResizeObserver" ) ]
@@ -12,70 +11,47 @@ extern "C" {
12
11
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)" ]
13
12
#[ doc = "" ]
14
13
#[ doc = "*This API requires the following crate features to be activated: `ResizeObserver`*" ]
15
- #[ doc = "" ]
16
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
17
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
18
14
pub type ResizeObserver ;
19
- #[ cfg( web_sys_unstable_apis) ]
20
15
#[ wasm_bindgen( catch, constructor, js_class = "ResizeObserver" ) ]
21
16
#[ doc = "The `new ResizeObserver(..)` constructor, creating a new instance of `ResizeObserver`." ]
22
17
#[ doc = "" ]
23
18
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/ResizeObserver)" ]
24
19
#[ doc = "" ]
25
20
#[ doc = "*This API requires the following crate features to be activated: `ResizeObserver`*" ]
26
- #[ doc = "" ]
27
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
28
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
29
21
pub fn new ( callback : & :: js_sys:: Function ) -> Result < ResizeObserver , JsValue > ;
30
- #[ cfg( web_sys_unstable_apis) ]
31
22
# [ wasm_bindgen ( method , structural , js_class = "ResizeObserver" , js_name = disconnect) ]
32
23
#[ doc = "The `disconnect()` method." ]
33
24
#[ doc = "" ]
34
25
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/disconnect)" ]
35
26
#[ doc = "" ]
36
27
#[ doc = "*This API requires the following crate features to be activated: `ResizeObserver`*" ]
37
- #[ doc = "" ]
38
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
39
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
40
28
pub fn disconnect ( this : & ResizeObserver ) ;
41
- #[ cfg( web_sys_unstable_apis) ]
42
29
#[ cfg( feature = "Element" ) ]
43
30
# [ wasm_bindgen ( method , structural , js_class = "ResizeObserver" , js_name = observe) ]
44
31
#[ doc = "The `observe()` method." ]
45
32
#[ doc = "" ]
46
33
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe)" ]
47
34
#[ doc = "" ]
48
35
#[ doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserver`*" ]
49
- #[ doc = "" ]
50
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
51
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
52
36
pub fn observe ( this : & ResizeObserver , target : & Element ) ;
53
- #[ cfg( web_sys_unstable_apis) ]
54
37
#[ cfg( all( feature = "Element" , feature = "ResizeObserverOptions" , ) ) ]
55
38
# [ wasm_bindgen ( method , structural , js_class = "ResizeObserver" , js_name = observe) ]
56
39
#[ doc = "The `observe()` method." ]
57
40
#[ doc = "" ]
58
41
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe)" ]
59
42
#[ doc = "" ]
60
43
#[ doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserver`, `ResizeObserverOptions`*" ]
61
- #[ doc = "" ]
62
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
63
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
64
44
pub fn observe_with_options (
65
45
this : & ResizeObserver ,
66
46
target : & Element ,
67
47
options : & ResizeObserverOptions ,
68
48
) ;
69
- #[ cfg( web_sys_unstable_apis) ]
70
49
#[ cfg( feature = "Element" ) ]
71
50
# [ wasm_bindgen ( method , structural , js_class = "ResizeObserver" , js_name = unobserve) ]
72
51
#[ doc = "The `unobserve()` method." ]
73
52
#[ doc = "" ]
74
53
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/unobserve)" ]
75
54
#[ doc = "" ]
76
55
#[ doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserver`*" ]
77
- #[ doc = "" ]
78
- #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
79
- #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
80
56
pub fn unobserve ( this : & ResizeObserver , target : & Element ) ;
81
57
}
0 commit comments