Git Product home page Git Product logo

webhopper's Introduction

This project is a work in progress and is likely to be worked on very sporadically. Currently the CSS is setup for very basic forms of components and tooltips โ€” it does not handle connections or custom component interfaces. That said the installation instructions below should work, and any pull requests are welcome.

Webhopper

A CSS library and HTML implementation reference for representing Grasshopper 3D UI elements in a browser.

Installation

Simply reference the dist/webhopper.css file into your app or import the sass/webhopper module.

Proper support for the hover tooltips requires some simple javascript โ€” see library/app/webhopper.js

Proper support for drawing node connections is on the TODO list.

Development (Styles/Markup Documentation)

This uses Astrum to document and display the components. To build a copy of this site locally, first install project dependencies:

npm install

Then build the templates using Astrum:

npm run astrum init library

Then run the gulp task to start the local server:

npm run gulp

Development (Components Documentation)

This uses Metahopper and a Grasshopper definition to extract an XML file of all installed components. A script then translates it into the styles and markup needed for Astrum.

  1. Ensure the metahopper plugin is installed
  2. Open grasshopper and extractor.gh
  3. Run, save output XML as extraction.xml
  4. Open terminal, run translator.py

Acknowledgements

All design elements adapted from the user interface of Grasshopper 3D. Grasshopper 3D was developed by David Rutten at Robert McNeel & Associates.

Major thanks to Andrew Heumann and Harsh Gupta for their work on rhino.github.io which has been used here directly in many cases.

License

This code is available under the MIT license.

webhopper's People

Contributors

philipbelesky avatar

Watchers

 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.