Canvas.js 40 KB

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