Class: Dommy::SVGFESpotLightElement

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

Overview

‘<feSpotLight>` — spotlight emanating from (x, y, z), aimed at (pointsAtX, pointsAtY, pointsAtZ). `limitingConeAngle` restricts the spread; `specularExponent` controls focus falloff.

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

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



2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
# File 'lib/dommy/svg_elements.rb', line 2984

def __js_get__(key)
  case key
  when "x"
    x
  when "y"
    y
  when "z"
    z
  when "pointsAtX"
    points_at_x
  when "pointsAtY"
    points_at_y
  when "pointsAtZ"
    points_at_z
  when "specularExponent"
    specular_exponent
  when "limitingConeAngle"
    limiting_cone_angle
  else
    super
  end
end

#__js_set__(key, value) ⇒ Object



3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
# File 'lib/dommy/svg_elements.rb', line 3007

def __js_set__(key, value)
  case key
  when "x"
    self.x = value
  when "y"
    self.y = value
  when "z"
    self.z = value
  when "pointsAtX"
    self.points_at_x = value
  when "pointsAtY"
    self.points_at_y = value
  when "pointsAtZ"
    self.points_at_z = value
  when "specularExponent"
    self.specular_exponent = value
  when "limitingConeAngle"
    self.limiting_cone_angle = value
  else
    super
  end
end

#limiting_cone_angleObject



2976
2977
2978
# File 'lib/dommy/svg_elements.rb', line 2976

def limiting_cone_angle
  reflected_string("limitingConeAngle")
end

#limiting_cone_angle=(v) ⇒ Object



2980
2981
2982
# File 'lib/dommy/svg_elements.rb', line 2980

def limiting_cone_angle=(v)
  set_reflected_string("limitingConeAngle", v)
end

#points_at_xObject



2944
2945
2946
# File 'lib/dommy/svg_elements.rb', line 2944

def points_at_x
  reflected_string("pointsAtX")
end

#points_at_x=(v) ⇒ Object



2948
2949
2950
# File 'lib/dommy/svg_elements.rb', line 2948

def points_at_x=(v)
  set_reflected_string("pointsAtX", v)
end

#points_at_yObject



2952
2953
2954
# File 'lib/dommy/svg_elements.rb', line 2952

def points_at_y
  reflected_string("pointsAtY")
end

#points_at_y=(v) ⇒ Object



2956
2957
2958
# File 'lib/dommy/svg_elements.rb', line 2956

def points_at_y=(v)
  set_reflected_string("pointsAtY", v)
end

#points_at_zObject



2960
2961
2962
# File 'lib/dommy/svg_elements.rb', line 2960

def points_at_z
  reflected_string("pointsAtZ")
end

#points_at_z=(v) ⇒ Object



2964
2965
2966
# File 'lib/dommy/svg_elements.rb', line 2964

def points_at_z=(v)
  set_reflected_string("pointsAtZ", v)
end

#specular_exponentObject



2968
2969
2970
# File 'lib/dommy/svg_elements.rb', line 2968

def specular_exponent
  reflected_string("specularExponent")
end

#specular_exponent=(v) ⇒ Object



2972
2973
2974
# File 'lib/dommy/svg_elements.rb', line 2972

def specular_exponent=(v)
  set_reflected_string("specularExponent", v)
end

#xObject



2920
2921
2922
# File 'lib/dommy/svg_elements.rb', line 2920

def x
  reflected_string("x")
end

#x=(v) ⇒ Object



2924
2925
2926
# File 'lib/dommy/svg_elements.rb', line 2924

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

#yObject



2928
2929
2930
# File 'lib/dommy/svg_elements.rb', line 2928

def y
  reflected_string("y")
end

#y=(v) ⇒ Object



2932
2933
2934
# File 'lib/dommy/svg_elements.rb', line 2932

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

#zObject



2936
2937
2938
# File 'lib/dommy/svg_elements.rb', line 2936

def z
  reflected_string("z")
end

#z=(v) ⇒ Object



2940
2941
2942
# File 'lib/dommy/svg_elements.rb', line 2940

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