view index.html @ 83:b973d7f95fdf

bake out the stylus to plain css; add this https://ziga-petek.medium.com/using-fonts-in-web-components-6aba251ed4e5 to make fonts work
author drewp@bigasterisk.com
date Wed, 17 Nov 2021 16:42:59 -0800
parents 0c188ed3bcd8
children faf7e432f089
line wrap: on
line source

<!DOCTYPE html>
<html>
  <body>
    <h1>streamed-graph demo</h1>
    <script type="module" src="./build/demo.js"></script>
    
    <template>
        <streamed-graph
          url="http://bang:9075/graph/events"
          expanded="true"
        ></streamed-graph>
      </template>
    

new style:
    <div id="demo"></div>

    <script type="module">
      import { html, render } from 'lit';
      import '../dist/src/graph-view.js';
  
      const title = 'Hello owc World!';
      render(
        html`
          <graph-view .title=${title}>
            some light-dom
          </graph-view>
        `,
        document.querySelector('#demo')
      );
    </script>
  </body>
</html>