연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
차단 > 이벤트 > BlockMove > 이유
Events.BlockMove.reason 속성
이 이동의 목적 설명 알려진 값에는 '드래그'가 포함됩니다. -- 드래그 작업이 완료되었습니다. '범프' -- 잘못된 연결로 인해 차단이 처리되었습니다. '스냅' -- 블록이 그리드에 맞게 이동했습니다. '인바운드' -- 블록이 스크롤되지 않는 작업공간으로 다시 푸시되었습니다. '연결' -- 블록이 다른 블록에 연결되었습니다. '연결 해제' -- 블록이 다른 블록에서 연결 해제되었습니다. '만들기' -- XML을 통해 생성된 블록. '정리' -- 작업공간에 정렬된 최상위 블록. 일정 병합으로 인해 ['드래그', '범프', '맞추기'] 등 여러 가지 이유가 발생할 수 있습니다.
서명:
reason?: string[];
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-29(UTC)
[null,null,["최종 업데이트: 2024-08-29(UTC)"],[[["The `reason` property of a BlockMove event describes the cause of the block's movement, such as dragging, bumping, snapping, or connecting."],["Possible values for `reason` include 'drag', 'bump', 'snap', 'inbounds', 'connect', 'disconnect', 'create', and 'cleanup'."],["The `reason` property can contain multiple values when event merging occurs, indicating a combination of movement causes."],["This property is optional and may be represented as an array of strings."]]],[]]