@wandelbots/wandelbots-js-react-components 1.24.7 → 1.24.9
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/dist/components/robots/FANUC_LR_Mate_200iD.d.ts +5 -0
- package/dist/components/robots/FANUC_LR_Mate_200iD.d.ts.map +1 -1
- package/dist/components/robots/KUKA_KR6_R700_2.d.ts +6 -0
- package/dist/components/robots/KUKA_KR6_R700_2.d.ts.map +1 -1
- package/dist/index.cjs +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +946 -939
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/robots/FANUC_LR_Mate_200iD.tsx +4 -0
- package/src/components/robots/KUKA_KR6_R700_2.tsx +6 -1
package/package.json
CHANGED
|
@@ -28,6 +28,10 @@ type GLTFResult = GLTF & {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
FANUC_LR_Mate_200iD.config = {
|
|
32
|
+
rotationOffsets: [0, Math.PI / 2, 0, 0, 0, 0],
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
export function FANUC_LR_Mate_200iD({ modelURL, ...props }: RobotModelProps) {
|
|
32
36
|
const { nodes, materials } = useGLTF(modelURL) as GLTFResult
|
|
33
37
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { animated } from "@react-spring/three"
|
|
2
2
|
import { useGLTF } from "@react-three/drei"
|
|
3
|
-
import * as THREE from "three"
|
|
3
|
+
import type * as THREE from "three"
|
|
4
4
|
import type { GLTF } from "three-stdlib"
|
|
5
5
|
import type { RobotModelProps } from "./types"
|
|
6
6
|
|
|
@@ -25,6 +25,11 @@ type GLTFResult = GLTF & {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
KUKA_KR6_R700_2.config = {
|
|
29
|
+
rotationOffsets: [0, 0, -Math.PI / 2, 0, 0, 0],
|
|
30
|
+
rotationSign: [-1, 1, 1, 1, 1, 1],
|
|
31
|
+
}
|
|
32
|
+
|
|
28
33
|
export function KUKA_KR6_R700_2({ modelURL, ...props }: RobotModelProps) {
|
|
29
34
|
const { nodes, materials } = useGLTF(modelURL) as GLTFResult
|
|
30
35
|
return (
|