연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
이동
Blockly의 기본 작업공간은 스크롤바, 마우스, 마우스 휠 등 세 가지 방법을 사용하여 이동할 수 있습니다.
이동 설정은 Blockly 구성의 일부인 객체에 의해 정의됩니다. 예를 들면 다음과 같습니다.
var workspace = Blockly.inject('blocklyDiv',
{move:{
scrollbars: {
horizontal: true,
vertical: true
},
drag: true,
wheel: false}
});
작업공간에 세로 또는 가로 스크롤바가 있는지 결정합니다. horizontal
속성이 가로 스크롤을 사용 설정할지 결정하고 vertical
속성이 세로 스크롤의 사용 설정 여부를 결정하는 객체를 사용합니다.
불리언이 전달되면 해당 값으로 설정된 horizontal
및 vertical
속성이 모두 있는 객체를 전달하는 것과 같습니다. 작업공간에 카테고리가 있으면 기본값은 true
(가로 및 세로 스크롤 모두 사용 설정됨)입니다.
드래그
작업 영역을 마우스로 드래그할 수 있는지 결정합니다. scrollbars
이 false
이면 항상 false
입니다 (적어도 옵션 파싱 시). scrollbars
가 true
이면 기본값은 true
입니다.
바퀴
마우스 휠로 작업공간을 스크롤할 수 있는지 결정합니다. scrollbars
이 false
이면 항상 false
입니다 (적어도 옵션 파싱 시). 기본값은 false
입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)
[null,null,["최종 업데이트: 2023-12-01(UTC)"],[[["Blockly workspaces can be navigated using scrollbars, mouse dragging, and mouse wheel scrolling."],["These navigation options are configurable through Blockly's initialization options using the `move` property and its sub-properties: `scrollbars`, `drag`, and `wheel`."],["Scrollbars can be individually enabled or disabled for horizontal and vertical scrolling, while dragging and wheel scrolling are enabled or disabled with boolean values."]]],["Blockly's workspace movement is configured via the `move` object within its settings. This configuration allows defining the behavior of scrollbars, mouse dragging, and mouse wheel scrolling. `scrollbars` enables horizontal and/or vertical scrolling. `drag` enables mouse dragging, dependent on scrollbars being enabled. `wheel` enables mouse wheel scrolling, also dependent on scrollbars. Default settings include both scrollbars enabled and mouse dragging enabled, but mouse wheel disabled. If scrollbars are false then drag and wheel will be false as well.\n"]]