版博士V2.0程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

142 líneas
3.8 KiB

  1. import Event from '../../event/Event';
  2. import INode from '../node/INode';
  3. import ISVGGraphicsElement from './ISVGGraphicsElement';
  4. import SVGAngle from './SVGAngle';
  5. import SVGAnimatedRect from './SVGAnimatedRect';
  6. import SVGLength from './SVGLength';
  7. import SVGNumber from './SVGNumber';
  8. import SVGPoint from './SVGPoint';
  9. import SVGRect from './SVGRect';
  10. import SVGTransform from './SVGTransform';
  11. /**
  12. * SVG Graphics Element.
  13. *
  14. * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement
  15. */
  16. export default interface ISVGSVGElement extends ISVGGraphicsElement {
  17. preserveAspectRatio: string;
  18. width: string;
  19. height: string;
  20. x: string;
  21. y: string;
  22. contentScriptType: string;
  23. currentScale: number;
  24. viewport: SVGRect;
  25. currentTranslate: SVGPoint;
  26. viewBox: SVGAnimatedRect;
  27. onafterprint: (event: Event) => void | null;
  28. onbeforeprint: (event: Event) => void | null;
  29. onbeforeunload: (event: Event) => void | null;
  30. ongamepadconnected: (event: Event) => void | null;
  31. ongamepaddisconnected: (event: Event) => void | null;
  32. onhashchange: (event: Event) => void | null;
  33. onlanguagechange: (event: Event) => void | null;
  34. onmessage: (event: Event) => void | null;
  35. onmessageerror: (event: Event) => void | null;
  36. onoffline: (event: Event) => void | null;
  37. ononline: (event: Event) => void | null;
  38. onpagehide: (event: Event) => void | null;
  39. onpageshow: (event: Event) => void | null;
  40. onpopstate: (event: Event) => void | null;
  41. onrejectionhandled: (event: Event) => void | null;
  42. onstorage: (event: Event) => void | null;
  43. onunhandledrejection: (event: Event) => void | null;
  44. onunload: (event: Event) => void | null;
  45. /**
  46. * Pauses animation.
  47. */
  48. pauseAnimations(): void;
  49. /**
  50. * Unpauses animation.
  51. */
  52. unpauseAnimations(): void;
  53. /**
  54. * Returns "true" if animation is paused.
  55. *
  56. * @returns "true" if animation is paused.
  57. */
  58. animationsPaused(): boolean;
  59. /**
  60. * Returns the current time in seconds relative to the start time for the current SVG document fragment.
  61. *
  62. * @returns Current time.
  63. */
  64. getCurrentTime(): number;
  65. /**
  66. * Sets current time.
  67. */
  68. setCurrentTime(): void;
  69. /**
  70. * Returns intersection list.
  71. *
  72. * @returns Intersection list.
  73. */
  74. getIntersectionList(): INode[];
  75. /**
  76. * Returns enclousure list.
  77. *
  78. * @returns Enclousure list.
  79. */
  80. getEnclosureList(): INode[];
  81. /**
  82. * Returns true if the rendered content of the given element intersects the supplied rectangle.
  83. *
  84. * @returns Intersection state.
  85. */
  86. checkIntersection(): boolean;
  87. /**
  88. * Returns true if the rendered content of the given element is entirely contained within the supplied rectangle.
  89. *
  90. * @returns Enclousure state.
  91. */
  92. checkEnclosure(): boolean;
  93. /**
  94. * Unselects any selected objects, including any selections of text strings and type-in bars.
  95. */
  96. deselectAll(): void;
  97. /**
  98. * Returns a number.
  99. *
  100. * @returns Number.
  101. */
  102. createSVGNumber(): SVGNumber;
  103. /**
  104. * Returns a length.
  105. *
  106. * @returns Length.
  107. */
  108. createSVGLength(): SVGLength;
  109. /**
  110. * Returns a angle.
  111. *
  112. * @returns Angle.
  113. */
  114. createSVGAngle(): SVGAngle;
  115. /**
  116. * Returns a point.
  117. *
  118. * @returns Point.
  119. */
  120. createSVGPoint(): SVGPoint;
  121. /**
  122. * Returns a rect.
  123. *
  124. * @returns Rect.
  125. */
  126. createSVGRect(): SVGRect;
  127. /**
  128. * Returns a transform.
  129. *
  130. * @returns Transform.
  131. */
  132. createSVGTransform(): SVGTransform;
  133. /**
  134. * Clones a node.
  135. *
  136. * @override
  137. * @param [deep=false] "true" to clone deep.
  138. * @returns Cloned node.
  139. */
  140. cloneNode(deep: boolean): ISVGSVGElement;
  141. }