DitapCompass

현재 scene의 카메라 방향을 보여주는 위젯.
A widget that shows the direction of the camera in the current scene.

new Ditap.DitapCompass(viewer)

Name Type Description
viewer DitapViewer 사용할 DitapViewer 인스턴스.
The DitapViewer instance to use.
Examples:
// 1. 뷰어 선언 시 활성화
const viewer = new Ditap.DitapViewer("ditapContainer", {
   compass: true,
});
// 2. 단독으로 선언하여 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
const compass = new Ditap.DitapCompass(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.