Class: Dommy::SVGAnimationElement
Overview
Base class for SMIL animation elements; carries the timing attributes (‘begin`, `end`, `dur`, etc.) that all animation elements share.
Constant Summary
Constants inherited
from Element
Element::ATTRIBUTE_NODE, Element::CDATA_SECTION_NODE, Element::COMMENT_NODE, Element::DOCUMENT_FRAGMENT_NODE, Element::DOCUMENT_NODE, Element::DOCUMENT_POSITION_CONTAINED_BY, Element::DOCUMENT_POSITION_CONTAINS, Element::DOCUMENT_POSITION_DISCONNECTED, Element::DOCUMENT_POSITION_FOLLOWING, Element::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, Element::DOCUMENT_POSITION_PRECEDING, Element::DOCUMENT_TYPE_NODE, Element::ELEMENT_NODE, Element::PROCESSING_INSTRUCTION_NODE, Element::SHADOW_HOST_TAGS, Element::TEXT_NODE
Constants included
from Node
Node::ATTRIBUTE_NODE, Node::CDATA_SECTION_NODE, Node::COMMENT_NODE, Node::DOCUMENT_FRAGMENT_NODE, Node::DOCUMENT_NODE, Node::DOCUMENT_POSITION_CONTAINED_BY, Node::DOCUMENT_POSITION_CONTAINS, Node::DOCUMENT_POSITION_DISCONNECTED, Node::DOCUMENT_POSITION_FOLLOWING, Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, Node::DOCUMENT_POSITION_PRECEDING, Node::DOCUMENT_TYPE_NODE, Node::ELEMENT_NODE, Node::PROCESSING_INSTRUCTION_NODE, Node::TEXT_NODE
Instance Attribute Summary
Attributes inherited from Element
#__node__, #document
Instance Method Summary
collapse
Methods inherited from SVGElement
#case_sensitive_attribute_names?, #class_name, #class_name=, #id, #id=, #tabindex, #tabindex=
Methods inherited from Element
#[], #[]=, #__js_call__, #__scroll_log__, #__shadow_root__, #after, #anchor_href, #animate, #append, #append_child, #attach_shadow, #attributes, #base_uri, #before, #blur, #child_element_count, #child_nodes, #children, #class_list, #class_name, #class_name=, #click, #clone_node, #closest, #compare_document_position, #contains?, #dataset, #equal_node?, #first_child, #first_element_child, #focus, #get_animations, #get_attribute, #get_attribute_node, #get_elements_by_class_name, #get_elements_by_tag_name, #get_html, #get_inner_html, #has_attribute?, #has_attributes?, #has_child_nodes?, #id, #id=, #initialize, #inner_html, #inner_html=, #insert_adjacent_element, #insert_adjacent_html, #insert_adjacent_text, #insert_before, #is_connected?, #last_child, #last_element_child, #live_child_nodes, #local_name, #matches?, #namespace_uri, #next_element_sibling, #next_sibling, #normalize, #on, #outer_html, #outer_html=, #owner_document, #parent_element, #parent_node, #prepend, #previous_element_sibling, #previous_sibling, #query_selector, #query_selector_all, #reflected_attr_name, #remove, #remove_attribute, #remove_attribute_node, #remove_child, #replace_child, #replace_children, #replace_with_nodes, #role, #role=, #root_node, #same_node?, #set_attribute, #set_attribute_node, #shadow_root, #slot, #slot=, #style, #tag_name, #text_content, #text_content=, #to_s, #toggle_attribute
#__deliver_event__, #add_event_listener, #dispatch_event, #invoke_listener, #remove_event_listener
Constructor Details
This class inherits a constructor from Dommy::Element
Instance Method Details
#__js_get__(key) ⇒ Object
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
|
# File 'lib/dommy/svg_elements.rb', line 3431
def __js_get__(key)
case key
when "begin"
self.begin
when "end"
self.end
when "dur"
dur
when "min"
min
when "max"
max
when "restart"
restart
when "repeatCount"
repeat_count
when "repeatDur"
repeat_dur
when "fill"
fill
when "attributeName"
attribute_name
else
super
end
end
|
#__js_set__(key, value) ⇒ Object
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
|
# File 'lib/dommy/svg_elements.rb', line 3458
def __js_set__(key, value)
case key
when "begin"
self.begin = value
when "end"
self.end = value
when "dur"
self.dur = value
when "min"
self.min = value
when "max"
self.max = value
when "restart"
self.restart = value
when "repeatCount"
self.repeat_count = value
when "repeatDur"
self.repeat_dur = value
when "fill"
self.fill = value
when "attributeName"
self.attribute_name = value
else
super
end
end
|
#attribute_name ⇒ Object
3423
3424
3425
|
# File 'lib/dommy/svg_elements.rb', line 3423
def attribute_name
reflected_string("attributeName")
end
|
#attribute_name=(v) ⇒ Object
3427
3428
3429
|
# File 'lib/dommy/svg_elements.rb', line 3427
def attribute_name=(v)
set_reflected_string("attributeName", v)
end
|
#begin ⇒ Object
The ‘begin` / `end` Ruby methods correspond exactly to the SVG attributes; Ruby permits these as method names (block keywords are only special syntax, not identifier-level reserved words).
3351
3352
3353
|
# File 'lib/dommy/svg_elements.rb', line 3351
def begin
reflected_string("begin")
end
|
#begin=(v) ⇒ Object
3355
3356
3357
|
# File 'lib/dommy/svg_elements.rb', line 3355
def begin=(v)
set_reflected_string("begin", v)
end
|
#dur ⇒ Object
3367
3368
3369
|
# File 'lib/dommy/svg_elements.rb', line 3367
def dur
reflected_string("dur")
end
|
#dur=(v) ⇒ Object
3371
3372
3373
|
# File 'lib/dommy/svg_elements.rb', line 3371
def dur=(v)
set_reflected_string("dur", v)
end
|
#end ⇒ Object
3359
3360
3361
|
# File 'lib/dommy/svg_elements.rb', line 3359
def end
reflected_string("end")
end
|
#end=(v) ⇒ Object
3363
3364
3365
|
# File 'lib/dommy/svg_elements.rb', line 3363
def end=(v)
set_reflected_string("end", v)
end
|
#fill ⇒ Object
3415
3416
3417
|
# File 'lib/dommy/svg_elements.rb', line 3415
def fill
reflected_string("fill")
end
|
#fill=(v) ⇒ Object
3419
3420
3421
|
# File 'lib/dommy/svg_elements.rb', line 3419
def fill=(v)
set_reflected_string("fill", v)
end
|
#max ⇒ Object
3383
3384
3385
|
# File 'lib/dommy/svg_elements.rb', line 3383
def max
reflected_string("max")
end
|
#max=(v) ⇒ Object
3387
3388
3389
|
# File 'lib/dommy/svg_elements.rb', line 3387
def max=(v)
set_reflected_string("max", v)
end
|
#min ⇒ Object
3375
3376
3377
|
# File 'lib/dommy/svg_elements.rb', line 3375
def min
reflected_string("min")
end
|
#min=(v) ⇒ Object
3379
3380
3381
|
# File 'lib/dommy/svg_elements.rb', line 3379
def min=(v)
set_reflected_string("min", v)
end
|
#repeat_count ⇒ Object
3399
3400
3401
|
# File 'lib/dommy/svg_elements.rb', line 3399
def repeat_count
reflected_string("repeatCount")
end
|
#repeat_count=(v) ⇒ Object
3403
3404
3405
|
# File 'lib/dommy/svg_elements.rb', line 3403
def repeat_count=(v)
set_reflected_string("repeatCount", v)
end
|
#repeat_dur ⇒ Object
3407
3408
3409
|
# File 'lib/dommy/svg_elements.rb', line 3407
def repeat_dur
reflected_string("repeatDur")
end
|
#repeat_dur=(v) ⇒ Object
3411
3412
3413
|
# File 'lib/dommy/svg_elements.rb', line 3411
def repeat_dur=(v)
set_reflected_string("repeatDur", v)
end
|
#restart ⇒ Object
3391
3392
3393
|
# File 'lib/dommy/svg_elements.rb', line 3391
def restart
reflected_string("restart")
end
|
#restart=(v) ⇒ Object
3395
3396
3397
|
# File 'lib/dommy/svg_elements.rb', line 3395
def restart=(v)
set_reflected_string("restart", v)
end
|