on 564cf4e help sign in
23 lines 710 B history raw
1Elm.Native.Graphics.Collage = {};
2Elm.Native.Graphics.Collage.make = function(elm) {
4 elm.Native = elm.Native || {};
5 elm.Native.Graphics = elm.Native.Graphics || {};
6 elm.Native.Graphics.Collage = elm.Native.Graphics.Collage || {};
7 if (elm.Native.Graphics.Collage.values) return elm.Native.Graphics.Collage.values;
9 var newElement = Elm.Graphics.Element.make(elm).newElement;
10 var C = ElmRuntime.use(ElmRuntime.Render.Collage);
12 function collage(w,h,forms) {
13 return A3(newElement, w, h, {
14 ctor: 'Custom',
15 type: 'Collage',
16 render: C.render,
17 update: C.update,
18 model: {w:w, h:h, forms:forms}
19 });
20 }
21 return elm.Native.Graphics.Collage.values = { collage:F3(collage) };
23};