@asyra/preset 0.5.8 → 0.6.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/CHANGELOG.md +28 -0
- package/README.md +2 -2
- package/dist/agent-activity.d.ts +61 -0
- package/dist/agent-activity.d.ts.map +1 -0
- package/dist/agent-activity.js +224 -0
- package/dist/agent-activity.js.map +1 -0
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +2 -2
- package/dist/catalog.js.map +1 -1
- package/dist/cleanup-reporter.d.ts.map +1 -1
- package/dist/cleanup-reporter.js.map +1 -1
- package/dist/components/fills.d.ts +3 -1
- package/dist/components/fills.d.ts.map +1 -1
- package/dist/components/fills.js +74 -0
- package/dist/components/fills.js.map +1 -1
- package/dist/components/frame.d.ts +2 -2
- package/dist/components/frame.d.ts.map +1 -1
- package/dist/components/frame.js +1 -0
- package/dist/components/frame.js.map +1 -1
- package/dist/components/group.d.ts +9 -21
- package/dist/components/group.d.ts.map +1 -1
- package/dist/components/group.js +193 -86
- package/dist/components/group.js.map +1 -1
- package/dist/components/oval.d.ts +2 -2
- package/dist/components/oval.d.ts.map +1 -1
- package/dist/components/oval.js +3 -1
- package/dist/components/oval.js.map +1 -1
- package/dist/components/rectangle.d.ts +2 -2
- package/dist/components/rectangle.d.ts.map +1 -1
- package/dist/components/rectangle.js +3 -1
- package/dist/components/rectangle.js.map +1 -1
- package/dist/components/shape-hit-area.d.ts.map +1 -1
- package/dist/components/shape-hit-area.js.map +1 -1
- package/dist/components/text.d.ts +9 -0
- package/dist/components/text.d.ts.map +1 -0
- package/dist/components/text.js +61 -0
- package/dist/components/text.js.map +1 -0
- package/dist/components/vector-compound-fill.d.ts +8 -0
- package/dist/components/vector-compound-fill.d.ts.map +1 -0
- package/dist/components/vector-compound-fill.js +149 -0
- package/dist/components/vector-compound-fill.js.map +1 -0
- package/dist/components/vector.d.ts.map +1 -1
- package/dist/components/vector.js +85 -565
- package/dist/components/vector.js.map +1 -1
- package/dist/composition/error.d.ts.map +1 -1
- package/dist/composition/error.js.map +1 -1
- package/dist/composition/profile-provider.d.ts +2 -1
- package/dist/composition/profile-provider.d.ts.map +1 -1
- package/dist/composition/profile-provider.js +8 -2
- package/dist/composition/profile-provider.js.map +1 -1
- package/dist/composition/resolve.d.ts +2 -0
- package/dist/composition/resolve.d.ts.map +1 -1
- package/dist/composition/resolve.js +30 -6
- package/dist/composition/resolve.js.map +1 -1
- package/dist/defaults/install.d.ts.map +1 -1
- package/dist/defaults/install.js +2 -1
- package/dist/defaults/install.js.map +1 -1
- package/dist/defaults/installation.d.ts.map +1 -1
- package/dist/defaults/installation.js +2 -0
- package/dist/defaults/installation.js.map +1 -1
- package/dist/defaults/modules/selection.d.ts.map +1 -1
- package/dist/defaults/modules/selection.js +1 -0
- package/dist/defaults/modules/selection.js.map +1 -1
- package/dist/defaults/modules/vector-editing.d.ts.map +1 -1
- package/dist/defaults/modules/vector-editing.js.map +1 -1
- package/dist/defaults/owned-state.d.ts.map +1 -1
- package/dist/defaults/owned-state.js.map +1 -1
- package/dist/defaults/private-manager.d.ts.map +1 -1
- package/dist/defaults/private-manager.js +2 -1
- package/dist/defaults/private-manager.js.map +1 -1
- package/dist/events/preset-event-names.d.ts +2 -0
- package/dist/events/preset-event-names.d.ts.map +1 -1
- package/dist/events/register-events.d.ts.map +1 -1
- package/dist/events/register-events.js +4 -2
- package/dist/events/register-events.js.map +1 -1
- package/dist/group-bounds.d.ts +36 -0
- package/dist/group-bounds.d.ts.map +1 -0
- package/dist/group-bounds.js +141 -0
- package/dist/group-bounds.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/preset.d.ts.map +1 -1
- package/dist/preset.js +5 -3
- package/dist/preset.js.map +1 -1
- package/dist/props/components/anchor-points-component.d.ts.map +1 -1
- package/dist/props/components/anchor-points-component.js.map +1 -1
- package/dist/props/components/children-map-property-component.d.ts.map +1 -1
- package/dist/props/components/children-map-property-component.js.map +1 -1
- package/dist/props/components/fills-component.d.ts.map +1 -1
- package/dist/props/components/fills-component.js +3 -2
- package/dist/props/components/fills-component.js.map +1 -1
- package/dist/props/components/position-component.js +1 -1
- package/dist/props/components/position-component.js.map +1 -1
- package/dist/props/components/strokes-component.d.ts.map +1 -1
- package/dist/props/components/strokes-component.js +4 -3
- package/dist/props/components/strokes-component.js.map +1 -1
- package/dist/props/components/text-component.d.ts +67 -0
- package/dist/props/components/text-component.d.ts.map +1 -0
- package/dist/props/components/text-component.js +128 -0
- package/dist/props/components/text-component.js.map +1 -0
- package/dist/props/components/vector-networks-component.d.ts.map +1 -1
- package/dist/props/components/vector-networks-component.js.map +1 -1
- package/dist/props/components/vector-points-component.d.ts.map +1 -1
- package/dist/props/components/vector-points-component.js.map +1 -1
- package/dist/props/components/vector-segments-component.d.ts.map +1 -1
- package/dist/props/components/vector-segments-component.js.map +1 -1
- package/dist/props/register-property-schemas.d.ts.map +1 -1
- package/dist/props/register-property-schemas.js +6 -0
- package/dist/props/register-property-schemas.js.map +1 -1
- package/dist/render-layers/selection-overlay-render-layer.d.ts +1 -0
- package/dist/render-layers/selection-overlay-render-layer.d.ts.map +1 -1
- package/dist/render-layers/selection-overlay-render-layer.js +9 -4
- package/dist/render-layers/selection-overlay-render-layer.js.map +1 -1
- package/dist/render-layers/vector-path-editing-render-layer.d.ts.map +1 -1
- package/dist/render-layers/vector-path-editing-render-layer.js.map +1 -1
- package/dist/selection/ids.d.ts.map +1 -1
- package/dist/selection/ids.js.map +1 -1
- package/dist/selection/register-default-selections.d.ts.map +1 -1
- package/dist/selection/register-default-selections.js +4 -2
- package/dist/selection/register-default-selections.js.map +1 -1
- package/dist/spatial/assets/binary.d.ts +22 -0
- package/dist/spatial/assets/binary.d.ts.map +1 -0
- package/dist/spatial/assets/binary.js +132 -0
- package/dist/spatial/assets/binary.js.map +1 -0
- package/dist/spatial/assets/decode.d.ts +23 -0
- package/dist/spatial/assets/decode.d.ts.map +1 -0
- package/dist/spatial/assets/decode.js +102 -0
- package/dist/spatial/assets/decode.js.map +1 -0
- package/dist/spatial/assets/preview-worker.d.ts +13 -0
- package/dist/spatial/assets/preview-worker.d.ts.map +1 -0
- package/dist/spatial/assets/preview-worker.js +188 -0
- package/dist/spatial/assets/preview-worker.js.map +1 -0
- package/dist/spatial/assets/scene.d.ts +13 -0
- package/dist/spatial/assets/scene.d.ts.map +1 -0
- package/dist/spatial/assets/scene.js +99 -0
- package/dist/spatial/assets/scene.js.map +1 -0
- package/dist/spatial/assets/schema.d.ts +22 -0
- package/dist/spatial/assets/schema.d.ts.map +1 -0
- package/dist/spatial/assets/schema.js +93 -0
- package/dist/spatial/assets/schema.js.map +1 -0
- package/dist/spatial/bounds.d.ts +15 -0
- package/dist/spatial/bounds.d.ts.map +1 -0
- package/dist/spatial/bounds.js +94 -0
- package/dist/spatial/bounds.js.map +1 -0
- package/dist/spatial/camera-controls.d.ts +53 -0
- package/dist/spatial/camera-controls.d.ts.map +1 -0
- package/dist/spatial/camera-controls.js +208 -0
- package/dist/spatial/camera-controls.js.map +1 -0
- package/dist/spatial/components.d.ts +20 -0
- package/dist/spatial/components.d.ts.map +1 -0
- package/dist/spatial/components.js +83 -0
- package/dist/spatial/components.js.map +1 -0
- package/dist/spatial/editing.d.ts +51 -0
- package/dist/spatial/editing.d.ts.map +1 -0
- package/dist/spatial/editing.js +152 -0
- package/dist/spatial/editing.js.map +1 -0
- package/dist/spatial/emissive-bloom.d.ts +22 -0
- package/dist/spatial/emissive-bloom.d.ts.map +1 -0
- package/dist/spatial/emissive-bloom.js +197 -0
- package/dist/spatial/emissive-bloom.js.map +1 -0
- package/dist/spatial/graphics.d.ts +9 -0
- package/dist/spatial/graphics.d.ts.map +1 -0
- package/dist/spatial/graphics.js +119 -0
- package/dist/spatial/graphics.js.map +1 -0
- package/dist/spatial/lazy-engine.d.ts +6 -0
- package/dist/spatial/lazy-engine.d.ts.map +1 -0
- package/dist/spatial/lazy-engine.js +92 -0
- package/dist/spatial/lazy-engine.js.map +1 -0
- package/dist/spatial/lighting.d.ts +28 -0
- package/dist/spatial/lighting.d.ts.map +1 -0
- package/dist/spatial/lighting.js +103 -0
- package/dist/spatial/lighting.js.map +1 -0
- package/dist/spatial/opaque-frame.d.ts +11 -0
- package/dist/spatial/opaque-frame.d.ts.map +1 -0
- package/dist/spatial/opaque-frame.js +131 -0
- package/dist/spatial/opaque-frame.js.map +1 -0
- package/dist/spatial/pose.d.ts +22 -0
- package/dist/spatial/pose.d.ts.map +1 -0
- package/dist/spatial/pose.js +83 -0
- package/dist/spatial/pose.js.map +1 -0
- package/dist/spatial/presentation.d.ts +16 -0
- package/dist/spatial/presentation.d.ts.map +1 -0
- package/dist/spatial/presentation.js +66 -0
- package/dist/spatial/presentation.js.map +1 -0
- package/dist/spatial/reflection-environment.d.ts +13 -0
- package/dist/spatial/reflection-environment.d.ts.map +1 -0
- package/dist/spatial/reflection-environment.js +63 -0
- package/dist/spatial/reflection-environment.js.map +1 -0
- package/dist/spatial/registration.d.ts +6 -0
- package/dist/spatial/registration.d.ts.map +1 -0
- package/dist/spatial/registration.js +82 -0
- package/dist/spatial/registration.js.map +1 -0
- package/dist/spatial/shadow-frame.d.ts +13 -0
- package/dist/spatial/shadow-frame.d.ts.map +1 -0
- package/dist/spatial/shadow-frame.js +60 -0
- package/dist/spatial/shadow-frame.js.map +1 -0
- package/dist/spatial/spatial-contract.d.ts +10 -0
- package/dist/spatial/spatial-contract.d.ts.map +1 -0
- package/dist/spatial/spatial-contract.js +414 -0
- package/dist/spatial/spatial-contract.js.map +1 -0
- package/dist/spatial/spatial-layer.d.ts +47 -0
- package/dist/spatial/spatial-layer.d.ts.map +1 -0
- package/dist/spatial/spatial-layer.js +224 -0
- package/dist/spatial/spatial-layer.js.map +1 -0
- package/dist/spatial/surface-contract.d.ts +4 -0
- package/dist/spatial/surface-contract.d.ts.map +1 -0
- package/dist/spatial/surface-contract.js +40 -0
- package/dist/spatial/surface-contract.js.map +1 -0
- package/dist/spatial/surface-textures.d.ts +8 -0
- package/dist/spatial/surface-textures.d.ts.map +1 -0
- package/dist/spatial/surface-textures.js +46 -0
- package/dist/spatial/surface-textures.js.map +1 -0
- package/dist/spatial/three-engine.d.ts +91 -0
- package/dist/spatial/three-engine.d.ts.map +1 -0
- package/dist/spatial/three-engine.js +1127 -0
- package/dist/spatial/three-engine.js.map +1 -0
- package/dist/spatial/transmission-capture.d.ts +13 -0
- package/dist/spatial/transmission-capture.d.ts.map +1 -0
- package/dist/spatial/transmission-capture.js +215 -0
- package/dist/spatial/transmission-capture.js.map +1 -0
- package/dist/spatial-assets.d.ts +4 -0
- package/dist/spatial-assets.d.ts.map +1 -0
- package/dist/spatial-assets.js +4 -0
- package/dist/spatial-assets.js.map +1 -0
- package/dist/spatial-contract.d.ts +3 -0
- package/dist/spatial-contract.d.ts.map +1 -0
- package/dist/spatial-contract.js +3 -0
- package/dist/spatial-contract.js.map +1 -0
- package/dist/spatial-engine.d.ts +5 -0
- package/dist/spatial-engine.d.ts.map +1 -0
- package/dist/spatial-engine.js +5 -0
- package/dist/spatial-engine.js.map +1 -0
- package/dist/spatial.d.ts +9 -0
- package/dist/spatial.d.ts.map +1 -0
- package/dist/spatial.js +9 -0
- package/dist/spatial.js.map +1 -0
- package/dist/subscriptions/data-channel.d.ts.map +1 -1
- package/dist/subscriptions/data-channel.js +421 -166
- package/dist/subscriptions/data-channel.js.map +1 -1
- package/dist/subscriptions/render-system.d.ts.map +1 -1
- package/dist/subscriptions/render-system.js +4 -2
- package/dist/subscriptions/render-system.js.map +1 -1
- package/dist/subscriptions/shared-channels.d.ts.map +1 -1
- package/dist/subscriptions/shared-channels.js +4 -2
- package/dist/subscriptions/shared-channels.js.map +1 -1
- package/dist/subscriptions/vector-selection.d.ts +4 -0
- package/dist/subscriptions/vector-selection.d.ts.map +1 -0
- package/dist/subscriptions/vector-selection.js +180 -0
- package/dist/subscriptions/vector-selection.js.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/ui/register-properties.d.ts.map +1 -1
- package/dist/ui/register-properties.js +3 -2
- package/dist/ui/register-properties.js.map +1 -1
- package/dist/vector/synthetic-handle.d.ts.map +1 -1
- package/dist/vector/synthetic-handle.js.map +1 -1
- package/package.json +49 -11
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { RoomEnvironment } from 'three/examples/jsm/environments/RoomEnvironment.js';
|
|
3
|
+
/** Shared studio radiance, generated once rather than captured from each product frame. */
|
|
4
|
+
function createStudio(driver) {
|
|
5
|
+
const renderer = driver;
|
|
6
|
+
if (renderer.isWebGLRenderer !== true) {
|
|
7
|
+
throw new Error('Spatial environment reflection requires a WebGL renderer');
|
|
8
|
+
}
|
|
9
|
+
const target = renderer.getRenderTarget();
|
|
10
|
+
const face = renderer.getActiveCubeFace();
|
|
11
|
+
const mip = renderer.getActiveMipmapLevel();
|
|
12
|
+
const xr = renderer.xr.enabled;
|
|
13
|
+
const autoClear = renderer.autoClear;
|
|
14
|
+
const toneMapping = renderer.toneMapping;
|
|
15
|
+
const clearColor = renderer.getClearColor(new THREE.Color()).clone();
|
|
16
|
+
const clearAlpha = renderer.getClearAlpha();
|
|
17
|
+
const room = new RoomEnvironment();
|
|
18
|
+
const generator = new THREE.PMREMGenerator(renderer);
|
|
19
|
+
try {
|
|
20
|
+
return generator.fromScene(room, 0.04);
|
|
21
|
+
}
|
|
22
|
+
finally {
|
|
23
|
+
room.dispose();
|
|
24
|
+
generator.dispose();
|
|
25
|
+
renderer.xr.enabled = xr;
|
|
26
|
+
renderer.autoClear = autoClear;
|
|
27
|
+
renderer.toneMapping = toneMapping;
|
|
28
|
+
renderer.setClearColor(clearColor, clearAlpha);
|
|
29
|
+
renderer.setRenderTarget(target, face, mip);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export class ReflectionEnvironment {
|
|
33
|
+
constructor(create = createStudio) {
|
|
34
|
+
this.create = create;
|
|
35
|
+
this.disposed = false;
|
|
36
|
+
}
|
|
37
|
+
apply(material, intensity, driver) {
|
|
38
|
+
if (this.disposed) {
|
|
39
|
+
throw new Error('Spatial reflection environment is disposed');
|
|
40
|
+
}
|
|
41
|
+
if (!Number.isFinite(intensity) || intensity < 0) {
|
|
42
|
+
throw new Error('Invalid spatial environment material');
|
|
43
|
+
}
|
|
44
|
+
if (intensity > 0 && !this.target) {
|
|
45
|
+
this.target = this.create(driver);
|
|
46
|
+
}
|
|
47
|
+
const texture = intensity > 0 ? (this.target?.texture ?? null) : null;
|
|
48
|
+
if (material.envMap !== texture) {
|
|
49
|
+
material.needsUpdate = true;
|
|
50
|
+
}
|
|
51
|
+
material.envMap = texture;
|
|
52
|
+
material.envMapIntensity = intensity;
|
|
53
|
+
}
|
|
54
|
+
dispose() {
|
|
55
|
+
if (this.disposed) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
this.disposed = true;
|
|
59
|
+
this.target?.dispose();
|
|
60
|
+
this.target = undefined;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=reflection-environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflection-environment.js","sourceRoot":"","sources":["../../src/spatial/reflection-environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAA;AAEpF,2FAA2F;AAC3F,SAAS,YAAY,CAAC,MAAe;IACnC,MAAM,QAAQ,GAAG,MAEhB,CAAA;IAED,IAAI,QAAQ,CAAC,eAAe,KAAK,IAAI,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAA;IAC7E,CAAC;IAED,MAAM,MAAM,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAA;IACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,iB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B,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAA;QAC/D,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,GAAG,CAAC,EAAE,CAAC;YACjD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAA;QACzD,CAAC;QAED,IAAI,SAAS,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YAClC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACnC,CAAC;QAED,MAAM,OAAO,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAErE,IAAI,QAAQ,CAAC,MAAM,KAAK,OAAO,EAAE,CAAC;YAChC,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAA;QAC7B,CAAC;QAED,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAA;QACzB,QAAQ,CAAC,eAAe,GAAG,SAAS,CAAA;IACtC,CAAC;IAED,OAAO;QACL,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,OAAM;QACR,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QACpB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAA;QACtB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAA;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Core } from '@asyra/core';
|
|
2
|
+
type SpatialRegistrationCore = Pick<Core, 'isCompositionOpen' | 'registerPropertySchema' | 'definePropertyComponent' | 'defineComponent' | 'registerRenderStrategy' | 'unregisterPropertyType' | 'unregisterComponent' | 'unregisterRenderStrategy' | 'getRegistration' | 'getPropertySchema' | 'getPropertyComponent'>;
|
|
3
|
+
/** Optional ordinary Core registrations. Core owns successful runtime teardown. */
|
|
4
|
+
export declare function registerSpatialMesh(core: SpatialRegistrationCore): () => void;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../src/spatial/registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAUvC,KAAK,uBAAuB,GAAG,IAAI,CACjC,IAAI,EACF,mBAAmB,GACnB,wBAAwB,GACxB,yBAAyB,GACzB,iBAAiB,GACjB,wBAAwB,GACxB,wBAAwB,GACxB,qBAAqB,GACrB,0BAA0B,GAC1B,iBAAiB,GACjB,mBAAmB,GACnB,sBAAsB,CACzB,CAAA;AAED,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,uBAAuB,GAAG,MAAM,IAAI,CAoG7E"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { SPATIAL_MESH_SCHEMA, SPATIAL_MESH_PROPERTY_DEFINITION, SPATIAL_MESH_COMPONENT_DEFINITION, SPATIAL_MESH_RENDER_STRATEGY, SPATIAL_MESH_COMPONENT, SPATIAL_MESH_PROPERTY, SPATIAL_MODEL_REGISTRATION } from './components.js';
|
|
2
|
+
/** Optional ordinary Core registrations. Core owns successful runtime teardown. */
|
|
3
|
+
export function registerSpatialMesh(core) {
|
|
4
|
+
if (!core.isCompositionOpen()) {
|
|
5
|
+
throw new Error('Spatial registration requires open composition');
|
|
6
|
+
}
|
|
7
|
+
if (core.getPropertySchema(SPATIAL_MESH_PROPERTY) ||
|
|
8
|
+
core.getPropertyComponent(SPATIAL_MESH_PROPERTY) ||
|
|
9
|
+
core.getRegistration({ kind: 'component', key: SPATIAL_MESH_COMPONENT }) ||
|
|
10
|
+
core.getRegistration({
|
|
11
|
+
kind: 'render-strategy',
|
|
12
|
+
key: SPATIAL_MESH_COMPONENT
|
|
13
|
+
})) {
|
|
14
|
+
throw new Error('Spatial model already registered');
|
|
15
|
+
}
|
|
16
|
+
const cleanups = [];
|
|
17
|
+
const cleanup = () => {
|
|
18
|
+
const failures = [];
|
|
19
|
+
for (let i = cleanups.length - 1; i >= 0; i--) {
|
|
20
|
+
try {
|
|
21
|
+
cleanups[i]();
|
|
22
|
+
cleanups.splice(i, 1);
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
failures.push(error);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (failures.length) {
|
|
29
|
+
throw Object.assign(new Error('Spatial registration cleanup failed'), {
|
|
30
|
+
errors: failures
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const owned = (kind, key) => {
|
|
35
|
+
const owner = core.getRegistration({ kind, key })?.owner;
|
|
36
|
+
return (owner?.name === SPATIAL_MODEL_REGISTRATION.owner.name &&
|
|
37
|
+
owner?.packageName === SPATIAL_MODEL_REGISTRATION.owner.packageName);
|
|
38
|
+
};
|
|
39
|
+
try {
|
|
40
|
+
core.registerPropertySchema(SPATIAL_MESH_SCHEMA, undefined, SPATIAL_MODEL_REGISTRATION);
|
|
41
|
+
cleanups.push(() => {
|
|
42
|
+
if (owned('property', SPATIAL_MESH_PROPERTY)) {
|
|
43
|
+
core.unregisterPropertyType(SPATIAL_MESH_PROPERTY);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
core.definePropertyComponent(SPATIAL_MESH_PROPERTY_DEFINITION);
|
|
47
|
+
core.defineComponent(SPATIAL_MESH_COMPONENT_DEFINITION);
|
|
48
|
+
cleanups.push(() => {
|
|
49
|
+
if (owned('component', SPATIAL_MESH_COMPONENT)) {
|
|
50
|
+
core.unregisterComponent(SPATIAL_MESH_COMPONENT);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
core.registerRenderStrategy(SPATIAL_MESH_COMPONENT, SPATIAL_MESH_RENDER_STRATEGY, {
|
|
54
|
+
...SPATIAL_MODEL_REGISTRATION,
|
|
55
|
+
relations: [
|
|
56
|
+
{
|
|
57
|
+
name: 'component',
|
|
58
|
+
target: { kind: 'component', key: SPATIAL_MESH_COMPONENT },
|
|
59
|
+
onTargetUnregister: 'unregister-source'
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
});
|
|
63
|
+
cleanups.push(() => {
|
|
64
|
+
if (owned('render-strategy', SPATIAL_MESH_COMPONENT)) {
|
|
65
|
+
core.unregisterRenderStrategy(SPATIAL_MESH_COMPONENT);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
try {
|
|
71
|
+
cleanup();
|
|
72
|
+
}
|
|
73
|
+
catch (cleanupError) {
|
|
74
|
+
throw Object.assign(new Error('Spatial registration failed'), {
|
|
75
|
+
errors: [error, cleanupError]
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
return cleanup;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=registration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.js","sourceRoot":"","sources":["../../src/spatial/registration.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,gCAAgC,EAChC,iCAAiC,EACjC,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAA;AAgBxB,mFAAmF;AACnF,MAAM,UAAU,mBAAmB,CAAC,IAA6B;IAC/D,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;IACnE,CAAC;IAED,IACE,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC;QAC7C,IAAI,CAAC,oBAAoB,CAAC,qBAAqB,CAAC;QAChD,IAAI,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE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CAAC,KAAK,EAAE,YAAY,CAAC;aAC9B,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,KAAK,CAAA;IACb,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
interface Renderer {
|
|
3
|
+
shadowMap?: {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
autoUpdate?: boolean;
|
|
6
|
+
needsUpdate?: boolean;
|
|
7
|
+
};
|
|
8
|
+
render(scene: THREE.Scene, camera: THREE.Camera): void;
|
|
9
|
+
}
|
|
10
|
+
/** One synchronous flush: transforms, lights and geometry are already committed. */
|
|
11
|
+
export declare function createShadowFrame(renderer: Renderer): (scene: THREE.Scene, camera: THREE.Camera) => void;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=shadow-frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow-frame.d.ts","sourceRoot":"","sources":["../../src/spatial/shadow-frame.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,UAAU,QAAQ;IAChB,SAAS,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;IAC7E,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAA;CACvD;AAOD,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,IAI1C,OAAO,KAAK,CAAC,KAAK,EAAE,QAAQ,KAAK,CAAC,MAAM,KAAG,IAAI,CAoExD"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/** One synchronous flush: transforms, lights and geometry are already committed. */
|
|
3
|
+
export function createShadowFrame(renderer) {
|
|
4
|
+
let previous;
|
|
5
|
+
return (scene, camera) => {
|
|
6
|
+
const shadow = renderer.shadowMap;
|
|
7
|
+
if (!shadow?.enabled || shadow.autoUpdate !== true) {
|
|
8
|
+
renderer.render(scene, camera);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
// Capture passes change visibility and material sides, including enclosing
|
|
12
|
+
// parents. These are the only mutable caster inputs within this flush.
|
|
13
|
+
const casters = [];
|
|
14
|
+
scene.traverseVisible((object) => {
|
|
15
|
+
if (!object.castShadow ||
|
|
16
|
+
!(object instanceof THREE.Mesh ||
|
|
17
|
+
object instanceof THREE.Line ||
|
|
18
|
+
object instanceof THREE.Points)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const materials = Array.isArray(object.material)
|
|
22
|
+
? object.material
|
|
23
|
+
: [object.material];
|
|
24
|
+
casters.push({
|
|
25
|
+
object,
|
|
26
|
+
sides: materials.flatMap((material) => [
|
|
27
|
+
Number(material.visible),
|
|
28
|
+
material.side,
|
|
29
|
+
material.shadowSide ?? -1
|
|
30
|
+
])
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
const completed = previous;
|
|
34
|
+
const reusable = completed?.scene === scene &&
|
|
35
|
+
completed.camera === camera &&
|
|
36
|
+
completed.casters.length === casters.length &&
|
|
37
|
+
casters.every((caster, index) => {
|
|
38
|
+
const old = completed.casters[index];
|
|
39
|
+
return (old.object === caster.object &&
|
|
40
|
+
old.sides.length === caster.sides.length &&
|
|
41
|
+
old.sides.every((side, i) => side === caster.sides[i]));
|
|
42
|
+
});
|
|
43
|
+
const automatic = shadow.autoUpdate;
|
|
44
|
+
if (reusable && !shadow.needsUpdate) {
|
|
45
|
+
shadow.autoUpdate = false;
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
renderer.render(scene, camera);
|
|
49
|
+
previous = { scene, camera, casters };
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
previous = undefined;
|
|
53
|
+
throw error;
|
|
54
|
+
}
|
|
55
|
+
finally {
|
|
56
|
+
shadow.autoUpdate = automatic;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=shadow-frame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow-frame.js","sourceRoot":"","sources":["../../src/spatial/shadow-frame.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,oFAAoF;AACpF,MAAM,UAAU,iBAAiB,CAAC,QAAkB;IAClD,IAAI,QACyE,CAAA;IAE7E,OAAO,CAAC,KAAkB,EAAE,MAAoB,EAAQ,EAAE;QACxD,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAA;QAEjC,IAAI,CAAC,MAAM,EAAE,OAAO,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;YACnD,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;YAE9B,OAAM;QACR,CAAC;QAED,2EAA2E;QAC3E,uEAAuE;QACvE,MAAM,OAAO,GAAa,EAAE,CAAA;QAE5B,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,EAAE;YAC/B,IACE,CAAC,MAAM,CAAC,UAAU;gBAClB,CAAC,CACC,MAAM,YAAY,KAAK,CAAC,IAAI;oBAC5B,MAAM,YAAY,KAAK,CAAC,IAAI;oBAC5B,MAAM,YAAY,KAAK,CAAC,MAAM,CAC/B,EACD,CAAC;gBACD,OAAM;YACR,CAAC;YAED,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;gBAC9C,CAAC,CAAC,MAAM,CAAC,QAAQ;gBACjB,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;YAErB,OAAO,CAAC,IAAI,CAAC;gBACX,MAAM;gBACN,KAAK,EAAE,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G,SAAS,CAAA;YACpB,MAAM,KAAK,CAAA;QACb,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,UAAU,GAAG,SAAS,CAAA;QAC/B,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SpatialDescriptor, SpatialShape, SpatialInstance } from '@asyra/render-engine';
|
|
2
|
+
export type { SpatialDescriptor, SpatialShape, SpatialInstance, SpatialVector, SpatialQuaternion, SpatialSurface } from '@asyra/render-engine';
|
|
3
|
+
export declare const SPATIAL_PROPERTY = "spatialV0";
|
|
4
|
+
/** Compare accepted geometry values, not caller-owned object identity. */
|
|
5
|
+
export declare function sameSpatialShape(a: SpatialShape, b: SpatialShape): boolean;
|
|
6
|
+
export declare function isSpatialShape(value: unknown): value is SpatialShape;
|
|
7
|
+
export declare function readSpatialShape(value: unknown): SpatialShape;
|
|
8
|
+
export declare function readSpatialInstances(value: unknown): readonly SpatialInstance[];
|
|
9
|
+
export declare function readSpatialDescriptor(value: unknown): SpatialDescriptor;
|
|
10
|
+
//# sourceMappingURL=spatial-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial-contract.d.ts","sourceRoot":"","sources":["../../src/spatial/spatial-contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAGhB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,eAAO,MAAM,gBAAgB,cAAc,CAAA;AAO3C,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,GAAG,OAAO,CAwC1E;AAaD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAwGpE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAgE7D;AAID,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,GACb,SAAS,eAAe,EAAE,CAoD5B;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,CA8OvE"}
|