Canvas.js 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654
  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('_span_'),
  770. smalltalk.method({
  771. selector: unescape('span%3A'),
  772. category: 'tags',
  773. fn: function (anObject){
  774. var self=this;
  775. return smalltalk.send(smalltalk.send(self, "_span", []), "_with_", [anObject]);
  776. return self;},
  777. args: ["anObject"],
  778. source: unescape('span%3A%20anObject%0A%20%20%20%20%5Eself%20span%20with%3A%20anObject'),
  779. messageSends: ["with:", "span"],
  780. referencedClasses: []
  781. }),
  782. smalltalk.HTMLCanvas);
  783. smalltalk.addMethod(
  784. unescape('_style_'),
  785. smalltalk.method({
  786. selector: unescape('style%3A'),
  787. category: 'tags',
  788. fn: function (aString){
  789. var self=this;
  790. return (function($rec){smalltalk.send($rec, "_with_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_style", []));
  791. return self;},
  792. args: ["aString"],
  793. source: unescape('style%3A%20aString%0A%09%5E%20self%20style%20with%3A%20aString%3B%20yourself%20'),
  794. messageSends: ["with:", "yourself", "style"],
  795. referencedClasses: []
  796. }),
  797. smalltalk.HTMLCanvas);
  798. smalltalk.addMethod(
  799. unescape('_onJQuery_'),
  800. smalltalk.method({
  801. selector: unescape('onJQuery%3A'),
  802. category: 'instance creation',
  803. fn: function (aJQuery){
  804. var self=this;
  805. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
  806. return self;},
  807. args: ["aJQuery"],
  808. source: unescape('onJQuery%3A%20aJQuery%0A%09%5Eself%20basicNew%0A%09%09initializeFromJQuery%3A%20aJQuery%3B%0A%09%09initialize%3B%0A%09%09yourself'),
  809. messageSends: ["initializeFromJQuery:", "initialize", "yourself", "basicNew"],
  810. referencedClasses: []
  811. }),
  812. smalltalk.HTMLCanvas.klass);
  813. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  814. smalltalk.addMethod(
  815. unescape('_element'),
  816. smalltalk.method({
  817. selector: unescape('element'),
  818. category: 'accessing',
  819. fn: function (){
  820. var self=this;
  821. return self['@element'];
  822. return self;},
  823. args: [],
  824. source: unescape('element%0A%20%20%20%20%5Eelement'),
  825. messageSends: [],
  826. referencedClasses: []
  827. }),
  828. smalltalk.TagBrush);
  829. smalltalk.addMethod(
  830. unescape('_contents_'),
  831. smalltalk.method({
  832. selector: unescape('contents%3A'),
  833. category: 'adding',
  834. fn: function (anObject){
  835. var self=this;
  836. (function($rec){smalltalk.send($rec, "_empty", []);return smalltalk.send($rec, "_append_", [anObject]);})(self);
  837. return self;},
  838. args: ["anObject"],
  839. source: unescape('contents%3A%20anObject%0A%20%20%20%20self%20%0A%09empty%3B%0A%20%20%20%09append%3A%20anObject'),
  840. messageSends: ["empty", "append:"],
  841. referencedClasses: []
  842. }),
  843. smalltalk.TagBrush);
  844. smalltalk.addMethod(
  845. unescape('_addBrush_'),
  846. smalltalk.method({
  847. selector: unescape('addBrush%3A'),
  848. category: 'adding',
  849. fn: function (aTagBrush){
  850. var self=this;
  851. smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
  852. return aTagBrush;
  853. return self;},
  854. args: ["aTagBrush"],
  855. source: unescape('addBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendChild%3A%20aTagBrush%20element.%0A%20%20%20%20%5EaTagBrush'),
  856. messageSends: ["appendChild:", "element"],
  857. referencedClasses: []
  858. }),
  859. smalltalk.TagBrush);
  860. smalltalk.addMethod(
  861. unescape('_with_'),
  862. smalltalk.method({
  863. selector: unescape('with%3A'),
  864. category: 'adding',
  865. fn: function (anObject){
  866. var self=this;
  867. smalltalk.send(self, "_append_", [anObject]);
  868. return self;},
  869. args: ["anObject"],
  870. source: unescape('with%3A%20anObject%0A%20%20%20%20self%20append%3A%20anObject'),
  871. messageSends: ["append:"],
  872. referencedClasses: []
  873. }),
  874. smalltalk.TagBrush);
  875. smalltalk.addMethod(
  876. unescape('_append_'),
  877. smalltalk.method({
  878. selector: unescape('append%3A'),
  879. category: 'adding',
  880. fn: function (anObject){
  881. var self=this;
  882. smalltalk.send(anObject, "_appendToBrush_", [self]);
  883. return self;},
  884. args: ["anObject"],
  885. source: unescape('append%3A%20anObject%0A%20%20%20%20anObject%20appendToBrush%3A%20self'),
  886. messageSends: ["appendToBrush:"],
  887. referencedClasses: []
  888. }),
  889. smalltalk.TagBrush);
  890. smalltalk.addMethod(
  891. unescape('_appendToBrush_'),
  892. smalltalk.method({
  893. selector: unescape('appendToBrush%3A'),
  894. category: 'adding',
  895. fn: function (aTagBrush){
  896. var self=this;
  897. smalltalk.send(aTagBrush, "_addBrush_", [self]);
  898. return self;},
  899. args: ["aTagBrush"],
  900. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20addBrush%3A%20self'),
  901. messageSends: ["addBrush:"],
  902. referencedClasses: []
  903. }),
  904. smalltalk.TagBrush);
  905. smalltalk.addMethod(
  906. unescape('_appendBlock_'),
  907. smalltalk.method({
  908. selector: unescape('appendBlock%3A'),
  909. category: 'adding',
  910. fn: function (aBlock){
  911. var self=this;
  912. var root=nil;
  913. root=smalltalk.send(self['@canvas'], "_root", []);
  914. smalltalk.send(self['@canvas'], "_root_", [self]);
  915. smalltalk.send(aBlock, "_value_", [self['@canvas']]);
  916. smalltalk.send(self['@canvas'], "_root_", [root]);
  917. return self;},
  918. args: ["aBlock"],
  919. 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'),
  920. messageSends: ["root", "root:", "value:"],
  921. referencedClasses: []
  922. }),
  923. smalltalk.TagBrush);
  924. smalltalk.addMethod(
  925. unescape('_appendChild_'),
  926. smalltalk.method({
  927. selector: unescape('appendChild%3A'),
  928. category: 'adding',
  929. fn: function (anElement){
  930. var self=this;
  931. var element=self['@element'];
  932. if (null == element.canHaveChildren || element.canHaveChildren) {
  933. element.appendChild(anElement);
  934. } else {
  935. element.text = String(element.text) + anElement.innerHTML;
  936. } ;
  937. return self;},
  938. args: ["anElement"],
  939. 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'),
  940. messageSends: [],
  941. referencedClasses: []
  942. }),
  943. smalltalk.TagBrush);
  944. smalltalk.addMethod(
  945. unescape('_appendString_'),
  946. smalltalk.method({
  947. selector: unescape('appendString%3A'),
  948. category: 'adding',
  949. fn: function (aString){
  950. var self=this;
  951. smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
  952. return self;},
  953. args: ["aString"],
  954. source: unescape('appendString%3A%20aString%0A%20%20%20%20self%20appendChild%3A%20%28self%20createTextNodeFor%3A%20aString%29'),
  955. messageSends: ["appendChild:", "createTextNodeFor:"],
  956. referencedClasses: []
  957. }),
  958. smalltalk.TagBrush);
  959. smalltalk.addMethod(
  960. unescape('_empty'),
  961. smalltalk.method({
  962. selector: unescape('empty'),
  963. category: 'adding',
  964. fn: function (){
  965. var self=this;
  966. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
  967. return self;},
  968. args: [],
  969. source: unescape('empty%0A%09self%20asJQuery%20empty'),
  970. messageSends: ["empty", "asJQuery"],
  971. referencedClasses: []
  972. }),
  973. smalltalk.TagBrush);
  974. smalltalk.addMethod(
  975. unescape('_at_put_'),
  976. smalltalk.method({
  977. selector: unescape('at%3Aput%3A'),
  978. category: 'attributes',
  979. fn: function (aString, aValue){
  980. var self=this;
  981. self['@element'].setAttribute(aString, aValue);
  982. return self;},
  983. args: ["aString", "aValue"],
  984. 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'),
  985. messageSends: [],
  986. referencedClasses: []
  987. }),
  988. smalltalk.TagBrush);
  989. smalltalk.addMethod(
  990. unescape('_removeAt_'),
  991. smalltalk.method({
  992. selector: unescape('removeAt%3A'),
  993. category: 'attributes',
  994. fn: function (aString){
  995. var self=this;
  996. self['@element'].removeAttribute(aString);
  997. return self;},
  998. args: ["aString"],
  999. source: unescape('removeAt%3A%20aString%0A%20%20%20%20%3Cself%5B%27@element%27%5D.removeAttribute%28aString%29%3E'),
  1000. messageSends: [],
  1001. referencedClasses: []
  1002. }),
  1003. smalltalk.TagBrush);
  1004. smalltalk.addMethod(
  1005. unescape('_class_'),
  1006. smalltalk.method({
  1007. selector: unescape('class%3A'),
  1008. category: 'attributes',
  1009. fn: function (aString){
  1010. var self=this;
  1011. smalltalk.send(self, "_at_put_", ["class", aString]);
  1012. return self;},
  1013. args: ["aString"],
  1014. source: unescape('class%3A%20aString%0A%20%20%20%20self%20at%3A%20%27class%27%20put%3A%20aString'),
  1015. messageSends: ["at:put:"],
  1016. referencedClasses: []
  1017. }),
  1018. smalltalk.TagBrush);
  1019. smalltalk.addMethod(
  1020. unescape('_id_'),
  1021. smalltalk.method({
  1022. selector: unescape('id%3A'),
  1023. category: 'attributes',
  1024. fn: function (aString){
  1025. var self=this;
  1026. smalltalk.send(self, "_at_put_", ["id", aString]);
  1027. return self;},
  1028. args: ["aString"],
  1029. source: unescape('id%3A%20aString%0A%20%20%20%20self%20at%3A%20%27id%27%20put%3A%20aString'),
  1030. messageSends: ["at:put:"],
  1031. referencedClasses: []
  1032. }),
  1033. smalltalk.TagBrush);
  1034. smalltalk.addMethod(
  1035. unescape('_src_'),
  1036. smalltalk.method({
  1037. selector: unescape('src%3A'),
  1038. category: 'attributes',
  1039. fn: function (aString){
  1040. var self=this;
  1041. smalltalk.send(self, "_at_put_", ["src", aString]);
  1042. return self;},
  1043. args: ["aString"],
  1044. source: unescape('src%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27src%27%20put%3A%20aString'),
  1045. messageSends: ["at:put:"],
  1046. referencedClasses: []
  1047. }),
  1048. smalltalk.TagBrush);
  1049. smalltalk.addMethod(
  1050. unescape('_href_'),
  1051. smalltalk.method({
  1052. selector: unescape('href%3A'),
  1053. category: 'attributes',
  1054. fn: function (aString){
  1055. var self=this;
  1056. smalltalk.send(self, "_at_put_", ["href", aString]);
  1057. return self;},
  1058. args: ["aString"],
  1059. source: unescape('href%3A%20aString%0A%20%20%20%20self%20at%3A%20%27href%27%20put%3A%20aString'),
  1060. messageSends: ["at:put:"],
  1061. referencedClasses: []
  1062. }),
  1063. smalltalk.TagBrush);
  1064. smalltalk.addMethod(
  1065. unescape('_title_'),
  1066. smalltalk.method({
  1067. selector: unescape('title%3A'),
  1068. category: 'attributes',
  1069. fn: function (aString){
  1070. var self=this;
  1071. smalltalk.send(self, "_at_put_", ["title", aString]);
  1072. return self;},
  1073. args: ["aString"],
  1074. source: unescape('title%3A%20aString%0A%20%20%20%20self%20at%3A%20%27title%27%20put%3A%20aString'),
  1075. messageSends: ["at:put:"],
  1076. referencedClasses: []
  1077. }),
  1078. smalltalk.TagBrush);
  1079. smalltalk.addMethod(
  1080. unescape('_style_'),
  1081. smalltalk.method({
  1082. selector: unescape('style%3A'),
  1083. category: 'attributes',
  1084. fn: function (aString){
  1085. var self=this;
  1086. smalltalk.send(self, "_at_put_", ["style", aString]);
  1087. return self;},
  1088. args: ["aString"],
  1089. source: unescape('style%3A%20aString%0A%20%20%20%20self%20at%3A%20%27style%27%20put%3A%20aString'),
  1090. messageSends: ["at:put:"],
  1091. referencedClasses: []
  1092. }),
  1093. smalltalk.TagBrush);
  1094. smalltalk.addMethod(
  1095. unescape('_type_'),
  1096. smalltalk.method({
  1097. selector: unescape('type%3A'),
  1098. category: 'attributes',
  1099. fn: function (aString){
  1100. var self=this;
  1101. smalltalk.send(self, "_at_put_", ["type", aString]);
  1102. return self;},
  1103. args: ["aString"],
  1104. source: unescape('type%3A%20aString%0A%20%20%20%20self%20at%3A%20%27type%27%20put%3A%20aString'),
  1105. messageSends: ["at:put:"],
  1106. referencedClasses: []
  1107. }),
  1108. smalltalk.TagBrush);
  1109. smalltalk.addMethod(
  1110. unescape('_media_'),
  1111. smalltalk.method({
  1112. selector: unescape('media%3A'),
  1113. category: 'attributes',
  1114. fn: function (aString){
  1115. var self=this;
  1116. smalltalk.send(self, "_at_put_", ["media", aString]);
  1117. return self;},
  1118. args: ["aString"],
  1119. source: unescape('media%3A%20aString%0A%20%20%20%20self%20at%3A%20%27media%27%20put%3A%20aString'),
  1120. messageSends: ["at:put:"],
  1121. referencedClasses: []
  1122. }),
  1123. smalltalk.TagBrush);
  1124. smalltalk.addMethod(
  1125. unescape('_rel_'),
  1126. smalltalk.method({
  1127. selector: unescape('rel%3A'),
  1128. category: 'attributes',
  1129. fn: function (aString){
  1130. var self=this;
  1131. smalltalk.send(self, "_at_put_", ["rel", aString]);
  1132. return self;},
  1133. args: ["aString"],
  1134. source: unescape('rel%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27rel%27%20put%3A%20aString'),
  1135. messageSends: ["at:put:"],
  1136. referencedClasses: []
  1137. }),
  1138. smalltalk.TagBrush);
  1139. smalltalk.addMethod(
  1140. unescape('_asJQuery'),
  1141. smalltalk.method({
  1142. selector: unescape('asJQuery'),
  1143. category: 'converting',
  1144. fn: function (){
  1145. var self=this;
  1146. return smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(self, "_element", [])]);
  1147. return self;},
  1148. args: [],
  1149. source: unescape('asJQuery%0A%20%20%20%20%5Ewindow%20jQuery%3A%20self%20element'),
  1150. messageSends: ["jQuery:", "element"],
  1151. referencedClasses: []
  1152. }),
  1153. smalltalk.TagBrush);
  1154. smalltalk.addMethod(
  1155. unescape('_onKeyDown_'),
  1156. smalltalk.method({
  1157. selector: unescape('onKeyDown%3A'),
  1158. category: 'events',
  1159. fn: function (aBlock){
  1160. var self=this;
  1161. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keydown", aBlock]);
  1162. return self;},
  1163. args: ["aBlock"],
  1164. source: unescape('onKeyDown%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keydown%27%20do%3A%20aBlock'),
  1165. messageSends: ["bind:do:", "asJQuery"],
  1166. referencedClasses: []
  1167. }),
  1168. smalltalk.TagBrush);
  1169. smalltalk.addMethod(
  1170. unescape('_onKeyPress_'),
  1171. smalltalk.method({
  1172. selector: unescape('onKeyPress%3A'),
  1173. category: 'events',
  1174. fn: function (aBlock){
  1175. var self=this;
  1176. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keypress", aBlock]);
  1177. return self;},
  1178. args: ["aBlock"],
  1179. source: unescape('onKeyPress%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keypress%27%20do%3A%20aBlock'),
  1180. messageSends: ["bind:do:", "asJQuery"],
  1181. referencedClasses: []
  1182. }),
  1183. smalltalk.TagBrush);
  1184. smalltalk.addMethod(
  1185. unescape('_onKeyUp_'),
  1186. smalltalk.method({
  1187. selector: unescape('onKeyUp%3A'),
  1188. category: 'events',
  1189. fn: function (aBlock){
  1190. var self=this;
  1191. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keyup", aBlock]);
  1192. return self;},
  1193. args: ["aBlock"],
  1194. source: unescape('onKeyUp%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keyup%27%20do%3A%20aBlock'),
  1195. messageSends: ["bind:do:", "asJQuery"],
  1196. referencedClasses: []
  1197. }),
  1198. smalltalk.TagBrush);
  1199. smalltalk.addMethod(
  1200. unescape('_onFocus_'),
  1201. smalltalk.method({
  1202. selector: unescape('onFocus%3A'),
  1203. category: 'events',
  1204. fn: function (aBlock){
  1205. var self=this;
  1206. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focus", aBlock]);
  1207. return self;},
  1208. args: ["aBlock"],
  1209. source: unescape('onFocus%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27focus%27%20do%3A%20aBlock'),
  1210. messageSends: ["bind:do:", "asJQuery"],
  1211. referencedClasses: []
  1212. }),
  1213. smalltalk.TagBrush);
  1214. smalltalk.addMethod(
  1215. unescape('_onBlur_'),
  1216. smalltalk.method({
  1217. selector: unescape('onBlur%3A'),
  1218. category: 'events',
  1219. fn: function (aBlock){
  1220. var self=this;
  1221. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["blur", aBlock]);
  1222. return self;},
  1223. args: ["aBlock"],
  1224. source: unescape('onBlur%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27blur%27%20do%3A%20aBlock'),
  1225. messageSends: ["bind:do:", "asJQuery"],
  1226. referencedClasses: []
  1227. }),
  1228. smalltalk.TagBrush);
  1229. smalltalk.addMethod(
  1230. unescape('_onChange_'),
  1231. smalltalk.method({
  1232. selector: unescape('onChange%3A'),
  1233. category: 'events',
  1234. fn: function (aBlock){
  1235. var self=this;
  1236. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["change", aBlock]);
  1237. return self;},
  1238. args: ["aBlock"],
  1239. source: unescape('onChange%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27change%27%20do%3A%20aBlock'),
  1240. messageSends: ["bind:do:", "asJQuery"],
  1241. referencedClasses: []
  1242. }),
  1243. smalltalk.TagBrush);
  1244. smalltalk.addMethod(
  1245. unescape('_onClick_'),
  1246. smalltalk.method({
  1247. selector: unescape('onClick%3A'),
  1248. category: 'events',
  1249. fn: function (aBlock){
  1250. var self=this;
  1251. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["click", aBlock]);
  1252. return self;},
  1253. args: ["aBlock"],
  1254. source: unescape('onClick%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27click%27%20do%3A%20aBlock'),
  1255. messageSends: ["bind:do:", "asJQuery"],
  1256. referencedClasses: []
  1257. }),
  1258. smalltalk.TagBrush);
  1259. smalltalk.addMethod(
  1260. unescape('_initializeFromString_canvas_'),
  1261. smalltalk.method({
  1262. selector: unescape('initializeFromString%3Acanvas%3A'),
  1263. category: 'initialization',
  1264. fn: function (aString, aCanvas){
  1265. var self=this;
  1266. self['@element']=smalltalk.send(self, "_createElementFor_", [aString]);
  1267. self['@canvas']=aCanvas;
  1268. return self;},
  1269. args: ["aString", "aCanvas"],
  1270. 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'),
  1271. messageSends: ["createElementFor:"],
  1272. referencedClasses: []
  1273. }),
  1274. smalltalk.TagBrush);
  1275. smalltalk.addMethod(
  1276. unescape('_initializeFromJQuery_canvas_'),
  1277. smalltalk.method({
  1278. selector: unescape('initializeFromJQuery%3Acanvas%3A'),
  1279. category: 'initialization',
  1280. fn: function (aJQuery, aCanvas){
  1281. var self=this;
  1282. self['@element']=smalltalk.send(aJQuery, "_get_", [(0)]);
  1283. self['@canvas']=aCanvas;
  1284. return self;},
  1285. args: ["aJQuery", "aCanvas"],
  1286. 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'),
  1287. messageSends: ["get:"],
  1288. referencedClasses: []
  1289. }),
  1290. smalltalk.TagBrush);
  1291. smalltalk.addMethod(
  1292. unescape('_createElementFor_'),
  1293. smalltalk.method({
  1294. selector: unescape('createElementFor%3A'),
  1295. category: 'private',
  1296. fn: function (aString){
  1297. var self=this;
  1298. return document.createElement(String(aString));
  1299. return self;},
  1300. args: ["aString"],
  1301. source: unescape('createElementFor%3A%20aString%0A%09%3Creturn%20document.createElement%28String%28aString%29%29%3E'),
  1302. messageSends: [],
  1303. referencedClasses: []
  1304. }),
  1305. smalltalk.TagBrush);
  1306. smalltalk.addMethod(
  1307. unescape('_createTextNodeFor_'),
  1308. smalltalk.method({
  1309. selector: unescape('createTextNodeFor%3A'),
  1310. category: 'private',
  1311. fn: function (aString){
  1312. var self=this;
  1313. return document.createTextNode(String(aString));
  1314. return self;},
  1315. args: ["aString"],
  1316. source: unescape('createTextNodeFor%3A%20aString%0A%09%3Creturn%20document.createTextNode%28String%28aString%29%29%3E'),
  1317. messageSends: [],
  1318. referencedClasses: []
  1319. }),
  1320. smalltalk.TagBrush);
  1321. smalltalk.addMethod(
  1322. unescape('_width_'),
  1323. smalltalk.method({
  1324. selector: unescape('width%3A'),
  1325. category: 'attributes',
  1326. fn: function (aString){
  1327. var self=this;
  1328. smalltalk.send(self, "_at_put_", ["width", aString]);
  1329. return self;},
  1330. args: ["aString"],
  1331. source: unescape('width%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27width%27%20put%3A%20aString'),
  1332. messageSends: ["at:put:"],
  1333. referencedClasses: []
  1334. }),
  1335. smalltalk.TagBrush);
  1336. smalltalk.addMethod(
  1337. unescape('_height_'),
  1338. smalltalk.method({
  1339. selector: unescape('height%3A'),
  1340. category: 'attributes',
  1341. fn: function (aString){
  1342. var self=this;
  1343. smalltalk.send(self, "_at_put_", ["height", aString]);
  1344. return self;},
  1345. args: ["aString"],
  1346. source: unescape('height%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27height%27%20put%3A%20aString'),
  1347. messageSends: ["at:put:"],
  1348. referencedClasses: []
  1349. }),
  1350. smalltalk.TagBrush);
  1351. smalltalk.addMethod(
  1352. unescape('_value_'),
  1353. smalltalk.method({
  1354. selector: unescape('value%3A'),
  1355. category: 'attributes',
  1356. fn: function (aString){
  1357. var self=this;
  1358. smalltalk.send(self, "_at_put_", ["value", aString]);
  1359. return self;},
  1360. args: ["aString"],
  1361. source: unescape('value%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27value%27%20put%3A%20aString'),
  1362. messageSends: ["at:put:"],
  1363. referencedClasses: []
  1364. }),
  1365. smalltalk.TagBrush);
  1366. smalltalk.addMethod(
  1367. unescape('_fromString_canvas_'),
  1368. smalltalk.method({
  1369. selector: unescape('fromString%3Acanvas%3A'),
  1370. category: 'instance creation',
  1371. fn: function (aString, aCanvas){
  1372. var self=this;
  1373. return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1374. return self;},
  1375. args: ["aString", "aCanvas"],
  1376. 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'),
  1377. messageSends: ["initializeFromString:canvas:", "yourself", "new"],
  1378. referencedClasses: []
  1379. }),
  1380. smalltalk.TagBrush.klass);
  1381. smalltalk.addMethod(
  1382. unescape('_fromJQuery_canvas_'),
  1383. smalltalk.method({
  1384. selector: unescape('fromJQuery%3Acanvas%3A'),
  1385. category: 'instance creation',
  1386. fn: function (aJQuery, aCanvas){
  1387. var self=this;
  1388. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1389. return self;},
  1390. args: ["aJQuery", "aCanvas"],
  1391. 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'),
  1392. messageSends: ["initializeFromJQuery:canvas:", "yourself", "new"],
  1393. referencedClasses: []
  1394. }),
  1395. smalltalk.TagBrush.klass);
  1396. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  1397. smalltalk.addMethod(
  1398. unescape('_appendToBrush_'),
  1399. smalltalk.method({
  1400. selector: unescape('appendToBrush%3A'),
  1401. category: 'adding',
  1402. fn: function (aTagBrush){
  1403. var self=this;
  1404. smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
  1405. return self;},
  1406. args: ["aTagBrush"],
  1407. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendToJQuery%3A%20aTagBrush%20asJQuery'),
  1408. messageSends: ["appendToJQuery:", "asJQuery"],
  1409. referencedClasses: []
  1410. }),
  1411. smalltalk.Widget);
  1412. smalltalk.addMethod(
  1413. unescape('_appendToJQuery_'),
  1414. smalltalk.method({
  1415. selector: unescape('appendToJQuery%3A'),
  1416. category: 'adding',
  1417. fn: function (aJQuery){
  1418. var self=this;
  1419. smalltalk.send(self, "_renderOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1420. return self;},
  1421. args: ["aJQuery"],
  1422. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20self%20renderOn%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1423. messageSends: ["renderOn:", "onJQuery:"],
  1424. referencedClasses: [smalltalk.HTMLCanvas]
  1425. }),
  1426. smalltalk.Widget);
  1427. smalltalk.addMethod(
  1428. unescape('_renderOn_'),
  1429. smalltalk.method({
  1430. selector: unescape('renderOn%3A'),
  1431. category: 'rendering',
  1432. fn: function (html){
  1433. var self=this;
  1434. self;
  1435. return self;},
  1436. args: ["html"],
  1437. source: unescape('renderOn%3A%20html%0A%20%20%20%20self'),
  1438. messageSends: [],
  1439. referencedClasses: []
  1440. }),
  1441. smalltalk.Widget);
  1442. smalltalk.addMethod(
  1443. unescape('_appendToJQuery_'),
  1444. smalltalk.method({
  1445. selector: unescape('appendToJQuery%3A'),
  1446. category: '*Canvas',
  1447. fn: function (aJQuery){
  1448. var self=this;
  1449. smalltalk.send(aJQuery, "_append_", [smalltalk.send(self, "_asString", [])]);
  1450. return self;},
  1451. args: ["aJQuery"],
  1452. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20append%3A%20self%20asString'),
  1453. messageSends: ["append:", "asString"],
  1454. referencedClasses: []
  1455. }),
  1456. smalltalk.Object);
  1457. smalltalk.addMethod(
  1458. unescape('_appendToBrush_'),
  1459. smalltalk.method({
  1460. selector: unescape('appendToBrush%3A'),
  1461. category: '*Canvas',
  1462. fn: function (aTagBrush){
  1463. var self=this;
  1464. smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
  1465. return self;},
  1466. args: ["aTagBrush"],
  1467. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20append%3A%20self%20asString'),
  1468. messageSends: ["append:", "asString"],
  1469. referencedClasses: []
  1470. }),
  1471. smalltalk.Object);
  1472. smalltalk.addMethod(
  1473. unescape('_appendToJQuery_'),
  1474. smalltalk.method({
  1475. selector: unescape('appendToJQuery%3A'),
  1476. category: '*Canvas',
  1477. fn: function (aJQuery){
  1478. var self=this;
  1479. smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1480. return self;},
  1481. args: ["aJQuery"],
  1482. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20self%20value%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1483. messageSends: ["value:", "onJQuery:"],
  1484. referencedClasses: [smalltalk.HTMLCanvas]
  1485. }),
  1486. smalltalk.BlockClosure);
  1487. smalltalk.addMethod(
  1488. unescape('_appendToBrush_'),
  1489. smalltalk.method({
  1490. selector: unescape('appendToBrush%3A'),
  1491. category: '*Canvas',
  1492. fn: function (aTagBrush){
  1493. var self=this;
  1494. smalltalk.send(aTagBrush, "_appendBlock_", [self]);
  1495. return self;},
  1496. args: ["aTagBrush"],
  1497. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendBlock%3A%20self'),
  1498. messageSends: ["appendBlock:"],
  1499. referencedClasses: []
  1500. }),
  1501. smalltalk.BlockClosure);
  1502. smalltalk.addMethod(
  1503. unescape('_asJQuery'),
  1504. smalltalk.method({
  1505. selector: unescape('asJQuery'),
  1506. category: '*Canvas',
  1507. fn: function (){
  1508. var self=this;
  1509. return jQuery(String(self));
  1510. return self;},
  1511. args: [],
  1512. source: unescape('asJQuery%0A%20%20%20%20%3Creturn%20jQuery%28String%28self%29%29%3E'),
  1513. messageSends: [],
  1514. referencedClasses: []
  1515. }),
  1516. smalltalk.String);
  1517. smalltalk.addMethod(
  1518. unescape('_appendToJQuery_'),
  1519. smalltalk.method({
  1520. selector: unescape('appendToJQuery%3A'),
  1521. category: '*Canvas',
  1522. fn: function (aJQuery){
  1523. var self=this;
  1524. smalltalk.send(aJQuery, "_append_", [self]);
  1525. return self;},
  1526. args: ["aJQuery"],
  1527. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20append%3A%20self'),
  1528. messageSends: ["append:"],
  1529. referencedClasses: []
  1530. }),
  1531. smalltalk.String);
  1532. smalltalk.addMethod(
  1533. unescape('_appendToBrush_'),
  1534. smalltalk.method({
  1535. selector: unescape('appendToBrush%3A'),
  1536. category: '*Canvas',
  1537. fn: function (aTagBrush){
  1538. var self=this;
  1539. smalltalk.send(aTagBrush, "_appendString_", [self]);
  1540. return self;},
  1541. args: ["aTagBrush"],
  1542. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendString%3A%20self'),
  1543. messageSends: ["appendString:"],
  1544. referencedClasses: []
  1545. }),
  1546. smalltalk.String);