DitapDimensionModeButton

2D, 3D 모드 전환 버튼 위젯
A widget for switching between 2D and 3D modes.

new Ditap.DitapDimensionModeButton(viewer)

Name Type Description
viewer DitapViewer 사용할 DitapViewer 인스턴스.
The DitapViewer instance to use.
Example:
// 1. 뷰어 선언 시 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
new Ditap.DitapDimensionModeButton(viewer);

// 2. 단독으로 선언하여 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
const dimensionModeButton = new Ditap.DitapDimensionModeButton(viewer);

Methods

destroy()

위젯 파괴. 영구적으로 제거하는 경우 호출.
Destroys the widget. Should be called if permanently removing the widget from layout.

isDestroyed()boolean

위젯 파괴 여부 반환.
Returns the presence or absence of widget destroy.
Returns:
객체가 파괴 된 경우 true, 그렇지 않으면 false 반환.
True if the object has been destroyed, false otherwise.