PopupAddModel

3D 모델을 추가하는 팝업 위젯 A popup widget for adding 3D models to the scene.

new Ditap.PopupAddModel(viewer, props)

Name Type Description
viewer DitapViewer 사용할 DitapViewer 인스턴스.
The DitapViewer instance to use.
props object 팝업 기능 설정을 위한 속성 객체.
Properties object to configure the popup features.
Name Type Description
drawing boolean 도형 추가 기능 활성화 여부.
Whether to enable the shape drawing feature.
input3d boolean 3D 모델 추가 기능 활성화 여부.
Whether to enable the 3D model input feature.
Example:
// 1. 모델 추가 팝업을 생성하고 기능 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
const props = { drawing: true, input3d: true };
new Ditap.PopupAddModel(viewer, props);

Methods

close()

팝업 닫기.
Closes the popup.

open()

팝업 열기.
Opens the popup.