Git Product home page Git Product logo

excel-add-in-js-babylonjs's Introduction

[ARCHIVED] Excel-Add-in-JS-BabylonJS

Note: This repo is archived and no longer actively maintained. Security vulnerabilities may exist in the project, or its dependencies. If you plan to reuse or run any code from this repo, be sure to perform appropriate security checks on the code or dependencies first. Do not use this project as the starting point of a production Office Add-in. Always start your production code by using the Office/SharePoint development workload in Visual Studio, or the Yeoman generator for Office Add-ins, and follow security best practices as you develop the add-in.

This is an Excel add-in that show how to deliver a great experience within a 3D scene for viewing Excel datas.

Excel sheet showing the data rendered as a 3d scene

It is using http://www.babylonjs.com, a full JavaScript 3D engine.

http://www.babylonjs.com

In a Nutshell

This add-in takes all the datas from the current worksheet and inject them in the 3D BabylonJS Scene.

Every rows contains a position, and the associated position date & time.

The 3D scene produce a cool and smoothy pathfinding animation for each element, showing you how the people are moving into the Microsoft France lobby.

The sample is constructed with :

  • Visual Studio 2015
  • TypeScript
  • Office.js SDK for add-in
  • BabylonJS SDK

Try it out

Get the sample

Clone or download the sample, open it with Visual Studio 2015.

Please check in add in project if the start object is "Accueil.xls".
This Excel file contains pre-populated datas, mandatory for the demo :

Visual Studio project properties dialog to set the Start Document

Hit F5 and try it !

Considerations

You will find the useful code in App/Welcome/Tracker.ts file :

  • Function playDatas : get the rows from the Excel worksheet and create every animations.
  • Function _setTableBinding : Create a binding using the addFromNamedItemAsync method.
  • Function _createScene : Create the BabylonJS scene importing models, textures dans visuals assets.
  • Function launchScene : Launch and render the scene. This method is called from the welcome.html page.
  • Function resetDatas : Stop the animations, reset all positions and clean the scene.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

excel-add-in-js-babylonjs's People

Contributors

davidchesnut avatar jthake-msft avatar mimetis avatar o365devx avatar paulstubbs 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.