blockly > 드래그 > 드래거

Drag.Dragger 클래스

Signature:

export declare class Dragger implements IDragger 

구현: IDragger

생성자

생성자 수정자 설명
(생성자)(드래그 가능, 작업공간) Dragger 클래스의 새 인스턴스를 구성합니다.

속성

속성 수정자 유형 설명
드래그 가능 protected IDraggable
dragTarget protected IDragTarget | null
startLoc protected 좌표
워크스페이스 protected WorkspaceSvg

메서드

메서드 수정자 설명
onDrag(e, totalDelta) 요소가 실제로 이동해야 하는 위치를 계산하는 핸들
onDragEnd(e) 모든 드래그 정리를 처리합니다.
onDragStart(e) 모든 드래그 시작을 처리합니다.
pixelsToWorkspaceUnits(pixelCoord) protected
shouldReturnToStart(e, draggable) protected 드래그 종료 시 드래그 가능 항목을 원래 위치로 되돌려야 하는 경우 true를 반환합니다.
updateDragTarget(e) protected 포인터 아래의 드래그 대상을 업데이트합니다 (있는 경우).
wouldDeleteDraggable(e, draggable) protected 현재 위치에 드롭된 경우 드래그 가능한 항목을 삭제할 경우 true를 반환합니다.