Changeset - 1849713b0d73
[Not reviewed]
default
0 3 0
Drew Perttula - 8 years ago 2017-04-30 06:36:28
drewp@bigasterisk.com
light9-simulation element work
Ignore-this: 15f32ba7e7eea283da47fe4c15c93e0
3 files changed with 47 insertions and 21 deletions:
0 comments (0 inline, 0 general)
light9/web/paint/index.html
Show inline comments
 
@@ -16,5 +16,7 @@
 
  <body>
 
    <light9-paint style="position: absolute; left: 0px; top: 0px; width: 1000px; height: 500px">
 
    </light9-paint>
 

	
 

	
 
  </body>
 
</html>
light9/web/paint/paint-elements.coffee
Show inline comments
 
@@ -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
light9/web/paint/paint-elements.html
Show inline comments
 
@@ -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>
0 comments (0 inline, 0 general)