enricopicci / ng-joystick Goto Github PK
View Code? Open in Web Editor NEWAngular component that models a joystick - based on a reactive design and RxJs
Angular component that models a joystick - based on a reactive design and RxJs
I have tried to clone the repository and build the demo as per instructions. But, I am getting the below error.
$ ng serve
Your global Angular CLI version (6.1.5) is greater than your local
version (6.0.8). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Date: 2018-09-25T10:59:04.231Z
Hash: 77857097e17e6a32096d
Time: 5319ms
chunk {main} main.js, main.js.map (main) 1.95 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 691 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 15.6 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 325 kB [initial] [rendered]
ERROR in src/app/app.component.ts(3,35): error TS2307: Cannot find module 'ng-joystick'.
src/app/app.module.ts(4,32): error TS2307: Cannot find module 'ng-joystick'.
ℹ 「wdm」: Failed to compile.
I cloned the repo then cd into it and use npm install.
I got this error :
from ../../nan/nan.h:53,
from ../src/binding.cpp:1:
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfoNan::ObjectWrap&)’:
../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
124 | assert(wrap->handle_.IsNearDeath());
resulting in :
Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/guillaume/stage/testJoysticks/ng-joystick/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
Do you now how to fix ?
I just tried to implement this lib.
It looks nice, but the size is not applied. I want to make the joystick smaller. I checked the code, there is no connection between size and actual css/html size.
Love this module!
But how can i position on screen while beeing relative to a container?
If i wrap this module in a container and give it position:relative, the movment of the 'joystick' is not functioning properly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.