JointJS - JANGCHICKEN/Study GitHub Wiki
joint.dia
Graph
toJSON()
์์ฑ๋ joint.dia.Graph ๊ฐ์ฒด๋ฅผ json์ผ๋ก ๋ฐํ
joint.ui
PaperScroll
Stencil
์๋ฆฌ๋จผํธ ํ๋ ํธ ํ๋ฌ๊ทธ์ธ
group
๋น์ทํ ์์ฑ์ ์๋ฆฌ๋จผํธ๋ฅผ ๋ชจ์
configuration
| key | description | defualt |
|---|---|---|
| paper | joint.dia.Paper ๋๋ joint.ui.PaperScroller ๊ฐ์ฒด | |
| width | ํ๋ ํธ width | |
| height | ํ๋ ํธ height | |
| search | element ๊ฒ์์ด ์ง์ | |
| groups | element ๊ทธ๋ฃน {label, index, closed} |
|
| groupsToggleButtons | ๊ทธ๋ฃน์ ์ด๊ณ ๋ซ์ ์ ์๋ ๋ฒํผ | false |
| dropAnimation |
Halo
joint panel์์ element tool
- ์ญ์ remove
- ๋ณต์ clone
- ์ฐ๊ฒฐ link
- ๋ณต์ ๋ฐ ์ฐ๊ฒฐ fork
- ์ฐ๊ฒฐํด์ unlink
- ํฌ๊ธฐ์กฐ์ resize
- ๋ฐฉํฅ์กฐ์ rotate
configuration
| key | description | defualt |
|---|---|---|
| cellView | paper, graph properties | |
| type | tool ํ์ | 'surrounding' |
| loopLinkPreferredSide | self loop ๋ง๋ค ๋ ๋ฐฉํฅ | 'top' |
| loopLinkWidth | self loop link width ํฝ์ ๋จ์ | 40 |
| rotateAngleGrid | ํ์ ๊ฐ๋์ ๋ | 15 |
| boxContent | element์ xy์ขํ, width, height๋ฅผ ์ ๋ณด๋ฅผ ๋ณด์ฌ์ค box | |
| clearAll |
์คํ์ผ๋ง
joint.setTheme('{์ด๋ฆ}'); ์ฌ์ฉ ์ ๊ฐ html element์ **.joint-theme-{์ด๋ฆ}**์ผ๋ก class๊ฐ ๋ถ์