Class: Dommy::SVGAnimateElement

Inherits:
SVGAnimationElement show all
Defined in:
lib/dommy/svg_elements.rb

Overview

‘<animate>` — animates a target attribute’s value over time.

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 SVGAnimationElement

#attribute_name, #attribute_name=, #begin, #begin=, #dur, #dur=, #end, #end=, #fill, #fill=, #max, #max=, #min, #min=, #repeat_count, #repeat_count=, #repeat_dur, #repeat_dur=, #restart, #restart=

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

Methods included from EventTarget

#__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



3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
# File 'lib/dommy/svg_elements.rb', line 3544

def __js_get__(key)
  case key
  when "from"
    from
  when "to"
    to
  when "by"
    by
  when "values"
    values
  when "calcMode"
    calc_mode
  when "keyTimes"
    key_times
  when "keySplines"
    key_splines
  else
    super
  end
end

#__js_set__(key, value) ⇒ Object



3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
# File 'lib/dommy/svg_elements.rb', line 3565

def __js_set__(key, value)
  case key
  when "from"
    self.from = value
  when "to"
    self.to = value
  when "by"
    self.by = value
  when "values"
    self.values = value
  when "calcMode"
    self.calc_mode = value
  when "keyTimes"
    self.key_times = value
  when "keySplines"
    self.key_splines = value
  else
    super
  end
end

#byObject



3504
3505
3506
# File 'lib/dommy/svg_elements.rb', line 3504

def by
  reflected_string("by")
end

#by=(v) ⇒ Object



3508
3509
3510
# File 'lib/dommy/svg_elements.rb', line 3508

def by=(v)
  set_reflected_string("by", v)
end

#calc_modeObject



3520
3521
3522
# File 'lib/dommy/svg_elements.rb', line 3520

def calc_mode
  reflected_string("calcMode")
end

#calc_mode=(v) ⇒ Object



3524
3525
3526
# File 'lib/dommy/svg_elements.rb', line 3524

def calc_mode=(v)
  set_reflected_string("calcMode", v)
end

#fromObject



3488
3489
3490
# File 'lib/dommy/svg_elements.rb', line 3488

def from
  reflected_string("from")
end

#from=(v) ⇒ Object



3492
3493
3494
# File 'lib/dommy/svg_elements.rb', line 3492

def from=(v)
  set_reflected_string("from", v)
end

#key_splinesObject



3536
3537
3538
# File 'lib/dommy/svg_elements.rb', line 3536

def key_splines
  reflected_string("keySplines")
end

#key_splines=(v) ⇒ Object



3540
3541
3542
# File 'lib/dommy/svg_elements.rb', line 3540

def key_splines=(v)
  set_reflected_string("keySplines", v)
end

#key_timesObject



3528
3529
3530
# File 'lib/dommy/svg_elements.rb', line 3528

def key_times
  reflected_string("keyTimes")
end

#key_times=(v) ⇒ Object



3532
3533
3534
# File 'lib/dommy/svg_elements.rb', line 3532

def key_times=(v)
  set_reflected_string("keyTimes", v)
end

#toObject



3496
3497
3498
# File 'lib/dommy/svg_elements.rb', line 3496

def to
  reflected_string("to")
end

#to=(v) ⇒ Object



3500
3501
3502
# File 'lib/dommy/svg_elements.rb', line 3500

def to=(v)
  set_reflected_string("to", v)
end

#valuesObject



3512
3513
3514
# File 'lib/dommy/svg_elements.rb', line 3512

def values
  reflected_string("values")
end

#values=(v) ⇒ Object



3516
3517
3518
# File 'lib/dommy/svg_elements.rb', line 3516

def values=(v)
  set_reflected_string("values", v)
end