Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

three-pointer-controls

Package Overview
Dependencies
Maintainers
1
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

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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)

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 13 May 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