diff --git a/light9/web/paint/index.html b/light9/web/paint/index.html --- a/light9/web/paint/index.html +++ b/light9/web/paint/index.html @@ -16,5 +16,7 @@ + + diff --git a/light9/web/paint/paint-elements.coffee b/light9/web/paint/paint-elements.coffee --- a/light9/web/paint/paint-elements.coffee +++ b/light9/web/paint/paint-elements.coffee @@ -30,6 +30,7 @@ Polymer behaviors: [ Polymer.IronResizableBehavior ] listeners: 'iron-resize': 'onResize' properties: { + layers: { type: Object } } ready: -> @painting = new Painting() @@ -63,4 +64,17 @@ Polymer 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 --git a/light9/web/paint/paint-elements.html b/light9/web/paint/paint-elements.html --- a/light9/web/paint/paint-elements.html +++ b/light9/web/paint/paint-elements.html @@ -44,30 +44,40 @@ k2="1.01" result="result1" > - + + + + + + +