PopupAddModel

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

new Ditap.PopupAddModel(viewer, props, updateIsPopup)

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.
updateIsPopup function optional 팝업이 열리면 true, 닫히면 false를 인자로 호출되는 함수.
Function called with true when the popup opens and false when it closes.
Example:
// 1. 모델 추가 팝업을 생성하고 기능 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
const props = { drawing: true, input3d: true };
new Ditap.PopupAddModel(viewer, props);

Members

readonly availableOnMobile : boolean

모바일 해상도 중 화면 너비가 768px 이하일 때 띄울 수 있는 팝업입니다.
This popup can be opened on mobile when the body width is 768px or less.

Methods

close()

팝업 닫기.
Closes the popup.

open()

팝업 열기.
Opens the popup.