html5.js 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373
  1. /**
  2. *
  3. *
  4. * @super Object
  5. * @constructor
  6. * @return {ImageData}
  7. */
  8. function ImageData() {};
  9. ImageData.prototype = new Object();
  10. /**
  11. *
  12. *
  13. * @super Object
  14. * @constructor
  15. * @return {HTMLCanvasElement}
  16. */
  17. function HTMLCanvasElement() {};
  18. HTMLCanvasElement.prototype = new HTMLElement();
  19. /**
  20. *
  21. *
  22. * @super Object
  23. * @constructor
  24. * @return {HTMLAudioElement}
  25. */
  26. function HTMLAudioElement() {};
  27. HTMLAudioElement.prototype = new HTMLMediaElement();
  28. /**
  29. *
  30. *
  31. * @super Object
  32. * @constructor
  33. * @return {HTMLVideoElement}
  34. */
  35. function HTMLVideoElement() {};
  36. HTMLVideoElement.prototype = new HTMLMediaElement();
  37. /**
  38. *
  39. *
  40. * @super Object
  41. * @constructor
  42. * @return {CanvasPixelArray}
  43. */
  44. function CanvasPixelArray() {};
  45. CanvasPixelArray.prototype = new Object();
  46. /**
  47. *
  48. *
  49. * @super Object
  50. * @constructor
  51. * @return {CanvasPattern}
  52. */
  53. function CanvasPattern() {};
  54. CanvasPattern.prototype = new Object();
  55. /**
  56. *
  57. *
  58. * @super Object
  59. * @constructor
  60. * @return {TextMetrics}
  61. */
  62. function TextMetrics() {};
  63. TextMetrics.prototype = new Object();
  64. /**
  65. *
  66. *
  67. * @super Object
  68. * @constructor
  69. * @return {CanvasRenderingContext2D}
  70. */
  71. function CanvasRenderingContext2D() {};
  72. CanvasRenderingContext2D.prototype = new Object();
  73. /**
  74. *
  75. *
  76. * @super Object
  77. * @constructor
  78. * @return {CanvasGradient}
  79. */
  80. function CanvasGradient() {};
  81. CanvasGradient.prototype = new Object();
  82. /**
  83. *
  84. *
  85. * @super Object
  86. * @constructor
  87. * @return {HTMLMediaElement}
  88. */
  89. function HTMLMediaElement() {};
  90. HTMLMediaElement.prototype = new HTMLElement();
  91. /**
  92. *
  93. *
  94. * @type Boolean
  95. */
  96. HTMLElement.prototype.hidden = new Boolean();
  97. /**
  98. *
  99. *
  100. * @type Object
  101. */
  102. HTMLElement.prototype.contenteditable = new Object();
  103. /**
  104. *
  105. *
  106. * @type Number
  107. */
  108. ImageData.prototype.width = new Number();
  109. /**
  110. *
  111. *
  112. * @type Number
  113. */
  114. ImageData.prototype.height = new Number();
  115. /**
  116. *
  117. *
  118. * @type CanvasPixelArray
  119. */
  120. ImageData.prototype.data = [new CanvasPixel()];
  121. /**
  122. *
  123. *
  124. * @type Number
  125. */
  126. HTMLCanvasElement.prototype.width = new Number();
  127. /**
  128. *
  129. *
  130. * @type Number
  131. */
  132. HTMLCanvasElement.prototype.height = new Number();
  133. /**
  134. *
  135. *
  136. * @param {String} type
  137. * @param {any} args
  138. * @type String
  139. * @memberOf HTMLCanvasElement
  140. * @returns {String}
  141. */
  142. HTMLCanvasElement.prototype.toDataURL = function(type, args){ var ret = new String(); return ret; };
  143. /**
  144. *
  145. *
  146. * @param {String} contextId
  147. * @param {any} args
  148. * @type Object
  149. * @memberOf HTMLCanvasElement
  150. * @returns {Object}
  151. */
  152. HTMLCanvasElement.prototype.getContext = function(contextId, args){ var ret = new Object(); return ret; };
  153. /**
  154. *
  155. *
  156. * @type String
  157. */
  158. HTMLVideoElement.prototype.width = new String();
  159. /**
  160. *
  161. *
  162. * @type String
  163. */
  164. HTMLVideoElement.prototype.height = new String();
  165. /**
  166. *
  167. *
  168. * @type Number
  169. */
  170. HTMLVideoElement.prototype.videoWidth = new Number();
  171. /**
  172. *
  173. *
  174. * @type Number
  175. */
  176. HTMLVideoElement.prototype.videoHeight = new Number();
  177. /**
  178. *
  179. *
  180. * @type String
  181. */
  182. HTMLVideoElement.prototype.poster = new String();
  183. /**
  184. *
  185. *
  186. * @type Number
  187. */
  188. CanvasPixelArray.prototype.length = new Number();
  189. /**
  190. *
  191. *
  192. * @type String
  193. */
  194. HTMLInputElement.prototype.autocomplete = new String();
  195. /**
  196. *
  197. *
  198. * @type Boolean
  199. */
  200. HTMLInputElement.prototype.autofocus = new Boolean();
  201. /**
  202. *
  203. *
  204. * @type FileList
  205. */
  206. HTMLInputElement.prototype.files = new FileList();
  207. /**
  208. *
  209. *
  210. * @type String
  211. */
  212. HTMLInputElement.prototype.formAction = new String();
  213. /**
  214. *
  215. *
  216. * @type String
  217. */
  218. HTMLInputElement.prototype.formEnctype = new String();
  219. /**
  220. *
  221. *
  222. * @type String
  223. */
  224. HTMLInputElement.prototype.formMethod = new String();
  225. /**
  226. *
  227. *
  228. * @type Boolean
  229. */
  230. HTMLInputElement.prototype.formNoValidate = new Boolean();
  231. /**
  232. *
  233. *
  234. * @type String
  235. */
  236. HTMLInputElement.prototype.formTarget = new String();
  237. /**
  238. *
  239. *
  240. * @type String
  241. */
  242. HTMLInputElement.prototype.height = new String();
  243. /**
  244. *
  245. *
  246. * @type Boolean
  247. */
  248. HTMLInputElement.prototype.indeterminate = new Boolean();
  249. /**
  250. *
  251. *
  252. * @type HTMLElement
  253. */
  254. HTMLInputElement.prototype.list = new HTMLElement();
  255. /**
  256. *
  257. *
  258. * @type String
  259. */
  260. HTMLInputElement.prototype.max = new String();
  261. /**
  262. *
  263. *
  264. * @type String
  265. */
  266. HTMLInputElement.prototype.min = new String();
  267. /**
  268. *
  269. *
  270. * @type Boolean
  271. */
  272. HTMLInputElement.prototype.multiple = new Boolean();
  273. /**
  274. *
  275. *
  276. * @type String
  277. */
  278. HTMLInputElement.prototype.pattern = new String();
  279. /**
  280. *
  281. *
  282. * @type String
  283. */
  284. HTMLInputElement.prototype.placeholder = new String();
  285. /**
  286. *
  287. *
  288. * @type Boolean
  289. */
  290. HTMLInputElement.prototype.required = new Boolean();
  291. /**
  292. *
  293. *
  294. * @type String
  295. */
  296. HTMLInputElement.prototype.step = new String();
  297. /**
  298. *
  299. *
  300. * @type Date
  301. */
  302. HTMLInputElement.prototype.valueAsDate = new Date();
  303. /**
  304. *
  305. *
  306. * @type Number
  307. */
  308. HTMLInputElement.prototype.valueAsNumber = new Number();
  309. /**
  310. *
  311. *
  312. * @type HTMLOptionElement
  313. */
  314. HTMLInputElement.prototype.selectedOption = new HTMLOptionElement();
  315. /**
  316. *
  317. *
  318. * @type String
  319. */
  320. HTMLInputElement.prototype.width = new String();
  321. /**
  322. *
  323. *
  324. * @type Boolean
  325. */
  326. HTMLInputElement.prototype.willValidate = new Boolean();
  327. /**
  328. *
  329. *
  330. * @type ValidityState
  331. */
  332. HTMLInputElement.prototype.validity = new ValidityState();
  333. /**
  334. *
  335. *
  336. * @type String
  337. */
  338. HTMLInputElement.prototype.validationMessage = new String();
  339. /**
  340. *
  341. *
  342. * @type NodeList
  343. */
  344. HTMLInputElement.prototype.labels = new NodeList();
  345. /**
  346. *
  347. *
  348. * @type Number
  349. */
  350. HTMLInputElement.prototype.selectionStart = new Number();
  351. /**
  352. *
  353. *
  354. * @type Number
  355. */
  356. HTMLInputElement.prototype.selectionEnd = new Number();
  357. /**
  358. *
  359. *
  360. * @param {Number} n
  361. * @type void
  362. * @memberOf HTMLInputElement
  363. * @returns {void}
  364. */
  365. HTMLInputElement.prototype.stepUp = function(n){ return; };
  366. /**
  367. *
  368. *
  369. * @param {Number} n
  370. * @type void
  371. * @memberOf HTMLInputElement
  372. * @returns {void}
  373. */
  374. HTMLInputElement.prototype.stepDown = function(n){ return; };
  375. /**
  376. *
  377. *
  378. * @type Boolean
  379. * @memberOf HTMLInputElement
  380. * @returns {Boolean}
  381. */
  382. HTMLInputElement.prototype.checkValidity = function(){ var ret = new Boolean(); return ret; };
  383. /**
  384. *
  385. *
  386. * @param {String} error
  387. * @type void
  388. * @memberOf HTMLInputElement
  389. * @returns {void}
  390. */
  391. HTMLInputElement.prototype.setCustomValidity = function(error){ return; };
  392. /**
  393. *
  394. *
  395. * @param {Number} start
  396. * @param {Number} end
  397. * @type void
  398. * @memberOf HTMLInputElement
  399. * @returns {void}
  400. */
  401. HTMLInputElement.prototype.setSelectionRange = function(start, end){ return; };
  402. /**
  403. *
  404. *
  405. * @type Number
  406. */
  407. TextMetrics.prototype.width = new Number();
  408. /**
  409. *
  410. *
  411. * @type HTMLCanvasElement
  412. */
  413. CanvasRenderingContext2D.prototype.canvas = new HTMLCanvasElement();
  414. /**
  415. *
  416. *
  417. * @type Number
  418. */
  419. CanvasRenderingContext2D.prototype.globalAlpha = new Number();
  420. /**
  421. *
  422. *
  423. * @type String
  424. */
  425. CanvasRenderingContext2D.prototype.globalCompositeOperation = new String();
  426. /**
  427. *
  428. *
  429. * @type any
  430. */
  431. CanvasRenderingContext2D.prototype.strokeStyle = new any();
  432. /**
  433. *
  434. *
  435. * @type any
  436. */
  437. CanvasRenderingContext2D.prototype.fillStyle = new any();
  438. /**
  439. *
  440. *
  441. * @type Number
  442. */
  443. CanvasRenderingContext2D.prototype.lineWidth = new Number();
  444. /**
  445. *
  446. *
  447. * @type String
  448. */
  449. CanvasRenderingContext2D.prototype.lineCap = new String();
  450. /**
  451. *
  452. *
  453. * @type String
  454. */
  455. CanvasRenderingContext2D.prototype.lineJoin = new String();
  456. /**
  457. *
  458. *
  459. * @type Number
  460. */
  461. CanvasRenderingContext2D.prototype.miterLimit = new Number();
  462. /**
  463. *
  464. *
  465. * @type Number
  466. */
  467. CanvasRenderingContext2D.prototype.shadowOffsetX = new Number();
  468. /**
  469. *
  470. *
  471. * @type Number
  472. */
  473. CanvasRenderingContext2D.prototype.shadowOffsetY = new Number();
  474. /**
  475. *
  476. *
  477. * @type Number
  478. */
  479. CanvasRenderingContext2D.prototype.shadowBlur = new Number();
  480. /**
  481. *
  482. *
  483. * @type String
  484. */
  485. CanvasRenderingContext2D.prototype.shadowColor = new String();
  486. /**
  487. *
  488. *
  489. * @type String
  490. */
  491. CanvasRenderingContext2D.prototype.font = new String();
  492. /**
  493. *
  494. *
  495. * @type String
  496. */
  497. CanvasRenderingContext2D.prototype.textAlign = new String();
  498. /**
  499. *
  500. *
  501. * @type String
  502. */
  503. CanvasRenderingContext2D.prototype.textBaseline = new String();
  504. /**
  505. *
  506. *
  507. * @type void
  508. * @memberOf CanvasRenderingContext2D
  509. * @returns {void}
  510. */
  511. CanvasRenderingContext2D.prototype.save = function(){ return; };
  512. /**
  513. *
  514. *
  515. * @type void
  516. * @memberOf CanvasRenderingContext2D
  517. * @returns {void}
  518. */
  519. CanvasRenderingContext2D.prototype.restore = function(){ return; };
  520. /**
  521. *
  522. *
  523. * @param {Number} x
  524. * @param {Number} y
  525. * @type void
  526. * @memberOf CanvasRenderingContext2D
  527. * @returns {void}
  528. */
  529. CanvasRenderingContext2D.prototype.scale = function(x, y){ return; };
  530. /**
  531. *
  532. *
  533. * @param {Number} angle
  534. * @type void
  535. * @memberOf CanvasRenderingContext2D
  536. * @returns {void}
  537. */
  538. CanvasRenderingContext2D.prototype.rotate = function(angle){ return; };
  539. /**
  540. *
  541. *
  542. * @param {Number} x
  543. * @param {Number} y
  544. * @type void
  545. * @memberOf CanvasRenderingContext2D
  546. * @returns {void}
  547. */
  548. CanvasRenderingContext2D.prototype.translate = function(x, y){ return; };
  549. /**
  550. *
  551. *
  552. * @param {Number} a
  553. * @param {Number} b
  554. * @param {Number} c
  555. * @param {Number} d
  556. * @param {Number} e
  557. * @param {Number} f
  558. * @type void
  559. * @memberOf CanvasRenderingContext2D
  560. * @returns {void}
  561. */
  562. CanvasRenderingContext2D.prototype.transform = function(a, b, c, d, e, f){ return; };
  563. /**
  564. *
  565. *
  566. * @param {Number} a
  567. * @param {Number} b
  568. * @param {Number} c
  569. * @param {Number} d
  570. * @param {Number} e
  571. * @param {Number} f
  572. * @type void
  573. * @memberOf CanvasRenderingContext2D
  574. * @returns {void}
  575. */
  576. CanvasRenderingContext2D.prototype.setTransform = function(a, b, c, d, e, f){ return; };
  577. /**
  578. *
  579. *
  580. * @param {Number} x0
  581. * @param {Number} y0
  582. * @param {Number} x1
  583. * @param {Number} y1
  584. * @type CanvasGradient
  585. * @memberOf CanvasRenderingContext2D
  586. * @returns {CanvasGradient}
  587. */
  588. CanvasRenderingContext2D.prototype.createLinearGradient = function(x0, y0, x1, y1){ var ret = new CanvasGradient(); return ret; };
  589. /**
  590. *
  591. *
  592. * @param {Number} x0
  593. * @param {Number} y0
  594. * @param {Number} r0
  595. * @param {Number} x1
  596. * @param {Number} y1
  597. * @param {Number} r1
  598. * @type CanvasGradient
  599. * @memberOf CanvasRenderingContext2D
  600. * @returns {CanvasGradient}
  601. */
  602. CanvasRenderingContext2D.prototype.createRadialGradient = function(x0, y0, r0, x1, y1, r1){ var ret = new CanvasGradient(); return ret; };
  603. /**
  604. *
  605. *
  606. * @param {HTMLImageElement} image
  607. * @param {String} repetition
  608. * @type CanvasPattern
  609. * @memberOf CanvasRenderingContext2D
  610. * @returns {CanvasPattern}
  611. */
  612. CanvasRenderingContext2D.prototype.createPattern = function(image, repetition){ var ret = new CanvasPattern(); return ret; };
  613. /**
  614. *
  615. *
  616. * @param {HTMLCanvasElement} image
  617. * @param {String} repetition
  618. * @type CanvasPattern
  619. * @memberOf CanvasRenderingContext2D
  620. * @returns {CanvasPattern}
  621. */
  622. CanvasRenderingContext2D.prototype.createPattern = function(image, repetition){ var ret = new CanvasPattern(); return ret; };
  623. /**
  624. *
  625. *
  626. * @param {HTMLVideoElement} image
  627. * @param {String} repetition
  628. * @type CanvasPattern
  629. * @memberOf CanvasRenderingContext2D
  630. * @returns {CanvasPattern}
  631. */
  632. CanvasRenderingContext2D.prototype.createPattern = function(image, repetition){ var ret = new CanvasPattern(); return ret; };
  633. /**
  634. *
  635. *
  636. * @param {Number} x
  637. * @param {Number} y
  638. * @param {Number} w
  639. * @param {Number} h
  640. * @type void
  641. * @memberOf CanvasRenderingContext2D
  642. * @returns {void}
  643. */
  644. CanvasRenderingContext2D.prototype.clearRect = function(x, y, w, h){ return; };
  645. /**
  646. *
  647. *
  648. * @param {Number} x
  649. * @param {Number} y
  650. * @param {Number} w
  651. * @param {Number} h
  652. * @type void
  653. * @memberOf CanvasRenderingContext2D
  654. * @returns {void}
  655. */
  656. CanvasRenderingContext2D.prototype.fillRect = function(x, y, w, h){ return; };
  657. /**
  658. *
  659. *
  660. * @param {Number} x
  661. * @param {Number} y
  662. * @param {Number} w
  663. * @param {Number} h
  664. * @type void
  665. * @memberOf CanvasRenderingContext2D
  666. * @returns {void}
  667. */
  668. CanvasRenderingContext2D.prototype.strokeRect = function(x, y, w, h){ return; };
  669. /**
  670. *
  671. *
  672. * @type void
  673. * @memberOf CanvasRenderingContext2D
  674. * @returns {void}
  675. */
  676. CanvasRenderingContext2D.prototype.beginPath = function(){ return; };
  677. /**
  678. *
  679. *
  680. * @type void
  681. * @memberOf CanvasRenderingContext2D
  682. * @returns {void}
  683. */
  684. CanvasRenderingContext2D.prototype.closePath = function(){ return; };
  685. /**
  686. *
  687. *
  688. * @param {Number} x
  689. * @param {Number} y
  690. * @type void
  691. * @memberOf CanvasRenderingContext2D
  692. * @returns {void}
  693. */
  694. CanvasRenderingContext2D.prototype.moveTo = function(x, y){ return; };
  695. /**
  696. *
  697. *
  698. * @param {Number} x
  699. * @param {Number} y
  700. * @type void
  701. * @memberOf CanvasRenderingContext2D
  702. * @returns {void}
  703. */
  704. CanvasRenderingContext2D.prototype.lineTo = function(x, y){ return; };
  705. /**
  706. *
  707. *
  708. * @param {Number} cpx
  709. * @param {Number} cpy
  710. * @param {Number} x
  711. * @param {Number} y
  712. * @type void
  713. * @memberOf CanvasRenderingContext2D
  714. * @returns {void}
  715. */
  716. CanvasRenderingContext2D.prototype.quadraticCurveTo = function(cpx, cpy, x, y){ return; };
  717. /**
  718. *
  719. *
  720. * @param {Number} cp1x
  721. * @param {Number} cp1y
  722. * @param {Number} cp2x
  723. * @param {Number} cp2y
  724. * @param {Number} x
  725. * @param {Number} y
  726. * @type void
  727. * @memberOf CanvasRenderingContext2D
  728. * @returns {void}
  729. */
  730. CanvasRenderingContext2D.prototype.bezierCurveTo = function(cp1x, cp1y, cp2x, cp2y, x, y){ return; };
  731. /**
  732. *
  733. *
  734. * @param {Number} x1
  735. * @param {Number} y1
  736. * @param {Number} x2
  737. * @param {Number} y2
  738. * @param {Number} radius
  739. * @type void
  740. * @memberOf CanvasRenderingContext2D
  741. * @returns {void}
  742. */
  743. CanvasRenderingContext2D.prototype.arcTo = function(x1, y1, x2, y2, radius){ return; };
  744. /**
  745. *
  746. *
  747. * @param {Number} x
  748. * @param {Number} y
  749. * @param {Number} w
  750. * @param {Number} h
  751. * @type void
  752. * @memberOf CanvasRenderingContext2D
  753. * @returns {void}
  754. */
  755. CanvasRenderingContext2D.prototype.rect = function(x, y, w, h){ return; };
  756. /**
  757. *
  758. *
  759. * @param {Number} x
  760. * @param {Number} y
  761. * @param {Number} radius
  762. * @param {Number} startAngle
  763. * @param {Number} endAngle
  764. * @param {Boolean} anticlockwise
  765. * @type void
  766. * @memberOf CanvasRenderingContext2D
  767. * @returns {void}
  768. */
  769. CanvasRenderingContext2D.prototype.arc = function(x, y, radius, startAngle, endAngle, anticlockwise){ return; };
  770. /**
  771. *
  772. *
  773. * @type void
  774. * @memberOf CanvasRenderingContext2D
  775. * @returns {void}
  776. */
  777. CanvasRenderingContext2D.prototype.fill = function(){ return; };
  778. /**
  779. *
  780. *
  781. * @type void
  782. * @memberOf CanvasRenderingContext2D
  783. * @returns {void}
  784. */
  785. CanvasRenderingContext2D.prototype.stroke = function(){ return; };
  786. /**
  787. *
  788. *
  789. * @type void
  790. * @memberOf CanvasRenderingContext2D
  791. * @returns {void}
  792. */
  793. CanvasRenderingContext2D.prototype.clip = function(){ return; };
  794. /**
  795. *
  796. *
  797. * @param {Number} x
  798. * @param {Number} y
  799. * @type Boolean
  800. * @memberOf CanvasRenderingContext2D
  801. * @returns {Boolean}
  802. */
  803. CanvasRenderingContext2D.prototype.isPointInPath = function(x, y){ var ret = new Boolean(); return ret; };
  804. /**
  805. *
  806. *
  807. * @param {Element} element
  808. * @param {Number} xCaret
  809. * @param {Number} yCaret
  810. * @param {Boolean} canDrawCustom
  811. * @type Boolean
  812. * @memberOf CanvasRenderingContext2D
  813. * @returns {Boolean}
  814. */
  815. CanvasRenderingContext2D.prototype.drawFocusRing = function(element, xCaret, yCaret, canDrawCustom){ var ret = new Boolean(); return ret; };
  816. /**
  817. *
  818. *
  819. * @param {String} text
  820. * @param {Number} x
  821. * @param {Number} y
  822. * @param {Number} maxWidth
  823. * @type void
  824. * @memberOf CanvasRenderingContext2D
  825. * @returns {void}
  826. */
  827. CanvasRenderingContext2D.prototype.fillText = function(text, x, y, maxWidth){ return; };
  828. /**
  829. *
  830. *
  831. * @param {String} text
  832. * @param {Number} x
  833. * @param {Number} y
  834. * @param {Number} maxWidth
  835. * @type void
  836. * @memberOf CanvasRenderingContext2D
  837. * @returns {void}
  838. */
  839. CanvasRenderingContext2D.prototype.strokeText = function(text, x, y, maxWidth){ return; };
  840. /**
  841. *
  842. *
  843. * @param {String} text
  844. * @type TextMetrics
  845. * @memberOf CanvasRenderingContext2D
  846. * @returns {TextMetrics}
  847. */
  848. CanvasRenderingContext2D.prototype.measureText = function(text){ var ret = new TextMetrics(); return ret; };
  849. /**
  850. *
  851. *
  852. * @param {HTMLImageElement} image
  853. * @param {Number} dx
  854. * @param {Number} dy
  855. * @param {Number} dw
  856. * @param {Number} dh
  857. * @type void
  858. * @memberOf CanvasRenderingContext2D
  859. * @returns {void}
  860. */
  861. CanvasRenderingContext2D.prototype.drawImage = function(image, dx, dy, dw, dh){ return; };
  862. /**
  863. *
  864. *
  865. * @param {HTMLImageElement} image
  866. * @param {Number} sx
  867. * @param {Number} sy
  868. * @param {Number} sw
  869. * @param {Number} sh
  870. * @param {Number} dx
  871. * @param {Number} dy
  872. * @param {Number} dw
  873. * @param {Number} dh
  874. * @type void
  875. * @memberOf CanvasRenderingContext2D
  876. * @returns {void}
  877. */
  878. CanvasRenderingContext2D.prototype.drawImage = function(image, sx, sy, sw, sh, dx, dy, dw, dh){ return; };
  879. /**
  880. *
  881. *
  882. * @param {HTMLCanvasElement} image
  883. * @param {Number} dx
  884. * @param {Number} dy
  885. * @param {Number} dw
  886. * @param {Number} dh
  887. * @type void
  888. * @memberOf CanvasRenderingContext2D
  889. * @returns {void}
  890. */
  891. CanvasRenderingContext2D.prototype.drawImage = function(image, dx, dy, dw, dh){ return; };
  892. /**
  893. *
  894. *
  895. * @param {HTMLCanvasElement} image
  896. * @param {Number} sx
  897. * @param {Number} sy
  898. * @param {Number} sw
  899. * @param {Number} sh
  900. * @param {Number} dx
  901. * @param {Number} dy
  902. * @param {Number} dw
  903. * @param {Number} dh
  904. * @type void
  905. * @memberOf CanvasRenderingContext2D
  906. * @returns {void}
  907. */
  908. CanvasRenderingContext2D.prototype.drawImage = function(image, sx, sy, sw, sh, dx, dy, dw, dh){ return; };
  909. /**
  910. *
  911. *
  912. * @param {HTMLVideoElement} image
  913. * @param {Number} dx
  914. * @param {Number} dy
  915. * @param {Number} dw
  916. * @param {Number} dh
  917. * @type void
  918. * @memberOf CanvasRenderingContext2D
  919. * @returns {void}
  920. */
  921. CanvasRenderingContext2D.prototype.drawImage = function(image, dx, dy, dw, dh){ return; };
  922. /**
  923. *
  924. *
  925. * @param {HTMLVideoElement} image
  926. * @param {Number} sx
  927. * @param {Number} sy
  928. * @param {Number} sw
  929. * @param {Number} sh
  930. * @param {Number} dx
  931. * @param {Number} dy
  932. * @param {Number} dw
  933. * @param {Number} dh
  934. * @type void
  935. * @memberOf CanvasRenderingContext2D
  936. * @returns {void}
  937. */
  938. CanvasRenderingContext2D.prototype.drawImage = function(image, sx, sy, sw, sh, dx, dy, dw, dh){ return; };
  939. /**
  940. *
  941. *
  942. * @param {Number} sw
  943. * @param {Number} sh
  944. * @type ImageData
  945. * @memberOf CanvasRenderingContext2D
  946. * @returns {ImageData}
  947. */
  948. CanvasRenderingContext2D.prototype.createImageData = function(sw, sh){ var ret = new ImageData(); return ret; };
  949. /**
  950. *
  951. *
  952. * @param {ImageData} imagedata
  953. * @type ImageData
  954. * @memberOf CanvasRenderingContext2D
  955. * @returns {ImageData}
  956. */
  957. CanvasRenderingContext2D.prototype.createImageData = function(imagedata){ var ret = new ImageData(); return ret; };
  958. /**
  959. *
  960. *
  961. * @param {Number} sx
  962. * @param {Number} sy
  963. * @param {Number} sw
  964. * @param {Number} sh
  965. * @type ImageData
  966. * @memberOf CanvasRenderingContext2D
  967. * @returns {ImageData}
  968. */
  969. CanvasRenderingContext2D.prototype.getImageData = function(sx, sy, sw, sh){ var ret = new ImageData(); return ret; };
  970. /**
  971. *
  972. *
  973. * @param {ImageData} imagedata
  974. * @param {Number} dx
  975. * @param {Number} dy
  976. * @param {Number} dirtyX
  977. * @param {Number} dirtyY
  978. * @param {Number} dirtyWidth
  979. * @param {Number} dirtyHeight
  980. * @type void
  981. * @memberOf CanvasRenderingContext2D
  982. * @returns {void}
  983. */
  984. CanvasRenderingContext2D.prototype.putImageData = function(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight){ return; };
  985. /**
  986. *
  987. *
  988. * @param {Number} offset
  989. * @param {String} color
  990. * @type void
  991. * @memberOf CanvasGradient
  992. * @returns {void}
  993. */
  994. CanvasGradient.prototype.addColorStop = function(offset, color){ return; };
  995. /**
  996. *
  997. *
  998. * @type Number
  999. */
  1000. HTMLMediaElement.NETWORK_EMPTY = new Number();
  1001. /**
  1002. *
  1003. *
  1004. * @type Number
  1005. */
  1006. HTMLMediaElement.NETWORK_IDLE = new Number();
  1007. /**
  1008. *
  1009. *
  1010. * @type Number
  1011. */
  1012. HTMLMediaElement.NETWORK_LOADING = new Number();
  1013. /**
  1014. *
  1015. *
  1016. * @type Number
  1017. */
  1018. HTMLMediaElement.NETWORK_NO_SOURCE = new Number();
  1019. /**
  1020. *
  1021. *
  1022. * @type Number
  1023. */
  1024. HTMLMediaElement.HAVE_NOTHING = new Number();
  1025. /**
  1026. *
  1027. *
  1028. * @type Number
  1029. */
  1030. HTMLMediaElement.HAVE_METADATA = new Number();
  1031. /**
  1032. *
  1033. *
  1034. * @type Number
  1035. */
  1036. HTMLMediaElement.HAVE_CURRENT_DATA = new Number();
  1037. /**
  1038. *
  1039. *
  1040. * @type Number
  1041. */
  1042. HTMLMediaElement.HAVE_FUTURE_DATA = new Number();
  1043. /**
  1044. *
  1045. *
  1046. * @type Number
  1047. */
  1048. HTMLMediaElement.HAVE_ENOUGH_DATA = new Number();
  1049. /**
  1050. *
  1051. *
  1052. * @type MediaError
  1053. */
  1054. HTMLMediaElement.prototype.error = new MediaError();
  1055. /**
  1056. *
  1057. *
  1058. * @type String
  1059. */
  1060. HTMLMediaElement.prototype.src = new String();
  1061. /**
  1062. *
  1063. *
  1064. * @type String
  1065. */
  1066. HTMLMediaElement.prototype.currentSrc = new String();
  1067. /**
  1068. *
  1069. *
  1070. * @type Number
  1071. */
  1072. HTMLMediaElement.prototype.networkState = new Number();
  1073. /**
  1074. *
  1075. *
  1076. * @type String
  1077. */
  1078. HTMLMediaElement.prototype.preload = new String();
  1079. /**
  1080. *
  1081. *
  1082. * @type TimeRanges
  1083. */
  1084. HTMLMediaElement.prototype.buffered = new TimeRanges();
  1085. /**
  1086. *
  1087. *
  1088. * @type Number
  1089. */
  1090. HTMLMediaElement.prototype.readyState = new Number();
  1091. /**
  1092. *
  1093. *
  1094. * @type Boolean
  1095. */
  1096. HTMLMediaElement.prototype.seeking = new Boolean();
  1097. /**
  1098. *
  1099. *
  1100. * @type Number
  1101. */
  1102. HTMLMediaElement.prototype.currentTime = new Number();
  1103. /**
  1104. *
  1105. *
  1106. * @type Number
  1107. */
  1108. HTMLMediaElement.prototype.startTime = new Number();
  1109. /**
  1110. *
  1111. *
  1112. * @type Number
  1113. */
  1114. HTMLMediaElement.prototype.duration = new Number();
  1115. /**
  1116. *
  1117. *
  1118. * @type Boolean
  1119. */
  1120. HTMLMediaElement.prototype.paused = new Boolean();
  1121. /**
  1122. *
  1123. *
  1124. * @type Number
  1125. */
  1126. HTMLMediaElement.prototype.defaultPlaybackRate = new Number();
  1127. /**
  1128. *
  1129. *
  1130. * @type Number
  1131. */
  1132. HTMLMediaElement.prototype.playbackRate = new Number();
  1133. /**
  1134. *
  1135. *
  1136. * @type TimeRanges
  1137. */
  1138. HTMLMediaElement.prototype.played = new TimeRanges();
  1139. /**
  1140. *
  1141. *
  1142. * @type TimeRanges
  1143. */
  1144. HTMLMediaElement.prototype.seekable = new TimeRanges();
  1145. /**
  1146. *
  1147. *
  1148. * @type Boolean
  1149. */
  1150. HTMLMediaElement.prototype.ended = new Boolean();
  1151. /**
  1152. *
  1153. *
  1154. * @type Boolean
  1155. */
  1156. HTMLMediaElement.prototype.autoplay = new Boolean();
  1157. /**
  1158. *
  1159. *
  1160. * @type Boolean
  1161. */
  1162. HTMLMediaElement.prototype.loop = new Boolean();
  1163. /**
  1164. *
  1165. *
  1166. * @type Boolean
  1167. */
  1168. HTMLMediaElement.prototype.controls = new Boolean();
  1169. /**
  1170. *
  1171. *
  1172. * @type Number
  1173. */
  1174. HTMLMediaElement.prototype.volume = new Number();
  1175. /**
  1176. *
  1177. *
  1178. * @type Boolean
  1179. */
  1180. HTMLMediaElement.prototype.muted = new Boolean();
  1181. /**
  1182. *
  1183. *
  1184. * @type void
  1185. * @memberOf HTMLMediaElement
  1186. * @returns {void}
  1187. */
  1188. HTMLMediaElement.prototype.load = function(){ return; };
  1189. /**
  1190. *
  1191. *
  1192. * @param {String} type
  1193. * @type String
  1194. * @memberOf HTMLMediaElement
  1195. * @returns {String}
  1196. */
  1197. HTMLMediaElement.prototype.canPlayType = function(type){ var ret = new String(); return ret; };
  1198. /**
  1199. *
  1200. *
  1201. * @type void
  1202. * @memberOf HTMLMediaElement
  1203. * @returns {void}
  1204. */
  1205. HTMLMediaElement.prototype.play = function(){ return; };
  1206. /**
  1207. *
  1208. *
  1209. * @type void
  1210. * @memberOf HTMLMediaElement
  1211. * @returns {void}
  1212. */
  1213. HTMLMediaElement.prototype.pause = function(){ return; };
  1214. /**
  1215. *
  1216. *
  1217. * @type Boolean
  1218. */
  1219. Navigator.prototype.onLine = new Boolean();