Canvas.js 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430
  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('_onJQuery_'),
  575. smalltalk.method({
  576. selector: unescape('onJQuery%3A'),
  577. category: 'instance creation',
  578. fn: function (aJQuery){
  579. var self=this;
  580. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
  581. return self;},
  582. args: ["aJQuery"],
  583. source: unescape('onJQuery%3A%20aJQuery%0A%09%5Eself%20basicNew%0A%09%09initializeFromJQuery%3A%20aJQuery%3B%0A%09%09initialize%3B%0A%09%09yourself'),
  584. messageSends: ["initializeFromJQuery:", "initialize", "yourself", "basicNew"],
  585. referencedClasses: []
  586. }),
  587. smalltalk.HTMLCanvas.klass);
  588. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  589. smalltalk.addMethod(
  590. unescape('_element'),
  591. smalltalk.method({
  592. selector: unescape('element'),
  593. category: 'accessing',
  594. fn: function (){
  595. var self=this;
  596. return self['@element'];
  597. return self;},
  598. args: [],
  599. source: unescape('element%0A%20%20%20%20%5Eelement'),
  600. messageSends: [],
  601. referencedClasses: []
  602. }),
  603. smalltalk.TagBrush);
  604. smalltalk.addMethod(
  605. unescape('_contents_'),
  606. smalltalk.method({
  607. selector: unescape('contents%3A'),
  608. category: 'adding',
  609. fn: function (anObject){
  610. var self=this;
  611. (function($rec){smalltalk.send($rec, "_empty", []);return smalltalk.send($rec, "_append_", [anObject]);})(self);
  612. return self;},
  613. args: ["anObject"],
  614. source: unescape('contents%3A%20anObject%0A%20%20%20%20self%20%0A%09empty%3B%0A%20%20%20%09append%3A%20anObject'),
  615. messageSends: ["empty", "append:"],
  616. referencedClasses: []
  617. }),
  618. smalltalk.TagBrush);
  619. smalltalk.addMethod(
  620. unescape('_addBrush_'),
  621. smalltalk.method({
  622. selector: unescape('addBrush%3A'),
  623. category: 'adding',
  624. fn: function (aTagBrush){
  625. var self=this;
  626. smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
  627. return aTagBrush;
  628. return self;},
  629. args: ["aTagBrush"],
  630. source: unescape('addBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendChild%3A%20aTagBrush%20element.%0A%20%20%20%20%5EaTagBrush'),
  631. messageSends: ["appendChild:", "element"],
  632. referencedClasses: []
  633. }),
  634. smalltalk.TagBrush);
  635. smalltalk.addMethod(
  636. unescape('_with_'),
  637. smalltalk.method({
  638. selector: unescape('with%3A'),
  639. category: 'adding',
  640. fn: function (anObject){
  641. var self=this;
  642. smalltalk.send(self, "_append_", [anObject]);
  643. return self;},
  644. args: ["anObject"],
  645. source: unescape('with%3A%20anObject%0A%20%20%20%20self%20append%3A%20anObject'),
  646. messageSends: ["append:"],
  647. referencedClasses: []
  648. }),
  649. smalltalk.TagBrush);
  650. smalltalk.addMethod(
  651. unescape('_append_'),
  652. smalltalk.method({
  653. selector: unescape('append%3A'),
  654. category: 'adding',
  655. fn: function (anObject){
  656. var self=this;
  657. smalltalk.send(anObject, "_appendToBrush_", [self]);
  658. return self;},
  659. args: ["anObject"],
  660. source: unescape('append%3A%20anObject%0A%20%20%20%20anObject%20appendToBrush%3A%20self'),
  661. messageSends: ["appendToBrush:"],
  662. referencedClasses: []
  663. }),
  664. smalltalk.TagBrush);
  665. smalltalk.addMethod(
  666. unescape('_appendToBrush_'),
  667. smalltalk.method({
  668. selector: unescape('appendToBrush%3A'),
  669. category: 'adding',
  670. fn: function (aTagBrush){
  671. var self=this;
  672. smalltalk.send(aTagBrush, "_addBrush_", [self]);
  673. return self;},
  674. args: ["aTagBrush"],
  675. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20addBrush%3A%20self'),
  676. messageSends: ["addBrush:"],
  677. referencedClasses: []
  678. }),
  679. smalltalk.TagBrush);
  680. smalltalk.addMethod(
  681. unescape('_appendBlock_'),
  682. smalltalk.method({
  683. selector: unescape('appendBlock%3A'),
  684. category: 'adding',
  685. fn: function (aBlock){
  686. var self=this;
  687. var root=nil;
  688. root=smalltalk.send(self['@canvas'], "_root", []);
  689. smalltalk.send(self['@canvas'], "_root_", [self]);
  690. smalltalk.send(aBlock, "_value_", [self['@canvas']]);
  691. smalltalk.send(self['@canvas'], "_root_", [root]);
  692. return self;},
  693. args: ["aBlock"],
  694. 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'),
  695. messageSends: ["root", "root:", "value:"],
  696. referencedClasses: []
  697. }),
  698. smalltalk.TagBrush);
  699. smalltalk.addMethod(
  700. unescape('_appendChild_'),
  701. smalltalk.method({
  702. selector: unescape('appendChild%3A'),
  703. category: 'adding',
  704. fn: function (anElement){
  705. var self=this;
  706. var element=self['@element'];
  707. if (null == element.canHaveChildren || element.canHaveChildren) {
  708. element.appendChild(anElement);
  709. } else {
  710. element.text = String(element.text) + anElement.innerHTML;
  711. } ;
  712. return self;},
  713. args: ["anElement"],
  714. 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'),
  715. messageSends: [],
  716. referencedClasses: []
  717. }),
  718. smalltalk.TagBrush);
  719. smalltalk.addMethod(
  720. unescape('_appendString_'),
  721. smalltalk.method({
  722. selector: unescape('appendString%3A'),
  723. category: 'adding',
  724. fn: function (aString){
  725. var self=this;
  726. smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
  727. return self;},
  728. args: ["aString"],
  729. source: unescape('appendString%3A%20aString%0A%20%20%20%20self%20appendChild%3A%20%28self%20createTextNodeFor%3A%20aString%29'),
  730. messageSends: ["appendChild:", "createTextNodeFor:"],
  731. referencedClasses: []
  732. }),
  733. smalltalk.TagBrush);
  734. smalltalk.addMethod(
  735. unescape('_empty'),
  736. smalltalk.method({
  737. selector: unescape('empty'),
  738. category: 'adding',
  739. fn: function (){
  740. var self=this;
  741. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
  742. return self;},
  743. args: [],
  744. source: unescape('empty%0A%09self%20asJQuery%20empty'),
  745. messageSends: ["empty", "asJQuery"],
  746. referencedClasses: []
  747. }),
  748. smalltalk.TagBrush);
  749. smalltalk.addMethod(
  750. unescape('_at_put_'),
  751. smalltalk.method({
  752. selector: unescape('at%3Aput%3A'),
  753. category: 'attributes',
  754. fn: function (aString, aValue){
  755. var self=this;
  756. self['@element'].setAttribute(aString, aValue);
  757. return self;},
  758. args: ["aString", "aValue"],
  759. 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'),
  760. messageSends: [],
  761. referencedClasses: []
  762. }),
  763. smalltalk.TagBrush);
  764. smalltalk.addMethod(
  765. unescape('_removeAt_'),
  766. smalltalk.method({
  767. selector: unescape('removeAt%3A'),
  768. category: 'attributes',
  769. fn: function (aString){
  770. var self=this;
  771. self['@element'].removeAttribute(aString);
  772. return self;},
  773. args: ["aString"],
  774. source: unescape('removeAt%3A%20aString%0A%20%20%20%20%3Cself%5B%27@element%27%5D.removeAttribute%28aString%29%3E'),
  775. messageSends: [],
  776. referencedClasses: []
  777. }),
  778. smalltalk.TagBrush);
  779. smalltalk.addMethod(
  780. unescape('_class_'),
  781. smalltalk.method({
  782. selector: unescape('class%3A'),
  783. category: 'attributes',
  784. fn: function (aString){
  785. var self=this;
  786. smalltalk.send(self, "_at_put_", ["class", aString]);
  787. return self;},
  788. args: ["aString"],
  789. source: unescape('class%3A%20aString%0A%20%20%20%20self%20at%3A%20%27class%27%20put%3A%20aString'),
  790. messageSends: ["at:put:"],
  791. referencedClasses: []
  792. }),
  793. smalltalk.TagBrush);
  794. smalltalk.addMethod(
  795. unescape('_id_'),
  796. smalltalk.method({
  797. selector: unescape('id%3A'),
  798. category: 'attributes',
  799. fn: function (aString){
  800. var self=this;
  801. smalltalk.send(self, "_at_put_", ["id", aString]);
  802. return self;},
  803. args: ["aString"],
  804. source: unescape('id%3A%20aString%0A%20%20%20%20self%20at%3A%20%27id%27%20put%3A%20aString'),
  805. messageSends: ["at:put:"],
  806. referencedClasses: []
  807. }),
  808. smalltalk.TagBrush);
  809. smalltalk.addMethod(
  810. unescape('_src_'),
  811. smalltalk.method({
  812. selector: unescape('src%3A'),
  813. category: 'attributes',
  814. fn: function (aString){
  815. var self=this;
  816. smalltalk.send(self, "_at_put_", ["src", aString]);
  817. return self;},
  818. args: ["aString"],
  819. source: unescape('src%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27src%27%20put%3A%20aString'),
  820. messageSends: ["at:put:"],
  821. referencedClasses: []
  822. }),
  823. smalltalk.TagBrush);
  824. smalltalk.addMethod(
  825. unescape('_href_'),
  826. smalltalk.method({
  827. selector: unescape('href%3A'),
  828. category: 'attributes',
  829. fn: function (aString){
  830. var self=this;
  831. smalltalk.send(self, "_at_put_", ["href", aString]);
  832. return self;},
  833. args: ["aString"],
  834. source: unescape('href%3A%20aString%0A%20%20%20%20self%20at%3A%20%27href%27%20put%3A%20aString'),
  835. messageSends: ["at:put:"],
  836. referencedClasses: []
  837. }),
  838. smalltalk.TagBrush);
  839. smalltalk.addMethod(
  840. unescape('_title_'),
  841. smalltalk.method({
  842. selector: unescape('title%3A'),
  843. category: 'attributes',
  844. fn: function (aString){
  845. var self=this;
  846. smalltalk.send(self, "_at_put_", ["title", aString]);
  847. return self;},
  848. args: ["aString"],
  849. source: unescape('title%3A%20aString%0A%20%20%20%20self%20at%3A%20%27title%27%20put%3A%20aString'),
  850. messageSends: ["at:put:"],
  851. referencedClasses: []
  852. }),
  853. smalltalk.TagBrush);
  854. smalltalk.addMethod(
  855. unescape('_style_'),
  856. smalltalk.method({
  857. selector: unescape('style%3A'),
  858. category: 'attributes',
  859. fn: function (aString){
  860. var self=this;
  861. smalltalk.send(self, "_at_put_", ["style", aString]);
  862. return self;},
  863. args: ["aString"],
  864. source: unescape('style%3A%20aString%0A%20%20%20%20self%20at%3A%20%27style%27%20put%3A%20aString'),
  865. messageSends: ["at:put:"],
  866. referencedClasses: []
  867. }),
  868. smalltalk.TagBrush);
  869. smalltalk.addMethod(
  870. unescape('_type_'),
  871. smalltalk.method({
  872. selector: unescape('type%3A'),
  873. category: 'attributes',
  874. fn: function (aString){
  875. var self=this;
  876. smalltalk.send(self, "_at_put_", ["type", aString]);
  877. return self;},
  878. args: ["aString"],
  879. source: unescape('type%3A%20aString%0A%20%20%20%20self%20at%3A%20%27type%27%20put%3A%20aString'),
  880. messageSends: ["at:put:"],
  881. referencedClasses: []
  882. }),
  883. smalltalk.TagBrush);
  884. smalltalk.addMethod(
  885. unescape('_media_'),
  886. smalltalk.method({
  887. selector: unescape('media%3A'),
  888. category: 'attributes',
  889. fn: function (aString){
  890. var self=this;
  891. smalltalk.send(self, "_at_put_", ["media", aString]);
  892. return self;},
  893. args: ["aString"],
  894. source: unescape('media%3A%20aString%0A%20%20%20%20self%20at%3A%20%27media%27%20put%3A%20aString'),
  895. messageSends: ["at:put:"],
  896. referencedClasses: []
  897. }),
  898. smalltalk.TagBrush);
  899. smalltalk.addMethod(
  900. unescape('_rel_'),
  901. smalltalk.method({
  902. selector: unescape('rel%3A'),
  903. category: 'attributes',
  904. fn: function (aString){
  905. var self=this;
  906. smalltalk.send(self, "_at_put_", ["rel", aString]);
  907. return self;},
  908. args: ["aString"],
  909. source: unescape('rel%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27rel%27%20put%3A%20aString'),
  910. messageSends: ["at:put:"],
  911. referencedClasses: []
  912. }),
  913. smalltalk.TagBrush);
  914. smalltalk.addMethod(
  915. unescape('_asJQuery'),
  916. smalltalk.method({
  917. selector: unescape('asJQuery'),
  918. category: 'converting',
  919. fn: function (){
  920. var self=this;
  921. return smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(self, "_element", [])]);
  922. return self;},
  923. args: [],
  924. source: unescape('asJQuery%0A%20%20%20%20%5Ewindow%20jQuery%3A%20self%20element'),
  925. messageSends: ["jQuery:", "element"],
  926. referencedClasses: []
  927. }),
  928. smalltalk.TagBrush);
  929. smalltalk.addMethod(
  930. unescape('_onKeyDown_'),
  931. smalltalk.method({
  932. selector: unescape('onKeyDown%3A'),
  933. category: 'events',
  934. fn: function (aBlock){
  935. var self=this;
  936. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keydown", aBlock]);
  937. return self;},
  938. args: ["aBlock"],
  939. source: unescape('onKeyDown%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keydown%27%20do%3A%20aBlock'),
  940. messageSends: ["bind:do:", "asJQuery"],
  941. referencedClasses: []
  942. }),
  943. smalltalk.TagBrush);
  944. smalltalk.addMethod(
  945. unescape('_onKeyPress_'),
  946. smalltalk.method({
  947. selector: unescape('onKeyPress%3A'),
  948. category: 'events',
  949. fn: function (aBlock){
  950. var self=this;
  951. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keypress", aBlock]);
  952. return self;},
  953. args: ["aBlock"],
  954. source: unescape('onKeyPress%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keypress%27%20do%3A%20aBlock'),
  955. messageSends: ["bind:do:", "asJQuery"],
  956. referencedClasses: []
  957. }),
  958. smalltalk.TagBrush);
  959. smalltalk.addMethod(
  960. unescape('_onKeyUp_'),
  961. smalltalk.method({
  962. selector: unescape('onKeyUp%3A'),
  963. category: 'events',
  964. fn: function (aBlock){
  965. var self=this;
  966. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keyup", aBlock]);
  967. return self;},
  968. args: ["aBlock"],
  969. source: unescape('onKeyUp%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keyup%27%20do%3A%20aBlock'),
  970. messageSends: ["bind:do:", "asJQuery"],
  971. referencedClasses: []
  972. }),
  973. smalltalk.TagBrush);
  974. smalltalk.addMethod(
  975. unescape('_onFocus_'),
  976. smalltalk.method({
  977. selector: unescape('onFocus%3A'),
  978. category: 'events',
  979. fn: function (aBlock){
  980. var self=this;
  981. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focus", aBlock]);
  982. return self;},
  983. args: ["aBlock"],
  984. source: unescape('onFocus%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27focus%27%20do%3A%20aBlock'),
  985. messageSends: ["bind:do:", "asJQuery"],
  986. referencedClasses: []
  987. }),
  988. smalltalk.TagBrush);
  989. smalltalk.addMethod(
  990. unescape('_onBlur_'),
  991. smalltalk.method({
  992. selector: unescape('onBlur%3A'),
  993. category: 'events',
  994. fn: function (aBlock){
  995. var self=this;
  996. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["blur", aBlock]);
  997. return self;},
  998. args: ["aBlock"],
  999. source: unescape('onBlur%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27blur%27%20do%3A%20aBlock'),
  1000. messageSends: ["bind:do:", "asJQuery"],
  1001. referencedClasses: []
  1002. }),
  1003. smalltalk.TagBrush);
  1004. smalltalk.addMethod(
  1005. unescape('_onChange_'),
  1006. smalltalk.method({
  1007. selector: unescape('onChange%3A'),
  1008. category: 'events',
  1009. fn: function (aBlock){
  1010. var self=this;
  1011. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["change", aBlock]);
  1012. return self;},
  1013. args: ["aBlock"],
  1014. source: unescape('onChange%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27change%27%20do%3A%20aBlock'),
  1015. messageSends: ["bind:do:", "asJQuery"],
  1016. referencedClasses: []
  1017. }),
  1018. smalltalk.TagBrush);
  1019. smalltalk.addMethod(
  1020. unescape('_onClick_'),
  1021. smalltalk.method({
  1022. selector: unescape('onClick%3A'),
  1023. category: 'events',
  1024. fn: function (aBlock){
  1025. var self=this;
  1026. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["click", aBlock]);
  1027. return self;},
  1028. args: ["aBlock"],
  1029. source: unescape('onClick%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27click%27%20do%3A%20aBlock'),
  1030. messageSends: ["bind:do:", "asJQuery"],
  1031. referencedClasses: []
  1032. }),
  1033. smalltalk.TagBrush);
  1034. smalltalk.addMethod(
  1035. unescape('_initializeFromString_canvas_'),
  1036. smalltalk.method({
  1037. selector: unescape('initializeFromString%3Acanvas%3A'),
  1038. category: 'initialization',
  1039. fn: function (aString, aCanvas){
  1040. var self=this;
  1041. self['@element']=smalltalk.send(self, "_createElementFor_", [aString]);
  1042. self['@canvas']=aCanvas;
  1043. return self;},
  1044. args: ["aString", "aCanvas"],
  1045. 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'),
  1046. messageSends: ["createElementFor:"],
  1047. referencedClasses: []
  1048. }),
  1049. smalltalk.TagBrush);
  1050. smalltalk.addMethod(
  1051. unescape('_initializeFromJQuery_canvas_'),
  1052. smalltalk.method({
  1053. selector: unescape('initializeFromJQuery%3Acanvas%3A'),
  1054. category: 'initialization',
  1055. fn: function (aJQuery, aCanvas){
  1056. var self=this;
  1057. self['@element']=smalltalk.send(aJQuery, "_get_", [(0)]);
  1058. self['@canvas']=aCanvas;
  1059. return self;},
  1060. args: ["aJQuery", "aCanvas"],
  1061. 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'),
  1062. messageSends: ["get:"],
  1063. referencedClasses: []
  1064. }),
  1065. smalltalk.TagBrush);
  1066. smalltalk.addMethod(
  1067. unescape('_createElementFor_'),
  1068. smalltalk.method({
  1069. selector: unescape('createElementFor%3A'),
  1070. category: 'private',
  1071. fn: function (aString){
  1072. var self=this;
  1073. return document.createElement(String(aString));
  1074. return self;},
  1075. args: ["aString"],
  1076. source: unescape('createElementFor%3A%20aString%0A%09%3Creturn%20document.createElement%28String%28aString%29%29%3E'),
  1077. messageSends: [],
  1078. referencedClasses: []
  1079. }),
  1080. smalltalk.TagBrush);
  1081. smalltalk.addMethod(
  1082. unescape('_createTextNodeFor_'),
  1083. smalltalk.method({
  1084. selector: unescape('createTextNodeFor%3A'),
  1085. category: 'private',
  1086. fn: function (aString){
  1087. var self=this;
  1088. return document.createTextNode(String(aString));
  1089. return self;},
  1090. args: ["aString"],
  1091. source: unescape('createTextNodeFor%3A%20aString%0A%09%3Creturn%20document.createTextNode%28String%28aString%29%29%3E'),
  1092. messageSends: [],
  1093. referencedClasses: []
  1094. }),
  1095. smalltalk.TagBrush);
  1096. smalltalk.addMethod(
  1097. unescape('_fromString_canvas_'),
  1098. smalltalk.method({
  1099. selector: unescape('fromString%3Acanvas%3A'),
  1100. category: 'instance creation',
  1101. fn: function (aString, aCanvas){
  1102. var self=this;
  1103. return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1104. return self;},
  1105. args: ["aString", "aCanvas"],
  1106. 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'),
  1107. messageSends: ["initializeFromString:canvas:", "yourself", "new"],
  1108. referencedClasses: []
  1109. }),
  1110. smalltalk.TagBrush.klass);
  1111. smalltalk.addMethod(
  1112. unescape('_fromJQuery_canvas_'),
  1113. smalltalk.method({
  1114. selector: unescape('fromJQuery%3Acanvas%3A'),
  1115. category: 'instance creation',
  1116. fn: function (aJQuery, aCanvas){
  1117. var self=this;
  1118. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1119. return self;},
  1120. args: ["aJQuery", "aCanvas"],
  1121. 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'),
  1122. messageSends: ["initializeFromJQuery:canvas:", "yourself", "new"],
  1123. referencedClasses: []
  1124. }),
  1125. smalltalk.TagBrush.klass);
  1126. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  1127. smalltalk.addMethod(
  1128. unescape('_alert_'),
  1129. smalltalk.method({
  1130. selector: unescape('alert%3A'),
  1131. category: 'actions',
  1132. fn: function (aString){
  1133. var self=this;
  1134. alert(aString);
  1135. return self;},
  1136. args: ["aString"],
  1137. source: unescape('alert%3A%20aString%0A%20%20%20%20%3Calert%28aString%29%3E'),
  1138. messageSends: [],
  1139. referencedClasses: []
  1140. }),
  1141. smalltalk.Widget);
  1142. smalltalk.addMethod(
  1143. unescape('_confirm_'),
  1144. smalltalk.method({
  1145. selector: unescape('confirm%3A'),
  1146. category: 'actions',
  1147. fn: function (aString){
  1148. var self=this;
  1149. return window.confirm(aString);
  1150. return self;},
  1151. args: ["aString"],
  1152. source: unescape('confirm%3A%20aString%0A%20%20%20%20%3Creturn%20window.confirm%28aString%29%3E'),
  1153. messageSends: [],
  1154. referencedClasses: []
  1155. }),
  1156. smalltalk.Widget);
  1157. smalltalk.addMethod(
  1158. unescape('_prompt_'),
  1159. smalltalk.method({
  1160. selector: unescape('prompt%3A'),
  1161. category: 'actions',
  1162. fn: function (aString){
  1163. var self=this;
  1164. return smalltalk.send(self, "_prompt_default_", [aString, ""]);
  1165. return self;},
  1166. args: ["aString"],
  1167. source: unescape('prompt%3A%20aString%0A%20%20%20%20%5Eself%20prompt%3A%20aString%20default%3A%20%27%27'),
  1168. messageSends: ["prompt:default:"],
  1169. referencedClasses: []
  1170. }),
  1171. smalltalk.Widget);
  1172. smalltalk.addMethod(
  1173. unescape('_prompt_default_'),
  1174. smalltalk.method({
  1175. selector: unescape('prompt%3Adefault%3A'),
  1176. category: 'actions',
  1177. fn: function (aString, anotherString){
  1178. var self=this;
  1179. return window.prompt(aString, anotherString);
  1180. return self;},
  1181. args: ["aString", "anotherString"],
  1182. source: unescape('prompt%3A%20aString%20default%3A%20anotherString%0A%20%20%20%20%3Creturn%20window.prompt%28aString%2C%20anotherString%29%3E'),
  1183. messageSends: [],
  1184. referencedClasses: []
  1185. }),
  1186. smalltalk.Widget);
  1187. smalltalk.addMethod(
  1188. unescape('_appendToBrush_'),
  1189. smalltalk.method({
  1190. selector: unescape('appendToBrush%3A'),
  1191. category: 'adding',
  1192. fn: function (aTagBrush){
  1193. var self=this;
  1194. smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
  1195. return self;},
  1196. args: ["aTagBrush"],
  1197. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendToJQuery%3A%20aTagBrush%20asJQuery'),
  1198. messageSends: ["appendToJQuery:", "asJQuery"],
  1199. referencedClasses: []
  1200. }),
  1201. smalltalk.Widget);
  1202. smalltalk.addMethod(
  1203. unescape('_appendToJQuery_'),
  1204. smalltalk.method({
  1205. selector: unescape('appendToJQuery%3A'),
  1206. category: 'adding',
  1207. fn: function (aJQuery){
  1208. var self=this;
  1209. smalltalk.send(self, "_renderOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1210. return self;},
  1211. args: ["aJQuery"],
  1212. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20self%20renderOn%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1213. messageSends: ["renderOn:", "onJQuery:"],
  1214. referencedClasses: [smalltalk.HTMLCanvas]
  1215. }),
  1216. smalltalk.Widget);
  1217. smalltalk.addMethod(
  1218. unescape('_renderOn_'),
  1219. smalltalk.method({
  1220. selector: unescape('renderOn%3A'),
  1221. category: 'rendering',
  1222. fn: function (html){
  1223. var self=this;
  1224. self;
  1225. return self;},
  1226. args: ["html"],
  1227. source: unescape('renderOn%3A%20html%0A%20%20%20%20self'),
  1228. messageSends: [],
  1229. referencedClasses: []
  1230. }),
  1231. smalltalk.Widget);
  1232. smalltalk.addMethod(
  1233. unescape('_appendToJQuery_'),
  1234. smalltalk.method({
  1235. selector: unescape('appendToJQuery%3A'),
  1236. category: '*Canvas',
  1237. fn: function (aJQuery){
  1238. var self=this;
  1239. smalltalk.send(aJQuery, "_append_", [smalltalk.send(self, "_asString", [])]);
  1240. return self;},
  1241. args: ["aJQuery"],
  1242. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20append%3A%20self%20asString'),
  1243. messageSends: ["append:", "asString"],
  1244. referencedClasses: []
  1245. }),
  1246. smalltalk.Object);
  1247. smalltalk.addMethod(
  1248. unescape('_appendToBrush_'),
  1249. smalltalk.method({
  1250. selector: unescape('appendToBrush%3A'),
  1251. category: '*Canvas',
  1252. fn: function (aTagBrush){
  1253. var self=this;
  1254. smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
  1255. return self;},
  1256. args: ["aTagBrush"],
  1257. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20append%3A%20self%20asString'),
  1258. messageSends: ["append:", "asString"],
  1259. referencedClasses: []
  1260. }),
  1261. smalltalk.Object);
  1262. smalltalk.addMethod(
  1263. unescape('_appendToJQuery_'),
  1264. smalltalk.method({
  1265. selector: unescape('appendToJQuery%3A'),
  1266. category: '*Canvas',
  1267. fn: function (aJQuery){
  1268. var self=this;
  1269. smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1270. return self;},
  1271. args: ["aJQuery"],
  1272. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20self%20value%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1273. messageSends: ["value:", "onJQuery:"],
  1274. referencedClasses: [smalltalk.HTMLCanvas]
  1275. }),
  1276. smalltalk.BlockClosure);
  1277. smalltalk.addMethod(
  1278. unescape('_appendToBrush_'),
  1279. smalltalk.method({
  1280. selector: unescape('appendToBrush%3A'),
  1281. category: '*Canvas',
  1282. fn: function (aTagBrush){
  1283. var self=this;
  1284. smalltalk.send(aTagBrush, "_appendBlock_", [self]);
  1285. return self;},
  1286. args: ["aTagBrush"],
  1287. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendBlock%3A%20self'),
  1288. messageSends: ["appendBlock:"],
  1289. referencedClasses: []
  1290. }),
  1291. smalltalk.BlockClosure);
  1292. smalltalk.addMethod(
  1293. unescape('_asJQuery'),
  1294. smalltalk.method({
  1295. selector: unescape('asJQuery'),
  1296. category: '*Canvas',
  1297. fn: function (){
  1298. var self=this;
  1299. return jQuery(String(self));
  1300. return self;},
  1301. args: [],
  1302. source: unescape('asJQuery%0A%20%20%20%20%3Creturn%20jQuery%28String%28self%29%29%3E'),
  1303. messageSends: [],
  1304. referencedClasses: []
  1305. }),
  1306. smalltalk.String);
  1307. smalltalk.addMethod(
  1308. unescape('_appendToJQuery_'),
  1309. smalltalk.method({
  1310. selector: unescape('appendToJQuery%3A'),
  1311. category: '*Canvas',
  1312. fn: function (aJQuery){
  1313. var self=this;
  1314. smalltalk.send(aJQuery, "_append_", [self]);
  1315. return self;},
  1316. args: ["aJQuery"],
  1317. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20append%3A%20self'),
  1318. messageSends: ["append:"],
  1319. referencedClasses: []
  1320. }),
  1321. smalltalk.String);
  1322. smalltalk.addMethod(
  1323. unescape('_appendToBrush_'),
  1324. smalltalk.method({
  1325. selector: unescape('appendToBrush%3A'),
  1326. category: '*Canvas',
  1327. fn: function (aTagBrush){
  1328. var self=this;
  1329. smalltalk.send(aTagBrush, "_appendString_", [self]);
  1330. return self;},
  1331. args: ["aTagBrush"],
  1332. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendString%3A%20self'),
  1333. messageSends: ["appendString:"],
  1334. referencedClasses: []
  1335. }),
  1336. smalltalk.String);