Canvas.deploy.js 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335
  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. fn: function (aTagBrush){
  8. var self=this;
  9. (self['@root']=aTagBrush);
  10. return self;}
  11. }),
  12. smalltalk.HTMLCanvas);
  13. smalltalk.addMethod(
  14. unescape('_root'),
  15. smalltalk.method({
  16. selector: unescape('root'),
  17. fn: function (){
  18. var self=this;
  19. return self['@root'];
  20. return self;}
  21. }),
  22. smalltalk.HTMLCanvas);
  23. smalltalk.addMethod(
  24. unescape('_with_'),
  25. smalltalk.method({
  26. selector: unescape('with%3A'),
  27. fn: function (anObject){
  28. var self=this;
  29. return smalltalk.send(smalltalk.send(self, "_root", []), "_with_", [anObject]);
  30. return self;}
  31. }),
  32. smalltalk.HTMLCanvas);
  33. smalltalk.addMethod(
  34. unescape('_initialize'),
  35. smalltalk.method({
  36. selector: unescape('initialize'),
  37. fn: function (){
  38. var self=this;
  39. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  40. (($receiver = self['@root']) == nil || $receiver == undefined) ? (function(){return (self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", ["div", self]));})() : $receiver;
  41. return self;}
  42. }),
  43. smalltalk.HTMLCanvas);
  44. smalltalk.addMethod(
  45. unescape('_initializeFromJQuery_'),
  46. smalltalk.method({
  47. selector: unescape('initializeFromJQuery%3A'),
  48. fn: function (aJQuery){
  49. var self=this;
  50. (self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromJQuery_canvas_", [aJQuery, self]));
  51. return self;}
  52. }),
  53. smalltalk.HTMLCanvas);
  54. smalltalk.addMethod(
  55. unescape('_newTag_'),
  56. smalltalk.method({
  57. selector: unescape('newTag%3A'),
  58. fn: function (aString){
  59. var self=this;
  60. return smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", [aString, self]);
  61. return self;}
  62. }),
  63. smalltalk.HTMLCanvas);
  64. smalltalk.addMethod(
  65. unescape('_tag_'),
  66. smalltalk.method({
  67. selector: unescape('tag%3A'),
  68. fn: function (aString){
  69. var self=this;
  70. return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send(self, "_newTag_", [aString])]);
  71. return self;}
  72. }),
  73. smalltalk.HTMLCanvas);
  74. smalltalk.addMethod(
  75. unescape('_h1'),
  76. smalltalk.method({
  77. selector: unescape('h1'),
  78. fn: function (){
  79. var self=this;
  80. return smalltalk.send(self, "_tag_", ["h1"]);
  81. return self;}
  82. }),
  83. smalltalk.HTMLCanvas);
  84. smalltalk.addMethod(
  85. unescape('_h2'),
  86. smalltalk.method({
  87. selector: unescape('h2'),
  88. fn: function (){
  89. var self=this;
  90. return smalltalk.send(self, "_tag_", ["h2"]);
  91. return self;}
  92. }),
  93. smalltalk.HTMLCanvas);
  94. smalltalk.addMethod(
  95. unescape('_h3'),
  96. smalltalk.method({
  97. selector: unescape('h3'),
  98. fn: function (){
  99. var self=this;
  100. return smalltalk.send(self, "_tag_", ["h3"]);
  101. return self;}
  102. }),
  103. smalltalk.HTMLCanvas);
  104. smalltalk.addMethod(
  105. unescape('_h4'),
  106. smalltalk.method({
  107. selector: unescape('h4'),
  108. fn: function (){
  109. var self=this;
  110. return smalltalk.send(self, "_tag_", ["h4"]);
  111. return self;}
  112. }),
  113. smalltalk.HTMLCanvas);
  114. smalltalk.addMethod(
  115. unescape('_h5'),
  116. smalltalk.method({
  117. selector: unescape('h5'),
  118. fn: function (){
  119. var self=this;
  120. return smalltalk.send(self, "_tag_", ["h5"]);
  121. return self;}
  122. }),
  123. smalltalk.HTMLCanvas);
  124. smalltalk.addMethod(
  125. unescape('_h6'),
  126. smalltalk.method({
  127. selector: unescape('h6'),
  128. fn: function (){
  129. var self=this;
  130. return smalltalk.send(self, "_tag_", ["h6"]);
  131. return self;}
  132. }),
  133. smalltalk.HTMLCanvas);
  134. smalltalk.addMethod(
  135. unescape('_p'),
  136. smalltalk.method({
  137. selector: unescape('p'),
  138. fn: function (){
  139. var self=this;
  140. return smalltalk.send(self, "_tag_", ["p"]);
  141. return self;}
  142. }),
  143. smalltalk.HTMLCanvas);
  144. smalltalk.addMethod(
  145. unescape('_div'),
  146. smalltalk.method({
  147. selector: unescape('div'),
  148. fn: function (){
  149. var self=this;
  150. return smalltalk.send(self, "_tag_", ["div"]);
  151. return self;}
  152. }),
  153. smalltalk.HTMLCanvas);
  154. smalltalk.addMethod(
  155. unescape('_span'),
  156. smalltalk.method({
  157. selector: unescape('span'),
  158. fn: function (){
  159. var self=this;
  160. return smalltalk.send(self, "_tag_", ["span"]);
  161. return self;}
  162. }),
  163. smalltalk.HTMLCanvas);
  164. smalltalk.addMethod(
  165. unescape('_img'),
  166. smalltalk.method({
  167. selector: unescape('img'),
  168. fn: function (){
  169. var self=this;
  170. return smalltalk.send(self, "_tag_", ["img"]);
  171. return self;}
  172. }),
  173. smalltalk.HTMLCanvas);
  174. smalltalk.addMethod(
  175. unescape('_ul'),
  176. smalltalk.method({
  177. selector: unescape('ul'),
  178. fn: function (){
  179. var self=this;
  180. return smalltalk.send(self, "_tag_", ["ul"]);
  181. return self;}
  182. }),
  183. smalltalk.HTMLCanvas);
  184. smalltalk.addMethod(
  185. unescape('_ol'),
  186. smalltalk.method({
  187. selector: unescape('ol'),
  188. fn: function (){
  189. var self=this;
  190. return smalltalk.send(self, "_tag_", ["ol"]);
  191. return self;}
  192. }),
  193. smalltalk.HTMLCanvas);
  194. smalltalk.addMethod(
  195. unescape('_li'),
  196. smalltalk.method({
  197. selector: unescape('li'),
  198. fn: function (){
  199. var self=this;
  200. return smalltalk.send(self, "_tag_", ["li"]);
  201. return self;}
  202. }),
  203. smalltalk.HTMLCanvas);
  204. smalltalk.addMethod(
  205. unescape('_table'),
  206. smalltalk.method({
  207. selector: unescape('table'),
  208. fn: function (){
  209. var self=this;
  210. return smalltalk.send(self, "_tag_", ["table"]);
  211. return self;}
  212. }),
  213. smalltalk.HTMLCanvas);
  214. smalltalk.addMethod(
  215. unescape('_tr'),
  216. smalltalk.method({
  217. selector: unescape('tr'),
  218. fn: function (){
  219. var self=this;
  220. return smalltalk.send(self, "_tag_", ["tr"]);
  221. return self;}
  222. }),
  223. smalltalk.HTMLCanvas);
  224. smalltalk.addMethod(
  225. unescape('_td'),
  226. smalltalk.method({
  227. selector: unescape('td'),
  228. fn: function (){
  229. var self=this;
  230. return smalltalk.send(self, "_tag_", ["td"]);
  231. return self;}
  232. }),
  233. smalltalk.HTMLCanvas);
  234. smalltalk.addMethod(
  235. unescape('_th'),
  236. smalltalk.method({
  237. selector: unescape('th'),
  238. fn: function (){
  239. var self=this;
  240. return smalltalk.send(self, "_tag_", ["th"]);
  241. return self;}
  242. }),
  243. smalltalk.HTMLCanvas);
  244. smalltalk.addMethod(
  245. unescape('_form'),
  246. smalltalk.method({
  247. selector: unescape('form'),
  248. fn: function (){
  249. var self=this;
  250. return smalltalk.send(self, "_tag_", ["form"]);
  251. return self;}
  252. }),
  253. smalltalk.HTMLCanvas);
  254. smalltalk.addMethod(
  255. unescape('_input'),
  256. smalltalk.method({
  257. selector: unescape('input'),
  258. fn: function (){
  259. var self=this;
  260. return smalltalk.send(self, "_tag_", ["input"]);
  261. return self;}
  262. }),
  263. smalltalk.HTMLCanvas);
  264. smalltalk.addMethod(
  265. unescape('_button'),
  266. smalltalk.method({
  267. selector: unescape('button'),
  268. fn: function (){
  269. var self=this;
  270. return smalltalk.send(self, "_tag_", ["button"]);
  271. return self;}
  272. }),
  273. smalltalk.HTMLCanvas);
  274. smalltalk.addMethod(
  275. unescape('_select'),
  276. smalltalk.method({
  277. selector: unescape('select'),
  278. fn: function (){
  279. var self=this;
  280. return smalltalk.send(self, "_tag_", ["select"]);
  281. return self;}
  282. }),
  283. smalltalk.HTMLCanvas);
  284. smalltalk.addMethod(
  285. unescape('_option'),
  286. smalltalk.method({
  287. selector: unescape('option'),
  288. fn: function (){
  289. var self=this;
  290. return smalltalk.send(self, "_tag_", ["option"]);
  291. return self;}
  292. }),
  293. smalltalk.HTMLCanvas);
  294. smalltalk.addMethod(
  295. unescape('_textarea'),
  296. smalltalk.method({
  297. selector: unescape('textarea'),
  298. fn: function (){
  299. var self=this;
  300. return smalltalk.send(self, "_tag_", ["textarea"]);
  301. return self;}
  302. }),
  303. smalltalk.HTMLCanvas);
  304. smalltalk.addMethod(
  305. unescape('_a'),
  306. smalltalk.method({
  307. selector: unescape('a'),
  308. fn: function (){
  309. var self=this;
  310. return smalltalk.send(self, "_tag_", ["a"]);
  311. return self;}
  312. }),
  313. smalltalk.HTMLCanvas);
  314. smalltalk.addMethod(
  315. unescape('_canvas'),
  316. smalltalk.method({
  317. selector: unescape('canvas'),
  318. fn: function (){
  319. var self=this;
  320. return smalltalk.send(self, "_tag_", ["canvas"]);
  321. return self;}
  322. }),
  323. smalltalk.HTMLCanvas);
  324. smalltalk.addMethod(
  325. unescape('_pre'),
  326. smalltalk.method({
  327. selector: unescape('pre'),
  328. fn: function (){
  329. var self=this;
  330. return smalltalk.send(self, "_tag_", ["pre"]);
  331. return self;}
  332. }),
  333. smalltalk.HTMLCanvas);
  334. smalltalk.addMethod(
  335. unescape('_code'),
  336. smalltalk.method({
  337. selector: unescape('code'),
  338. fn: function (){
  339. var self=this;
  340. return smalltalk.send(self, "_tag_", ["code"]);
  341. return self;}
  342. }),
  343. smalltalk.HTMLCanvas);
  344. smalltalk.addMethod(
  345. unescape('_br'),
  346. smalltalk.method({
  347. selector: unescape('br'),
  348. fn: function (){
  349. var self=this;
  350. return smalltalk.send(self, "_tag_", ["br"]);
  351. return self;}
  352. }),
  353. smalltalk.HTMLCanvas);
  354. smalltalk.addMethod(
  355. unescape('_script'),
  356. smalltalk.method({
  357. selector: unescape('script'),
  358. fn: function (){
  359. var self=this;
  360. return smalltalk.send(self, "_tag_", ["script"]);
  361. return self;}
  362. }),
  363. smalltalk.HTMLCanvas);
  364. smalltalk.addMethod(
  365. unescape('_link'),
  366. smalltalk.method({
  367. selector: unescape('link'),
  368. fn: function (){
  369. var self=this;
  370. return smalltalk.send(self, "_tag_", ["link"]);
  371. return self;}
  372. }),
  373. smalltalk.HTMLCanvas);
  374. smalltalk.addMethod(
  375. unescape('_style'),
  376. smalltalk.method({
  377. selector: unescape('style'),
  378. fn: function (){
  379. var self=this;
  380. return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send((smalltalk.StyleTag || StyleTag), "_canvas_", [self])]);
  381. return self;}
  382. }),
  383. smalltalk.HTMLCanvas);
  384. smalltalk.addMethod(
  385. unescape('_p_'),
  386. smalltalk.method({
  387. selector: unescape('p%3A'),
  388. fn: function (anObject){
  389. var self=this;
  390. return smalltalk.send(smalltalk.send(self, "_p", []), "_with_", [anObject]);
  391. return self;}
  392. }),
  393. smalltalk.HTMLCanvas);
  394. smalltalk.addMethod(
  395. unescape('_h1_'),
  396. smalltalk.method({
  397. selector: unescape('h1%3A'),
  398. fn: function (anObject){
  399. var self=this;
  400. return smalltalk.send(smalltalk.send(self, "_h1", []), "_with_", [anObject]);
  401. return self;}
  402. }),
  403. smalltalk.HTMLCanvas);
  404. smalltalk.addMethod(
  405. unescape('_iframe'),
  406. smalltalk.method({
  407. selector: unescape('iframe'),
  408. fn: function (){
  409. var self=this;
  410. return smalltalk.send(self, "_tag_", ["iframe"]);
  411. return self;}
  412. }),
  413. smalltalk.HTMLCanvas);
  414. smalltalk.addMethod(
  415. unescape('_iframe_'),
  416. smalltalk.method({
  417. selector: unescape('iframe%3A'),
  418. fn: function (aString){
  419. var self=this;
  420. return smalltalk.send(smalltalk.send(self, "_iframe", []), "_src_", [aString]);
  421. return self;}
  422. }),
  423. smalltalk.HTMLCanvas);
  424. smalltalk.addMethod(
  425. unescape('_h2_'),
  426. smalltalk.method({
  427. selector: unescape('h2%3A'),
  428. fn: function (anObject){
  429. var self=this;
  430. return smalltalk.send(smalltalk.send(self, "_h2", []), "_with_", [anObject]);
  431. return self;}
  432. }),
  433. smalltalk.HTMLCanvas);
  434. smalltalk.addMethod(
  435. unescape('_h3_'),
  436. smalltalk.method({
  437. selector: unescape('h3%3A'),
  438. fn: function (anObject){
  439. var self=this;
  440. return smalltalk.send(smalltalk.send(self, "_h3", []), "_with_", [anObject]);
  441. return self;}
  442. }),
  443. smalltalk.HTMLCanvas);
  444. smalltalk.addMethod(
  445. unescape('_h4_'),
  446. smalltalk.method({
  447. selector: unescape('h4%3A'),
  448. fn: function (anObject){
  449. var self=this;
  450. return smalltalk.send(smalltalk.send(self, "_h4", []), "_with_", [anObject]);
  451. return self;}
  452. }),
  453. smalltalk.HTMLCanvas);
  454. smalltalk.addMethod(
  455. unescape('_h5_'),
  456. smalltalk.method({
  457. selector: unescape('h5%3A'),
  458. fn: function (anObject){
  459. var self=this;
  460. return smalltalk.send(smalltalk.send(self, "_h5", []), "_with_", [anObject]);
  461. return self;}
  462. }),
  463. smalltalk.HTMLCanvas);
  464. smalltalk.addMethod(
  465. unescape('_h6_'),
  466. smalltalk.method({
  467. selector: unescape('h6%3A'),
  468. fn: function (anObject){
  469. var self=this;
  470. return smalltalk.send(smalltalk.send(self, "_h6", []), "_with_", [anObject]);
  471. return self;}
  472. }),
  473. smalltalk.HTMLCanvas);
  474. smalltalk.addMethod(
  475. unescape('_img_'),
  476. smalltalk.method({
  477. selector: unescape('img%3A'),
  478. fn: function (aString){
  479. var self=this;
  480. return smalltalk.send(smalltalk.send(self, "_img", []), "_src_", [aString]);
  481. return self;}
  482. }),
  483. smalltalk.HTMLCanvas);
  484. smalltalk.addMethod(
  485. unescape('_ol_'),
  486. smalltalk.method({
  487. selector: unescape('ol%3A'),
  488. fn: function (anObject){
  489. var self=this;
  490. return smalltalk.send(smalltalk.send(self, "_ol", []), "_with_", [anObject]);
  491. return self;}
  492. }),
  493. smalltalk.HTMLCanvas);
  494. smalltalk.addMethod(
  495. unescape('_li_'),
  496. smalltalk.method({
  497. selector: unescape('li%3A'),
  498. fn: function (anObject){
  499. var self=this;
  500. return smalltalk.send(smalltalk.send(self, "_li", []), "_with_", [anObject]);
  501. return self;}
  502. }),
  503. smalltalk.HTMLCanvas);
  504. smalltalk.addMethod(
  505. unescape('_ul_'),
  506. smalltalk.method({
  507. selector: unescape('ul%3A'),
  508. fn: function (anObject){
  509. var self=this;
  510. return smalltalk.send(smalltalk.send(self, "_ul", []), "_with_", [anObject]);
  511. return self;}
  512. }),
  513. smalltalk.HTMLCanvas);
  514. smalltalk.addMethod(
  515. unescape('_span_'),
  516. smalltalk.method({
  517. selector: unescape('span%3A'),
  518. fn: function (anObject){
  519. var self=this;
  520. return smalltalk.send(smalltalk.send(self, "_span", []), "_with_", [anObject]);
  521. return self;}
  522. }),
  523. smalltalk.HTMLCanvas);
  524. smalltalk.addMethod(
  525. unescape('_style_'),
  526. smalltalk.method({
  527. selector: unescape('style%3A'),
  528. fn: function (aString){
  529. var self=this;
  530. return (function($rec){smalltalk.send($rec, "_with_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_style", []));
  531. return self;}
  532. }),
  533. smalltalk.HTMLCanvas);
  534. smalltalk.addMethod(
  535. unescape('_articles'),
  536. smalltalk.method({
  537. selector: unescape('articles'),
  538. fn: function (){
  539. var self=this;
  540. return smalltalk.send(self, "_tag_", ["articles"]);
  541. return self;}
  542. }),
  543. smalltalk.HTMLCanvas);
  544. smalltalk.addMethod(
  545. unescape('_audio'),
  546. smalltalk.method({
  547. selector: unescape('audio'),
  548. fn: function (){
  549. var self=this;
  550. return smalltalk.send(self, "_tag_", ["audio"]);
  551. return self;}
  552. }),
  553. smalltalk.HTMLCanvas);
  554. smalltalk.addMethod(
  555. unescape('_fieldset'),
  556. smalltalk.method({
  557. selector: unescape('fieldset'),
  558. fn: function (){
  559. var self=this;
  560. return smalltalk.send(self, "_tag_", ["fieldset"]);
  561. return self;}
  562. }),
  563. smalltalk.HTMLCanvas);
  564. smalltalk.addMethod(
  565. unescape('_footer'),
  566. smalltalk.method({
  567. selector: unescape('footer'),
  568. fn: function (){
  569. var self=this;
  570. return smalltalk.send(self, "_tag_", ["footer"]);
  571. return self;}
  572. }),
  573. smalltalk.HTMLCanvas);
  574. smalltalk.addMethod(
  575. unescape('_header'),
  576. smalltalk.method({
  577. selector: unescape('header'),
  578. fn: function (){
  579. var self=this;
  580. return smalltalk.send(self, "_tag_", ["header"]);
  581. return self;}
  582. }),
  583. smalltalk.HTMLCanvas);
  584. smalltalk.addMethod(
  585. unescape('_hr'),
  586. smalltalk.method({
  587. selector: unescape('hr'),
  588. fn: function (){
  589. var self=this;
  590. return smalltalk.send(self, "_tag_", ["hr"]);
  591. return self;}
  592. }),
  593. smalltalk.HTMLCanvas);
  594. smalltalk.addMethod(
  595. unescape('_section'),
  596. smalltalk.method({
  597. selector: unescape('section'),
  598. fn: function (){
  599. var self=this;
  600. return smalltalk.send(self, "_tag_", ["section"]);
  601. return self;}
  602. }),
  603. smalltalk.HTMLCanvas);
  604. smalltalk.addMethod(
  605. unescape('_tbody'),
  606. smalltalk.method({
  607. selector: unescape('tbody'),
  608. fn: function (){
  609. var self=this;
  610. return smalltalk.send(self, "_tag_", ["tbody"]);
  611. return self;}
  612. }),
  613. smalltalk.HTMLCanvas);
  614. smalltalk.addMethod(
  615. unescape('_tfoot'),
  616. smalltalk.method({
  617. selector: unescape('tfoot'),
  618. fn: function (){
  619. var self=this;
  620. return smalltalk.send(self, "_tag_", ["tfoot"]);
  621. return self;}
  622. }),
  623. smalltalk.HTMLCanvas);
  624. smalltalk.addMethod(
  625. unescape('_thead'),
  626. smalltalk.method({
  627. selector: unescape('thead'),
  628. fn: function (){
  629. var self=this;
  630. return smalltalk.send(self, "_tag_", ["thead"]);
  631. return self;}
  632. }),
  633. smalltalk.HTMLCanvas);
  634. smalltalk.addMethod(
  635. unescape('_video'),
  636. smalltalk.method({
  637. selector: unescape('video'),
  638. fn: function (){
  639. var self=this;
  640. return smalltalk.send(self, "_tag_", ["video"]);
  641. return self;}
  642. }),
  643. smalltalk.HTMLCanvas);
  644. smalltalk.addMethod(
  645. unescape('_onJQuery_'),
  646. smalltalk.method({
  647. selector: unescape('onJQuery%3A'),
  648. fn: function (aJQuery){
  649. var self=this;
  650. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
  651. return self;}
  652. }),
  653. smalltalk.HTMLCanvas.klass);
  654. smalltalk.addMethod(
  655. unescape('_isMSIE'),
  656. smalltalk.method({
  657. selector: unescape('isMSIE'),
  658. fn: function (){
  659. var self=this;
  660. return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("msie")]), "_notNil", []);
  661. return self;}
  662. }),
  663. smalltalk.HTMLCanvas.klass);
  664. smalltalk.addMethod(
  665. unescape('_isOpera'),
  666. smalltalk.method({
  667. selector: unescape('isOpera'),
  668. fn: function (){
  669. var self=this;
  670. return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("opera")]), "_notNil", []);
  671. return self;}
  672. }),
  673. smalltalk.HTMLCanvas.klass);
  674. smalltalk.addMethod(
  675. unescape('_isMozilla'),
  676. smalltalk.method({
  677. selector: unescape('isMozilla'),
  678. fn: function (){
  679. var self=this;
  680. return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("mozilla")]), "_notNil", []);
  681. return self;}
  682. }),
  683. smalltalk.HTMLCanvas.klass);
  684. smalltalk.addMethod(
  685. unescape('_isWebkit'),
  686. smalltalk.method({
  687. selector: unescape('isWebkit'),
  688. fn: function (){
  689. var self=this;
  690. return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("webkit")]), "_notNil", []);
  691. return self;}
  692. }),
  693. smalltalk.HTMLCanvas.klass);
  694. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  695. smalltalk.addMethod(
  696. unescape('_element'),
  697. smalltalk.method({
  698. selector: unescape('element'),
  699. fn: function (){
  700. var self=this;
  701. return self['@element'];
  702. return self;}
  703. }),
  704. smalltalk.TagBrush);
  705. smalltalk.addMethod(
  706. unescape('_contents_'),
  707. smalltalk.method({
  708. selector: unescape('contents%3A'),
  709. fn: function (anObject){
  710. var self=this;
  711. (function($rec){smalltalk.send($rec, "_empty", []);return smalltalk.send($rec, "_append_", [anObject]);})(self);
  712. return self;}
  713. }),
  714. smalltalk.TagBrush);
  715. smalltalk.addMethod(
  716. unescape('_addBrush_'),
  717. smalltalk.method({
  718. selector: unescape('addBrush%3A'),
  719. fn: function (aTagBrush){
  720. var self=this;
  721. smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
  722. return aTagBrush;
  723. return self;}
  724. }),
  725. smalltalk.TagBrush);
  726. smalltalk.addMethod(
  727. unescape('_with_'),
  728. smalltalk.method({
  729. selector: unescape('with%3A'),
  730. fn: function (anObject){
  731. var self=this;
  732. smalltalk.send(self, "_append_", [anObject]);
  733. return self;}
  734. }),
  735. smalltalk.TagBrush);
  736. smalltalk.addMethod(
  737. unescape('_append_'),
  738. smalltalk.method({
  739. selector: unescape('append%3A'),
  740. fn: function (anObject){
  741. var self=this;
  742. smalltalk.send(anObject, "_appendToBrush_", [self]);
  743. return self;}
  744. }),
  745. smalltalk.TagBrush);
  746. smalltalk.addMethod(
  747. unescape('_appendToBrush_'),
  748. smalltalk.method({
  749. selector: unescape('appendToBrush%3A'),
  750. fn: function (aTagBrush){
  751. var self=this;
  752. smalltalk.send(aTagBrush, "_addBrush_", [self]);
  753. return self;}
  754. }),
  755. smalltalk.TagBrush);
  756. smalltalk.addMethod(
  757. unescape('_appendBlock_'),
  758. smalltalk.method({
  759. selector: unescape('appendBlock%3A'),
  760. fn: function (aBlock){
  761. var self=this;
  762. var root=nil;
  763. (root=smalltalk.send(self['@canvas'], "_root", []));
  764. smalltalk.send(self['@canvas'], "_root_", [self]);
  765. smalltalk.send(aBlock, "_value_", [self['@canvas']]);
  766. smalltalk.send(self['@canvas'], "_root_", [root]);
  767. return self;}
  768. }),
  769. smalltalk.TagBrush);
  770. smalltalk.addMethod(
  771. unescape('_appendChild_'),
  772. smalltalk.method({
  773. selector: unescape('appendChild%3A'),
  774. fn: function (anElement){
  775. var self=this;
  776. var element=self['@element'];
  777. if (null == element.canHaveChildren || element.canHaveChildren) {
  778. element.appendChild(anElement);
  779. } else {
  780. element.text = String(element.text) + anElement.innerHTML;
  781. } ;
  782. return self;}
  783. }),
  784. smalltalk.TagBrush);
  785. smalltalk.addMethod(
  786. unescape('_appendString_'),
  787. smalltalk.method({
  788. selector: unescape('appendString%3A'),
  789. fn: function (aString){
  790. var self=this;
  791. smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
  792. return self;}
  793. }),
  794. smalltalk.TagBrush);
  795. smalltalk.addMethod(
  796. unescape('_empty'),
  797. smalltalk.method({
  798. selector: unescape('empty'),
  799. fn: function (){
  800. var self=this;
  801. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
  802. return self;}
  803. }),
  804. smalltalk.TagBrush);
  805. smalltalk.addMethod(
  806. unescape('_at_put_'),
  807. smalltalk.method({
  808. selector: unescape('at%3Aput%3A'),
  809. fn: function (aString, aValue){
  810. var self=this;
  811. self['@element'].setAttribute(aString, aValue);
  812. return self;}
  813. }),
  814. smalltalk.TagBrush);
  815. smalltalk.addMethod(
  816. unescape('_removeAt_'),
  817. smalltalk.method({
  818. selector: unescape('removeAt%3A'),
  819. fn: function (aString){
  820. var self=this;
  821. self['@element'].removeAttribute(aString);
  822. return self;}
  823. }),
  824. smalltalk.TagBrush);
  825. smalltalk.addMethod(
  826. unescape('_class_'),
  827. smalltalk.method({
  828. selector: unescape('class%3A'),
  829. fn: function (aString){
  830. var self=this;
  831. self['@element'].className = aString;
  832. return self;}
  833. }),
  834. smalltalk.TagBrush);
  835. smalltalk.addMethod(
  836. unescape('_id_'),
  837. smalltalk.method({
  838. selector: unescape('id%3A'),
  839. fn: function (aString){
  840. var self=this;
  841. smalltalk.send(self, "_at_put_", ["id", aString]);
  842. return self;}
  843. }),
  844. smalltalk.TagBrush);
  845. smalltalk.addMethod(
  846. unescape('_src_'),
  847. smalltalk.method({
  848. selector: unescape('src%3A'),
  849. fn: function (aString){
  850. var self=this;
  851. smalltalk.send(self, "_at_put_", ["src", aString]);
  852. return self;}
  853. }),
  854. smalltalk.TagBrush);
  855. smalltalk.addMethod(
  856. unescape('_href_'),
  857. smalltalk.method({
  858. selector: unescape('href%3A'),
  859. fn: function (aString){
  860. var self=this;
  861. smalltalk.send(self, "_at_put_", ["href", aString]);
  862. return self;}
  863. }),
  864. smalltalk.TagBrush);
  865. smalltalk.addMethod(
  866. unescape('_title_'),
  867. smalltalk.method({
  868. selector: unescape('title%3A'),
  869. fn: function (aString){
  870. var self=this;
  871. smalltalk.send(self, "_at_put_", ["title", aString]);
  872. return self;}
  873. }),
  874. smalltalk.TagBrush);
  875. smalltalk.addMethod(
  876. unescape('_style_'),
  877. smalltalk.method({
  878. selector: unescape('style%3A'),
  879. fn: function (aString){
  880. var self=this;
  881. smalltalk.send(self, "_at_put_", ["style", aString]);
  882. return self;}
  883. }),
  884. smalltalk.TagBrush);
  885. smalltalk.addMethod(
  886. unescape('_type_'),
  887. smalltalk.method({
  888. selector: unescape('type%3A'),
  889. fn: function (aString){
  890. var self=this;
  891. smalltalk.send(self, "_at_put_", ["type", aString]);
  892. return self;}
  893. }),
  894. smalltalk.TagBrush);
  895. smalltalk.addMethod(
  896. unescape('_media_'),
  897. smalltalk.method({
  898. selector: unescape('media%3A'),
  899. fn: function (aString){
  900. var self=this;
  901. smalltalk.send(self, "_at_put_", ["media", aString]);
  902. return self;}
  903. }),
  904. smalltalk.TagBrush);
  905. smalltalk.addMethod(
  906. unescape('_rel_'),
  907. smalltalk.method({
  908. selector: unescape('rel%3A'),
  909. fn: function (aString){
  910. var self=this;
  911. smalltalk.send(self, "_at_put_", ["rel", aString]);
  912. return self;}
  913. }),
  914. smalltalk.TagBrush);
  915. smalltalk.addMethod(
  916. unescape('_width_'),
  917. smalltalk.method({
  918. selector: unescape('width%3A'),
  919. fn: function (aString){
  920. var self=this;
  921. smalltalk.send(self, "_at_put_", ["width", aString]);
  922. return self;}
  923. }),
  924. smalltalk.TagBrush);
  925. smalltalk.addMethod(
  926. unescape('_height_'),
  927. smalltalk.method({
  928. selector: unescape('height%3A'),
  929. fn: function (aString){
  930. var self=this;
  931. smalltalk.send(self, "_at_put_", ["height", aString]);
  932. return self;}
  933. }),
  934. smalltalk.TagBrush);
  935. smalltalk.addMethod(
  936. unescape('_value_'),
  937. smalltalk.method({
  938. selector: unescape('value%3A'),
  939. fn: function (aString){
  940. var self=this;
  941. smalltalk.send(self, "_at_put_", ["value", aString]);
  942. return self;}
  943. }),
  944. smalltalk.TagBrush);
  945. smalltalk.addMethod(
  946. unescape('_asJQuery'),
  947. smalltalk.method({
  948. selector: unescape('asJQuery'),
  949. fn: function (){
  950. var self=this;
  951. return smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(self, "_element", [])]);
  952. return self;}
  953. }),
  954. smalltalk.TagBrush);
  955. smalltalk.addMethod(
  956. unescape('_onKeyDown_'),
  957. smalltalk.method({
  958. selector: unescape('onKeyDown%3A'),
  959. fn: function (aBlock){
  960. var self=this;
  961. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keydown", aBlock]);
  962. return self;}
  963. }),
  964. smalltalk.TagBrush);
  965. smalltalk.addMethod(
  966. unescape('_onKeyPress_'),
  967. smalltalk.method({
  968. selector: unescape('onKeyPress%3A'),
  969. fn: function (aBlock){
  970. var self=this;
  971. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keypress", aBlock]);
  972. return self;}
  973. }),
  974. smalltalk.TagBrush);
  975. smalltalk.addMethod(
  976. unescape('_onKeyUp_'),
  977. smalltalk.method({
  978. selector: unescape('onKeyUp%3A'),
  979. fn: function (aBlock){
  980. var self=this;
  981. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keyup", aBlock]);
  982. return self;}
  983. }),
  984. smalltalk.TagBrush);
  985. smalltalk.addMethod(
  986. unescape('_onFocus_'),
  987. smalltalk.method({
  988. selector: unescape('onFocus%3A'),
  989. fn: function (aBlock){
  990. var self=this;
  991. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focus", aBlock]);
  992. return self;}
  993. }),
  994. smalltalk.TagBrush);
  995. smalltalk.addMethod(
  996. unescape('_onBlur_'),
  997. smalltalk.method({
  998. selector: unescape('onBlur%3A'),
  999. fn: function (aBlock){
  1000. var self=this;
  1001. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["blur", aBlock]);
  1002. return self;}
  1003. }),
  1004. smalltalk.TagBrush);
  1005. smalltalk.addMethod(
  1006. unescape('_onChange_'),
  1007. smalltalk.method({
  1008. selector: unescape('onChange%3A'),
  1009. fn: function (aBlock){
  1010. var self=this;
  1011. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["change", aBlock]);
  1012. return self;}
  1013. }),
  1014. smalltalk.TagBrush);
  1015. smalltalk.addMethod(
  1016. unescape('_onClick_'),
  1017. smalltalk.method({
  1018. selector: unescape('onClick%3A'),
  1019. fn: function (aBlock){
  1020. var self=this;
  1021. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["click", aBlock]);
  1022. return self;}
  1023. }),
  1024. smalltalk.TagBrush);
  1025. smalltalk.addMethod(
  1026. unescape('_initializeFromString_canvas_'),
  1027. smalltalk.method({
  1028. selector: unescape('initializeFromString%3Acanvas%3A'),
  1029. fn: function (aString, aCanvas){
  1030. var self=this;
  1031. (self['@element']=smalltalk.send(self, "_createElementFor_", [aString]));
  1032. (self['@canvas']=aCanvas);
  1033. return self;}
  1034. }),
  1035. smalltalk.TagBrush);
  1036. smalltalk.addMethod(
  1037. unescape('_initializeFromJQuery_canvas_'),
  1038. smalltalk.method({
  1039. selector: unescape('initializeFromJQuery%3Acanvas%3A'),
  1040. fn: function (aJQuery, aCanvas){
  1041. var self=this;
  1042. (self['@element']=smalltalk.send(aJQuery, "_get_", [(0)]));
  1043. (self['@canvas']=aCanvas);
  1044. return self;}
  1045. }),
  1046. smalltalk.TagBrush);
  1047. smalltalk.addMethod(
  1048. unescape('_createElementFor_'),
  1049. smalltalk.method({
  1050. selector: unescape('createElementFor%3A'),
  1051. fn: function (aString){
  1052. var self=this;
  1053. return document.createElement(String(aString));
  1054. return self;}
  1055. }),
  1056. smalltalk.TagBrush);
  1057. smalltalk.addMethod(
  1058. unescape('_createTextNodeFor_'),
  1059. smalltalk.method({
  1060. selector: unescape('createTextNodeFor%3A'),
  1061. fn: function (aString){
  1062. var self=this;
  1063. return document.createTextNode(String(aString));
  1064. return self;}
  1065. }),
  1066. smalltalk.TagBrush);
  1067. smalltalk.addMethod(
  1068. unescape('_fromString_canvas_'),
  1069. smalltalk.method({
  1070. selector: unescape('fromString%3Acanvas%3A'),
  1071. fn: function (aString, aCanvas){
  1072. var self=this;
  1073. return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1074. return self;}
  1075. }),
  1076. smalltalk.TagBrush.klass);
  1077. smalltalk.addMethod(
  1078. unescape('_fromJQuery_canvas_'),
  1079. smalltalk.method({
  1080. selector: unescape('fromJQuery%3Acanvas%3A'),
  1081. fn: function (aJQuery, aCanvas){
  1082. var self=this;
  1083. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1084. return self;}
  1085. }),
  1086. smalltalk.TagBrush.klass);
  1087. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  1088. smalltalk.addMethod(
  1089. unescape('_appendToBrush_'),
  1090. smalltalk.method({
  1091. selector: unescape('appendToBrush%3A'),
  1092. fn: function (aTagBrush){
  1093. var self=this;
  1094. smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
  1095. return self;}
  1096. }),
  1097. smalltalk.Widget);
  1098. smalltalk.addMethod(
  1099. unescape('_appendToJQuery_'),
  1100. smalltalk.method({
  1101. selector: unescape('appendToJQuery%3A'),
  1102. fn: function (aJQuery){
  1103. var self=this;
  1104. smalltalk.send(self, "_renderOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1105. return self;}
  1106. }),
  1107. smalltalk.Widget);
  1108. smalltalk.addMethod(
  1109. unescape('_renderOn_'),
  1110. smalltalk.method({
  1111. selector: unescape('renderOn%3A'),
  1112. fn: function (html){
  1113. var self=this;
  1114. self;
  1115. return self;}
  1116. }),
  1117. smalltalk.Widget);
  1118. smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
  1119. smalltalk.addMethod(
  1120. unescape('_with_'),
  1121. smalltalk.method({
  1122. selector: unescape('with%3A'),
  1123. fn: function (aString){
  1124. var self=this;
  1125. ((($receiver = smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_isMSIE", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_element", []), "_styleSheet", []), "_cssText_", [aString]);})() : (function(){return smalltalk.send(self, "_with_", [aString], smalltalk.TagBrush);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_element", []), "_styleSheet", []), "_cssText_", [aString]);}), (function(){return smalltalk.send(self, "_with_", [aString], smalltalk.TagBrush);})]));
  1126. return self;}
  1127. }),
  1128. smalltalk.StyleTag);
  1129. smalltalk.addMethod(
  1130. unescape('_canvas_'),
  1131. smalltalk.method({
  1132. selector: unescape('canvas%3A'),
  1133. fn: function (aCanvas){
  1134. var self=this;
  1135. return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", ["style", aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1136. return self;}
  1137. }),
  1138. smalltalk.StyleTag.klass);
  1139. smalltalk.addMethod(
  1140. unescape('_appendToJQuery_'),
  1141. smalltalk.method({
  1142. selector: unescape('appendToJQuery%3A'),
  1143. fn: function (aJQuery){
  1144. var self=this;
  1145. smalltalk.send(aJQuery, "_append_", [smalltalk.send(self, "_asString", [])]);
  1146. return self;}
  1147. }),
  1148. smalltalk.Object);
  1149. smalltalk.addMethod(
  1150. unescape('_appendToBrush_'),
  1151. smalltalk.method({
  1152. selector: unescape('appendToBrush%3A'),
  1153. fn: function (aTagBrush){
  1154. var self=this;
  1155. smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
  1156. return self;}
  1157. }),
  1158. smalltalk.Object);
  1159. smalltalk.addMethod(
  1160. unescape('_appendToJQuery_'),
  1161. smalltalk.method({
  1162. selector: unescape('appendToJQuery%3A'),
  1163. fn: function (aJQuery){
  1164. var self=this;
  1165. smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1166. return self;}
  1167. }),
  1168. smalltalk.BlockClosure);
  1169. smalltalk.addMethod(
  1170. unescape('_appendToBrush_'),
  1171. smalltalk.method({
  1172. selector: unescape('appendToBrush%3A'),
  1173. fn: function (aTagBrush){
  1174. var self=this;
  1175. smalltalk.send(aTagBrush, "_appendBlock_", [self]);
  1176. return self;}
  1177. }),
  1178. smalltalk.BlockClosure);
  1179. smalltalk.addMethod(
  1180. unescape('_asJQuery'),
  1181. smalltalk.method({
  1182. selector: unescape('asJQuery'),
  1183. fn: function (){
  1184. var self=this;
  1185. return jQuery(String(self));
  1186. return self;}
  1187. }),
  1188. smalltalk.String);
  1189. smalltalk.addMethod(
  1190. unescape('_appendToJQuery_'),
  1191. smalltalk.method({
  1192. selector: unescape('appendToJQuery%3A'),
  1193. fn: function (aJQuery){
  1194. var self=this;
  1195. smalltalk.send(aJQuery, "_append_", [self]);
  1196. return self;}
  1197. }),
  1198. smalltalk.String);
  1199. smalltalk.addMethod(
  1200. unescape('_appendToBrush_'),
  1201. smalltalk.method({
  1202. selector: unescape('appendToBrush%3A'),
  1203. fn: function (aTagBrush){
  1204. var self=this;
  1205. smalltalk.send(aTagBrush, "_appendString_", [self]);
  1206. return self;}
  1207. }),
  1208. smalltalk.String);