vuer 0.0.32rc8__py3-none-any.whl → 0.0.32rc23__py3-none-any.whl

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.

Potentially problematic release.


This version of vuer might be problematic. Click here for more details.

Files changed (65) hide show
  1. vuer/__pycache__/events.cpython-38.pyc +0 -0
  2. vuer/__pycache__/server.cpython-38.pyc +0 -0
  3. vuer/client_build/404.html +8 -11
  4. vuer/client_build/assets/chunks/chunk-B5NqXhlg.js +2 -0
  5. vuer/client_build/assets/chunks/chunk-B5NqXhlg.js.map +1 -0
  6. vuer/client_build/assets/chunks/chunk-CmlEsaFt.js +6816 -0
  7. vuer/client_build/assets/chunks/chunk-CmlEsaFt.js.map +1 -0
  8. vuer/client_build/assets/chunks/chunk-DAfdqQjW.js +16 -0
  9. vuer/client_build/assets/chunks/chunk-DAfdqQjW.js.map +1 -0
  10. vuer/client_build/assets/chunks/chunk-DM5X-Fsx.js +53 -0
  11. vuer/client_build/assets/chunks/chunk-DM5X-Fsx.js.map +1 -0
  12. vuer/client_build/assets/chunks/chunk-DT-Gzcc9.js +102 -0
  13. vuer/client_build/assets/chunks/chunk-DT-Gzcc9.js.map +1 -0
  14. vuer/client_build/assets/chunks/chunk-mF18BbkE.js +3 -0
  15. vuer/client_build/assets/chunks/chunk-mF18BbkE.js.map +1 -0
  16. vuer/client_build/assets/entries/entry-client-routing.DcliWhPk.js +5 -0
  17. vuer/client_build/assets/entries/entry-client-routing.DcliWhPk.js.map +1 -0
  18. vuer/client_build/assets/entries/pages_editor.dxxI6p1y.js +2 -0
  19. vuer/client_build/assets/entries/pages_editor.dxxI6p1y.js.map +1 -0
  20. vuer/client_build/assets/entries/pages_error.CLFwp4P1.js +2 -0
  21. vuer/client_build/assets/entries/pages_error.CLFwp4P1.js.map +1 -0
  22. vuer/client_build/assets/entries/pages_index.cBvCoMtg.js +2 -0
  23. vuer/client_build/assets/entries/pages_index.cBvCoMtg.js.map +1 -0
  24. vuer/client_build/assets/entries/pages_simple.DNtn6Zih.js +2 -0
  25. vuer/client_build/assets/entries/pages_simple.DNtn6Zih.js.map +1 -0
  26. vuer/client_build/assets/static/editor.e6iYOnjc.css +1 -0
  27. vuer/client_build/assets/static/index.CdgWIjKL.css +1 -0
  28. vuer/client_build/assets/static/logo.2_7Lo9tV.svg +36 -0
  29. vuer/client_build/assets/static/onRenderClient.DQ-loHhw.css +1 -0
  30. vuer/client_build/editor/index.html +17 -0
  31. vuer/client_build/editor/index.pageContext.json +1 -0
  32. vuer/client_build/index.html +10 -13
  33. vuer/client_build/index.pageContext.json +1 -1
  34. vuer/client_build/pages/_error/+Page.d.ts +2 -0
  35. vuer/client_build/pages/editor/+Page.d.ts +1 -0
  36. vuer/client_build/pages/index/+Page.d.ts +2 -0
  37. vuer/client_build/pages/simple/+Page.d.ts +1 -0
  38. vuer/client_build/renderer/+config.d.ts +45 -0
  39. vuer/client_build/renderer/+onHydrationEnd.d.ts +3 -0
  40. vuer/client_build/renderer/+onPageTransitionEnd.d.ts +3 -0
  41. vuer/client_build/renderer/+onPageTransitionStart.d.ts +3 -0
  42. vuer/client_build/renderer/+onRenderClient.d.ts +2 -0
  43. vuer/client_build/renderer/+onRenderHtml.d.ts +2 -0
  44. vuer/client_build/renderer/Layout.d.ts +6 -0
  45. vuer/client_build/renderer/Link.d.ts +7 -0
  46. vuer/client_build/renderer/PageContext.d.ts +19 -0
  47. vuer/client_build/renderer/getPageTitle.d.ts +3 -0
  48. vuer/client_build/renderer/useData.d.ts +2 -0
  49. vuer/client_build/renderer/usePageContext.d.ts +9 -0
  50. vuer/client_build/simple/index.html +16 -0
  51. vuer/client_build/simple/index.pageContext.json +1 -0
  52. vuer/events.py +25 -7
  53. vuer/schemas/__init__.py +1 -0
  54. vuer/schemas/__pycache__/__init__.cpython-38.pyc +0 -0
  55. vuer/schemas/__pycache__/physics_components.cpython-38.pyc +0 -0
  56. vuer/schemas/__pycache__/scene_components.cpython-38.pyc +0 -0
  57. vuer/schemas/physics_components.py +19 -0
  58. vuer/schemas/scene_components.py +3 -3
  59. vuer/schemas/timeline_components.py +0 -0
  60. {vuer-0.0.32rc8.dist-info → vuer-0.0.32rc23.dist-info}/METADATA +16 -1
  61. {vuer-0.0.32rc8.dist-info → vuer-0.0.32rc23.dist-info}/RECORD +65 -16
  62. {vuer-0.0.32rc8.dist-info → vuer-0.0.32rc23.dist-info}/LICENSE +0 -0
  63. {vuer-0.0.32rc8.dist-info → vuer-0.0.32rc23.dist-info}/WHEEL +0 -0
  64. {vuer-0.0.32rc8.dist-info → vuer-0.0.32rc23.dist-info}/entry_points.txt +0 -0
  65. {vuer-0.0.32rc8.dist-info → vuer-0.0.32rc23.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2 @@
1
+ import{j as e,d as m,r as s,i as S,a as T,b as y,c as j}from"../chunks/chunk-DM5X-Fsx.js";import{K as P,T as w,X as g,Y as i,Z as b,_ as v,$ as E,a0 as U,a1 as z,a2 as n,a3 as o,a4 as d,a5 as l,a6 as u,a7 as D,a8 as p,a9 as f,aa as h,ab as A}from"../chunks/chunk-CmlEsaFt.js";import"../chunks/chunk-B5NqXhlg.js";function V(){const t=E(),{downlink:a}=U();s.useEffect(()=>{if(!t)return;const c=[a.subscribe("SET",t.addKeyFrame),a.subscribe("ADD",t.addKeyFrame),a.subscribe("UPDATE",t.addKeyFrame),a.subscribe("UPSERT",t.addKeyFrame),a.subscribe("REMOVE",t.addKeyFrame)];return()=>{c.forEach(x=>x())}},[t,a]);const r=s.useMemo(()=>t!=null&&t.store?new z(a,t.store):a,[a,t==null?void 0:t.store]);return t?e.jsxs(D,{offset:200,minOffset:48,hidden:!0,style:{width:"100%",height:"100%"},children:[e.jsxs(n,{frameloop:"always",stream:r,bgChildren:[e.jsx(o,{_key:"default-grid"},"default-grid")],children:[e.jsx(d,{intensity:.25},"ambient"),e.jsx(l,{intensity:1,position:[0,1,1]},"spot"),e.jsx(u,{fps:30,eventType:["squeeze"],stream:!0})]}),e.jsx(e.Fragment,{children:e.jsx(p,{children:e.jsxs(f,{children:[e.jsx(h,{}),e.jsx(A,{})]})})}),e.jsx(p,{children:e.jsx(f,{children:e.jsx(h,{})})})]}):e.jsxs(n,{frameloop:"always",stream:a,bgChildren:[e.jsx(o,{_key:"default-grid"},"default-grid")],children:[e.jsx(d,{intensity:.25},"ambient"),e.jsx(l,{intensity:1,position:[0,1,1]},"spot"),e.jsx(u,{fps:30,eventType:["squeeze"],stream:!0})]})}function R(){const t=i(({children:r})=>r),a=i(({ops:r})=>r);return e.jsxs(b,{vertical:!0,offset:-200,hidden:!0,children:[e.jsx(V,{}),e.jsx(v,{title:"Scene Graph",nodes:t,sceneOps:a})]})}function C(){const t=typeof window>"u";return e.jsxs(e.Fragment,{children:[e.jsx(m,{children:e.jsx("title",{children:"Vuer | Stereo Video and WebRTC Demo"})}),e.jsxs("main",{children:[e.jsx(P,{children:t?null:e.jsx(w,{children:e.jsx(R,{})})}),e.jsx(g,{theme:{sizes:{rootWidth:"380px",controlWidth:"200px",numberInputMinWidth:"56px"}}})]})]})}const F=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"})),O={onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},hooksTimeout:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hooksTimeout"]},valueSerialized:{type:"js-serialized",value:{data:{error:3e4,warning:1e4}}}},onHydrationEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onHydrationEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:S}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:T}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:y}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onRenderClient.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:j}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/editor/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:F}}};export{O as configValuesSerialized};
2
+ //# sourceMappingURL=pages_editor.dxxI6p1y.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pages_editor.dxxI6p1y.js","sources":["../../../../pages/editor/+Page.tsx"],"sourcesContent":["import React, { useEffect, useMemo } from 'react';\nimport { Helmet } from '@vuer-ai/react-helmet-async';\nimport './index.scss';\nimport {\n AmbientLight,\n Grid,\n Hands,\n PlaybackBar,\n PlaybackProvider,\n PointLight,\n ResizableSwitch,\n WebSocketProvider,\n Timeline,\n SceneContainer,\n useSocket,\n Combine,\n PlaybackStateProvider,\n usePlayback,\n TimelineStateProvider,\n Resizable,\n GraphView, useSceneStore,\n} from '@vuer-ai/vuer';\nimport { Leva } from 'leva';\n\nfunction VuerPlayback() {\n const playback = usePlayback();\n const { downlink } = useSocket();\n\n useEffect(() => {\n if (!playback) return;\n const cancel = [\n downlink.subscribe('SET', playback.addKeyFrame),\n downlink.subscribe('ADD', playback.addKeyFrame),\n downlink.subscribe('UPDATE', playback.addKeyFrame),\n downlink.subscribe('UPSERT', playback.addKeyFrame),\n downlink.subscribe('REMOVE', playback.addKeyFrame),\n ];\n\n return () => {\n cancel.forEach((f) => f());\n };\n }, [playback, downlink]);\n\n\n const combinedStream = useMemo(\n () => {\n if (!playback?.store) return downlink;\n return new Combine(downlink, playback.store);\n },\n [downlink, playback?.store],\n );\n\n if (!playback) {\n return (\n <SceneContainer\n frameloop=\"always\"\n stream={downlink}\n bgChildren={[\n <Grid key=\"default-grid\" _key=\"default-grid\" />,\n ]}\n >\n <AmbientLight key=\"ambient\" intensity={0.25} />\n <PointLight key=\"spot\" intensity={1} position={[0, 1, 1]} />\n <Hands fps={30} eventType={['squeeze']} stream />\n </SceneContainer>\n );\n } else return (\n <ResizableSwitch\n offset={200}\n minOffset={48}\n hidden={true}\n style={{\n width: '100%',\n height: '100%',\n }}\n >\n <SceneContainer\n frameloop=\"always\"\n stream={combinedStream}\n bgChildren={[\n <Grid key=\"default-grid\" _key=\"default-grid\" />,\n ]}\n >\n <AmbientLight key=\"ambient\" intensity={0.25} />\n <PointLight key=\"spot\" intensity={1} position={[0, 1, 1]} />\n <Hands fps={30} eventType={['squeeze']} stream />\n </SceneContainer>\n <>\n <PlaybackStateProvider>\n <TimelineStateProvider>\n <PlaybackBar />\n <Timeline />\n </TimelineStateProvider>\n </PlaybackStateProvider>\n </>\n <PlaybackStateProvider>\n <TimelineStateProvider>\n <PlaybackBar />\n </TimelineStateProvider>\n </PlaybackStateProvider>\n </ResizableSwitch>\n );\n}\n\nfunction SidePanelView() {\n // this is excessive. triggers when position/rotation changes too.\n // const scene = useSceneStore(({ children, bgChildren, rawChildren }) =>\n // ({ children, bgChildren, rawChildren }));\n const children = useSceneStore(({ children }) => children);\n const sceneOps = useSceneStore(({ ops }) => ops);\n // return <VuerPlayback />;\n\n return (\n <Resizable vertical offset={-200} hidden={true}>\n <VuerPlayback />\n <GraphView\n title=\"Scene Graph\"\n nodes={children}\n sceneOps={sceneOps}\n />\n </Resizable>\n );\n}\n\nexport default function Page() {\n const isSSR = typeof window === 'undefined';\n\n return (\n <>\n <Helmet>\n <title>Vuer | Stereo Video and WebRTC Demo</title>\n </Helmet>\n <main>\n <PlaybackProvider>\n {\n isSSR ? null : (\n <WebSocketProvider>\n {/*<VuerPlayback />*/}\n <SidePanelView />\n </WebSocketProvider>\n )\n }\n </PlaybackProvider>\n <Leva\n theme={{\n sizes: {\n rootWidth: '380px',\n controlWidth: '200px',\n numberInputMinWidth: '56px',\n },\n }}\n />\n </main>\n </>\n );\n}"],"names":["VuerPlayback","playback","usePlayback","downlink","useSocket","useEffect","cancel","f","combinedStream","useMemo","Combine","jsxs","ResizableSwitch","SceneContainer","jsx","Grid","AmbientLight","PointLight","Hands","Fragment","PlaybackStateProvider","TimelineStateProvider","PlaybackBar","Timeline","SidePanelView","children","useSceneStore","sceneOps","ops","Resizable","GraphView","Page","isSSR","Helmet","PlaybackProvider","WebSocketProvider","Leva"],"mappings":"wTAwBA,SAASA,GAAe,CACtB,MAAMC,EAAWC,IACX,CAAE,SAAAC,GAAaC,IAErBC,EAAAA,UAAU,IAAM,CACd,GAAI,CAACJ,EAAU,OACf,MAAMK,EAAS,CACbH,EAAS,UAAU,MAAOF,EAAS,WAAW,EAC9CE,EAAS,UAAU,MAAOF,EAAS,WAAW,EAC9CE,EAAS,UAAU,SAAUF,EAAS,WAAW,EACjDE,EAAS,UAAU,SAAUF,EAAS,WAAW,EACjDE,EAAS,UAAU,SAAUF,EAAS,WAAW,CAAA,EAGnD,MAAO,IAAM,CACXK,EAAO,QAASC,GAAMA,EAAG,CAAA,CAAA,CAC3B,EACC,CAACN,EAAUE,CAAQ,CAAC,EAGvB,MAAMK,EAAiBC,EAAA,QACrB,IACOR,GAAA,MAAAA,EAAU,MACR,IAAIS,EAAQP,EAAUF,EAAS,KAAK,EADdE,EAG/B,CAACA,EAAUF,GAAA,YAAAA,EAAU,KAAK,CAAA,EAG5B,OAAKA,EAeHU,EAAA,KAACC,EAAA,CACC,OAAQ,IACR,UAAW,GACX,OAAQ,GACR,MAAO,CACL,MAAO,OACP,OAAQ,MACV,EAEA,SAAA,CAAAD,EAAA,KAACE,EAAA,CACC,UAAU,SACV,OAAQL,EACR,WAAY,CACTM,EAAAA,IAAAC,EAAA,CAAwB,KAAK,cAAA,EAApB,cAAmC,CAC/C,EAEA,SAAA,CAACD,EAAAA,IAAAE,EAAA,CAA2B,UAAW,GAAA,EAArB,SAA2B,EAC7CF,EAAAA,IAACG,EAAsB,CAAA,UAAW,EAAG,SAAU,CAAC,EAAG,EAAG,CAAC,CAAA,EAAvC,MAA0C,EAC1DH,MAACI,GAAM,IAAK,GAAI,UAAW,CAAC,SAAS,EAAG,OAAM,GAAC,CAAA,CAAA,CACjD,EAEEJ,EAAAA,IAAAK,EAAA,SAAA,CAAA,SAAAL,MAACM,EACC,CAAA,SAAAT,EAAA,KAACU,EACC,CAAA,SAAA,CAAAP,EAAA,IAACQ,EAAY,EAAA,QACZC,EAAS,EAAA,CAAA,CACZ,CAAA,CACF,CAAA,EACF,QACCH,EACC,CAAA,SAAAN,EAAA,IAACO,GACC,SAACP,EAAA,IAAAQ,EAAA,EAAY,EACf,CACF,CAAA,CAAA,CAAA,CAAA,EA7CAX,EAAA,KAACE,EAAA,CACC,UAAU,SACV,OAAQV,EACR,WAAY,CACTW,EAAAA,IAAAC,EAAA,CAAwB,KAAK,cAAA,EAApB,cAAmC,CAC/C,EAEA,SAAA,CAACD,EAAAA,IAAAE,EAAA,CAA2B,UAAW,GAAA,EAArB,SAA2B,EAC7CF,EAAAA,IAACG,EAAsB,CAAA,UAAW,EAAG,SAAU,CAAC,EAAG,EAAG,CAAC,CAAA,EAAvC,MAA0C,EAC1DH,MAACI,GAAM,IAAK,GAAI,UAAW,CAAC,SAAS,EAAG,OAAM,GAAC,CAAA,CAAA,CAAA,CAuCvD,CAEA,SAASM,GAAgB,CAIvB,MAAMC,EAAWC,EAAc,CAAC,CAAE,SAAAD,CAAAA,IAAeA,CAAQ,EACnDE,EAAWD,EAAc,CAAC,CAAE,IAAAE,KAAUA,CAAG,EAG/C,cACGC,EAAU,CAAA,SAAQ,GAAC,OAAQ,KAAM,OAAQ,GACxC,SAAA,CAAAf,EAAA,IAACd,EAAa,EAAA,EACdc,EAAA,IAACgB,EAAA,CACC,MAAM,cACN,MAAOL,EACP,SAAAE,CAAA,CACF,CACF,CAAA,CAAA,CAEJ,CAEA,SAAwBI,GAAO,CACvB,MAAAC,EAAQ,OAAO,OAAW,IAEhC,OAEIrB,EAAA,KAAAQ,WAAA,CAAA,SAAA,CAAAL,MAACmB,EACC,CAAA,SAAAnB,EAAA,IAAC,QAAM,CAAA,SAAA,qCAAmC,CAAA,EAC5C,SACC,OACC,CAAA,SAAA,CAACA,EAAAA,IAAAoB,EAAA,CAEG,WAAQ,KACNpB,EAAA,IAACqB,GAEC,SAACrB,EAAAA,IAAAU,EAAA,CAAA,CAAc,EACjB,CAGN,CAAA,EACAV,EAAA,IAACsB,EAAA,CACC,MAAO,CACL,MAAO,CACL,UAAW,QACX,aAAc,QACd,oBAAqB,MACvB,CACF,CAAA,CACF,CAAA,EACF,CACF,CAAA,CAAA,CAEJ"}
@@ -0,0 +1,2 @@
1
+ import{u as r,j as o,i,a as n,b as l,c as d}from"../chunks/chunk-DM5X-Fsx.js";function s(){const e=r();let{is404:t,abortReason:a}=e;return a||(a=t?"Page not found.":"Something went wrong."),o.jsx(p,{children:o.jsx("p",{style:{fontSize:"1.3em"},children:a})})}function p({style:e,...t}){return o.jsx("div",{style:{height:"calc(100vh - 100px)",display:"flex",justifyContent:"center",alignItems:"center",...e},...t})}const u=Object.freeze(Object.defineProperty({__proto__:null,Page:s},Symbol.toStringTag,{value:"Module"})),h={onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},hooksTimeout:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hooksTimeout"]},valueSerialized:{type:"js-serialized",value:{data:{error:3e4,warning:1e4}}}},onHydrationEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onHydrationEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:i}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:n}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:l}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onRenderClient.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:d}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/_error/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:u}}};export{h as configValuesSerialized};
2
+ //# sourceMappingURL=pages_error.CLFwp4P1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pages_error.CLFwp4P1.js","sources":["../../../../pages/_error/+Page.tsx"],"sourcesContent":["export { Page }\n\nimport React from 'react'\nimport { usePageContext } from '../../renderer/usePageContext'\n\nfunction Page() {\n const pageContext = usePageContext()\n let { is404, abortReason } = pageContext\n if (!abortReason) {\n abortReason = is404 ? 'Page not found.' : 'Something went wrong.'\n }\n return (\n <Center>\n <p style={{ fontSize: '1.3em' }}>{abortReason}</p>\n </Center>\n )\n}\n\nfunction Center({ style, ...props }: any) {\n return (\n <div\n style={{\n height: 'calc(100vh - 100px)',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n ...style\n }}\n {...props}\n ></div>\n )\n}\n"],"names":["Page","pageContext","usePageContext","is404","abortReason","jsx","Center","style","props"],"mappings":"8EAKA,SAASA,GAAO,CACd,MAAMC,EAAcC,IAChB,GAAA,CAAE,MAAAC,EAAO,YAAAC,CAAgB,EAAAH,EAC7B,OAAKG,IACHA,EAAcD,EAAQ,kBAAoB,yBAG1CE,EAAAA,IAACC,EACC,CAAA,SAAAD,EAAA,IAAC,IAAE,CAAA,MAAO,CAAE,SAAU,OAAA,EAAY,SAAAD,CAAY,CAAA,CAChD,CAAA,CAEJ,CAEA,SAASE,EAAO,CAAE,MAAAC,EAAO,GAAGC,GAAc,CAEtC,OAAAH,EAAA,IAAC,MAAA,CACC,MAAO,CACL,OAAQ,sBACR,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,GAAGE,CACL,EACC,GAAGC,CAAA,CAAA,CAGV"}
@@ -0,0 +1,2 @@
1
+ import{r as o,j as t,d as i,i as l,a as d,b as u,c as p}from"../chunks/chunk-DM5X-Fsx.js";import{ac as f,T as h,ad as c,a3 as m,a4 as T,a5 as y,a6 as S}from"../chunks/chunk-CmlEsaFt.js";import"../chunks/chunk-B5NqXhlg.js";const x="_main_ct6c1_1",g={main:x};function w(){return t.jsx(c,{bgChildren:[t.jsx(m,{},"default-grid"),t.jsx(T,{intensity:1},"default-ambient-light"),t.jsx(y,{intensity:1,position:[0,1,1]},"default-point-light")],children:t.jsx(S,{},"hands")})}function P(){const s=typeof window>"u",[{message:v,mtype:E},a]=o.useState({message:null,mtype:null});o.useEffect(()=>{const e=console.error;return()=>{console.error=e}},[]),o.useEffect(()=>{const e=console.warn;return console.warn=r=>{setTimeout(()=>{a({message:r,mtype:"warning"}),console.log(r)},1)},()=>{console.warn=e}},[]);const n=o.useMemo(()=>({showError:e=>setTimeout(()=>a({message:e,mtype:"error"}),1),showSuccess:e=>setTimeout(()=>a({message:e,mtype:"success"}),1),showWarning:e=>setTimeout(()=>a({message:e,mtype:"warning"}),1),showInfo:e=>setTimeout(()=>a({message:e,mtype:"info"}),1),showModal:e=>{console.log(e)}}),[]);return t.jsxs(t.Fragment,{children:[t.jsx(i,{children:t.jsx("title",{children:"Vuer (Technical Preview)"})}),t.jsx("main",{className:g.main,children:t.jsx(f,{value:n,children:s?null:t.jsx(h,{children:t.jsx(w,{})})})})]})}const j=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),D={onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},hooksTimeout:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hooksTimeout"]},valueSerialized:{type:"js-serialized",value:{data:{error:3e4,warning:1e4}}}},onHydrationEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onHydrationEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:l}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:d}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:u}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onRenderClient.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:p}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/index/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:j}}};export{D as configValuesSerialized};
2
+ //# sourceMappingURL=pages_index.cBvCoMtg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pages_index.cBvCoMtg.js","sources":["../../../../pages/index/+Page.tsx"],"sourcesContent":["import React, { Suspense, useEffect, useMemo, useState } from 'react';\nimport { Helmet, HelmetProvider } from '@vuer-ai/react-helmet-async';\n// import { ClickAwayListener, useSnackbar } from '@mui/base';\n// import {\n// InfoSnackbar,\n// Snackbars,\n// SuccessSnackbar,\n// WarningSnackbar,\n// } from './_components/snackbars';\nimport style from './index.module.scss';\nimport {\n VuerRoot,\n AppProvider,\n WebSocketProvider,\n Grid,\n AmbientLight,\n Hands,\n PointLight,\n} from '@vuer-ai/vuer';\n\ntype MTypes = 'error' | 'warning' | 'success' | 'info';\ntype StateT = {\n message?: string | null;\n mtype?: MTypes | null;\n};\n\nfunction AppView() {\n return (\n // <MuJoCoProvider>\n <VuerRoot\n bgChildren={[\n <Grid key=\"default-grid\" />,\n <AmbientLight intensity={1} key=\"default-ambient-light\" />,\n <PointLight\n intensity={1}\n position={[0, 1, 1]}\n key=\"default-point-light\"\n />,\n ]}\n >\n <Hands key=\"hands\" />\n </VuerRoot>\n // </MuJoCoProvider>\n );\n}\n\nfunction Page() {\n const isSSR = typeof window === 'undefined';\n const [{ message, mtype }, setState] = useState({\n message: null,\n mtype: null,\n } as StateT);\n\n // const { getRootProps, onClickAway } = useSnackbar({\n // onClose: () => {\n // setState({ message: null, mtype: null });\n // },\n // open: !!message,\n // autoHideDuration: 5000,\n // });\n\n useEffect(() => {\n const oldError = console.error;\n // console.error = (err) => {\n // setTimeout(() => {\n // setState({ message: err, mtype: \"error\" });\n // console.log(err);\n // }, 1)\n // };\n return () => {\n console.error = oldError;\n };\n }, []);\n\n useEffect(() => {\n const oldWarn = console.warn;\n console.warn = (err) => {\n setTimeout(() => {\n setState({ message: err, mtype: 'warning' });\n console.log(err);\n }, 1);\n };\n return () => {\n console.warn = oldWarn;\n };\n }, []);\n\n const context = useMemo(() => ({\n showError: (message: string) =>\n setTimeout(() => setState({ message, mtype: 'error' }), 1),\n showSuccess: (message: string) =>\n setTimeout(() => setState({ message, mtype: 'success' }), 1),\n showWarning: (message: string) =>\n setTimeout(() => setState({ message, mtype: 'warning' }), 1),\n showInfo: (message: string) =>\n setTimeout(() => setState({ message, mtype: 'info' }), 1),\n showModal: (message: string) => {\n console.log(message);\n },\n }), []);\n\n // function render({ message, mtype }: StateT) {\n // switch (mtype) {\n // case 'error':\n // return <Snackbars {...getRootProps()}>ERROR: {message}</Snackbars>;\n // case 'warning':\n // return (\n // <WarningSnackbar {...getRootProps()}>\n // WARNING: {message}\n // </WarningSnackbar>\n // );\n // case 'success':\n // return (\n // <SuccessSnackbar {...getRootProps()}>\n // SUCCESS: {message}\n // </SuccessSnackbar>\n // );\n // case 'info':\n // default:\n // return <InfoSnackbar {...getRootProps()}>INFO: {message}</InfoSnackbar>;\n // }\n // }\n\n // if (isSSR) return null;\n return (\n <>\n <Helmet>\n <title>Vuer (Technical Preview)</title>\n </Helmet>\n <main className={style.main}>\n {/*{message ? (*/}\n {/* <ClickAwayListener onClickAway={onClickAway}>*/}\n {/* {render({ message, mtype })}*/}\n {/* </ClickAwayListener>*/}\n {/*) : null}*/}\n {/*<Suspense fallback={<div>Loading...</div>}>*/}\n <AppProvider value={context}>\n {!isSSR ? (\n <WebSocketProvider>\n <AppView />\n </WebSocketProvider>\n ) : null}\n </AppProvider>\n {/*</Suspense>*/}\n </main>\n </>\n );\n}\n\nexport default Page;\n"],"names":["AppView","jsx","VuerRoot","Grid","AmbientLight","PointLight","Hands","Page","isSSR","message","mtype","setState","useState","useEffect","oldError","oldWarn","err","context","useMemo","jsxs","Fragment","Helmet","style","AppProvider","WebSocketProvider"],"mappings":"iQA0BA,SAASA,GAAU,CACjB,OAEEC,EAAA,IAACC,EAAA,CACC,WAAY,CACVD,MAACE,KAAS,cAAe,EACxBF,EAAAA,IAAAG,EAAA,CAAa,UAAW,CAAA,EAAO,uBAAwB,EACxDH,EAAA,IAACI,EAAA,CACC,UAAW,EACX,SAAU,CAAC,EAAG,EAAG,CAAC,CAAA,EACd,qBACN,CACF,EAEA,SAAAJ,EAAA,IAACK,KAAU,OAAQ,CAAA,CACrB,CAGJ,CAEA,SAASC,GAAO,CACR,MAAAC,EAAQ,OAAO,OAAW,IAC1B,CAAC,CAAE,QAAAC,EAAS,MAAAC,CAAS,EAAAC,CAAQ,EAAIC,EAAAA,SAAS,CAC9C,QAAS,KACT,MAAO,IAAA,CACE,EAUXC,EAAAA,UAAU,IAAM,CACd,MAAMC,EAAW,QAAQ,MAOzB,MAAO,IAAM,CACX,QAAQ,MAAQA,CAAA,CAEpB,EAAG,CAAE,CAAA,EAELD,EAAAA,UAAU,IAAM,CACd,MAAME,EAAU,QAAQ,KAChB,eAAA,KAAQC,GAAQ,CACtB,WAAW,IAAM,CACfL,EAAS,CAAE,QAASK,EAAK,MAAO,SAAW,CAAA,EAC3C,QAAQ,IAAIA,CAAG,GACd,CAAC,CAAA,EAEC,IAAM,CACX,QAAQ,KAAOD,CAAA,CAEnB,EAAG,CAAE,CAAA,EAEC,MAAAE,EAAUC,EAAAA,QAAQ,KAAO,CAC7B,UAAYT,GACV,WAAW,IAAME,EAAS,CAAE,QAAAF,EAAS,MAAO,OAAS,CAAA,EAAG,CAAC,EAC3D,YAAcA,GACZ,WAAW,IAAME,EAAS,CAAE,QAAAF,EAAS,MAAO,SAAW,CAAA,EAAG,CAAC,EAC7D,YAAcA,GACZ,WAAW,IAAME,EAAS,CAAE,QAAAF,EAAS,MAAO,SAAW,CAAA,EAAG,CAAC,EAC7D,SAAWA,GACT,WAAW,IAAME,EAAS,CAAE,QAAAF,EAAS,MAAO,MAAQ,CAAA,EAAG,CAAC,EAC1D,UAAYA,GAAoB,CAC9B,QAAQ,IAAIA,CAAO,CACrB,CAAA,GACE,CAAE,CAAA,EAyBN,OAEIU,EAAA,KAAAC,WAAA,CAAA,SAAA,CAAAnB,MAACoB,EACC,CAAA,SAAApB,EAAA,IAAC,QAAM,CAAA,SAAA,0BAAwB,CAAA,EACjC,QACC,OAAK,CAAA,UAAWqB,EAAM,KAOrB,SAAArB,MAACsB,GAAY,MAAON,EACjB,SAACT,EAIE,WAHDgB,EACC,CAAA,SAAAvB,EAAA,IAACD,IAAQ,CACX,CAAA,EAEJ,CAEF,CAAA,CACF,CAAA,CAAA,CAEJ"}
@@ -0,0 +1,2 @@
1
+ import{j as e,H as t,d as a,r,i as o,a as i,b as l,c as d}from"../chunks/chunk-DM5X-Fsx.js";import{E as n,J as s}from"../chunks/chunk-CmlEsaFt.js";import"../chunks/chunk-B5NqXhlg.js";function p(){return e.jsxs(t,{children:[e.jsx(a,{children:e.jsx("title",{children:"Vuer | Stereo Video and WebRTC Demo"})}),e.jsx("main",{children:e.jsx(r.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsx(n,{children:e.jsx(s,{})})})})]})}const u=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"})),S={onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},hooksTimeout:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+config.ts",fileExportPathToShowToUser:["default","hooksTimeout"]},valueSerialized:{type:"js-serialized",value:{data:{error:3e4,warning:1e4}}}},onHydrationEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onHydrationEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:o}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:i}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:l}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/+onRenderClient.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:d}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/simple/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:u}}};export{S as configValuesSerialized};
2
+ //# sourceMappingURL=pages_simple.DNtn6Zih.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pages_simple.DNtn6Zih.js","sources":["../../../../pages/simple/+Page.tsx"],"sourcesContent":["import { Suspense, useEffect, useMemo } from 'react';\nimport { Helmet, HelmetProvider } from '@vuer-ai/react-helmet-async';\nimport { SimpleComponent, SimpleProvider } from '@vuer-ai/vuer';\n\n// const { SimpleComponent, SimpleProvider } = require('@vuer-ai/vuer');\n\nexport default function Page() {\n const isSSR = typeof window === 'undefined';\n\n return (\n <HelmetProvider>\n <Helmet>\n <title>Vuer | Stereo Video and WebRTC Demo</title>\n </Helmet>\n <main>\n <Suspense fallback={<div>Loading...</div>}>\n <SimpleProvider>\n <SimpleComponent />\n </SimpleProvider>\n {/*{isSSR ? null : (*/}\n {/*)}*/}\n </Suspense>\n </main>\n </HelmetProvider>\n );\n}\n"],"names":["Page","HelmetProvider","jsx","Helmet","Suspense","SimpleProvider","SimpleComponent"],"mappings":"uLAMA,SAAwBA,GAAO,CAG7B,cACGC,EACC,CAAA,SAAA,CAAAC,MAACC,EACC,CAAA,SAAAD,EAAA,IAAC,QAAM,CAAA,SAAA,qCAAmC,CAAA,EAC5C,EACCA,EAAAA,IAAA,OAAA,CACC,SAACA,MAAAE,EAAAA,SAAA,CAAS,SAAWF,EAAA,IAAA,MAAA,CAAI,SAAU,aAAA,EACjC,eAACG,EACC,CAAA,SAAAH,MAACI,EAAgB,CAAA,CAAA,EACnB,EAGF,CACF,CAAA,CACF,CAAA,CAAA,CAEJ"}
@@ -0,0 +1 @@
1
+ html,body{width:100vw;height:100vh}main{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center}
@@ -0,0 +1 @@
1
+ ._main_ct6c1_1{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;width:100vw;overflow:hidden}
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="175" height="175" fill="none" version="1.1" viewBox="0 0 175 175" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
3
+ <metadata>
4
+ <rdf:RDF>
5
+ <cc:Work rdf:about="">
6
+ <dc:format>image/svg+xml</dc:format>
7
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
8
+ <dc:title/>
9
+ </cc:Work>
10
+ </rdf:RDF>
11
+ </metadata>
12
+ <defs>
13
+ <linearGradient id="linearGradient880" x1="108.64" x2="115.51" y1="88.726" y2="136.2" gradientTransform="matrix(1.0498 0 0 1.0498 -2.9171 -2.9658)" gradientUnits="userSpaceOnUse">
14
+ <stop stop-color="#ffea83" offset="0"/>
15
+ <stop stop-color="#FFDD35" offset=".083333"/>
16
+ <stop stop-color="#FFA800" offset="1"/>
17
+ </linearGradient>
18
+ <linearGradient id="paint2_linear" x1="48.975" x2="61.299" y1="3.9232" y2="158.04" gradientTransform="translate(-2.832e-5)" gradientUnits="userSpaceOnUse">
19
+ <stop stop-color="#FFEA83" offset="0"/>
20
+ <stop stop-color="#FFDD35" offset=".083333"/>
21
+ <stop stop-color="#FFA800" offset="1"/>
22
+ </linearGradient>
23
+ <linearGradient id="paint0_linear-6" x1="-1.4492" x2="116.62" y1="-5.8123" y2="137.08" gradientTransform="translate(-2.832e-5)" gradientUnits="userSpaceOnUse">
24
+ <stop stop-color="#41D1FF" offset="0"/>
25
+ <stop stop-color="#BD34FE" offset="1"/>
26
+ </linearGradient>
27
+ </defs>
28
+ <circle cx="87.5" cy="87.5" r="87.5" fill="#c4c4c4"/>
29
+ <circle cx="87.5" cy="87.5" r="87.5" fill="url(#paint0_linear-6)"/>
30
+ <g transform="translate(632.92 54.355)" fill="#d38787" stroke-width="1.0614">
31
+ <path d="m-549.75 68.457c-5.7533-3.1217-6.1166-5.2295-6.1166-35.489 0-30.458 0.35464-32.448 6.3339-35.54 3.9943-2.0655 24.279-2.2805 26.735-0.28333 0.89718 0.72974 6.7203 6.6637 12.94 13.187l11.309 11.86v19.575c0 18.473-0.12956 19.74-2.3011 22.5-4.0223 5.1136-7.558 5.8565-27.65 5.8099-14.15-0.03287-19.008-0.40294-21.25-1.6191zm42.473-6.3594c2.27-1.59 2.359-2.2909 2.359-18.575v-16.923h-6.9521c-12.443 0-16.4-4.0845-16.4-16.93v-7.4828h-8.9464c-6.7178 0-9.3619 0.41549-10.614 1.668-2.5031 2.5031-2.5031 55.724 0 58.228 2.4502 2.4502 37.058 2.4636 40.553 0.01609zm-1.8867-42.165c0-0.16422-2.8659-3.1346-6.3686-6.6008l-6.3686-6.3022v4.9328c0 6.3185 1.8955 8.2687 8.0366 8.2687 2.5854 0 4.7007-0.13434 4.7007-0.29859zm-57.57 44.279c-5.6185-3.0486-6.1166-5.593-6.1166-31.243 0-18.891 0.31331-24.063 1.6101-26.571 1.809-3.4981 6.5048-6.3339 10.489-6.3339 2.4847 0 2.5814 0.19984 1.541 3.1843-0.61054 1.7514-1.7457 3.1843-2.5226 3.1843-0.77686 0-2.1631 0.75059-3.0805 1.668-2.4923 2.4923-2.4923 47.244 0 49.736 0.91739 0.9174 2.3036 1.668 3.0805 1.668 0.77688 0 1.912 1.4329 2.5226 3.1843 1.0562 3.0298 0.97108 3.1822-1.7537 3.1418-1.575-0.02331-4.1713-0.75194-5.7694-1.6191zm-16.983-4.2458c-5.4392-2.9512-6.1166-5.9415-6.1166-26.997 0-15.096 0.345-19.878 1.6101-22.325 1.7476-3.3796 6.4758-6.3339 10.137-6.3339 1.8666 0 2.1789 0.44955 1.6594 2.3882-0.35184 1.3135-0.64655 2.7465-0.65453 3.1843-8e-3 0.43784-0.69682 0.79608-1.5308 0.79608-0.83399 0-2.2669 0.75059-3.1843 1.668-2.4767 2.4767-2.4767 38.768 0 41.244 0.91741 0.91739 2.2946 1.668 3.0605 1.668 1.196 0 2.6402 2.995 2.6871 5.5726 0.0241 1.3294-4.5804 0.80962-7.6676-0.8655z" style="mix-blend-mode:lighten"/>
32
+ <path d="m-552.2 68.911c-5.7533-3.1217-6.1166-5.2295-6.1166-35.489 0-30.458 0.35463-32.448 6.3339-35.54 3.9943-2.0655 24.279-2.2805 26.735-0.28333 0.89718 0.72974 6.7203 6.6637 12.94 13.187l11.309 11.86v19.575c0 18.473-0.12957 19.74-2.3011 22.5-4.0223 5.1136-7.558 5.8565-27.65 5.8099-14.15-0.03287-19.008-0.40294-21.25-1.6191zm42.473-6.3594c2.27-1.59 2.359-2.2909 2.359-18.575v-16.923h-6.952c-12.443 0-16.4-4.0845-16.4-16.93v-7.4828h-8.9464c-6.7179 0-9.3619 0.41549-10.614 1.668-2.5031 2.5031-2.5031 55.724 0 58.228 2.4502 2.4502 37.058 2.4636 40.553 0.01609zm-1.8867-42.165c0-0.16422-2.8659-3.1346-6.3686-6.6008l-6.3686-6.3022v4.9328c0 6.3185 1.8955 8.2688 8.0366 8.2688 2.5854 0 4.7007-0.13434 4.7007-0.29859zm-57.57 44.279c-5.6185-3.0486-6.1166-5.593-6.1166-31.243 0-18.891 0.31331-24.063 1.6101-26.571 1.809-3.4981 6.5048-6.3339 10.489-6.3339 2.4847 0 2.5814 0.19984 1.541 3.1843-0.61054 1.7514-1.7457 3.1843-2.5226 3.1843-0.77687 0-2.1631 0.75059-3.0805 1.668-2.4923 2.4923-2.4923 47.244 0 49.736 0.91741 0.91739 2.3036 1.668 3.0805 1.668 0.77686 0 1.912 1.4329 2.5226 3.1843 1.0562 3.0298 0.97107 3.1822-1.7537 3.1418-1.575-0.02331-4.1713-0.75194-5.7694-1.6191zm-16.983-4.2458c-5.4392-2.9512-6.1166-5.9415-6.1166-26.997 0-15.096 0.34502-19.878 1.6101-22.325 1.7476-3.3796 6.4758-6.3339 10.137-6.3339 1.8666 0 2.1789 0.44955 1.6594 2.3882-0.35182 1.3135-0.64653 2.7465-0.65452 3.1843-8e-3 0.43784-0.69683 0.79608-1.5308 0.79608-0.83397 0-2.2669 0.75059-3.1843 1.668-2.4767 2.4767-2.4767 38.768 0 41.245 0.9174 0.91739 2.2946 1.668 3.0605 1.668 1.196 0 2.6402 2.995 2.6871 5.5726 0.0241 1.3294-4.5804 0.80962-7.6676-0.8655z" fill-opacity=".47466" style="mix-blend-mode:lighten"/>
33
+ </g>
34
+ <path d="m128.48 88.913-24.027 4.6784c-0.39475 0.07685-0.68766 0.40944-0.71076 0.80849l-1.4782 24.805c-0.0347 0.58371 0.50497 1.0372 1.0792 0.90602l6.6886-1.5338c0.62676-0.14383 1.1916 0.40419 1.0635 1.0299l-1.9874 9.6702c-0.13438 0.65091 0.48084 1.2073 1.1202 1.0142l4.1322-1.2472c0.64041-0.19317 1.2556 0.36535 1.1202 1.0162l-3.158 15.191c-0.19842 0.95011 1.074 1.4677 1.6042 0.653l0.35485-0.54382 19.578-38.827c0.32755-0.64985-0.23727-1.391-0.95641-1.2535l-6.8849 1.3207c-0.6467 0.12389-1.1979-0.47453-1.0152-1.1034l4.4944-15.482c0.18266-0.63012-0.36955-1.2295-1.0173-1.1034z" fill="url(#linearGradient880)" stroke-width="1.0498"/>
35
+ <rect x="3" y="3" width="169" height="169" rx="84.5" stroke="url(#paint2_linear)" stroke-width="6" style="mix-blend-mode:soft-light"/>
36
+ </svg>
@@ -0,0 +1 @@
1
+ body{margin:0;font-family:sans-serif}*{box-sizing:border-box}a{text-decoration:none}code{font-family:monospace;background-color:#eaeaea;padding:3px 5px;border-radius:4px}#page-container{position:relative;width:100%}#page-container:before{content:"";position:absolute;width:100%;height:100%;z-index:999;background:no-repeat url("data:image/svg+xml,%3csvg%20version='1.1'%20id='L9'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20100%20100'%20enable-background='new%200%200%200%200'%20xml:space='preserve'%3e%3cpath%20fill='%23aaa'%20d='M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50%20M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50'%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20dur='1s'%20from='0%2050%2050'%20to='360%2050%2050'%20repeatCount='indefinite'%3e%3c/animateTransform%3e%3c/path%3e%3c/svg%3e");background-size:100px;background-position:center center;pointer-events:none;opacity:0}body.page-is-transitioning #page-container:before{opacity:1}#page-content,#page-container:before{transition:opacity .5s ease-in-out}body.page-is-transitioning #page-content{opacity:.17}#sidebar a{padding:2px 10px;margin-left:-10px}#sidebar a.is-active{background-color:#eee}
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <link rel="stylesheet" type="text/css" href="/assets/static/onRenderClient.DQ-loHhw.css">
5
+ <link rel="stylesheet" type="text/css" href="/assets/static/editor.e6iYOnjc.css">
6
+ <title>Vuer.AI</title>
7
+ </head>
8
+ <body>
9
+ <div id="react-root"><div id="react-root" style="padding:0;height:100%;width:100%"><main><div class="leva-c-kWgxhW leva-c-kWgxhW-bCBHqk-fill-false leva-c-kWgxhW-eXrJvq-flat-false leva-c-kWgxhW-czBHep-hideTitleBar-false leva-t-crYJWz" style="display:none"><div class="leva-c-hwBXYF leva-c-hwBXYF-kbKHjH-mode-drag"><i class="leva-c-ctBOWy"><svg width="12" height="8" viewBox="0 0 9 5" xmlns="http://www.w3.org/2000/svg" style="transform:rotate(0deg)" class="leva-c-cHvNmv"><path d="M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"></path></svg></i><div class="leva-c-iLtnIm leva-c-iLtnIm-bOgTWZ-drag-true"><svg width="20" height="10" viewBox="0 0 28 14" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2"></circle><circle cx="14" cy="2" r="2"></circle><circle cx="26" cy="2" r="2"></circle><circle cx="2" cy="12" r="2"></circle><circle cx="14" cy="12" r="2"></circle><circle cx="26" cy="12" r="2"></circle></svg></div><i class="leva-c-ctBOWy"><svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 0 20 20"><path d="M9 9a2 2 0 114 0 2 2 0 01-4 0z"></path><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z" clip-rule="evenodd"></path></svg></i></div><div class="leva-c-fxiFTg leva-c-fxiFTg-dbaoCM-toggled-false"><input placeholder="[Open filter with CMD+SHIFT+L]" class="leva-c-iYYzmZ" value=""/><i style="visibility:hidden" class="leva-c-ctBOWy"><svg xmlns="http://www.w3.org/2000/svg" height="14" width="14" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd"></path></svg></i></div></div></main></div></div>
10
+ <script id="vike_pageContext" type="application/json">{"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/editor","routeParams":{},"data":"!undefined"}</script>
11
+ <script src="/assets/entries/entry-client-routing.DcliWhPk.js" type="module" async></script>
12
+ <link rel="modulepreload" href="/assets/entries/pages_editor.dxxI6p1y.js" as="script" type="text/javascript">
13
+ <link rel="modulepreload" href="/assets/chunks/chunk-DM5X-Fsx.js" as="script" type="text/javascript">
14
+ <link rel="modulepreload" href="/assets/chunks/chunk-CmlEsaFt.js" as="script" type="text/javascript">
15
+ <link rel="modulepreload" href="/assets/chunks/chunk-B5NqXhlg.js" as="script" type="text/javascript">
16
+ </body>
17
+ </html>
@@ -0,0 +1 @@
1
+ {"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/editor","routeParams":{},"data":"!undefined"}
@@ -1,20 +1,17 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <link rel="stylesheet" type="text/css" href="/assets/static/default.page.client.7be06a4d.css">
5
- <title>Vuer (Technical Preview)</title>
4
+ <link rel="stylesheet" type="text/css" href="/assets/static/onRenderClient.DQ-loHhw.css">
5
+ <link rel="stylesheet" type="text/css" href="/assets/static/index.CdgWIjKL.css">
6
+ <title>Vuer.AI</title>
6
7
  </head>
7
8
  <body>
8
- <div id="page-view"><!--$--><!--/$--></div>
9
- <script type="module" src="/assets/entries/entry-client-routing.3c853994.js" defer></script>
10
- <link rel="modulepreload" href="/assets/entries/pages_index.page.041ef5af.js" as="script" type="text/javascript">
11
- <link rel="modulepreload" href="/assets/chunks/chunk-3010a972.js" as="script" type="text/javascript">
12
- <link rel="modulepreload" href="/assets/chunks/chunk-af3ddd0a.js" as="script" type="text/javascript">
13
- <link rel="modulepreload" href="/assets/chunks/chunk-cf010ec4.js" as="script" type="text/javascript">
14
- <link rel="modulepreload" href="/assets/chunks/chunk-d9bdcef8.js" as="script" type="text/javascript">
15
- <link rel="modulepreload" href="/assets/chunks/chunk-98964cd2.js" as="script" type="text/javascript">
16
- <link rel="modulepreload" href="/assets/entries/renderer_default.page.client.9822d975.js" as="script" type="text/javascript">
17
- <link rel="modulepreload" href="/assets/chunks/chunk-3d735b94.js" as="script" type="text/javascript">
18
- <script id="vike_pageContext" type="application/json">{"pageProps":"!undefined","documentProps":"!undefined","someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitHasClientData":"!undefined","_pageId":"/pages/index"}</script>
9
+ <div id="react-root"><div id="react-root" style="padding:0;height:100%;width:100%"><main class="_main_ct6c1_1"></main></div></div>
10
+ <script id="vike_pageContext" type="application/json">{"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/index","routeParams":{},"data":"!undefined"}</script>
11
+ <script src="/assets/entries/entry-client-routing.DcliWhPk.js" type="module" async></script>
12
+ <link rel="modulepreload" href="/assets/entries/pages_index.cBvCoMtg.js" as="script" type="text/javascript">
13
+ <link rel="modulepreload" href="/assets/chunks/chunk-DM5X-Fsx.js" as="script" type="text/javascript">
14
+ <link rel="modulepreload" href="/assets/chunks/chunk-CmlEsaFt.js" as="script" type="text/javascript">
15
+ <link rel="modulepreload" href="/assets/chunks/chunk-B5NqXhlg.js" as="script" type="text/javascript">
19
16
  </body>
20
17
  </html>
@@ -1 +1 @@
1
- {"pageProps":"!undefined","documentProps":"!undefined","someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitHasClientData":"!undefined","_pageId":"/pages/index"}
1
+ {"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/index","routeParams":{},"data":"!undefined"}
@@ -0,0 +1,2 @@
1
+ export { Page };
2
+ declare function Page(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Page(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare function Page(): import("react/jsx-runtime").JSX.Element;
2
+ export default Page;
@@ -0,0 +1 @@
1
+ export default function Page(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,45 @@
1
+ export declare const config: {
2
+ passToClient: string[];
3
+ clientRouting: true;
4
+ hydrationCanBeAborted: true;
5
+ meta: {
6
+ title: {
7
+ env: {
8
+ server: true;
9
+ client: true;
10
+ };
11
+ };
12
+ dataIsomorph: {
13
+ env: {
14
+ config: true;
15
+ };
16
+ effect({ configDefinedAt, configValue }: {
17
+ configValue: unknown;
18
+ configDefinedAt: import('vike/dist/esm/shared/page-configs/getConfigDefinedAt').ConfigDefinedAt;
19
+ }): {
20
+ meta: {
21
+ data: {
22
+ env: {
23
+ server: true;
24
+ client: true;
25
+ };
26
+ };
27
+ };
28
+ } | undefined;
29
+ };
30
+ };
31
+ hooksTimeout: {
32
+ data: {
33
+ error: number;
34
+ warning: number;
35
+ };
36
+ };
37
+ };
38
+ declare global {
39
+ namespace Vike {
40
+ interface Config {
41
+ /** The page's `<title>` */
42
+ title?: string;
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,3 @@
1
+ import { OnHydrationEndAsync } from 'vike/types';
2
+ export { onHydrationEnd };
3
+ declare const onHydrationEnd: OnHydrationEndAsync;
@@ -0,0 +1,3 @@
1
+ import { OnPageTransitionEndAsync } from 'vike/types';
2
+ export { onPageTransitionEnd };
3
+ declare const onPageTransitionEnd: OnPageTransitionEndAsync;
@@ -0,0 +1,3 @@
1
+ import { OnPageTransitionStartAsync } from 'vike/types';
2
+ export { onPageTransitionStart };
3
+ declare const onPageTransitionStart: OnPageTransitionStartAsync;
@@ -0,0 +1,2 @@
1
+ import { OnRenderClientAsync } from 'vike/types';
2
+ export declare const onRenderClient: OnRenderClientAsync;
@@ -0,0 +1,2 @@
1
+ import { OnRenderHtmlAsync } from 'vike/types';
2
+ export declare const onRenderHtml: OnRenderHtmlAsync;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ import { PageContext } from 'vike/types';
3
+ export declare function Layout({ pageContext, children }: {
4
+ pageContext: PageContext;
5
+ children: ReactNode;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export { Link };
3
+ declare function Link(props: {
4
+ href: string;
5
+ className?: string;
6
+ children: ReactNode;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { ReactElement } from 'react';
2
+ declare global {
3
+ namespace Vike {
4
+ interface PageContext {
5
+ Page: Page;
6
+ data?: {
7
+ title?: string;
8
+ };
9
+ config: {
10
+ /** Title defined statically by /pages/some-page/+title.js (or by `export default { title }` in /pages/some-page/+config.js) */
11
+ title?: string;
12
+ };
13
+ abortReason?: string;
14
+ someAsyncProps?: number;
15
+ }
16
+ }
17
+ }
18
+ type Page = () => ReactElement;
19
+ export {};
@@ -0,0 +1,3 @@
1
+ import { PageContext } from 'vike/types';
2
+ export { getPageTitle };
3
+ declare function getPageTitle(pageContext: PageContext): string;
@@ -0,0 +1,2 @@
1
+ export { useData };
2
+ declare function useData<Data>(): Data;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { PageContext } from 'vike/types';
3
+ export { PageContextProvider };
4
+ export { usePageContext };
5
+ declare function PageContextProvider({ pageContext, children }: {
6
+ pageContext: PageContext;
7
+ children: React.ReactNode;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function usePageContext(): PageContext;
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <link rel="stylesheet" type="text/css" href="/assets/static/onRenderClient.DQ-loHhw.css">
5
+ <title>Vuer.AI</title>
6
+ </head>
7
+ <body>
8
+ <div id="react-root"><div id="react-root" style="padding:0;height:100%;width:100%"><main><!--$--><div><h1 class="_listName_1s0ny_1">Simple Component</h1><p>This is cool!</p></div><!--/$--></main></div></div>
9
+ <script id="vike_pageContext" type="application/json">{"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/simple","routeParams":{},"data":"!undefined"}</script>
10
+ <script src="/assets/entries/entry-client-routing.DcliWhPk.js" type="module" async></script>
11
+ <link rel="modulepreload" href="/assets/entries/pages_simple.DNtn6Zih.js" as="script" type="text/javascript">
12
+ <link rel="modulepreload" href="/assets/chunks/chunk-DM5X-Fsx.js" as="script" type="text/javascript">
13
+ <link rel="modulepreload" href="/assets/chunks/chunk-CmlEsaFt.js" as="script" type="text/javascript">
14
+ <link rel="modulepreload" href="/assets/chunks/chunk-B5NqXhlg.js" as="script" type="text/javascript">
15
+ </body>
16
+ </html>
@@ -0,0 +1 @@
1
+ {"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/simple","routeParams":{},"data":"!undefined"}
vuer/events.py CHANGED
@@ -1,8 +1,8 @@
1
- from typing import List, Tuple
1
+ from datetime import datetime as Datetime, timedelta as Timedelta
2
+ from typing import List, Union
2
3
  from uuid import uuid4
3
4
 
4
- from vuer.schemas import Scene
5
- from vuer.schemas import Element
5
+ from vuer.schemas import Scene, Element
6
6
  from vuer.serdes import serializer
7
7
 
8
8
 
@@ -11,6 +11,13 @@ class Event:
11
11
  An event is a message sent from the server to the client.
12
12
  """
13
13
 
14
+ ts: float
15
+ """
16
+ timestamp is a float representing the UTC datetime. Msgpack natively
17
+ supports this. `datetime`'s Datetime class is significantly more
18
+ complex as it includes timezone information.
19
+ """
20
+
14
21
  def __eq__(self, etype):
15
22
  """
16
23
  Check if the event is of a certain type.
@@ -26,7 +33,12 @@ class ClientEvent(Event):
26
33
  def __repr__(self):
27
34
  return f"client<{self.etype}>({self.value})"
28
35
 
29
- def __init__(self, etype=None, **kwargs):
36
+ def __init__(self, etype=None, ts=None, **kwargs):
37
+ if ts is None:
38
+ self.ts = Datetime.timestamp(Datetime.now())
39
+ else:
40
+ self.ts = Datetime.fromtimestamp(ts / 1000)
41
+
30
42
  self.etype = etype
31
43
  self.__dict__.update(kwargs)
32
44
 
@@ -62,7 +74,13 @@ NULL = NullEvent()
62
74
 
63
75
 
64
76
  class ServerEvent(Event): # , metaclass=Meta):
65
- def __init__(self, data, etype=None, **kwargs):
77
+ def __init__(
78
+ self, data, etype=None, ts: Union[Datetime, Timedelta] = None, **kwargs
79
+ ):
80
+ if ts is None:
81
+ self.ts = Datetime.timestamp(Datetime.now())
82
+ else:
83
+ self.ts = Datetime.fromtimestamp(ts / 1000)
66
84
  self.data = data
67
85
 
68
86
  if etype is not None:
@@ -144,7 +162,7 @@ class Add(ServerEvent):
144
162
  inserts into the root node, but you can specify a parent node to insert into
145
163
  via the `to` argument.
146
164
 
147
- Note: only supports a single parent key right now.
165
+ Note: only supports a single parent key right timestamp.
148
166
 
149
167
  Example:
150
168
  app.add @ Element(...)
@@ -182,7 +200,7 @@ class Upsert(ServerEvent):
182
200
  UPSERT Operator is used to update nodes to new values, when then they do not
183
201
  exist, insert new ones to the scene graph.
184
202
 
185
- Note: only supports a single parent key right now.
203
+ Note: only supports a single parent key right timestamp.
186
204
 
187
205
  Example:
188
206
  app.upsert @ Element(...)
vuer/schemas/__init__.py CHANGED
@@ -1,3 +1,4 @@
1
1
  from .html_components import *
2
2
  from .scene_components import *
3
3
  from .drei_components import *
4
+ from .physics_components import *
@@ -0,0 +1,19 @@
1
+ from typing import List
2
+
3
+ from .scene_components import SceneElement
4
+
5
+
6
+ class MuJoCoProvider(SceneElement):
7
+ tag = "MuJoCoProvider"
8
+
9
+
10
+ class MuJoCo(SceneElement):
11
+ tag = "MuJoCo"
12
+ # todo: consider adding default component keys here.
13
+ src: str
14
+ assets: List[str] = []
15
+ speed: float = 1.0
16
+ pause: bool = True
17
+
18
+ # Allow adding additional children for the user to control.
19
+ # actually this can be done outside.
@@ -2,7 +2,6 @@ from typing import List
2
2
 
3
3
  import numpy as np
4
4
  from numpy.typing import NDArray
5
-
6
5
  from vuer.schemas.html_components import BlockElement, Image, Element
7
6
 
8
7
 
@@ -679,10 +678,11 @@ class DefaultScene(Scene):
679
678
  endStep=None,
680
679
  # default to z-up
681
680
  up=[0, 0, 1],
681
+ grid=True,
682
682
  **kwargs,
683
683
  ):
684
684
  rawChildren = [
685
- AmbientLight(intensity=1.0, key="default_ambient_light"),
685
+ AmbientLight(intensity=0.5, key="default_ambient_light"),
686
686
  DirectionalLight(
687
687
  intensity=1, key="default_directional_light", helper=show_helper
688
688
  ),
@@ -704,7 +704,7 @@ class DefaultScene(Scene):
704
704
  else None,
705
705
  ],
706
706
  PointerControls(),
707
- Grid(),
707
+ Grid() if grid else None,
708
708
  *bgChildren,
709
709
  ],
710
710
  up=up,
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vuer
3
- Version: 0.0.32rc8
3
+ Version: 0.0.32rc23
4
4
  Home-page: https://github.com/vuer-ai/vuer
5
5
  Author: Ge Yang<ge.ike.yang@gmail.com>
6
6
  Author-email: ge.ike.yang@gmail.com
@@ -136,7 +136,22 @@ make docs
136
136
  ```
137
137
  This should fire up an http server at the port `8888`, and you can view the documentation at `http://localhost:8888`.
138
138
 
139
+ ## To Cite
140
+
141
+ ```bibtex
142
+ @software{vuer,
143
+ author = {Ge Yang},
144
+ title = {{VUER}: A 3D Visualization and Data Collection Environment for Robot Learning},
145
+ version = {},
146
+ publisher = {GitHub},
147
+ url = {https://github.com/vuer-ai/vuer},
148
+ year = {2024}
149
+ }
150
+ ```
151
+
139
152
  ## About Us
140
153
 
141
154
  Vuer is built by researchers at MIT and UCSD in fields including robotics, computer vision, and computer graphics.
142
155
 
156
+
157
+