SVGElement.hx 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Copyright (C)2005-2017 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 from mozilla\SVGSVGElement.webidl. Do not edit!
  23. package js.html.svg;
  24. /**
  25. The `SVGSVGElement` interface provides access to the properties of `svg` elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices.
  26. Documentation [SVGSVGElement](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement>
  28. **/
  29. @:native("SVGSVGElement")
  30. extern class SVGElement extends GraphicsElement
  31. {
  32. static inline var SVG_ZOOMANDPAN_UNKNOWN : Int = 0;
  33. static inline var SVG_ZOOMANDPAN_DISABLE : Int = 1;
  34. static inline var SVG_ZOOMANDPAN_MAGNIFY : Int = 2;
  35. var x(default,null) : AnimatedLength;
  36. var y(default,null) : AnimatedLength;
  37. var width(default,null) : AnimatedLength;
  38. var height(default,null) : AnimatedLength;
  39. var pixelUnitToMillimeterX(default,null) : Float;
  40. var pixelUnitToMillimeterY(default,null) : Float;
  41. var screenPixelToMillimeterX(default,null) : Float;
  42. var screenPixelToMillimeterY(default,null) : Float;
  43. var useCurrentView(default,null) : Bool;
  44. var currentScale : Float;
  45. var currentTranslate(default,null) : Point;
  46. var viewBox(default,null) : AnimatedRect;
  47. var preserveAspectRatio(default,null) : AnimatedPreserveAspectRatio;
  48. var zoomAndPan : Int;
  49. function suspendRedraw( maxWaitMilliseconds : Int ) : Int;
  50. function unsuspendRedraw( suspendHandleID : Int ) : Void;
  51. function unsuspendRedrawAll() : Void;
  52. function forceRedraw() : Void;
  53. function pauseAnimations() : Void;
  54. function unpauseAnimations() : Void;
  55. function animationsPaused() : Bool;
  56. function getCurrentTime() : Float;
  57. function setCurrentTime( seconds : Float ) : Void;
  58. function deselectAll() : Void;
  59. function createSVGNumber() : Number;
  60. function createSVGLength() : Length;
  61. function createSVGAngle() : Angle;
  62. function createSVGPoint() : Point;
  63. function createSVGMatrix() : Matrix;
  64. function createSVGRect() : Rect;
  65. function createSVGTransform() : Transform;
  66. function createSVGTransformFromMatrix( matrix : Matrix ) : Transform;
  67. function getElementById( elementId : String ) : js.html.Element;
  68. }