Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bahrus/dom-arrow

dom-arrow is a web component wrapper around the leader-line npm package.
https://github.com/bahrus/dom-arrow

custom-element custom-elements euclid euclidean-geometry leader-line web-component web-components

Last synced: about 1 month ago
JSON representation

dom-arrow is a web component wrapper around the leader-line npm package.

Awesome Lists containing this project

README

        

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/dom-arrow)
# dom-arrow

dom-arrow is a web component wrapper around the [leader-line npm package](https://www.npmjs.com/package/leader-line).

The name / idea of this web component was inspired by [this library](https://www.cssscript.com/connect-elements-directional-arrow/) which helpfully [links](https://www.cssscript.com/draw-svg-paths-two-elements-leader-line/) to a [rather powerful library called leader-line](https://www.npmjs.com/package/leader-line).

## Sample syntax

```html

Hello


Euclid [described](https://en.wikipedia.org/wiki/Line_(geometry)) a line as "breathless length" which "lies equally with respect to the points on itself";
he introduced several postulates as basic unprovable properties from which he constructed all of geometry,
which is now called Euclidean geometry to avoid confusion with other geometries which
have been introduced since the end of the 19th century (such as non-Euclidean, projective and affine geometry).


Goodbye

```

## Demo

[Codepen demo](https://codepen.io/bahrus/pen/LYybPVP)

## Running locally

1. Do a git clone or a git fork of repository https://github.com/bahrus/dom-arrow
2. Install node.js
3. Run "npm install" from location of folder created in step 1.
4. Run npm run serve. Open browser to http://localhost:3030/demo/dev.html