npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aframe-connecting-line

v0.3.2

Published

Uses the A-Frame "line" component to draw a line between points on two entities.

Downloads

53

Readme

connecting-line

Uses the A-Frame "line" component to draw a line between points on two entities.

The position of the line is updated automatically whenever the entity at either end is moved.

Schema

| Property | Description | Default | | --------------------- | ------------------------------------------------------------ | ------- | | start | selector for entity to draw line from | | | startOffset | offset of the start of the line in the co-ordinate space of the start entity | 0 0 0 | | end | selector for entity to draw line to | | | endOffset | offset of the start of the line in the co-ordinate space of the end entity | 0 0 0 | | color | as per "line" component | #74BEC1 | | opacity | as per "line" component | 1 | | visible | as per "line" component | true | | lengthAdjustment | one of: none, scale, extend, absolute | none | | lengthAdjustmentValue | Value used in adjusting the length of the line. Meaning depends on the lengthAdjustment parameter as follows:none: this parameter is ignoredscale: a scale factor to apply to the length of the connecting line, relative to the actual distance between start and endextend: an absolute length to extend the connecting line by (negative values will mean the line is just short of the points)absolute: an absolute length for the connecting line, irrespective of the distance between start and end. | 0 | | width | Optional line width. If set to a value > 0, the line will be rendered as a cylinder in addition to a "line". This can be useful to give a line a more substantial appearance when a user inspects it closely: when lines remain a single pixel wide even when inspected very closely, this can feel unrealistic.Even when a cylinder is rendered, the line is also rendered, so that it remains clearly visible even when viewed from distance. | 0 | | segments | Only used if width > 0. The number of radial segments used to render the line width. Default (for performance reasons) is 4, giving a square cross-section. Higher values will give a cross-section that is rounder, and therefore has a more consistent width depending on viewing angle. | 4 | | shader | "flat", "standard" or a custom value, if a custom shader is registered (as per the shader property on the material component). | "flat" | | updateEvent | If set, auto-update of line position every tick() is suspended, and the line position only updates when the named event is emitted on the start or end entities, or on this entity. This may be useful for performance reasons for lines that are generally static, or only move at known times. | "" |

Installation

<script src="https://cdn.jsdelivr.net/npm/[email protected]/index.min.js"></script>

Examples

connecting-line.html

Code

connecting-line