Coder Social home page Coder Social logo

ng-joystick's People

Contributors

enricopicci avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

ng-joystick's Issues

Cannot find module 'ng-joystick'

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.

Demo not working

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 ?

size don't work,

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.

Positioning on screen

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

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.