@wandelbots/wandelbots-js-react-components 1.11.1 → 1.11.2
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/index.cjs +25 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2536 -2510
- package/dist/index.js.map +1 -1
- package/dist/src/Setup.d.ts.map +1 -0
- package/dist/src/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -0
- package/dist/src/components/3d-viewport/PresetEnvironment.d.ts.map +1 -0
- package/dist/src/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -0
- package/dist/src/components/ConsoleFilter.d.ts.map +1 -0
- package/dist/src/components/CopyableText.d.ts.map +1 -0
- package/dist/src/components/LoadingButton.d.ts.map +1 -0
- package/dist/src/components/LoadingCover.d.ts.map +1 -0
- package/dist/src/components/ThemeSelect.d.ts.map +1 -0
- package/dist/src/components/VelocitySlider.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingCartesianTab.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingCartesianValues.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingFreedriveTab.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingJointLimitDetector.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingJointRotationControl.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingJointTab.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingJointValues.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingOptions.d.ts.map +1 -0
- package/dist/{components → src/components}/jogging/JoggingPanel.d.ts +8 -5
- package/dist/src/components/jogging/JoggingPanel.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingStore.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingVelocitySlider.d.ts.map +1 -0
- package/dist/src/components/modal/NoMotionGroupModal.d.ts.map +1 -0
- package/dist/src/components/robots/ABB_1200_07_7.d.ts.map +1 -0
- package/dist/src/components/robots/AxisConfig.d.ts.map +1 -0
- package/dist/src/components/robots/DHRobot.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX10iA.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX20iAL.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX25iA.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX25iAL.d.ts.map +1 -0
- package/dist/src/components/robots/KUKA_KR210_R2700.d.ts.map +1 -0
- package/dist/src/components/robots/KUKA_KR270_R2700.d.ts.map +1 -0
- package/dist/src/components/robots/Robot.d.ts.map +1 -0
- package/dist/src/components/robots/RobotAnimator.d.ts.map +1 -0
- package/dist/{components → src/components}/robots/SupportedRobot.d.ts +1 -1
- package/dist/src/components/robots/SupportedRobot.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR10.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR10e.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR3.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR3e.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR5.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR5e.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR1440.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR1730.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR2010.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR3120.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR900.d.ts.map +1 -0
- package/dist/src/components/utils/converters.d.ts.map +1 -0
- package/dist/src/components/utils/errorHandling.d.ts.map +1 -0
- package/dist/src/components/utils/hooks.d.ts.map +1 -0
- package/dist/src/components/utils/robotTreeQuery.d.ts.map +1 -0
- package/dist/src/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -0
- package/dist/src/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +1 -0
- package/dist/src/externalizeComponent.d.ts +7 -0
- package/dist/src/externalizeComponent.d.ts.map +1 -0
- package/dist/src/i18n/config.d.ts.map +1 -0
- package/dist/src/icons/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/themes/color.d.ts.map +1 -0
- package/dist/src/themes/theming.d.ts.map +1 -0
- package/dist/{components/jogging → stories}/JoggingCartesianAxisControl.stories.d.ts +1 -1
- package/dist/stories/JoggingCartesianAxisControl.stories.d.ts.map +1 -0
- package/dist/{components/jogging → stories}/JoggingJointRotationControl.stories.d.ts +1 -1
- package/dist/stories/JoggingJointRotationControl.stories.d.ts.map +1 -0
- package/dist/{components/jogging → stories}/JoggingPanel.stories.d.ts +1 -1
- package/dist/stories/JoggingPanel.stories.d.ts.map +1 -0
- package/dist/{components → stories}/LoadingButton.stories.d.ts +1 -1
- package/dist/stories/LoadingButton.stories.d.ts.map +1 -0
- package/dist/{components/robots → stories}/SupportedRobot.stories.d.ts +2 -2
- package/dist/stories/SupportedRobot.stories.d.ts.map +1 -0
- package/dist/{components → stories}/VelocitySlider.stories.d.ts +1 -1
- package/dist/stories/VelocitySlider.stories.d.ts.map +1 -0
- package/dist/{components/wandelscript-editor → stories}/WandelscriptEditor.stories.d.ts +1 -1
- package/dist/stories/WandelscriptEditor.stories.d.ts.map +1 -0
- package/dist/stories/novaTheme.stories.d.ts.map +1 -0
- package/package.json +5 -6
- package/src/components/VelocitySlider.tsx +1 -1
- package/src/components/jogging/JoggingCartesianAxisControl.tsx +98 -95
- package/src/components/jogging/JoggingJointRotationControl.tsx +182 -177
- package/src/components/jogging/JoggingPanel.tsx +106 -90
- package/src/components/modal/NoMotionGroupModal.tsx +70 -62
- package/src/components/robots/SupportedRobot.tsx +191 -188
- package/src/components/wandelscript-editor/WandelscriptEditor.tsx +98 -100
- package/src/externalizeComponent.tsx +8 -6
- package/src/index.ts +10 -42
- package/dist/Setup.d.ts.map +0 -1
- package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +0 -1
- package/dist/components/3d-viewport/PresetEnvironment.d.ts.map +0 -1
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +0 -1
- package/dist/components/ConsoleFilter.d.ts.map +0 -1
- package/dist/components/CopyableText.d.ts.map +0 -1
- package/dist/components/LoadingButton.d.ts.map +0 -1
- package/dist/components/LoadingButton.stories.d.ts.map +0 -1
- package/dist/components/LoadingCover.d.ts.map +0 -1
- package/dist/components/ThemeSelect.d.ts.map +0 -1
- package/dist/components/VelocitySlider.d.ts.map +0 -1
- package/dist/components/VelocitySlider.stories.d.ts.map +0 -1
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts.map +0 -1
- package/dist/components/jogging/JoggingCartesianAxisControl.stories.d.ts.map +0 -1
- package/dist/components/jogging/JoggingCartesianTab.d.ts.map +0 -1
- package/dist/components/jogging/JoggingCartesianValues.d.ts.map +0 -1
- package/dist/components/jogging/JoggingFreedriveTab.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointLimitDetector.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointRotationControl.stories.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointTab.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointValues.d.ts.map +0 -1
- package/dist/components/jogging/JoggingOptions.d.ts.map +0 -1
- package/dist/components/jogging/JoggingPanel.d.ts.map +0 -1
- package/dist/components/jogging/JoggingPanel.stories.d.ts.map +0 -1
- package/dist/components/jogging/JoggingStore.d.ts.map +0 -1
- package/dist/components/jogging/JoggingVelocitySlider.d.ts.map +0 -1
- package/dist/components/modal/NoMotionGroupModal.d.ts.map +0 -1
- package/dist/components/robots/ABB_1200_07_7.d.ts.map +0 -1
- package/dist/components/robots/AxisConfig.d.ts.map +0 -1
- package/dist/components/robots/DHRobot.d.ts.map +0 -1
- package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +0 -1
- package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX10iA.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX20iAL.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX25iA.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX25iAL.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR210_R2700.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR270_R2700.d.ts.map +0 -1
- package/dist/components/robots/Robot.d.ts.map +0 -1
- package/dist/components/robots/RobotAnimator.d.ts.map +0 -1
- package/dist/components/robots/SupportedRobot.d.ts.map +0 -1
- package/dist/components/robots/SupportedRobot.stories.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR10.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR10e.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR3.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR3e.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR5.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR5e.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR1440.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR1730.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR2010.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR3120.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR900.d.ts.map +0 -1
- package/dist/components/utils/converters.d.ts.map +0 -1
- package/dist/components/utils/errorHandling.d.ts.map +0 -1
- package/dist/components/utils/hooks.d.ts.map +0 -1
- package/dist/components/utils/robotTreeQuery.d.ts.map +0 -1
- package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +0 -1
- package/dist/components/wandelscript-editor/WandelscriptEditor.stories.d.ts.map +0 -1
- package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +0 -1
- package/dist/externalizeComponent.d.ts +0 -7
- package/dist/externalizeComponent.d.ts.map +0 -1
- package/dist/i18n/config.d.ts.map +0 -1
- package/dist/icons/index.d.ts.map +0 -1
- package/dist/index.d.ts +0 -54
- package/dist/index.d.ts.map +0 -1
- package/dist/themes/color.d.ts.map +0 -1
- package/dist/themes/novaTheme.stories.d.ts.map +0 -1
- package/dist/themes/theming.d.ts.map +0 -1
- package/src/components/LoadingButton.stories.tsx +0 -54
- package/src/components/VelocitySlider.stories.tsx +0 -27
- package/src/components/jogging/JoggingCartesianAxisControl.stories.tsx +0 -41
- package/src/components/jogging/JoggingJointRotationControl.stories.tsx +0 -50
- package/src/components/jogging/JoggingPanel.stories.tsx +0 -29
- package/src/components/robots/SupportedRobot.stories.tsx +0 -130
- package/src/components/wandelscript-editor/WandelscriptEditor.stories.tsx +0 -45
- package/src/themes/novaTheme.stories.tsx +0 -77
- /package/dist/{Setup.d.ts → src/Setup.d.ts} +0 -0
- /package/dist/{components → src/components}/3d-viewport/CoordinateSystemTransform.d.ts +0 -0
- /package/dist/{components → src/components}/3d-viewport/PresetEnvironment.d.ts +0 -0
- /package/dist/{components → src/components}/3d-viewport/SafetyZonesRenderer.d.ts +0 -0
- /package/dist/{components → src/components}/ConsoleFilter.d.ts +0 -0
- /package/dist/{components → src/components}/CopyableText.d.ts +0 -0
- /package/dist/{components → src/components}/LoadingButton.d.ts +0 -0
- /package/dist/{components → src/components}/LoadingCover.d.ts +0 -0
- /package/dist/{components → src/components}/ThemeSelect.d.ts +0 -0
- /package/dist/{components → src/components}/VelocitySlider.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingCartesianAxisControl.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingCartesianTab.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingCartesianValues.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingFreedriveTab.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingJointLimitDetector.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingJointRotationControl.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingJointTab.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingJointValues.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingOptions.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingStore.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingVelocitySlider.d.ts +0 -0
- /package/dist/{components → src/components}/modal/NoMotionGroupModal.d.ts +0 -0
- /package/dist/{components → src/components}/robots/ABB_1200_07_7.d.ts +0 -0
- /package/dist/{components → src/components}/robots/AxisConfig.d.ts +0 -0
- /package/dist/{components → src/components}/robots/DHRobot.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_ARC_Mate_100iD.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_ARC_Mate_120iD.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX10iA.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX20iAL.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX25iA.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX25iAL.d.ts +0 -0
- /package/dist/{components → src/components}/robots/KUKA_KR210_R2700.d.ts +0 -0
- /package/dist/{components → src/components}/robots/KUKA_KR270_R2700.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Robot.d.ts +0 -0
- /package/dist/{components → src/components}/robots/RobotAnimator.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR10.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR10e.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR3.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR3e.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR5.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR5e.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR1440.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR1730.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR2010.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR3120.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR900.d.ts +0 -0
- /package/dist/{components → src/components}/utils/converters.d.ts +0 -0
- /package/dist/{components → src/components}/utils/errorHandling.d.ts +0 -0
- /package/dist/{components → src/components}/utils/hooks.d.ts +0 -0
- /package/dist/{components → src/components}/utils/robotTreeQuery.d.ts +0 -0
- /package/dist/{components → src/components}/wandelscript-editor/WandelscriptEditor.d.ts +0 -0
- /package/dist/{components → src/components}/wandelscript-editor/wandelscript.tmLanguage.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/config.d.ts +0 -0
- /package/dist/{icons → src/icons}/index.d.ts +0 -0
- /package/dist/{themes → src/themes}/color.d.ts +0 -0
- /package/dist/{themes → src/themes}/theming.d.ts +0 -0
- /package/dist/{themes → stories}/novaTheme.stories.d.ts +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
-
import { JoggingPanel } from "../../index"
|
|
3
|
-
import { useArgs } from "@storybook/preview-api"
|
|
4
|
-
import { NovaClient } from "@wandelbots/wandelbots-js"
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof JoggingPanel> = {
|
|
7
|
-
component: JoggingPanel,
|
|
8
|
-
|
|
9
|
-
args: {
|
|
10
|
-
motionGroupId: "0@mock-ur5e",
|
|
11
|
-
},
|
|
12
|
-
render: function Component(args) {
|
|
13
|
-
const [, setArgs] = useArgs()
|
|
14
|
-
return (
|
|
15
|
-
<JoggingPanel
|
|
16
|
-
{...args}
|
|
17
|
-
nova={
|
|
18
|
-
new NovaClient({
|
|
19
|
-
instanceUrl: "https://mock",
|
|
20
|
-
mock: true,
|
|
21
|
-
})
|
|
22
|
-
}
|
|
23
|
-
/>
|
|
24
|
-
)
|
|
25
|
-
},
|
|
26
|
-
}
|
|
27
|
-
export default meta
|
|
28
|
-
|
|
29
|
-
export const Default: StoryObj<typeof JoggingPanel> = {}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
-
import { useState } from "react"
|
|
3
|
-
import { Canvas } from "@react-three/fiber"
|
|
4
|
-
import { Euler, Vector3, WebGLRenderer } from "three"
|
|
5
|
-
import { OrbitControls, Grid } from "@react-three/drei"
|
|
6
|
-
import { SupportedRobot } from "./SupportedRobot"
|
|
7
|
-
import type {
|
|
8
|
-
Joints,
|
|
9
|
-
MotionGroupStateJointLimitReached,
|
|
10
|
-
MotionGroupStateResponse,
|
|
11
|
-
MotionVector,
|
|
12
|
-
TcpPose,
|
|
13
|
-
} from "@wandelbots/wandelbots-js"
|
|
14
|
-
import { Setup } from "../../Setup"
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
title: "Components/SupportedRobot",
|
|
18
|
-
component: SupportedRobot,
|
|
19
|
-
decorators: [
|
|
20
|
-
(Story) => (
|
|
21
|
-
<div
|
|
22
|
-
style={{
|
|
23
|
-
width: "100%",
|
|
24
|
-
height: "100vh",
|
|
25
|
-
display: "flex",
|
|
26
|
-
justifyContent: "center",
|
|
27
|
-
alignItems: "center",
|
|
28
|
-
}}
|
|
29
|
-
>
|
|
30
|
-
<Setup cameraPosition={new Vector3(0, 0, 3)}>
|
|
31
|
-
<group position={[0, -0.25, 0]}>
|
|
32
|
-
<Story />
|
|
33
|
-
</group>
|
|
34
|
-
</Setup>
|
|
35
|
-
</div>
|
|
36
|
-
),
|
|
37
|
-
],
|
|
38
|
-
} satisfies Meta<typeof SupportedRobot>
|
|
39
|
-
|
|
40
|
-
type Story = StoryObj<typeof SupportedRobot>
|
|
41
|
-
|
|
42
|
-
function SupportedRobotScene(
|
|
43
|
-
props: React.ComponentProps<typeof SupportedRobot>,
|
|
44
|
-
) {
|
|
45
|
-
const rapidlyChangingMotionState: MotionGroupStateResponse = {
|
|
46
|
-
state: {
|
|
47
|
-
motion_group: "",
|
|
48
|
-
controller: "",
|
|
49
|
-
joint_position: {
|
|
50
|
-
joints: [0, 0, 0, 0, 0, 0],
|
|
51
|
-
} as Joints,
|
|
52
|
-
joint_velocity: {
|
|
53
|
-
joints: [0, 0, 0, 0, 0, 0],
|
|
54
|
-
} as Joints,
|
|
55
|
-
tcp_pose: {
|
|
56
|
-
position: { x: 0, y: 0, z: 0 },
|
|
57
|
-
orientation: { x: 0, y: 0, z: 0 },
|
|
58
|
-
coordinate_system: "world",
|
|
59
|
-
tcp: "flange",
|
|
60
|
-
} as TcpPose,
|
|
61
|
-
velocity: {
|
|
62
|
-
linear: { x: 0, y: 0, z: 0 },
|
|
63
|
-
angular: { x: 0, y: 0, z: 0 },
|
|
64
|
-
coordinate_system: "world",
|
|
65
|
-
} as MotionVector,
|
|
66
|
-
joint_limit_reached: {
|
|
67
|
-
limit_reached: [false, false, false, false, false, false],
|
|
68
|
-
} as MotionGroupStateJointLimitReached,
|
|
69
|
-
},
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<SupportedRobot
|
|
74
|
-
{...props}
|
|
75
|
-
rapidlyChangingMotionState={rapidlyChangingMotionState}
|
|
76
|
-
dhParameters={[
|
|
77
|
-
{
|
|
78
|
-
a: 0,
|
|
79
|
-
d: 0,
|
|
80
|
-
alpha: 1.5707963267948966,
|
|
81
|
-
theta: 0,
|
|
82
|
-
reverse_rotation_direction: false,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
a: 710,
|
|
86
|
-
d: 0,
|
|
87
|
-
alpha: 0,
|
|
88
|
-
theta: 1.5707963267948966,
|
|
89
|
-
reverse_rotation_direction: false,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
a: 0,
|
|
93
|
-
d: 0,
|
|
94
|
-
alpha: -1.5707963267948966,
|
|
95
|
-
theta: 0,
|
|
96
|
-
reverse_rotation_direction: false,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
a: 0,
|
|
100
|
-
d: -540,
|
|
101
|
-
alpha: 1.5707963267948966,
|
|
102
|
-
theta: 0,
|
|
103
|
-
reverse_rotation_direction: false,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
a: 0,
|
|
107
|
-
d: 150,
|
|
108
|
-
alpha: -1.5707963267948966,
|
|
109
|
-
theta: 0,
|
|
110
|
-
reverse_rotation_direction: false,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
a: 0,
|
|
114
|
-
d: -160,
|
|
115
|
-
alpha: 3.141592653589793,
|
|
116
|
-
theta: 0,
|
|
117
|
-
reverse_rotation_direction: false,
|
|
118
|
-
},
|
|
119
|
-
]}
|
|
120
|
-
/>
|
|
121
|
-
)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export const SupportedRobotSceneSt = {
|
|
125
|
-
args: {
|
|
126
|
-
modelFromController: "FANUC_CRX25iAL",
|
|
127
|
-
},
|
|
128
|
-
render: (args) => <SupportedRobotScene {...args} />,
|
|
129
|
-
name: "Default",
|
|
130
|
-
} satisfies Story
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
-
import { WandelscriptEditor } from "../../index"
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof WandelscriptEditor> = {
|
|
5
|
-
component: WandelscriptEditor,
|
|
6
|
-
}
|
|
7
|
-
export default meta
|
|
8
|
-
|
|
9
|
-
const defaultCode = `start = [832, -452, 289] # The start position of the edge
|
|
10
|
-
end = [817, 168, 288] # The end position of the edge
|
|
11
|
-
point_a = [602, 163, -100] # Any point on the left plane (looking from start to end)
|
|
12
|
-
point_b = [1033, 173, -100] # Any point on the right plane (looking from start to end)
|
|
13
|
-
radius = 20 # the desired radius of the final edge
|
|
14
|
-
spacing = 10 # the distance between to zig-zag corners
|
|
15
|
-
|
|
16
|
-
n = int(distance(start, end) / spacing)
|
|
17
|
-
|
|
18
|
-
edge_poses = find_edge(start, end, point_a, start, end,point_b)
|
|
19
|
-
plane_orientations = {to_orientation(edge_poses[0]), to_orientation(edge_poses[1])}
|
|
20
|
-
center_rotation = interpolate(plane_orientations[0], plane_orientations[1], 0.5)
|
|
21
|
-
|
|
22
|
-
offset = [0, 0, -radius, 0, 0, 0]
|
|
23
|
-
offset_from_axis = center_rotation ::[0, 0, distance_from_corner(edge_poses[0], edge_poses[1], radius), 0, 0, 0]:: ~center_rotation
|
|
24
|
-
|
|
25
|
-
move via p2p() to to_pose(start)::offset_from_axis :: plane_orientations[0] :: offset
|
|
26
|
-
for i = 0..<int(n / 2) - 1:
|
|
27
|
-
a = interpolate(to_pose(start), to_pose(end),(2 * i + 1) / n ) ::offset_from_axis :: center_rotation :: offset
|
|
28
|
-
b = interpolate(to_pose(start), to_pose(end),(2 * i + 2) / n ) ::offset_from_axis :: plane_orientations[modulo(i + 1, 2)] :: offset
|
|
29
|
-
move via arc(a) to b
|
|
30
|
-
if i == 10:
|
|
31
|
-
test_pose = planned_pose()
|
|
32
|
-
`
|
|
33
|
-
|
|
34
|
-
export const Editor: StoryObj<typeof WandelscriptEditor> = {
|
|
35
|
-
args: {
|
|
36
|
-
code: defaultCode,
|
|
37
|
-
},
|
|
38
|
-
render: (props) => {
|
|
39
|
-
return (
|
|
40
|
-
<div style={{ height: "400px" }}>
|
|
41
|
-
<WandelscriptEditor {...props} />
|
|
42
|
-
</div>
|
|
43
|
-
)
|
|
44
|
-
},
|
|
45
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
-
import { Color, ColorSection } from "./color"
|
|
3
|
-
import { useTheme } from "@mui/material"
|
|
4
|
-
|
|
5
|
-
const ColorPalette = () => {
|
|
6
|
-
const theme = useTheme()
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<div
|
|
10
|
-
style={{
|
|
11
|
-
fontFamily: "sans-serif",
|
|
12
|
-
}}
|
|
13
|
-
>
|
|
14
|
-
<ColorSection name="Palette">
|
|
15
|
-
<Color name="Primary" color={theme.palette.primary.main} />
|
|
16
|
-
<Color name="Secondary" color={theme.palette.secondary.main} />
|
|
17
|
-
<Color name="Background" color={theme.palette.background.default} />
|
|
18
|
-
</ColorSection>
|
|
19
|
-
<ColorSection name="Text">
|
|
20
|
-
<Color name="Primary" color={theme.palette.text.primary} />
|
|
21
|
-
<Color name="Secondary" color={theme.palette.text.secondary} />
|
|
22
|
-
</ColorSection>
|
|
23
|
-
<ColorSection name="Button">
|
|
24
|
-
<Color
|
|
25
|
-
name="Primary Background"
|
|
26
|
-
color={theme.nova.colors.buttonPrimary.background}
|
|
27
|
-
/>
|
|
28
|
-
<Color
|
|
29
|
-
name="Primary Text"
|
|
30
|
-
color={theme.nova.colors.buttonPrimary.text}
|
|
31
|
-
/>
|
|
32
|
-
<Color
|
|
33
|
-
name="Secondary Background"
|
|
34
|
-
color={theme.nova.colors.buttonSecondary.background}
|
|
35
|
-
/>
|
|
36
|
-
<Color
|
|
37
|
-
name="Secondary Text"
|
|
38
|
-
color={theme.nova.colors.buttonSecondary.background}
|
|
39
|
-
/>
|
|
40
|
-
<Color
|
|
41
|
-
name="Back Background"
|
|
42
|
-
color={theme.nova.colors.buttonBack.background}
|
|
43
|
-
/>
|
|
44
|
-
<Color name="Back Text" color={theme.nova.colors.buttonBack.text} />
|
|
45
|
-
</ColorSection>
|
|
46
|
-
<ColorSection name="Input Field">
|
|
47
|
-
<Color
|
|
48
|
-
name="Background"
|
|
49
|
-
color={theme.nova.colors.inputField.background}
|
|
50
|
-
/>
|
|
51
|
-
<Color name="Text" color={theme.nova.colors.inputField.text} />
|
|
52
|
-
<Color
|
|
53
|
-
name="Unit Background"
|
|
54
|
-
color={theme.nova.colors.inputField.unitBackground}
|
|
55
|
-
/>
|
|
56
|
-
<Color name="Unit Text" color={theme.nova.colors.inputField.unitText} />
|
|
57
|
-
</ColorSection>
|
|
58
|
-
</div>
|
|
59
|
-
)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const meta: Meta<typeof ColorPalette> = {
|
|
63
|
-
component: ColorPalette,
|
|
64
|
-
parameters: {
|
|
65
|
-
docs: {
|
|
66
|
-
description: {
|
|
67
|
-
story: "",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export default meta
|
|
74
|
-
|
|
75
|
-
type Story = StoryObj<typeof ColorPalette>
|
|
76
|
-
|
|
77
|
-
// export const colorPalette: Story = {}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{components → src/components}/wandelscript-editor/wandelscript.tmLanguage.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|