viser-audio 0.0.1__tar.gz

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.
Files changed (315) hide show
  1. viser_audio-0.0.1/.gitignore +31 -0
  2. viser_audio-0.0.1/LICENSE +201 -0
  3. viser_audio-0.0.1/PKG-INFO +141 -0
  4. viser_audio-0.0.1/README.md +72 -0
  5. viser_audio-0.0.1/pyproject.toml +140 -0
  6. viser_audio-0.0.1/src/viser/__init__.py +87 -0
  7. viser_audio-0.0.1/src/viser/_assets/hdri/dikhololo_night_1k.jpg +0 -0
  8. viser_audio-0.0.1/src/viser/_assets/hdri/empty_warehouse_01_1k.jpg +0 -0
  9. viser_audio-0.0.1/src/viser/_assets/hdri/forest_slope_1k.jpg +0 -0
  10. viser_audio-0.0.1/src/viser/_assets/hdri/kiara_1_dawn_1k.jpg +0 -0
  11. viser_audio-0.0.1/src/viser/_assets/hdri/lebombo_1k.jpg +0 -0
  12. viser_audio-0.0.1/src/viser/_assets/hdri/potsdamer_platz_1k.jpg +0 -0
  13. viser_audio-0.0.1/src/viser/_assets/hdri/rooitou_park_1k.jpg +0 -0
  14. viser_audio-0.0.1/src/viser/_assets/hdri/st_fagans_interior_1k.jpg +0 -0
  15. viser_audio-0.0.1/src/viser/_assets/hdri/studio_small_03_1k.jpg +0 -0
  16. viser_audio-0.0.1/src/viser/_assets/hdri/venice_sunset_1k.jpg +0 -0
  17. viser_audio-0.0.1/src/viser/_assignable_props_api.py +179 -0
  18. viser_audio-0.0.1/src/viser/_backwards_compat_shims.py +147 -0
  19. viser_audio-0.0.1/src/viser/_client_autobuild.py +220 -0
  20. viser_audio-0.0.1/src/viser/_gui_api.py +2823 -0
  21. viser_audio-0.0.1/src/viser/_gui_handles.py +1846 -0
  22. viser_audio-0.0.1/src/viser/_icons/tabler-icons.zip +0 -0
  23. viser_audio-0.0.1/src/viser/_icons.py +21 -0
  24. viser_audio-0.0.1/src/viser/_icons_enum.py +4309 -0
  25. viser_audio-0.0.1/src/viser/_icons_enum.pyi +4357 -0
  26. viser_audio-0.0.1/src/viser/_icons_generate_enum.py +90 -0
  27. viser_audio-0.0.1/src/viser/_image_encoding.py +67 -0
  28. viser_audio-0.0.1/src/viser/_messages.py +2711 -0
  29. viser_audio-0.0.1/src/viser/_notification_handle.py +61 -0
  30. viser_audio-0.0.1/src/viser/_scene_api.py +3986 -0
  31. viser_audio-0.0.1/src/viser/_scene_handles.py +1990 -0
  32. viser_audio-0.0.1/src/viser/_threadpool_exceptions.py +36 -0
  33. viser_audio-0.0.1/src/viser/_tunnel.py +352 -0
  34. viser_audio-0.0.1/src/viser/_viser.py +1826 -0
  35. viser_audio-0.0.1/src/viser/client/.gitignore +23 -0
  36. viser_audio-0.0.1/src/viser/client/.prettierignore +2 -0
  37. viser_audio-0.0.1/src/viser/client/build/index.html +20 -0
  38. viser_audio-0.0.1/src/viser/client/dock_test.html +20 -0
  39. viser_audio-0.0.1/src/viser/client/eslint.config.mjs +69 -0
  40. viser_audio-0.0.1/src/viser/client/index.html +19 -0
  41. viser_audio-0.0.1/src/viser/client/package-lock.json +8164 -0
  42. viser_audio-0.0.1/src/viser/client/package.json +101 -0
  43. viser_audio-0.0.1/src/viser/client/postcss.config.cjs +3 -0
  44. viser_audio-0.0.1/src/viser/client/src/App.css.ts +14 -0
  45. viser_audio-0.0.1/src/viser/client/src/App.tsx +1390 -0
  46. viser_audio-0.0.1/src/viser/client/src/AppTheme.ts +95 -0
  47. viser_audio-0.0.1/src/viser/client/src/Arrows.tsx +134 -0
  48. viser_audio-0.0.1/src/viser/client/src/Billboard.tsx +68 -0
  49. viser_audio-0.0.1/src/viser/client/src/BinaryMessageDecode.ts +108 -0
  50. viser_audio-0.0.1/src/viser/client/src/BrowserWarning.tsx +131 -0
  51. viser_audio-0.0.1/src/viser/client/src/CameraControls.tsx +748 -0
  52. viser_audio-0.0.1/src/viser/client/src/CameraFrustumVariants.tsx +182 -0
  53. viser_audio-0.0.1/src/viser/client/src/CascadedDirectionalLight.tsx +236 -0
  54. viser_audio-0.0.1/src/viser/client/src/CommandPalette.tsx +183 -0
  55. viser_audio-0.0.1/src/viser/client/src/ControlPanel/BottomPanel.tsx +108 -0
  56. viser_audio-0.0.1/src/viser/client/src/ControlPanel/ControlPanel.tsx +689 -0
  57. viser_audio-0.0.1/src/viser/client/src/ControlPanel/ControlPanelDock.tsx +660 -0
  58. viser_audio-0.0.1/src/viser/client/src/ControlPanel/Generated.tsx +225 -0
  59. viser_audio-0.0.1/src/viser/client/src/ControlPanel/GuiComponentContext.ts +18 -0
  60. viser_audio-0.0.1/src/viser/client/src/ControlPanel/GuiDockContext.ts +26 -0
  61. viser_audio-0.0.1/src/viser/client/src/ControlPanel/GuiState.ts +668 -0
  62. viser_audio-0.0.1/src/viser/client/src/ControlPanel/SceneTreeTable.css.ts +68 -0
  63. viser_audio-0.0.1/src/viser/client/src/ControlPanel/SceneTreeTable.tsx +883 -0
  64. viser_audio-0.0.1/src/viser/client/src/ControlPanel/ServerControls.tsx +211 -0
  65. viser_audio-0.0.1/src/viser/client/src/ControlPanel/collapseDrain.test.ts +108 -0
  66. viser_audio-0.0.1/src/viser/client/src/ControlPanel/collapseDrain.ts +51 -0
  67. viser_audio-0.0.1/src/viser/client/src/ControlPanel/controlPanelId.ts +6 -0
  68. viser_audio-0.0.1/src/viser/client/src/ControlPanel/controlWidth.ts +12 -0
  69. viser_audio-0.0.1/src/viser/client/src/ControlPanel/mobileSection.test.ts +83 -0
  70. viser_audio-0.0.1/src/viser/client/src/ControlPanel/mobileSection.ts +55 -0
  71. viser_audio-0.0.1/src/viser/client/src/ControlPanel/panelUpdates.test.ts +84 -0
  72. viser_audio-0.0.1/src/viser/client/src/ControlPanel/panelsEquality.ts +14 -0
  73. viser_audio-0.0.1/src/viser/client/src/ControlPanel/placementCoordinator.tsx +389 -0
  74. viser_audio-0.0.1/src/viser/client/src/ControlPanel/placementGate.test.ts +284 -0
  75. viser_audio-0.0.1/src/viser/client/src/ControlPanel/placementGate.ts +108 -0
  76. viser_audio-0.0.1/src/viser/client/src/DevSettingsPanel.tsx +166 -0
  77. viser_audio-0.0.1/src/viser/client/src/DevSettingsStore.ts +29 -0
  78. viser_audio-0.0.1/src/viser/client/src/DragLayer.tsx +647 -0
  79. viser_audio-0.0.1/src/viser/client/src/EnvironmentState.ts +37 -0
  80. viser_audio-0.0.1/src/viser/client/src/FilePlayback.tsx +420 -0
  81. viser_audio-0.0.1/src/viser/client/src/Grid.tsx +288 -0
  82. viser_audio-0.0.1/src/viser/client/src/HDRJPGEnvironment.tsx +163 -0
  83. viser_audio-0.0.1/src/viser/client/src/HoverContext.ts +12 -0
  84. viser_audio-0.0.1/src/viser/client/src/InitialCameraState.ts +171 -0
  85. viser_audio-0.0.1/src/viser/client/src/Line.tsx +250 -0
  86. viser_audio-0.0.1/src/viser/client/src/MacWindowWrapper.tsx +91 -0
  87. viser_audio-0.0.1/src/viser/client/src/Markdown.tsx +180 -0
  88. viser_audio-0.0.1/src/viser/client/src/MessageHandler.tsx +1487 -0
  89. viser_audio-0.0.1/src/viser/client/src/Modal.tsx +43 -0
  90. viser_audio-0.0.1/src/viser/client/src/Outlines.tsx +192 -0
  91. viser_audio-0.0.1/src/viser/client/src/OutlinesIfHovered.tsx +55 -0
  92. viser_audio-0.0.1/src/viser/client/src/OutlinesMaterial.ts +59 -0
  93. viser_audio-0.0.1/src/viser/client/src/PlaybackDecode.test.ts +111 -0
  94. viser_audio-0.0.1/src/viser/client/src/PlaybackDecode.ts +162 -0
  95. viser_audio-0.0.1/src/viser/client/src/PlaybackScenePanel.tsx +135 -0
  96. viser_audio-0.0.1/src/viser/client/src/ReversedDepthSort.test.ts +147 -0
  97. viser_audio-0.0.1/src/viser/client/src/ReversedDepthSort.ts +166 -0
  98. viser_audio-0.0.1/src/viser/client/src/SceneAudio.tsx +259 -0
  99. viser_audio-0.0.1/src/viser/client/src/SceneTree.tsx +1304 -0
  100. viser_audio-0.0.1/src/viser/client/src/SceneTreeState.test.ts +483 -0
  101. viser_audio-0.0.1/src/viser/client/src/SceneTreeState.ts +606 -0
  102. viser_audio-0.0.1/src/viser/client/src/SearchParamsUtils.ts +38 -0
  103. viser_audio-0.0.1/src/viser/client/src/ShadowArgs.ts +8 -0
  104. viser_audio-0.0.1/src/viser/client/src/Splatting/GaussianSplats.tsx +665 -0
  105. viser_audio-0.0.1/src/viser/client/src/Splatting/GaussianSplatsHelpers.ts +335 -0
  106. viser_audio-0.0.1/src/viser/client/src/Splatting/SplatSortWorker.test.ts +124 -0
  107. viser_audio-0.0.1/src/viser/client/src/Splatting/SplatSortWorker.ts +129 -0
  108. viser_audio-0.0.1/src/viser/client/src/Splatting/WasmSorter/Sorter.mjs +2146 -0
  109. viser_audio-0.0.1/src/viser/client/src/Splatting/WasmSorter/Sorter.wasm +0 -0
  110. viser_audio-0.0.1/src/viser/client/src/Splatting/WasmSorter/build.sh +3 -0
  111. viser_audio-0.0.1/src/viser/client/src/Splatting/WasmSorter/sorter.cpp +261 -0
  112. viser_audio-0.0.1/src/viser/client/src/ThreeAssets.tsx +611 -0
  113. viser_audio-0.0.1/src/viser/client/src/Titlebar.tsx +205 -0
  114. viser_audio-0.0.1/src/viser/client/src/VersionInfo.ts +212 -0
  115. viser_audio-0.0.1/src/viser/client/src/ViewerContext.ts +154 -0
  116. viser_audio-0.0.1/src/viser/client/src/WebsocketClientWorker.ts +334 -0
  117. viser_audio-0.0.1/src/viser/client/src/WebsocketInterface.tsx +157 -0
  118. viser_audio-0.0.1/src/viser/client/src/WebsocketMessages.ts +3438 -0
  119. viser_audio-0.0.1/src/viser/client/src/WebsocketUtils.ts +93 -0
  120. viser_audio-0.0.1/src/viser/client/src/WorldTransformUtils.ts +77 -0
  121. viser_audio-0.0.1/src/viser/client/src/assets/logo.svg +1 -0
  122. viser_audio-0.0.1/src/viser/client/src/batchedSceneUpdates.ts +164 -0
  123. viser_audio-0.0.1/src/viser/client/src/components/Button.tsx +104 -0
  124. viser_audio-0.0.1/src/viser/client/src/components/ButtonGroup.tsx +44 -0
  125. viser_audio-0.0.1/src/viser/client/src/components/Checkbox.tsx +46 -0
  126. viser_audio-0.0.1/src/viser/client/src/components/ColorInputComponent.tsx +99 -0
  127. viser_audio-0.0.1/src/viser/client/src/components/ComponentStyles.css.ts +137 -0
  128. viser_audio-0.0.1/src/viser/client/src/components/Divider.tsx +17 -0
  129. viser_audio-0.0.1/src/viser/client/src/components/Dropdown.tsx +41 -0
  130. viser_audio-0.0.1/src/viser/client/src/components/Folder.css.ts +34 -0
  131. viser_audio-0.0.1/src/viser/client/src/components/Folder.tsx +88 -0
  132. viser_audio-0.0.1/src/viser/client/src/components/Form.tsx +123 -0
  133. viser_audio-0.0.1/src/viser/client/src/components/Html.tsx +8 -0
  134. viser_audio-0.0.1/src/viser/client/src/components/Image.tsx +137 -0
  135. viser_audio-0.0.1/src/viser/client/src/components/Markdown.tsx +21 -0
  136. viser_audio-0.0.1/src/viser/client/src/components/MultiSlider.tsx +70 -0
  137. viser_audio-0.0.1/src/viser/client/src/components/MultiSliderComponent.css +102 -0
  138. viser_audio-0.0.1/src/viser/client/src/components/MultiSliderComponent.tsx +226 -0
  139. viser_audio-0.0.1/src/viser/client/src/components/NumberInput.tsx +48 -0
  140. viser_audio-0.0.1/src/viser/client/src/components/PlotlyComponent.tsx +137 -0
  141. viser_audio-0.0.1/src/viser/client/src/components/ProgressBar.tsx +21 -0
  142. viser_audio-0.0.1/src/viser/client/src/components/Rgb.tsx +19 -0
  143. viser_audio-0.0.1/src/viser/client/src/components/Rgba.tsx +19 -0
  144. viser_audio-0.0.1/src/viser/client/src/components/Slider.tsx +141 -0
  145. viser_audio-0.0.1/src/viser/client/src/components/TabGroup.tsx +142 -0
  146. viser_audio-0.0.1/src/viser/client/src/components/TextInput.tsx +53 -0
  147. viser_audio-0.0.1/src/viser/client/src/components/UploadButton.tsx +190 -0
  148. viser_audio-0.0.1/src/viser/client/src/components/UplotComponent.css +66 -0
  149. viser_audio-0.0.1/src/viser/client/src/components/UplotComponent.tsx +389 -0
  150. viser_audio-0.0.1/src/viser/client/src/components/Vector2.tsx +28 -0
  151. viser_audio-0.0.1/src/viser/client/src/components/Vector3.tsx +28 -0
  152. viser_audio-0.0.1/src/viser/client/src/components/colorUtils.test.ts +76 -0
  153. viser_audio-0.0.1/src/viser/client/src/components/colorUtils.ts +141 -0
  154. viser_audio-0.0.1/src/viser/client/src/components/common.tsx +170 -0
  155. viser_audio-0.0.1/src/viser/client/src/components/numberInputUtils.test.ts +40 -0
  156. viser_audio-0.0.1/src/viser/client/src/components/numberInputUtils.ts +13 -0
  157. viser_audio-0.0.1/src/viser/client/src/dock/DockArea.tsx +88 -0
  158. viser_audio-0.0.1/src/viser/client/src/dock/DockContext.tsx +186 -0
  159. viser_audio-0.0.1/src/viser/client/src/dock/DockManager.tsx +1086 -0
  160. viser_audio-0.0.1/src/viser/client/src/dock/DockStyles.css.ts +170 -0
  161. viser_audio-0.0.1/src/viser/client/src/dock/FloatingWindowView.tsx +1123 -0
  162. viser_audio-0.0.1/src/viser/client/src/dock/MinimizedBar.tsx +357 -0
  163. viser_audio-0.0.1/src/viser/client/src/dock/RegionResizer.tsx +126 -0
  164. viser_audio-0.0.1/src/viser/client/src/dock/SplitView.tsx +748 -0
  165. viser_audio-0.0.1/src/viser/client/src/dock/TabGroupFrame.tsx +653 -0
  166. viser_audio-0.0.1/src/viser/client/src/dock/VerticalMinimizedColumn.tsx +283 -0
  167. viser_audio-0.0.1/src/viser/client/src/dock/area.test.ts +231 -0
  168. viser_audio-0.0.1/src/viser/client/src/dock/collapsedPress.ts +35 -0
  169. viser_audio-0.0.1/src/viser/client/src/dock/detent.test.ts +274 -0
  170. viser_audio-0.0.1/src/viser/client/src/dock/detent.ts +123 -0
  171. viser_audio-0.0.1/src/viser/client/src/dock/dock-ux-spec.md +1525 -0
  172. viser_audio-0.0.1/src/viser/client/src/dock/dragController.ts +1725 -0
  173. viser_audio-0.0.1/src/viser/client/src/dock/dropHint.ts +71 -0
  174. viser_audio-0.0.1/src/viser/client/src/dock/floatingWindowHeight.test.ts +145 -0
  175. viser_audio-0.0.1/src/viser/client/src/dock/fuzzHarness.ts +874 -0
  176. viser_audio-0.0.1/src/viser/client/src/dock/gestures.ts +312 -0
  177. viser_audio-0.0.1/src/viser/client/src/dock/handles.tsx +391 -0
  178. viser_audio-0.0.1/src/viser/client/src/dock/hitTest.sweep.test.ts +957 -0
  179. viser_audio-0.0.1/src/viser/client/src/dock/hitTest.test.ts +2383 -0
  180. viser_audio-0.0.1/src/viser/client/src/dock/hitTest.ts +1328 -0
  181. viser_audio-0.0.1/src/viser/client/src/dock/layoutInvariants.test.ts +383 -0
  182. viser_audio-0.0.1/src/viser/client/src/dock/layoutInvariants.ts +246 -0
  183. viser_audio-0.0.1/src/viser/client/src/dock/layoutOps.fuzz.test.ts +43 -0
  184. viser_audio-0.0.1/src/viser/client/src/dock/layoutOps.fuzz2.test.ts +43 -0
  185. viser_audio-0.0.1/src/viser/client/src/dock/layoutOps.fuzz3.test.ts +70 -0
  186. viser_audio-0.0.1/src/viser/client/src/dock/layoutOps.lifecycle.test.ts +305 -0
  187. viser_audio-0.0.1/src/viser/client/src/dock/layoutOps.scanRegressions.test.ts +123 -0
  188. viser_audio-0.0.1/src/viser/client/src/dock/layoutOps.test.ts +2280 -0
  189. viser_audio-0.0.1/src/viser/client/src/dock/layoutOps.ts +2461 -0
  190. viser_audio-0.0.1/src/viser/client/src/dock/layoutOps.width.test.ts +271 -0
  191. viser_audio-0.0.1/src/viser/client/src/dock/panelPlacement.test.ts +1295 -0
  192. viser_audio-0.0.1/src/viser/client/src/dock/playground.tsx +331 -0
  193. viser_audio-0.0.1/src/viser/client/src/dock/regionPlan.test.ts +142 -0
  194. viser_audio-0.0.1/src/viser/client/src/dock/regionPlan.ts +56 -0
  195. viser_audio-0.0.1/src/viser/client/src/dock/regionResize.test.ts +101 -0
  196. viser_audio-0.0.1/src/viser/client/src/dock/regionResize.ts +331 -0
  197. viser_audio-0.0.1/src/viser/client/src/dock/testUtils.ts +334 -0
  198. viser_audio-0.0.1/src/viser/client/src/dock/types.ts +493 -0
  199. viser_audio-0.0.1/src/viser/client/src/dock/widthReconciliation.test.ts +589 -0
  200. viser_audio-0.0.1/src/viser/client/src/dock/widthReconciliation.ts +246 -0
  201. viser_audio-0.0.1/src/viser/client/src/dragLayerContext.ts +45 -0
  202. viser_audio-0.0.1/src/viser/client/src/dragUtils.test.ts +205 -0
  203. viser_audio-0.0.1/src/viser/client/src/dragUtils.ts +421 -0
  204. viser_audio-0.0.1/src/viser/client/src/index.css +44 -0
  205. viser_audio-0.0.1/src/viser/client/src/index.tsx +6 -0
  206. viser_audio-0.0.1/src/viser/client/src/label/GlyphAtlas.ts +268 -0
  207. viser_audio-0.0.1/src/viser/client/src/label/LabelRenderer.tsx +804 -0
  208. viser_audio-0.0.1/src/viser/client/src/label/LabelRendererContext.ts +27 -0
  209. viser_audio-0.0.1/src/viser/client/src/label/labelInstances.test.ts +153 -0
  210. viser_audio-0.0.1/src/viser/client/src/label/labelInstances.ts +120 -0
  211. viser_audio-0.0.1/src/viser/client/src/label/labelLayout.test.ts +194 -0
  212. viser_audio-0.0.1/src/viser/client/src/label/labelLayout.ts +183 -0
  213. viser_audio-0.0.1/src/viser/client/src/label/sdf.test.ts +131 -0
  214. viser_audio-0.0.1/src/viser/client/src/label/sdf.ts +172 -0
  215. viser_audio-0.0.1/src/viser/client/src/mesh/BasicMesh.tsx +83 -0
  216. viser_audio-0.0.1/src/viser/client/src/mesh/BatchedGlbAsset.tsx +104 -0
  217. viser_audio-0.0.1/src/viser/client/src/mesh/BatchedMesh.tsx +119 -0
  218. viser_audio-0.0.1/src/viser/client/src/mesh/BatchedMeshBase.tsx +453 -0
  219. viser_audio-0.0.1/src/viser/client/src/mesh/BatchedMeshHoverOutlines.tsx +226 -0
  220. viser_audio-0.0.1/src/viser/client/src/mesh/BoxMesh.tsx +58 -0
  221. viser_audio-0.0.1/src/viser/client/src/mesh/CylinderMesh.tsx +72 -0
  222. viser_audio-0.0.1/src/viser/client/src/mesh/GlbLoaderUtils.ts +157 -0
  223. viser_audio-0.0.1/src/viser/client/src/mesh/IcosphereMesh.tsx +63 -0
  224. viser_audio-0.0.1/src/viser/client/src/mesh/MeshUtils.tsx +129 -0
  225. viser_audio-0.0.1/src/viser/client/src/mesh/SingleGlbAsset.tsx +130 -0
  226. viser_audio-0.0.1/src/viser/client/src/mesh/SkinnedMesh.tsx +233 -0
  227. viser_audio-0.0.1/src/viser/client/src/mesh/backToFrontRadixSort.ts +53 -0
  228. viser_audio-0.0.1/src/viser/client/src/mesh/meshMaterialUtils.ts +151 -0
  229. viser_audio-0.0.1/src/viser/client/src/patchLineMaterial.test.ts +69 -0
  230. viser_audio-0.0.1/src/viser/client/src/patchLineMaterial.ts +169 -0
  231. viser_audio-0.0.1/src/viser/client/src/pointer/cameraLock.ts +45 -0
  232. viser_audio-0.0.1/src/viser/client/src/pointer/gestures.ts +447 -0
  233. viser_audio-0.0.1/src/viser/client/src/pointer/hoverSet.ts +83 -0
  234. viser_audio-0.0.1/src/viser/client/src/pointer/interactionController.ts +74 -0
  235. viser_audio-0.0.1/src/viser/client/src/r3f-extend.ts +45 -0
  236. viser_audio-0.0.1/src/viser/client/src/react-app-env.d.ts +1 -0
  237. viser_audio-0.0.1/src/viser/client/src/rehypeRawDom.test.ts +162 -0
  238. viser_audio-0.0.1/src/viser/client/src/rehypeRawDom.ts +41 -0
  239. viser_audio-0.0.1/src/viser/client/src/shadows/CascadeFrustum.js +174 -0
  240. viser_audio-0.0.1/src/viser/client/src/shadows/CascadeHelper.js +256 -0
  241. viser_audio-0.0.1/src/viser/client/src/shadows/ShadowCascades.d.ts +52 -0
  242. viser_audio-0.0.1/src/viser/client/src/shadows/ShadowCascades.js +419 -0
  243. viser_audio-0.0.1/src/viser/client/src/store.ts +281 -0
  244. viser_audio-0.0.1/src/viser/client/src/threeCatalogue.test.ts +108 -0
  245. viser_audio-0.0.1/src/viser/client/src/threeCatalogue.ts +49 -0
  246. viser_audio-0.0.1/src/viser/client/src/useDragArrow.ts +84 -0
  247. viser_audio-0.0.1/src/viser/client/src/utils/bufferGeometrySync.test.ts +288 -0
  248. viser_audio-0.0.1/src/viser/client/src/utils/bufferGeometrySync.ts +165 -0
  249. viser_audio-0.0.1/src/viser/client/src/utils/isFormElement.ts +13 -0
  250. viser_audio-0.0.1/src/viser/client/src/utils/normalizeScale.ts +6 -0
  251. viser_audio-0.0.1/src/viser/client/src/utils/outlineGeometry.test.ts +73 -0
  252. viser_audio-0.0.1/src/viser/client/src/utils/outlineGeometry.ts +20 -0
  253. viser_audio-0.0.1/src/viser/client/src/utils/platform.ts +4 -0
  254. viser_audio-0.0.1/src/viser/client/src/utils/pointCloudGeometry.test.ts +103 -0
  255. viser_audio-0.0.1/src/viser/client/src/utils/pointCloudGeometry.ts +44 -0
  256. viser_audio-0.0.1/src/viser/client/src/utils/pointerCoords.ts +71 -0
  257. viser_audio-0.0.1/src/viser/client/src/utils/shallowArrayEqual.ts +16 -0
  258. viser_audio-0.0.1/src/viser/client/src/utils/shallowObjectKeysEqual.ts +46 -0
  259. viser_audio-0.0.1/src/viser/client/src/utils/useAsyncTexture.ts +44 -0
  260. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/LICENSE +21 -0
  261. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/LOCAL_PATCHES.md +141 -0
  262. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/FrustumCulling.sorting.test.ts +358 -0
  263. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/InstancedEntity.ts +423 -0
  264. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/InstancedMesh2.dispose.test.ts +204 -0
  265. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/InstancedMesh2.ts +1141 -0
  266. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/InstancedMeshBVH.ts +469 -0
  267. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/feature/Capacity.ts +108 -0
  268. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/feature/FrustumCulling.ts +628 -0
  269. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/feature/Instances.ts +242 -0
  270. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/feature/LOD.ts +514 -0
  271. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/feature/Morph.ts +72 -0
  272. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/feature/Raycasting.ts +113 -0
  273. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/feature/Skeleton.ts +155 -0
  274. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/feature/Uniforms.ts +185 -0
  275. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/utils/GLInstancedBufferAttribute.ts +96 -0
  276. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/utils/InstancedRenderList.ts +45 -0
  277. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/utils/PropertiesOverride.ts +56 -0
  278. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/core/utils/SquareDataTexture.ts +621 -0
  279. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/index.ts +23 -0
  280. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/shaders/ShaderChunk.ts +129 -0
  281. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/utils/CreateFrom.ts +111 -0
  282. viser_audio-0.0.1/src/viser/client/src/vendor/instanced-mesh/utils/SortingUtils.ts +64 -0
  283. viser_audio-0.0.1/src/viser/client/src/zstd.ts +95 -0
  284. viser_audio-0.0.1/src/viser/client/tsconfig.json +27 -0
  285. viser_audio-0.0.1/src/viser/client/vite-env.d.ts +1 -0
  286. viser_audio-0.0.1/src/viser/client/vite-plugin-compress-html.mts +334 -0
  287. viser_audio-0.0.1/src/viser/client/vite.config.mts +89 -0
  288. viser_audio-0.0.1/src/viser/client/vite.hmroff.mts +5 -0
  289. viser_audio-0.0.1/src/viser/client/vitest.config.ts +12 -0
  290. viser_audio-0.0.1/src/viser/extras/__init__.py +5 -0
  291. viser_audio-0.0.1/src/viser/extras/_record3d.py +182 -0
  292. viser_audio-0.0.1/src/viser/extras/_urdf.py +348 -0
  293. viser_audio-0.0.1/src/viser/extras/colmap/__init__.py +8 -0
  294. viser_audio-0.0.1/src/viser/extras/colmap/_colmap_utils.py +345 -0
  295. viser_audio-0.0.1/src/viser/infra/__init__.py +26 -0
  296. viser_audio-0.0.1/src/viser/infra/_async_message_buffer.py +404 -0
  297. viser_audio-0.0.1/src/viser/infra/_infra.py +1020 -0
  298. viser_audio-0.0.1/src/viser/infra/_messages.py +333 -0
  299. viser_audio-0.0.1/src/viser/infra/_typescript_interface_gen.py +307 -0
  300. viser_audio-0.0.1/src/viser/py.typed +0 -0
  301. viser_audio-0.0.1/src/viser/theme/__init__.py +6 -0
  302. viser_audio-0.0.1/src/viser/theme/_titlebar.py +25 -0
  303. viser_audio-0.0.1/src/viser/transforms/__init__.py +15 -0
  304. viser_audio-0.0.1/src/viser/transforms/_base.py +308 -0
  305. viser_audio-0.0.1/src/viser/transforms/_se2.py +261 -0
  306. viser_audio-0.0.1/src/viser/transforms/_se3.py +243 -0
  307. viser_audio-0.0.1/src/viser/transforms/_so2.py +152 -0
  308. viser_audio-0.0.1/src/viser/transforms/_so3.py +456 -0
  309. viser_audio-0.0.1/src/viser/transforms/hints/__init__.py +14 -0
  310. viser_audio-0.0.1/src/viser/transforms/utils/__init__.py +3 -0
  311. viser_audio-0.0.1/src/viser/transforms/utils/_utils.py +82 -0
  312. viser_audio-0.0.1/src/viser/uplot/__init__.py +26 -0
  313. viser_audio-0.0.1/src/viser/uplot/_generate_types.py +1787 -0
  314. viser_audio-0.0.1/src/viser/uplot/_uplot_types.py +603 -0
  315. viser_audio-0.0.1/src/viser/uplot/uPlot.d.ts +1591 -0
@@ -0,0 +1,31 @@
1
+ *.swp
2
+ *.swo
3
+ *.pyc
4
+ *.egg-info
5
+ *.ipynb_checkpoints
6
+ __pycache__
7
+ .coverage
8
+ htmlcov
9
+ .mypy_cache
10
+ .dmypy.json
11
+ .hypothesis
12
+ .envrc
13
+ .lvimrc
14
+ .DS_Store
15
+ .envrc
16
+ .vite
17
+ build
18
+ src/viser/client/build
19
+ src/viser/client/.nodeenv
20
+ examples/assets
21
+
22
+ **/.claude/settings.local.json
23
+ uv.lock
24
+
25
+ # E2E test failure artifacts (screenshots, HTML, video, traces)
26
+ test-results/
27
+
28
+ # Scene verification outputs
29
+ scene_verification_outputs/
30
+ tests/e2e/test_webgl_warning.py
31
+ .venv/
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,141 @@
1
+ Metadata-Version: 2.5
2
+ Name: viser-audio
3
+ Version: 0.0.1
4
+ Summary: 3D visualization + Python
5
+ Project-URL: GitHub, https://github.com/abcamiletto/viser-audio
6
+ License: MIT
7
+ License-File: LICENSE
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Requires-Python: >=3.8
19
+ Requires-Dist: imageio<3.0.0,>=2.0.0
20
+ Requires-Dist: msgspec<1.0.0,>=0.18.6
21
+ Requires-Dist: numpy<3.0.0,>=1.0.0
22
+ Requires-Dist: requests<3.0.0,>=2.0.0
23
+ Requires-Dist: rich<15.0.0,>=13.3.3
24
+ Requires-Dist: tqdm<5.0.0,>=4.0.0
25
+ Requires-Dist: trimesh<6.0.0,>=3.21.7
26
+ Requires-Dist: typing-extensions>=4.0.0
27
+ Requires-Dist: websockets<17.0.0,>=13.1
28
+ Requires-Dist: zstandard<1.0.0,>=0.20.0
29
+ Provides-Extra: dev
30
+ Requires-Dist: gdown>=4.6.6; extra == 'dev'
31
+ Requires-Dist: hypothesis[numpy]; extra == 'dev'
32
+ Requires-Dist: matplotlib>=3.7.1; extra == 'dev'
33
+ Requires-Dist: nodeenv<2.0.0,>=1.9.1; extra == 'dev'
34
+ Requires-Dist: opencv-python; extra == 'dev'
35
+ Requires-Dist: pandas; extra == 'dev'
36
+ Requires-Dist: playwright>=1.40.0; extra == 'dev'
37
+ Requires-Dist: plotly>=5.21.0; extra == 'dev'
38
+ Requires-Dist: plyfile; extra == 'dev'
39
+ Requires-Dist: pre-commit==3.3.2; extra == 'dev'
40
+ Requires-Dist: psutil<8.0.0,>=5.9.5; extra == 'dev'
41
+ Requires-Dist: pyliblzfse>=0.4.1; (platform_system != 'Windows') and extra == 'dev'
42
+ Requires-Dist: pyright>=1.1.308; extra == 'dev'
43
+ Requires-Dist: pytest; extra == 'dev'
44
+ Requires-Dist: pytest-playwright>=0.4.0; extra == 'dev'
45
+ Requires-Dist: pytest-split>=0.8.0; extra == 'dev'
46
+ Requires-Dist: pytest-xdist>=3.0.0; extra == 'dev'
47
+ Requires-Dist: robot-descriptions>=1.18.0; extra == 'dev'
48
+ Requires-Dist: ruff>=0.9.3; extra == 'dev'
49
+ Requires-Dist: torch<2.5.0; (python_version < '3.9') and extra == 'dev'
50
+ Requires-Dist: torch>=1.13.1; extra == 'dev'
51
+ Requires-Dist: tyro>=1.0.0; extra == 'dev'
52
+ Requires-Dist: yourdfpy<1.0.0,>=0.0.53; extra == 'dev'
53
+ Provides-Extra: examples
54
+ Requires-Dist: gdown>=4.6.6; extra == 'examples'
55
+ Requires-Dist: matplotlib>=3.7.1; extra == 'examples'
56
+ Requires-Dist: opencv-python; extra == 'examples'
57
+ Requires-Dist: pandas; extra == 'examples'
58
+ Requires-Dist: plotly>=5.21.0; extra == 'examples'
59
+ Requires-Dist: plyfile; extra == 'examples'
60
+ Requires-Dist: pyliblzfse>=0.4.1; (platform_system != 'Windows') and extra == 'examples'
61
+ Requires-Dist: robot-descriptions>=1.18.0; extra == 'examples'
62
+ Requires-Dist: torch<2.5.0; (python_version < '3.9') and extra == 'examples'
63
+ Requires-Dist: torch>=1.13.1; extra == 'examples'
64
+ Requires-Dist: tyro>=1.0.0; extra == 'examples'
65
+ Requires-Dist: yourdfpy<1.0.0,>=0.0.53; extra == 'examples'
66
+ Provides-Extra: urdf
67
+ Requires-Dist: yourdfpy<1.0.0,>=0.0.53; extra == 'urdf'
68
+ Description-Content-Type: text/markdown
69
+
70
+ <h1 align="left">
71
+ <img alt="viser logo" src="https://viser.studio/main/_static/logo.svg" width="30" height="auto" />
72
+ Viser
73
+ <img alt="viser logo" src="https://viser.studio/main/_static/logo.svg" width="30" height="auto" />
74
+ </h1>
75
+
76
+ <p align="left">
77
+ <img alt="pyright" src="https://github.com/viser-project/viser/actions/workflows/pyright.yml/badge.svg" />
78
+ <img alt="typescript-compile" src="https://github.com/viser-project/viser/actions/workflows/typescript-compile.yml/badge.svg" />
79
+ <a href="https://pypi.org/project/viser/">
80
+ <img alt="codecov" src="https://img.shields.io/pypi/pyversions/viser" />
81
+ </a>
82
+ <a href="https://discord.gg/pnNTkHNUwP">
83
+ <img alt="Viser Discord" src="https://img.shields.io/discord/1423204924518432809?logo=discord&label=discord" />
84
+ </a>
85
+ </p>
86
+
87
+ Viser is a 3D visualization library for computer vision and robotics in Python.
88
+
89
+ Features include:
90
+
91
+ - API for visualizing 3D primitives.
92
+ - GUI building blocks: buttons, checkboxes, text inputs, sliders, etc.
93
+ - Scene interaction tools (clicks, selection, transform gizmos).
94
+ - Programmatic camera control and rendering.
95
+ - An entirely web-based client, for easy use over SSH!
96
+
97
+ The goal is to provide primitives that are (1) easy for simple visualization tasks, but (2) can be composed into more elaborate interfaces. For more about design goals, see the [technical report](https://arxiv.org/abs/2507.22885).
98
+
99
+ Examples and documentation: https://viser.studio
100
+
101
+ ## Installation
102
+
103
+ You can install `viser` with `pip`:
104
+
105
+ ```bash
106
+ pip install viser # Core dependencies only.
107
+ pip install viser[examples] # To include example dependencies.
108
+ ```
109
+
110
+ That's it! To learn more, we recommend looking at the examples in the [documentation](https://viser.studio/).
111
+
112
+ ## Citation
113
+
114
+ To cite Viser in your work, you can use the BibTeX for our [technical report](https://arxiv.org/abs/2507.22885):
115
+
116
+ ```
117
+ @article{yi2025viser,
118
+ title={Viser: Imperative, web-based 3d visualization in python},
119
+ author={Yi, Brent and Kim, Chung Min and Kerr, Justin and Wu, Gina and Feng, Rebecca and Zhang, Anthony and Kulhanek, Jonas and Choi, Hongsuk and Ma, Yi and Tancik, Matthew and Kanazawa, Angjoo},
120
+ journal={arXiv preprint arXiv:2507.22885},
121
+ year={2025}
122
+ }
123
+ ```
124
+
125
+ ## Acknowledgements
126
+
127
+ `viser` is heavily inspired by packages like
128
+ [Pangolin](https://github.com/stevenlovegrove/Pangolin),
129
+ [Dear ImGui](https://github.com/ocornut/imgui),
130
+ [rviz](https://wiki.ros.org/rviz/),
131
+ [meshcat](https://github.com/rdeits/meshcat), and
132
+ [Gradio](https://github.com/gradio-app/gradio).
133
+
134
+ The web client is implemented using [React](https://react.dev/), with:
135
+
136
+ - [Vite](https://vitejs.dev/) / [Rollup](https://rollupjs.org/) for bundling
137
+ - [three.js](https://threejs.org/) via [react-three-fiber](https://github.com/pmndrs/react-three-fiber) and [drei](https://github.com/pmndrs/drei)
138
+ - [Mantine](https://mantine.dev/) for UI components
139
+ - [vanilla-extract](https://vanilla-extract.style/) for stylesheets
140
+
141
+ Thanks to the authors of these projects for open-sourcing their work!
@@ -0,0 +1,72 @@
1
+ <h1 align="left">
2
+ <img alt="viser logo" src="https://viser.studio/main/_static/logo.svg" width="30" height="auto" />
3
+ Viser
4
+ <img alt="viser logo" src="https://viser.studio/main/_static/logo.svg" width="30" height="auto" />
5
+ </h1>
6
+
7
+ <p align="left">
8
+ <img alt="pyright" src="https://github.com/viser-project/viser/actions/workflows/pyright.yml/badge.svg" />
9
+ <img alt="typescript-compile" src="https://github.com/viser-project/viser/actions/workflows/typescript-compile.yml/badge.svg" />
10
+ <a href="https://pypi.org/project/viser/">
11
+ <img alt="codecov" src="https://img.shields.io/pypi/pyversions/viser" />
12
+ </a>
13
+ <a href="https://discord.gg/pnNTkHNUwP">
14
+ <img alt="Viser Discord" src="https://img.shields.io/discord/1423204924518432809?logo=discord&label=discord" />
15
+ </a>
16
+ </p>
17
+
18
+ Viser is a 3D visualization library for computer vision and robotics in Python.
19
+
20
+ Features include:
21
+
22
+ - API for visualizing 3D primitives.
23
+ - GUI building blocks: buttons, checkboxes, text inputs, sliders, etc.
24
+ - Scene interaction tools (clicks, selection, transform gizmos).
25
+ - Programmatic camera control and rendering.
26
+ - An entirely web-based client, for easy use over SSH!
27
+
28
+ The goal is to provide primitives that are (1) easy for simple visualization tasks, but (2) can be composed into more elaborate interfaces. For more about design goals, see the [technical report](https://arxiv.org/abs/2507.22885).
29
+
30
+ Examples and documentation: https://viser.studio
31
+
32
+ ## Installation
33
+
34
+ You can install `viser` with `pip`:
35
+
36
+ ```bash
37
+ pip install viser # Core dependencies only.
38
+ pip install viser[examples] # To include example dependencies.
39
+ ```
40
+
41
+ That's it! To learn more, we recommend looking at the examples in the [documentation](https://viser.studio/).
42
+
43
+ ## Citation
44
+
45
+ To cite Viser in your work, you can use the BibTeX for our [technical report](https://arxiv.org/abs/2507.22885):
46
+
47
+ ```
48
+ @article{yi2025viser,
49
+ title={Viser: Imperative, web-based 3d visualization in python},
50
+ author={Yi, Brent and Kim, Chung Min and Kerr, Justin and Wu, Gina and Feng, Rebecca and Zhang, Anthony and Kulhanek, Jonas and Choi, Hongsuk and Ma, Yi and Tancik, Matthew and Kanazawa, Angjoo},
51
+ journal={arXiv preprint arXiv:2507.22885},
52
+ year={2025}
53
+ }
54
+ ```
55
+
56
+ ## Acknowledgements
57
+
58
+ `viser` is heavily inspired by packages like
59
+ [Pangolin](https://github.com/stevenlovegrove/Pangolin),
60
+ [Dear ImGui](https://github.com/ocornut/imgui),
61
+ [rviz](https://wiki.ros.org/rviz/),
62
+ [meshcat](https://github.com/rdeits/meshcat), and
63
+ [Gradio](https://github.com/gradio-app/gradio).
64
+
65
+ The web client is implemented using [React](https://react.dev/), with:
66
+
67
+ - [Vite](https://vitejs.dev/) / [Rollup](https://rollupjs.org/) for bundling
68
+ - [three.js](https://threejs.org/) via [react-three-fiber](https://github.com/pmndrs/react-three-fiber) and [drei](https://github.com/pmndrs/drei)
69
+ - [Mantine](https://mantine.dev/) for UI components
70
+ - [vanilla-extract](https://vanilla-extract.style/) for stylesheets
71
+
72
+ Thanks to the authors of these projects for open-sourcing their work!
@@ -0,0 +1,140 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [tool.hatch.build]
6
+ exclude = ["src/viser/client/.nodeenv", "src/viser/client/node_modules", "**/__pycache__/**"]
7
+ # Client build is in the gitignore, but we still want it in the distribution.
8
+ ignore-vcs = true
9
+
10
+ [tool.hatch.version]
11
+ path = "src/viser/__init__.py"
12
+
13
+ [tool.hatch.build.targets.sdist]
14
+ only-include = ["src/viser"]
15
+
16
+ [tool.hatch.build.targets.wheel]
17
+ packages = ["src/viser"]
18
+
19
+ [project]
20
+ name = "viser-audio"
21
+ dynamic = ["version"]
22
+ description = "3D visualization + Python"
23
+ readme = "README.md"
24
+ license = { text="MIT" }
25
+ requires-python = ">=3.8"
26
+ classifiers = [
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3.8",
29
+ "Programming Language :: Python :: 3.9",
30
+ "Programming Language :: Python :: 3.10",
31
+ "Programming Language :: Python :: 3.11",
32
+ "Programming Language :: Python :: 3.12",
33
+ "Programming Language :: Python :: 3.13",
34
+ "Programming Language :: Python :: 3.14",
35
+ "License :: OSI Approved :: MIT License",
36
+ "Operating System :: OS Independent"
37
+ ]
38
+ dependencies = [
39
+ "requests>=2.0.0,<3.0.0",
40
+ "websockets>=13.1,<17.0.0",
41
+ "numpy>=1.0.0,<3.0.0",
42
+ "msgspec>=0.18.6,<1.0.0",
43
+ "imageio>=2.0.0,<3.0.0",
44
+ "tqdm>=4.0.0,<5.0.0",
45
+ "rich>=13.3.3,<15.0.0",
46
+ "trimesh>=3.21.7,<6.0.0",
47
+ "typing_extensions>=4.0.0",
48
+ # TODO: migrate to backports.zstd when we drop Python 3.8 support.
49
+ # https://pypi.org/project/backports.zstd/
50
+ # Then migrate to stdlib compression.zstd in Python 3.14+.
51
+ # https://docs.python.org/3.14/library/compression.zstd.html
52
+ "zstandard>=0.20.0,<1.0.0",
53
+ ]
54
+
55
+ [project.optional-dependencies]
56
+ urdf = [
57
+ "yourdfpy>=0.0.53,<1.0.0",
58
+ ]
59
+ dev = [
60
+ "viser-audio[examples]",
61
+ "pyright>=1.1.308",
62
+ "ruff>=0.9.3",
63
+ "pre-commit==3.3.2",
64
+ "pytest",
65
+ "hypothesis[numpy]",
66
+ "psutil>=5.9.5,<8.0.0",
67
+ "nodeenv>=1.9.1,<2.0.0",
68
+ "playwright>=1.40.0",
69
+ "pytest-playwright>=0.4.0",
70
+ "pytest-xdist>=3.0.0",
71
+ "pytest-split>=0.8.0",
72
+ ]
73
+ examples = [
74
+ "viser-audio[urdf]",
75
+ "torch>=1.13.1",
76
+ "torch<2.5.0; python_version<'3.9'", # Last torch with cp38 wheels.
77
+ "matplotlib>=3.7.1",
78
+ "plotly>=5.21.0",
79
+ "robot_descriptions>=1.18.0",
80
+ "gdown>=4.6.6",
81
+ "plyfile",
82
+ "opencv-python",
83
+ "pyliblzfse>=0.4.1; platform_system!='Windows'",
84
+ "pandas", # https://github.com/viser-project/viser/issues/457
85
+ "tyro>=1.0.0",
86
+ ]
87
+
88
+ [project.urls]
89
+ "GitHub" = "https://github.com/abcamiletto/viser-audio"
90
+
91
+ [project.scripts]
92
+ viser-build-client = "viser._client_autobuild:build_client_entrypoint"
93
+
94
+ [tool.pytest.ini_options]
95
+ testpaths = ["tests"]
96
+ filterwarnings = [
97
+ "error:.*asyncio\\.iscoroutinefunction.*:DeprecationWarning",
98
+ ]
99
+ markers = [
100
+ "e2e: end-to-end browser tests (require Playwright)",
101
+ ]
102
+ addopts = "--strict-markers"
103
+
104
+ [tool.pyright]
105
+ extraPaths = []
106
+ exclude = ["./docs/**/*", "./examples/assets/**/*", "./src/viser/client/.nodeenv", "./build"]
107
+
108
+ [tool.ruff]
109
+ lint.select = [
110
+ "E", # pycodestyle errors.
111
+ "F", # Pyflakes rules.
112
+ "PLC", # Pylint convention warnings.
113
+ "PLE", # Pylint errors.
114
+ "PLR", # Pylint refactor recommendations.
115
+ "PLW", # Pylint warnings.
116
+ "I", # Import sorting.
117
+ ]
118
+ lint.ignore = [
119
+ "E731", # Do not assign a lambda expression, use a def.
120
+ "E741", # Ambiguous variable name. (l, O, or I)
121
+ "E501", # Line too long.
122
+ "E721", # Do not compare types, use `isinstance()`.
123
+ "F722", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
124
+ "F821", # Forward annotation false positive from jaxtyping. Should be caught by pyright.
125
+ "PLR2004", # Magic value used in comparison.
126
+ "PLR0915", # Too many statements.
127
+ "PLR0913", # Too many arguments.
128
+ "PLR0917", # Too many positional arguments. (stabilized in newer ruff; same intent as PLR0913 above)
129
+ "PLW0108", # Lambda may be unnecessary. (stabilized in newer ruff; flags pre-existing callback-style lambdas)
130
+ "PLC0414", # Import alias does not rename variable. (this is used for exporting names)
131
+ "PLC0415", # Import should be at the top-level of a file.
132
+ "PLC1901", # Use falsey strings.
133
+ "PLR5501", # Use `elif` instead of `else if`.
134
+ "PLR0911", # Too many return statements.
135
+ "PLR0912", # Too many branches.
136
+ "PLW0603", # Global statement updates are discouraged.
137
+ "PLW2901", # For loop variable overwritten.
138
+ "PLW0642", # Reassigned self in instance method.
139
+ ]
140
+ exclude = [ ".nodeenv" ]
@@ -0,0 +1,87 @@
1
+ from typing import TYPE_CHECKING as _TYPE_CHECKING
2
+
3
+ from ._gui_api import GuiApi as GuiApi
4
+ from ._gui_handles import CommandEvent as CommandEvent
5
+ from ._gui_handles import CommandHandle as CommandHandle
6
+ from ._gui_handles import GuiButtonGroupHandle as GuiButtonGroupHandle
7
+ from ._gui_handles import GuiButtonHandle as GuiButtonHandle
8
+ from ._gui_handles import GuiCheckboxHandle as GuiCheckboxHandle
9
+ from ._gui_handles import GuiDividerHandle as GuiDividerHandle
10
+ from ._gui_handles import GuiDropdownHandle as GuiDropdownHandle
11
+ from ._gui_handles import GuiEvent as GuiEvent
12
+ from ._gui_handles import GuiFolderHandle as GuiFolderHandle
13
+ from ._gui_handles import GuiFormHandle as GuiFormHandle
14
+ from ._gui_handles import GuiHtmlHandle as GuiHtmlHandle
15
+ from ._gui_handles import GuiImageHandle as GuiImageHandle
16
+ from ._gui_handles import GuiInputHandle as GuiInputHandle
17
+ from ._gui_handles import GuiMarkdownHandle as GuiMarkdownHandle
18
+ from ._gui_handles import GuiMultiSliderHandle as GuiMultiSliderHandle
19
+ from ._gui_handles import GuiNumberHandle as GuiNumberHandle
20
+ from ._gui_handles import GuiPlotlyHandle as GuiPlotlyHandle
21
+ from ._gui_handles import GuiRgbaHandle as GuiRgbaHandle
22
+ from ._gui_handles import GuiRgbHandle as GuiRgbHandle
23
+ from ._gui_handles import GuiSliderHandle as GuiSliderHandle
24
+ from ._gui_handles import GuiTabGroupHandle as GuiTabGroupHandle
25
+ from ._gui_handles import GuiTabHandle as GuiTabHandle
26
+ from ._gui_handles import GuiTextHandle as GuiTextHandle
27
+ from ._gui_handles import GuiUploadButtonHandle as GuiUploadButtonHandle
28
+ from ._gui_handles import GuiUplotHandle as GuiUplotHandle
29
+ from ._gui_handles import GuiVector2Handle as GuiVector2Handle
30
+ from ._gui_handles import GuiVector3Handle as GuiVector3Handle
31
+ from ._gui_handles import MainPanelHandle as MainPanelHandle
32
+ from ._gui_handles import PanelHandle as PanelHandle
33
+ from ._gui_handles import PlaceableHandle as PlaceableHandle
34
+ from ._gui_handles import UploadedFile as UploadedFile
35
+ from ._icons_enum import Icon as Icon
36
+ from ._icons_enum import IconName as IconName
37
+ from ._notification_handle import NotificationHandle as NotificationHandle
38
+ from ._scene_api import SceneApi as SceneApi
39
+ from ._scene_handles import AmbientLightHandle as AmbientLightHandle
40
+ from ._scene_handles import ArrowsHandle as ArrowsHandle
41
+ from ._scene_handles import AudioHandle as AudioHandle
42
+ from ._scene_handles import BatchedAxesHandle as BatchedAxesHandle
43
+ from ._scene_handles import BatchedGlbHandle as BatchedGlbHandle
44
+ from ._scene_handles import BatchedMeshHandle as BatchedMeshHandle
45
+ from ._scene_handles import BoxHandle as BoxHandle
46
+ from ._scene_handles import CameraFrustumHandle as CameraFrustumHandle
47
+ from ._scene_handles import CylinderHandle as CylinderHandle
48
+ from ._scene_handles import DirectionalLightHandle as DirectionalLightHandle
49
+ from ._scene_handles import FrameHandle as FrameHandle
50
+ from ._scene_handles import GaussianSplatHandle as GaussianSplatHandle
51
+ from ._scene_handles import GlbHandle as GlbHandle
52
+ from ._scene_handles import GridHandle as GridHandle
53
+ from ._scene_handles import Gui3dContainerHandle as Gui3dContainerHandle
54
+ from ._scene_handles import HemisphereLightHandle as HemisphereLightHandle
55
+ from ._scene_handles import IcosphereHandle as IcosphereHandle
56
+ from ._scene_handles import ImageHandle as ImageHandle
57
+ from ._scene_handles import LabelHandle as LabelHandle
58
+ from ._scene_handles import LineSegmentsHandle as LineSegmentsHandle
59
+ from ._scene_handles import MeshHandle as MeshHandle
60
+ from ._scene_handles import MeshSkinnedBoneHandle as MeshSkinnedBoneHandle
61
+ from ._scene_handles import MeshSkinnedHandle as MeshSkinnedHandle
62
+ from ._scene_handles import PointCloudHandle as PointCloudHandle
63
+ from ._scene_handles import PointLightHandle as PointLightHandle
64
+ from ._scene_handles import RectAreaLightHandle as RectAreaLightHandle
65
+ from ._scene_handles import SceneClickEvent as SceneClickEvent
66
+ from ._scene_handles import SceneNodeDragEvent as SceneNodeDragEvent
67
+ from ._scene_handles import SceneNodeHandle as SceneNodeHandle
68
+ from ._scene_handles import SceneNodePointerEvent as SceneNodePointerEvent
69
+ from ._scene_handles import SceneRectSelectEvent as SceneRectSelectEvent
70
+ from ._scene_handles import SplineCatmullRomHandle as SplineCatmullRomHandle
71
+ from ._scene_handles import SplineCubicBezierHandle as SplineCubicBezierHandle
72
+ from ._scene_handles import SpotLightHandle as SpotLightHandle
73
+ from ._scene_handles import TransformControlsEvent as TransformControlsEvent
74
+ from ._scene_handles import TransformControlsHandle as TransformControlsHandle
75
+ from ._viser import CameraHandle as CameraHandle
76
+ from ._viser import ClientHandle as ClientHandle
77
+ from ._viser import InitialCameraConfig as InitialCameraConfig
78
+ from ._viser import LocalStorageHandle as LocalStorageHandle
79
+ from ._viser import ViserServer as ViserServer
80
+
81
+ # Legacy alias for ``ScenePointerEvent``: importable at runtime but
82
+ # hidden from type-checkers so users get an early signal to migrate to
83
+ # ``SceneClickEvent`` / ``SceneRectSelectEvent``.
84
+ if not _TYPE_CHECKING:
85
+ from ._scene_handles import ScenePointerEvent as ScenePointerEvent
86
+
87
+ __version__ = "0.0.1"