lib/watir/elements/svg_elements.rb in watir-6.6.3 vs lib/watir/elements/svg_elements.rb in watir-6.7.0

- old
+ new

@@ -1,60 +1,23 @@ # Autogenerated from SVG specification. Edits may be lost. module Watir class SVGElement < HTMLElement - attribute(String, :class_name, :className) - attribute(String, :style, :style) - attribute(String, :ownersvg_element, :ownerSVGElement) - attribute(String, :viewport_element, :viewportElement) - attribute(Integer, :tab_index, :tabIndex) + attribute(String, :classname, :className) + attribute(String, :dataset, :dataset) + attribute(String, :ownersvgelement, :ownerSVGElement) + attribute(String, :viewportelement, :viewportElement) + attribute(Integer, :tabindex, :tabIndex) + attribute(String, :correspondingelement, :correspondingElement) + attribute(String, :correspondinguseelement, :correspondingUseElement) end class SVGElementCollection < ElementCollection end - class MPath < SVGElement - attribute(String, :href, :href) - end - class MPathCollection < ElementCollection - end - - class Animation < SVGElement - attribute(String, :target_element, :targetElement) - attribute(String, :onbegin, :onbegin) - attribute(String, :onend, :onend) - attribute(String, :onrepeat, :onrepeat) - attribute(String, :required_features, :requiredFeatures) - attribute(String, :required_extensions, :requiredExtensions) - attribute(String, :system_language, :systemLanguage) - end - class AnimationCollection < ElementCollection - end - - class AnimateTransform < Animation - end - class AnimateTransformCollection < ElementCollection - end - - class AnimateMotion < Animation - end - class AnimateMotionCollection < ElementCollection - end - - class Set < Animation - end - class SetCollection < ElementCollection - end - - class Animate < Animation - end - class AnimateCollection < ElementCollection - end - class View < SVGElement - attribute(String, :view_target, :viewTarget) - attribute(String, :view_box, :viewBox) - attribute(String, :preserve_aspect_ratio, :preserveAspectRatio) - attribute(Integer, :zoom_and_pan, :zoomAndPan) + attribute(String, :viewbox, :viewBox) + attribute(String, :preserveaspectratio, :preserveAspectRatio) + attribute(Integer, :zoomandpan, :zoomAndPan) end class ViewCollection < ElementCollection end class Cursor < SVGElement @@ -63,20 +26,30 @@ attribute(String, :href, :href) end class CursorCollection < ElementCollection end + class Hatchpath < SVGElement + end + class HatchpathCollection < ElementCollection + end + + class Hatch < SVGElement + end + class HatchCollection < ElementCollection + end + class Pattern < SVGElement - attribute(String, :pattern_units, :patternUnits) - attribute(String, :pattern_content_units, :patternContentUnits) - attribute(String, :pattern_transform, :patternTransform) + attribute(String, :patternunits, :patternUnits) + attribute(String, :patterncontentunits, :patternContentUnits) + attribute(String, :patterntransform, :patternTransform) attribute(Integer, :x, :x) attribute(Integer, :y, :y) attribute(Integer, :width, :width) attribute(Integer, :height, :height) - attribute(String, :view_box, :viewBox) - attribute(String, :preserve_aspect_ratio, :preserveAspectRatio) + attribute(String, :viewbox, :viewBox) + attribute(String, :preserveaspectratio, :preserveAspectRatio) attribute(String, :href, :href) end class PatternCollection < ElementCollection end @@ -84,32 +57,30 @@ attribute(String, :offset, :offset) end class StopCollection < ElementCollection end - class MeshPatch < SVGElement + class Meshpatch < SVGElement end - class MeshPatchCollection < ElementCollection + class MeshpatchCollection < ElementCollection end - class MeshRow < SVGElement + class Meshrow < SVGElement end - class MeshRowCollection < ElementCollection + class MeshrowCollection < ElementCollection end class Gradient < SVGElement - attribute(String, :gradient_units, :gradientUnits) - attribute(String, :gradient_transform, :gradientTransform) - attribute(String, :spread_method, :spreadMethod) + attribute(String, :gradientunits, :gradientUnits) + attribute(String, :gradienttransform, :gradientTransform) + attribute(String, :spreadmethod, :spreadMethod) attribute(String, :href, :href) end class GradientCollection < ElementCollection end class MeshGradient < Gradient - attribute(Integer, :x, :x) - attribute(Integer, :y, :y) end class MeshGradientCollection < ElementCollection end class RadialGradient < Gradient @@ -130,32 +101,30 @@ attribute(Integer, :y2, :y2) end class LinearGradientCollection < ElementCollection end + class Solidcolor < SVGElement + end + class SolidcolorCollection < ElementCollection + end + class Marker < SVGElement attribute(Integer, :refx, :refX) attribute(Integer, :refy, :refY) - attribute(String, :marker_units, :markerUnits) - attribute(Integer, :marker_width, :markerWidth) - attribute(Integer, :marker_height, :markerHeight) - attribute(String, :orient_type, :orientType) - attribute(String, :orient_angle, :orientAngle) + attribute(String, :markerunits, :markerUnits) + attribute(Integer, :markerwidth, :markerWidth) + attribute(Integer, :markerheight, :markerHeight) + attribute(String, :orienttype, :orientType) + attribute(String, :orientangle, :orientAngle) attribute(String, :orient, :orient) - attribute(String, :view_box, :viewBox) - attribute(String, :preserve_aspect_ratio, :preserveAspectRatio) + attribute(String, :viewbox, :viewBox) + attribute(String, :preserveaspectratio, :preserveAspectRatio) end class MarkerCollection < ElementCollection end - class Symbol < SVGElement - attribute(String, :view_box, :viewBox) - attribute(String, :preserve_aspect_ratio, :preserveAspectRatio) - end - class SymbolCollection < ElementCollection - end - class Metadata < SVGElement end class MetadataCollection < ElementCollection end @@ -164,13 +133,12 @@ class DescCollection < ElementCollection end class Graphics < SVGElement attribute(String, :transform, :transform) - attribute(String, :required_features, :requiredFeatures) - attribute(String, :required_extensions, :requiredExtensions) - attribute(String, :system_language, :systemLanguage) + attribute(String, :requiredextensions, :requiredExtensions) + attribute(String, :systemlanguage, :systemLanguage) end class GraphicsCollection < ElementCollection end class ForeignObject < Graphics @@ -181,23 +149,21 @@ end class ForeignObjectCollection < ElementCollection end class TextContent < Graphics - attribute(Integer, :text_length, :textLength) - attribute(String, :length_adjust, :lengthAdjust) + attribute(Integer, :textlength, :textLength) + attribute(String, :lengthadjust, :lengthAdjust) end class TextContentCollection < ElementCollection end class TextPath < TextContent - attribute(Integer, :start_offset, :startOffset) + attribute(Integer, :startoffset, :startOffset) attribute(String, :method, :method) attribute(String, :spacing, :spacing) attribute(String, :href, :href) - attribute(String, :path_seg_list, :pathSegList) - attribute(String, :animated_path_seg_list, :animatedPathSegList) end class TextPathCollection < ElementCollection end class TextPositioning < TextContent @@ -223,15 +189,24 @@ class Use < Graphics attribute(Integer, :x, :x) attribute(Integer, :y, :y) attribute(Integer, :width, :width) attribute(Integer, :height, :height) + attribute(String, :instanceroot, :instanceRoot) + attribute(String, :animatedinstanceroot, :animatedInstanceRoot) attribute(String, :href, :href) end class UseCollection < ElementCollection end + class Symbol < Graphics + attribute(String, :viewbox, :viewBox) + attribute(String, :preserveaspectratio, :preserveAspectRatio) + end + class SymbolCollection < ElementCollection + end + class Defs < Graphics end class DefsCollection < ElementCollection end @@ -243,41 +218,45 @@ class SVG < Graphics attribute(Integer, :x, :x) attribute(Integer, :y, :y) attribute(Integer, :width, :width) attribute(Integer, :height, :height) - attribute(String, :viewport, :viewport) - attribute("Boolean", :use_current_view?, :useCurrentView) - attribute(String, :current_view, :currentView) - attribute(Float, :current_scale, :currentScale) - attribute(String, :current_translate, :currentTranslate) - attribute(String, :view_box, :viewBox) - attribute(String, :preserve_aspect_ratio, :preserveAspectRatio) - attribute(Integer, :zoom_and_pan, :zoomAndPan) + attribute(Float, :currentscale, :currentScale) + attribute(String, :currenttranslate, :currentTranslate) + attribute(String, :viewbox, :viewBox) + attribute(String, :preserveaspectratio, :preserveAspectRatio) + attribute(Integer, :zoomandpan, :zoomAndPan) end class SVGCollection < ElementCollection end class Geometry < Graphics + attribute(String, :pathlength, :pathLength) end class GeometryCollection < ElementCollection end class Polygon < Geometry attribute(String, :points, :points) - attribute(String, :animated_points, :animatedPoints) + attribute(String, :animatedpoints, :animatedPoints) end class PolygonCollection < ElementCollection end class Polyline < Geometry attribute(String, :points, :points) - attribute(String, :animated_points, :animatedPoints) + attribute(String, :animatedpoints, :animatedPoints) end class PolylineCollection < ElementCollection end + class Mesh < Geometry + attribute(String, :href, :href) + end + class MeshCollection < ElementCollection + end + class Line < Geometry attribute(Integer, :x1, :x1) attribute(Integer, :y1, :y1) attribute(Integer, :x2, :x2) attribute(Integer, :y2, :y2) @@ -312,50 +291,17 @@ end class RectCollection < ElementCollection end class Path < Geometry - attribute(String, :path_length, :pathLength) - attribute(String, :path_seg_list, :pathSegList) - attribute(String, :animated_path_seg_list, :animatedPathSegList) end class PathCollection < ElementCollection end module Container - # @return [Animate] - def animate(*args) - Animate.new(self, extract_selector(args).merge(tag_name: "animate")) - end - # @return [AnimateCollection] - def animates(*args) - AnimateCollection.new(self, extract_selector(args).merge(tag_name: "animate")) - end - Watir.tag_to_class[:animate] = Animate - - # @return [AnimateMotion] - def animate_motion(*args) - AnimateMotion.new(self, extract_selector(args).merge(tag_name: "animateMotion")) - end - # @return [AnimateMotionCollection] - def animate_motions(*args) - AnimateMotionCollection.new(self, extract_selector(args).merge(tag_name: "animateMotion")) - end - Watir.tag_to_class[:animateMotion] = AnimateMotion - - # @return [AnimateTransform] - def animate_transform(*args) - AnimateTransform.new(self, extract_selector(args).merge(tag_name: "animateTransform")) - end - # @return [AnimateTransformCollection] - def animate_transforms(*args) - AnimateTransformCollection.new(self, extract_selector(args).merge(tag_name: "animateTransform")) - end - Watir.tag_to_class[:animateTransform] = AnimateTransform - # @return [Circle] def circle(*args) Circle.new(self, extract_selector(args).merge(tag_name: "circle")) end # @return [CircleCollection] @@ -392,20 +338,10 @@ def descs(*args) DescCollection.new(self, extract_selector(args).merge(tag_name: "desc")) end Watir.tag_to_class[:desc] = Desc - # @return [Metadata] - def discard(*args) - Metadata.new(self, extract_selector(args).merge(tag_name: "discard")) - end - # @return [MetadataCollection] - def discards(*args) - MetadataCollection.new(self, extract_selector(args).merge(tag_name: "discard")) - end - Watir.tag_to_class[:discard] = Metadata - # @return [Ellipse] def ellipse(*args) Ellipse.new(self, extract_selector(args).merge(tag_name: "ellipse")) end # @return [EllipseCollection] @@ -432,10 +368,20 @@ def gs(*args) GCollection.new(self, extract_selector(args).merge(tag_name: "g")) end Watir.tag_to_class[:g] = G + # @return [Hatchpath] + def hatchpath(*args) + Hatchpath.new(self, extract_selector(args).merge(tag_name: "hatchpath")) + end + # @return [HatchpathCollection] + def hatchpaths(*args) + HatchpathCollection.new(self, extract_selector(args).merge(tag_name: "hatchpath")) + end + Watir.tag_to_class[:hatchpath] = Hatchpath + # @return [Line] def line(*args) Line.new(self, extract_selector(args).merge(tag_name: "line")) end # @return [LineCollection] @@ -462,39 +408,49 @@ def markers(*args) MarkerCollection.new(self, extract_selector(args).merge(tag_name: "marker")) end Watir.tag_to_class[:marker] = Marker + # @return [Mesh] + def mesh(*args) + Mesh.new(self, extract_selector(args).merge(tag_name: "mesh")) + end + # @return [MeshCollection] + def meshes(*args) + MeshCollection.new(self, extract_selector(args).merge(tag_name: "mesh")) + end + Watir.tag_to_class[:mesh] = Mesh + # @return [MeshGradient] - def mesh_gradient(*args) - MeshGradient.new(self, extract_selector(args).merge(tag_name: "meshGradient")) + def meshgradient(*args) + MeshGradient.new(self, extract_selector(args).merge(tag_name: "meshgradient")) end # @return [MeshGradientCollection] - def mesh_gradients(*args) - MeshGradientCollection.new(self, extract_selector(args).merge(tag_name: "meshGradient")) + def meshgradients(*args) + MeshGradientCollection.new(self, extract_selector(args).merge(tag_name: "meshgradient")) end - Watir.tag_to_class[:meshGradient] = MeshGradient + Watir.tag_to_class[:meshgradient] = MeshGradient - # @return [MeshPatch] - def mesh_patch(*args) - MeshPatch.new(self, extract_selector(args).merge(tag_name: "meshPatch")) + # @return [Meshpatch] + def meshpatch(*args) + Meshpatch.new(self, extract_selector(args).merge(tag_name: "meshpatch")) end - # @return [MeshPatchCollection] - def mesh_patches(*args) - MeshPatchCollection.new(self, extract_selector(args).merge(tag_name: "meshPatch")) + # @return [MeshpatchCollection] + def meshpatches(*args) + MeshpatchCollection.new(self, extract_selector(args).merge(tag_name: "meshpatch")) end - Watir.tag_to_class[:meshPatch] = MeshPatch + Watir.tag_to_class[:meshpatch] = Meshpatch - # @return [MeshRow] - def mesh_row(*args) - MeshRow.new(self, extract_selector(args).merge(tag_name: "meshRow")) + # @return [Meshrow] + def meshrow(*args) + Meshrow.new(self, extract_selector(args).merge(tag_name: "meshrow")) end - # @return [MeshRowCollection] - def mesh_rows(*args) - MeshRowCollection.new(self, extract_selector(args).merge(tag_name: "meshRow")) + # @return [MeshrowCollection] + def meshrows(*args) + MeshrowCollection.new(self, extract_selector(args).merge(tag_name: "meshrow")) end - Watir.tag_to_class[:meshRow] = MeshRow + Watir.tag_to_class[:meshrow] = Meshrow # @return [Metadata] def metadata(*args) Metadata.new(self, extract_selector(args).merge(tag_name: "metadata")) end @@ -502,20 +458,10 @@ def metadatas(*args) MetadataCollection.new(self, extract_selector(args).merge(tag_name: "metadata")) end Watir.tag_to_class[:metadata] = Metadata - # @return [MPath] - def mpath(*args) - MPath.new(self, extract_selector(args).merge(tag_name: "mpath")) - end - # @return [MPathCollection] - def mpaths(*args) - MPathCollection.new(self, extract_selector(args).merge(tag_name: "mpath")) - end - Watir.tag_to_class[:mpath] = MPath - # @return [Path] def path(*args) Path.new(self, extract_selector(args).merge(tag_name: "path")) end # @return [PathCollection] @@ -572,18 +518,18 @@ def rects(*args) RectCollection.new(self, extract_selector(args).merge(tag_name: "rect")) end Watir.tag_to_class[:rect] = Rect - # @return [Set] - def set(*args) - Set.new(self, extract_selector(args).merge(tag_name: "set")) + # @return [Solidcolor] + def solidcolor(*args) + Solidcolor.new(self, extract_selector(args).merge(tag_name: "solidcolor")) end - # @return [SetCollection] - def sets(*args) - SetCollection.new(self, extract_selector(args).merge(tag_name: "set")) + # @return [SolidcolorCollection] + def solidcolors(*args) + SolidcolorCollection.new(self, extract_selector(args).merge(tag_name: "solidcolor")) end - Watir.tag_to_class[:set] = Set + Watir.tag_to_class[:solidcolor] = Solidcolor # @return [Stop] def stop(*args) Stop.new(self, extract_selector(args).merge(tag_name: "stop")) end