New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@azure06/rxcomponent

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure06/rxcomponent

Description Drag Resize Rotate Warp any element inside an Html page

latest
Source
npmnpm
Version
0.0.3-5
Version published
Maintainers
1
Created
Source

RxCanvas

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.

Keywords

drag

FAQs

Package last updated on 30 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts