# HG changeset patch # User Drew Perttula # Date 1493534188 0 # Node ID 1849713b0d7319af54aa8228ebaef97cbfe62f33 # Parent a30a73c1255474c059a48cb65acea32b60767c96 light9-simulation element work Ignore-this: 15f32ba7e7eea283da47fe4c15c93e0 diff -r a30a73c12554 -r 1849713b0d73 light9/web/paint/index.html --- a/light9/web/paint/index.html Thu Apr 20 07:18:00 2017 +0000 +++ b/light9/web/paint/index.html Sun Apr 30 06:36:28 2017 +0000 @@ -16,5 +16,7 @@ + + diff -r a30a73c12554 -r 1849713b0d73 light9/web/paint/paint-elements.coffee --- a/light9/web/paint/paint-elements.coffee Thu Apr 20 07:18:00 2017 +0000 +++ b/light9/web/paint/paint-elements.coffee Sun Apr 30 06:36:28 2017 +0000 @@ -30,6 +30,7 @@ behaviors: [ Polymer.IronResizableBehavior ] listeners: 'iron-resize': 'onResize' properties: { + layers: { type: Object } } ready: -> @painting = new Painting() @@ -63,4 +64,17 @@ onResize: (ev) -> @$.paint.attributes.viewBox.value = "0 0 #{ev.target.offsetWidth} 500" - \ No newline at end of file + + +Polymer + is: "light9-simulation" + properties: { + layers: { type: Object } + } + listeners: [ + "onLayers(layers)" + ] + ready: -> + null + onLayers: (layers) -> + log('upd', layers) \ No newline at end of file diff -r a30a73c12554 -r 1849713b0d73 light9/web/paint/paint-elements.html --- a/light9/web/paint/paint-elements.html Thu Apr 20 07:18:00 2017 +0000 +++ b/light9/web/paint/paint-elements.html Sun Apr 30 06:36:28 2017 +0000 @@ -44,30 +44,40 @@ k2="1.01" result="result1" > - + + + + + + +