@react-three/drei 9.83.4 → 9.83.5
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/package.json
CHANGED
|
Binary file
|
package/web/Select.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ declare type Props = JSX.IntrinsicElements['group'] & {
|
|
|
10
10
|
filter?: (selected: THREE.Object3D[]) => THREE.Object3D[];
|
|
11
11
|
};
|
|
12
12
|
export declare function Select({ box, multiple, children, onChange, onChangePointerUp, border, backgroundColor, filter: customFilter, ...props }: Props): JSX.Element;
|
|
13
|
-
export declare function useSelect(): THREE.Object3D
|
|
13
|
+
export declare function useSelect(): THREE.Object3D[];
|
|
14
14
|
export {};
|
package/web/Select.js
CHANGED
|
@@ -167,7 +167,10 @@ function Select({
|
|
|
167
167
|
}, props), /*#__PURE__*/React.createElement(context.Provider, {
|
|
168
168
|
value: active
|
|
169
169
|
}, children));
|
|
170
|
-
}
|
|
170
|
+
} // The return type is explicitly declared here because otherwise TypeScript will emit `THREE.Object3D<THREE.Event>[]`.
|
|
171
|
+
// The meaning of the generic parameter for `Object3D` was changed in r156, so it should not be included so that it
|
|
172
|
+
// works with all versions of @types/three.
|
|
173
|
+
|
|
171
174
|
function useSelect() {
|
|
172
175
|
return React.useContext(context);
|
|
173
176
|
}
|