@vrism/viewer-sdk
Version:
React and Vanilla JavaScript SDK for embedding 3D product viewers powered by Verge3D technology
46 lines (44 loc) • 1.69 kB
TypeScript
import { default as React } from 'react';
import { VrismViewerProps, VrismViewerRef } from './types';
/**
* ==========================================
* VRISM 개발팀 전용 기능 (INTERNAL USE ONLY)
* ==========================================
*
* 로컬 개발 환경에서 API 서버를 변경하기 위한 숨은 기능:
*
* 1. 개발 모드 플래그 활성화:
* window.__VRISM_INTERNAL_DEV__ = true;
*
* 2. _apiBaseUrl prop 사용:
* // @ts-ignore
* <VrismViewer _apiBaseUrl="http://localhost:3002" />
*
* 3. 사용 예시:
* // HTML 또는 앱 시작 전
* <script>window.__VRISM_INTERNAL_DEV__ = true;</script>
*
* // React 컴포넌트에서
* <VrismViewer
* token="your-token"
* contentId="your-content-id"
* // @ts-ignore
* _apiBaseUrl="http://localhost:3002"
* />
*
* ⚠️ 주의사항:
* - 타입 정의에 포함되지 않은 숨은 기능
* - 플래그 없이 사용 시 런타임 에러 발생
* - 외부 사용자는 사용 불가
* - 운영 환경에서 절대 사용 금지
*
* 🔧 API 서버 주소:
* - 로컬: http://localhost:3002
* - 개발: https://api-dev.vrism.com
* - 운영: https://api.vrism.com (기본값)
* ==========================================
*/
export declare const VrismViewerReact: React.ForwardRefExoticComponent<VrismViewerProps & React.RefAttributes<VrismViewerRef>>;
export declare const VrismViewer: React.ForwardRefExoticComponent<VrismViewerProps & React.RefAttributes<VrismViewerRef>>;
export default VrismViewer;
export type { VrismViewerProps, ViewerConfig, CameraConfig, UIConfig, VrismViewerRef, PickedPositionData, Position } from './types';