changeset 1525:1849713b0d73

light9-simulation element work Ignore-this: 15f32ba7e7eea283da47fe4c15c93e0
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 30 Apr 2017 06:36:28 +0000
parents a30a73c12554
children 71b9467cfaa2
files light9/web/paint/index.html light9/web/paint/paint-elements.coffee light9/web/paint/paint-elements.html
diffstat 3 files changed, 47 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
   <body>
     <light9-paint style="position: absolute; left: 0px; top: 0px; width: 1000px; height: 500px">
     </light9-paint>
+
+
   </body>
 </html>
--- 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
--- 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"
             ></feGaussianBlur>
-          <!--   <feMorphology
-                in="result1"
-                operator="dilate"
-                radius="3.39"
-                result="result3"
-            ></feMorphology>
-            <feMorphology
-                in="result1"
-                radius="3.37"
-                result="result2"
-            ></feMorphology>
-            <feComposite
-                in="result3"
-                in2="result2"
-                operator="arithmetic"
-                k1="0"
-                k2="1.00"
-                k3="0.43"
-                k4="0"
-            ></feComposite> -->
+            <!--   <feMorphology
+                 in="result1"
+                 operator="dilate"
+                 radius="3.39"
+                 result="result3"
+                 ></feMorphology>
+                 <feMorphology
+                 in="result1"
+                 radius="3.37"
+                 result="result2"
+                 ></feMorphology>
+                 <feComposite
+                 in="result3"
+                 in2="result2"
+                 operator="arithmetic"
+                 k1="0"
+                 k2="1.00"
+                 k3="0.43"
+                 k4="0"
+                 ></feComposite> -->
           </filter>
         </defs>
       </svg>
     </div>
+    <light9-simulation layers="{{layers}}"></light9-simulation>
   </template>
 </dom-module>
+
+<dom-module id="light9-simulation">
+  <template>
+    <style>
+    </style>
+    <div>sim</div>
+  </template>
+</dom-module>
+
 <script src="paint-elements.js"></script>