+ All Categories
Home > Technology > LeapMotion for Web with React and Flux

LeapMotion for Web with React and Flux

Date post: 13-Apr-2017
Category:
Upload: laura-moore
View: 421 times
Download: 0 times
Share this document with a friend
33
Controlling Computers with React.JS!
Transcript
Page 1: LeapMotion for Web with React and Flux

Controlling Computers

with React.JS!

Page 2: LeapMotion for Web with React and Flux

Laura Moore@lk_moore

[email protected]

https://github.com/lauramoore

Page 3: LeapMotion for Web with React and Flux
Page 4: LeapMotion for Web with React and Flux
Page 5: LeapMotion for Web with React and Flux
Page 6: LeapMotion for Web with React and Flux
Page 7: LeapMotion for Web with React and Flux
Page 8: LeapMotion for Web with React and Flux
Page 9: LeapMotion for Web with React and Flux

LeapMotion V2

Page 10: LeapMotion for Web with React and Flux

LeapJS : WebSocket Communication

Page 11: LeapMotion for Web with React and Flux

Demo:Leap-Bone-Hands

https://github.com/lauramoore/leap-bone-hand

Page 12: LeapMotion for Web with React and Flux

Why React?

https://facebook.github.io/react/docs/displaying-data.html

“It uses a fast, internal mock DOM to perform diffs and computes the most efficient DOM mutation for you.”

FrameData

ViewState DOM

Page 13: LeapMotion for Web with React and Flux

Data Flow with Flux

https://facebook.github.io/flux/docs/overview.html

Page 14: LeapMotion for Web with React and Flux

DemoLeapJs – React - Flux

https://github.com/lauramoore/leap-react-noob/

Page 15: LeapMotion for Web with React and Flux

OOB : Components

● React-Object-Inspector

React-Bootstrap● Well● Label● Jumbotron

https://react-bootstrap.github.io/https://github.com/xyc/react-object-inspector

Page 16: LeapMotion for Web with React and Flux

React Win: Inline Styles

http://stackoverflow.com/questions/26882177/react-js-inline-style-best-practices

Page 17: LeapMotion for Web with React and Flux

CSS … what were we thinking?

https://speakerdeck.com/vjeux/react-css-in-js

Page 18: LeapMotion for Web with React and Flux
Page 19: LeapMotion for Web with React and Flux

Flux Question : What is Leap.Controller?

? ?

Page 20: LeapMotion for Web with React and Flux

Controller → Store Data

Page 21: LeapMotion for Web with React and Flux

Store Exported API

Page 22: LeapMotion for Web with React and Flux

Model → View

Page 23: LeapMotion for Web with React and Flux

View Displays Model

Page 24: LeapMotion for Web with React and Flux

Leap Challenge : Hand List

Demo : Magic Swapping Hands?

Page 25: LeapMotion for Web with React and Flux

Challenge Accepted : Sorted Hand List

Page 26: LeapMotion for Web with React and Flux

Leap Challenge : Hand List

Demo : Sorted Hands Stable Behavior

Page 27: LeapMotion for Web with React and Flux

Leap Challenge : Space to Screen

Demo : Sorted Hands Stable Behavior

Page 28: LeapMotion for Web with React and Flux

Challenge Accepted : Normalized Point

Page 29: LeapMotion for Web with React and Flux

Challenge Accepted: Scale to View

Page 30: LeapMotion for Web with React and Flux

Demo : Normalized vs Not Normalized

Page 31: LeapMotion for Web with React and Flux

Demo : Memory Game

Page 32: LeapMotion for Web with React and Flux

Flux Challenge : Ignoring Events

Page 33: LeapMotion for Web with React and Flux

Challenge Accepted:Immutable Stores (TBD)


Recommended