@wandelbots/wandelbots-js-react-components 1.21.0 → 1.22.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/README.md +35 -4
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +1 -0
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -1
- package/dist/components/jogging/JoggingJointRotationControl.d.ts +1 -0
- package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +1 -1
- package/dist/components/robots/UniversalRobots_UR10CB.d.ts +3 -0
- package/dist/components/robots/UniversalRobots_UR10CB.d.ts.map +1 -0
- package/dist/components/robots/UniversalRobots_UR3CB.d.ts +3 -0
- package/dist/components/robots/UniversalRobots_UR3CB.d.ts.map +1 -0
- package/dist/components/robots/UniversalRobots_UR3e.d.ts.map +1 -1
- package/dist/components/robots/UniversalRobots_UR5CB.d.ts +3 -0
- package/dist/components/robots/UniversalRobots_UR5CB.d.ts.map +1 -0
- package/dist/index.cjs +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +901 -655
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingCartesianAxisControl.tsx +1 -0
- package/src/components/jogging/JoggingJointRotationControl.tsx +6 -5
- package/src/components/robots/SupportedRobot.tsx +9 -9
- package/src/components/robots/{UniversalRobots_UR5.tsx → UniversalRobots_UR10CB.tsx} +130 -72
- package/src/components/robots/{UniversalRobots_UR3.tsx → UniversalRobots_UR3CB.tsx} +1 -1
- package/src/components/robots/UniversalRobots_UR3e.tsx +226 -69
- package/src/components/robots/UniversalRobots_UR5CB.tsx +246 -0
- package/dist/components/robots/UniversalRobots_UR10.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR10.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR3.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR3.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR5.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR5.d.ts.map +0 -1
- package/src/components/robots/UniversalRobots_UR10.tsx +0 -305
package/README.md
CHANGED
|
@@ -14,19 +14,22 @@ npm install @wandelbots/wandelbots-js-react-components
|
|
|
14
14
|
Import your desired components or functions from the package:
|
|
15
15
|
|
|
16
16
|
```jsx
|
|
17
|
-
import {
|
|
17
|
+
import { JoggingPanel, ... } from '@wandelbots/wandelbots-js-react-components'
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
See the [Storybook](https://wandelbotsgmbh.github.io/wandelbots-js-react-components) for implementation details of each component.
|
|
21
|
+
|
|
20
22
|
### Index
|
|
21
23
|
|
|
22
24
|
<table>
|
|
23
25
|
<tr>
|
|
24
26
|
<td valign="top">
|
|
25
27
|
<ul>
|
|
26
|
-
<li><a href="#
|
|
28
|
+
<li><a href="#ui">UI</a></li>
|
|
27
29
|
<ul>
|
|
28
30
|
<li><a href="#joggingpanel">JoggingPanel</a></li>
|
|
29
31
|
<li><a href="#wandelscripteditor">WandelscriptEditor</a></li>
|
|
32
|
+
<li><a href="#theming">Theming</a></li>
|
|
30
33
|
</ul>
|
|
31
34
|
<li><a href="#viewport">3D Viewport</a></li>
|
|
32
35
|
<ul>
|
|
@@ -39,10 +42,14 @@ import { WandelscriptEditor, ... } from '@wandelbots/wandelbots-js-react-compone
|
|
|
39
42
|
</tr>
|
|
40
43
|
</table>
|
|
41
44
|
|
|
42
|
-
###
|
|
45
|
+
### UI
|
|
43
46
|
|
|
44
47
|
#### JoggingPanel
|
|
45
48
|
|
|
49
|
+
<a href="https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-joggingpanel--docs">
|
|
50
|
+
<img width="20%" alt="jogging" src="https://github.com/user-attachments/assets/07d8bd72-9378-4199-8f54-d101c857797c">
|
|
51
|
+
</a>
|
|
52
|
+
|
|
46
53
|
The JoggingPanel is a high-level user interface for manually moving a robot using the Wandelbots stack. It needs only a `NovaClient` instance from [wandelbots-js](https://github.com/wandelbotsgmbh/wandelbots-js) and the id of a motion group to connect to.
|
|
47
54
|
|
|
48
55
|
```tsx
|
|
@@ -76,11 +83,31 @@ type WandelscriptEditorProps = {
|
|
|
76
83
|
}
|
|
77
84
|
```
|
|
78
85
|
|
|
86
|
+
#### Theming
|
|
87
|
+
|
|
88
|
+
The UI components presented in this library will respect the Material UI theme of the application they are rendered within, allowing customization with the [MUI theming system](mui.com/material-ui).
|
|
89
|
+
|
|
90
|
+
Using the Wandelbots MUI theme
|
|
91
|
+
To make the components look exactly like they do in the storybook, pass the [Wandelbots MUI theme](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/theming-wandelbots-mui-theme--docs) to ThemeProvider.
|
|
92
|
+
|
|
93
|
+
```tsx
|
|
94
|
+
import { ThemeProvider } from "@mui/material";
|
|
95
|
+
import { createNovaMuiTheme, JoggingPanel } from "@wandelbots/wandelbots-js-react-components"
|
|
96
|
+
|
|
97
|
+
const theme = createNovaMuiTheme()
|
|
98
|
+
|
|
99
|
+
<ThemeProvider theme={theme}>
|
|
100
|
+
<JoggingPanel ... />
|
|
101
|
+
</ThemeProvider>
|
|
102
|
+
```
|
|
103
|
+
|
|
79
104
|
### Viewport
|
|
80
105
|
|
|
81
106
|
#### Robot
|
|
82
107
|
|
|
83
|
-
<
|
|
108
|
+
<a href="https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/3d-view-robot--docs">
|
|
109
|
+
<img width="20%" alt="Robot" src="https://github.com/user-attachments/assets/da661136-8b53-48ba-85de-63b09e3b51f3">
|
|
110
|
+
</a>
|
|
84
111
|
|
|
85
112
|
This `Robot` component adds the robot to the 3D viewport. Use it together with the `connectedMotionGroup` from `@wandelbots/wandelbots-js`.
|
|
86
113
|
|
|
@@ -140,6 +167,10 @@ The `PresetEnvironment` component adds a default lighting setup to the 3D viewpo
|
|
|
140
167
|
|
|
141
168
|
#### Safety
|
|
142
169
|
|
|
170
|
+
<a href="https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/3d-view-safetyzonesrenderer--docs">
|
|
171
|
+
<img width="20%" alt="Bildschirmfoto 2024-09-19 um 14 26 40" src="https://github.com/user-attachments/assets/be5ef8c3-5cd2-4d6d-bfc3-cbf4eb4fc04c">
|
|
172
|
+
</a>
|
|
173
|
+
|
|
143
174
|
The `SafetyZonesRenderer` component visualizes the safety zones of the controller.
|
|
144
175
|
|
|
145
176
|
```tsx
|
|
@@ -9,6 +9,7 @@ type JoggingCartesianAxisControlProps = {
|
|
|
9
9
|
stopJogging: () => void;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
} & React.ComponentProps<typeof Stack>;
|
|
12
|
+
/** A input widget to control an individual cartesian axis */
|
|
12
13
|
export declare const JoggingCartesianAxisControl: (({ colors, label, getDisplayedValue, startJogging, stopJogging, disabled, ...rest }: JoggingCartesianAxisControlProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
13
14
|
displayName: string;
|
|
14
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingCartesianAxisControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianAxisControl.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAEvC,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAGzE,KAAK,gCAAgC,GAAG;IACtC,MAAM,CAAC,EAAE,0BAA0B,CAAA;IACnC,KAAK,EAAE,SAAS,CAAA;IAChB,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,KAAK,IAAI,CAAA;IAC5C,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAA;AAEtC,eAAO,MAAM,2BAA2B,wFAUjC,gCAAgC;;CAkHtC,CAAA"}
|
|
1
|
+
{"version":3,"file":"JoggingCartesianAxisControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianAxisControl.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAEvC,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAGzE,KAAK,gCAAgC,GAAG;IACtC,MAAM,CAAC,EAAE,0BAA0B,CAAA;IACnC,KAAK,EAAE,SAAS,CAAA;IAChB,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,KAAK,IAAI,CAAA;IAC5C,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAA;AAEtC,6DAA6D;AAC7D,eAAO,MAAM,2BAA2B,wFAUjC,gCAAgC;;CAkHtC,CAAA"}
|
|
@@ -7,6 +7,7 @@ type JoggingJointRotationControlProps = {
|
|
|
7
7
|
getValueDegs: () => number | undefined;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
} & React.ComponentProps<typeof Stack>;
|
|
10
|
+
/** A input widget to control an individual joint */
|
|
10
11
|
export declare const JoggingJointRotationControl: (({ startJogging, stopJogging, lowerLimitDegs, upperLimitDegs, getValueDegs, disabled, ...rest }: JoggingJointRotationControlProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
11
12
|
displayName: string;
|
|
12
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingJointRotationControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointRotationControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JoggingJointRotationControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointRotationControl.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAQvC,KAAK,gCAAgC,GAAG;IACtC,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,KAAK,IAAI,CAAA;IAC5C,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;IAEtC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAA;AAEtC,oDAAoD;AACpD,eAAO,MAAM,2BAA2B,oGAUjC,gCAAgC;;CAyLtC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UniversalRobots_UR10CB.d.ts","sourceRoot":"","sources":["../../../src/components/robots/UniversalRobots_UR10CB.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,eAAe,2CA0SjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UniversalRobots_UR3CB.d.ts","sourceRoot":"","sources":["../../../src/components/robots/UniversalRobots_UR3CB.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CA0F5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniversalRobots_UR3e.d.ts","sourceRoot":"","sources":["../../../src/components/robots/UniversalRobots_UR3e.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"UniversalRobots_UR3e.d.ts","sourceRoot":"","sources":["../../../src/components/robots/UniversalRobots_UR3e.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAuP3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UniversalRobots_UR5CB.d.ts","sourceRoot":"","sources":["../../../src/components/robots/UniversalRobots_UR5CB.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAiP5E"}
|