Git Product home page Git Product logo

canvasdemo's Introduction

canvas collage demo

NOTE: This has been superseded by a paged version of this, visible at https://github.com/dbvisel/canvasviewer

Demo done in React to demonstrate how a JSON data format could be used to present "walks" of embedded items/sections of items from the Internet Archive, interleaved, if desired, with comments. This is done in React because that was an easy way to get a demo off the ground; it could be made in anything.

This uses the JSON data stored in /src/assets/walkData.js to build a walk (or walks) based on what's in that data – that includes some basic documentation of the format. A demo deployment of this can be seen at https://collagewalk.netlify.app.

To run this locally, npm install, then npm start. Build with npm run build.

Still images are generated with a build step: npm run make-images, which screenshots all the images and puts them in /public/images.

Rework

  • hide annotation until selected

Issues

  • lines don't update if something is dragged in walk mode
  • Throbbers aren't wonderful.
  • Dragging isn't wonderful & I suspect there's something buggy in my implementation of it.
  • Performance isn't wonderful because it's a bunch of iframes!
  • if you maximize/go to present mode, header select doesn't notice.

Demo needs

  • This is fake content and not actually compelling!
  • add additional embed types:
    • image carousel? Is that essential?
  • phone presentation mode
    • force presentation mode on vw < 767px?
  • next/prev stops probably need names (for mutliple previous/next stops)
    • need to deal with this in graph mode!

Todo/Features to consider:

  • link to a particular stop
  • when a stop is selected, auto-center the canvas?
    • this is kind of being done, but not very effectively
  • arrow keys for moving through present mode
    • what happens if more than one next/prev?
  • comments could be richtext/markdown?
  • could add rotation/colors/CSS styles to stops
  • smarter default placement on canvas – avoid overlap
  • Internet Archive URL scheme: right now this is just taking the embed link and not processing that in any way. We could turn, for example, "1up" or "2up" in the book reader into a separate parameter.
  • maybe different visualizations?
    • CSS grid

Remember/reference

canvasdemo's People

Contributors

dbvisel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.