npm.io
0.10.11 • Published 4 years ago

@bfwk/interactions

Licence
MIT
Version
0.10.11
Deps
0
Size
158 kB
Vulns
0
Weekly
0

Interactions

npm

Shadow DOM compatible drag-and-drop-position library for document builders.

Intention of this library is to not handle the full drag and drop, but to leave the actual manipulation of the DOM to the consumer, since each consumer have differing markups and rendering techniques.

Demo

Run yarn build and open demo/demo.html or demo/demo-shadowdom.html.

Quick example

Basic DOM structure:

// interactable regions
<div class="interactions-region" data-item-id="${id}">
    <div class="interactions-component" data-item-id="${id}">
    // content
    </div>
</div>

Initialization:

TBD

Configurations

TBD

TODOs

  • TODOs is available here.

Resources