react-transform-tool
TypeScript icon, indicating that this package has built-in type declarations

0.0.3-alpha • Public • Published

react-transform-tool

travis-ci npm

Transform tool component for editor-like application

Install

// Use yarn
yarn add react-transform-tool

// Use npm
npm install react-transform-tool

Usage

import React from "react";
import TransformTool from "react-transform-tool";

// Col major matrix
const [value, setValue] = useState([
    1, 0, 0, 
    0, 1, 0,
    0, 0, 1
]);

<TransformTool
    value={value}
    onChange={setValue}
    size={{
        width: 120,
        height: 120
    }}
    offset={{
        left: 0,
        top: 0
    }}
    classeNames={{
        root: '',
        anchor: {
            base: '',
            center: '',
            rotator: ''
        }
    }}
    styles={{
        root: {},
        anchor: {
            base: {
                
            },
            center: {

            },
            rotator: {

            }
        }
    }}
/>

License

The project is under MIT license

/react-transform-tool/

    Package Sidebar

    Install

    npm i react-transform-tool

    Weekly Downloads

    8

    Version

    0.0.3-alpha

    License

    MIT

    Unpacked Size

    239 kB

    Total Files

    38

    Last publish

    Collaborators

    • elgine