0.1.0 • Published 1 year ago

aframe-connecting-line v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

PropertyDescriptionDefault
startselector for entity to draw line from
startOffsetoffset of the start of the line in the co-ordinate space of the start entity0 0 0
endselector for entity to draw line to
endOffsetoffset of the start of the line in the co-ordinate space of the end entity0 0 0
coloras per "line" component#74BEC1
opacityas per "line" component1
visibleas per "line" componenttrue

Installation

<script src="https://cdn.jsdelivr.net/npm/aframe-connecting-line@0.1.0/index.min.js"></script>

Examples

connecting-line.html

Code

connecting-line