0.0.3-5 • Published 4 years ago

@azure06/rxcomponent v0.0.3-5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Move Resize Warp Scale Rotate any element in inside a page.

Demo

Stackbliz

Get Started

With npm

 npm install rxjs
 npm install @azure06/rxcomponent

Usage

import { RxComponent, RxHandler } from '@azure06/rxcomponent';
import { tap } from "rxjs/operators";

const appDiv: HTMLElement = document.getElementById("app");

const rxComponent = new RxComponent(appDiv, {
  width: "200px",
  height: "80px"
});

const rxHandler = new RxHandler(rxComponent, {
  draggable: true,
  rotable: true,
  resizable: true,
  interactive: true
});

rxHandler
  .onDrag(tap(_ => console.log("Dragging!🔥")))
  .onResize(tap(_ => console.log("Resizing")))
  .onRotation(tap(_ => console.log("Rotating")));

RxComponent is MIT licensed.

Codebase

RxComponent is written completely in TypeScript, and built using rollup.

RxComponent makes extensive use of functional and reactive programming.

0.0.3-5

4 years ago

0.0.3-4

4 years ago

0.0.3-3

4 years ago

0.0.3-1

4 years ago

0.0.3

4 years ago

0.0.3-2

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago