1.1.0 • Published 4 years ago

@lunit/use-opt-control v1.1.0

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

@lunit/use-opt-control

<CornerstoneViewer>에서 사용되는 control={}, flip={}, invert={} 상태를 관리하는데 사용된다.

간단하게 사용하기 위해서 만들 Util이고, 필요한 경우 아래와 같이 사용해도 된다.

import { Control } from '@lunit/use-opt-control';

function Component() {
  const [control, setControl] = useState<Control>('pen');
  const [flip, setFlip] = useState<boolean>(false);
  const [invert, setInvert] = useState<boolean>(false);

  return <div>...</div>;
}

http://frontend-components-handbook.netlify.com/#/use-opt-control

Install

npm install @lunit/use-opt-control
5.0.0-alpha.4

4 years ago

5.0.0-alpha.3

4 years ago

5.0.0-alpha.2

4 years ago

5.0.0-alpha.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago