0.1.30 • Published 3 years ago

@wrld/canvas-geometry-editor v0.1.30

Weekly downloads
-
License
See license in LI...
Repository
github
Last release
3 years ago

wrld-canvas-geometry-editor

A HTML canvas for drawing and editing 2D geometry.

NPM

Install

npm install --save @wrld/canvas-geometry-editor

Usage

import { ReactCanvas, ReactGrid } from "@wrld/canvas-geometry-editor";

export const Example = () => {
  return (
    <ReactCanvas
      width={"800px"}
      height={"600px"}
      zoomBehaviour={"mouse"}
      ctrlZoomBehaviour={"center"}
      mouse={{
        "0": "pan",
        "1": "disabled",
        "2": "rotate"
      }}
    >
      <ReactGrid/>
    </ReactCanvas>
  );
}

Running the Examples

From the root

npm install
npm run build
cd example
npm install
npm start

License

BSD © wrld3d

See LICENSE.md for details.

0.1.30

3 years ago

0.1.29

3 years ago

0.1.27

3 years ago

0.1.28

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.19

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago