본문으로 건너뛰기

zoomIn

설명

확대 버튼을 클릭하거나 zoomIn() 메서드를 호출하면 발생합니다

사용법

"zoomIn": (step: number) => void;

매개변수

zoomIn 이벤트의 콜백은 다음 매개변수와 함께 호출됩니다:

  • step - (필수) scale 속성의 단계를 나타내는 값입니다.
정보

내부 Diagram Editor 이벤트를 처리하려면 on() 메서드를 사용할 수 있습니다.

예제

// Diagram Editor 초기화
const editor = new dhx.DiagramEditor("editor_container");
// 데이터 로드
editor.parse(data);

// 이벤트에 핸들러 연결
editor.events.on("zoomIn", (step) => {
console.log("The diagram in the editor is zoomed in. The step is" + step);
});

변경 로그: step 매개변수는 v6.0에서 추가되었습니다