Socket
Socket
Sign inDemoInstall

three-pointer-controls

Package Overview
Dependencies
3
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    three-pointer-controls

Navigate a three.js scene with pointer events


Version published
Weekly downloads
37
decreased by-36.21%
Maintainers
3
Install size
50.5 kB
Created
Weekly downloads
 

Readme

Source

three-pointer-controls

Navigate a three.js scene with pointer events

This is an implementation of orbit controls inspired by three-orbit-controls but with pointer events instead of mouse events. See test for an example.

Usage

NPM

PointerControls = require('three-pointer-controls')(THREE)

This module exports a function which accepts an instance of THREE, and returns an OrbitControls class. Use it to control one or several scenes by calling:

controls = new PointerControls()
controls.control(camera)
controls.listenTo(domElement)

or

controls = new PointerControls()
controls.control(camera).with(domElement)

Testing

Clone the repository, run npm install and npm test. Then open localhost:9966 to try out three-pointer-controls.

Keywords

FAQs

Last updated on 18 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc