123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539 |
- smalltalk.addClass('CanvasRenderingContext', smalltalk.Object, [], 'Canvas');
- smalltalk.addMethod(
- '_fillStyle_',
- smalltalk.method({
- selector: 'fillStyle:',
- category: 'drawing paths',
- fn: function (aString){
- var self=this;
- self.fillStyle = String(aString);
- return self;},
- source: unescape('fillStyle%3A%20aString%0A%09%3Cself.fillStyle%20%3D%20String%28aString%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_beginPath',
- smalltalk.method({
- selector: 'beginPath',
- category: 'drawing paths',
- fn: function (){
- var self=this;
- self.beginPath();
- return self;},
- source: unescape('beginPath%0A%09%3Cself.beginPath%28%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_closePath',
- smalltalk.method({
- selector: 'closePath',
- category: 'drawing paths',
- fn: function (){
- var self=this;
- self.closePath();
- return self;},
- source: unescape('closePath%0A%09%3Cself.closePath%28%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_fill',
- smalltalk.method({
- selector: 'fill',
- category: 'drawing paths',
- fn: function (){
- var self=this;
- self.fill();
- return self;},
- source: unescape('fill%0A%09%3Cself.fill%28%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_stroke',
- smalltalk.method({
- selector: 'stroke',
- category: 'drawing paths',
- fn: function (){
- var self=this;
- self.stroke();
- return self;},
- source: unescape('stroke%0A%09%3Cself.stroke%28%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_moveTo_',
- smalltalk.method({
- selector: 'moveTo:',
- category: 'drawing paths',
- fn: function (aPoint){
- var self=this;
- self.moveTo(aPoint._x(), aPoint._y());
- return self;},
- source: unescape('moveTo%3A%20aPoint%0A%09%3Cself.moveTo%28aPoint._x%28%29%2C%20aPoint._y%28%29%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_lineTo_',
- smalltalk.method({
- selector: 'lineTo:',
- category: 'drawing paths',
- fn: function (aPoint){
- var self=this;
- self.lineTo(aPoint._x(), aPoint._y());
- return self;},
- source: unescape('lineTo%3A%20aPoint%0A%09%3Cself.lineTo%28aPoint._x%28%29%2C%20aPoint._y%28%29%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_arcTo_radius_startAngle_endAngle_anticlockwise_',
- smalltalk.method({
- selector: 'arcTo:radius:startAngle:endAngle:anticlockwise:',
- category: 'drawing arcs',
- fn: function (aPoint, aNumber, aNumber2, aNumber3, aBoolean){
- var self=this;
- self.arc(aPoint._x(), aPoint._y(), aNumber, aNumber2, aNumber3, aBoolean);
- return self;},
- 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'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_arcTo_radius_',
- smalltalk.method({
- selector: 'arcTo:radius:',
- category: 'drawing arcs',
- fn: function (aPoint, aNumber){
- var self=this;
- smalltalk.send(self, "_arcTo_radius_startAngle_endAngle_anticlockwise_", [aPoint, aNumber, (0), smalltalk.send(smalltalk.send(smalltalk.Number, "_pi", []), "__star", [(2)]), false]);
- return self;},
- 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'),
- messageSends: ["arcTo:radius:startAngle:endAngle:anticlockwise:", unescape("*"), "pi"],
- referencedClasses: [smalltalk.Number]
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_fillRectFrom_to_',
- smalltalk.method({
- selector: 'fillRectFrom:to:',
- category: 'drawing rectangles',
- fn: function (aPoint, anotherPoint){
- var self=this;
- self.fillRect(aPoint._x(), aPoint._y(), anotherPoint._x(), anotherPoint._y());
- return self;},
- 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'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_strokeRectFrom_to_',
- smalltalk.method({
- selector: 'strokeRectFrom:to:',
- category: 'drawing rectangles',
- fn: function (aPoint, anotherPoint){
- var self=this;
- self.strokeRect(aPoint._x(), aPoint._y(), anotherPoint._x(), anotherPoint._y());
- return self;},
- 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'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_clearRectFrom_to_',
- smalltalk.method({
- selector: 'clearRectFrom:to:',
- category: 'drawing rectangles',
- fn: function (aPoint, anotherPoint){
- var self=this;
- self.fillRect(aPoint._x(), aPoint._y(), anotherPoint._x(), anotherPoint._y());
- return self;},
- 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'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_strokeStyle_',
- smalltalk.method({
- selector: 'strokeStyle:',
- category: 'drawing paths',
- fn: function (aString){
- var self=this;
- self.strokeStyle = String(aString);
- return self;},
- source: unescape('strokeStyle%3A%20aString%0A%09%3Cself.strokeStyle%20%3D%20String%28aString%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_lineWidth_',
- smalltalk.method({
- selector: 'lineWidth:',
- category: 'drawing paths',
- fn: function (aNumber){
- var self=this;
- self.lineWidth = aNumber;
- return self;},
- source: unescape('lineWidth%3A%20aNumber%0A%09%3Cself.lineWidth%20%3D%20aNumber%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext);
- smalltalk.addMethod(
- '_tagBrush_',
- smalltalk.method({
- selector: 'tagBrush:',
- category: 'instance creation',
- fn: function (aTagBrush){
- var self=this;
- return aTagBrush._element().getContext('2d');
- return self;},
- source: unescape('tagBrush%3A%20aTagBrush%0A%09%3Creturn%20aTagBrush._element%28%29.getContext%28%272d%27%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasRenderingContext.klass);
- smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
- smalltalk.addMethod(
- '_root_',
- smalltalk.method({
- selector: 'root:',
- category: 'accessing',
- fn: function (aTagBrush){
- var self=this;
- self['@root']=aTagBrush;
- return self;},
- source: unescape('root%3A%20aTagBrush%0A%20%20%20%20root%20%3A%3D%20aTagBrush'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_root',
- smalltalk.method({
- selector: 'root',
- category: 'accessing',
- fn: function (){
- var self=this;
- return self['@root'];
- return self;},
- source: unescape('root%0A%20%20%20%20%5Eroot'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_initialize',
- smalltalk.method({
- selector: 'initialize',
- category: 'initialization',
- fn: function (){
- var self=this;
- smalltalk.send(self, "_initialize", [], smalltalk.Object);
- smalltalk.send(self['@root'], "_ifNil_", [(function(){return self['@root']=smalltalk.send(smalltalk.TagBrush, "_fromString_canvas_", ["div", self]);})]);
- return self;},
- 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'),
- messageSends: ["initialize", "ifNil:", "fromString:canvas:"],
- referencedClasses: [smalltalk.nil]
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_with_',
- smalltalk.method({
- selector: 'with:',
- category: 'adding',
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_root", []), "_with_", [anObject]);
- return self;},
- source: unescape('with%3A%20anObject%0A%20%20%20%20%5Eself%20root%20with%3A%20anObject'),
- messageSends: ["with:", "root"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_newTag_',
- smalltalk.method({
- selector: 'newTag:',
- category: 'tags',
- fn: function (aString){
- var self=this;
- return smalltalk.send(smalltalk.TagBrush, "_fromString_canvas_", [aString, self]);
- return self;},
- source: unescape('newTag%3A%20aString%0A%20%20%20%20%5ETagBrush%20fromString%3A%20aString%20canvas%3A%20self'),
- messageSends: ["fromString:canvas:"],
- referencedClasses: [smalltalk.nil]
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_tag_',
- smalltalk.method({
- selector: 'tag:',
- category: 'tags',
- fn: function (aString){
- var self=this;
- return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send(self, "_newTag_", [aString])]);
- return self;},
- source: unescape('tag%3A%20aString%0A%20%20%20%20%5Eroot%20addBrush%3A%20%28self%20newTag%3A%20aString%29'),
- messageSends: ["addBrush:", "newTag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_h1',
- smalltalk.method({
- selector: 'h1',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h1"]);
- return self;},
- source: unescape('h1%0A%20%20%20%20%5Eself%20tag%3A%20%27h1%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_h2',
- smalltalk.method({
- selector: 'h2',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h2"]);
- return self;},
- source: unescape('h2%0A%20%20%20%20%5Eself%20tag%3A%20%27h2%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_h3',
- smalltalk.method({
- selector: 'h3',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h3"]);
- return self;},
- source: unescape('h3%0A%20%20%20%20%5Eself%20tag%3A%20%27h3%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_h4',
- smalltalk.method({
- selector: 'h4',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h4"]);
- return self;},
- source: unescape('h4%0A%20%20%20%20%5Eself%20tag%3A%20%27h4%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_h5',
- smalltalk.method({
- selector: 'h5',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h5"]);
- return self;},
- source: unescape('h5%0A%20%20%20%20%5Eself%20tag%3A%20%27h5%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_h6',
- smalltalk.method({
- selector: 'h6',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h6"]);
- return self;},
- source: unescape('h6%0A%20%20%20%20%5Eself%20tag%3A%20%27h6%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_p',
- smalltalk.method({
- selector: 'p',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["p"]);
- return self;},
- source: unescape('p%0A%20%20%20%20%5Eself%20tag%3A%20%27p%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_div',
- smalltalk.method({
- selector: 'div',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["div"]);
- return self;},
- source: unescape('div%0A%20%20%20%20%5Eself%20tag%3A%20%27div%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_span',
- smalltalk.method({
- selector: 'span',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["span"]);
- return self;},
- source: unescape('span%0A%20%20%20%20%5Eself%20tag%3A%20%27span%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_img',
- smalltalk.method({
- selector: 'img',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["img"]);
- return self;},
- source: unescape('img%0A%20%20%20%20%5Eself%20tag%3A%20%27img%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_ul',
- smalltalk.method({
- selector: 'ul',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["ul"]);
- return self;},
- source: unescape('ul%0A%20%20%20%20%5Eself%20tag%3A%20%27ul%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_ol',
- smalltalk.method({
- selector: 'ol',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["ol"]);
- return self;},
- source: unescape('ol%0A%20%20%20%20%5Eself%20tag%3A%20%27ol%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_li',
- smalltalk.method({
- selector: 'li',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["li"]);
- return self;},
- source: unescape('li%0A%20%20%20%20%5Eself%20tag%3A%20%27li%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_table',
- smalltalk.method({
- selector: 'table',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["table"]);
- return self;},
- source: unescape('table%0A%20%20%20%20%5Eself%20tag%3A%20%27table%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_tr',
- smalltalk.method({
- selector: 'tr',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["tr"]);
- return self;},
- source: unescape('tr%0A%20%20%20%20%5Eself%20tag%3A%20%27tr%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_td',
- smalltalk.method({
- selector: 'td',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["td"]);
- return self;},
- source: unescape('td%20%0A%20%20%20%20%5Eself%20tag%3A%20%27td%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_th',
- smalltalk.method({
- selector: 'th',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["th"]);
- return self;},
- source: unescape('th%0A%20%20%20%20%5Eself%20tag%3A%20%27th%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_form',
- smalltalk.method({
- selector: 'form',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["form"]);
- return self;},
- source: unescape('form%0A%20%20%20%20%5Eself%20tag%3A%20%27form%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_input',
- smalltalk.method({
- selector: 'input',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["input"]);
- return self;},
- source: unescape('input%0A%20%20%20%20%5Eself%20tag%3A%20%27input%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_button',
- smalltalk.method({
- selector: 'button',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["button"]);
- return self;},
- source: unescape('button%0A%20%20%20%20%5Eself%20tag%3A%20%27button%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_select',
- smalltalk.method({
- selector: 'select',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["select"]);
- return self;},
- source: unescape('select%0A%20%20%20%20%5Eself%20tag%3A%20%27select%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_option',
- smalltalk.method({
- selector: 'option',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["option"]);
- return self;},
- source: unescape('option%0A%20%20%20%20%5Eself%20tag%3A%20%27option%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_textarea',
- smalltalk.method({
- selector: 'textarea',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["textarea"]);
- return self;},
- source: unescape('textarea%0A%20%20%20%20%5Eself%20tag%3A%20%27textarea%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_a',
- smalltalk.method({
- selector: 'a',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["a"]);
- return self;},
- source: unescape('a%0A%20%20%20%20%5Eself%20tag%3A%20%27a%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_canvas',
- smalltalk.method({
- selector: 'canvas',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["canvas"]);
- return self;},
- source: unescape('canvas%0A%09%5Eself%20tag%3A%20%27canvas%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_initializeFromJQuery_',
- smalltalk.method({
- selector: 'initializeFromJQuery:',
- category: 'initialization',
- fn: function (aJQuery){
- var self=this;
- self['@root']=smalltalk.send(smalltalk.TagBrush, "_fromJQuery_canvas_", [aJQuery, self]);
- return self;},
- source: unescape('initializeFromJQuery%3A%20aJQuery%0A%20%20%20%20root%20%3A%3D%20TagBrush%20fromJQuery%3A%20aJQuery%20canvas%3A%20self'),
- messageSends: ["fromJQuery:canvas:"],
- referencedClasses: [smalltalk.nil]
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_pre',
- smalltalk.method({
- selector: 'pre',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["pre"]);
- return self;},
- source: unescape('pre%0A%20%20%20%20%5Eself%20tag%3A%20%27pre%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_code',
- smalltalk.method({
- selector: 'code',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["code"]);
- return self;},
- source: unescape('code%0A%20%20%20%20%5Eself%20tag%3A%20%27code%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_br',
- smalltalk.method({
- selector: 'br',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["br"]);
- return self;},
- source: unescape('br%0A%20%20%20%20%5Eself%20tag%3A%20%27br%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_script',
- smalltalk.method({
- selector: 'script',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["script"]);
- return self;},
- source: unescape('script%0A%20%20%20%20%5Eself%20tag%3A%20%27script%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_link',
- smalltalk.method({
- selector: 'link',
- category: 'tags',
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["link"]);
- return self;},
- source: unescape('link%0A%20%20%20%20%5Eself%20tag%3A%20%27link%27'),
- messageSends: ["tag:"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- '_onJQuery_',
- smalltalk.method({
- selector: 'onJQuery:',
- category: 'instance creation',
- fn: function (aJQuery){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
- return self;},
- source: unescape('onJQuery%3A%20aJQuery%0A%09%5Eself%20basicNew%0A%09%09initializeFromJQuery%3A%20aJQuery%3B%0A%09%09initialize%3B%0A%09%09yourself'),
- messageSends: ["initializeFromJQuery:", "initialize", "yourself", "basicNew"],
- referencedClasses: []
- }),
- smalltalk.HTMLCanvas.klass);
- smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
- smalltalk.addMethod(
- '_contents_',
- smalltalk.method({
- selector: 'contents:',
- category: 'adding',
- fn: function (anObject){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
- smalltalk.send(self, "_append_", [anObject]);
- return self;},
- source: unescape('contents%3A%20anObject%0A%20%20%20%20self%20asJQuery%20empty.%0A%20%20%20%20self%20append%3A%20anObject'),
- messageSends: ["empty", "asJQuery", "append:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_addBrush_',
- smalltalk.method({
- selector: 'addBrush:',
- category: 'adding',
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
- return aTagBrush;
- return self;},
- source: unescape('addBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendChild%3A%20aTagBrush%20element.%0A%20%20%20%20%5EaTagBrush'),
- messageSends: ["appendChild:", "element"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_with_',
- smalltalk.method({
- selector: 'with:',
- category: 'adding',
- fn: function (anObject){
- var self=this;
- smalltalk.send(self, "_append_", [anObject]);
- return self;},
- source: unescape('with%3A%20anObject%0A%20%20%20%20self%20append%3A%20anObject'),
- messageSends: ["append:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_append_',
- smalltalk.method({
- selector: 'append:',
- category: 'adding',
- fn: function (anObject){
- var self=this;
- smalltalk.send(anObject, "_appendToBrush_", [self]);
- return self;},
- source: unescape('append%3A%20anObject%0A%20%20%20%20anObject%20appendToBrush%3A%20self'),
- messageSends: ["appendToBrush:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_appendToBrush_',
- smalltalk.method({
- selector: 'appendToBrush:',
- category: 'adding',
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(aTagBrush, "_addBrush_", [self]);
- return self;},
- source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20addBrush%3A%20self'),
- messageSends: ["addBrush:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_appendBlock_',
- smalltalk.method({
- selector: 'appendBlock:',
- category: 'adding',
- fn: function (aBlock){
- var self=this;
- var root=nil;
- root=smalltalk.send(self['@canvas'], "_root", []);
- smalltalk.send(self['@canvas'], "_root_", [self]);
- smalltalk.send(aBlock, "_value_", [self['@canvas']]);
- smalltalk.send(self['@canvas'], "_root_", [root]);
- return self;},
- 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'),
- messageSends: ["root", "root:", "value:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_appendChild_',
- smalltalk.method({
- selector: 'appendChild:',
- category: 'adding',
- fn: function (anElement){
- var self=this;
- self['@element'].appendChild(anElement);
- return self;},
- source: unescape('appendChild%3A%20anElement%0A%20%20%20%20%3Cself%5B%27@element%27%5D.appendChild%28anElement%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_appendString_',
- smalltalk.method({
- selector: 'appendString:',
- category: 'adding',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
- return self;},
- source: unescape('appendString%3A%20aString%0A%20%20%20%20self%20appendChild%3A%20%28self%20createTextNodeFor%3A%20aString%29'),
- messageSends: ["appendChild:", "createTextNodeFor:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_at_put_',
- smalltalk.method({
- selector: 'at:put:',
- category: 'attributes',
- fn: function (aString, aValue){
- var self=this;
- self['@element'].setAttribute(aString, aValue);
- return self;},
- 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'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_removeAt_',
- smalltalk.method({
- selector: 'removeAt:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- self['@element'].removeAttribute(aString);
- return self;},
- source: unescape('removeAt%3A%20aString%0A%20%20%20%20%3Cself%5B%27@element%27%5D.removeAttribute%28aString%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_class_',
- smalltalk.method({
- selector: 'class:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["class", aString]);
- return self;},
- source: unescape('class%3A%20aString%0A%20%20%20%20self%20at%3A%20%27class%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_id_',
- smalltalk.method({
- selector: 'id:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["id", aString]);
- return self;},
- source: unescape('id%3A%20aString%0A%20%20%20%20self%20at%3A%20%27id%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_src_',
- smalltalk.method({
- selector: 'src:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["src", aString]);
- return self;},
- source: unescape('src%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27src%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_href_',
- smalltalk.method({
- selector: 'href:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["href", aString]);
- return self;},
- source: unescape('href%3A%20aString%0A%20%20%20%20self%20at%3A%20%27href%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_title_',
- smalltalk.method({
- selector: 'title:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["title", aString]);
- return self;},
- source: unescape('title%3A%20aString%0A%20%20%20%20self%20at%3A%20%27title%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_style_',
- smalltalk.method({
- selector: 'style:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["style", aString]);
- return self;},
- source: unescape('style%3A%20aString%0A%20%20%20%20self%20at%3A%20%27style%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_initializeFromString_canvas_',
- smalltalk.method({
- selector: 'initializeFromString:canvas:',
- category: 'initialization',
- fn: function (aString, aCanvas){
- var self=this;
- self['@element']=smalltalk.send(self, "_createElementFor_", [aString]);
- self['@canvas']=aCanvas;
- return self;},
- 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'),
- messageSends: ["createElementFor:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_element',
- smalltalk.method({
- selector: 'element',
- category: 'accessing',
- fn: function (){
- var self=this;
- return self['@element'];
- return self;},
- source: unescape('element%0A%20%20%20%20%5Eelement'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_asJQuery',
- smalltalk.method({
- selector: 'asJQuery',
- category: 'converting',
- fn: function (){
- var self=this;
- return smalltalk.JQuery._from_(jQuery(self['@element']));
- return self;},
- source: unescape('asJQuery%0A%09%3Creturn%20smalltalk.JQuery._from_%28jQuery%28self%5B%27@element%27%5D%29%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_asJQueryDo_',
- smalltalk.method({
- selector: 'asJQueryDo:',
- category: 'converting',
- fn: function (aBlock){
- var self=this;
- smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_asJQuery", [])]);
- return self;},
- source: unescape('asJQueryDo%3A%20aBlock%0A%20%20%20%20aBlock%20value%3A%20self%20asJQuery'),
- messageSends: ["value:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_onKeyDown_',
- smalltalk.method({
- selector: 'onKeyDown:',
- category: 'events',
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["keydown", aBlock]);
- return self;},
- source: unescape('onKeyDown%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27keydown%27%20do%3A%20aBlock'),
- messageSends: ["on:do:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_onKeyPress_',
- smalltalk.method({
- selector: 'onKeyPress:',
- category: 'events',
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["keypress", aBlock]);
- return self;},
- source: unescape('onKeyPress%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27keypress%27%20do%3A%20aBlock'),
- messageSends: ["on:do:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_onKeyUp_',
- smalltalk.method({
- selector: 'onKeyUp:',
- category: 'events',
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["keyup", aBlock]);
- return self;},
- source: unescape('onKeyUp%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27keyup%27%20do%3A%20aBlock'),
- messageSends: ["on:do:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_onFocus_',
- smalltalk.method({
- selector: 'onFocus:',
- category: 'events',
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["focus", aBlock]);
- return self;},
- source: unescape('onFocus%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27focus%27%20do%3A%20aBlock'),
- messageSends: ["on:do:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_onBlur_',
- smalltalk.method({
- selector: 'onBlur:',
- category: 'events',
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["blur", aBlock]);
- return self;},
- source: unescape('onBlur%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27blur%27%20do%3A%20aBlock'),
- messageSends: ["on:do:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_onChange_',
- smalltalk.method({
- selector: 'onChange:',
- category: 'events',
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["change", aBlock]);
- return self;},
- source: unescape('onChange%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27change%27%20do%3A%20aBlock'),
- messageSends: ["on:do:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_onClick_',
- smalltalk.method({
- selector: 'onClick:',
- category: 'events',
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["click", aBlock]);
- return self;},
- source: unescape('onClick%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27click%27%20do%3A%20aBlock'),
- messageSends: ["on:do:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_createElementFor_',
- smalltalk.method({
- selector: 'createElementFor:',
- category: 'private',
- fn: function (aString){
- var self=this;
- return document.createElement(String(aString));
- return self;},
- source: unescape('createElementFor%3A%20aString%0A%09%3Creturn%20document.createElement%28String%28aString%29%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_createTextNodeFor_',
- smalltalk.method({
- selector: 'createTextNodeFor:',
- category: 'private',
- fn: function (aString){
- var self=this;
- return document.createTextNode(String(aString));
- return self;},
- source: unescape('createTextNodeFor%3A%20aString%0A%09%3Creturn%20document.createTextNode%28String%28aString%29%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_initializeFromJQuery_canvas_',
- smalltalk.method({
- selector: 'initializeFromJQuery:canvas:',
- category: 'initialization',
- fn: function (aJQuery, aCanvas){
- var self=this;
- self['@element']=smalltalk.send(smalltalk.send(aJQuery, "_jquery", []), "_get_", [(0)]);
- self['@canvas']=aCanvas;
- return self;},
- 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'),
- messageSends: ["get:", "jquery"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_type_',
- smalltalk.method({
- selector: 'type:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["type", aString]);
- return self;},
- source: unescape('type%3A%20aString%0A%20%20%20%20self%20at%3A%20%27type%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_media_',
- smalltalk.method({
- selector: 'media:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["media", aString]);
- return self;},
- source: unescape('media%3A%20aString%0A%20%20%20%20self%20at%3A%20%27media%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_rel_',
- smalltalk.method({
- selector: 'rel:',
- category: 'attributes',
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["rel", aString]);
- return self;},
- source: unescape('rel%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27rel%27%20put%3A%20aString'),
- messageSends: ["at:put:"],
- referencedClasses: []
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- '_fromString_canvas_',
- smalltalk.method({
- selector: 'fromString:canvas:',
- category: 'instance creation',
- fn: function (aString, aCanvas){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
- return self;},
- 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'),
- messageSends: ["initializeFromString:canvas:", "yourself", "new"],
- referencedClasses: []
- }),
- smalltalk.TagBrush.klass);
- smalltalk.addMethod(
- '_fromJQuery_canvas_',
- smalltalk.method({
- selector: 'fromJQuery:canvas:',
- category: 'instance creation',
- fn: function (aJQuery, aCanvas){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
- return self;},
- 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'),
- messageSends: ["initializeFromJQuery:canvas:", "yourself", "new"],
- referencedClasses: []
- }),
- smalltalk.TagBrush.klass);
- smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
- smalltalk.addMethod(
- '_appendToBrush_',
- smalltalk.method({
- selector: 'appendToBrush:',
- category: 'adding',
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
- return self;},
- source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendToJQuery%3A%20aTagBrush%20asJQuery'),
- messageSends: ["appendToJQuery:", "asJQuery"],
- referencedClasses: []
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- '_appendToJQuery_',
- smalltalk.method({
- selector: 'appendToJQuery:',
- category: 'adding',
- fn: function (aJQuery){
- var self=this;
- smalltalk.send(self, "_renderOn_", [smalltalk.send(smalltalk.HTMLCanvas, "_onJQuery_", [aJQuery])]);
- return self;},
- source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20self%20renderOn%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
- messageSends: ["renderOn:", "onJQuery:"],
- referencedClasses: [smalltalk.HTMLCanvas]
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- '_alert_',
- smalltalk.method({
- selector: 'alert:',
- category: 'actions',
- fn: function (aString){
- var self=this;
- alert(aString);
- return self;},
- source: unescape('alert%3A%20aString%0A%20%20%20%20%3Calert%28aString%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- '_confirm_',
- smalltalk.method({
- selector: 'confirm:',
- category: 'actions',
- fn: function (aString){
- var self=this;
- return window.confirm(aString);
- return self;},
- source: unescape('confirm%3A%20aString%0A%20%20%20%20%3Creturn%20window.confirm%28aString%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- '_prompt_',
- smalltalk.method({
- selector: 'prompt:',
- category: 'actions',
- fn: function (aString){
- var self=this;
- return smalltalk.send(self, "_prompt_default_", [aString, ""]);
- return self;},
- source: unescape('prompt%3A%20aString%0A%20%20%20%20%5Eself%20prompt%3A%20aString%20default%3A%20%27%27'),
- messageSends: ["prompt:default:"],
- referencedClasses: []
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- '_prompt_default_',
- smalltalk.method({
- selector: 'prompt:default:',
- category: 'actions',
- fn: function (aString, anotherString){
- var self=this;
- return window.prompt(aString, anotherString);
- return self;},
- source: unescape('prompt%3A%20aString%20default%3A%20anotherString%0A%20%20%20%20%3Creturn%20window.prompt%28aString%2C%20anotherString%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- '_renderOn_',
- smalltalk.method({
- selector: 'renderOn:',
- category: 'rendering',
- fn: function (html){
- var self=this;
- self;
- return self;},
- source: unescape('renderOn%3A%20html%0A%20%20%20%20self'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.Widget);
- smalltalk.addClass('CanvasBrush', smalltalk.TagBrush, [], 'Canvas');
- smalltalk.addMethod(
- '_createElement',
- smalltalk.method({
- selector: 'createElement',
- category: 'private',
- fn: function (){
- var self=this;
- return document.createElement('canvas');
- return self;},
- source: unescape('createElement%0A%09%3Creturn%20document.createElement%28%27canvas%27%29%3E'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasBrush);
- smalltalk.addMethod(
- '_initializeWithCanvas_',
- smalltalk.method({
- selector: 'initializeWithCanvas:',
- category: 'initialization',
- fn: function (aCanvas){
- var self=this;
- canvas=aCanvas;
- return self;},
- source: unescape('initializeWithCanvas%3A%20aCanvas%0A%09canvas%20%3A%3D%20aCanvas'),
- messageSends: [],
- referencedClasses: []
- }),
- smalltalk.CanvasBrush);
- smalltalk.addMethod(
- '_canvas_',
- smalltalk.method({
- selector: 'canvas:',
- category: 'instance creation',
- fn: function (aCanvas){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_initializeWithCanvas_", [aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
- return self;},
- source: unescape('canvas%3A%20aCanvas%0A%09%5Eself%20new%0A%09%09initializeWithCanvas%3A%20aCanvas%3B%0A%09%09yourself'),
- messageSends: ["initializeWithCanvas:", "yourself", "new"],
- referencedClasses: []
- }),
- smalltalk.CanvasBrush.klass);
- smalltalk.addMethod(
- '_appendToBrush_',
- smalltalk.method({
- selector: 'appendToBrush:',
- category: '*Canvas',
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
- return self;},
- source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20append%3A%20self%20asString'),
- messageSends: ["append:", "asString"],
- referencedClasses: []
- }),
- smalltalk.Object);
- smalltalk.addMethod(
- '_appendToBrush_',
- smalltalk.method({
- selector: 'appendToBrush:',
- category: '*Canvas',
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(aTagBrush, "_appendBlock_", [self]);
- return self;},
- source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendBlock%3A%20self'),
- messageSends: ["appendBlock:"],
- referencedClasses: []
- }),
- smalltalk.BlockClosure);
- smalltalk.addMethod(
- '_appendToBrush_',
- smalltalk.method({
- selector: 'appendToBrush:',
- category: '*Canvas',
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(aTagBrush, "_appendString_", [self]);
- return self;},
- source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendString%3A%20self'),
- messageSends: ["appendString:"],
- referencedClasses: []
- }),
- smalltalk.String);
|