@nebula-spatial/studio 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +206 -3
- package/dist/ai/contract.d.ts +73 -0
- package/dist/ai/host.d.ts +28 -0
- package/dist/asset/dependency-scan.d.ts +78 -0
- package/dist/asset/intake.d.ts +84 -0
- package/dist/asset/layout-detect.d.ts +40 -0
- package/dist/asset/media-type.d.ts +10 -0
- package/dist/asset/model-inspection.d.ts +127 -0
- package/dist/asset/record.d.ts +35 -0
- package/dist/asset/remote-asset-resolver.d.ts +36 -0
- package/dist/asset/repairs.d.ts +53 -0
- package/dist/asset/resource-locator.d.ts +15 -0
- package/dist/asset/revision-diff.d.ts +33 -0
- package/dist/asset/source-contracts.d.ts +21 -0
- package/dist/asset/source-paths.d.ts +15 -0
- package/dist/asset/usd-inspection.d.ts +39 -0
- package/dist/asset/usd-source-metadata.d.ts +142 -0
- package/dist/asset/visual-intake.d.ts +27 -0
- package/dist/asset/visual-record.d.ts +22 -0
- package/dist/asset/web-intake.d.ts +46 -0
- package/dist/asset-source-BExlEcRt.js +444 -0
- package/dist/assets/openusd_three_loader-DLiqJWUM.js +13769 -0
- package/dist/assets/usd-export-worker-BRxTLqer.js +182 -0
- package/dist/assets/usd-worker-DekqMsQv.js +1392 -0
- package/dist/builders-BAXRR5o5.js +1854 -0
- package/dist/core/asset-task.d.ts +105 -0
- package/dist/core/context.d.ts +23 -0
- package/dist/core/host.d.ts +432 -0
- package/dist/core/persistence-controller.d.ts +58 -0
- package/dist/core/plugins.d.ts +139 -0
- package/dist/core/scene-tree.d.ts +62 -0
- package/dist/core/versions.d.ts +2 -0
- package/dist/core/when.d.ts +13 -0
- package/dist/core/write-policy.d.ts +29 -0
- package/dist/delivery/build-plan.d.ts +2 -0
- package/dist/delivery/contracts.d.ts +362 -0
- package/dist/delivery/digest.d.ts +3 -0
- package/dist/delivery/evidence.d.ts +10 -0
- package/dist/delivery/export-evidence.d.ts +3 -0
- package/dist/delivery/index.d.ts +9 -0
- package/dist/delivery/prim-name.d.ts +17 -0
- package/dist/delivery/profile.d.ts +4 -0
- package/dist/doc/builders.d.ts +99 -0
- package/dist/doc/command.d.ts +195 -0
- package/dist/doc/domain-extensions.d.ts +34 -0
- package/dist/doc/node-facts.d.ts +87 -0
- package/dist/doc/physics-facts.d.ts +74 -0
- package/dist/doc/placement-policy.d.ts +71 -0
- package/dist/doc/random-placement.d.ts +30 -0
- package/dist/doc/scene-graph.d.ts +80 -0
- package/dist/doc/scene-regions.d.ts +29 -0
- package/dist/doc/schema.d.ts +452 -0
- package/dist/doc/task.d.ts +71 -0
- package/dist/doc/validate.d.ts +68 -0
- package/dist/editor/asset-source.d.ts +15 -0
- package/dist/editor/editor.d.ts +246 -0
- package/dist/editor/index.d.ts +22 -0
- package/dist/editor/shortcuts.d.ts +2 -0
- package/dist/editor/types.d.ts +143 -0
- package/dist/editor/ui-plugins.d.ts +64 -0
- package/dist/editor.js +1755 -0
- package/dist/editorial-BkAFWfbg.js +83 -0
- package/dist/export-evidence-DMNRhgL9.js +2705 -0
- package/dist/generalization/domain.d.ts +10 -0
- package/dist/generalization/generalization.d.ts +371 -0
- package/dist/generalization/index.d.ts +11 -0
- package/dist/generalization.js +1659 -0
- package/dist/history/undo-stack.d.ts +74 -0
- package/dist/index.d.ts +91 -0
- package/dist/index.js +2840 -0
- package/dist/mjcf-visual-Bt4bUxd1.js +72 -0
- package/dist/mujoco-runtime-BYZnrvbR.js +467 -0
- package/dist/persist/content-addressed.d.ts +11 -0
- package/dist/persist/create-scene-package-from-host.d.ts +7 -0
- package/dist/persist/indexeddb-store.d.ts +69 -0
- package/dist/persist/scene-file.d.ts +52 -0
- package/dist/persist/scene-package.d.ts +8 -0
- package/dist/persist/snapshot.d.ts +5 -0
- package/dist/physics-facts-tfQYyNTD.js +337 -0
- package/dist/placement-policy-DY_FNRDu.js +405 -0
- package/dist/ports/asset-ingestor.d.ts +41 -0
- package/dist/ports/asset-source.d.ts +57 -0
- package/dist/ports/delivery.d.ts +13 -0
- package/dist/ports/persistence.d.ts +29 -0
- package/dist/project/asset-catalog.d.ts +21 -0
- package/dist/project/contracts.d.ts +272 -0
- package/dist/project/editorial.d.ts +16 -0
- package/dist/project/identity.d.ts +20 -0
- package/dist/project/index.d.ts +9 -0
- package/dist/project/scene-document.d.ts +5 -0
- package/dist/project/source-dependencies.d.ts +7 -0
- package/dist/remote-asset-resolver-Cb8cfNmw.js +136 -0
- package/dist/scene/index.d.ts +12 -0
- package/dist/scene-graph-DBLKAhxa.js +681 -0
- package/dist/scene-session-Cy6vDJ1l.js +21981 -0
- package/dist/scene.js +244 -0
- package/dist/session-BRBrCLdd.js +963 -0
- package/dist/session-DI5tPJxn.js +825 -0
- package/dist/session-q3uuG7OP.js +296 -0
- package/dist/studio/delivery-catalog.d.ts +28 -0
- package/dist/studio/in-memory-asset-source.d.ts +15 -0
- package/dist/studio/index.d.ts +31 -0
- package/dist/studio/indexeddb-asset-source.d.ts +32 -0
- package/dist/studio/indexeddb-persistence.d.ts +13 -0
- package/dist/studio/remote-asset-importer.d.ts +56 -0
- package/dist/studio/source-package.d.ts +9 -0
- package/dist/studio/usd-export-client.d.ts +13 -0
- package/dist/studio/usd-export-protocol.d.ts +98 -0
- package/dist/studio/usd-export-worker.d.ts +1 -0
- package/dist/studio/usd-zip-reader.d.ts +14 -0
- package/dist/studio/web-asset-ingestor.d.ts +10 -0
- package/dist/studio/web-host.d.ts +8 -0
- package/dist/studio.js +5545 -0
- package/dist/urdf-session-CQir2nb2.js +1230 -0
- package/dist/usd-session-DZJnEEOs.js +7385 -0
- package/dist/util/asset-facts.d.ts +3 -0
- package/dist/util/data.d.ts +17 -0
- package/dist/util/diagnostics.d.ts +38 -0
- package/dist/util/geometry.d.ts +11 -0
- package/dist/util/hash.d.ts +9 -0
- package/dist/util/ids.d.ts +20 -0
- package/dist/util/math.d.ts +47 -0
- package/dist/util/ply-metadata.d.ts +19 -0
- package/dist/util/studio-source.d.ts +23 -0
- package/dist/version.d.ts +5 -0
- package/dist/view/appearance.d.ts +13 -0
- package/dist/view/authoring-appearance.d.ts +25 -0
- package/dist/view/bounds-preview.d.ts +34 -0
- package/dist/view/bounds.d.ts +11 -0
- package/dist/view/camera-zoom.d.ts +3 -0
- package/dist/view/geometry-anchors.d.ts +20 -0
- package/dist/view/gizmo-appearance.d.ts +5 -0
- package/dist/view/gizmo.d.ts +81 -0
- package/dist/view/group-selection.d.ts +13 -0
- package/dist/view/node-features.d.ts +39 -0
- package/dist/view/picking.d.ts +49 -0
- package/dist/view/placement.d.ts +48 -0
- package/dist/view/region-editing.d.ts +25 -0
- package/dist/view/rotation-guide.d.ts +36 -0
- package/dist/view/runtime-capabilities.d.ts +22 -0
- package/dist/view/scene-session.d.ts +258 -0
- package/dist/view/screen-bounds.d.ts +17 -0
- package/dist/view/selection-transform.d.ts +20 -0
- package/dist/wasm-module-DZn2AM1W.js +13 -0
- package/dist/xacro-DLRXyk60.js +76 -0
- package/node_modules/@nebula-spatial/cad-loader/CHANGELOG.md +48 -0
- package/node_modules/@nebula-spatial/cad-loader/README.md +108 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/cad-types.d.ts +26 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/errors.d.ts +5 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/index.d.ts +24 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/index.js +2354 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/parser/bin-group-reader.d.ts +9 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/parser/bin-parser.d.ts +78 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/parser/dxbs-sidecar.d.ts +24 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/parser/geometry-segments.d.ts +20 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/parser/text-roundtrip.d.ts +4 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/parser/types.d.ts +81 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/runtime-text-decoder.d.ts +8 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/types.d.ts +153 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/utils/insert-bbox.d.ts +10 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/core/utils/viewport-rect.d.ts +21 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/index.d.ts +36 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/index.js +5829 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/geo-loader.d.ts +59 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/automatic-external-resources.d.ts +26 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/external-variant-sidecar-fetch.d.ts +13 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/flow-control.d.ts +29 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/frame-budget-scheduler.d.ts +21 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-compact-executor.d.ts +19 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-loader-local-adapter.d.ts +2 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-loader-pipeline.d.ts +92 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-loader-worker-adapter.d.ts +13 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-node-builder.d.ts +34 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-node-load-sink.d.ts +28 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-node.d.ts +304 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-prepare-worker-types.d.ts +94 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-prepare.d.ts +38 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/geo-prepare.worker.d.ts +1 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/insert-model-builder.d.ts +10 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/insert-runtime-geometry.d.ts +15 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/line-canonical.d.ts +37 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/line-quality.d.ts +9 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/prepare-credit-gate.d.ts +20 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/loader/internal/transport.d.ts +2 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/render-resource/cad-render-node.d.ts +80 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/render-resource/geo-node-cad-render-node.d.ts +12 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/scene/geo-cad-line-geometry.d.ts +28 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/scene/geo-cad-line-material.d.ts +18 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/scene/instancing/block-geometry-registry.d.ts +35 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/scene/instancing/insert-instance-table.d.ts +23 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/scene/instancing/viewport-instance-presenter.d.ts +66 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/selection/cad-insert-selection.d.ts +35 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/selection/cad-text-selection.d.ts +31 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/session/annotation-idle-gate.d.ts +14 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/session/cad-document-session.d.ts +187 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/session/cad-font-runtime.d.ts +11 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/session/cad-insert-id.d.ts +6 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/session/cad-text-warmup.d.ts +38 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/session/create-cad-document-session.d.ts +5 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/session/load-session.d.ts +90 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/session/viewport-coverage.d.ts +32 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/abort.d.ts +3 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/cad-display-color.d.ts +55 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/cad-load-source.d.ts +8 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/color-buffer.d.ts +6 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/constants.d.ts +11 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/display-color-buffer.d.ts +27 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/errors.d.ts +2 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/text-builder.d.ts +25 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/text-font.d.ts +12 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/types.d.ts +57 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/utils/insert-bbox.d.ts +1 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/utils/timing.d.ts +2 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/utils/viewport-rect.d.ts +1 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/shared/viewer-theme.d.ts +2 -0
- package/node_modules/@nebula-spatial/cad-loader/dist/workers/geo-prepare.worker.js +2264 -0
- package/node_modules/@nebula-spatial/cad-loader/package.json +62 -0
- package/node_modules/@nebula-spatial/viewer/CHANGELOG.md +426 -0
- package/node_modules/@nebula-spatial/viewer/FBX-MATERIAL-CONVERSION.md +97 -0
- package/node_modules/@nebula-spatial/viewer/README.md +1056 -0
- package/node_modules/@nebula-spatial/viewer/USD-VISUAL-MATERIAL-SUPPORT.md +89 -0
- package/node_modules/@nebula-spatial/viewer/basis/basis_transcoder.js +19 -0
- package/node_modules/@nebula-spatial/viewer/basis/basis_transcoder.wasm +0 -0
- package/node_modules/@nebula-spatial/viewer/dist/asset-ir-DEOK9SqE.js +382 -0
- package/node_modules/@nebula-spatial/viewer/dist/assets/ground-grid.d.ts +6 -0
- package/node_modules/@nebula-spatial/viewer/dist/assets/source-types.d.ts +19 -0
- package/node_modules/@nebula-spatial/viewer/dist/assets/types.d.ts +393 -0
- package/node_modules/@nebula-spatial/viewer/dist/assets/usd-worker-Bom5cjz3.js +1392 -0
- package/node_modules/@nebula-spatial/viewer/dist/cad/text.d.ts +2 -0
- package/node_modules/@nebula-spatial/viewer/dist/cad/types.d.ts +368 -0
- package/node_modules/@nebula-spatial/viewer/dist/index-ByBlfVc0.js +12132 -0
- package/node_modules/@nebula-spatial/viewer/dist/index.d.ts +32 -0
- package/node_modules/@nebula-spatial/viewer/dist/index.js +26 -0
- package/node_modules/@nebula-spatial/viewer/dist/inspection/types.d.ts +112 -0
- package/node_modules/@nebula-spatial/viewer/dist/mjcf-visual-DVRa0w90.js +72 -0
- package/node_modules/@nebula-spatial/viewer/dist/mujoco-runtime-Dhx6Ua2u.js +463 -0
- package/node_modules/@nebula-spatial/viewer/dist/plugins.d.ts +179 -0
- package/node_modules/@nebula-spatial/viewer/dist/scene/instances.d.ts +36 -0
- package/node_modules/@nebula-spatial/viewer/dist/scene/types.d.ts +258 -0
- package/node_modules/@nebula-spatial/viewer/dist/session-B-j6KdA-.js +389 -0
- package/node_modules/@nebula-spatial/viewer/dist/session-B4AICTeJ.js +963 -0
- package/node_modules/@nebula-spatial/viewer/dist/session-BAG5cDYe.js +9153 -0
- package/node_modules/@nebula-spatial/viewer/dist/simulation/mujoco-runtime.d.ts +118 -0
- package/node_modules/@nebula-spatial/viewer/dist/simulation/mujoco-wasm-module.d.ts +11 -0
- package/node_modules/@nebula-spatial/viewer/dist/simulation/openusd-wasm-module.d.ts +10 -0
- package/node_modules/@nebula-spatial/viewer/dist/simulation/physics-runtime-state.d.ts +75 -0
- package/node_modules/@nebula-spatial/viewer/dist/simulation/types.d.ts +129 -0
- package/node_modules/@nebula-spatial/viewer/dist/simulation/usd-inspection.d.ts +66 -0
- package/node_modules/@nebula-spatial/viewer/dist/simulation/usd-query.d.ts +50 -0
- package/node_modules/@nebula-spatial/viewer/dist/simulation/usd-resource-policy.d.ts +28 -0
- package/node_modules/@nebula-spatial/viewer/dist/types.d.ts +278 -0
- package/node_modules/@nebula-spatial/viewer/dist/ui/types.d.ts +48 -0
- package/node_modules/@nebula-spatial/viewer/dist/urdf-session-kemAnBn8.js +3231 -0
- package/node_modules/@nebula-spatial/viewer/dist/usd-session-QtwGKI7v.js +6771 -0
- package/node_modules/@nebula-spatial/viewer/dist/version.d.ts +5 -0
- package/node_modules/@nebula-spatial/viewer/dist/viewer.d.ts +2 -0
- package/node_modules/@nebula-spatial/viewer/dist/xacro-CYTPS7mh.js +1537 -0
- package/node_modules/@nebula-spatial/viewer/openusd/openusd-runtime-manifest.json +15 -0
- package/node_modules/@nebula-spatial/viewer/openusd/openusd_probe.js +14 -0
- package/node_modules/@nebula-spatial/viewer/openusd/openusd_probe.wasm +0 -0
- package/node_modules/@nebula-spatial/viewer/package.json +66 -0
- package/package.json +87 -6
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import './version';
|
|
2
|
+
export { viewerVersion } from './version';
|
|
3
|
+
export type { ViewerSceneUiOptions, ViewerSceneUiParts } from './ui/types';
|
|
4
|
+
export { createViewer } from './viewer';
|
|
5
|
+
export { axisGizmo } from './ui/camera-axis-gizmo';
|
|
6
|
+
export { DEFAULT_GROUND_GRID_SCALE, chooseGroundGridScale, formatGroundGridScale, } from './assets/ground-grid';
|
|
7
|
+
export type { GroundGridScale } from './assets/ground-grid';
|
|
8
|
+
export { getUsdQuery } from './simulation/usd-query';
|
|
9
|
+
export { compileOpenUsdWasmModule } from './simulation/openusd-wasm-module';
|
|
10
|
+
export type { OpenUsdWasmCompileOptions } from './simulation/openusd-wasm-module';
|
|
11
|
+
export { compileMujocoWasmModule } from './simulation/mujoco-wasm-module';
|
|
12
|
+
export type { MujocoWasmCompileOptions } from './simulation/mujoco-wasm-module';
|
|
13
|
+
export { preloadUsdViewer } from './simulation/usd-preload';
|
|
14
|
+
export { prewarmUsdWorker } from './simulation/usd-worker-client';
|
|
15
|
+
export { probeUsdDependencies, } from './simulation/usd-dependency-probe';
|
|
16
|
+
export type { UsdDependencyProbeRequest, UsdDependencyProbeResult, } from './simulation/usd-dependency-probe';
|
|
17
|
+
export { detectPlyContent, detectVisualContent } from './visual/classification';
|
|
18
|
+
export type { PlyContentKind, PlyHeader, VisualContentDetection, VisualContentKind, } from './visual/classification';
|
|
19
|
+
export type { QueryableUsdModel, UsdAttributeValue, UsdBoundMaterial, UsdMetadataValue, UsdPrimInfo, UsdQuery, } from './simulation/usd-query';
|
|
20
|
+
export type { AssetChangeEvent, AssetControlState, AssetControlChangeEvent, AssetDetectionResult, AssetErrorEvent, AssetErrorSnapshot, AssetFileEntry, AssetFormat, AssetLoaderContext, AssetLoaderContribution, AssetNoticeKind, AssetNoticeSnapshot, AssetPhysicsState, AssetPresentationProfile, AssetPreview, AssetPreviewCapabilities, AssetPreviewKind, AssetPreviewPhase, AssetPreviewSnapshot, AssetResourceResolver, AssetSession, AssetSingleSource, AssetSource, AssetUpAxis, AssetWarningSnapshot, NormalizedAssetSource, OpenAssetOptions, UsdExternalReferenceMode, UsdVariantSelection, ViewerAssetOptions, } from './assets/types';
|
|
21
|
+
export { findInstanceId, toPlacementSnapshot } from './scene/instances';
|
|
22
|
+
export type { UsdInspectionJoint, UsdInspectionMaterial, UsdInspectionMesh, UsdInspectionPrim, UsdInspectionSnapshot, UsdInspectionStage, UsdInspectionVariantSet, } from './simulation/usd-inspection';
|
|
23
|
+
export type { PhysicsBodyMotionType, PhysicsRuntimeBodyState, PhysicsRuntimeContactState, PhysicsRuntimeGrabState, PhysicsRuntimeJointState, PhysicsRuntimeSnapshot, } from './simulation/physics-runtime-state';
|
|
24
|
+
export type { SceneControl, SceneDeterministicCheckOptions, SceneDeterministicCheckResult, SceneEntry, SceneInstanceBounds, SceneInstancePhase, SceneInstanceRuntime, SceneInstanceSnapshot, SceneInspectionOverlay, SceneOptions, ScenePhysicsState, ScenePlacement, SceneSnapshot, } from './scene/types';
|
|
25
|
+
export { USD_RESOURCE_AUTH, USD_RESOURCE_EXTERNAL_DENIED, USD_RESOURCE_FETCH, USD_RESOURCE_INVALID, USD_RESOURCE_NOT_FOUND, } from './simulation/usd-resource-policy';
|
|
26
|
+
export type { Disposable, ToolbarItem, ViewerState, ViewerInteractionHooks, ViewerContributionPoint, ViewerPlugin, ViewerPluginContext, ViewerPluginRegistry, } from './plugins';
|
|
27
|
+
export { configureViewerText } from './cad/text';
|
|
28
|
+
export type { ViewerTextBuilderOptions } from './cad/text';
|
|
29
|
+
export type { CadBlockModel, CadDocumentHandle, CadDocumentUnits, CadFontResolver, CadFontRequest, CadResolvedFont, CadResolvedTextFont, CadTextWarmupOptions, CadHudModel, CadHudSnapshot, CadInspectorModel, CadInspectorSnapshot, CadLayerModel, CadLayerRow, CadBlockUsageRow, CadSessionPhase, CadWorldBounds, CadScaleRulerState, CadInsertDetails, CadInsertSelection, CadInsertSelectionId, CadTextDetails, CadTextSelection, CadTextSelectionId, CadSelection, CadHit, CadViewerSnapshot, CadLoadProgress, CadViewerErrorCode, CadViewerErrorEvent, CadLoadSource, CadOpenOptions, CadSessionLoadTiming, RenderDebugBreakdownEntry, SplitBlockLayerDetail, CadViewerCapability, ResolveTextFont, CadViewerEventMap, CameraStateStore, Viewer, ViewerEventMap, ViewerEnvironment, ViewerFitViewOptions, ViewerHighlightOptions, ViewerOptions, ViewerPickOptions, ViewerPickResult, ViewerPointerEvent, ViewerObjectOptions, ViewerPreviewDragPreset, ViewerCameraSnapshot, ViewerOrthographicSnapshot, ViewerOrbitSnapshot, ViewerRenderStats, ViewerDocumentRect, ViewerCadUiKeyboardOptions, ViewerUiOptions, ViewerCadUiParts, ViewerCadUiOptions, ViewerUiPreset, ViewerCadUiStateStore, ViewerUiTheme, ViewerViewMode, CadInteractionMode, CameraChangeReason, ViewerUiTokens, } from './types';
|
|
30
|
+
export type { AssetInspection, UrdfEntityKind, UrdfInspection, UrdfInspectionEntity, UrdfInspectionIssue, UrdfInspectionJoint, UrdfInspectionLink, UrdfInspectionMode, UrdfInspectionNode, UrdfInspectionOverlays, UrdfInspectionRobot, UrdfInspectionSnapshot, UrdfSourceRange } from './inspection/types';
|
|
31
|
+
export type { ViewerCaptureOptions, ViewerCaptureResult } from './types';
|
|
32
|
+
export type { SceneInstancePhysics, ScenePhysicsConfiguration } from './scene/types';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { D as s, B as o, N as r, E as U, U as d, A as t, O as E, P as i, Q as n, R as _, T as c, V as D, G as R, W as S, X as l, j as m, Y as p, Z as u, _ as C, $ as O, a0 as G } from "./index-ByBlfVc0.js";
|
|
2
|
+
import { configureCadTextBuilder as N } from "@nebula-spatial/cad-loader";
|
|
3
|
+
export {
|
|
4
|
+
s as DEFAULT_GROUND_GRID_SCALE,
|
|
5
|
+
o as USD_RESOURCE_AUTH,
|
|
6
|
+
r as USD_RESOURCE_EXTERNAL_DENIED,
|
|
7
|
+
U as USD_RESOURCE_FETCH,
|
|
8
|
+
d as USD_RESOURCE_INVALID,
|
|
9
|
+
t as USD_RESOURCE_NOT_FOUND,
|
|
10
|
+
E as axisGizmo,
|
|
11
|
+
i as chooseGroundGridScale,
|
|
12
|
+
n as compileMujocoWasmModule,
|
|
13
|
+
_ as compileOpenUsdWasmModule,
|
|
14
|
+
N as configureViewerText,
|
|
15
|
+
c as createViewer,
|
|
16
|
+
D as detectPlyContent,
|
|
17
|
+
R as detectVisualContent,
|
|
18
|
+
S as findInstanceId,
|
|
19
|
+
l as formatGroundGridScale,
|
|
20
|
+
m as getUsdQuery,
|
|
21
|
+
p as preloadUsdViewer,
|
|
22
|
+
u as prewarmUsdWorker,
|
|
23
|
+
C as probeUsdDependencies,
|
|
24
|
+
O as toPlacementSnapshot,
|
|
25
|
+
G as viewerVersion
|
|
26
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export type UrdfEntityKind = 'robot' | 'link' | 'joint';
|
|
2
|
+
export interface UrdfSourceRange {
|
|
3
|
+
readonly file: string;
|
|
4
|
+
readonly startOffset: number;
|
|
5
|
+
readonly endOffset: number;
|
|
6
|
+
readonly startLine: number;
|
|
7
|
+
readonly startColumn: number;
|
|
8
|
+
readonly endLine: number;
|
|
9
|
+
readonly endColumn: number;
|
|
10
|
+
}
|
|
11
|
+
export interface UrdfInspectionEntity {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly kind: UrdfEntityKind;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly parentId?: string;
|
|
16
|
+
readonly childIds: readonly string[];
|
|
17
|
+
readonly source?: UrdfSourceRange;
|
|
18
|
+
}
|
|
19
|
+
export interface UrdfInspectionLink extends UrdfInspectionEntity {
|
|
20
|
+
readonly kind: 'link';
|
|
21
|
+
readonly mass?: number;
|
|
22
|
+
readonly centerOfMass?: readonly number[];
|
|
23
|
+
/** Authored inertial frame RPY relative to the link frame, in radians. */
|
|
24
|
+
readonly inertialRotationRpy?: readonly number[];
|
|
25
|
+
readonly inertiaTensor?: readonly number[];
|
|
26
|
+
readonly inertiaMass?: number;
|
|
27
|
+
readonly visualCount: number;
|
|
28
|
+
readonly collisionCount: number;
|
|
29
|
+
}
|
|
30
|
+
export interface UrdfInspectionJoint extends UrdfInspectionEntity {
|
|
31
|
+
readonly kind: 'joint';
|
|
32
|
+
readonly jointType: string;
|
|
33
|
+
readonly parentLink: string;
|
|
34
|
+
readonly childLink: string;
|
|
35
|
+
readonly axis: readonly number[];
|
|
36
|
+
readonly originPosition: readonly number[];
|
|
37
|
+
readonly originRotationRpy: readonly number[];
|
|
38
|
+
readonly limits?: {
|
|
39
|
+
readonly lower: number;
|
|
40
|
+
readonly upper: number;
|
|
41
|
+
};
|
|
42
|
+
readonly effort?: number;
|
|
43
|
+
readonly velocity?: number;
|
|
44
|
+
readonly movable: boolean;
|
|
45
|
+
readonly controlLimits?: {
|
|
46
|
+
readonly lower: number;
|
|
47
|
+
readonly upper: number;
|
|
48
|
+
};
|
|
49
|
+
readonly mimic?: {
|
|
50
|
+
readonly joint: string;
|
|
51
|
+
readonly multiplier: number;
|
|
52
|
+
readonly offset: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface UrdfInspectionRobot extends UrdfInspectionEntity {
|
|
56
|
+
readonly kind: 'robot';
|
|
57
|
+
readonly rootLinkIds: readonly string[];
|
|
58
|
+
}
|
|
59
|
+
export type UrdfInspectionNode = UrdfInspectionRobot | UrdfInspectionLink | UrdfInspectionJoint;
|
|
60
|
+
export interface UrdfInspectionIssue {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
readonly ruleId: string;
|
|
63
|
+
readonly severity: 'error';
|
|
64
|
+
readonly title: string;
|
|
65
|
+
readonly message: string;
|
|
66
|
+
readonly entityId: string;
|
|
67
|
+
readonly source?: UrdfSourceRange;
|
|
68
|
+
readonly values?: Readonly<Record<string, unknown>>;
|
|
69
|
+
}
|
|
70
|
+
export interface UrdfInspectionOverlays {
|
|
71
|
+
readonly collision: boolean;
|
|
72
|
+
readonly jointAxis: boolean;
|
|
73
|
+
readonly centerOfMass: boolean;
|
|
74
|
+
readonly inertia?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export type UrdfInspectionMode = 'kinematic' | 'dynamics-initializing' | 'dynamics-paused' | 'dynamics-running' | 'dynamics-unavailable';
|
|
77
|
+
export interface UrdfInspectionSnapshot {
|
|
78
|
+
readonly revision: number;
|
|
79
|
+
readonly kind: 'urdf';
|
|
80
|
+
readonly robotName: string;
|
|
81
|
+
readonly sourcePath: string;
|
|
82
|
+
readonly sourceText: string;
|
|
83
|
+
readonly nodes: readonly UrdfInspectionNode[];
|
|
84
|
+
readonly rootEntityId: string;
|
|
85
|
+
readonly selectedEntityId: string | null;
|
|
86
|
+
readonly jointValues: Readonly<Record<string, number>>;
|
|
87
|
+
readonly overlays: UrdfInspectionOverlays;
|
|
88
|
+
readonly issues: readonly UrdfInspectionIssue[];
|
|
89
|
+
readonly mode: UrdfInspectionMode;
|
|
90
|
+
readonly dynamicsAvailable: boolean;
|
|
91
|
+
readonly dynamicsMessage?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface UrdfInspection {
|
|
94
|
+
readonly kind: 'urdf';
|
|
95
|
+
getSnapshot(): UrdfInspectionSnapshot;
|
|
96
|
+
subscribe(listener: (snapshot: UrdfInspectionSnapshot) => void): () => void;
|
|
97
|
+
select(entityId: string | null): void;
|
|
98
|
+
setJointValue(jointId: string, value: number): void;
|
|
99
|
+
resetJoint(jointId: string): void;
|
|
100
|
+
resetPose(): void;
|
|
101
|
+
setOverlay(name: keyof UrdfInspectionOverlays, visible: boolean): void;
|
|
102
|
+
enterKinematicPreview(): void;
|
|
103
|
+
jointWorldFrame?(jointId: string): {
|
|
104
|
+
position: import('three').Vector3;
|
|
105
|
+
axis: import('three').Vector3;
|
|
106
|
+
} | null;
|
|
107
|
+
/** World-space label anchor at the own-link visual bounds center. */
|
|
108
|
+
linkWorldPosition?(linkId: string, target: import('three').Vector3): boolean;
|
|
109
|
+
pickRoots?(): readonly import('three').Object3D[];
|
|
110
|
+
}
|
|
111
|
+
/** Tagged inspection surface. Future formats can extend this union without changing AssetPreview. */
|
|
112
|
+
export type AssetInspection = UrdfInspection;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { J as v, M as E, n as z } from "./index-ByBlfVc0.js";
|
|
2
|
+
import { Group as J, Euler as G, BoxGeometry as N, SphereGeometry as P, CylinderGeometry as $, CapsuleGeometry as I, PlaneGeometry as X, Mesh as j } from "three";
|
|
3
|
+
function D(f) {
|
|
4
|
+
const y = f.extension.documents, l = new J();
|
|
5
|
+
l.name = f.name;
|
|
6
|
+
try {
|
|
7
|
+
if (y.size !== 1) throw new Error("MJCF 独立预览暂不支持 include");
|
|
8
|
+
const u = [...y.values()][0];
|
|
9
|
+
if (u.querySelector("default, include, attach, replicate, composite, flexcomp, skin, hfield, plugin")) throw new Error("MJCF 独立预览包含尚不支持的继承、组合或扩展语义");
|
|
10
|
+
const a = u.querySelector("compiler");
|
|
11
|
+
if ((a == null ? void 0 : a.getAttribute("coordinate")) === "global" || a != null && a.hasAttribute("eulerseq")) throw new Error("MJCF 独立预览不支持此坐标设置");
|
|
12
|
+
const g = (a == null ? void 0 : a.getAttribute("angle")) === "radian" ? 1 : Math.PI / 180, b = (c, m) => {
|
|
13
|
+
const e = c ? c.trim().split(/\s+/).map(Number) : m;
|
|
14
|
+
if (e.some((s) => !Number.isFinite(s))) throw new Error("MJCF 视觉坐标无效");
|
|
15
|
+
return e;
|
|
16
|
+
}, h = (c, m, e) => {
|
|
17
|
+
const s = b(c, m);
|
|
18
|
+
if (s.length !== e) throw new Error(`MJCF 视觉变换需要 ${e} 个分量`);
|
|
19
|
+
return s;
|
|
20
|
+
}, M = (c, m) => {
|
|
21
|
+
for (const e of c.children) {
|
|
22
|
+
if (!["body", "geom"].includes(e.tagName)) continue;
|
|
23
|
+
if (["class", "childclass", "fromto", "axisangle", "xyaxes", "zaxis"].some((t) => e.hasAttribute(t))) throw new Error("MJCF 独立预览不支持此变换或默认类");
|
|
24
|
+
const s = new J();
|
|
25
|
+
if (s.name = e.getAttribute("name") ?? e.tagName, s.position.fromArray(h(e.getAttribute("pos"), [0, 0, 0], 3)), e.hasAttribute("quat")) {
|
|
26
|
+
const t = h(e.getAttribute("quat"), [1, 0, 0, 0], 4);
|
|
27
|
+
if (Math.hypot(...t) === 0) throw new Error("MJCF 视觉四元数不能为零");
|
|
28
|
+
s.quaternion.set(t[1], t[2], t[3], t[0]).normalize();
|
|
29
|
+
} else {
|
|
30
|
+
const t = h(e.getAttribute("euler"), [0, 0, 0], 3);
|
|
31
|
+
s.quaternion.setFromEuler(new G(t[0] * g, t[1] * g, t[2] * g, "XYZ"));
|
|
32
|
+
}
|
|
33
|
+
if (m.add(s), e.tagName === "body") {
|
|
34
|
+
M(e, s);
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
const n = e.getAttribute("type") ?? (e.hasAttribute("mesh") ? "mesh" : "sphere"), r = b(e.getAttribute("size"), []);
|
|
38
|
+
if (r.length === 0) throw new Error("MJCF 独立预览缺少可直接解析的几何或材质");
|
|
39
|
+
const F = { box: 3, sphere: 1, cylinder: 2, capsule: 2, plane: 3 }[n];
|
|
40
|
+
if (F && (r.length < F || r.some((t) => n === "plane" ? t < 0 : t <= 0)))
|
|
41
|
+
throw new Error(`MJCF geom ${n} 的尺寸缺失或无效`);
|
|
42
|
+
let i;
|
|
43
|
+
if (n === "box") i = new N(2 * r[0], 2 * r[1], 2 * r[2]);
|
|
44
|
+
else if (n === "sphere") i = new P(r[0]);
|
|
45
|
+
else if (n === "cylinder")
|
|
46
|
+
i = new $(r[0], r[0], 2 * r[1]), i.rotateX(Math.PI / 2);
|
|
47
|
+
else if (n === "capsule")
|
|
48
|
+
i = new I(r[0], 2 * r[1]), i.rotateX(Math.PI / 2);
|
|
49
|
+
else if (n === "plane") i = new X(2 * (r[0] || 5), 2 * (r[1] || 5));
|
|
50
|
+
else throw new Error(`MJCF 独立预览暂不支持 geom ${n}`);
|
|
51
|
+
const p = e.getAttribute("material"), o = [...u.querySelectorAll("asset > material")].find((t) => t.getAttribute("name") === p);
|
|
52
|
+
if (p && !o) throw new Error(`Undefined MJCF material: ${p}`);
|
|
53
|
+
if (o != null && o.hasAttribute("texture") || o != null && o.querySelector("layer")) throw new Error("MJCF textured preview requires the compiled material pipeline");
|
|
54
|
+
const x = h(e.getAttribute("rgba"), [0.5, 0.5, 0.5, 1], 4), q = o && x.every((t, d) => t === [0.5, 0.5, 0.5, 1][d]) ? h(o.getAttribute("rgba"), [1, 1, 1, 1], 4) : x, w = (t, d) => o != null && o.hasAttribute(t) ? b(o.getAttribute(t), [d])[0] : d, S = v({
|
|
55
|
+
color: q,
|
|
56
|
+
roughness: o ? E(w("roughness", -1), w("shininess", 0.5)) : E(),
|
|
57
|
+
metalness: Math.max(0, w("metallic", 0)),
|
|
58
|
+
specular: w("specular", 0.5),
|
|
59
|
+
emission: w("emission", 0)
|
|
60
|
+
}), C = new j(i, S);
|
|
61
|
+
n === "plane" && m === l && (C.userData.excludeFromSimulationFit = !0), s.add(C);
|
|
62
|
+
}
|
|
63
|
+
}, A = u.querySelector("worldbody");
|
|
64
|
+
if (!A) throw new Error("MJCF 缺少 worldbody");
|
|
65
|
+
return M(A, l), l.updateMatrixWorld(!0), l;
|
|
66
|
+
} catch (u) {
|
|
67
|
+
throw z(l), u;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
D as compileMjcfPreview
|
|
72
|
+
};
|