diff --git a/message.html b/message.html
new file mode 100644
index 0000000..25daf00
--- /dev/null
+++ b/message.html
@@ -0,0 +1,38 @@
+
+
+
+
+
+ open pose editor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/environments/online/App.tsx b/src/environments/online/App.tsx
index a565ce6..6fe5bcf 100644
--- a/src/environments/online/App.tsx
+++ b/src/environments/online/App.tsx
@@ -11,6 +11,7 @@ import {
ResumeIcon,
} from '@radix-ui/react-icons'
import { getCurrentTime } from '../../utils/time'
+import useMessageDispatch from '../../hooks/useMessageDispatch'
const { app, threejsCanvas, gallery, background } = classes
@@ -140,6 +141,43 @@ function App() {
}
}, [editor])
+ useMessageDispatch({
+ GetAppVersion: () => __APP_VERSION__,
+ MakeImages: () => editor?.MakeImages(),
+ Pause: () => editor?.pause(),
+ Resume: () => editor?.resume(),
+ OutputWidth: (value: number) => {
+ if (editor && typeof value === 'number') {
+ editor.OutputWidth = value
+ return true
+ } else return false
+ },
+ OutputHeight: (value: number) => {
+ if (editor && typeof value === 'number') {
+ editor.OutputHeight = value
+ return true
+ } else return false
+ },
+ OnlyHand(value: boolean) {
+ if (editor && typeof value === 'boolean') {
+ editor.OnlyHand = value
+ return true
+ } else return false
+ },
+ MoveMode(value: boolean) {
+ if (editor && typeof value === 'boolean') {
+ editor.MoveMode = value
+ return true
+ } else return false
+ },
+ GetWidth: () => editor?.Width,
+ GetHeight: () => editor?.Height,
+ GetSceneData: () => editor?.GetSceneData(),
+ LockView: () => editor?.LockView(),
+ UnlockView: () => editor?.UnlockView(),
+ RestoreView: () => editor?.RestoreView(),
+ })
+
return (