dragging.Dragger 클래스
서명:
export declare class Dragger implements IDragger
구현: IDragger
생성자
생성자 | 수정자 | 설명 |
---|---|---|
(생성자)(draggable, workspace) | Dragger 클래스의 새 인스턴스를 생성합니다. |
속성
속성 | 수정자 | 유형 | 설명 |
---|---|---|---|
draggable | protected |
IDraggable | |
dragTarget | protected |
IDragTarget | null | |
startLoc | protected |
좌표 | |
workspace | protected |
WorkspaceSvg |
메서드
메서드 | 수정자 | 설명 |
---|---|---|
onDrag(e, totalDelta) | 요소가 실제로 이동해야 하는 위치를 계산하는 핸들입니다. | |
onDragEnd(e) | 드래그 정리를 처리합니다. | |
onDragStart(e) | 드래그 시작을 처리합니다. | |
pixelsToWorkspaceUnits(pixelCoord) | protected |
|
shouldReturnToStart(e, rootDraggable) | protected |
드래그가 끝날 때 draggable을 원래 위치로 반환해야 하는 경우 true를 반환합니다. |
updateDragTarget(e) | protected |
포인터 아래의 드래그 타겟 (있는 경우)을 업데이트합니다. |
wouldDeleteDraggable(e, rootDraggable) | protected |
현재 위치에 드롭된 경우 draggable을 삭제하면 true를 반환합니다. |