@3dsource/angular-unreal-module 0.0.189 → 0.0.192

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/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -340,10 +340,10 @@ route is left.
340
340
  > `UNREAL_CONFIG` on a route's `providers` does **not** work: the engine
341
341
  > services are `providedIn: 'root'`, so they are created by the root injector
342
342
  > and read the token from there. A route-level value is invisible to them and
343
- > `inject(UNREAL_CONFIG, { optional: true })` resolves to `null` — e.g. region
344
- > pinging is skipped entirely (empty `regionsPingUrl`), the orchestration
345
- > `requestStream` goes out without a region and the post-connection re-ping
346
- > never runs. Importing only the token at the root does not pull the module into
343
+ > `inject(UNREAL_CONFIG, { optional: true })` resolves to `null` — e.g. the
344
+ > post-connection region re-ping never runs (empty `regionsPingUrl`), so without
345
+ > the prefetch script no region is ever cached and every request goes out
346
+ > without one. Importing only the token at the root does not pull the module into
347
347
  > the initial bundle (the package is `sideEffects: false`).
348
348
 
349
349
  ### 3. Render the scene
@@ -393,7 +393,11 @@ the demo application.
393
393
  The package publishes two dependency-free scripts for use in the document
394
394
  `<head>` before Angular starts:
395
395
 
396
- - `region-ping-prefetch.js` measures regions early and caches the closest one.
396
+ - `region-ping-prefetch.js` measures regions early, caches a full result and
397
+ publishes its live answer. The connection never waits for it: the request
398
+ takes the cached region, else the prefetch's answer if it is already certain,
399
+ else no region at all (the orchestrator then picks by geo-IP). Load it first
400
+ in `<head>`; without it the cache is filled after the first connection.
397
401
  - `stream-prefetch.js` opens and parks an eligible WebRTC connection so Angular
398
402
  can adopt it after bootstrap.
399
403
 
@@ -1,10 +1,5 @@
1
- import { InjectionToken } from '@angular/core';
2
-
3
- const UNREAL_CONFIG = new InjectionToken('Unreal Initial Configuration');
4
-
5
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
-
1
+ import { InjectionToken } from "@angular/core";
2
+ const UNREAL_CONFIG = new InjectionToken("Unreal Initial Configuration");
9
3
  export { UNREAL_CONFIG };
10
- //# sourceMappingURL=3dsource-angular-unreal-module-config.mjs.map
4
+
5
+ //# sourceMappingURL=3dsource-angular-unreal-module-config.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"3dsource-angular-unreal-module-config.mjs","sources":["../../../../projects/3dsource/angular-unreal-module/config/lib/unreal-config.token.ts","../../../../projects/3dsource/angular-unreal-module/config/3dsource-angular-unreal-module-config.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type { UnrealInitialConfig } from './initial-config';\n\nexport const UNREAL_CONFIG = new InjectionToken<UnrealInitialConfig>(\n 'Unreal Initial Configuration',\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MAGa,aAAa,GAAG,IAAI,cAAc,CAC7C,8BAA8B;;ACJhC;;AAEG;;;;"}
1
+ {"version":3,"file":"3dsource-angular-unreal-module-config.mjs","names":[],"sources":["../../../../projects/3dsource/angular-unreal-module/config/lib/unreal-config.token.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type { UnrealInitialConfig } from './initial-config';\n\nexport const UNREAL_CONFIG = new InjectionToken<UnrealInitialConfig>(\n 'Unreal Initial Configuration',\n);\n"],"mappings":";AAGA,MAAa,gBAAgB,IAAI,eAC/B,8BAA8B"}