版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

233 rivejä
5.4 KiB

  1. import SVGGraphicsElement from './SVGGraphicsElement';
  2. import SVGRect from './SVGRect';
  3. import SVGPoint from './SVGPoint';
  4. import SVGLength from './SVGLength';
  5. import SVGAngle from './SVGAngle';
  6. import SVGNumber from './SVGNumber';
  7. import SVGTransform from './SVGTransform';
  8. import SVGAnimatedRect from './SVGAnimatedRect';
  9. import ISVGSVGElement from './ISVGSVGElement';
  10. import INode from '../node/INode';
  11. import Event from '../../event/Event';
  12. /**
  13. * SVGSVGElement.
  14. */
  15. export default class SVGSVGElement extends SVGGraphicsElement implements ISVGSVGElement {
  16. onafterprint: (event: Event) => void | null;
  17. onbeforeprint: (event: Event) => void | null;
  18. onbeforeunload: (event: Event) => void | null;
  19. ongamepadconnected: (event: Event) => void | null;
  20. ongamepaddisconnected: (event: Event) => void | null;
  21. onhashchange: (event: Event) => void | null;
  22. onlanguagechange: (event: Event) => void | null;
  23. onmessage: (event: Event) => void | null;
  24. onmessageerror: (event: Event) => void | null;
  25. onoffline: (event: Event) => void | null;
  26. ononline: (event: Event) => void | null;
  27. onpagehide: (event: Event) => void | null;
  28. onpageshow: (event: Event) => void | null;
  29. onpopstate: (event: Event) => void | null;
  30. onrejectionhandled: (event: Event) => void | null;
  31. onstorage: (event: Event) => void | null;
  32. onunhandledrejection: (event: Event) => void | null;
  33. onunload: (event: Event) => void | null;
  34. /**
  35. * Returns preserveAspectRatio.
  36. *
  37. * @returns PreserveAspectRatio.
  38. */
  39. get preserveAspectRatio(): string;
  40. /**
  41. * Sets preserveAspectRatio.
  42. *
  43. * @param preserveAspectRatio PreserveAspectRatio.
  44. */
  45. set preserveAspectRatio(preserveAspectRatio: string);
  46. /**
  47. * Returns width.
  48. *
  49. * @returns Width.
  50. */
  51. get width(): string;
  52. /**
  53. * Sets width.
  54. *
  55. * @param width Width.
  56. */
  57. set width(width: string);
  58. /**
  59. * Returns height.
  60. *
  61. * @returns Height.
  62. */
  63. get height(): string;
  64. /**
  65. * Sets height.
  66. *
  67. * @param height Height.
  68. */
  69. set height(height: string);
  70. /**
  71. * Returns x.
  72. *
  73. * @returns X.
  74. */
  75. get x(): string;
  76. /**
  77. * Sets x.
  78. *
  79. * @param x X.
  80. */
  81. set x(x: string);
  82. /**
  83. * Returns y.
  84. *
  85. * @returns Y.
  86. */
  87. get y(): string;
  88. /**
  89. * Sets y.
  90. *
  91. * @param y Y.
  92. */
  93. set y(y: string);
  94. /**
  95. * Returns contentScriptType.
  96. *
  97. * @returns ContentScriptType.
  98. */
  99. get contentScriptType(): string;
  100. /**
  101. * Sets contentScriptType.
  102. *
  103. * @param contentScriptType ContentScriptType.
  104. */
  105. set contentScriptType(contentScriptType: string);
  106. /**
  107. * Returns currentScale.
  108. *
  109. * @returns CurrentScale.
  110. */
  111. get currentScale(): number;
  112. /**
  113. * Sets currentScale.
  114. *
  115. * @param currentScale CurrentScale.
  116. */
  117. set currentScale(currentScale: number);
  118. /**
  119. * Returns viewport.
  120. *
  121. * @returns SVG rect.
  122. */
  123. get viewport(): SVGRect;
  124. /**
  125. * Returns current translate.
  126. *
  127. * @returns SVG point.
  128. */
  129. get currentTranslate(): SVGPoint;
  130. /**
  131. * Returns view box.
  132. *
  133. * @returns Viewbox.
  134. */
  135. get viewBox(): SVGAnimatedRect;
  136. /**
  137. * Pauses animation.
  138. */
  139. pauseAnimations(): void;
  140. /**
  141. * Unpauses animation.
  142. */
  143. unpauseAnimations(): void;
  144. /**
  145. * Returns "true" if animation is paused.
  146. *
  147. * @returns "true" if animation is paused.
  148. */
  149. animationsPaused(): boolean;
  150. /**
  151. * Returns the current time in seconds relative to the start time for the current SVG document fragment.
  152. *
  153. * @returns Current time.
  154. */
  155. getCurrentTime(): number;
  156. /**
  157. * Sets current time.
  158. */
  159. setCurrentTime(): void;
  160. /**
  161. * Returns intersection list.
  162. *
  163. * @returns Intersection list.
  164. */
  165. getIntersectionList(): INode[];
  166. /**
  167. * Returns enclousure list.
  168. *
  169. * @returns Enclousure list.
  170. */
  171. getEnclosureList(): INode[];
  172. /**
  173. * Returns true if the rendered content of the given element intersects the supplied rectangle.
  174. *
  175. * @returns Intersection state.
  176. */
  177. checkIntersection(): boolean;
  178. /**
  179. * Returns true if the rendered content of the given element is entirely contained within the supplied rectangle.
  180. *
  181. * @returns Enclousure state.
  182. */
  183. checkEnclosure(): boolean;
  184. /**
  185. * Unselects any selected objects, including any selections of text strings and type-in bars.
  186. */
  187. deselectAll(): void;
  188. /**
  189. * Returns a number.
  190. *
  191. * @returns Number.
  192. */
  193. createSVGNumber(): SVGNumber;
  194. /**
  195. * Returns a length.
  196. *
  197. * @returns Length.
  198. */
  199. createSVGLength(): SVGLength;
  200. /**
  201. * Returns a angle.
  202. *
  203. * @returns Angle.
  204. */
  205. createSVGAngle(): SVGAngle;
  206. /**
  207. * Returns a point.
  208. *
  209. * @returns Point.
  210. */
  211. createSVGPoint(): SVGPoint;
  212. /**
  213. * Returns a rect.
  214. *
  215. * @returns Rect.
  216. */
  217. createSVGRect(): SVGRect;
  218. /**
  219. * Returns a transform.
  220. *
  221. * @returns Transform.
  222. */
  223. createSVGTransform(): SVGTransform;
  224. /**
  225. * Clones a node.
  226. *
  227. * @override
  228. * @param [deep=false] "true" to clone deep.
  229. * @returns Cloned node.
  230. */
  231. cloneNode(deep?: boolean): ISVGSVGElement;
  232. }