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