Canvas.js 44 KB

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