///|
/// https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement
#cfg(target="js")
type SVGGraphicsElement
///|
#cfg(target="js")
pub impl IsEventTarget for SVGGraphicsElement
///|
#cfg(target="js")
pub extend SVGGraphicsElement with IsEventTarget::{
add_event_listener,
add_event_listener_with_options,
as_event_target,
dispatch_event,
remove_event_listener,
remove_event_listener_with_options,
to_clipboard,
to_comment,
to_document,
to_document_fragment,
to_element,
to_html_canvas_element,
to_html_dialog_element,
to_html_element,
to_html_image_element,
to_html_input_element,
to_html_media_element,
to_html_select_element,
to_html_video_element,
to_node,
to_svg_element,
to_svg_graphics_element,
to_svg_image_element,
to_text,
to_window,
}
///|
#cfg(target="js")
pub impl IsNode for SVGGraphicsElement
///|
#cfg(target="js")
pub extend SVGGraphicsElement with IsNode::{
append_child,
as_node,
contains,
get_child,
get_child_count,
get_first_child,
get_is_connected,
get_last_child,
get_next_sibling,
get_node_name,
get_node_type,
get_node_value,
get_parent_element,
get_parent_node,
get_previous_sibling,
insert_before,
is_same_node,
remove_child,
replace_child,
set_node_value,
}
///|
#cfg(target="js")
pub impl IsElement for SVGGraphicsElement
///|
#cfg(target="js")
pub extend SVGGraphicsElement with IsElement::{
as_element,
closest,
get_animations,
get_attribute,
get_bounding_client_rect,
get_children,
get_client_height,
get_client_left,
get_client_rects,
get_client_top,
get_client_width,
get_property,
get_scroll_height,
get_scroll_left,
get_scroll_top,
get_scroll_width,
has_attribute,
has_pointer_capture,
matches,
query_selector,
query_selector_all,
release_pointer_capture,
remove_attribute,
remove_property,
scroll_into_view,
scroll_into_view_with_options,
set_attribute,
set_inner_html,
set_pointer_capture,
set_property,
set_scroll_left,
set_scroll_top,
}
///|
#cfg(target="js")
pub impl IsSVGElement for SVGGraphicsElement
///|
#cfg(target="js")
pub extend SVGGraphicsElement with IsSVGElement::{
as_svg_element,
blur,
focus,
get_attribute_style_map,
get_auto_focus,
get_data_set,
get_nonce,
get_owner_svg_element,
get_style,
get_tab_index,
get_viewport_element,
set_auto_focus,
set_nonce,
set_style,
set_tab_index,
}
///|
#cfg(target="js")
pub impl IsSVGGraphicsElement for SVGGraphicsElement
///|
#cfg(target="js")
pub extend SVGGraphicsElement with IsSVGGraphicsElement::{
as_svg_graphics_element,
get_bbox,
get_ctm,
get_required_extensions,
get_screen_ctm,
get_system_language,
get_transform,
}
///|
#cfg(target="js")
pub trait IsSVGGraphicsElement: IsSVGElement {
fn as_svg_graphics_element(Self) -> SVGGraphicsElement = _
fn get_required_extensions(Self) -> String = _
fn get_system_language(Self) -> SVGStringList = _
fn get_transform(Self) -> SVGAnimatedTransformList = _
fn get_bbox(Self) -> DOMRect = _
fn get_ctm(Self) -> DOMMatrix = _
fn get_screen_ctm(Self) -> DOMMatrix = _
}
///|
#cfg(target="js")
pub impl @js.Cast for SVGGraphicsElement with fn into(value) {
value |> ffi_to_svg_graphics_element |> y => { y.to_option() }
}
///|
#cfg(target="js")
pub extend SVGGraphicsElement with @js.Cast::{from, into}
///|
#cfg(target="js")
pub impl @js.Cast for SVGGraphicsElement with fn from(value) {
value |> js_identity
}
///|
#cfg(target="js")
type SVGStringList
///|
#cfg(target="js")
type SVGAnimatedTransformList
///|
#cfg(target="js")
type DOMMatrix
///|
#cfg(target="js")
impl IsSVGGraphicsElement with fn as_svg_graphics_element(s) {
s |> js_identity
}
///|
#cfg(target="js")
impl IsSVGGraphicsElement with fn get_required_extensions(s) {
s |> js_identity |> ffi_get_required_extensions
}
///|
#cfg(target="js")
impl IsSVGGraphicsElement with fn get_system_language(s) {
s |> js_identity |> ffi_get_system_language
}
///|
#cfg(target="js")
impl IsSVGGraphicsElement with fn get_transform(s) {
s |> js_identity |> ffi_get_transform
}
///|
#cfg(target="js")
impl IsSVGGraphicsElement with fn get_bbox(s) {
s |> js_identity |> ffi_get_bbox
}
///|
#cfg(target="js")
impl IsSVGGraphicsElement with fn get_ctm(s) {
s |> js_identity |> ffi_get_ctm
}
///|
#cfg(target="js")
impl IsSVGGraphicsElement with fn get_screen_ctm(s) {
s |> js_identity |> ffi_get_screen_ctm
}
///|
#cfg(target="js")
extern "js" fn ffi_get_required_extensions(s : @js.Value) -> String = "(self) => self.requiredExtensions"
///|
#cfg(target="js")
extern "js" fn ffi_get_system_language(s : @js.Value) -> SVGStringList = "(self) => self.systemLanguage"
///|
#cfg(target="js")
extern "js" fn ffi_get_transform(s : @js.Value) -> SVGAnimatedTransformList = "(self) => self.transform"
///|
#cfg(target="js")
extern "js" fn ffi_get_bbox(s : @js.Value) -> DOMRect = "(self) => self.getBBox()"
///|
#cfg(target="js")
extern "js" fn ffi_get_ctm(s : @js.Value) -> DOMMatrix = "(self) => self.getCTM()"
///|
#cfg(target="js")
extern "js" fn ffi_get_screen_ctm(s : @js.Value) -> DOMMatrix = "(self) => self.getScreenCTM()"