🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

aframe-point-component

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-point-component

A Point component for A-Frame.

1.1.1
latest
Version published
Weekly downloads
2
-60%
Maintainers
2
Weekly downloads
 
Created

aframe-point-component

A point component for A-Frame. Creates a THREE.Points object. Points remain a point no matter the distance.

Screenshot

VIEW DEMO

API

PropertyDescriptionDefault Value
sizesize of rendered point (length of rectangle edge)1
colorcolor definition, like in CSS#888
perspectiveboolean - should it scale with distance or notfalse

Custom Methods

setPoints(array of arrays3) - replace single point geometry with multiple points in one a-point instance

example

  element.components.point.setPoints([
    [0,0,0]
    [0,0,1]
    [0,0,2]
    ...
  ])

Installation

npm install aframe-point

Browser

Install and use by directly including the browser files:

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

<body>
  <a-scene>
    <a-entity point="size: 2"></a-entity>
    OR
    <a-point size="2"></a-point>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-point

Then require and use.

require('aframe');
require('aframe-point');

FAQs

Package last updated on 05 Apr 2017

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