@babylonjs/lite-compat 1.39.1 → 1.39.3
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 +30 -2
- package/README.md +4 -4
- package/index.d.ts +217 -22
- package/index.js +589 -37
- package/index.js.map +1 -1
- package/{meshes-C-PkzbPM.js → meshes-FwqJpX7D.js} +151 -23
- package/meshes-FwqJpX7D.js.map +1 -0
- package/navigation.d.ts +56 -17
- package/navigation.js +1 -1
- package/package.json +5 -5
- package/meshes-C-PkzbPM.js.map +0 -1
package/navigation.d.ts
CHANGED
|
@@ -38,6 +38,9 @@ declare abstract class AbstractEngine {
|
|
|
38
38
|
* configuration internally, so this is a settable no-op kept for API shape.
|
|
39
39
|
*/
|
|
40
40
|
useReverseDepthBuffer: boolean;
|
|
41
|
+
private _maxFramesInFlight;
|
|
42
|
+
get maxFramesInFlight(): number;
|
|
43
|
+
set maxFramesInFlight(value: number);
|
|
41
44
|
/** Babylon.js `engine.onResizeObservable` — fires after `resize()` / `setSize()`. */
|
|
42
45
|
readonly onResizeObservable: Observable<AbstractEngine>;
|
|
43
46
|
/** Babylon.js context-loss signal, forwarded from Lite's device-loss subscription. */
|
|
@@ -485,7 +488,9 @@ declare type AnimationGroupState = "init" | "playing" | "paused" | "stopped";
|
|
|
485
488
|
declare type AnimationValue = number | number[] | IAnimationVectorValue;
|
|
486
489
|
|
|
487
490
|
declare abstract class BaseTexture {
|
|
488
|
-
name: string;
|
|
489
491
|
getClassName(): string;
|
|
490
492
|
/**
|
|
493
|
+
name: string;
|
|
494
|
+
private _level;
|
|
491
495
|
get level(): number;
|
|
496
|
+
set level(value: number);
|
|
492
497
|
getClassName(): string;
|
|
493
498
|
/**
|
|
494
499
|
* Babylon.js `BaseTexture.getInternalTexture()` — the backend texture handle. Babylon.js
|
|
495
500
|
* returns an `InternalTexture`; the compat layer's equivalent is the Lite texture handle,
|
|
496
501
|
* which is what the compat engine's texture methods accept.
|
|
@@ -710,8 +715,7 @@ declare class CubeTexture extends BaseTexture {
|
|
|
710
715
|
readonly url: string;
|
|
711
716
|
/** Babylon.js `coordinatesMode` (skybox = 5). Recorded for API parity. */
|
|
712
717
|
coordinatesMode: number;
|
|
713
|
-
gammaSpace: boolean;
|
|
714
|
-
level: number;
|
|
715
718
|
/** Fires when the cube map is "ready" (resolved on a microtask in this compat layer). */
|
|
719
|
+
gammaSpace: boolean;
|
|
716
720
|
/** Fires when the cube map is "ready" (resolved on a microtask in this compat layer). */
|
|
717
721
|
readonly onLoadObservable: Observable<CubeTexture>;
|
|
718
722
|
/**
|
|
719
723
|
* Babylon.js `CubeTexture.rotationY` — rotation of the environment around the Y axis, in radians. A scene that uses the
|
|
@@ -840,8 +844,7 @@ declare class HDRCubeTexture extends BaseTexture {
|
|
|
840
844
|
readonly size: number;
|
|
841
845
|
/** Babylon.js `coordinatesMode` (skybox = 5). Recorded for API parity. */
|
|
842
846
|
coordinatesMode: number;
|
|
843
|
-
gammaSpace: boolean;
|
|
844
|
-
level: number;
|
|
845
847
|
/** Fires when the HDR environment is "ready" (resolved on a microtask). */
|
|
848
|
+
gammaSpace: boolean;
|
|
846
849
|
/** Fires when the HDR environment is "ready" (resolved on a microtask). */
|
|
847
850
|
readonly onLoadObservable: Observable<HDRCubeTexture>;
|
|
848
851
|
/**
|
|
849
852
|
* Babylon.js `HDRCubeTexture.rotationY` — rotation of the environment around the Y axis, in radians. A scene that uses the
|
|
@@ -1477,8 +1480,7 @@ declare class PBRIridescenceConfiguration {
|
|
|
1477
1480
|
|
|
1478
1481
|
declare class PBRMaterial extends PushMaterial {
|
|
1479
1482
|
private _albedoFactor;
|
|
1480
1483
|
constructor(name: string, scene?: Scene);
|
|
1481
|
-
getClassName(): string;
|
|
1482
|
-
get albedoColor(): Color3;
|
|
1484
|
+
getClassName(): string;
|
|
1483
1485
|
get albedoColor(): Color3;
|
|
1484
1486
|
set albedoColor(value: Color3);
|
|
1485
1487
|
/**
|
|
1486
1488
|
* Babylon.js `pbr.albedoTexture` (glTF base-color map). The texture loads
|
|
@@ -1488,6 +1490,11 @@ declare class PBRMaterial extends PushMaterial {
|
|
|
1488
1490
|
private _albedoFactor;
|
|
1489
1491
|
get albedoTexture(): BaseTexture | null;
|
|
1490
1492
|
set albedoTexture(texture: BaseTexture | null);
|
|
1491
1493
|
private _albedoTexture;
|
|
1494
|
+
private _bentNormalTexture;
|
|
1495
|
+
private _bentNormalLevelUnsubscribe;
|
|
1496
|
+
/** Babylon.js `PBRMaterial.bentNormalTexture` over Lite's native IBL occlusion extension. */
|
|
1497
|
+
get bentNormalTexture(): BaseTexture | null;
|
|
1498
|
+
set bentNormalTexture(texture: BaseTexture | null);
|
|
1492
1499
|
/**
|
|
1493
1500
|
* Enumerate every bound PBR texture slot, including extension sub-configurations
|
|
1494
1501
|
* (Babylon.js `PBRMaterial.getActiveTextures`).
|
|
@@ -1546,13 +1553,15 @@ declare class PBRMaterial extends PushMaterial {
|
|
|
1546
1553
|
private _albedoFactor;
|
|
1547
1554
|
* clearcoat/sheen/anisotropy/iridescence sub-configurations (sharing any nested
|
|
1548
1555
|
* texture), and a fresh Lite PBR renderable.
|
|
1549
1556
|
*/
|
|
1550
|
-
clone(name: string): PBRMaterial;
|
|
1557
|
+
clone(name: string): PBRMaterial;
|
|
1551
1558
|
dispose(): void;
|
|
1559
|
+
}
|
|
1552
1560
|
|
|
1553
1561
|
/** Babylon.js `PBRSheenConfiguration` — the `pbr.sheen` sub-object over Lite `SheenProps`. */
|
|
1554
1562
|
declare class PBRSheenConfiguration {
|
|
1555
1563
|
private readonly _props;
|
|
1556
1564
|
private readonly _markDirty;
|
|
1557
|
-
|
|
1565
|
+
private readonly _watchTexture;
|
|
1566
|
+
constructor(_props: SheenProps, _markDirty: () => void, _watchTexture: (texture: BaseTexture | null) => void);
|
|
1558
1567
|
get isEnabled(): boolean;
|
|
1559
1568
|
set isEnabled(value: boolean);
|
|
1560
1569
|
get intensity(): number;
|
|
@@ -1565,9 +1574,9 @@ declare class PBRSheenConfiguration {
|
|
|
1565
1574
|
get texture(): BaseTexture | null;
|
|
1566
1575
|
set texture(value: BaseTexture | null);
|
|
1567
1576
|
private _texture;
|
|
1577
|
+
private _textureAssigned;
|
|
1568
1578
|
/** Enumerate the sheen texture slot for `Material.getActiveTextures`. */
|
|
1569
|
-
getActiveTextures(): BaseTexture[];
|
|
1570
|
-
}
|
|
1579
|
+
getActiveTextures(): BaseTexture[];
|
|
1571
1580
|
|
|
1572
1581
|
declare class Physics6DoFLimit {
|
|
1573
1582
|
axis: PhysicsConstraintAxis;
|
|
@@ -1798,6 +1807,27 @@ declare class PointerInfo {
|
|
|
1798
1807
|
get pickInfo(): PickingInfo | null;
|
|
1799
1808
|
}
|
|
1800
1809
|
|
|
1810
|
+
/** Babylon.js post-process pipeline shape consumed by the manager. */
|
|
1811
|
+
declare interface PostProcessRenderPipeline {
|
|
1801
1812
|
readonly isSupported: boolean;
|
|
1802
1813
|
dispose(): void;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
/** Babylon.js-compatible post-process pipeline registry for native Lite-backed pipelines. */
|
|
1817
|
+
declare class PostProcessRenderPipelineManager {
|
|
1818
|
+
private readonly _renderPipelines;
|
|
1819
|
+
private readonly _onNewPipelineAddedObservable;
|
|
1820
|
+
private readonly _onPipelineRemovedObservable;
|
|
1821
|
+
get onNewPipelineAddedObservable(): Observable<PostProcessRenderPipeline>;
|
|
1822
|
+
get onPipelineRemovedObservable(): Observable<PostProcessRenderPipeline>;
|
|
1823
|
+
get supportedPipelines(): PostProcessRenderPipeline[];
|
|
1824
|
+
addPipeline(renderPipeline: PostProcessRenderPipeline): void;
|
|
1825
|
+
removePipeline(renderPipelineName: string): void;
|
|
1826
|
+
attachCamerasToRenderPipeline(renderPipelineName: string, cameras: Camera[] | Camera, unique?: boolean): void;
|
|
1827
|
+
detachCamerasFromRenderPipeline(renderPipelineName: string, cameras: Camera[] | Camera): void;
|
|
1828
|
+
enableEffectInPipeline(renderPipelineName: string, renderEffectName: string, cameras: Camera[] | Camera): void;
|
|
1829
|
+
disableEffectInPipeline(renderPipelineName: string, renderEffectName: string, cameras: Camera[] | Camera): void;
|
|
1830
|
+
update(): void;
|
|
1803
1831
|
dispose(): void;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1804
1834
|
/** Babylon.js `PushMaterial` — intermediate base; behaves like {@link Material} here. */
|
|
1805
1835
|
declare abstract class PushMaterial extends Material {
|
|
1806
1836
|
getClassName(): string;
|
|
@@ -2003,15 +2033,18 @@ declare class Scene extends AbstractScene {
|
|
|
2003
2033
|
/** Babylon.js fog-mode constant
|
|
2004
2034
|
private readonly _skeletonCache;
|
|
2005
2035
|
private readonly _skeletons;
|
|
2006
2036
|
private readonly _particleSystemCache;
|
|
2037
|
+
private readonly _loadedMaterialCache;
|
|
2007
2038
|
private readonly _particleSystems;
|
|
2008
2039
|
private readonly _retiredParticleSystems;
|
|
2009
2040
|
private _disposed;
|
|
2010
2041
|
private _ambientColor;
|
|
2011
2042
|
private _environmentIntensity;
|
|
2012
|
-
private _imageProcessingConfiguration;
|
|
2013
2043
|
/** Babylon.js `scene.uniqueId` — a process-unique numeric id. */
|
|
2044
|
+
private _imageProcessingConfiguration;
|
|
2045
|
+
private _postProcessRenderPipelineManager;
|
|
2014
2046
|
/** Babylon.js `scene.uniqueId` — a process-unique numeric id. */
|
|
2015
2047
|
readonly uniqueId: number;
|
|
2016
2048
|
constructor(engine: WebGPUEngine);
|
|
2017
2049
|
private _attachPointerEvents;
|
|
2018
2050
|
private _detachPointerEvents;
|
|
2019
2051
|
getEngine(): WebGPUEngine;
|
|
2052
|
+
get postProcessRenderPipelineManager(): PostProcessRenderPipelineManager;
|
|
2020
2053
|
/** Babylon.js `scene.getClassName()`. */
|
|
2021
2054
|
getClassName(): string;
|
|
2022
2055
|
/** Babylon.js `scene.getUniqueId()` — the process-unique scene id. */
|
|
@@ -2238,8 +2271,7 @@ declare class SmartArray<T> {
|
|
|
2238
2271
|
declare class StandardMaterial extends PushMaterial {
|
|
2239
2272
|
/** Diffuse colour as the app set it. Kept apart from `_lite.diffuseColor`, which is forced to white
|
|
2240
2273
|
* while the material is unlit (see `_syncDiffuse`). */
|
|
2241
2274
|
private _diffuse;
|
|
2242
|
-
constructor(name: string, scene?: Scene);
|
|
2243
|
-
/**
|
|
2275
|
+
constructor(name: string, scene?: Scene);
|
|
2244
2276
|
/**
|
|
2245
2277
|
* Babylon.js shades an unlit StandardMaterial as `emissive + ambient`: the diffuse colour only scales
|
|
2246
2278
|
* the accumulated light, and there is none. Lite's unlit path is `emissive × diffuse`, so the usual
|
|
2247
2279
|
* "unlit colour" setup (black diffuse, colour in emissive) rendered black. Hand Lite a neutral white
|
|
@@ -2315,9 +2347,9 @@ declare class Texture extends BaseTexture {
|
|
|
2315
2347
|
hasAlpha: boolean;
|
|
2316
2348
|
coordinatesIndex: number;
|
|
2317
2349
|
/** Babylon.js sampling mode passed at construction (`NEAREST_SAMPLINGMODE` = 1, etc.). */
|
|
2318
|
-
readonly samplingMode: number;
|
|
2319
2350
|
constructor(url: string, sceneOrEngine: Scene | {
|
|
2351
|
+
samplingMode: number;
|
|
2320
2352
|
constructor(url: string, sceneOrEngine: Scene | {
|
|
2321
2353
|
_lite: EngineContext;
|
|
2322
|
-
}, noMipmapOrOptions?: unknown, invertY?: boolean, _samplingMode?: number, onLoad?: (() => void) | null);
|
|
2323
2354
|
private readonly _noMipmap;
|
|
2355
|
+
}, noMipmapOrOptions?: unknown, invertY?: boolean, _samplingMode?: number, onLoad?: (() => void) | null);
|
|
2324
2356
|
private _noMipmap;
|
|
2325
2357
|
getClassName(): string;
|
|
2326
2358
|
/**
|
|
2327
2359
|
* Babylon.js `texture.clone()` — a new `Texture` over the same source URL.
|
|
@@ -2325,6 +2357,12 @@ declare class Texture extends BaseTexture {
|
|
|
2325
2357
|
* handle (tracked against the same scene so it is ready at build).
|
|
2326
2358
|
*/
|
|
2327
2359
|
clone(): Texture;
|
|
2360
|
+
/**
|
|
2361
|
+
* Babylon.js `Texture.replaceImage` — reuse another ready URL texture's Lite
|
|
2362
|
+
* handle without reloading it. Wrapper UV state remains local; loading state
|
|
2363
|
+
* follows the source so later clones resolve the same image.
|
|
2364
|
+
*/
|
|
2365
|
+
replaceImage(source: Texture): boolean;
|
|
2328
2366
|
whenReadyAsync(): Promise<void>;
|
|
2329
2367
|
/** Babylon.js `Texture.onLoadObservable`, allocated only when code subscribes. */
|
|
2330
2368
|
get onLoadObservable(): Observable<Texture>;
|
|
@@ -2353,7 +2391,8 @@ declare class TransformNode extends Node_2 {
|
|
|
2353
2391
|
physicsBody: PhysicsBody | null
|
|
2354
2392
|
private _nativeRotationVersion;
|
|
2355
2393
|
private readonly _nativeRotationValues;
|
|
2356
2394
|
private _isSyncingRotationFromNative;
|
|
2357
|
-
private _sceneDisposeObserver?;
|
|
2358
2395
|
constructor(name: string, scene?: Scene, liteNode?: SceneNode);
|
|
2396
|
+
private _sceneDisposeObserver?;
|
|
2397
|
+
private _loadedSceneRegistered;
|
|
2359
2398
|
constructor(name: string, scene?: Scene, liteNode?: SceneNode);
|
|
2360
2399
|
getClassName(): string;
|
|
2361
2400
|
get position(): Vector3;
|
|
2362
2401
|
set position(value: Vector3);
|
package/navigation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as registerMeshAtStart, b as Mesh, et as Vector3 } from "./meshes-
|
|
1
|
+
import { D as registerMeshAtStart, b as Mesh, et as Vector3 } from "./meshes-FwqJpX7D.js";
|
|
2
2
|
import { addAgent, addBoxObstacle, addCylinderObstacle, agentGoto, computePath, createDebugNavMeshGeometry, createMeshFromData, createNavCrowd, createNavMesh, createNavigationPluginAsync, getAgentPosition, getClosestPoint, raycast, removeObstacle, updateNavCrowd, updateNavMeshObstacles } from "@babylonjs/lite";
|
|
3
3
|
// src/navigation/navigation.ts
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/lite-compat",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Opt-in Babylon.js-shaped compatibility layer implemented on top of the Babylon Lite public API. Provides a migration runway from Babylon.js to Babylon Lite.",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@babylonjs/lite": "1.39.
|
|
42
|
+
"@babylonjs/lite": "1.39.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"vite": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"tag": "latest"
|
|
51
51
|
},
|
|
52
52
|
"babylonLiteRelease": {
|
|
53
|
-
"azureBuildId": "
|
|
54
|
-
"sourceVersion": "
|
|
55
|
-
"builtAgainstLite": "1.39.
|
|
53
|
+
"azureBuildId": "163751855",
|
|
54
|
+
"sourceVersion": "5787cb8d0445e7d16fda304afdf66193b533843a",
|
|
55
|
+
"builtAgainstLite": "1.39.3"
|
|
56
56
|
}
|
|
57
57
|
}
|