GithubHelp home page GithubHelp logo

nfriend / inspiral-web Goto Github PK

View Code? Open in Web Editor NEW
284.0 17.0 35.0 6.84 MB

The web version of the Inspiral app.

Home Page: https://nathanfriend.io/inspiral-web/

License: Other

C# 7.54% JavaScript 36.65% CSS 1.66% TypeScript 38.83% PHP 1.62% HTML 8.51% Less 5.19%

inspiral-web's Introduction

inspiral-web

The web version of the Inspiral app. Written in TypeScript, using D3.js. nathanfriend.io/inspiral-web/

Building

  1. install Node.js
    • note: this project only seems to build correctly with version 5 and lower, due to this issue:cgross/grunt-dom-munger#42. Removing the isPath parameter makes the build produce incorrect results. a. I got around this issue by hacking in this PR in InspiralWeb/node_modules/grunt-dom-munger/tasks/dom_munger.js
  2. install Grunt and Bower
  3. run npm install and bower install inside InspiralWeb/ directory
  4. run bower install inside the InspiralWeb/gallery directory
  5. change the value @fa-font-path in /bower_components/fontawesome/less/variables.less from ../fonts to ./
    • do the same for the bower_components directory in /gallery
  6. install WebEssentials VS plugin
  7. run npm run build-scripts
  8. Install http-server globally and run http-server inside the /InspiralWeb directory
  9. create a distribution build, run grunt inside the InspiralWeb/ directory

Here be dragons

There are some seriously terrible things about this codebase:

  1. A number of the original *.ts files are missing, but the compiled *.js files still exist. I'm not sure how this happened ๐Ÿคท
  2. I haven't invested time into figuring out how to compile the LESS (it used to be done automatically by the VS extension), so currently there's no way to make style changes to the app. I gave this a shot with the build-styles npm scripts, but they're not yet working. For now - just don't touch app.min.css.

Publishing

  1. after building (see above), run npm publish from the ./dist/ directory a. don't run this command from the InspiralWeb/ directory!

inspiral-web's People

Contributors

nfriend avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inspiral-web's Issues

Zooming while scrolling

The keyboard shortcuts page is (at least for me) longer than my screen height. When I scroll down, it also zooms in on the spirograph in the background. Extremely minor, but thought you might want to know.

Feature Request: Moving objects around/ camera panning

It would be a nice addition to be able to move objects around and subsequently, pan the camera around.

I know this is a rather big change and it might be in a different direction than where you want to go with this.

Save to PNG

User should be able to save result as PNG in any browser.

Add toolbar

Items that should be included in the toolbar: Download Image, Clear Image, Hide Gears, Help/About

Cursor tracker

Add a cursor tracker that draws a line from the rotation point to the cursor, so that I don't lose track of where my cursor is while drawing.

Feature Request: Gradients in addition to static colors

Hi Nathan! I'm having a blast with inspirograph!

When I was a kid, I had a spirograph set with multi-colored pencils.

When you used such a pencil with the spirograph, the drawn line would fade between several colors over a gradient. It would be awesome to have this in ispirograph.

Thats my feature request, thanks for your hard work on inspirograph!

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.