@@ -1,4 +1,7 @@
1Elm.Graphics = function() {
1Elm.Graphics = function() {
2+ for (this['i'] in Elm.List) {
3+ eval('var ' + this['i'] + ' = Elm.List[this.i];');
2 var JS = Elm.JavaScript;
5 var JS = Elm.JavaScript;
3 var DLeft_0 = ["DLeft"];
6 var DLeft_0 = ["DLeft"];
4 var DRight_1 = ["DRight"];
7 var DRight_1 = ["DRight"];
@@ -156,7 +159,7 @@ Elm.Graphics = function() {
156 var absolute_35 = Absolute_12;
159 var absolute_35 = Absolute_12;
157 var relative_36 = Relative_13;
160 var relative_36 = Relative_13;
158 function newElement_38(e,w,h,o,c,l) { return Element_37(Guid.guid(),e,w,h,o,c,l); }
161 function newElement_38(e,w,h,o,c,l) { return Element_37(Guid.guid(),e,w,h,o,c,l); }
159− function basicNewElement(e,w,h) { return Element_37(Guid.guid(),e,w,h,1,Nothing,Nothing); }
162+ function basicNewElement(e,w,h) { return Element_37(Guid.guid(),e,w,h,1,["Nothing"],["Nothing"]); }
160 var line_76 = Line_75;
163 var line_76 = Line_75;
161 var polygon_79 = Shape_78;
164 var polygon_79 = Shape_78;
162 function sprite_96(src) {
165 function sprite_96(src) {
@@ -212,12 +215,12 @@ Elm.Graphics = function() {
213 function color_51(c) {
216 function color_51(c) {
214 return function(e) {
217 return function(e) {
215− return newElement_38(e[2], e[3], e[4], e[5], Just(c), e[7]);
218+ return newElement_38(e[2], e[3], e[4], e[5], ["Just",c], e[7]);
218 function link(lnk) {
221 function link(lnk) {
219 return function(e) {
222 return function(e) {
220− return newElement_38(e[2], e[3], e[4], e[5], e[6], Just(JS.castStringToJSString(lnk)));
223+ return newElement_38(e[2], e[3], e[4], e[5], e[6], ["Just", JS.castStringToJSString(lnk)]);
223 function widthOf_52(e) { return ~~e[3]; }
226 function widthOf_52(e) { return ~~e[3]; }
@@ -233,7 +236,7 @@ Elm.Graphics = function() {
233 return basicNewElement(EText_39("left")(txt),p[0],p[1])
236 return basicNewElement(EText_39("left")(txt),p[0],p[1])
235 function asText(v) {
238 function asText(v) {
236− var txt = monospace(Value.toText(Value.show(v)));
239+ var txt = Elm.Text.monospace(Value.toText(Value.show(v)));
237 var p = Value.getTextSize(0,0,txt);
240 var p = Value.getTextSize(0,0,txt);
238 return basicNewElement(EText_39("left")(txt),p[0],p[1])
241 return basicNewElement(EText_39("left")(txt),p[0],p[1])
@@ -320,17 +323,17 @@ Elm.Graphics = function() {
321 function above_61(e1_156) {
324 function above_61(e1_156) {
322 return function(e2_157) {
325 return function(e2_157) {
323− return basicNewElement(EFlow_43(DDown_3)(["Cons", e1_156, ["Cons", e2_157, ["Nil"]]]), max(widthOf_52(e1_156))(widthOf_52(e2_157)), heightOf_53(e1_156) + heightOf_53(e2_157))
326+ return basicNewElement(EFlow_43(DDown_3)(["Cons", e1_156, ["Cons", e2_157, ["Nil"]]]), Math.max(widthOf_52(e1_156),widthOf_52(e2_157)), heightOf_53(e1_156) + heightOf_53(e2_157));
326 function below_62(e1_158) {
329 function below_62(e1_158) {
327 return function(e2_159) {
330 return function(e2_159) {
328− return basicNewElement(EFlow_43(DDown_3)(["Cons", e2_159, ["Cons", e1_158, ["Nil"]]]), max(widthOf_52(e1_158))(widthOf_52(e2_159)), heightOf_53(e1_158) + heightOf_53(e2_159))
331+ return basicNewElement(EFlow_43(DDown_3)(["Cons", e2_159, ["Cons", e1_158, ["Nil"]]]), Math.max(widthOf_52(e1_158),widthOf_52(e2_159)), heightOf_53(e1_158) + heightOf_53(e2_159));
331 function beside_63(e1_160) {
334 function beside_63(e1_160) {
332 return function(e2_161) {
335 return function(e2_161) {
333− return basicNewElement(EFlow_43(DRight_1)(["Cons", e1_160, ["Cons", e2_161, ["Nil"]]]), widthOf_52(e1_160) + widthOf_52(e2_161), max(heightOf_53(e1_160))(heightOf_53(e2_161)))
336+ return basicNewElement(EFlow_43(DRight_1)(["Cons", e1_160, ["Cons", e2_161, ["Nil"]]]), widthOf_52(e1_160) + widthOf_52(e2_161), Math.max(heightOf_53(e1_160),heightOf_53(e2_161)));
336 function layers_64(es_162) {
339 function layers_64(es_162) {
@@ -379,7 +382,7 @@ Elm.Graphics = function() {
379 var n_180 = 50;
382 var n_180 = 50;
380 return function() {
383 return function() {
381 function f_181(i_182) {
384 function f_181(i_182) {
382− return["Tuple2", w_177 / 2 * cos(2 * (pi / n_180) * i_182), h_178 / 2 * sin(2 * (pi / n_180) * i_182)]
385+ return["Tuple2", w_177 / 2 * Math.cos(2 * (Math.PI / n_180) * i_182), h_178 / 2 * Math.sin(2 * (Math.PI / n_180) * i_182)];
384 return Shape_78(map(f_181)(function() {
387 return Shape_78(map(f_181)(function() {
385 var lo = 0;
388 var lo = 0;
@@ -404,10 +407,10 @@ Elm.Graphics = function() {
404 return function(r_185) {
407 return function(r_185) {
405 return function(pos_186) {
408 return function(pos_186) {
406 return function() {
409 return function() {
407− var m_187 = toFloat(n_184);
410+ var m_187 = n_184;
408 return function() {
411 return function() {
409 function f_188(i_189) {
412 function f_188(i_189) {
410− return["Tuple2", r_185 * cos(2 * (pi / m_187) * i_189), r_185 * sin(2 * (pi / m_187) * i_189)]
413+ return["Tuple2", r_185 * Math.cos(2 * (Math.PI / m_187) * i_189), r_185 * Math.sin(2 * (Math.PI / m_187) * i_189)];
412 return Shape_78(map(f_188)(function() {
415 return Shape_78(map(f_188)(function() {
413 var lo = 0;
416 var lo = 0;