Socket
Socket
Sign inDemoInstall

three-pointer-controls

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

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
8
decreased by-86.44%
Maintainers
3
Weekly downloads
 
Created
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

Package last updated on 03 Jul 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc