threedviewer 2.4.3 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,11 @@ import { default as React } from 'react';
2
2
  import { ViewerCore } from '../../core/ViewerCore';
3
3
  interface ViewerContextValue {
4
4
  viewer: ViewerCore | null;
5
- canvasRef: React.RefObject<HTMLCanvasElement>;
5
+ canvasRef: React.RefObject<HTMLCanvasElement | null>;
6
6
  }
7
7
  export interface ViewerProviderProps {
8
8
  viewer: ViewerCore | null;
9
- canvasRef: React.RefObject<HTMLCanvasElement>;
9
+ canvasRef: React.RefObject<HTMLCanvasElement | null>;
10
10
  children: React.ReactNode;
11
11
  }
12
12
  /**
@@ -14,6 +14,6 @@ export declare class ViewerErrorBoundary extends Component<Props, State> {
14
14
  constructor(props: Props);
15
15
  static getDerivedStateFromError(error: Error): State;
16
16
  componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
17
- render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
17
+ render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
18
18
  }
19
19
  export {};
@@ -4,7 +4,7 @@ import { ViewerState } from '../../core/entities/ViewerState';
4
4
  /**
5
5
  * Hook to create and manage ViewerCore instance
6
6
  */
7
- export declare function useViewerCore(canvasRef: React.RefObject<HTMLCanvasElement>, options: SimpleViewerOptions): {
7
+ export declare function useViewerCore(canvasRef: React.RefObject<HTMLCanvasElement | null>, options: SimpleViewerOptions): {
8
8
  viewer: ViewerCore | null;
9
9
  state: ViewerState;
10
10
  isInitialized: boolean;