@wandelbots/wandelbots-js-react-components 1.26.0 → 1.26.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -4,36 +4,14 @@ Auto-generated by: https://github.com/pmndrs/gltfjsx
4
4
 
5
5
  import { animated } from "@react-spring/three"
6
6
  import { useGLTF } from "@react-three/drei"
7
- import type * as THREE from "three"
8
- import type { GLTF } from "three-stdlib"
9
7
  import type { RobotModelProps } from "./types"
10
8
 
11
- type GLTFResult = GLTF & {
12
- nodes: {
13
- shape002: THREE.Mesh
14
- shape002_1: THREE.Mesh
15
- link_6: THREE.Mesh
16
- link_5: THREE.Mesh
17
- shape010: THREE.Mesh
18
- shape010_1: THREE.Mesh
19
- link_3: THREE.Mesh
20
- link_2: THREE.Mesh
21
- link_1: THREE.Mesh
22
- }
23
- materials: {
24
- fanuc_metal_black_AO: THREE.MeshStandardMaterial
25
- fanuc_stainless_steel_AO: THREE.MeshStandardMaterial
26
- fanuc_yellow_AO: THREE.MeshPhysicalMaterial
27
- fanuc_aluminium_black_AO: THREE.MeshStandardMaterial
28
- }
29
- }
30
-
31
9
  FANUC_LR_Mate_200iD.config = {
32
10
  rotationOffsets: [0, Math.PI / 2, 0, 0, 0, 0],
33
11
  }
34
12
 
35
13
  export function FANUC_LR_Mate_200iD({ modelURL, ...props }: RobotModelProps) {
36
- const { nodes, materials } = useGLTF(modelURL) as GLTFResult
14
+ const { nodes, materials } = useGLTF(modelURL) as any
37
15
  return (
38
16
  <group {...props} dispose={null}>
39
17
  <group name="Empty">
@@ -1,39 +1,13 @@
1
1
  import { animated } from "@react-spring/three"
2
2
  import { useGLTF } from "@react-three/drei"
3
- import type * as THREE from "three"
4
- import type { GLTF } from "three-stdlib"
5
3
  import type { RobotModelProps } from "./types"
6
4
 
7
- type GLTFResult = GLTF & {
8
- nodes: {
9
- visuals_0: THREE.Mesh
10
- visuals_0_1: THREE.Mesh
11
- visuals_0_2: THREE.Mesh
12
- link_6: THREE.Mesh
13
- link_5: THREE.Mesh
14
- link_4: THREE.Mesh
15
- visuals_3: THREE.Mesh
16
- visuals_3_1: THREE.Mesh
17
- visuals_3_2: THREE.Mesh
18
- visuals_2: THREE.Mesh
19
- visuals_2_1: THREE.Mesh
20
- visuals_1: THREE.Mesh
21
- visuals_1_1: THREE.Mesh
22
- visuals_1_2: THREE.Mesh
23
- }
24
- materials: {
25
- material_Material_Metall: THREE.MeshStandardMaterial
26
- material_Material_Farbe__2_: THREE.MeshPhysicalMaterial
27
- material_Material_Farbe: THREE.MeshStandardMaterial
28
- }
29
- }
30
-
31
5
  KUKA_KR16_R2010_2.config = {
32
6
  rotationOffsets: [0, 0, -Math.PI / 2, 0, 0, 0],
33
7
  }
34
8
 
35
9
  export function KUKA_KR16_R2010_2({ modelURL, ...props }: RobotModelProps) {
36
- const { nodes, materials } = useGLTF(modelURL) as GLTFResult
10
+ const { nodes, materials } = useGLTF(modelURL) as any
37
11
 
38
12
  return (
39
13
  <>
@@ -1,37 +1,14 @@
1
1
  import { animated } from "@react-spring/three"
2
2
  import { useGLTF } from "@react-three/drei"
3
- import type * as THREE from "three"
4
- import type { GLTF } from "three-stdlib"
5
3
  import type { RobotModelProps } from "./types"
6
4
 
7
- type GLTFResult = GLTF & {
8
- nodes: {
9
- visuals_0: THREE.Mesh
10
- visuals_0_1: THREE.Mesh
11
- link_6: THREE.Mesh
12
- link_5: THREE.Mesh
13
- visuals_4: THREE.Mesh
14
- visuals_4_1: THREE.Mesh
15
- link_3: THREE.Mesh
16
- visuals_2: THREE.Mesh
17
- visuals_2_1: THREE.Mesh
18
- link_1: THREE.Mesh
19
- }
20
- materials: {
21
- kuka_metal: THREE.MeshPhysicalMaterial
22
- kuka_black: THREE.MeshStandardMaterial
23
- kuka_white: THREE.MeshStandardMaterial
24
- kuka_orange: THREE.MeshStandardMaterial
25
- }
26
- }
27
-
28
5
  KUKA_KR6_R700_2.config = {
29
6
  rotationOffsets: [0, 0, -Math.PI / 2, 0, 0, 0],
30
7
  rotationSign: [-1, 1, 1, 1, 1, 1],
31
8
  }
32
9
 
33
10
  export function KUKA_KR6_R700_2({ modelURL, ...props }: RobotModelProps) {
34
- const { nodes, materials } = useGLTF(modelURL) as GLTFResult
11
+ const { nodes, materials } = useGLTF(modelURL) as any
35
12
  return (
36
13
  <group {...props} dispose={null}>
37
14
  <group name="Scene">