@wandelbots/wandelbots-js-react-components 1.42.0 → 1.43.0

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 CHANGED
@@ -129,7 +129,7 @@ In case you want to use the application offline, you can download the models and
129
129
  export type ConnectecMotionGroupRobotProps = {
130
130
  connectedMotionGroup: ConnectedMotionGroup // The connected motion group from wandelbots-js
131
131
  getModel?: (modelFromController: string) => string // A function that returns the URL of the robot model
132
- isGhost?: boolean // Whether the robot should be displayed transparently
132
+ transparentColor?: string // Whether the robot should be displayed transparently
133
133
  } & GroupProps
134
134
  ```
135
135
 
@@ -152,7 +152,7 @@ export type SupportedRobotProps = {
152
152
  modelFromController: string // The model name of the robot
153
153
  dhParameters: DHParameter[] // The DH parameters of the robot
154
154
  getModel?: (modelFromController: string) => string // A function that returns the URL of the robot model
155
- isGhost?: boolean // Whether the robot should be displayed transparently
155
+ transparentColor?: string // Whether the robot should be displayed transparently
156
156
  } & GroupProps
157
157
  ```
158
158
 
@@ -4,8 +4,8 @@ import type { Group } from "three";
4
4
  export type RobotProps = {
5
5
  connectedMotionGroup: ConnectedMotionGroup;
6
6
  getModel?: (modelFromController: string) => string;
7
- isGhost?: boolean;
8
7
  flangeRef?: React.Ref<Group>;
8
+ transparentColor?: string;
9
9
  } & GroupProps;
10
10
  /**
11
11
  * The Robot component is a wrapper around the SupportedRobot component
@@ -18,5 +18,5 @@ export type RobotProps = {
18
18
  *
19
19
  * @returns {JSX.Element} The rendered SupportedRobot component.
20
20
  */
21
- export declare function Robot({ connectedMotionGroup, getModel, isGhost, flangeRef, ...props }: RobotProps): import("react/jsx-runtime").JSX.Element | null;
21
+ export declare function Robot({ connectedMotionGroup, getModel, flangeRef, transparentColor, ...props }: RobotProps): import("react/jsx-runtime").JSX.Element | null;
22
22
  //# sourceMappingURL=Robot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Robot.d.ts","sourceRoot":"","sources":["../../../src/components/robots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,GAAG,KAAK,EACT,EAAE,UAAU,kDAkBZ"}
@@ -9,10 +9,10 @@ export type SupportedRobotProps = {
9
9
  rapidlyChangingMotionState: MotionGroupStateResponse;
10
10
  modelFromController: string;
11
11
  dhParameters: DHParameter[];
12
- isGhost?: boolean;
13
12
  flangeRef?: React.Ref<THREE.Group>;
14
13
  getModel?: (modelFromController: string) => string;
15
14
  postModelRender?: () => void;
15
+ transparentColor?: string;
16
16
  } & GroupProps;
17
- export declare const SupportedRobot: ({ rapidlyChangingMotionState, modelFromController, dhParameters, getModel, isGhost, flangeRef, postModelRender, ...props }: SupportedRobotProps) => import("react/jsx-runtime").JSX.Element;
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,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACzB,MAAM,mCAAmC,CAAA;AAK1C,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,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,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;CAC7B,GAAG,UAAU,CAAA;AAEd,eAAO,MAAM,cAAc,+HAUtB,mBAAmB,4CAwDvB,CAAA"}
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,mCAAmC,CAAA;AAK1C,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,4CAwDvB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Group } from "three";
2
- export declare const applyGhostStyle: (robot: Group) => void;
3
- export declare const removeGhostStyle: (robot: Group) => void;
1
+ import * as THREE from "three";
2
+ export declare const applyGhostStyle: (robot: THREE.Group, color: string) => void;
3
+ export declare const removeGhostStyle: (robot: THREE.Group) => void;
4
4
  //# sourceMappingURL=ghostStyle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ghostStyle.d.ts","sourceRoot":"","sources":["../../../src/components/robots/ghostStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAY,MAAM,OAAO,CAAA;AAG5C,eAAO,MAAM,eAAe,UAAW,KAAK,SA0C3C,CAAA;AAED,eAAO,MAAM,gBAAgB,UAAW,KAAK,SAsB5C,CAAA"}
1
+ {"version":3,"file":"ghostStyle.d.ts","sourceRoot":"","sources":["../../../src/components/robots/ghostStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,eAAO,MAAM,eAAe,UAAW,KAAK,CAAC,KAAK,SAAS,MAAM,SA4ChE,CAAA;AAED,eAAO,MAAM,gBAAgB,UAAW,KAAK,CAAC,KAAK,SAsBlD,CAAA"}