@react-three/fiber 8.15.19 → 8.16.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.
- package/CHANGELOG.md +950 -944
- package/dist/declarations/src/core/events.d.ts +93 -93
- package/dist/declarations/src/core/hooks.d.ts +57 -57
- package/dist/declarations/src/core/index.d.ts +87 -87
- package/dist/declarations/src/core/loop.d.ts +38 -38
- package/dist/declarations/src/core/renderer.d.ts +58 -58
- package/dist/declarations/src/core/store.d.ts +138 -138
- package/dist/declarations/src/core/utils.d.ts +131 -131
- package/dist/declarations/src/index.d.ts +12 -12
- package/dist/declarations/src/native/Canvas.d.ts +14 -14
- package/dist/declarations/src/native/events.d.ts +5 -5
- package/dist/declarations/src/native/polyfills.d.ts +1 -1
- package/dist/declarations/src/native.d.ts +12 -12
- package/dist/declarations/src/three-types.d.ts +393 -393
- package/dist/declarations/src/web/Canvas.d.ts +24 -24
- package/dist/declarations/src/web/events.d.ts +5 -5
- package/dist/{index-e6b5343a.esm.js → index-5712f892.esm.js} +75 -71
- package/dist/{index-87af8422.cjs.prod.js → index-76e11619.cjs.prod.js} +75 -71
- package/dist/{index-b90e75f9.cjs.dev.js → index-a75b61c3.cjs.dev.js} +75 -71
- package/dist/react-three-fiber.cjs.dev.js +4 -4
- package/dist/react-three-fiber.cjs.prod.js +4 -4
- package/dist/react-three-fiber.esm.js +5 -5
- package/native/dist/react-three-fiber-native.cjs.dev.js +7 -7
- package/native/dist/react-three-fiber-native.cjs.prod.js +7 -7
- package/native/dist/react-three-fiber-native.esm.js +8 -8
- package/native/package.json +5 -5
- package/package.json +1 -1
- package/readme.md +253 -253
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './three-types';
|
|
2
|
-
import * as ReactThreeFiber from './three-types';
|
|
3
|
-
export { ReactThreeFiber };
|
|
4
|
-
export type { BaseInstance, LocalState } from './core/renderer';
|
|
5
|
-
export type { Intersection, Subscription, Dpr, Size, Viewport, RenderCallback, Performance, RootState, } from './core/store';
|
|
6
|
-
export type { ThreeEvent, Events, EventManager, ComputeFunction } from './core/events';
|
|
7
|
-
export { createEvents } from './core/events';
|
|
8
|
-
export type { ObjectMap, Camera } from './core/utils';
|
|
9
|
-
export * from './web/Canvas';
|
|
10
|
-
export { createPointerEvents as events } from './web/events';
|
|
11
|
-
export type { GlobalRenderCallback, GlobalEffectType } from './core/loop';
|
|
12
|
-
export * from './core';
|
|
1
|
+
export * from './three-types';
|
|
2
|
+
import * as ReactThreeFiber from './three-types';
|
|
3
|
+
export { ReactThreeFiber };
|
|
4
|
+
export type { BaseInstance, LocalState } from './core/renderer';
|
|
5
|
+
export type { Intersection, Subscription, Dpr, Size, Viewport, RenderCallback, Performance, RootState, } from './core/store';
|
|
6
|
+
export type { ThreeEvent, Events, EventManager, ComputeFunction } from './core/events';
|
|
7
|
+
export { createEvents } from './core/events';
|
|
8
|
+
export type { ObjectMap, Camera } from './core/utils';
|
|
9
|
+
export * from './web/Canvas';
|
|
10
|
+
export { createPointerEvents as events } from './web/events';
|
|
11
|
+
export type { GlobalRenderCallback, GlobalEffectType } from './core/loop';
|
|
12
|
+
export * from './core';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import { RenderProps } from '../core';
|
|
4
|
-
export interface CanvasProps extends Omit<RenderProps<HTMLCanvasElement>, 'size' | 'dpr'>, ViewProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
style?: ViewStyle;
|
|
7
|
-
}
|
|
8
|
-
export interface Props extends CanvasProps {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A native canvas which accepts threejs elements as children.
|
|
12
|
-
* @see https://docs.pmnd.rs/react-three-fiber/api/canvas
|
|
13
|
-
*/
|
|
14
|
-
export declare const Canvas: React.ForwardRefExoticComponent<Props & React.RefAttributes<View>>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import { RenderProps } from '../core';
|
|
4
|
+
export interface CanvasProps extends Omit<RenderProps<HTMLCanvasElement>, 'size' | 'dpr'>, ViewProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
style?: ViewStyle;
|
|
7
|
+
}
|
|
8
|
+
export interface Props extends CanvasProps {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A native canvas which accepts threejs elements as children.
|
|
12
|
+
* @see https://docs.pmnd.rs/react-three-fiber/api/canvas
|
|
13
|
+
*/
|
|
14
|
+
export declare const Canvas: React.ForwardRefExoticComponent<Props & React.RefAttributes<View>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UseBoundStore } from 'zustand';
|
|
2
|
-
import { RootState } from '../core/store';
|
|
3
|
-
import { EventManager } from '../core/events';
|
|
4
|
-
/** Default R3F event manager for react-native */
|
|
5
|
-
export declare function createTouchEvents(store: UseBoundStore<RootState>): EventManager<HTMLElement>;
|
|
1
|
+
import { UseBoundStore } from 'zustand';
|
|
2
|
+
import { RootState } from '../core/store';
|
|
3
|
+
import { EventManager } from '../core/events';
|
|
4
|
+
/** Default R3F event manager for react-native */
|
|
5
|
+
export declare function createTouchEvents(store: UseBoundStore<RootState>): EventManager<HTMLElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function polyfills(): void;
|
|
1
|
+
export declare function polyfills(): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './three-types';
|
|
2
|
-
import * as ReactThreeFiber from './three-types';
|
|
3
|
-
export { ReactThreeFiber };
|
|
4
|
-
export type { BaseInstance, LocalState } from './core/renderer';
|
|
5
|
-
export type { Intersection, Subscription, Dpr, Size, Viewport, RenderCallback, Performance, RootState, } from './core/store';
|
|
6
|
-
export type { ThreeEvent, Events, EventManager, ComputeFunction } from './core/events';
|
|
7
|
-
export { createEvents } from './core/events';
|
|
8
|
-
export type { ObjectMap, Camera } from './core/utils';
|
|
9
|
-
export * from './native/Canvas';
|
|
10
|
-
export { createTouchEvents as events } from './native/events';
|
|
11
|
-
export type { GlobalRenderCallback, GlobalEffectType } from './core/loop';
|
|
12
|
-
export * from './core';
|
|
1
|
+
export * from './three-types';
|
|
2
|
+
import * as ReactThreeFiber from './three-types';
|
|
3
|
+
export { ReactThreeFiber };
|
|
4
|
+
export type { BaseInstance, LocalState } from './core/renderer';
|
|
5
|
+
export type { Intersection, Subscription, Dpr, Size, Viewport, RenderCallback, Performance, RootState, } from './core/store';
|
|
6
|
+
export type { ThreeEvent, Events, EventManager, ComputeFunction } from './core/events';
|
|
7
|
+
export { createEvents } from './core/events';
|
|
8
|
+
export type { ObjectMap, Camera } from './core/utils';
|
|
9
|
+
export * from './native/Canvas';
|
|
10
|
+
export { createTouchEvents as events } from './native/events';
|
|
11
|
+
export type { GlobalRenderCallback, GlobalEffectType } from './core/loop';
|
|
12
|
+
export * from './core';
|