@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 +0 -0
- package/README.md +9 -5
- package/fesm2022/3dsource-angular-unreal-module-config.mjs +4 -9
- package/fesm2022/3dsource-angular-unreal-module-config.mjs.map +1 -1
- package/fesm2022/3dsource-angular-unreal-module.mjs +7702 -9112
- package/fesm2022/3dsource-angular-unreal-module.mjs.map +1 -1
- package/js/region-ping-prefetch.js +1 -1
- package/js/stream-prefetch.js +3 -3
- package/package.json +1 -1
- package/types/3dsource-angular-unreal-module-config.d.ts +13 -17
- package/types/3dsource-angular-unreal-module.d.ts +2965 -3037
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.
|
|
344
|
-
>
|
|
345
|
-
>
|
|
346
|
-
>
|
|
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
|
|
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
|
|
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
|
-
|
|
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"
|
|
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"}
|