1
0

Canvas.deploy.js 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486
  1. smalltalk.addPackage('Canvas', {});
  2. smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
  3. smalltalk.addMethod(
  4. "_a",
  5. smalltalk.method({
  6. selector: "a",
  7. fn: function (){
  8. var self=this;
  9. var $1;
  10. $1=smalltalk.send(self,"_tag_",["a"]);
  11. return $1;
  12. }
  13. }),
  14. smalltalk.HTMLCanvas);
  15. smalltalk.addMethod(
  16. "_abbr",
  17. smalltalk.method({
  18. selector: "abbr",
  19. fn: function (){
  20. var self=this;
  21. var $1;
  22. $1=smalltalk.send(self,"_tag_",["abbr"]);
  23. return $1;
  24. }
  25. }),
  26. smalltalk.HTMLCanvas);
  27. smalltalk.addMethod(
  28. "_address",
  29. smalltalk.method({
  30. selector: "address",
  31. fn: function (){
  32. var self=this;
  33. var $1;
  34. $1=smalltalk.send(self,"_tag_",["address"]);
  35. return $1;
  36. }
  37. }),
  38. smalltalk.HTMLCanvas);
  39. smalltalk.addMethod(
  40. "_area",
  41. smalltalk.method({
  42. selector: "area",
  43. fn: function (){
  44. var self=this;
  45. var $1;
  46. $1=smalltalk.send(self,"_tag_",["area"]);
  47. return $1;
  48. }
  49. }),
  50. smalltalk.HTMLCanvas);
  51. smalltalk.addMethod(
  52. "_article",
  53. smalltalk.method({
  54. selector: "article",
  55. fn: function (){
  56. var self=this;
  57. var $1;
  58. $1=smalltalk.send(self,"_tag_",["article"]);
  59. return $1;
  60. }
  61. }),
  62. smalltalk.HTMLCanvas);
  63. smalltalk.addMethod(
  64. "_aside",
  65. smalltalk.method({
  66. selector: "aside",
  67. fn: function (){
  68. var self=this;
  69. var $1;
  70. $1=smalltalk.send(self,"_tag_",["aside"]);
  71. return $1;
  72. }
  73. }),
  74. smalltalk.HTMLCanvas);
  75. smalltalk.addMethod(
  76. "_audio",
  77. smalltalk.method({
  78. selector: "audio",
  79. fn: function (){
  80. var self=this;
  81. var $1;
  82. $1=smalltalk.send(self,"_tag_",["audio"]);
  83. return $1;
  84. }
  85. }),
  86. smalltalk.HTMLCanvas);
  87. smalltalk.addMethod(
  88. "_base",
  89. smalltalk.method({
  90. selector: "base",
  91. fn: function (){
  92. var self=this;
  93. var $1;
  94. $1=smalltalk.send(self,"_tag_",["base"]);
  95. return $1;
  96. }
  97. }),
  98. smalltalk.HTMLCanvas);
  99. smalltalk.addMethod(
  100. "_blockquote",
  101. smalltalk.method({
  102. selector: "blockquote",
  103. fn: function (){
  104. var self=this;
  105. var $1;
  106. $1=smalltalk.send(self,"_tag_",["blockquote"]);
  107. return $1;
  108. }
  109. }),
  110. smalltalk.HTMLCanvas);
  111. smalltalk.addMethod(
  112. "_body",
  113. smalltalk.method({
  114. selector: "body",
  115. fn: function (){
  116. var self=this;
  117. var $1;
  118. $1=smalltalk.send(self,"_tag_",["body"]);
  119. return $1;
  120. }
  121. }),
  122. smalltalk.HTMLCanvas);
  123. smalltalk.addMethod(
  124. "_br",
  125. smalltalk.method({
  126. selector: "br",
  127. fn: function (){
  128. var self=this;
  129. var $1;
  130. $1=smalltalk.send(self,"_tag_",["br"]);
  131. return $1;
  132. }
  133. }),
  134. smalltalk.HTMLCanvas);
  135. smalltalk.addMethod(
  136. "_button",
  137. smalltalk.method({
  138. selector: "button",
  139. fn: function (){
  140. var self=this;
  141. var $1;
  142. $1=smalltalk.send(self,"_tag_",["button"]);
  143. return $1;
  144. }
  145. }),
  146. smalltalk.HTMLCanvas);
  147. smalltalk.addMethod(
  148. "_canvas",
  149. smalltalk.method({
  150. selector: "canvas",
  151. fn: function (){
  152. var self=this;
  153. var $1;
  154. $1=smalltalk.send(self,"_tag_",["canvas"]);
  155. return $1;
  156. }
  157. }),
  158. smalltalk.HTMLCanvas);
  159. smalltalk.addMethod(
  160. "_caption",
  161. smalltalk.method({
  162. selector: "caption",
  163. fn: function (){
  164. var self=this;
  165. var $1;
  166. $1=smalltalk.send(self,"_tag_",["caption"]);
  167. return $1;
  168. }
  169. }),
  170. smalltalk.HTMLCanvas);
  171. smalltalk.addMethod(
  172. "_cite",
  173. smalltalk.method({
  174. selector: "cite",
  175. fn: function (){
  176. var self=this;
  177. var $1;
  178. $1=smalltalk.send(self,"_tag_",["cite"]);
  179. return $1;
  180. }
  181. }),
  182. smalltalk.HTMLCanvas);
  183. smalltalk.addMethod(
  184. "_code",
  185. smalltalk.method({
  186. selector: "code",
  187. fn: function (){
  188. var self=this;
  189. var $1;
  190. $1=smalltalk.send(self,"_tag_",["code"]);
  191. return $1;
  192. }
  193. }),
  194. smalltalk.HTMLCanvas);
  195. smalltalk.addMethod(
  196. "_col",
  197. smalltalk.method({
  198. selector: "col",
  199. fn: function (){
  200. var self=this;
  201. var $1;
  202. $1=smalltalk.send(self,"_tag_",["col"]);
  203. return $1;
  204. }
  205. }),
  206. smalltalk.HTMLCanvas);
  207. smalltalk.addMethod(
  208. "_colgroup",
  209. smalltalk.method({
  210. selector: "colgroup",
  211. fn: function (){
  212. var self=this;
  213. var $1;
  214. $1=smalltalk.send(self,"_tag_",["colgroup"]);
  215. return $1;
  216. }
  217. }),
  218. smalltalk.HTMLCanvas);
  219. smalltalk.addMethod(
  220. "_command",
  221. smalltalk.method({
  222. selector: "command",
  223. fn: function (){
  224. var self=this;
  225. var $1;
  226. $1=smalltalk.send(self,"_tag_",["command"]);
  227. return $1;
  228. }
  229. }),
  230. smalltalk.HTMLCanvas);
  231. smalltalk.addMethod(
  232. "_datalist",
  233. smalltalk.method({
  234. selector: "datalist",
  235. fn: function (){
  236. var self=this;
  237. var $1;
  238. $1=smalltalk.send(self,"_tag_",["datalist"]);
  239. return $1;
  240. }
  241. }),
  242. smalltalk.HTMLCanvas);
  243. smalltalk.addMethod(
  244. "_dd",
  245. smalltalk.method({
  246. selector: "dd",
  247. fn: function (){
  248. var self=this;
  249. var $1;
  250. $1=smalltalk.send(self,"_tag_",["dd"]);
  251. return $1;
  252. }
  253. }),
  254. smalltalk.HTMLCanvas);
  255. smalltalk.addMethod(
  256. "_del",
  257. smalltalk.method({
  258. selector: "del",
  259. fn: function (){
  260. var self=this;
  261. var $1;
  262. $1=smalltalk.send(self,"_tag_",["del"]);
  263. return $1;
  264. }
  265. }),
  266. smalltalk.HTMLCanvas);
  267. smalltalk.addMethod(
  268. "_details",
  269. smalltalk.method({
  270. selector: "details",
  271. fn: function (){
  272. var self=this;
  273. var $1;
  274. $1=smalltalk.send(self,"_tag_",["details"]);
  275. return $1;
  276. }
  277. }),
  278. smalltalk.HTMLCanvas);
  279. smalltalk.addMethod(
  280. "_div",
  281. smalltalk.method({
  282. selector: "div",
  283. fn: function (){
  284. var self=this;
  285. var $1;
  286. $1=smalltalk.send(self,"_tag_",["div"]);
  287. return $1;
  288. }
  289. }),
  290. smalltalk.HTMLCanvas);
  291. smalltalk.addMethod(
  292. "_div_",
  293. smalltalk.method({
  294. selector: "div:",
  295. fn: function (aBlock){
  296. var self=this;
  297. var $1;
  298. $1=smalltalk.send(smalltalk.send(self,"_div",[]),"_with_",[aBlock]);
  299. return $1;
  300. }
  301. }),
  302. smalltalk.HTMLCanvas);
  303. smalltalk.addMethod(
  304. "_dl",
  305. smalltalk.method({
  306. selector: "dl",
  307. fn: function (){
  308. var self=this;
  309. var $1;
  310. $1=smalltalk.send(self,"_tag_",["dl"]);
  311. return $1;
  312. }
  313. }),
  314. smalltalk.HTMLCanvas);
  315. smalltalk.addMethod(
  316. "_dt",
  317. smalltalk.method({
  318. selector: "dt",
  319. fn: function (){
  320. var self=this;
  321. var $1;
  322. $1=smalltalk.send(self,"_tag_",["dt"]);
  323. return $1;
  324. }
  325. }),
  326. smalltalk.HTMLCanvas);
  327. smalltalk.addMethod(
  328. "_em",
  329. smalltalk.method({
  330. selector: "em",
  331. fn: function (){
  332. var self=this;
  333. var $1;
  334. $1=smalltalk.send(self,"_tag_",["em"]);
  335. return $1;
  336. }
  337. }),
  338. smalltalk.HTMLCanvas);
  339. smalltalk.addMethod(
  340. "_embed",
  341. smalltalk.method({
  342. selector: "embed",
  343. fn: function (){
  344. var self=this;
  345. var $1;
  346. $1=smalltalk.send(self,"_tag_",["embed"]);
  347. return $1;
  348. }
  349. }),
  350. smalltalk.HTMLCanvas);
  351. smalltalk.addMethod(
  352. "_fieldset",
  353. smalltalk.method({
  354. selector: "fieldset",
  355. fn: function (){
  356. var self=this;
  357. var $1;
  358. $1=smalltalk.send(self,"_tag_",["fieldset"]);
  359. return $1;
  360. }
  361. }),
  362. smalltalk.HTMLCanvas);
  363. smalltalk.addMethod(
  364. "_figcaption",
  365. smalltalk.method({
  366. selector: "figcaption",
  367. fn: function (){
  368. var self=this;
  369. var $1;
  370. $1=smalltalk.send(self,"_tag_",["figcaption"]);
  371. return $1;
  372. }
  373. }),
  374. smalltalk.HTMLCanvas);
  375. smalltalk.addMethod(
  376. "_figure",
  377. smalltalk.method({
  378. selector: "figure",
  379. fn: function (){
  380. var self=this;
  381. var $1;
  382. $1=smalltalk.send(self,"_tag_",["figure"]);
  383. return $1;
  384. }
  385. }),
  386. smalltalk.HTMLCanvas);
  387. smalltalk.addMethod(
  388. "_footer",
  389. smalltalk.method({
  390. selector: "footer",
  391. fn: function (){
  392. var self=this;
  393. var $1;
  394. $1=smalltalk.send(self,"_tag_",["footer"]);
  395. return $1;
  396. }
  397. }),
  398. smalltalk.HTMLCanvas);
  399. smalltalk.addMethod(
  400. "_form",
  401. smalltalk.method({
  402. selector: "form",
  403. fn: function (){
  404. var self=this;
  405. var $1;
  406. $1=smalltalk.send(self,"_tag_",["form"]);
  407. return $1;
  408. }
  409. }),
  410. smalltalk.HTMLCanvas);
  411. smalltalk.addMethod(
  412. "_h1",
  413. smalltalk.method({
  414. selector: "h1",
  415. fn: function (){
  416. var self=this;
  417. var $1;
  418. $1=smalltalk.send(self,"_tag_",["h1"]);
  419. return $1;
  420. }
  421. }),
  422. smalltalk.HTMLCanvas);
  423. smalltalk.addMethod(
  424. "_h1_",
  425. smalltalk.method({
  426. selector: "h1:",
  427. fn: function (anObject){
  428. var self=this;
  429. var $1;
  430. $1=smalltalk.send(smalltalk.send(self,"_h1",[]),"_with_",[anObject]);
  431. return $1;
  432. }
  433. }),
  434. smalltalk.HTMLCanvas);
  435. smalltalk.addMethod(
  436. "_h2",
  437. smalltalk.method({
  438. selector: "h2",
  439. fn: function (){
  440. var self=this;
  441. var $1;
  442. $1=smalltalk.send(self,"_tag_",["h2"]);
  443. return $1;
  444. }
  445. }),
  446. smalltalk.HTMLCanvas);
  447. smalltalk.addMethod(
  448. "_h2_",
  449. smalltalk.method({
  450. selector: "h2:",
  451. fn: function (anObject){
  452. var self=this;
  453. var $1;
  454. $1=smalltalk.send(smalltalk.send(self,"_h2",[]),"_with_",[anObject]);
  455. return $1;
  456. }
  457. }),
  458. smalltalk.HTMLCanvas);
  459. smalltalk.addMethod(
  460. "_h3",
  461. smalltalk.method({
  462. selector: "h3",
  463. fn: function (){
  464. var self=this;
  465. var $1;
  466. $1=smalltalk.send(self,"_tag_",["h3"]);
  467. return $1;
  468. }
  469. }),
  470. smalltalk.HTMLCanvas);
  471. smalltalk.addMethod(
  472. "_h3_",
  473. smalltalk.method({
  474. selector: "h3:",
  475. fn: function (anObject){
  476. var self=this;
  477. var $1;
  478. $1=smalltalk.send(smalltalk.send(self,"_h3",[]),"_with_",[anObject]);
  479. return $1;
  480. }
  481. }),
  482. smalltalk.HTMLCanvas);
  483. smalltalk.addMethod(
  484. "_h4",
  485. smalltalk.method({
  486. selector: "h4",
  487. fn: function (){
  488. var self=this;
  489. var $1;
  490. $1=smalltalk.send(self,"_tag_",["h4"]);
  491. return $1;
  492. }
  493. }),
  494. smalltalk.HTMLCanvas);
  495. smalltalk.addMethod(
  496. "_h4_",
  497. smalltalk.method({
  498. selector: "h4:",
  499. fn: function (anObject){
  500. var self=this;
  501. var $1;
  502. $1=smalltalk.send(smalltalk.send(self,"_h4",[]),"_with_",[anObject]);
  503. return $1;
  504. }
  505. }),
  506. smalltalk.HTMLCanvas);
  507. smalltalk.addMethod(
  508. "_h5",
  509. smalltalk.method({
  510. selector: "h5",
  511. fn: function (){
  512. var self=this;
  513. var $1;
  514. $1=smalltalk.send(self,"_tag_",["h5"]);
  515. return $1;
  516. }
  517. }),
  518. smalltalk.HTMLCanvas);
  519. smalltalk.addMethod(
  520. "_h5_",
  521. smalltalk.method({
  522. selector: "h5:",
  523. fn: function (anObject){
  524. var self=this;
  525. var $1;
  526. $1=smalltalk.send(smalltalk.send(self,"_h5",[]),"_with_",[anObject]);
  527. return $1;
  528. }
  529. }),
  530. smalltalk.HTMLCanvas);
  531. smalltalk.addMethod(
  532. "_h6",
  533. smalltalk.method({
  534. selector: "h6",
  535. fn: function (){
  536. var self=this;
  537. var $1;
  538. $1=smalltalk.send(self,"_tag_",["h6"]);
  539. return $1;
  540. }
  541. }),
  542. smalltalk.HTMLCanvas);
  543. smalltalk.addMethod(
  544. "_h6_",
  545. smalltalk.method({
  546. selector: "h6:",
  547. fn: function (anObject){
  548. var self=this;
  549. var $1;
  550. $1=smalltalk.send(smalltalk.send(self,"_h6",[]),"_with_",[anObject]);
  551. return $1;
  552. }
  553. }),
  554. smalltalk.HTMLCanvas);
  555. smalltalk.addMethod(
  556. "_head",
  557. smalltalk.method({
  558. selector: "head",
  559. fn: function (){
  560. var self=this;
  561. var $1;
  562. $1=smalltalk.send(self,"_tag_",["head"]);
  563. return $1;
  564. }
  565. }),
  566. smalltalk.HTMLCanvas);
  567. smalltalk.addMethod(
  568. "_header",
  569. smalltalk.method({
  570. selector: "header",
  571. fn: function (){
  572. var self=this;
  573. var $1;
  574. $1=smalltalk.send(self,"_tag_",["header"]);
  575. return $1;
  576. }
  577. }),
  578. smalltalk.HTMLCanvas);
  579. smalltalk.addMethod(
  580. "_hgroup",
  581. smalltalk.method({
  582. selector: "hgroup",
  583. fn: function (){
  584. var self=this;
  585. var $1;
  586. $1=smalltalk.send(self,"_tag_",["hgroup"]);
  587. return $1;
  588. }
  589. }),
  590. smalltalk.HTMLCanvas);
  591. smalltalk.addMethod(
  592. "_hr",
  593. smalltalk.method({
  594. selector: "hr",
  595. fn: function (){
  596. var self=this;
  597. var $1;
  598. $1=smalltalk.send(self,"_tag_",["hr"]);
  599. return $1;
  600. }
  601. }),
  602. smalltalk.HTMLCanvas);
  603. smalltalk.addMethod(
  604. "_html",
  605. smalltalk.method({
  606. selector: "html",
  607. fn: function (){
  608. var self=this;
  609. var $1;
  610. $1=smalltalk.send(self,"_tag_",["html"]);
  611. return $1;
  612. }
  613. }),
  614. smalltalk.HTMLCanvas);
  615. smalltalk.addMethod(
  616. "_iframe",
  617. smalltalk.method({
  618. selector: "iframe",
  619. fn: function (){
  620. var self=this;
  621. var $1;
  622. $1=smalltalk.send(self,"_tag_",["iframe"]);
  623. return $1;
  624. }
  625. }),
  626. smalltalk.HTMLCanvas);
  627. smalltalk.addMethod(
  628. "_iframe_",
  629. smalltalk.method({
  630. selector: "iframe:",
  631. fn: function (aString){
  632. var self=this;
  633. var $1;
  634. $1=smalltalk.send(smalltalk.send(self,"_iframe",[]),"_src_",[aString]);
  635. return $1;
  636. }
  637. }),
  638. smalltalk.HTMLCanvas);
  639. smalltalk.addMethod(
  640. "_img",
  641. smalltalk.method({
  642. selector: "img",
  643. fn: function (){
  644. var self=this;
  645. var $1;
  646. $1=smalltalk.send(self,"_tag_",["img"]);
  647. return $1;
  648. }
  649. }),
  650. smalltalk.HTMLCanvas);
  651. smalltalk.addMethod(
  652. "_img_",
  653. smalltalk.method({
  654. selector: "img:",
  655. fn: function (aString){
  656. var self=this;
  657. var $1;
  658. $1=smalltalk.send(smalltalk.send(self,"_img",[]),"_src_",[aString]);
  659. return $1;
  660. }
  661. }),
  662. smalltalk.HTMLCanvas);
  663. smalltalk.addMethod(
  664. "_initialize",
  665. smalltalk.method({
  666. selector: "initialize",
  667. fn: function (){
  668. var self=this;
  669. smalltalk.send(self,"_initialize",[],smalltalk.Object);
  670. if(($receiver = self["@root"]) == nil || $receiver == undefined){
  671. self["@root"]=smalltalk.send((smalltalk.TagBrush || TagBrush),"_fromString_canvas_",["div",self]);
  672. self["@root"];
  673. } else {
  674. self["@root"];
  675. };
  676. return self}
  677. }),
  678. smalltalk.HTMLCanvas);
  679. smalltalk.addMethod(
  680. "_initializeFromJQuery_",
  681. smalltalk.method({
  682. selector: "initializeFromJQuery:",
  683. fn: function (aJQuery){
  684. var self=this;
  685. self["@root"]=smalltalk.send((smalltalk.TagBrush || TagBrush),"_fromJQuery_canvas_",[aJQuery,self]);
  686. return self}
  687. }),
  688. smalltalk.HTMLCanvas);
  689. smalltalk.addMethod(
  690. "_input",
  691. smalltalk.method({
  692. selector: "input",
  693. fn: function (){
  694. var self=this;
  695. var $1;
  696. $1=smalltalk.send(self,"_tag_",["input"]);
  697. return $1;
  698. }
  699. }),
  700. smalltalk.HTMLCanvas);
  701. smalltalk.addMethod(
  702. "_label",
  703. smalltalk.method({
  704. selector: "label",
  705. fn: function (){
  706. var self=this;
  707. var $1;
  708. $1=smalltalk.send(self,"_tag_",["label"]);
  709. return $1;
  710. }
  711. }),
  712. smalltalk.HTMLCanvas);
  713. smalltalk.addMethod(
  714. "_legend",
  715. smalltalk.method({
  716. selector: "legend",
  717. fn: function (){
  718. var self=this;
  719. var $1;
  720. $1=smalltalk.send(self,"_tag_",["legend"]);
  721. return $1;
  722. }
  723. }),
  724. smalltalk.HTMLCanvas);
  725. smalltalk.addMethod(
  726. "_li",
  727. smalltalk.method({
  728. selector: "li",
  729. fn: function (){
  730. var self=this;
  731. var $1;
  732. $1=smalltalk.send(self,"_tag_",["li"]);
  733. return $1;
  734. }
  735. }),
  736. smalltalk.HTMLCanvas);
  737. smalltalk.addMethod(
  738. "_li_",
  739. smalltalk.method({
  740. selector: "li:",
  741. fn: function (anObject){
  742. var self=this;
  743. var $1;
  744. $1=smalltalk.send(smalltalk.send(self,"_li",[]),"_with_",[anObject]);
  745. return $1;
  746. }
  747. }),
  748. smalltalk.HTMLCanvas);
  749. smalltalk.addMethod(
  750. "_link",
  751. smalltalk.method({
  752. selector: "link",
  753. fn: function (){
  754. var self=this;
  755. var $1;
  756. $1=smalltalk.send(self,"_tag_",["link"]);
  757. return $1;
  758. }
  759. }),
  760. smalltalk.HTMLCanvas);
  761. smalltalk.addMethod(
  762. "_map",
  763. smalltalk.method({
  764. selector: "map",
  765. fn: function (){
  766. var self=this;
  767. var $1;
  768. $1=smalltalk.send(self,"_tag_",["map"]);
  769. return $1;
  770. }
  771. }),
  772. smalltalk.HTMLCanvas);
  773. smalltalk.addMethod(
  774. "_mark",
  775. smalltalk.method({
  776. selector: "mark",
  777. fn: function (){
  778. var self=this;
  779. var $1;
  780. $1=smalltalk.send(self,"_tag_",["mark"]);
  781. return $1;
  782. }
  783. }),
  784. smalltalk.HTMLCanvas);
  785. smalltalk.addMethod(
  786. "_menu",
  787. smalltalk.method({
  788. selector: "menu",
  789. fn: function (){
  790. var self=this;
  791. var $1;
  792. $1=smalltalk.send(self,"_tag_",["menu"]);
  793. return $1;
  794. }
  795. }),
  796. smalltalk.HTMLCanvas);
  797. smalltalk.addMethod(
  798. "_meta",
  799. smalltalk.method({
  800. selector: "meta",
  801. fn: function (){
  802. var self=this;
  803. var $1;
  804. $1=smalltalk.send(self,"_tag_",["meta"]);
  805. return $1;
  806. }
  807. }),
  808. smalltalk.HTMLCanvas);
  809. smalltalk.addMethod(
  810. "_nav",
  811. smalltalk.method({
  812. selector: "nav",
  813. fn: function (){
  814. var self=this;
  815. var $1;
  816. $1=smalltalk.send(self,"_tag_",["nav"]);
  817. return $1;
  818. }
  819. }),
  820. smalltalk.HTMLCanvas);
  821. smalltalk.addMethod(
  822. "_newTag_",
  823. smalltalk.method({
  824. selector: "newTag:",
  825. fn: function (aString){
  826. var self=this;
  827. var $1;
  828. $1=smalltalk.send((smalltalk.TagBrush || TagBrush),"_fromString_canvas_",[aString,self]);
  829. return $1;
  830. }
  831. }),
  832. smalltalk.HTMLCanvas);
  833. smalltalk.addMethod(
  834. "_noscript",
  835. smalltalk.method({
  836. selector: "noscript",
  837. fn: function (){
  838. var self=this;
  839. var $1;
  840. $1=smalltalk.send(self,"_tag_",["noscript"]);
  841. return $1;
  842. }
  843. }),
  844. smalltalk.HTMLCanvas);
  845. smalltalk.addMethod(
  846. "_object",
  847. smalltalk.method({
  848. selector: "object",
  849. fn: function (){
  850. var self=this;
  851. var $1;
  852. $1=smalltalk.send(self,"_tag_",["object"]);
  853. return $1;
  854. }
  855. }),
  856. smalltalk.HTMLCanvas);
  857. smalltalk.addMethod(
  858. "_ol",
  859. smalltalk.method({
  860. selector: "ol",
  861. fn: function (){
  862. var self=this;
  863. var $1;
  864. $1=smalltalk.send(self,"_tag_",["ol"]);
  865. return $1;
  866. }
  867. }),
  868. smalltalk.HTMLCanvas);
  869. smalltalk.addMethod(
  870. "_ol_",
  871. smalltalk.method({
  872. selector: "ol:",
  873. fn: function (anObject){
  874. var self=this;
  875. var $1;
  876. $1=smalltalk.send(smalltalk.send(self,"_ol",[]),"_with_",[anObject]);
  877. return $1;
  878. }
  879. }),
  880. smalltalk.HTMLCanvas);
  881. smalltalk.addMethod(
  882. "_optgroup",
  883. smalltalk.method({
  884. selector: "optgroup",
  885. fn: function (){
  886. var self=this;
  887. var $1;
  888. $1=smalltalk.send(self,"_tag_",["optgroup"]);
  889. return $1;
  890. }
  891. }),
  892. smalltalk.HTMLCanvas);
  893. smalltalk.addMethod(
  894. "_option",
  895. smalltalk.method({
  896. selector: "option",
  897. fn: function (){
  898. var self=this;
  899. var $1;
  900. $1=smalltalk.send(self,"_tag_",["option"]);
  901. return $1;
  902. }
  903. }),
  904. smalltalk.HTMLCanvas);
  905. smalltalk.addMethod(
  906. "_output",
  907. smalltalk.method({
  908. selector: "output",
  909. fn: function (){
  910. var self=this;
  911. var $1;
  912. $1=smalltalk.send(self,"_tag_",["output"]);
  913. return $1;
  914. }
  915. }),
  916. smalltalk.HTMLCanvas);
  917. smalltalk.addMethod(
  918. "_p",
  919. smalltalk.method({
  920. selector: "p",
  921. fn: function (){
  922. var self=this;
  923. var $1;
  924. $1=smalltalk.send(self,"_tag_",["p"]);
  925. return $1;
  926. }
  927. }),
  928. smalltalk.HTMLCanvas);
  929. smalltalk.addMethod(
  930. "_p_",
  931. smalltalk.method({
  932. selector: "p:",
  933. fn: function (anObject){
  934. var self=this;
  935. var $1;
  936. $1=smalltalk.send(smalltalk.send(self,"_p",[]),"_with_",[anObject]);
  937. return $1;
  938. }
  939. }),
  940. smalltalk.HTMLCanvas);
  941. smalltalk.addMethod(
  942. "_param",
  943. smalltalk.method({
  944. selector: "param",
  945. fn: function (){
  946. var self=this;
  947. var $1;
  948. $1=smalltalk.send(self,"_tag_",["param"]);
  949. return $1;
  950. }
  951. }),
  952. smalltalk.HTMLCanvas);
  953. smalltalk.addMethod(
  954. "_pre",
  955. smalltalk.method({
  956. selector: "pre",
  957. fn: function (){
  958. var self=this;
  959. var $1;
  960. $1=smalltalk.send(self,"_tag_",["pre"]);
  961. return $1;
  962. }
  963. }),
  964. smalltalk.HTMLCanvas);
  965. smalltalk.addMethod(
  966. "_progress",
  967. smalltalk.method({
  968. selector: "progress",
  969. fn: function (){
  970. var self=this;
  971. var $1;
  972. $1=smalltalk.send(self,"_tag_",["progress"]);
  973. return $1;
  974. }
  975. }),
  976. smalltalk.HTMLCanvas);
  977. smalltalk.addMethod(
  978. "_root",
  979. smalltalk.method({
  980. selector: "root",
  981. fn: function (){
  982. var self=this;
  983. return self["@root"];
  984. }
  985. }),
  986. smalltalk.HTMLCanvas);
  987. smalltalk.addMethod(
  988. "_root_",
  989. smalltalk.method({
  990. selector: "root:",
  991. fn: function (aTagBrush){
  992. var self=this;
  993. self["@root"]=aTagBrush;
  994. return self}
  995. }),
  996. smalltalk.HTMLCanvas);
  997. smalltalk.addMethod(
  998. "_script",
  999. smalltalk.method({
  1000. selector: "script",
  1001. fn: function (){
  1002. var self=this;
  1003. var $1;
  1004. $1=smalltalk.send(self,"_tag_",["script"]);
  1005. return $1;
  1006. }
  1007. }),
  1008. smalltalk.HTMLCanvas);
  1009. smalltalk.addMethod(
  1010. "_section",
  1011. smalltalk.method({
  1012. selector: "section",
  1013. fn: function (){
  1014. var self=this;
  1015. var $1;
  1016. $1=smalltalk.send(self,"_tag_",["section"]);
  1017. return $1;
  1018. }
  1019. }),
  1020. smalltalk.HTMLCanvas);
  1021. smalltalk.addMethod(
  1022. "_select",
  1023. smalltalk.method({
  1024. selector: "select",
  1025. fn: function (){
  1026. var self=this;
  1027. var $1;
  1028. $1=smalltalk.send(self,"_tag_",["select"]);
  1029. return $1;
  1030. }
  1031. }),
  1032. smalltalk.HTMLCanvas);
  1033. smalltalk.addMethod(
  1034. "_small",
  1035. smalltalk.method({
  1036. selector: "small",
  1037. fn: function (){
  1038. var self=this;
  1039. var $1;
  1040. $1=smalltalk.send(self,"_tag_",["small"]);
  1041. return $1;
  1042. }
  1043. }),
  1044. smalltalk.HTMLCanvas);
  1045. smalltalk.addMethod(
  1046. "_source",
  1047. smalltalk.method({
  1048. selector: "source",
  1049. fn: function (){
  1050. var self=this;
  1051. var $1;
  1052. $1=smalltalk.send(self,"_tag_",["source"]);
  1053. return $1;
  1054. }
  1055. }),
  1056. smalltalk.HTMLCanvas);
  1057. smalltalk.addMethod(
  1058. "_span",
  1059. smalltalk.method({
  1060. selector: "span",
  1061. fn: function (){
  1062. var self=this;
  1063. var $1;
  1064. $1=smalltalk.send(self,"_tag_",["span"]);
  1065. return $1;
  1066. }
  1067. }),
  1068. smalltalk.HTMLCanvas);
  1069. smalltalk.addMethod(
  1070. "_span_",
  1071. smalltalk.method({
  1072. selector: "span:",
  1073. fn: function (anObject){
  1074. var self=this;
  1075. var $1;
  1076. $1=smalltalk.send(smalltalk.send(self,"_span",[]),"_with_",[anObject]);
  1077. return $1;
  1078. }
  1079. }),
  1080. smalltalk.HTMLCanvas);
  1081. smalltalk.addMethod(
  1082. "_strong",
  1083. smalltalk.method({
  1084. selector: "strong",
  1085. fn: function (){
  1086. var self=this;
  1087. var $1;
  1088. $1=smalltalk.send(self,"_tag_",["strong"]);
  1089. return $1;
  1090. }
  1091. }),
  1092. smalltalk.HTMLCanvas);
  1093. smalltalk.addMethod(
  1094. "_strong_",
  1095. smalltalk.method({
  1096. selector: "strong:",
  1097. fn: function (anObject){
  1098. var self=this;
  1099. var $1;
  1100. $1=smalltalk.send(smalltalk.send(self,"_strong",[]),"_with_",[anObject]);
  1101. return $1;
  1102. }
  1103. }),
  1104. smalltalk.HTMLCanvas);
  1105. smalltalk.addMethod(
  1106. "_style",
  1107. smalltalk.method({
  1108. selector: "style",
  1109. fn: function (){
  1110. var self=this;
  1111. var $1;
  1112. $1=smalltalk.send(self["@root"],"_addBrush_",[smalltalk.send((smalltalk.StyleTag || StyleTag),"_canvas_",[self])]);
  1113. return $1;
  1114. }
  1115. }),
  1116. smalltalk.HTMLCanvas);
  1117. smalltalk.addMethod(
  1118. "_style_",
  1119. smalltalk.method({
  1120. selector: "style:",
  1121. fn: function (aString){
  1122. var self=this;
  1123. var $2,$3,$1;
  1124. $2=smalltalk.send(self,"_style",[]);
  1125. smalltalk.send($2,"_with_",[aString]);
  1126. $3=smalltalk.send($2,"_yourself",[]);
  1127. $1=$3;
  1128. return $1;
  1129. }
  1130. }),
  1131. smalltalk.HTMLCanvas);
  1132. smalltalk.addMethod(
  1133. "_sub",
  1134. smalltalk.method({
  1135. selector: "sub",
  1136. fn: function (){
  1137. var self=this;
  1138. var $1;
  1139. $1=smalltalk.send(self,"_tag_",["sub"]);
  1140. return $1;
  1141. }
  1142. }),
  1143. smalltalk.HTMLCanvas);
  1144. smalltalk.addMethod(
  1145. "_summary",
  1146. smalltalk.method({
  1147. selector: "summary",
  1148. fn: function (){
  1149. var self=this;
  1150. var $1;
  1151. $1=smalltalk.send(self,"_tag_",["summary"]);
  1152. return $1;
  1153. }
  1154. }),
  1155. smalltalk.HTMLCanvas);
  1156. smalltalk.addMethod(
  1157. "_sup",
  1158. smalltalk.method({
  1159. selector: "sup",
  1160. fn: function (){
  1161. var self=this;
  1162. var $1;
  1163. $1=smalltalk.send(self,"_tag_",["sup"]);
  1164. return $1;
  1165. }
  1166. }),
  1167. smalltalk.HTMLCanvas);
  1168. smalltalk.addMethod(
  1169. "_table",
  1170. smalltalk.method({
  1171. selector: "table",
  1172. fn: function (){
  1173. var self=this;
  1174. var $1;
  1175. $1=smalltalk.send(self,"_tag_",["table"]);
  1176. return $1;
  1177. }
  1178. }),
  1179. smalltalk.HTMLCanvas);
  1180. smalltalk.addMethod(
  1181. "_tag_",
  1182. smalltalk.method({
  1183. selector: "tag:",
  1184. fn: function (aString){
  1185. var self=this;
  1186. var $1;
  1187. $1=smalltalk.send(self["@root"],"_addBrush_",[smalltalk.send(self,"_newTag_",[aString])]);
  1188. return $1;
  1189. }
  1190. }),
  1191. smalltalk.HTMLCanvas);
  1192. smalltalk.addMethod(
  1193. "_tbody",
  1194. smalltalk.method({
  1195. selector: "tbody",
  1196. fn: function (){
  1197. var self=this;
  1198. var $1;
  1199. $1=smalltalk.send(self,"_tag_",["tbody"]);
  1200. return $1;
  1201. }
  1202. }),
  1203. smalltalk.HTMLCanvas);
  1204. smalltalk.addMethod(
  1205. "_td",
  1206. smalltalk.method({
  1207. selector: "td",
  1208. fn: function (){
  1209. var self=this;
  1210. var $1;
  1211. $1=smalltalk.send(self,"_tag_",["td"]);
  1212. return $1;
  1213. }
  1214. }),
  1215. smalltalk.HTMLCanvas);
  1216. smalltalk.addMethod(
  1217. "_textarea",
  1218. smalltalk.method({
  1219. selector: "textarea",
  1220. fn: function (){
  1221. var self=this;
  1222. var $1;
  1223. $1=smalltalk.send(self,"_tag_",["textarea"]);
  1224. return $1;
  1225. }
  1226. }),
  1227. smalltalk.HTMLCanvas);
  1228. smalltalk.addMethod(
  1229. "_tfoot",
  1230. smalltalk.method({
  1231. selector: "tfoot",
  1232. fn: function (){
  1233. var self=this;
  1234. var $1;
  1235. $1=smalltalk.send(self,"_tag_",["tfoot"]);
  1236. return $1;
  1237. }
  1238. }),
  1239. smalltalk.HTMLCanvas);
  1240. smalltalk.addMethod(
  1241. "_th",
  1242. smalltalk.method({
  1243. selector: "th",
  1244. fn: function (){
  1245. var self=this;
  1246. var $1;
  1247. $1=smalltalk.send(self,"_tag_",["th"]);
  1248. return $1;
  1249. }
  1250. }),
  1251. smalltalk.HTMLCanvas);
  1252. smalltalk.addMethod(
  1253. "_thead",
  1254. smalltalk.method({
  1255. selector: "thead",
  1256. fn: function (){
  1257. var self=this;
  1258. var $1;
  1259. $1=smalltalk.send(self,"_tag_",["thead"]);
  1260. return $1;
  1261. }
  1262. }),
  1263. smalltalk.HTMLCanvas);
  1264. smalltalk.addMethod(
  1265. "_time",
  1266. smalltalk.method({
  1267. selector: "time",
  1268. fn: function (){
  1269. var self=this;
  1270. var $1;
  1271. $1=smalltalk.send(self,"_tag_",["time"]);
  1272. return $1;
  1273. }
  1274. }),
  1275. smalltalk.HTMLCanvas);
  1276. smalltalk.addMethod(
  1277. "_title",
  1278. smalltalk.method({
  1279. selector: "title",
  1280. fn: function (){
  1281. var self=this;
  1282. var $1;
  1283. $1=smalltalk.send(self,"_tag_",["title"]);
  1284. return $1;
  1285. }
  1286. }),
  1287. smalltalk.HTMLCanvas);
  1288. smalltalk.addMethod(
  1289. "_tr",
  1290. smalltalk.method({
  1291. selector: "tr",
  1292. fn: function (){
  1293. var self=this;
  1294. var $1;
  1295. $1=smalltalk.send(self,"_tag_",["tr"]);
  1296. return $1;
  1297. }
  1298. }),
  1299. smalltalk.HTMLCanvas);
  1300. smalltalk.addMethod(
  1301. "_ul",
  1302. smalltalk.method({
  1303. selector: "ul",
  1304. fn: function (){
  1305. var self=this;
  1306. var $1;
  1307. $1=smalltalk.send(self,"_tag_",["ul"]);
  1308. return $1;
  1309. }
  1310. }),
  1311. smalltalk.HTMLCanvas);
  1312. smalltalk.addMethod(
  1313. "_ul_",
  1314. smalltalk.method({
  1315. selector: "ul:",
  1316. fn: function (anObject){
  1317. var self=this;
  1318. var $1;
  1319. $1=smalltalk.send(smalltalk.send(self,"_ul",[]),"_with_",[anObject]);
  1320. return $1;
  1321. }
  1322. }),
  1323. smalltalk.HTMLCanvas);
  1324. smalltalk.addMethod(
  1325. "_video",
  1326. smalltalk.method({
  1327. selector: "video",
  1328. fn: function (){
  1329. var self=this;
  1330. var $1;
  1331. $1=smalltalk.send(self,"_tag_",["video"]);
  1332. return $1;
  1333. }
  1334. }),
  1335. smalltalk.HTMLCanvas);
  1336. smalltalk.addMethod(
  1337. "_with_",
  1338. smalltalk.method({
  1339. selector: "with:",
  1340. fn: function (anObject){
  1341. var self=this;
  1342. var $1;
  1343. $1=smalltalk.send(smalltalk.send(self,"_root",[]),"_with_",[anObject]);
  1344. return $1;
  1345. }
  1346. }),
  1347. smalltalk.HTMLCanvas);
  1348. smalltalk.addMethod(
  1349. "_browserVersion",
  1350. smalltalk.method({
  1351. selector: "browserVersion",
  1352. fn: function (){
  1353. var self=this;
  1354. var $1;
  1355. $1=smalltalk.send(smalltalk.send(jQuery,"_at_",[smalltalk.symbolFor("browser")]),"_version",[]);
  1356. return $1;
  1357. }
  1358. }),
  1359. smalltalk.HTMLCanvas.klass);
  1360. smalltalk.addMethod(
  1361. "_isMSIE",
  1362. smalltalk.method({
  1363. selector: "isMSIE",
  1364. fn: function (){
  1365. var self=this;
  1366. var $1;
  1367. $1=smalltalk.send(smalltalk.send(smalltalk.send(jQuery,"_at_",[smalltalk.symbolFor("browser")]),"_at_",[smalltalk.symbolFor("msie")]),"_notNil",[]);
  1368. return $1;
  1369. }
  1370. }),
  1371. smalltalk.HTMLCanvas.klass);
  1372. smalltalk.addMethod(
  1373. "_isMozilla",
  1374. smalltalk.method({
  1375. selector: "isMozilla",
  1376. fn: function (){
  1377. var self=this;
  1378. var $1;
  1379. $1=smalltalk.send(smalltalk.send(smalltalk.send(jQuery,"_at_",[smalltalk.symbolFor("browser")]),"_at_",[smalltalk.symbolFor("mozilla")]),"_notNil",[]);
  1380. return $1;
  1381. }
  1382. }),
  1383. smalltalk.HTMLCanvas.klass);
  1384. smalltalk.addMethod(
  1385. "_isOpera",
  1386. smalltalk.method({
  1387. selector: "isOpera",
  1388. fn: function (){
  1389. var self=this;
  1390. var $1;
  1391. $1=smalltalk.send(smalltalk.send(smalltalk.send(jQuery,"_at_",[smalltalk.symbolFor("browser")]),"_at_",[smalltalk.symbolFor("opera")]),"_notNil",[]);
  1392. return $1;
  1393. }
  1394. }),
  1395. smalltalk.HTMLCanvas.klass);
  1396. smalltalk.addMethod(
  1397. "_isWebkit",
  1398. smalltalk.method({
  1399. selector: "isWebkit",
  1400. fn: function (){
  1401. var self=this;
  1402. var $1;
  1403. $1=smalltalk.send(smalltalk.send(smalltalk.send(jQuery,"_at_",[smalltalk.symbolFor("browser")]),"_at_",[smalltalk.symbolFor("webkit")]),"_notNil",[]);
  1404. return $1;
  1405. }
  1406. }),
  1407. smalltalk.HTMLCanvas.klass);
  1408. smalltalk.addMethod(
  1409. "_onJQuery_",
  1410. smalltalk.method({
  1411. selector: "onJQuery:",
  1412. fn: function (aJQuery){
  1413. var self=this;
  1414. var $2,$3,$1;
  1415. $2=smalltalk.send(self,"_basicNew",[]);
  1416. smalltalk.send($2,"_initializeFromJQuery_",[aJQuery]);
  1417. smalltalk.send($2,"_initialize",[]);
  1418. $3=smalltalk.send($2,"_yourself",[]);
  1419. $1=$3;
  1420. return $1;
  1421. }
  1422. }),
  1423. smalltalk.HTMLCanvas.klass);
  1424. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  1425. smalltalk.addMethod(
  1426. "_accesskey_",
  1427. smalltalk.method({
  1428. selector: "accesskey:",
  1429. fn: function (aString){
  1430. var self=this;
  1431. smalltalk.send(self,"_at_put_",["accesskey",aString]);
  1432. return self}
  1433. }),
  1434. smalltalk.TagBrush);
  1435. smalltalk.addMethod(
  1436. "_action_",
  1437. smalltalk.method({
  1438. selector: "action:",
  1439. fn: function (aString){
  1440. var self=this;
  1441. smalltalk.send(self,"_at_put_",["action",aString]);
  1442. return self}
  1443. }),
  1444. smalltalk.TagBrush);
  1445. smalltalk.addMethod(
  1446. "_addBrush_",
  1447. smalltalk.method({
  1448. selector: "addBrush:",
  1449. fn: function (aTagBrush){
  1450. var self=this;
  1451. smalltalk.send(self,"_appendChild_",[smalltalk.send(aTagBrush,"_element",[])]);
  1452. return aTagBrush;
  1453. }
  1454. }),
  1455. smalltalk.TagBrush);
  1456. smalltalk.addMethod(
  1457. "_align_",
  1458. smalltalk.method({
  1459. selector: "align:",
  1460. fn: function (aString){
  1461. var self=this;
  1462. smalltalk.send(self,"_at_put_",["align",aString]);
  1463. return self}
  1464. }),
  1465. smalltalk.TagBrush);
  1466. smalltalk.addMethod(
  1467. "_alt_",
  1468. smalltalk.method({
  1469. selector: "alt:",
  1470. fn: function (aString){
  1471. var self=this;
  1472. smalltalk.send(self,"_at_put_",["alt",aString]);
  1473. return self}
  1474. }),
  1475. smalltalk.TagBrush);
  1476. smalltalk.addMethod(
  1477. "_append_",
  1478. smalltalk.method({
  1479. selector: "append:",
  1480. fn: function (anObject){
  1481. var self=this;
  1482. smalltalk.send(anObject,"_appendToBrush_",[self]);
  1483. return self}
  1484. }),
  1485. smalltalk.TagBrush);
  1486. smalltalk.addMethod(
  1487. "_appendBlock_",
  1488. smalltalk.method({
  1489. selector: "appendBlock:",
  1490. fn: function (aBlock){
  1491. var self=this;
  1492. var root;
  1493. root=smalltalk.send(self["@canvas"],"_root",[]);
  1494. smalltalk.send(self["@canvas"],"_root_",[self]);
  1495. smalltalk.send(aBlock,"_value_",[self["@canvas"]]);
  1496. smalltalk.send(self["@canvas"],"_root_",[root]);
  1497. return self}
  1498. }),
  1499. smalltalk.TagBrush);
  1500. smalltalk.addMethod(
  1501. "_appendChild_",
  1502. smalltalk.method({
  1503. selector: "appendChild:",
  1504. fn: function (anElement){
  1505. var self=this;
  1506. var element=self['@element'];
  1507. if (null == element.canHaveChildren || element.canHaveChildren) {
  1508. element.appendChild(anElement);
  1509. } else {
  1510. element.text = String(element.text) + anElement.innerHTML;
  1511. } ;
  1512. ;
  1513. return self}
  1514. }),
  1515. smalltalk.TagBrush);
  1516. smalltalk.addMethod(
  1517. "_appendString_",
  1518. smalltalk.method({
  1519. selector: "appendString:",
  1520. fn: function (aString){
  1521. var self=this;
  1522. smalltalk.send(self,"_appendChild_",[smalltalk.send(self,"_createTextNodeFor_",[aString])]);
  1523. return self}
  1524. }),
  1525. smalltalk.TagBrush);
  1526. smalltalk.addMethod(
  1527. "_appendToBrush_",
  1528. smalltalk.method({
  1529. selector: "appendToBrush:",
  1530. fn: function (aTagBrush){
  1531. var self=this;
  1532. smalltalk.send(aTagBrush,"_addBrush_",[self]);
  1533. return self}
  1534. }),
  1535. smalltalk.TagBrush);
  1536. smalltalk.addMethod(
  1537. "_asJQuery",
  1538. smalltalk.method({
  1539. selector: "asJQuery",
  1540. fn: function (){
  1541. var self=this;
  1542. var $1;
  1543. $1=smalltalk.send(window,"_jQuery_",[smalltalk.send(self,"_element",[])]);
  1544. return $1;
  1545. }
  1546. }),
  1547. smalltalk.TagBrush);
  1548. smalltalk.addMethod(
  1549. "_at_put_",
  1550. smalltalk.method({
  1551. selector: "at:put:",
  1552. fn: function (aString,aValue){
  1553. var self=this;
  1554. self['@element'].setAttribute(aString, aValue);
  1555. ;
  1556. return self}
  1557. }),
  1558. smalltalk.TagBrush);
  1559. smalltalk.addMethod(
  1560. "_class_",
  1561. smalltalk.method({
  1562. selector: "class:",
  1563. fn: function (aString){
  1564. var self=this;
  1565. self['@element'].className = aString;
  1566. ;
  1567. return self}
  1568. }),
  1569. smalltalk.TagBrush);
  1570. smalltalk.addMethod(
  1571. "_cols_",
  1572. smalltalk.method({
  1573. selector: "cols:",
  1574. fn: function (aString){
  1575. var self=this;
  1576. smalltalk.send(self,"_at_put_",["cols",aString]);
  1577. return self}
  1578. }),
  1579. smalltalk.TagBrush);
  1580. smalltalk.addMethod(
  1581. "_contenteditable_",
  1582. smalltalk.method({
  1583. selector: "contenteditable:",
  1584. fn: function (aString){
  1585. var self=this;
  1586. smalltalk.send(self,"_at_put_",["contenteditable",aString]);
  1587. return self}
  1588. }),
  1589. smalltalk.TagBrush);
  1590. smalltalk.addMethod(
  1591. "_contents_",
  1592. smalltalk.method({
  1593. selector: "contents:",
  1594. fn: function (anObject){
  1595. var self=this;
  1596. var $1;
  1597. smalltalk.send(self,"_empty",[]);
  1598. $1=smalltalk.send(self,"_append_",[anObject]);
  1599. return self}
  1600. }),
  1601. smalltalk.TagBrush);
  1602. smalltalk.addMethod(
  1603. "_contextmenu_",
  1604. smalltalk.method({
  1605. selector: "contextmenu:",
  1606. fn: function (aString){
  1607. var self=this;
  1608. smalltalk.send(self,"_at_put_",["contextmenu",aString]);
  1609. return self}
  1610. }),
  1611. smalltalk.TagBrush);
  1612. smalltalk.addMethod(
  1613. "_createElementFor_",
  1614. smalltalk.method({
  1615. selector: "createElementFor:",
  1616. fn: function (aString){
  1617. var self=this;
  1618. return document.createElement(String(aString));
  1619. ;
  1620. return self}
  1621. }),
  1622. smalltalk.TagBrush);
  1623. smalltalk.addMethod(
  1624. "_createTextNodeFor_",
  1625. smalltalk.method({
  1626. selector: "createTextNodeFor:",
  1627. fn: function (aString){
  1628. var self=this;
  1629. return document.createTextNode(String(aString));
  1630. ;
  1631. return self}
  1632. }),
  1633. smalltalk.TagBrush);
  1634. smalltalk.addMethod(
  1635. "_draggable_",
  1636. smalltalk.method({
  1637. selector: "draggable:",
  1638. fn: function (aString){
  1639. var self=this;
  1640. smalltalk.send(self,"_at_put_",["draggable",aString]);
  1641. return self}
  1642. }),
  1643. smalltalk.TagBrush);
  1644. smalltalk.addMethod(
  1645. "_element",
  1646. smalltalk.method({
  1647. selector: "element",
  1648. fn: function (){
  1649. var self=this;
  1650. return self["@element"];
  1651. }
  1652. }),
  1653. smalltalk.TagBrush);
  1654. smalltalk.addMethod(
  1655. "_empty",
  1656. smalltalk.method({
  1657. selector: "empty",
  1658. fn: function (){
  1659. var self=this;
  1660. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_empty",[]);
  1661. return self}
  1662. }),
  1663. smalltalk.TagBrush);
  1664. smalltalk.addMethod(
  1665. "_for_",
  1666. smalltalk.method({
  1667. selector: "for:",
  1668. fn: function (aString){
  1669. var self=this;
  1670. smalltalk.send(self,"_at_put_",["for",aString]);
  1671. return self}
  1672. }),
  1673. smalltalk.TagBrush);
  1674. smalltalk.addMethod(
  1675. "_height_",
  1676. smalltalk.method({
  1677. selector: "height:",
  1678. fn: function (aString){
  1679. var self=this;
  1680. smalltalk.send(self,"_at_put_",["height",aString]);
  1681. return self}
  1682. }),
  1683. smalltalk.TagBrush);
  1684. smalltalk.addMethod(
  1685. "_hidden",
  1686. smalltalk.method({
  1687. selector: "hidden",
  1688. fn: function (){
  1689. var self=this;
  1690. smalltalk.send(self,"_at_put_",["hidden","hidden"]);
  1691. return self}
  1692. }),
  1693. smalltalk.TagBrush);
  1694. smalltalk.addMethod(
  1695. "_href_",
  1696. smalltalk.method({
  1697. selector: "href:",
  1698. fn: function (aString){
  1699. var self=this;
  1700. smalltalk.send(self,"_at_put_",["href",aString]);
  1701. return self}
  1702. }),
  1703. smalltalk.TagBrush);
  1704. smalltalk.addMethod(
  1705. "_id_",
  1706. smalltalk.method({
  1707. selector: "id:",
  1708. fn: function (aString){
  1709. var self=this;
  1710. smalltalk.send(self,"_at_put_",["id",aString]);
  1711. return self}
  1712. }),
  1713. smalltalk.TagBrush);
  1714. smalltalk.addMethod(
  1715. "_initializeFromJQuery_canvas_",
  1716. smalltalk.method({
  1717. selector: "initializeFromJQuery:canvas:",
  1718. fn: function (aJQuery,aCanvas){
  1719. var self=this;
  1720. self["@element"]=smalltalk.send(aJQuery,"_get_",[(0)]);
  1721. self["@canvas"]=aCanvas;
  1722. return self}
  1723. }),
  1724. smalltalk.TagBrush);
  1725. smalltalk.addMethod(
  1726. "_initializeFromString_canvas_",
  1727. smalltalk.method({
  1728. selector: "initializeFromString:canvas:",
  1729. fn: function (aString,aCanvas){
  1730. var self=this;
  1731. self["@element"]=smalltalk.send(self,"_createElementFor_",[aString]);
  1732. self["@canvas"]=aCanvas;
  1733. return self}
  1734. }),
  1735. smalltalk.TagBrush);
  1736. smalltalk.addMethod(
  1737. "_media_",
  1738. smalltalk.method({
  1739. selector: "media:",
  1740. fn: function (aString){
  1741. var self=this;
  1742. smalltalk.send(self,"_at_put_",["media",aString]);
  1743. return self}
  1744. }),
  1745. smalltalk.TagBrush);
  1746. smalltalk.addMethod(
  1747. "_method_",
  1748. smalltalk.method({
  1749. selector: "method:",
  1750. fn: function (aString){
  1751. var self=this;
  1752. smalltalk.send(self,"_at_put_",["method",aString]);
  1753. return self}
  1754. }),
  1755. smalltalk.TagBrush);
  1756. smalltalk.addMethod(
  1757. "_name_",
  1758. smalltalk.method({
  1759. selector: "name:",
  1760. fn: function (aString){
  1761. var self=this;
  1762. smalltalk.send(self,"_at_put_",["name",aString]);
  1763. return self}
  1764. }),
  1765. smalltalk.TagBrush);
  1766. smalltalk.addMethod(
  1767. "_onBlur_",
  1768. smalltalk.method({
  1769. selector: "onBlur:",
  1770. fn: function (aBlock){
  1771. var self=this;
  1772. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["blur",aBlock]);
  1773. return self}
  1774. }),
  1775. smalltalk.TagBrush);
  1776. smalltalk.addMethod(
  1777. "_onChange_",
  1778. smalltalk.method({
  1779. selector: "onChange:",
  1780. fn: function (aBlock){
  1781. var self=this;
  1782. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["change",aBlock]);
  1783. return self}
  1784. }),
  1785. smalltalk.TagBrush);
  1786. smalltalk.addMethod(
  1787. "_onClick_",
  1788. smalltalk.method({
  1789. selector: "onClick:",
  1790. fn: function (aBlock){
  1791. var self=this;
  1792. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["click",aBlock]);
  1793. return self}
  1794. }),
  1795. smalltalk.TagBrush);
  1796. smalltalk.addMethod(
  1797. "_onDblClick_",
  1798. smalltalk.method({
  1799. selector: "onDblClick:",
  1800. fn: function (aBlock){
  1801. var self=this;
  1802. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["dblclick",aBlock]);
  1803. return self}
  1804. }),
  1805. smalltalk.TagBrush);
  1806. smalltalk.addMethod(
  1807. "_onFocus_",
  1808. smalltalk.method({
  1809. selector: "onFocus:",
  1810. fn: function (aBlock){
  1811. var self=this;
  1812. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["focus",aBlock]);
  1813. return self}
  1814. }),
  1815. smalltalk.TagBrush);
  1816. smalltalk.addMethod(
  1817. "_onFocusIn_",
  1818. smalltalk.method({
  1819. selector: "onFocusIn:",
  1820. fn: function (aBlock){
  1821. var self=this;
  1822. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["focusin",aBlock]);
  1823. return self}
  1824. }),
  1825. smalltalk.TagBrush);
  1826. smalltalk.addMethod(
  1827. "_onFocusOut_",
  1828. smalltalk.method({
  1829. selector: "onFocusOut:",
  1830. fn: function (aBlock){
  1831. var self=this;
  1832. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["focusout",aBlock]);
  1833. return self}
  1834. }),
  1835. smalltalk.TagBrush);
  1836. smalltalk.addMethod(
  1837. "_onHover_",
  1838. smalltalk.method({
  1839. selector: "onHover:",
  1840. fn: function (aBlock){
  1841. var self=this;
  1842. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["hover",aBlock]);
  1843. return self}
  1844. }),
  1845. smalltalk.TagBrush);
  1846. smalltalk.addMethod(
  1847. "_onKeyDown_",
  1848. smalltalk.method({
  1849. selector: "onKeyDown:",
  1850. fn: function (aBlock){
  1851. var self=this;
  1852. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["keydown",aBlock]);
  1853. return self}
  1854. }),
  1855. smalltalk.TagBrush);
  1856. smalltalk.addMethod(
  1857. "_onKeyPress_",
  1858. smalltalk.method({
  1859. selector: "onKeyPress:",
  1860. fn: function (aBlock){
  1861. var self=this;
  1862. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["keypress",aBlock]);
  1863. return self}
  1864. }),
  1865. smalltalk.TagBrush);
  1866. smalltalk.addMethod(
  1867. "_onKeyUp_",
  1868. smalltalk.method({
  1869. selector: "onKeyUp:",
  1870. fn: function (aBlock){
  1871. var self=this;
  1872. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["keyup",aBlock]);
  1873. return self}
  1874. }),
  1875. smalltalk.TagBrush);
  1876. smalltalk.addMethod(
  1877. "_onMouseDown_",
  1878. smalltalk.method({
  1879. selector: "onMouseDown:",
  1880. fn: function (aBlock){
  1881. var self=this;
  1882. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["mousedown",aBlock]);
  1883. return self}
  1884. }),
  1885. smalltalk.TagBrush);
  1886. smalltalk.addMethod(
  1887. "_onMouseEnter_",
  1888. smalltalk.method({
  1889. selector: "onMouseEnter:",
  1890. fn: function (aBlock){
  1891. var self=this;
  1892. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["mouseenter",aBlock]);
  1893. return self}
  1894. }),
  1895. smalltalk.TagBrush);
  1896. smalltalk.addMethod(
  1897. "_onMouseLeave_",
  1898. smalltalk.method({
  1899. selector: "onMouseLeave:",
  1900. fn: function (aBlock){
  1901. var self=this;
  1902. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["mouseleave",aBlock]);
  1903. return self}
  1904. }),
  1905. smalltalk.TagBrush);
  1906. smalltalk.addMethod(
  1907. "_onMouseMove_",
  1908. smalltalk.method({
  1909. selector: "onMouseMove:",
  1910. fn: function (aBlock){
  1911. var self=this;
  1912. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["mousemove",aBlock]);
  1913. return self}
  1914. }),
  1915. smalltalk.TagBrush);
  1916. smalltalk.addMethod(
  1917. "_onMouseOut_",
  1918. smalltalk.method({
  1919. selector: "onMouseOut:",
  1920. fn: function (aBlock){
  1921. var self=this;
  1922. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["mouseout",aBlock]);
  1923. return self}
  1924. }),
  1925. smalltalk.TagBrush);
  1926. smalltalk.addMethod(
  1927. "_onMouseOver_",
  1928. smalltalk.method({
  1929. selector: "onMouseOver:",
  1930. fn: function (aBlock){
  1931. var self=this;
  1932. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["mouseover",aBlock]);
  1933. return self}
  1934. }),
  1935. smalltalk.TagBrush);
  1936. smalltalk.addMethod(
  1937. "_onMouseUp_",
  1938. smalltalk.method({
  1939. selector: "onMouseUp:",
  1940. fn: function (aBlock){
  1941. var self=this;
  1942. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["mouseup",aBlock]);
  1943. return self}
  1944. }),
  1945. smalltalk.TagBrush);
  1946. smalltalk.addMethod(
  1947. "_onSelect_",
  1948. smalltalk.method({
  1949. selector: "onSelect:",
  1950. fn: function (aBlock){
  1951. var self=this;
  1952. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["select",aBlock]);
  1953. return self}
  1954. }),
  1955. smalltalk.TagBrush);
  1956. smalltalk.addMethod(
  1957. "_onSubmit_",
  1958. smalltalk.method({
  1959. selector: "onSubmit:",
  1960. fn: function (aBlock){
  1961. var self=this;
  1962. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["submit",aBlock]);
  1963. return self}
  1964. }),
  1965. smalltalk.TagBrush);
  1966. smalltalk.addMethod(
  1967. "_onUnload_",
  1968. smalltalk.method({
  1969. selector: "onUnload:",
  1970. fn: function (aBlock){
  1971. var self=this;
  1972. smalltalk.send(smalltalk.send(self,"_asJQuery",[]),"_bind_do_",["unload",aBlock]);
  1973. return self}
  1974. }),
  1975. smalltalk.TagBrush);
  1976. smalltalk.addMethod(
  1977. "_placeholder_",
  1978. smalltalk.method({
  1979. selector: "placeholder:",
  1980. fn: function (aString){
  1981. var self=this;
  1982. smalltalk.send(self,"_at_put_",["placeholder",aString]);
  1983. return self}
  1984. }),
  1985. smalltalk.TagBrush);
  1986. smalltalk.addMethod(
  1987. "_rel_",
  1988. smalltalk.method({
  1989. selector: "rel:",
  1990. fn: function (aString){
  1991. var self=this;
  1992. smalltalk.send(self,"_at_put_",["rel",aString]);
  1993. return self}
  1994. }),
  1995. smalltalk.TagBrush);
  1996. smalltalk.addMethod(
  1997. "_removeAt_",
  1998. smalltalk.method({
  1999. selector: "removeAt:",
  2000. fn: function (aString){
  2001. var self=this;
  2002. self['@element'].removeAttribute(aString);
  2003. ;
  2004. return self}
  2005. }),
  2006. smalltalk.TagBrush);
  2007. smalltalk.addMethod(
  2008. "_rows_",
  2009. smalltalk.method({
  2010. selector: "rows:",
  2011. fn: function (aString){
  2012. var self=this;
  2013. smalltalk.send(self,"_at_put_",["rows",aString]);
  2014. return self}
  2015. }),
  2016. smalltalk.TagBrush);
  2017. smalltalk.addMethod(
  2018. "_src_",
  2019. smalltalk.method({
  2020. selector: "src:",
  2021. fn: function (aString){
  2022. var self=this;
  2023. smalltalk.send(self,"_at_put_",["src",aString]);
  2024. return self}
  2025. }),
  2026. smalltalk.TagBrush);
  2027. smalltalk.addMethod(
  2028. "_style_",
  2029. smalltalk.method({
  2030. selector: "style:",
  2031. fn: function (aString){
  2032. var self=this;
  2033. smalltalk.send(self,"_at_put_",["style",aString]);
  2034. return self}
  2035. }),
  2036. smalltalk.TagBrush);
  2037. smalltalk.addMethod(
  2038. "_tabindex_",
  2039. smalltalk.method({
  2040. selector: "tabindex:",
  2041. fn: function (aNumber){
  2042. var self=this;
  2043. smalltalk.send(self,"_at_put_",["tabindex",aNumber]);
  2044. return self}
  2045. }),
  2046. smalltalk.TagBrush);
  2047. smalltalk.addMethod(
  2048. "_target_",
  2049. smalltalk.method({
  2050. selector: "target:",
  2051. fn: function (aString){
  2052. var self=this;
  2053. smalltalk.send(self,"_at_put_",["target",aString]);
  2054. return self}
  2055. }),
  2056. smalltalk.TagBrush);
  2057. smalltalk.addMethod(
  2058. "_title_",
  2059. smalltalk.method({
  2060. selector: "title:",
  2061. fn: function (aString){
  2062. var self=this;
  2063. smalltalk.send(self,"_at_put_",["title",aString]);
  2064. return self}
  2065. }),
  2066. smalltalk.TagBrush);
  2067. smalltalk.addMethod(
  2068. "_type_",
  2069. smalltalk.method({
  2070. selector: "type:",
  2071. fn: function (aString){
  2072. var self=this;
  2073. smalltalk.send(self,"_at_put_",["type",aString]);
  2074. return self}
  2075. }),
  2076. smalltalk.TagBrush);
  2077. smalltalk.addMethod(
  2078. "_valign_",
  2079. smalltalk.method({
  2080. selector: "valign:",
  2081. fn: function (aString){
  2082. var self=this;
  2083. smalltalk.send(self,"_at_put_",["valign",aString]);
  2084. return self}
  2085. }),
  2086. smalltalk.TagBrush);
  2087. smalltalk.addMethod(
  2088. "_value_",
  2089. smalltalk.method({
  2090. selector: "value:",
  2091. fn: function (aString){
  2092. var self=this;
  2093. smalltalk.send(self,"_at_put_",["value",aString]);
  2094. return self}
  2095. }),
  2096. smalltalk.TagBrush);
  2097. smalltalk.addMethod(
  2098. "_width_",
  2099. smalltalk.method({
  2100. selector: "width:",
  2101. fn: function (aString){
  2102. var self=this;
  2103. smalltalk.send(self,"_at_put_",["width",aString]);
  2104. return self}
  2105. }),
  2106. smalltalk.TagBrush);
  2107. smalltalk.addMethod(
  2108. "_with_",
  2109. smalltalk.method({
  2110. selector: "with:",
  2111. fn: function (anObject){
  2112. var self=this;
  2113. smalltalk.send(self,"_append_",[anObject]);
  2114. return self}
  2115. }),
  2116. smalltalk.TagBrush);
  2117. smalltalk.addMethod(
  2118. "_fromJQuery_canvas_",
  2119. smalltalk.method({
  2120. selector: "fromJQuery:canvas:",
  2121. fn: function (aJQuery,aCanvas){
  2122. var self=this;
  2123. var $2,$3,$1;
  2124. $2=smalltalk.send(self,"_new",[]);
  2125. smalltalk.send($2,"_initializeFromJQuery_canvas_",[aJQuery,aCanvas]);
  2126. $3=smalltalk.send($2,"_yourself",[]);
  2127. $1=$3;
  2128. return $1;
  2129. }
  2130. }),
  2131. smalltalk.TagBrush.klass);
  2132. smalltalk.addMethod(
  2133. "_fromString_canvas_",
  2134. smalltalk.method({
  2135. selector: "fromString:canvas:",
  2136. fn: function (aString,aCanvas){
  2137. var self=this;
  2138. var $2,$3,$1;
  2139. $2=smalltalk.send(self,"_new",[]);
  2140. smalltalk.send($2,"_initializeFromString_canvas_",[aString,aCanvas]);
  2141. $3=smalltalk.send($2,"_yourself",[]);
  2142. $1=$3;
  2143. return $1;
  2144. }
  2145. }),
  2146. smalltalk.TagBrush.klass);
  2147. smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
  2148. smalltalk.addMethod(
  2149. "_with_",
  2150. smalltalk.method({
  2151. selector: "with:",
  2152. fn: function (aString){
  2153. var self=this;
  2154. var $1;
  2155. $1=smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas),"_isMSIE",[]);
  2156. if(smalltalk.assert($1)){
  2157. smalltalk.send(smalltalk.send(smalltalk.send(self,"_element",[]),"_styleSheet",[]),"_cssText_",[aString]);
  2158. } else {
  2159. smalltalk.send(self,"_with_",[aString],smalltalk.TagBrush);
  2160. };
  2161. return self}
  2162. }),
  2163. smalltalk.StyleTag);
  2164. smalltalk.addMethod(
  2165. "_canvas_",
  2166. smalltalk.method({
  2167. selector: "canvas:",
  2168. fn: function (aCanvas){
  2169. var self=this;
  2170. var $2,$3,$1;
  2171. $2=smalltalk.send(self,"_new",[]);
  2172. smalltalk.send($2,"_initializeFromString_canvas_",["style",aCanvas]);
  2173. $3=smalltalk.send($2,"_yourself",[]);
  2174. $1=$3;
  2175. return $1;
  2176. }
  2177. }),
  2178. smalltalk.StyleTag.klass);
  2179. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  2180. smalltalk.addMethod(
  2181. "_appendToBrush_",
  2182. smalltalk.method({
  2183. selector: "appendToBrush:",
  2184. fn: function (aTagBrush){
  2185. var self=this;
  2186. smalltalk.send(self,"_appendToJQuery_",[smalltalk.send(aTagBrush,"_asJQuery",[])]);
  2187. return self}
  2188. }),
  2189. smalltalk.Widget);
  2190. smalltalk.addMethod(
  2191. "_appendToJQuery_",
  2192. smalltalk.method({
  2193. selector: "appendToJQuery:",
  2194. fn: function (aJQuery){
  2195. var self=this;
  2196. smalltalk.send(self,"_renderOn_",[smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas),"_onJQuery_",[aJQuery])]);
  2197. return self}
  2198. }),
  2199. smalltalk.Widget);
  2200. smalltalk.addMethod(
  2201. "_renderOn_",
  2202. smalltalk.method({
  2203. selector: "renderOn:",
  2204. fn: function (html){
  2205. var self=this;
  2206. return self}
  2207. }),
  2208. smalltalk.Widget);
  2209. smalltalk.addMethod(
  2210. "_appendToBrush_",
  2211. smalltalk.method({
  2212. selector: "appendToBrush:",
  2213. fn: function (aTagBrush){
  2214. var self=this;
  2215. smalltalk.send(aTagBrush,"_append_",[smalltalk.send(self,"_asString",[])]);
  2216. return self}
  2217. }),
  2218. smalltalk.Object);
  2219. smalltalk.addMethod(
  2220. "_appendToJQuery_",
  2221. smalltalk.method({
  2222. selector: "appendToJQuery:",
  2223. fn: function (aJQuery){
  2224. var self=this;
  2225. smalltalk.send(aJQuery,"_append_",[smalltalk.send(self,"_asString",[])]);
  2226. return self}
  2227. }),
  2228. smalltalk.Object);
  2229. smalltalk.addMethod(
  2230. "_appendToBrush_",
  2231. smalltalk.method({
  2232. selector: "appendToBrush:",
  2233. fn: function (aTagBrush){
  2234. var self=this;
  2235. smalltalk.send(aTagBrush,"_appendBlock_",[self]);
  2236. return self}
  2237. }),
  2238. smalltalk.BlockClosure);
  2239. smalltalk.addMethod(
  2240. "_appendToJQuery_",
  2241. smalltalk.method({
  2242. selector: "appendToJQuery:",
  2243. fn: function (aJQuery){
  2244. var self=this;
  2245. smalltalk.send(self,"_value_",[smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas),"_onJQuery_",[aJQuery])]);
  2246. return self}
  2247. }),
  2248. smalltalk.BlockClosure);
  2249. smalltalk.addMethod(
  2250. "_appendToBrush_",
  2251. smalltalk.method({
  2252. selector: "appendToBrush:",
  2253. fn: function (aTagBrush){
  2254. var self=this;
  2255. smalltalk.send(aTagBrush,"_appendString_",[self]);
  2256. return self}
  2257. }),
  2258. smalltalk.String);
  2259. smalltalk.addMethod(
  2260. "_appendToJQuery_",
  2261. smalltalk.method({
  2262. selector: "appendToJQuery:",
  2263. fn: function (aJQuery){
  2264. var self=this;
  2265. smalltalk.send(aJQuery,"_append_",[self]);
  2266. return self}
  2267. }),
  2268. smalltalk.String);
  2269. smalltalk.addMethod(
  2270. "_asJQuery",
  2271. smalltalk.method({
  2272. selector: "asJQuery",
  2273. fn: function (){
  2274. var self=this;
  2275. return jQuery(String(self));
  2276. ;
  2277. return self}
  2278. }),
  2279. smalltalk.String);