Skip to content

Beispiele und Folien zum Vortrag "2D- und 3D-Datenvisualisierung für alle Plattformen mit HTML5"

Notifications You must be signed in to change notification settings

mbarmettler/basta-2d-3d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BASTA! - 2D- und 3D-Datenvisualisierung für alle Plattformen mit HTML5

This repository contains the examples shown and more.

2D

Example1 to Example7 are consecutively built. Example1 is the base, Example2 is Example1 with additions and so on.

Examples

  1. Example: Simple circle
  2. Example: Circle with gradient
  3. Example: Retina scaling
  4. Example: RequestAnimationFrame
  5. Example: Time-based animations
  6. Example: Mouse Move
  7. Example: Touch Move
  8. Example: Manipulating a rectangle with HammerJS
  9. Example: Rotating Pie Chart

Requirements

  • NodeJS & npm
  • Optional: cordova, xcode, android-sdk (only if you want to compile the cordova part)

Build

The examples are written in TypeScript and will be compiled to ES5 using gulp. To get the examples up & running, do the following:

  1. Point your terminal to the 2D subfolder.
  2. Execute npm install to install all necessary packages.
  3. Execute sh build.sh to start the default gulp task, which will compile the *.ts files, concat them into a single file and outputs it to the dist folder. Sourcemaps are generated, too.
  4. Optional: Execute node_modules/.bin/tsd reinstall --save --overwrite to install type definitions for better intellisense for the gulpfile.js.
  5. Open index.html in your browser

By using query parameters you can switch, which example will be used for rendering:

  • examples.html?example1 will run Example 1
  • examples.html?example2 will run Example 2
  • You get the idea. :)

Cordova

The 2D examples can be deployed to iOS and Android by cordova. All necessary files are included in the cordova folder. To run, just use the provides deploy.sh script by executing sh deploy.sh. It will use gulp for copying the files to the cordova/www folder and then executes cordova run --device which will deploy to all connected devices.

3D

This sample shows the planet Earth, surrounded by little stars. You can interact with the sample using mouse or touch input across several platforms and browsers.

Requirements

  • NodeJS & npm
  • Optional: cordova, ionic, xcode, android-sdk, Visual Studio (only if you want to compile the cordova part)

Run

To run the example, please host the source files in any web server and open index.html.

Ionic/Cordova

The 3D examples can be deployed to iOS (8+), Android, Windows (8.1+) and Windows Phone (8.1+). All necessary files are included in the cordova folder. To run, follow these steps:

  1. Point your terminal to the 3D subfolder
  2. Run gulp deploy to copy www content to the cordova folder
  3. Switch to the cordova folder
  4. Add the platforms you wish to deploy for (e.g. ionic platform add ios)
  5. Optional: run ionic browser add crosswalk to use Crosswalk when targeting Android

After this initial setup, you can run sh deploy.sh in the 3D subfolder in order to deploy the app to all connected devices.

Credits

Earth texture: NASA/Goddard Space Flight Center Scientific Visualization Studio The Blue Marble Next Generation data is courtesy of Reto Stockli (NASA/GSFC) and NASA's Earth Observatory.

Resources

Interesting projects

About

Beispiele und Folien zum Vortrag "2D- und 3D-Datenvisualisierung für alle Plattformen mit HTML5"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 29.2%
  • CSS 27.3%
  • JavaScript 26.6%
  • HTML 9.0%
  • TypeScript 5.8%
  • Java 0.9%
  • Other 1.2%