Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sungchuni/ws-visu-obj
๐ ์ํ ์ ๋๋ฉ์ดํฐ๋ ์ฐจํธ ์ปดํฌ๋ํธ
https://github.com/sungchuni/ws-visu-obj
canvas react visualization
Last synced: 10 days ago
JSON representation
๐ ์ํ ์ ๋๋ฉ์ดํฐ๋ ์ฐจํธ ์ปดํฌ๋ํธ
- Host: GitHub
- URL: https://github.com/sungchuni/ws-visu-obj
- Owner: sungchuni
- Created: 2020-01-10T17:35:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-08T14:51:56.000Z (about 4 years ago)
- Last Synced: 2024-11-10T07:19:11.966Z (2 months ago)
- Topics: canvas, react, visualization
- Language: JavaScript
- Homepage:
- Size: 436 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
winkstone์ ws-front ํ๋ก์ ํธ๋ฅผ ์ํ ์๊ฐํ ์ค๋ธ์ ํธ์ ๋๋ค.
## DIRECT USE
src ํด๋ ๋ด ํ์ผ์ ๋ณต์ฌํ ํ [src/index.js](src/index.js) ํ์ผ์ importํ์ฌ ์ฌ์ฉํ์ญ์์ค.
```jsx
import VisualizationObject from "./visu-obj";
import VisuObj from "./visu-obj/index";
import * as VisuObj from "./visu-obj/index.js";
import { Leaf } from "./visu-obj/index.js";function SomeComp() {
return (
<>
>
);
}
```๊ฐ๊ฐ์ ์ปดํฌ๋ํธ๋ฅผ ์ง์ ๋ถ๋ฌ์๋ ์ข์ต๋๋ค.
```js
import Sphere from "./visu-obj/Sphere";function AnotherComp() {
return (
<>
>
);
}
```ํ์ ์ ์๊ฐ ํ์ํ ๊ฒฝ์ฐ [types/index.d.ts](types/index.d.ts) ํ์ผ์ src ํด๋๋ก ๋ณต์ฌํ์ญ์์ค. (๊ถ์ฅ)
์๋ dependencies๊ฐ ์ค์น๋์ด ์์ด์ผ ํฉ๋๋ค.
- [gsap](https://www.npmjs.com/package/gsap)
- [intersection-observer](https://www.npmjs.com/package/intersection-observer)
- [lodash-es](https://www.npmjs.com/package/lodash-es)
- [react](https://www.npmjs.com/package/react)lodash๋ก lodash-es๋ฅผ ๋์ฒดํ์ ๋ ์ข์ต๋๋ค.
## LIKE PACKAGE
๊น ์ ์ฅ์๋ฅผ ํจํค์ง์ฒ๋ผ ์ค์นํ์ฌ ์ธ ์๋ ์์ต๋๋ค.
#### `yarn add "git+https://github.com/sungchuni/ws-visu-obj.git"`
[package.json](package.json)์ dependencies ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ด, ํด๋น ํ๋ก์ ํธ์ ์ค์น๋์๋์ง ์ง์ ํ์ธ ๋ฐ๋๋๋ค.
## BUILD
๋น๋ ์์ ์ yarn 2๋ฅผ ๊ถ์ฅํฉ๋๋ค.
#### `yarn build`
webpack --mode=none์ผ๋ก ์ปดํฌ๋ํธ๋ฅผ dist/index.js์ ๋น๋ํฉ๋๋ค.
#### `yarn build:dev`
webpack --mode=develpment๋ก ์ปดํฌ๋ํธ๋ฅผ ๋น๋ํฉ๋๋ค.
#### `yarn build:prod`
webpack --mode=production์ผ๋ก ์ปดํฌ๋ํธ๋ฅผ ๋น๋ํฉ๋๋ค.
#### `yarn build:watch`
webpack --mode=development๋ก ์ปดํฌ๋ํธ๋ฅผ ๋น๋ํ๊ณ , ๋ณ๊ฒฝ ์ฌํญ์ ์ถ์ ํ์ฌ ๋ค์ ๋น๋ํ๋ ๋ฐ๋ชฌ์ ์์ฑํฉ๋๋ค.