Canvas.js 44 KB

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