@react-three/fiber 8.14.2 → 8.14.3

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.
@@ -1,13 +1,13 @@
1
- import * as React from 'react';
2
- import type { Options as ResizeOptions } from 'react-use-measure';
3
- import { RenderProps } from '../core';
4
- export interface CanvasProps extends Omit<RenderProps<HTMLCanvasElement>, 'size'>, React.HTMLAttributes<HTMLDivElement> {
5
- children: React.ReactNode;
6
- fallback?: React.ReactNode;
7
- resize?: ResizeOptions;
8
- eventSource?: HTMLElement | React.MutableRefObject<HTMLElement>;
9
- eventPrefix?: 'offset' | 'client' | 'page' | 'layer' | 'screen';
10
- }
11
- export interface Props extends CanvasProps {
12
- }
13
- export declare const Canvas: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLCanvasElement>>;
1
+ import * as React from 'react';
2
+ import type { Options as ResizeOptions } from 'react-use-measure';
3
+ import { RenderProps } from '../core';
4
+ export interface CanvasProps extends Omit<RenderProps<HTMLCanvasElement>, 'size'>, React.HTMLAttributes<HTMLDivElement> {
5
+ children: React.ReactNode;
6
+ fallback?: React.ReactNode;
7
+ resize?: ResizeOptions;
8
+ eventSource?: HTMLElement | React.MutableRefObject<HTMLElement>;
9
+ eventPrefix?: 'offset' | 'client' | 'page' | 'layer' | 'screen';
10
+ }
11
+ export interface Props extends CanvasProps {
12
+ }
13
+ export declare const Canvas: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLCanvasElement>>;
@@ -1,4 +1,4 @@
1
- import { UseBoundStore } from 'zustand';
2
- import { RootState } from '../core/store';
3
- import { EventManager } from '../core/events';
4
- export declare function createPointerEvents(store: UseBoundStore<RootState>): EventManager<HTMLElement>;
1
+ import { UseBoundStore } from 'zustand';
2
+ import { RootState } from '../core/store';
3
+ import { EventManager } from '../core/events';
4
+ export declare function createPointerEvents(store: UseBoundStore<RootState>): EventManager<HTMLElement>;
@@ -336,10 +336,7 @@ function polyfills() {
336
336
  // Unpack assets in Android Release Mode
337
337
  if (!uri.includes(':')) {
338
338
  const file = `${fs__namespace.cacheDirectory}ExponentAsset-${asset.hash}.${asset.type}`;
339
- const stats = await fs__namespace.getInfoAsync(file, {
340
- size: false
341
- });
342
- if (!stats.exists) await fs__namespace.copyAsync({
339
+ await fs__namespace.copyAsync({
343
340
  from: uri,
344
341
  to: file
345
342
  });
@@ -336,10 +336,7 @@ function polyfills() {
336
336
  // Unpack assets in Android Release Mode
337
337
  if (!uri.includes(':')) {
338
338
  const file = `${fs__namespace.cacheDirectory}ExponentAsset-${asset.hash}.${asset.type}`;
339
- const stats = await fs__namespace.getInfoAsync(file, {
340
- size: false
341
- });
342
- if (!stats.exists) await fs__namespace.copyAsync({
339
+ await fs__namespace.copyAsync({
343
340
  from: uri,
344
341
  to: file
345
342
  });
@@ -311,10 +311,7 @@ function polyfills() {
311
311
  // Unpack assets in Android Release Mode
312
312
  if (!uri.includes(':')) {
313
313
  const file = `${fs.cacheDirectory}ExponentAsset-${asset.hash}.${asset.type}`;
314
- const stats = await fs.getInfoAsync(file, {
315
- size: false
316
- });
317
- if (!stats.exists) await fs.copyAsync({
314
+ await fs.copyAsync({
318
315
  from: uri,
319
316
  to: file
320
317
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/fiber",
3
- "version": "8.14.2",
3
+ "version": "8.14.3",
4
4
  "description": "A React renderer for Threejs",
5
5
  "keywords": [
6
6
  "react",