0.2.10 • Published 9 months ago

draft-pad v0.2.10

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago
import { Draw, DrawState } from "draft-pad";
import { FC, useState } from "react";
const RATIO = 1.5;
const WIDTH = 2000;

const MyDraftPad: FC = () => {
  const [drawState, setDrawState] = useState(DrawState.createEmpty(RATIO, WIDTH));
  return <Draw drawState={drawState} onChange={setDrawState} />;
};
0.2.9

9 months ago

0.2.8

9 months ago

0.2.10

9 months ago

0.2.6

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago