Event

OBJ๊ฐ€ ์ด๋™ํ•จ์— ๋”ฐ๋ผ Event๋ฅผ ๋ฐœ์ƒ์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

โ€ป ํ‘œ

์ข…๋ฅ˜ Template์†์„ฑ Event Data ์„ค๋ช…
start data-event-start {box, obj, boxSize} box๊ฐ€ ์ƒ์„ฑ๋ ๋•Œ
boxin data-event-boxin {boxel, obj, copyObj, boxSize, boxBefore, data} OBJ๊ฐ€ ํ•ด๋‹น BOX๋กœ ๋“ค์–ด์˜ฌ๋•Œ
boxout data-event-boxout {boxel, obj, copyObj, boxSize, boxBefore, data} OBJ๊ฐ€ ํ•ด๋‹น BOX์—์„œ ๋‚˜๊ฐˆ๋•Œ
boxinout data-event-boxinout {boxel, obj, copyObj, boxSize, boxBefore, data} OBJ๊ฐ€ ํ•ด๋‹น BOX๋กœ ๋“ค์–ด์˜ค๊ฑฐ๋‚˜ ๋‚˜๊ฐˆ๋•Œ
beforeboxin data-event-beforeboxin {box, obj, boxSize} OBJ๊ฐ€ ํ•ด๋‹น BOX๋กœ ๋“ค์–ด์˜ค๊ธฐ ์ „์—
mustdo data-event-mustdo null ๋ฌด์กฐ๊ฑด ๋ฐœ์ƒ.
external data-event-external Event Browser ์™ธ๋ถ€๋กœ๋ถ€ํ„ฐ ํŒŒ์ผ์„ ๋Œ๊ณ  ์™”์„๋•Œ
afterdetect data-event-afterdetect null ํƒ์ง€(detect)๋ฅผ ๋งˆ์นœ ํ›„
swappedin data-event-swappedin {boxel, obj, boxBefore} swap์ด ๋ฐœ์ƒํ• ๋•Œ
swappedout data-event-swappedout {boxel, obj, boxBefore} swap์ด ๋ฐœ์ƒํ• ๋•Œ

โ€ป ์ž๋™์ ์šฉ

start

boxin

boxout

boxinout

beforeboxin

mustdo

external

afterdetect

swappedin

swappedout