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

https://github.com/indigomultimediateam/c-box-line

Webová komponenta `<c-box-line>` reprezentující textový „box” a „šipku” propojených linkou
https://github.com/indigomultimediateam/c-box-line

web-component webcomponent webcomponents

Last synced: about 1 month ago
JSON representation

Webová komponenta `<c-box-line>` reprezentující textový „box” a „šipku” propojených linkou

Awesome Lists containing this project

README

          

[![LTS+sub-branches](https://img.shields.io/badge/submodule-LTS+sub--branches-informational?style=flat-square&logo=git)](https://github.com/IndigoMultimediaTeam/lts-driven-git-submodules)
# CBoxLine
Web component `` represents a text “box” and “arrow” connected a line, see
[example](https://indigomultimediateam.github.io/c-box-line/examples.html).

## Options
- **ESM Component can be found in [./CBoxLine.js](./CBoxLine.js)**
- UMD alternative see [./lib/CBoxLine.umd.js](./lib/CBoxLine.umd.js)
- [CEI](https://github.com/IndigoMultimediaTeam/customElementsInitiator?tab=readme-ov-file#v0) alternative see [./lib/CBoxLine.cei.js](./lib/CBoxLine.cei.js)

## Usage
Web Component `<*>*>`:

- The “image caption” component, i.e. the line from `<*>` to the pointer (circle)
- The component is expanded to 100% and placed in the top left
- box and wheel (and line) are positioned percentage-wise within the component using the `position-*` attributes
- partially treated if, the box and wheel are in the horizontal/vertical plane
- by default the box is moved to `0 0` and the wheel to `100 100` (see `attributes`)
- all configuration options see `getComponentConfig` (and type `config` and `attributes`)

## Development
- see [./bs](./bs)