@nxtedition/graphics

git clone git@github.com:nxtedition/nxt-graphics - git remote set-url origin https://github.com/USERNAME/REPOSITORY.git - modify package.json - run yarn or npm i

Usage no npm install needed!

<script type="module">
  import nxteditionGraphics from 'https://cdn.skypack.dev/@nxtedition/graphics';
</script>

README

nxt-graphics

Setup new project

  • git clone git@github.com:nxtedition/nxt-graphics
  • git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
  • modify package.json
  • run yarn or npm i

Development

  • npm run dev
  • open http://localhost:8080 or CG 1 ADD http://localhost:8080/index.html

Building

  • npm run build
  • Files are in dist

Emulating Caspar

Templates in Caspar will ignore web security features, like blocking responses with empty Access-Control-Allow-Origin headers from being handled in code. To emulate this, you can disable web security features in your local browser using e.g. --args --disable-web-security.