@wandelbots/wandelbots-js-react-components 2.27.1-pr.feature-update-to-react-19.361.57aba09 → 2.27.1-pr.feature-add-cycle-timer.368.3779de1
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 +1 -1
- package/dist/Setup.d.ts +1 -1
- package/dist/Setup.d.ts.map +1 -1
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts +2 -2
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -1
- package/dist/components/3d-viewport/TrajectoryRenderer.d.ts +1 -1
- package/dist/components/3d-viewport/TrajectoryRenderer.d.ts.map +1 -1
- package/dist/components/CycleTimer.d.ts +30 -0
- package/dist/components/CycleTimer.d.ts.map +1 -0
- package/dist/components/robots/DHRobot.d.ts.map +1 -1
- package/dist/components/robots/GenericRobot.d.ts +2 -2
- package/dist/components/robots/GenericRobot.d.ts.map +1 -1
- package/dist/components/robots/Robot.d.ts +2 -2
- package/dist/components/robots/Robot.d.ts.map +1 -1
- package/dist/components/robots/RobotAnimator.d.ts.map +1 -1
- package/dist/components/robots/SupportedRobot.d.ts +3 -3
- package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
- package/dist/externalizeComponent.d.ts +1 -1
- package/dist/externalizeComponent.d.ts.map +1 -1
- package/dist/index.cjs +95 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18713 -9265
- package/dist/index.js.map +1 -1
- package/package.json +33 -33
- package/src/Setup.tsx +1 -1
- package/src/components/3d-viewport/SafetyZonesRenderer.tsx +2 -2
- package/src/components/3d-viewport/TrajectoryRenderer.tsx +1 -1
- package/src/components/CycleTimer.tsx +211 -0
- package/src/components/jogging/JoggingOptions.tsx +1 -1
- package/src/components/robots/DHRobot.tsx +10 -37
- package/src/components/robots/GenericRobot.tsx +5 -4
- package/src/components/robots/Robot.tsx +2 -2
- package/src/components/robots/RobotAnimator.tsx +23 -38
- package/src/components/robots/SupportedRobot.tsx +3 -3
- package/src/components/utils/converters.ts +1 -1
- package/src/externalizeComponent.tsx +1 -1
- package/src/i18n/locales/de/translations.json +4 -1
- package/src/i18n/locales/en/translations.json +4 -1
- package/src/index.ts +1 -1
- package/dist/components/robots/RobotAnimator.test.d.ts +0 -2
- package/dist/components/robots/RobotAnimator.test.d.ts.map +0 -1
- package/dist/components/utils/interpolation.d.ts +0 -159
- package/dist/components/utils/interpolation.d.ts.map +0 -1
- package/dist/components/utils/interpolation.test.d.ts +0 -2
- package/dist/components/utils/interpolation.test.d.ts.map +0 -1
- package/dist/test/setup.d.ts +0 -2
- package/dist/test/setup.d.ts.map +0 -1
- package/src/components/robots/RobotAnimator.test.tsx +0 -113
- package/src/components/utils/interpolation.test.ts +0 -1123
- package/src/components/utils/interpolation.ts +0 -379
- package/src/test/setup.ts +0 -111
package/README.md
CHANGED
package/dist/Setup.d.ts
CHANGED
package/dist/Setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Setup.d.ts","sourceRoot":"","sources":["../src/Setup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"Setup.d.ts","sourceRoot":"","sources":["../src/Setup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,KAAK,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAG/B,KAAK,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAClC,WAAW,GAAG;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CACF,CAAA;AAED,eAAO,MAAM,KAAK,GAAI,yEAOnB,KAAK,4CAcP,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type GroupProps } from "@react-three/fiber";
|
|
2
2
|
import type { SafetySetupSafetyZone } from "@wandelbots/nova-js/v1";
|
|
3
3
|
export type SafetyZonesRendererProps = {
|
|
4
4
|
safetyZones: SafetySetupSafetyZone[];
|
|
5
|
-
} &
|
|
5
|
+
} & GroupProps;
|
|
6
6
|
export declare function SafetyZonesRenderer({ safetyZones, ...props }: SafetyZonesRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=SafetyZonesRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafetyZonesRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/SafetyZonesRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"SafetyZonesRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/SafetyZonesRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAInE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,qBAAqB,EAAE,CAAA;CACrC,GAAG,UAAU,CAAA;AAqCd,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,GAAG,KAAK,EACT,EAAE,wBAAwB,2CA6D1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GetTrajectoryResponse } from "@wandelbots/nova-js/v1";
|
|
2
2
|
export type TrajectoryRendererProps = {
|
|
3
3
|
trajectory: GetTrajectoryResponse;
|
|
4
|
-
} &
|
|
4
|
+
} & JSX.IntrinsicElements["group"];
|
|
5
5
|
export declare function TrajectoryRenderer({ trajectory, ...props }: TrajectoryRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=TrajectoryRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrajectoryRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/TrajectoryRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAGnE,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,EAAE,qBAAqB,CAAA;CAClC,GAAG,
|
|
1
|
+
{"version":3,"file":"TrajectoryRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/TrajectoryRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAGnE,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,EAAE,qBAAqB,CAAA;CAClC,GAAG,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,GAAG,KAAK,EACT,EAAE,uBAAuB,2CA4BzB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface CycleTimerProps {
|
|
2
|
+
/** Callback that receives the startNewCycle function for controlling the timer */
|
|
3
|
+
onCycleComplete: (startNewCycle: (maxTimeSeconds: number) => void) => void;
|
|
4
|
+
/** Callback fired when a cycle actually completes (reaches zero) */
|
|
5
|
+
onCycleEnd?: () => void;
|
|
6
|
+
/** Whether the timer should start automatically when maxTime is set */
|
|
7
|
+
autoStart?: boolean;
|
|
8
|
+
/** Additional CSS classes */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A circular gauge timer component that shows the remaining time of a cycle
|
|
13
|
+
*
|
|
14
|
+
* Features:
|
|
15
|
+
* - Circular gauge with 264px diameter and 40px thickness
|
|
16
|
+
* - Shows remaining time prominently in the center (60px font)
|
|
17
|
+
* - Displays "remaining time" label at top and total time at bottom
|
|
18
|
+
* - Automatically counts down and triggers callback when reaching zero
|
|
19
|
+
* - Fully localized with i18next
|
|
20
|
+
* - Material-UI theming integration
|
|
21
|
+
*
|
|
22
|
+
* @param onCycleComplete - Callback that receives the startNewCycle function for controlling the timer
|
|
23
|
+
* @param onCycleEnd - Optional callback fired when a cycle actually completes (reaches zero)
|
|
24
|
+
* @param autoStart - Whether to start timer automatically (default: true)
|
|
25
|
+
* @param className - Additional CSS classes
|
|
26
|
+
*/
|
|
27
|
+
export declare const CycleTimer: (({ onCycleComplete, onCycleEnd, autoStart, className, }: CycleTimerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=CycleTimer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CycleTimer.d.ts","sourceRoot":"","sources":["../../src/components/CycleTimer.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,eAAe,EAAE,CAAC,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,KAAK,IAAI,CAAA;IAC1E,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,4DAOhB,eAAe;;CAyKrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DHRobot.d.ts","sourceRoot":"","sources":["../../../src/components/robots/DHRobot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DHRobot.d.ts","sourceRoot":"","sources":["../../../src/components/robots/DHRobot.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAKpD,wBAAgB,OAAO,CAAC,EACtB,0BAA0B,EAC1B,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,YAAY,2CA0Gd"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GroupProps } from "@react-three/fiber";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import type { Group } from "three";
|
|
4
4
|
export type RobotModelProps = {
|
|
@@ -9,6 +9,6 @@ export type RobotModelProps = {
|
|
|
9
9
|
*/
|
|
10
10
|
postModelRender?: () => void;
|
|
11
11
|
flangeRef?: React.Ref<Group>;
|
|
12
|
-
} &
|
|
12
|
+
} & GroupProps;
|
|
13
13
|
export declare function GenericRobot({ modelURL, flangeRef, postModelRender, ...props }: RobotModelProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=GenericRobot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericRobot.d.ts","sourceRoot":"","sources":["../../../src/components/robots/GenericRobot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericRobot.d.ts","sourceRoot":"","sources":["../../../src/components/robots/GenericRobot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAsB,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAQ,MAAM,OAAO,CAAA;AAIxC,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;CAC7B,GAAG,UAAU,CAAA;AAMd,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,eAAe,EACf,GAAG,KAAK,EACT,EAAE,eAAe,2CA+CjB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type GroupProps } from "@react-three/fiber";
|
|
2
2
|
import type { ConnectedMotionGroup } from "@wandelbots/nova-js/v1";
|
|
3
3
|
import type { Group } from "three";
|
|
4
4
|
export type RobotProps = {
|
|
@@ -6,7 +6,7 @@ export type RobotProps = {
|
|
|
6
6
|
getModel?: (modelFromController: string) => string;
|
|
7
7
|
flangeRef?: React.Ref<Group>;
|
|
8
8
|
transparentColor?: string;
|
|
9
|
-
} &
|
|
9
|
+
} & GroupProps;
|
|
10
10
|
/**
|
|
11
11
|
* The Robot component is a wrapper around the SupportedRobot component
|
|
12
12
|
* for usage with @wandelbots/nova-js ConnectedMotionGroup object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Robot.d.ts","sourceRoot":"","sources":["../../../src/components/robots/Robot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"Robot.d.ts","sourceRoot":"","sources":["../../../src/components/robots/Robot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAIlC,MAAM,MAAM,UAAU,GAAG;IACvB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,QAAQ,CAAC,EAAE,CAAC,mBAAmB,EAAE,MAAM,KAAK,MAAM,CAAA;IAClD,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,GAAG,UAAU,CAAA;AAEd;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,EACpB,oBAAoB,EACpB,QAA0B,EAC1B,SAAS,EACT,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,UAAU,kDAkBZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RobotAnimator.d.ts","sourceRoot":"","sources":["../../../src/components/robots/RobotAnimator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RobotAnimator.d.ts","sourceRoot":"","sources":["../../../src/components/robots/RobotAnimator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACzB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAiB,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAS,QAAQ,EAAE,MAAM,OAAO,CAAA;AAI5C,KAAK,kBAAkB,GAAG;IACxB,0BAA0B,EAAE,wBAAwB,CAAA;IACpD,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACvE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,0BAA0B,EAC1B,YAAY,EACZ,iBAAiB,EACjB,QAAQ,GACT,EAAE,kBAAkB,2CAgEpB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GroupProps } from "@react-three/fiber";
|
|
2
2
|
import type { DHParameter, MotionGroupStateResponse } from "@wandelbots/nova-api/v1";
|
|
3
3
|
import type * as THREE from "three";
|
|
4
4
|
export type DHRobotProps = {
|
|
5
5
|
rapidlyChangingMotionState: MotionGroupStateResponse;
|
|
6
6
|
dhParameters: Array<DHParameter>;
|
|
7
|
-
} &
|
|
7
|
+
} & GroupProps;
|
|
8
8
|
export type SupportedRobotProps = {
|
|
9
9
|
rapidlyChangingMotionState: MotionGroupStateResponse;
|
|
10
10
|
modelFromController: string;
|
|
@@ -13,6 +13,6 @@ export type SupportedRobotProps = {
|
|
|
13
13
|
getModel?: (modelFromController: string) => string;
|
|
14
14
|
postModelRender?: () => void;
|
|
15
15
|
transparentColor?: string;
|
|
16
|
-
} &
|
|
16
|
+
} & GroupProps;
|
|
17
17
|
export declare const SupportedRobot: ({ rapidlyChangingMotionState, modelFromController, dhParameters, getModel, flangeRef, postModelRender, transparentColor, ...props }: SupportedRobotProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
//# sourceMappingURL=SupportedRobot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportedRobot.d.ts","sourceRoot":"","sources":["../../../src/components/robots/SupportedRobot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SupportedRobot.d.ts","sourceRoot":"","sources":["../../../src/components/robots/SupportedRobot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACzB,MAAM,yBAAyB,CAAA;AAKhC,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAQnC,MAAM,MAAM,YAAY,GAAG;IACzB,0BAA0B,EAAE,wBAAwB,CAAA;IACpD,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;CACjC,GAAG,UAAU,CAAA;AAEd,MAAM,MAAM,mBAAmB,GAAG;IAChC,0BAA0B,EAAE,wBAAwB,CAAA;IACpD,mBAAmB,EAAE,MAAM,CAAA;IAC3B,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAClC,QAAQ,CAAC,EAAE,CAAC,mBAAmB,EAAE,MAAM,KAAK,MAAM,CAAA;IAClD,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,GAAG,UAAU,CAAA;AAEd,eAAO,MAAM,cAAc,wIAUtB,mBAAmB,4CAoDvB,CAAA"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* be provided by the user application; this wrapper ensures
|
|
4
4
|
* they can be used either way.
|
|
5
5
|
*/
|
|
6
|
-
export declare function externalizeComponent<T extends
|
|
6
|
+
export declare function externalizeComponent<T extends JSX.ElementType>(Component: T): T;
|
|
7
7
|
//# sourceMappingURL=externalizeComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"externalizeComponent.d.ts","sourceRoot":"","sources":["../src/externalizeComponent.tsx"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"externalizeComponent.d.ts","sourceRoot":"","sources":["../src/externalizeComponent.tsx"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,GAAG,CAAC,WAAW,EAC5D,SAAS,EAAE,CAAC,GACX,CAAC,CAQH"}
|