@babylonjs/lite-compat 1.11.0-preview → 1.13.0-preview
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/index.d.ts +22 -12
- package/index.js +101 -25
- package/index.js.map +1 -1
- package/navigation.d.ts +22 -4
- package/package.json +4 -4
package/navigation.d.ts
CHANGED
|
@@ -12,7 +12,15 @@ import { SceneNode } from '@babylonjs/lite';
|
|
|
12
12
|
import { SheenProps } from '@babylonjs/lite';
|
|
13
13
|
import { Texture2D } from '@babylonjs/lite';
|
|
14
14
|
|
|
15
|
-
declare abstract class AbstractEngine {
|
|
16
15
|
protected readonly _canvas: RenderCanvas;
|
|
16
|
+
declare abstract class AbstractEngine {
|
|
17
|
+
/**
|
|
18
|
+
* Babylon.js `AbstractEngine.Version` — reports the underlying Babylon Lite
|
|
19
|
+
* runtime version (the build-time-resolved `VERSION` exported by
|
|
20
|
+
* `@babylonjs/lite`), not the upstream `@babylonjs/core` release it targets.
|
|
21
|
+
*/
|
|
22
|
+
static get Version(): string;
|
|
23
|
+
/** Babylon.js `AbstractEngine.NpmPackage` — the npm package + version string. */
|
|
24
|
+
static get NpmPackage(): string;
|
|
17
25
|
protected readonly _canvas: RenderCanvas;
|
|
18
26
|
private readonly _options;
|
|
19
27
|
protected readonly _scenes: Scene[];
|
|
20
28
|
protected readonly _loopCallbacks: Array<() => void>;
|
|
@@ -626,9 +634,19 @@ declare interface IAnimationKey {
|
|
|
626
634
|
|
|
627
635
|
/** Babylon.js `Light` — base class for all lights (derives from `Node`). */
|
|
628
636
|
declare abstract class Light extends Node_2 {
|
|
629
637
|
protected constructor(name: string, scene?: Scene);
|
|
630
|
-
getClassName(): string;
|
|
631
|
-
abstract get intensity(): number;
|
|
632
|
-
abstract set intensity(value: number);
|
|
638
|
+
getClassName(): string;
|
|
633
639
|
/**
|
|
640
|
+
* Babylon.js `light.intensity`. While the light is disabled the Lite light
|
|
641
|
+
* carries `0`, but the getter still returns the logical value the caller set.
|
|
642
|
+
*/
|
|
643
|
+
get intensity(): number;
|
|
644
|
+
set intensity(value: number);
|
|
645
|
+
/**
|
|
646
|
+
* Babylon.js `light.setEnabled(false)` — toggle the light's contribution.
|
|
647
|
+
* Babylon Lite has no per-light enable flag, so a disabled light is expressed
|
|
648
|
+
* by zeroing its intensity in the shared lights UBO (and restoring it on
|
|
649
|
+
* re-enable). The logical intensity value is preserved across the toggle.
|
|
650
|
+
*/
|
|
651
|
+
setEnabled(value: boolean): void;
|
|
634
652
|
/** Detach this light's shadow generator (compat for `light.shadowEnabled = false`). */
|
|
635
653
|
set shadowEnabled(enabled: boolean);
|
|
636
654
|
dispose(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/lite-compat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0-preview",
|
|
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.",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"babylonLiteRelease": {
|
|
50
|
-
"azureBuildId": "
|
|
51
|
-
"sourceVersion": "
|
|
52
|
-
"builtAgainstLite": "1.
|
|
50
|
+
"azureBuildId": "56473",
|
|
51
|
+
"sourceVersion": "fffc8e67aa3c941fc391417a6ba24ca9f9346938",
|
|
52
|
+
"builtAgainstLite": "1.13.0"
|
|
53
53
|
}
|
|
54
54
|
}
|