1
0

Canvas.js 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670
  1. smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
  2. smalltalk.addMethod(
  3. unescape('_root_'),
  4. smalltalk.method({
  5. selector: unescape('root%3A'),
  6. category: 'accessing',
  7. fn: function (aTagBrush){
  8. var self=this;
  9. self['@root']=aTagBrush;
  10. return self;},
  11. args: ["aTagBrush"],
  12. source: unescape('root%3A%20aTagBrush%0A%20%20%20%20root%20%3A%3D%20aTagBrush'),
  13. messageSends: [],
  14. referencedClasses: []
  15. }),
  16. smalltalk.HTMLCanvas);
  17. smalltalk.addMethod(
  18. unescape('_root'),
  19. smalltalk.method({
  20. selector: unescape('root'),
  21. category: 'accessing',
  22. fn: function (){
  23. var self=this;
  24. return self['@root'];
  25. return self;},
  26. args: [],
  27. source: unescape('root%0A%20%20%20%20%5Eroot'),
  28. messageSends: [],
  29. referencedClasses: []
  30. }),
  31. smalltalk.HTMLCanvas);
  32. smalltalk.addMethod(
  33. unescape('_with_'),
  34. smalltalk.method({
  35. selector: unescape('with%3A'),
  36. category: 'adding',
  37. fn: function (anObject){
  38. var self=this;
  39. return smalltalk.send(smalltalk.send(self, "_root", []), "_with_", [anObject]);
  40. return self;},
  41. args: ["anObject"],
  42. source: unescape('with%3A%20anObject%0A%20%20%20%20%5Eself%20root%20with%3A%20anObject'),
  43. messageSends: ["with:", "root"],
  44. referencedClasses: []
  45. }),
  46. smalltalk.HTMLCanvas);
  47. smalltalk.addMethod(
  48. unescape('_initialize'),
  49. smalltalk.method({
  50. selector: unescape('initialize'),
  51. category: 'initialization',
  52. fn: function (){
  53. var self=this;
  54. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  55. (($receiver = self['@root']) == nil || $receiver == undefined) ? (function(){return self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", ["div", self]);})() : $receiver;
  56. return self;},
  57. args: [],
  58. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20root%20ifNil%3A%20%5Broot%20%3A%3D%20TagBrush%20fromString%3A%20%27div%27%20canvas%3A%20self%5D'),
  59. messageSends: ["initialize", "ifNil:", "fromString:canvas:"],
  60. referencedClasses: []
  61. }),
  62. smalltalk.HTMLCanvas);
  63. smalltalk.addMethod(
  64. unescape('_initializeFromJQuery_'),
  65. smalltalk.method({
  66. selector: unescape('initializeFromJQuery%3A'),
  67. category: 'initialization',
  68. fn: function (aJQuery){
  69. var self=this;
  70. self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromJQuery_canvas_", [aJQuery, self]);
  71. return self;},
  72. args: ["aJQuery"],
  73. source: unescape('initializeFromJQuery%3A%20aJQuery%0A%20%20%20%20root%20%3A%3D%20TagBrush%20fromJQuery%3A%20aJQuery%20canvas%3A%20self'),
  74. messageSends: ["fromJQuery:canvas:"],
  75. referencedClasses: []
  76. }),
  77. smalltalk.HTMLCanvas);
  78. smalltalk.addMethod(
  79. unescape('_newTag_'),
  80. smalltalk.method({
  81. selector: unescape('newTag%3A'),
  82. category: 'tags',
  83. fn: function (aString){
  84. var self=this;
  85. return smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", [aString, self]);
  86. return self;},
  87. args: ["aString"],
  88. source: unescape('newTag%3A%20aString%0A%20%20%20%20%5ETagBrush%20fromString%3A%20aString%20canvas%3A%20self'),
  89. messageSends: ["fromString:canvas:"],
  90. referencedClasses: []
  91. }),
  92. smalltalk.HTMLCanvas);
  93. smalltalk.addMethod(
  94. unescape('_tag_'),
  95. smalltalk.method({
  96. selector: unescape('tag%3A'),
  97. category: 'tags',
  98. fn: function (aString){
  99. var self=this;
  100. return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send(self, "_newTag_", [aString])]);
  101. return self;},
  102. args: ["aString"],
  103. source: unescape('tag%3A%20aString%0A%20%20%20%20%5Eroot%20addBrush%3A%20%28self%20newTag%3A%20aString%29'),
  104. messageSends: ["addBrush:", "newTag:"],
  105. referencedClasses: []
  106. }),
  107. smalltalk.HTMLCanvas);
  108. smalltalk.addMethod(
  109. unescape('_h1'),
  110. smalltalk.method({
  111. selector: unescape('h1'),
  112. category: 'tags',
  113. fn: function (){
  114. var self=this;
  115. return smalltalk.send(self, "_tag_", ["h1"]);
  116. return self;},
  117. args: [],
  118. source: unescape('h1%0A%20%20%20%20%5Eself%20tag%3A%20%27h1%27'),
  119. messageSends: ["tag:"],
  120. referencedClasses: []
  121. }),
  122. smalltalk.HTMLCanvas);
  123. smalltalk.addMethod(
  124. unescape('_h2'),
  125. smalltalk.method({
  126. selector: unescape('h2'),
  127. category: 'tags',
  128. fn: function (){
  129. var self=this;
  130. return smalltalk.send(self, "_tag_", ["h2"]);
  131. return self;},
  132. args: [],
  133. source: unescape('h2%0A%20%20%20%20%5Eself%20tag%3A%20%27h2%27'),
  134. messageSends: ["tag:"],
  135. referencedClasses: []
  136. }),
  137. smalltalk.HTMLCanvas);
  138. smalltalk.addMethod(
  139. unescape('_h3'),
  140. smalltalk.method({
  141. selector: unescape('h3'),
  142. category: 'tags',
  143. fn: function (){
  144. var self=this;
  145. return smalltalk.send(self, "_tag_", ["h3"]);
  146. return self;},
  147. args: [],
  148. source: unescape('h3%0A%20%20%20%20%5Eself%20tag%3A%20%27h3%27'),
  149. messageSends: ["tag:"],
  150. referencedClasses: []
  151. }),
  152. smalltalk.HTMLCanvas);
  153. smalltalk.addMethod(
  154. unescape('_h4'),
  155. smalltalk.method({
  156. selector: unescape('h4'),
  157. category: 'tags',
  158. fn: function (){
  159. var self=this;
  160. return smalltalk.send(self, "_tag_", ["h4"]);
  161. return self;},
  162. args: [],
  163. source: unescape('h4%0A%20%20%20%20%5Eself%20tag%3A%20%27h4%27'),
  164. messageSends: ["tag:"],
  165. referencedClasses: []
  166. }),
  167. smalltalk.HTMLCanvas);
  168. smalltalk.addMethod(
  169. unescape('_h5'),
  170. smalltalk.method({
  171. selector: unescape('h5'),
  172. category: 'tags',
  173. fn: function (){
  174. var self=this;
  175. return smalltalk.send(self, "_tag_", ["h5"]);
  176. return self;},
  177. args: [],
  178. source: unescape('h5%0A%20%20%20%20%5Eself%20tag%3A%20%27h5%27'),
  179. messageSends: ["tag:"],
  180. referencedClasses: []
  181. }),
  182. smalltalk.HTMLCanvas);
  183. smalltalk.addMethod(
  184. unescape('_h6'),
  185. smalltalk.method({
  186. selector: unescape('h6'),
  187. category: 'tags',
  188. fn: function (){
  189. var self=this;
  190. return smalltalk.send(self, "_tag_", ["h6"]);
  191. return self;},
  192. args: [],
  193. source: unescape('h6%0A%20%20%20%20%5Eself%20tag%3A%20%27h6%27'),
  194. messageSends: ["tag:"],
  195. referencedClasses: []
  196. }),
  197. smalltalk.HTMLCanvas);
  198. smalltalk.addMethod(
  199. unescape('_p'),
  200. smalltalk.method({
  201. selector: unescape('p'),
  202. category: 'tags',
  203. fn: function (){
  204. var self=this;
  205. return smalltalk.send(self, "_tag_", ["p"]);
  206. return self;},
  207. args: [],
  208. source: unescape('p%0A%20%20%20%20%5Eself%20tag%3A%20%27p%27'),
  209. messageSends: ["tag:"],
  210. referencedClasses: []
  211. }),
  212. smalltalk.HTMLCanvas);
  213. smalltalk.addMethod(
  214. unescape('_div'),
  215. smalltalk.method({
  216. selector: unescape('div'),
  217. category: 'tags',
  218. fn: function (){
  219. var self=this;
  220. return smalltalk.send(self, "_tag_", ["div"]);
  221. return self;},
  222. args: [],
  223. source: unescape('div%0A%20%20%20%20%5Eself%20tag%3A%20%27div%27'),
  224. messageSends: ["tag:"],
  225. referencedClasses: []
  226. }),
  227. smalltalk.HTMLCanvas);
  228. smalltalk.addMethod(
  229. unescape('_span'),
  230. smalltalk.method({
  231. selector: unescape('span'),
  232. category: 'tags',
  233. fn: function (){
  234. var self=this;
  235. return smalltalk.send(self, "_tag_", ["span"]);
  236. return self;},
  237. args: [],
  238. source: unescape('span%0A%20%20%20%20%5Eself%20tag%3A%20%27span%27'),
  239. messageSends: ["tag:"],
  240. referencedClasses: []
  241. }),
  242. smalltalk.HTMLCanvas);
  243. smalltalk.addMethod(
  244. unescape('_img'),
  245. smalltalk.method({
  246. selector: unescape('img'),
  247. category: 'tags',
  248. fn: function (){
  249. var self=this;
  250. return smalltalk.send(self, "_tag_", ["img"]);
  251. return self;},
  252. args: [],
  253. source: unescape('img%0A%20%20%20%20%5Eself%20tag%3A%20%27img%27'),
  254. messageSends: ["tag:"],
  255. referencedClasses: []
  256. }),
  257. smalltalk.HTMLCanvas);
  258. smalltalk.addMethod(
  259. unescape('_ul'),
  260. smalltalk.method({
  261. selector: unescape('ul'),
  262. category: 'tags',
  263. fn: function (){
  264. var self=this;
  265. return smalltalk.send(self, "_tag_", ["ul"]);
  266. return self;},
  267. args: [],
  268. source: unescape('ul%0A%20%20%20%20%5Eself%20tag%3A%20%27ul%27'),
  269. messageSends: ["tag:"],
  270. referencedClasses: []
  271. }),
  272. smalltalk.HTMLCanvas);
  273. smalltalk.addMethod(
  274. unescape('_ol'),
  275. smalltalk.method({
  276. selector: unescape('ol'),
  277. category: 'tags',
  278. fn: function (){
  279. var self=this;
  280. return smalltalk.send(self, "_tag_", ["ol"]);
  281. return self;},
  282. args: [],
  283. source: unescape('ol%0A%20%20%20%20%5Eself%20tag%3A%20%27ol%27'),
  284. messageSends: ["tag:"],
  285. referencedClasses: []
  286. }),
  287. smalltalk.HTMLCanvas);
  288. smalltalk.addMethod(
  289. unescape('_li'),
  290. smalltalk.method({
  291. selector: unescape('li'),
  292. category: 'tags',
  293. fn: function (){
  294. var self=this;
  295. return smalltalk.send(self, "_tag_", ["li"]);
  296. return self;},
  297. args: [],
  298. source: unescape('li%0A%20%20%20%20%5Eself%20tag%3A%20%27li%27'),
  299. messageSends: ["tag:"],
  300. referencedClasses: []
  301. }),
  302. smalltalk.HTMLCanvas);
  303. smalltalk.addMethod(
  304. unescape('_table'),
  305. smalltalk.method({
  306. selector: unescape('table'),
  307. category: 'tags',
  308. fn: function (){
  309. var self=this;
  310. return smalltalk.send(self, "_tag_", ["table"]);
  311. return self;},
  312. args: [],
  313. source: unescape('table%0A%20%20%20%20%5Eself%20tag%3A%20%27table%27'),
  314. messageSends: ["tag:"],
  315. referencedClasses: []
  316. }),
  317. smalltalk.HTMLCanvas);
  318. smalltalk.addMethod(
  319. unescape('_tr'),
  320. smalltalk.method({
  321. selector: unescape('tr'),
  322. category: 'tags',
  323. fn: function (){
  324. var self=this;
  325. return smalltalk.send(self, "_tag_", ["tr"]);
  326. return self;},
  327. args: [],
  328. source: unescape('tr%0A%20%20%20%20%5Eself%20tag%3A%20%27tr%27'),
  329. messageSends: ["tag:"],
  330. referencedClasses: []
  331. }),
  332. smalltalk.HTMLCanvas);
  333. smalltalk.addMethod(
  334. unescape('_td'),
  335. smalltalk.method({
  336. selector: unescape('td'),
  337. category: 'tags',
  338. fn: function (){
  339. var self=this;
  340. return smalltalk.send(self, "_tag_", ["td"]);
  341. return self;},
  342. args: [],
  343. source: unescape('td%20%0A%20%20%20%20%5Eself%20tag%3A%20%27td%27'),
  344. messageSends: ["tag:"],
  345. referencedClasses: []
  346. }),
  347. smalltalk.HTMLCanvas);
  348. smalltalk.addMethod(
  349. unescape('_th'),
  350. smalltalk.method({
  351. selector: unescape('th'),
  352. category: 'tags',
  353. fn: function (){
  354. var self=this;
  355. return smalltalk.send(self, "_tag_", ["th"]);
  356. return self;},
  357. args: [],
  358. source: unescape('th%0A%20%20%20%20%5Eself%20tag%3A%20%27th%27'),
  359. messageSends: ["tag:"],
  360. referencedClasses: []
  361. }),
  362. smalltalk.HTMLCanvas);
  363. smalltalk.addMethod(
  364. unescape('_form'),
  365. smalltalk.method({
  366. selector: unescape('form'),
  367. category: 'tags',
  368. fn: function (){
  369. var self=this;
  370. return smalltalk.send(self, "_tag_", ["form"]);
  371. return self;},
  372. args: [],
  373. source: unescape('form%0A%20%20%20%20%5Eself%20tag%3A%20%27form%27'),
  374. messageSends: ["tag:"],
  375. referencedClasses: []
  376. }),
  377. smalltalk.HTMLCanvas);
  378. smalltalk.addMethod(
  379. unescape('_input'),
  380. smalltalk.method({
  381. selector: unescape('input'),
  382. category: 'tags',
  383. fn: function (){
  384. var self=this;
  385. return smalltalk.send(self, "_tag_", ["input"]);
  386. return self;},
  387. args: [],
  388. source: unescape('input%0A%20%20%20%20%5Eself%20tag%3A%20%27input%27'),
  389. messageSends: ["tag:"],
  390. referencedClasses: []
  391. }),
  392. smalltalk.HTMLCanvas);
  393. smalltalk.addMethod(
  394. unescape('_button'),
  395. smalltalk.method({
  396. selector: unescape('button'),
  397. category: 'tags',
  398. fn: function (){
  399. var self=this;
  400. return smalltalk.send(self, "_tag_", ["button"]);
  401. return self;},
  402. args: [],
  403. source: unescape('button%0A%20%20%20%20%5Eself%20tag%3A%20%27button%27'),
  404. messageSends: ["tag:"],
  405. referencedClasses: []
  406. }),
  407. smalltalk.HTMLCanvas);
  408. smalltalk.addMethod(
  409. unescape('_select'),
  410. smalltalk.method({
  411. selector: unescape('select'),
  412. category: 'tags',
  413. fn: function (){
  414. var self=this;
  415. return smalltalk.send(self, "_tag_", ["select"]);
  416. return self;},
  417. args: [],
  418. source: unescape('select%0A%20%20%20%20%5Eself%20tag%3A%20%27select%27'),
  419. messageSends: ["tag:"],
  420. referencedClasses: []
  421. }),
  422. smalltalk.HTMLCanvas);
  423. smalltalk.addMethod(
  424. unescape('_option'),
  425. smalltalk.method({
  426. selector: unescape('option'),
  427. category: 'tags',
  428. fn: function (){
  429. var self=this;
  430. return smalltalk.send(self, "_tag_", ["option"]);
  431. return self;},
  432. args: [],
  433. source: unescape('option%0A%20%20%20%20%5Eself%20tag%3A%20%27option%27'),
  434. messageSends: ["tag:"],
  435. referencedClasses: []
  436. }),
  437. smalltalk.HTMLCanvas);
  438. smalltalk.addMethod(
  439. unescape('_textarea'),
  440. smalltalk.method({
  441. selector: unescape('textarea'),
  442. category: 'tags',
  443. fn: function (){
  444. var self=this;
  445. return smalltalk.send(self, "_tag_", ["textarea"]);
  446. return self;},
  447. args: [],
  448. source: unescape('textarea%0A%20%20%20%20%5Eself%20tag%3A%20%27textarea%27'),
  449. messageSends: ["tag:"],
  450. referencedClasses: []
  451. }),
  452. smalltalk.HTMLCanvas);
  453. smalltalk.addMethod(
  454. unescape('_a'),
  455. smalltalk.method({
  456. selector: unescape('a'),
  457. category: 'tags',
  458. fn: function (){
  459. var self=this;
  460. return smalltalk.send(self, "_tag_", ["a"]);
  461. return self;},
  462. args: [],
  463. source: unescape('a%0A%20%20%20%20%5Eself%20tag%3A%20%27a%27'),
  464. messageSends: ["tag:"],
  465. referencedClasses: []
  466. }),
  467. smalltalk.HTMLCanvas);
  468. smalltalk.addMethod(
  469. unescape('_canvas'),
  470. smalltalk.method({
  471. selector: unescape('canvas'),
  472. category: 'tags',
  473. fn: function (){
  474. var self=this;
  475. return smalltalk.send(self, "_tag_", ["canvas"]);
  476. return self;},
  477. args: [],
  478. source: unescape('canvas%0A%09%5Eself%20tag%3A%20%27canvas%27'),
  479. messageSends: ["tag:"],
  480. referencedClasses: []
  481. }),
  482. smalltalk.HTMLCanvas);
  483. smalltalk.addMethod(
  484. unescape('_pre'),
  485. smalltalk.method({
  486. selector: unescape('pre'),
  487. category: 'tags',
  488. fn: function (){
  489. var self=this;
  490. return smalltalk.send(self, "_tag_", ["pre"]);
  491. return self;},
  492. args: [],
  493. source: unescape('pre%0A%20%20%20%20%5Eself%20tag%3A%20%27pre%27'),
  494. messageSends: ["tag:"],
  495. referencedClasses: []
  496. }),
  497. smalltalk.HTMLCanvas);
  498. smalltalk.addMethod(
  499. unescape('_code'),
  500. smalltalk.method({
  501. selector: unescape('code'),
  502. category: 'tags',
  503. fn: function (){
  504. var self=this;
  505. return smalltalk.send(self, "_tag_", ["code"]);
  506. return self;},
  507. args: [],
  508. source: unescape('code%0A%20%20%20%20%5Eself%20tag%3A%20%27code%27'),
  509. messageSends: ["tag:"],
  510. referencedClasses: []
  511. }),
  512. smalltalk.HTMLCanvas);
  513. smalltalk.addMethod(
  514. unescape('_br'),
  515. smalltalk.method({
  516. selector: unescape('br'),
  517. category: 'tags',
  518. fn: function (){
  519. var self=this;
  520. return smalltalk.send(self, "_tag_", ["br"]);
  521. return self;},
  522. args: [],
  523. source: unescape('br%0A%20%20%20%20%5Eself%20tag%3A%20%27br%27'),
  524. messageSends: ["tag:"],
  525. referencedClasses: []
  526. }),
  527. smalltalk.HTMLCanvas);
  528. smalltalk.addMethod(
  529. unescape('_script'),
  530. smalltalk.method({
  531. selector: unescape('script'),
  532. category: 'tags',
  533. fn: function (){
  534. var self=this;
  535. return smalltalk.send(self, "_tag_", ["script"]);
  536. return self;},
  537. args: [],
  538. source: unescape('script%0A%20%20%20%20%5Eself%20tag%3A%20%27script%27'),
  539. messageSends: ["tag:"],
  540. referencedClasses: []
  541. }),
  542. smalltalk.HTMLCanvas);
  543. smalltalk.addMethod(
  544. unescape('_link'),
  545. smalltalk.method({
  546. selector: unescape('link'),
  547. category: 'tags',
  548. fn: function (){
  549. var self=this;
  550. return smalltalk.send(self, "_tag_", ["link"]);
  551. return self;},
  552. args: [],
  553. source: unescape('link%0A%20%20%20%20%5Eself%20tag%3A%20%27link%27'),
  554. messageSends: ["tag:"],
  555. referencedClasses: []
  556. }),
  557. smalltalk.HTMLCanvas);
  558. smalltalk.addMethod(
  559. unescape('_style'),
  560. smalltalk.method({
  561. selector: unescape('style'),
  562. category: 'tags',
  563. fn: function (){
  564. var self=this;
  565. return smalltalk.send(self, "_tag_", ["style"]);
  566. return self;},
  567. args: [],
  568. source: unescape('style%0A%09%5Eself%20tag%3A%20%27style%27'),
  569. messageSends: ["tag:"],
  570. referencedClasses: []
  571. }),
  572. smalltalk.HTMLCanvas);
  573. smalltalk.addMethod(
  574. unescape('_p_'),
  575. smalltalk.method({
  576. selector: unescape('p%3A'),
  577. category: 'tags',
  578. fn: function (anObject){
  579. var self=this;
  580. return smalltalk.send(smalltalk.send(self, "_p", []), "_with_", [anObject]);
  581. return self;},
  582. args: ["anObject"],
  583. source: unescape('p%3A%20anObject%0A%20%20%20%20%5Eself%20p%20with%3A%20anObject'),
  584. messageSends: ["with:", "p"],
  585. referencedClasses: []
  586. }),
  587. smalltalk.HTMLCanvas);
  588. smalltalk.addMethod(
  589. unescape('_h1_'),
  590. smalltalk.method({
  591. selector: unescape('h1%3A'),
  592. category: 'tags',
  593. fn: function (anObject){
  594. var self=this;
  595. return smalltalk.send(smalltalk.send(self, "_h1", []), "_with_", [anObject]);
  596. return self;},
  597. args: ["anObject"],
  598. source: unescape('h1%3A%20anObject%0A%20%20%20%20%5Eself%20h1%20with%3A%20anObject'),
  599. messageSends: ["with:", "h1"],
  600. referencedClasses: []
  601. }),
  602. smalltalk.HTMLCanvas);
  603. smalltalk.addMethod(
  604. unescape('_iframe'),
  605. smalltalk.method({
  606. selector: unescape('iframe'),
  607. category: 'tags',
  608. fn: function (){
  609. var self=this;
  610. return smalltalk.send(self, "_tag_", ["iframe"]);
  611. return self;},
  612. args: [],
  613. source: unescape('iframe%0A%20%20%20%20%5Eself%20tag%3A%20%27iframe%27'),
  614. messageSends: ["tag:"],
  615. referencedClasses: []
  616. }),
  617. smalltalk.HTMLCanvas);
  618. smalltalk.addMethod(
  619. unescape('_iframe_'),
  620. smalltalk.method({
  621. selector: unescape('iframe%3A'),
  622. category: 'tags',
  623. fn: function (aString){
  624. var self=this;
  625. return smalltalk.send(smalltalk.send(self, "_iframe", []), "_src_", [aString]);
  626. return self;},
  627. args: ["aString"],
  628. source: unescape('iframe%3A%20aString%0A%20%20%20%20%5Eself%20iframe%20src%3A%20aString'),
  629. messageSends: ["src:", "iframe"],
  630. referencedClasses: []
  631. }),
  632. smalltalk.HTMLCanvas);
  633. smalltalk.addMethod(
  634. unescape('_h2_'),
  635. smalltalk.method({
  636. selector: unescape('h2%3A'),
  637. category: 'tags',
  638. fn: function (anObject){
  639. var self=this;
  640. return smalltalk.send(smalltalk.send(self, "_h2", []), "_with_", [anObject]);
  641. return self;},
  642. args: ["anObject"],
  643. source: unescape('h2%3A%20anObject%0A%20%20%20%20%5E%20self%20h2%20with%3A%20anObject'),
  644. messageSends: ["with:", "h2"],
  645. referencedClasses: []
  646. }),
  647. smalltalk.HTMLCanvas);
  648. smalltalk.addMethod(
  649. unescape('_h3_'),
  650. smalltalk.method({
  651. selector: unescape('h3%3A'),
  652. category: 'tags',
  653. fn: function (anObject){
  654. var self=this;
  655. return smalltalk.send(smalltalk.send(self, "_h3", []), "_with_", [anObject]);
  656. return self;},
  657. args: ["anObject"],
  658. source: unescape('h3%3A%20anObject%0A%20%20%20%20%5Eself%20h3%20with%3A%20anObject'),
  659. messageSends: ["with:", "h3"],
  660. referencedClasses: []
  661. }),
  662. smalltalk.HTMLCanvas);
  663. smalltalk.addMethod(
  664. unescape('_h4_'),
  665. smalltalk.method({
  666. selector: unescape('h4%3A'),
  667. category: 'tags',
  668. fn: function (anObject){
  669. var self=this;
  670. return smalltalk.send(smalltalk.send(self, "_h4", []), "_with_", [anObject]);
  671. return self;},
  672. args: ["anObject"],
  673. source: unescape('h4%3A%20anObject%0A%20%20%20%20%5Eself%20h4%20with%3A%20anObject'),
  674. messageSends: ["with:", "h4"],
  675. referencedClasses: []
  676. }),
  677. smalltalk.HTMLCanvas);
  678. smalltalk.addMethod(
  679. unescape('_h5_'),
  680. smalltalk.method({
  681. selector: unescape('h5%3A'),
  682. category: 'tags',
  683. fn: function (anObject){
  684. var self=this;
  685. return smalltalk.send(smalltalk.send(self, "_h5", []), "_with_", [anObject]);
  686. return self;},
  687. args: ["anObject"],
  688. source: unescape('h5%3A%20anObject%0A%20%20%20%20%5Eself%20h5%20with%3A%20anObject'),
  689. messageSends: ["with:", "h5"],
  690. referencedClasses: []
  691. }),
  692. smalltalk.HTMLCanvas);
  693. smalltalk.addMethod(
  694. unescape('_h6_'),
  695. smalltalk.method({
  696. selector: unescape('h6%3A'),
  697. category: 'tags',
  698. fn: function (anObject){
  699. var self=this;
  700. return smalltalk.send(smalltalk.send(self, "_h6", []), "_with_", [anObject]);
  701. return self;},
  702. args: ["anObject"],
  703. source: unescape('h6%3A%20anObject%0A%20%20%20%20%5Eself%20h6%20with%3A%20anObject'),
  704. messageSends: ["with:", "h6"],
  705. referencedClasses: []
  706. }),
  707. smalltalk.HTMLCanvas);
  708. smalltalk.addMethod(
  709. unescape('_img_'),
  710. smalltalk.method({
  711. selector: unescape('img%3A'),
  712. category: 'tags',
  713. fn: function (aString){
  714. var self=this;
  715. return smalltalk.send(smalltalk.send(self, "_img", []), "_src_", [aString]);
  716. return self;},
  717. args: ["aString"],
  718. source: unescape('img%3A%20aString%0A%20%20%20%20%5Eself%20img%20src%3A%20aString'),
  719. messageSends: ["src:", "img"],
  720. referencedClasses: []
  721. }),
  722. smalltalk.HTMLCanvas);
  723. smalltalk.addMethod(
  724. unescape('_ol_'),
  725. smalltalk.method({
  726. selector: unescape('ol%3A'),
  727. category: 'tags',
  728. fn: function (anObject){
  729. var self=this;
  730. return smalltalk.send(smalltalk.send(self, "_ol", []), "_with_", [anObject]);
  731. return self;},
  732. args: ["anObject"],
  733. source: unescape('ol%3A%20anObject%0A%20%20%20%20%5Eself%20ol%20with%3A%20anObject'),
  734. messageSends: ["with:", "ol"],
  735. referencedClasses: []
  736. }),
  737. smalltalk.HTMLCanvas);
  738. smalltalk.addMethod(
  739. unescape('_li_'),
  740. smalltalk.method({
  741. selector: unescape('li%3A'),
  742. category: 'tags',
  743. fn: function (anObject){
  744. var self=this;
  745. return smalltalk.send(smalltalk.send(self, "_li", []), "_with_", [anObject]);
  746. return self;},
  747. args: ["anObject"],
  748. source: unescape('li%3A%20anObject%0A%20%20%20%20%5Eself%20li%20with%3A%20anObject'),
  749. messageSends: ["with:", "li"],
  750. referencedClasses: []
  751. }),
  752. smalltalk.HTMLCanvas);
  753. smalltalk.addMethod(
  754. unescape('_ul_'),
  755. smalltalk.method({
  756. selector: unescape('ul%3A'),
  757. category: 'tags',
  758. fn: function (anObject){
  759. var self=this;
  760. return smalltalk.send(smalltalk.send(self, "_ul", []), "_with_", [anObject]);
  761. return self;},
  762. args: ["anObject"],
  763. source: unescape('ul%3A%20anObject%0A%20%20%20%20%5Eself%20ul%20with%3A%20anObject'),
  764. messageSends: ["with:", "ul"],
  765. referencedClasses: []
  766. }),
  767. smalltalk.HTMLCanvas);
  768. smalltalk.addMethod(
  769. unescape('_onJQuery_'),
  770. smalltalk.method({
  771. selector: unescape('onJQuery%3A'),
  772. category: 'instance creation',
  773. fn: function (aJQuery){
  774. var self=this;
  775. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
  776. return self;},
  777. args: ["aJQuery"],
  778. source: unescape('onJQuery%3A%20aJQuery%0A%09%5Eself%20basicNew%0A%09%09initializeFromJQuery%3A%20aJQuery%3B%0A%09%09initialize%3B%0A%09%09yourself'),
  779. messageSends: ["initializeFromJQuery:", "initialize", "yourself", "basicNew"],
  780. referencedClasses: []
  781. }),
  782. smalltalk.HTMLCanvas.klass);
  783. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  784. smalltalk.addMethod(
  785. unescape('_element'),
  786. smalltalk.method({
  787. selector: unescape('element'),
  788. category: 'accessing',
  789. fn: function (){
  790. var self=this;
  791. return self['@element'];
  792. return self;},
  793. args: [],
  794. source: unescape('element%0A%20%20%20%20%5Eelement'),
  795. messageSends: [],
  796. referencedClasses: []
  797. }),
  798. smalltalk.TagBrush);
  799. smalltalk.addMethod(
  800. unescape('_contents_'),
  801. smalltalk.method({
  802. selector: unescape('contents%3A'),
  803. category: 'adding',
  804. fn: function (anObject){
  805. var self=this;
  806. (function($rec){smalltalk.send($rec, "_empty", []);return smalltalk.send($rec, "_append_", [anObject]);})(self);
  807. return self;},
  808. args: ["anObject"],
  809. source: unescape('contents%3A%20anObject%0A%20%20%20%20self%20%0A%09empty%3B%0A%20%20%20%09append%3A%20anObject'),
  810. messageSends: ["empty", "append:"],
  811. referencedClasses: []
  812. }),
  813. smalltalk.TagBrush);
  814. smalltalk.addMethod(
  815. unescape('_addBrush_'),
  816. smalltalk.method({
  817. selector: unescape('addBrush%3A'),
  818. category: 'adding',
  819. fn: function (aTagBrush){
  820. var self=this;
  821. smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
  822. return aTagBrush;
  823. return self;},
  824. args: ["aTagBrush"],
  825. source: unescape('addBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendChild%3A%20aTagBrush%20element.%0A%20%20%20%20%5EaTagBrush'),
  826. messageSends: ["appendChild:", "element"],
  827. referencedClasses: []
  828. }),
  829. smalltalk.TagBrush);
  830. smalltalk.addMethod(
  831. unescape('_with_'),
  832. smalltalk.method({
  833. selector: unescape('with%3A'),
  834. category: 'adding',
  835. fn: function (anObject){
  836. var self=this;
  837. smalltalk.send(self, "_append_", [anObject]);
  838. return self;},
  839. args: ["anObject"],
  840. source: unescape('with%3A%20anObject%0A%20%20%20%20self%20append%3A%20anObject'),
  841. messageSends: ["append:"],
  842. referencedClasses: []
  843. }),
  844. smalltalk.TagBrush);
  845. smalltalk.addMethod(
  846. unescape('_append_'),
  847. smalltalk.method({
  848. selector: unescape('append%3A'),
  849. category: 'adding',
  850. fn: function (anObject){
  851. var self=this;
  852. smalltalk.send(anObject, "_appendToBrush_", [self]);
  853. return self;},
  854. args: ["anObject"],
  855. source: unescape('append%3A%20anObject%0A%20%20%20%20anObject%20appendToBrush%3A%20self'),
  856. messageSends: ["appendToBrush:"],
  857. referencedClasses: []
  858. }),
  859. smalltalk.TagBrush);
  860. smalltalk.addMethod(
  861. unescape('_appendToBrush_'),
  862. smalltalk.method({
  863. selector: unescape('appendToBrush%3A'),
  864. category: 'adding',
  865. fn: function (aTagBrush){
  866. var self=this;
  867. smalltalk.send(aTagBrush, "_addBrush_", [self]);
  868. return self;},
  869. args: ["aTagBrush"],
  870. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20addBrush%3A%20self'),
  871. messageSends: ["addBrush:"],
  872. referencedClasses: []
  873. }),
  874. smalltalk.TagBrush);
  875. smalltalk.addMethod(
  876. unescape('_appendBlock_'),
  877. smalltalk.method({
  878. selector: unescape('appendBlock%3A'),
  879. category: 'adding',
  880. fn: function (aBlock){
  881. var self=this;
  882. var root=nil;
  883. root=smalltalk.send(self['@canvas'], "_root", []);
  884. smalltalk.send(self['@canvas'], "_root_", [self]);
  885. smalltalk.send(aBlock, "_value_", [self['@canvas']]);
  886. smalltalk.send(self['@canvas'], "_root_", [root]);
  887. return self;},
  888. args: ["aBlock"],
  889. source: unescape('appendBlock%3A%20aBlock%0A%20%20%20%20%7C%20root%20%7C%0A%20%20%20%20root%20%3A%3D%20canvas%20root.%0A%20%20%20%20canvas%20root%3A%20self.%0A%20%20%20%20aBlock%20value%3A%20canvas.%0A%20%20%20%20canvas%20root%3A%20root'),
  890. messageSends: ["root", "root:", "value:"],
  891. referencedClasses: []
  892. }),
  893. smalltalk.TagBrush);
  894. smalltalk.addMethod(
  895. unescape('_appendChild_'),
  896. smalltalk.method({
  897. selector: unescape('appendChild%3A'),
  898. category: 'adding',
  899. fn: function (anElement){
  900. var self=this;
  901. var element=self['@element'];
  902. if (null == element.canHaveChildren || element.canHaveChildren) {
  903. element.appendChild(anElement);
  904. } else {
  905. element.text = String(element.text) + anElement.innerHTML;
  906. } ;
  907. return self;},
  908. args: ["anElement"],
  909. source: unescape('appendChild%3A%20anElement%0A%09%22In%20IE7%20and%20IE8%20appendChild%20fails%20on%20several%20node%20types.%20So%20we%20need%20to%20check%22%20%0A%20%09%3Cvar%20element%3Dself%5B%27@element%27%5D%3B%0A%20%09if%20%28null%20%3D%3D%20element.canHaveChildren%20%7C%7C%20element.canHaveChildren%29%20%7B%0A%09%09element.appendChild%28anElement%29%3B%0A%20%09%7D%20else%20%7B%0A%20%09%09element.text%20%3D%20String%28element.text%29%20+%20%20anElement.innerHTML%3B%0A%20%09%7D%20%3E'),
  910. messageSends: [],
  911. referencedClasses: []
  912. }),
  913. smalltalk.TagBrush);
  914. smalltalk.addMethod(
  915. unescape('_appendString_'),
  916. smalltalk.method({
  917. selector: unescape('appendString%3A'),
  918. category: 'adding',
  919. fn: function (aString){
  920. var self=this;
  921. smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
  922. return self;},
  923. args: ["aString"],
  924. source: unescape('appendString%3A%20aString%0A%20%20%20%20self%20appendChild%3A%20%28self%20createTextNodeFor%3A%20aString%29'),
  925. messageSends: ["appendChild:", "createTextNodeFor:"],
  926. referencedClasses: []
  927. }),
  928. smalltalk.TagBrush);
  929. smalltalk.addMethod(
  930. unescape('_empty'),
  931. smalltalk.method({
  932. selector: unescape('empty'),
  933. category: 'adding',
  934. fn: function (){
  935. var self=this;
  936. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
  937. return self;},
  938. args: [],
  939. source: unescape('empty%0A%09self%20asJQuery%20empty'),
  940. messageSends: ["empty", "asJQuery"],
  941. referencedClasses: []
  942. }),
  943. smalltalk.TagBrush);
  944. smalltalk.addMethod(
  945. unescape('_at_put_'),
  946. smalltalk.method({
  947. selector: unescape('at%3Aput%3A'),
  948. category: 'attributes',
  949. fn: function (aString, aValue){
  950. var self=this;
  951. self['@element'].setAttribute(aString, aValue);
  952. return self;},
  953. args: ["aString", "aValue"],
  954. source: unescape('at%3A%20aString%20put%3A%20aValue%0A%20%20%20%20%3Cself%5B%27@element%27%5D.setAttribute%28aString%2C%20aValue%29%3E'),
  955. messageSends: [],
  956. referencedClasses: []
  957. }),
  958. smalltalk.TagBrush);
  959. smalltalk.addMethod(
  960. unescape('_removeAt_'),
  961. smalltalk.method({
  962. selector: unescape('removeAt%3A'),
  963. category: 'attributes',
  964. fn: function (aString){
  965. var self=this;
  966. self['@element'].removeAttribute(aString);
  967. return self;},
  968. args: ["aString"],
  969. source: unescape('removeAt%3A%20aString%0A%20%20%20%20%3Cself%5B%27@element%27%5D.removeAttribute%28aString%29%3E'),
  970. messageSends: [],
  971. referencedClasses: []
  972. }),
  973. smalltalk.TagBrush);
  974. smalltalk.addMethod(
  975. unescape('_class_'),
  976. smalltalk.method({
  977. selector: unescape('class%3A'),
  978. category: 'attributes',
  979. fn: function (aString){
  980. var self=this;
  981. smalltalk.send(self, "_at_put_", ["class", aString]);
  982. return self;},
  983. args: ["aString"],
  984. source: unescape('class%3A%20aString%0A%20%20%20%20self%20at%3A%20%27class%27%20put%3A%20aString'),
  985. messageSends: ["at:put:"],
  986. referencedClasses: []
  987. }),
  988. smalltalk.TagBrush);
  989. smalltalk.addMethod(
  990. unescape('_id_'),
  991. smalltalk.method({
  992. selector: unescape('id%3A'),
  993. category: 'attributes',
  994. fn: function (aString){
  995. var self=this;
  996. smalltalk.send(self, "_at_put_", ["id", aString]);
  997. return self;},
  998. args: ["aString"],
  999. source: unescape('id%3A%20aString%0A%20%20%20%20self%20at%3A%20%27id%27%20put%3A%20aString'),
  1000. messageSends: ["at:put:"],
  1001. referencedClasses: []
  1002. }),
  1003. smalltalk.TagBrush);
  1004. smalltalk.addMethod(
  1005. unescape('_src_'),
  1006. smalltalk.method({
  1007. selector: unescape('src%3A'),
  1008. category: 'attributes',
  1009. fn: function (aString){
  1010. var self=this;
  1011. smalltalk.send(self, "_at_put_", ["src", aString]);
  1012. return self;},
  1013. args: ["aString"],
  1014. source: unescape('src%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27src%27%20put%3A%20aString'),
  1015. messageSends: ["at:put:"],
  1016. referencedClasses: []
  1017. }),
  1018. smalltalk.TagBrush);
  1019. smalltalk.addMethod(
  1020. unescape('_href_'),
  1021. smalltalk.method({
  1022. selector: unescape('href%3A'),
  1023. category: 'attributes',
  1024. fn: function (aString){
  1025. var self=this;
  1026. smalltalk.send(self, "_at_put_", ["href", aString]);
  1027. return self;},
  1028. args: ["aString"],
  1029. source: unescape('href%3A%20aString%0A%20%20%20%20self%20at%3A%20%27href%27%20put%3A%20aString'),
  1030. messageSends: ["at:put:"],
  1031. referencedClasses: []
  1032. }),
  1033. smalltalk.TagBrush);
  1034. smalltalk.addMethod(
  1035. unescape('_title_'),
  1036. smalltalk.method({
  1037. selector: unescape('title%3A'),
  1038. category: 'attributes',
  1039. fn: function (aString){
  1040. var self=this;
  1041. smalltalk.send(self, "_at_put_", ["title", aString]);
  1042. return self;},
  1043. args: ["aString"],
  1044. source: unescape('title%3A%20aString%0A%20%20%20%20self%20at%3A%20%27title%27%20put%3A%20aString'),
  1045. messageSends: ["at:put:"],
  1046. referencedClasses: []
  1047. }),
  1048. smalltalk.TagBrush);
  1049. smalltalk.addMethod(
  1050. unescape('_style_'),
  1051. smalltalk.method({
  1052. selector: unescape('style%3A'),
  1053. category: 'attributes',
  1054. fn: function (aString){
  1055. var self=this;
  1056. smalltalk.send(self, "_at_put_", ["style", aString]);
  1057. return self;},
  1058. args: ["aString"],
  1059. source: unescape('style%3A%20aString%0A%20%20%20%20self%20at%3A%20%27style%27%20put%3A%20aString'),
  1060. messageSends: ["at:put:"],
  1061. referencedClasses: []
  1062. }),
  1063. smalltalk.TagBrush);
  1064. smalltalk.addMethod(
  1065. unescape('_type_'),
  1066. smalltalk.method({
  1067. selector: unescape('type%3A'),
  1068. category: 'attributes',
  1069. fn: function (aString){
  1070. var self=this;
  1071. smalltalk.send(self, "_at_put_", ["type", aString]);
  1072. return self;},
  1073. args: ["aString"],
  1074. source: unescape('type%3A%20aString%0A%20%20%20%20self%20at%3A%20%27type%27%20put%3A%20aString'),
  1075. messageSends: ["at:put:"],
  1076. referencedClasses: []
  1077. }),
  1078. smalltalk.TagBrush);
  1079. smalltalk.addMethod(
  1080. unescape('_media_'),
  1081. smalltalk.method({
  1082. selector: unescape('media%3A'),
  1083. category: 'attributes',
  1084. fn: function (aString){
  1085. var self=this;
  1086. smalltalk.send(self, "_at_put_", ["media", aString]);
  1087. return self;},
  1088. args: ["aString"],
  1089. source: unescape('media%3A%20aString%0A%20%20%20%20self%20at%3A%20%27media%27%20put%3A%20aString'),
  1090. messageSends: ["at:put:"],
  1091. referencedClasses: []
  1092. }),
  1093. smalltalk.TagBrush);
  1094. smalltalk.addMethod(
  1095. unescape('_rel_'),
  1096. smalltalk.method({
  1097. selector: unescape('rel%3A'),
  1098. category: 'attributes',
  1099. fn: function (aString){
  1100. var self=this;
  1101. smalltalk.send(self, "_at_put_", ["rel", aString]);
  1102. return self;},
  1103. args: ["aString"],
  1104. source: unescape('rel%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27rel%27%20put%3A%20aString'),
  1105. messageSends: ["at:put:"],
  1106. referencedClasses: []
  1107. }),
  1108. smalltalk.TagBrush);
  1109. smalltalk.addMethod(
  1110. unescape('_asJQuery'),
  1111. smalltalk.method({
  1112. selector: unescape('asJQuery'),
  1113. category: 'converting',
  1114. fn: function (){
  1115. var self=this;
  1116. return smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(self, "_element", [])]);
  1117. return self;},
  1118. args: [],
  1119. source: unescape('asJQuery%0A%20%20%20%20%5Ewindow%20jQuery%3A%20self%20element'),
  1120. messageSends: ["jQuery:", "element"],
  1121. referencedClasses: []
  1122. }),
  1123. smalltalk.TagBrush);
  1124. smalltalk.addMethod(
  1125. unescape('_onKeyDown_'),
  1126. smalltalk.method({
  1127. selector: unescape('onKeyDown%3A'),
  1128. category: 'events',
  1129. fn: function (aBlock){
  1130. var self=this;
  1131. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keydown", aBlock]);
  1132. return self;},
  1133. args: ["aBlock"],
  1134. source: unescape('onKeyDown%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keydown%27%20do%3A%20aBlock'),
  1135. messageSends: ["bind:do:", "asJQuery"],
  1136. referencedClasses: []
  1137. }),
  1138. smalltalk.TagBrush);
  1139. smalltalk.addMethod(
  1140. unescape('_onKeyPress_'),
  1141. smalltalk.method({
  1142. selector: unescape('onKeyPress%3A'),
  1143. category: 'events',
  1144. fn: function (aBlock){
  1145. var self=this;
  1146. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keypress", aBlock]);
  1147. return self;},
  1148. args: ["aBlock"],
  1149. source: unescape('onKeyPress%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keypress%27%20do%3A%20aBlock'),
  1150. messageSends: ["bind:do:", "asJQuery"],
  1151. referencedClasses: []
  1152. }),
  1153. smalltalk.TagBrush);
  1154. smalltalk.addMethod(
  1155. unescape('_onKeyUp_'),
  1156. smalltalk.method({
  1157. selector: unescape('onKeyUp%3A'),
  1158. category: 'events',
  1159. fn: function (aBlock){
  1160. var self=this;
  1161. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keyup", aBlock]);
  1162. return self;},
  1163. args: ["aBlock"],
  1164. source: unescape('onKeyUp%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keyup%27%20do%3A%20aBlock'),
  1165. messageSends: ["bind:do:", "asJQuery"],
  1166. referencedClasses: []
  1167. }),
  1168. smalltalk.TagBrush);
  1169. smalltalk.addMethod(
  1170. unescape('_onFocus_'),
  1171. smalltalk.method({
  1172. selector: unescape('onFocus%3A'),
  1173. category: 'events',
  1174. fn: function (aBlock){
  1175. var self=this;
  1176. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focus", aBlock]);
  1177. return self;},
  1178. args: ["aBlock"],
  1179. source: unescape('onFocus%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27focus%27%20do%3A%20aBlock'),
  1180. messageSends: ["bind:do:", "asJQuery"],
  1181. referencedClasses: []
  1182. }),
  1183. smalltalk.TagBrush);
  1184. smalltalk.addMethod(
  1185. unescape('_onBlur_'),
  1186. smalltalk.method({
  1187. selector: unescape('onBlur%3A'),
  1188. category: 'events',
  1189. fn: function (aBlock){
  1190. var self=this;
  1191. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["blur", aBlock]);
  1192. return self;},
  1193. args: ["aBlock"],
  1194. source: unescape('onBlur%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27blur%27%20do%3A%20aBlock'),
  1195. messageSends: ["bind:do:", "asJQuery"],
  1196. referencedClasses: []
  1197. }),
  1198. smalltalk.TagBrush);
  1199. smalltalk.addMethod(
  1200. unescape('_onChange_'),
  1201. smalltalk.method({
  1202. selector: unescape('onChange%3A'),
  1203. category: 'events',
  1204. fn: function (aBlock){
  1205. var self=this;
  1206. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["change", aBlock]);
  1207. return self;},
  1208. args: ["aBlock"],
  1209. source: unescape('onChange%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27change%27%20do%3A%20aBlock'),
  1210. messageSends: ["bind:do:", "asJQuery"],
  1211. referencedClasses: []
  1212. }),
  1213. smalltalk.TagBrush);
  1214. smalltalk.addMethod(
  1215. unescape('_onClick_'),
  1216. smalltalk.method({
  1217. selector: unescape('onClick%3A'),
  1218. category: 'events',
  1219. fn: function (aBlock){
  1220. var self=this;
  1221. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["click", aBlock]);
  1222. return self;},
  1223. args: ["aBlock"],
  1224. source: unescape('onClick%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27click%27%20do%3A%20aBlock'),
  1225. messageSends: ["bind:do:", "asJQuery"],
  1226. referencedClasses: []
  1227. }),
  1228. smalltalk.TagBrush);
  1229. smalltalk.addMethod(
  1230. unescape('_initializeFromString_canvas_'),
  1231. smalltalk.method({
  1232. selector: unescape('initializeFromString%3Acanvas%3A'),
  1233. category: 'initialization',
  1234. fn: function (aString, aCanvas){
  1235. var self=this;
  1236. self['@element']=smalltalk.send(self, "_createElementFor_", [aString]);
  1237. self['@canvas']=aCanvas;
  1238. return self;},
  1239. args: ["aString", "aCanvas"],
  1240. source: unescape('initializeFromString%3A%20aString%20canvas%3A%20aCanvas%0A%20%20%20%20element%20%3A%3D%20self%20createElementFor%3A%20aString.%0A%20%20%20%20canvas%20%3A%3D%20aCanvas'),
  1241. messageSends: ["createElementFor:"],
  1242. referencedClasses: []
  1243. }),
  1244. smalltalk.TagBrush);
  1245. smalltalk.addMethod(
  1246. unescape('_initializeFromJQuery_canvas_'),
  1247. smalltalk.method({
  1248. selector: unescape('initializeFromJQuery%3Acanvas%3A'),
  1249. category: 'initialization',
  1250. fn: function (aJQuery, aCanvas){
  1251. var self=this;
  1252. self['@element']=smalltalk.send(aJQuery, "_get_", [(0)]);
  1253. self['@canvas']=aCanvas;
  1254. return self;},
  1255. args: ["aJQuery", "aCanvas"],
  1256. source: unescape('initializeFromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%0A%20%20%20%20element%20%3A%3D%20aJQuery%20get%3A%200.%0A%20%20%20%20canvas%20%3A%3D%20aCanvas'),
  1257. messageSends: ["get:"],
  1258. referencedClasses: []
  1259. }),
  1260. smalltalk.TagBrush);
  1261. smalltalk.addMethod(
  1262. unescape('_createElementFor_'),
  1263. smalltalk.method({
  1264. selector: unescape('createElementFor%3A'),
  1265. category: 'private',
  1266. fn: function (aString){
  1267. var self=this;
  1268. return document.createElement(String(aString));
  1269. return self;},
  1270. args: ["aString"],
  1271. source: unescape('createElementFor%3A%20aString%0A%09%3Creturn%20document.createElement%28String%28aString%29%29%3E'),
  1272. messageSends: [],
  1273. referencedClasses: []
  1274. }),
  1275. smalltalk.TagBrush);
  1276. smalltalk.addMethod(
  1277. unescape('_createTextNodeFor_'),
  1278. smalltalk.method({
  1279. selector: unescape('createTextNodeFor%3A'),
  1280. category: 'private',
  1281. fn: function (aString){
  1282. var self=this;
  1283. return document.createTextNode(String(aString));
  1284. return self;},
  1285. args: ["aString"],
  1286. source: unescape('createTextNodeFor%3A%20aString%0A%09%3Creturn%20document.createTextNode%28String%28aString%29%29%3E'),
  1287. messageSends: [],
  1288. referencedClasses: []
  1289. }),
  1290. smalltalk.TagBrush);
  1291. smalltalk.addMethod(
  1292. unescape('_width_'),
  1293. smalltalk.method({
  1294. selector: unescape('width%3A'),
  1295. category: 'attributes',
  1296. fn: function (aString){
  1297. var self=this;
  1298. smalltalk.send(self, "_at_put_", ["width", aString]);
  1299. return self;},
  1300. args: ["aString"],
  1301. source: unescape('width%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27width%27%20put%3A%20aString'),
  1302. messageSends: ["at:put:"],
  1303. referencedClasses: []
  1304. }),
  1305. smalltalk.TagBrush);
  1306. smalltalk.addMethod(
  1307. unescape('_height_'),
  1308. smalltalk.method({
  1309. selector: unescape('height%3A'),
  1310. category: 'attributes',
  1311. fn: function (aString){
  1312. var self=this;
  1313. smalltalk.send(self, "_at_put_", ["height", aString]);
  1314. return self;},
  1315. args: ["aString"],
  1316. source: unescape('height%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27height%27%20put%3A%20aString'),
  1317. messageSends: ["at:put:"],
  1318. referencedClasses: []
  1319. }),
  1320. smalltalk.TagBrush);
  1321. smalltalk.addMethod(
  1322. unescape('_fromString_canvas_'),
  1323. smalltalk.method({
  1324. selector: unescape('fromString%3Acanvas%3A'),
  1325. category: 'instance creation',
  1326. fn: function (aString, aCanvas){
  1327. var self=this;
  1328. return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1329. return self;},
  1330. args: ["aString", "aCanvas"],
  1331. source: unescape('fromString%3A%20aString%20canvas%3A%20aCanvas%0A%20%20%20%20%5Eself%20new%0A%09initializeFromString%3A%20aString%20canvas%3A%20aCanvas%3B%0A%09yourself'),
  1332. messageSends: ["initializeFromString:canvas:", "yourself", "new"],
  1333. referencedClasses: []
  1334. }),
  1335. smalltalk.TagBrush.klass);
  1336. smalltalk.addMethod(
  1337. unescape('_fromJQuery_canvas_'),
  1338. smalltalk.method({
  1339. selector: unescape('fromJQuery%3Acanvas%3A'),
  1340. category: 'instance creation',
  1341. fn: function (aJQuery, aCanvas){
  1342. var self=this;
  1343. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1344. return self;},
  1345. args: ["aJQuery", "aCanvas"],
  1346. source: unescape('fromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%0A%20%20%20%20%5Eself%20new%0A%09initializeFromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%3B%0A%09yourself'),
  1347. messageSends: ["initializeFromJQuery:canvas:", "yourself", "new"],
  1348. referencedClasses: []
  1349. }),
  1350. smalltalk.TagBrush.klass);
  1351. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  1352. smalltalk.addMethod(
  1353. unescape('_alert_'),
  1354. smalltalk.method({
  1355. selector: unescape('alert%3A'),
  1356. category: 'actions',
  1357. fn: function (aString){
  1358. var self=this;
  1359. alert(aString);
  1360. return self;},
  1361. args: ["aString"],
  1362. source: unescape('alert%3A%20aString%0A%20%20%20%20%3Calert%28aString%29%3E'),
  1363. messageSends: [],
  1364. referencedClasses: []
  1365. }),
  1366. smalltalk.Widget);
  1367. smalltalk.addMethod(
  1368. unescape('_confirm_'),
  1369. smalltalk.method({
  1370. selector: unescape('confirm%3A'),
  1371. category: 'actions',
  1372. fn: function (aString){
  1373. var self=this;
  1374. return window.confirm(aString);
  1375. return self;},
  1376. args: ["aString"],
  1377. source: unescape('confirm%3A%20aString%0A%20%20%20%20%3Creturn%20window.confirm%28aString%29%3E'),
  1378. messageSends: [],
  1379. referencedClasses: []
  1380. }),
  1381. smalltalk.Widget);
  1382. smalltalk.addMethod(
  1383. unescape('_prompt_'),
  1384. smalltalk.method({
  1385. selector: unescape('prompt%3A'),
  1386. category: 'actions',
  1387. fn: function (aString){
  1388. var self=this;
  1389. return smalltalk.send(self, "_prompt_default_", [aString, ""]);
  1390. return self;},
  1391. args: ["aString"],
  1392. source: unescape('prompt%3A%20aString%0A%20%20%20%20%5Eself%20prompt%3A%20aString%20default%3A%20%27%27'),
  1393. messageSends: ["prompt:default:"],
  1394. referencedClasses: []
  1395. }),
  1396. smalltalk.Widget);
  1397. smalltalk.addMethod(
  1398. unescape('_prompt_default_'),
  1399. smalltalk.method({
  1400. selector: unescape('prompt%3Adefault%3A'),
  1401. category: 'actions',
  1402. fn: function (aString, anotherString){
  1403. var self=this;
  1404. return window.prompt(aString, anotherString);
  1405. return self;},
  1406. args: ["aString", "anotherString"],
  1407. source: unescape('prompt%3A%20aString%20default%3A%20anotherString%0A%20%20%20%20%3Creturn%20window.prompt%28aString%2C%20anotherString%29%3E'),
  1408. messageSends: [],
  1409. referencedClasses: []
  1410. }),
  1411. smalltalk.Widget);
  1412. smalltalk.addMethod(
  1413. unescape('_appendToBrush_'),
  1414. smalltalk.method({
  1415. selector: unescape('appendToBrush%3A'),
  1416. category: 'adding',
  1417. fn: function (aTagBrush){
  1418. var self=this;
  1419. smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
  1420. return self;},
  1421. args: ["aTagBrush"],
  1422. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendToJQuery%3A%20aTagBrush%20asJQuery'),
  1423. messageSends: ["appendToJQuery:", "asJQuery"],
  1424. referencedClasses: []
  1425. }),
  1426. smalltalk.Widget);
  1427. smalltalk.addMethod(
  1428. unescape('_appendToJQuery_'),
  1429. smalltalk.method({
  1430. selector: unescape('appendToJQuery%3A'),
  1431. category: 'adding',
  1432. fn: function (aJQuery){
  1433. var self=this;
  1434. smalltalk.send(self, "_renderOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1435. return self;},
  1436. args: ["aJQuery"],
  1437. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20self%20renderOn%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1438. messageSends: ["renderOn:", "onJQuery:"],
  1439. referencedClasses: [smalltalk.HTMLCanvas]
  1440. }),
  1441. smalltalk.Widget);
  1442. smalltalk.addMethod(
  1443. unescape('_renderOn_'),
  1444. smalltalk.method({
  1445. selector: unescape('renderOn%3A'),
  1446. category: 'rendering',
  1447. fn: function (html){
  1448. var self=this;
  1449. self;
  1450. return self;},
  1451. args: ["html"],
  1452. source: unescape('renderOn%3A%20html%0A%20%20%20%20self'),
  1453. messageSends: [],
  1454. referencedClasses: []
  1455. }),
  1456. smalltalk.Widget);
  1457. smalltalk.addMethod(
  1458. unescape('_appendToJQuery_'),
  1459. smalltalk.method({
  1460. selector: unescape('appendToJQuery%3A'),
  1461. category: '*Canvas',
  1462. fn: function (aJQuery){
  1463. var self=this;
  1464. smalltalk.send(aJQuery, "_append_", [smalltalk.send(self, "_asString", [])]);
  1465. return self;},
  1466. args: ["aJQuery"],
  1467. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20append%3A%20self%20asString'),
  1468. messageSends: ["append:", "asString"],
  1469. referencedClasses: []
  1470. }),
  1471. smalltalk.Object);
  1472. smalltalk.addMethod(
  1473. unescape('_appendToBrush_'),
  1474. smalltalk.method({
  1475. selector: unescape('appendToBrush%3A'),
  1476. category: '*Canvas',
  1477. fn: function (aTagBrush){
  1478. var self=this;
  1479. smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
  1480. return self;},
  1481. args: ["aTagBrush"],
  1482. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20append%3A%20self%20asString'),
  1483. messageSends: ["append:", "asString"],
  1484. referencedClasses: []
  1485. }),
  1486. smalltalk.Object);
  1487. smalltalk.addMethod(
  1488. unescape('_appendToJQuery_'),
  1489. smalltalk.method({
  1490. selector: unescape('appendToJQuery%3A'),
  1491. category: '*Canvas',
  1492. fn: function (aJQuery){
  1493. var self=this;
  1494. smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1495. return self;},
  1496. args: ["aJQuery"],
  1497. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20self%20value%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1498. messageSends: ["value:", "onJQuery:"],
  1499. referencedClasses: [smalltalk.HTMLCanvas]
  1500. }),
  1501. smalltalk.BlockClosure);
  1502. smalltalk.addMethod(
  1503. unescape('_appendToBrush_'),
  1504. smalltalk.method({
  1505. selector: unescape('appendToBrush%3A'),
  1506. category: '*Canvas',
  1507. fn: function (aTagBrush){
  1508. var self=this;
  1509. smalltalk.send(aTagBrush, "_appendBlock_", [self]);
  1510. return self;},
  1511. args: ["aTagBrush"],
  1512. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendBlock%3A%20self'),
  1513. messageSends: ["appendBlock:"],
  1514. referencedClasses: []
  1515. }),
  1516. smalltalk.BlockClosure);
  1517. smalltalk.addMethod(
  1518. unescape('_asJQuery'),
  1519. smalltalk.method({
  1520. selector: unescape('asJQuery'),
  1521. category: '*Canvas',
  1522. fn: function (){
  1523. var self=this;
  1524. return jQuery(String(self));
  1525. return self;},
  1526. args: [],
  1527. source: unescape('asJQuery%0A%20%20%20%20%3Creturn%20jQuery%28String%28self%29%29%3E'),
  1528. messageSends: [],
  1529. referencedClasses: []
  1530. }),
  1531. smalltalk.String);
  1532. smalltalk.addMethod(
  1533. unescape('_appendToJQuery_'),
  1534. smalltalk.method({
  1535. selector: unescape('appendToJQuery%3A'),
  1536. category: '*Canvas',
  1537. fn: function (aJQuery){
  1538. var self=this;
  1539. smalltalk.send(aJQuery, "_append_", [self]);
  1540. return self;},
  1541. args: ["aJQuery"],
  1542. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20append%3A%20self'),
  1543. messageSends: ["append:"],
  1544. referencedClasses: []
  1545. }),
  1546. smalltalk.String);
  1547. smalltalk.addMethod(
  1548. unescape('_appendToBrush_'),
  1549. smalltalk.method({
  1550. selector: unescape('appendToBrush%3A'),
  1551. category: '*Canvas',
  1552. fn: function (aTagBrush){
  1553. var self=this;
  1554. smalltalk.send(aTagBrush, "_appendString_", [self]);
  1555. return self;},
  1556. args: ["aTagBrush"],
  1557. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendString%3A%20self'),
  1558. messageSends: ["appendString:"],
  1559. referencedClasses: []
  1560. }),
  1561. smalltalk.String);