forked from rajun/ar-test
38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
import * as React from 'react';
|
|
|
|
declare module 'react' {
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
'model-viewer': React.DetailedHTMLProps<
|
|
React.HTMLAttributes<HTMLElement> & {
|
|
src?: string;
|
|
'ios-src'?: string;
|
|
ar?: boolean;
|
|
'ar-modes'?: string;
|
|
'ar-scale'?: string;
|
|
'ar-placement'?: string;
|
|
'camera-controls'?: boolean;
|
|
'touch-action'?: string;
|
|
alt?: string;
|
|
'shadow-intensity'?: string | number;
|
|
'shadow-softness'?: string | number;
|
|
exposure?: string | number;
|
|
'interaction-prompt'?: string;
|
|
'min-camera-orbit'?: string;
|
|
'max-camera-orbit'?: string;
|
|
'camera-orbit'?: string;
|
|
'field-of-view'?: string;
|
|
scale?: string;
|
|
'auto-rotate'?: boolean;
|
|
'rotation-per-second'?: string;
|
|
onLoad?: (e: any) => void;
|
|
'onAr-status'?: (e: any) => void;
|
|
'onModel-visibility'?: (e: any) => void;
|
|
'onCamera-change'?: (e: any) => void;
|
|
},
|
|
HTMLElement
|
|
>;
|
|
}
|
|
}
|
|
}
|