PreserveAspectRatio.hx 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright (C)2005-2013 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated, do not edit!
  23. package js.html.svg;
  24. /** <p>The <code>SVGPreserveAspectRatio</code> interface corresponds to the
  25. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code> attribute, which is available for some of SVG's elements.</p>
  26. <p>An <code>SVGPreserveAspectRatio</code> object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.</p><br><br>
  27. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/SVGPreserveAspectRatio">MDN</a>. */
  28. @:native("SVGPreserveAspectRatio")
  29. extern class PreserveAspectRatio
  30. {
  31. /** Corresponds to value <code>meet</code> for attribute
  32. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  33. static inline var SVG_MEETORSLICE_MEET : Int = 1;
  34. /** Corresponds to value <code>slice</code> for attribute
  35. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  36. static inline var SVG_MEETORSLICE_SLICE : Int = 2;
  37. /** The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. */
  38. static inline var SVG_MEETORSLICE_UNKNOWN : Int = 0;
  39. /** Corresponds to value <code>none</code> for attribute
  40. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  41. static inline var SVG_PRESERVEASPECTRATIO_NONE : Int = 1;
  42. /** The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. */
  43. static inline var SVG_PRESERVEASPECTRATIO_UNKNOWN : Int = 0;
  44. /** Corresponds to value <code>xMaxYMax</code> for attribute
  45. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  46. static inline var SVG_PRESERVEASPECTRATIO_XMAXYMAX : Int = 10;
  47. /** Corresponds to value <code>xMaxYMid</code> for attribute
  48. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  49. static inline var SVG_PRESERVEASPECTRATIO_XMAXYMID : Int = 7;
  50. /** Corresponds to value <code>xMaxYMin</code> for attribute
  51. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  52. static inline var SVG_PRESERVEASPECTRATIO_XMAXYMIN : Int = 4;
  53. /** Corresponds to value <code>xMidYMax</code> for attribute
  54. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  55. static inline var SVG_PRESERVEASPECTRATIO_XMIDYMAX : Int = 9;
  56. /** Corresponds to value <code>xMidYMid</code> for attribute
  57. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  58. static inline var SVG_PRESERVEASPECTRATIO_XMIDYMID : Int = 6;
  59. /** Corresponds to value <code>xMidYMin</code> for attribute
  60. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  61. static inline var SVG_PRESERVEASPECTRATIO_XMIDYMIN : Int = 3;
  62. /** Corresponds to value <code>xMinYMax</code> for attribute
  63. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  64. static inline var SVG_PRESERVEASPECTRATIO_XMINYMAX : Int = 8;
  65. /** Corresponds to value <code>xMinYMid</code> for attribute
  66. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  67. static inline var SVG_PRESERVEASPECTRATIO_XMINYMID : Int = 5;
  68. /** Corresponds to value <code>xMinYMin</code> for attribute
  69. <code><a rel="custom" href="https://developer.mozilla.org/en/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>. */
  70. static inline var SVG_PRESERVEASPECTRATIO_XMINYMIN : Int = 2;
  71. /** The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface. Setter throws DOMException. */
  72. var align : Int;
  73. /** The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface. Setter throws DOMException. */
  74. var meetOrSlice : Int;
  75. }