@babylonjs/lite-compat 1.39.2 → 1.40.0
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 +37 -2
- package/README.md +2 -2
- package/index.d.ts +134 -10
- package/index.js +449 -23
- package/index.js.map +1 -1
- package/{meshes-DWnDIh1l.js → meshes-CdVN59oi.js} +34 -4
- package/meshes-CdVN59oi.js.map +1 -0
- package/navigation.d.ts +38 -6
- package/navigation.js +1 -1
- package/package.json +5 -5
- package/meshes-DWnDIh1l.js.map +0 -1
package/navigation.d.ts
CHANGED
|
@@ -497,6 +497,7 @@ declare abstract class BaseTexture {
|
|
|
497
497
|
*/
|
|
498
498
|
getInternalTexture(): Texture2D | null;
|
|
499
499
|
abstract whenReadyAsync(): Promise<void>;
|
|
500
|
+
readPixels(faceIndex?: number, level?: number, buffer?: ArrayBufferView | null, _flushRenderer?: boolean, _noDataConversion?: boolean, x?: number, y?: number, width?: number, height?: number): Promise<ArrayBufferView> | null;
|
|
500
501
|
dispose(): void;
|
|
501
502
|
}
|
|
502
503
|
|
|
@@ -683,6 +684,7 @@ declare class Color4 {
|
|
|
683
684
|
clone(): Color4;
|
|
684
685
|
equals(other: Color4): boolean;
|
|
685
686
|
asArray(): [number, number, number, number];
|
|
687
|
+
toHexString(returnAsColor3?: boolean): string;
|
|
686
688
|
static FromArray(array: ArrayLike<number>, offset?: number): Color4;
|
|
687
689
|
static FromInts(r: number, g: number, b: number, a: number): Color4;
|
|
688
690
|
}
|
|
@@ -1560,7 +1562,8 @@ declare class PBRMaterial extends PushMaterial {
|
|
|
1560
1562
|
private _albedoFactor;
|
|
1561
1563
|
declare class PBRSheenConfiguration {
|
|
1562
1564
|
private readonly _props;
|
|
1563
1565
|
private readonly _markDirty;
|
|
1564
|
-
|
|
1566
|
+
private readonly _watchTexture;
|
|
1567
|
+
constructor(_props: SheenProps, _markDirty: () => void, _watchTexture: (texture: BaseTexture | null) => void);
|
|
1565
1568
|
get isEnabled(): boolean;
|
|
1566
1569
|
set isEnabled(value: boolean);
|
|
1567
1570
|
get intensity(): number;
|
|
@@ -1573,9 +1576,9 @@ declare class PBRSheenConfiguration {
|
|
|
1573
1576
|
get texture(): BaseTexture | null;
|
|
1574
1577
|
set texture(value: BaseTexture | null);
|
|
1575
1578
|
private _texture;
|
|
1579
|
+
private _textureAssigned;
|
|
1576
1580
|
/** Enumerate the sheen texture slot for `Material.getActiveTextures`. */
|
|
1577
|
-
getActiveTextures(): BaseTexture[];
|
|
1578
|
-
}
|
|
1581
|
+
getActiveTextures(): BaseTexture[];
|
|
1579
1582
|
|
|
1580
1583
|
declare class Physics6DoFLimit {
|
|
1581
1584
|
axis: PhysicsConstraintAxis;
|
|
@@ -1806,6 +1809,27 @@ declare class PointerInfo {
|
|
|
1806
1809
|
get pickInfo(): PickingInfo | null;
|
|
1807
1810
|
}
|
|
1808
1811
|
|
|
1812
|
+
/** Babylon.js post-process pipeline shape consumed by the manager. */
|
|
1813
|
+
declare interface PostProcessRenderPipeline {
|
|
1809
1814
|
readonly isSupported: boolean;
|
|
1810
1815
|
dispose(): void;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
/** Babylon.js-compatible post-process pipeline registry for native Lite-backed pipelines. */
|
|
1819
|
+
declare class PostProcessRenderPipelineManager {
|
|
1820
|
+
private readonly _renderPipelines;
|
|
1821
|
+
private readonly _onNewPipelineAddedObservable;
|
|
1822
|
+
private readonly _onPipelineRemovedObservable;
|
|
1823
|
+
get onNewPipelineAddedObservable(): Observable<PostProcessRenderPipeline>;
|
|
1824
|
+
get onPipelineRemovedObservable(): Observable<PostProcessRenderPipeline>;
|
|
1825
|
+
get supportedPipelines(): PostProcessRenderPipeline[];
|
|
1826
|
+
addPipeline(renderPipeline: PostProcessRenderPipeline): void;
|
|
1827
|
+
removePipeline(renderPipelineName: string): void;
|
|
1828
|
+
attachCamerasToRenderPipeline(renderPipelineName: string, cameras: Camera[] | Camera, unique?: boolean): void;
|
|
1829
|
+
detachCamerasFromRenderPipeline(renderPipelineName: string, cameras: Camera[] | Camera): void;
|
|
1830
|
+
enableEffectInPipeline(renderPipelineName: string, renderEffectName: string, cameras: Camera[] | Camera): void;
|
|
1831
|
+
disableEffectInPipeline(renderPipelineName: string, renderEffectName: string, cameras: Camera[] | Camera): void;
|
|
1832
|
+
update(): void;
|
|
1811
1833
|
dispose(): void;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1812
1836
|
/** Babylon.js `PushMaterial` — intermediate base; behaves like {@link Material} here. */
|
|
1813
1837
|
declare abstract class PushMaterial extends Material {
|
|
1814
1838
|
getClassName(): string;
|
|
@@ -2016,11 +2040,13 @@ declare class Scene extends AbstractScene {
|
|
|
2016
2040
|
/** Babylon.js fog-mode constant
|
|
2017
2041
|
private readonly _retiredParticleSystems;
|
|
2018
2042
|
private _disposed;
|
|
2019
2043
|
private _ambientColor;
|
|
2020
2044
|
private _environmentIntensity;
|
|
2021
|
-
private _imageProcessingConfiguration;
|
|
2022
2045
|
/** Babylon.js `scene.uniqueId` — a process-unique numeric id. */
|
|
2046
|
+
private _imageProcessingConfiguration;
|
|
2047
|
+
private _postProcessRenderPipelineManager;
|
|
2023
2048
|
/** Babylon.js `scene.uniqueId` — a process-unique numeric id. */
|
|
2024
2049
|
readonly uniqueId: number;
|
|
2025
2050
|
constructor(engine: WebGPUEngine);
|
|
2026
2051
|
private _attachPointerEvents;
|
|
2027
2052
|
private _detachPointerEvents;
|
|
2028
2053
|
getEngine(): WebGPUEngine;
|
|
2054
|
+
get postProcessRenderPipelineManager(): PostProcessRenderPipelineManager;
|
|
2029
2055
|
/** Babylon.js `scene.getClassName()`. */
|
|
2030
2056
|
getClassName(): string;
|
|
2031
2057
|
/** Babylon.js `scene.getUniqueId()` — the process-unique scene id. */
|
|
@@ -2323,9 +2349,9 @@ declare class Texture extends BaseTexture {
|
|
|
2323
2349
|
hasAlpha: boolean;
|
|
2324
2350
|
coordinatesIndex: number;
|
|
2325
2351
|
/** Babylon.js sampling mode passed at construction (`NEAREST_SAMPLINGMODE` = 1, etc.). */
|
|
2326
|
-
readonly samplingMode: number;
|
|
2327
2352
|
constructor(url: string, sceneOrEngine: Scene | {
|
|
2353
|
+
samplingMode: number;
|
|
2328
2354
|
constructor(url: string, sceneOrEngine: Scene | {
|
|
2329
2355
|
_lite: EngineContext;
|
|
2330
|
-
}, noMipmapOrOptions?: unknown, invertY?: boolean, _samplingMode?: number, onLoad?: (() => void) | null);
|
|
2331
2356
|
private readonly _noMipmap;
|
|
2357
|
+
}, noMipmapOrOptions?: unknown, invertY?: boolean, _samplingMode?: number, onLoad?: (() => void) | null);
|
|
2332
2358
|
private _noMipmap;
|
|
2333
2359
|
getClassName(): string;
|
|
2334
2360
|
/**
|
|
2335
2361
|
* Babylon.js `texture.clone()` — a new `Texture` over the same source URL.
|
|
@@ -2333,6 +2359,12 @@ declare class Texture extends BaseTexture {
|
|
|
2333
2359
|
* handle (tracked against the same scene so it is ready at build).
|
|
2334
2360
|
*/
|
|
2335
2361
|
clone(): Texture;
|
|
2362
|
+
/**
|
|
2363
|
+
* Babylon.js `Texture.replaceImage` — reuse another ready URL texture's Lite
|
|
2364
|
+
* handle without reloading it. Wrapper UV state remains local; loading state
|
|
2365
|
+
* follows the source so later clones resolve the same image.
|
|
2366
|
+
*/
|
|
2367
|
+
replaceImage(source: Texture): boolean;
|
|
2336
2368
|
whenReadyAsync(): Promise<void>;
|
|
2337
2369
|
/** Babylon.js `Texture.onLoadObservable`, allocated only when code subscribes. */
|
|
2338
2370
|
get onLoadObservable(): Observable<Texture>;
|
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-CdVN59oi.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.
|
|
3
|
+
"version": "1.40.0",
|
|
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.
|
|
42
|
+
"@babylonjs/lite": "1.40.0"
|
|
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.
|
|
53
|
+
"azureBuildId": "164103842",
|
|
54
|
+
"sourceVersion": "f7e737ec7bc9740f2487b1994ffba82639934a0a",
|
|
55
|
+
"builtAgainstLite": "1.40.0"
|
|
56
56
|
}
|
|
57
57
|
}
|