1.0.0 • Published 6 years ago

aframe-debug-cursor-component v1.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

aframe-debug-cursor-component

Version License

A component to pretty-log cursor events.

For A-Frame.

npm.io

API

PropertyDescriptionDefault Value
enabledWhether to log.true

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-debug-cursor-component/dist/aframe-debug-cursor-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity id="mouseCursor" cursor="rayOrigin: mouse" debug-cursor></a-entity>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-debug-cursor-component

Then require and use.

require('aframe');
require('aframe-debug-cursor-component');