1.1.7 • Published 1 year ago

my-simple-canvas v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

my-simple-canvas

Usage

You’ll need to install React to use SimpleToolbar.

If you only use SimpleCanvas, React is not necessary.

Contents

Install

with yarn

$ yarn add my-simple-canvas

with npm

$ npm install my-simple-canvas

Examples

import React from "react";
import { SimpleToolbar, SimpleCanvas } from "my-simple-canvas";

export default function App() {
  return (
    <>
      <SimpleToolbar />
      <SimpleCanvas />
    </>
  );
}

Props

SimpleCanvas

NameTypeDefaultDescription
widthnumber500HTML <canvas> Width Attribute
heightnumber600HTML <canvas> Height Attribute

SimpleToolbar

NameTypeDefaultDescription
useThicknessbooleantrueWhether to Use Thickness Option in the Toolbar
minTicknessnumber1Minimum Thickness That Can Be Set
maxTicknessnumber5Maximum Thickness That Can Be Set
useColorbooleantrueWhether to Use Color Palette in the Toolbar
colorsstring or string[]["#f03434", "#f9690e", "#ffff7e", "#29f1c3", "#22a7f0", "#9f5afd", "#8c14fc"]Colors of Palette
1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago