@babylonjs/lite-compat 1.9.0-preview → 1.10.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/README.md CHANGED
@@ -130,7 +130,7 @@ overloads within a supported area may still be absent.
130
130
  | Animation (keyframe `Animation`, easing, `Animatable`, `AnimationGroup` incl. weighted/additive blend) | ⚡ | CPU evaluation; loaded glTF skeletal blending supported |
131
131
  | Morph targets (`MorphTarget` / `MorphTargetManager`) | ✅ | over Lite morph targets |
132
132
  | Sprites (`SpriteManager` / `Sprite`) | ⚡ | camera-facing billboards; `SpriteMap` / packed atlas unsupported |
133
- | Behaviors / Actions (`AutoRotation`, `Framing`, `ActionManager`, conditions) | ⚡ | `ActionManager` is manual-dispatch; drag behaviors need Lite core |
133
+ | Behaviors / Actions (`AutoRotation`, `Framing`, `ActionManager`, conditions) | ⚡ | `ActionManager` is manual-dispatch; drag / six-DoF / XR-oriented mesh behaviors throw |
134
134
  | Misc (`Observable`, `Tools`, `SmartArray`, `Tags`, gradients, `PerformanceMonitor`) | ✅ | |
135
135
  | Audio V2 (`AudioEngineV2`, `StaticSound`, `StreamingSound`, `AudioBus`, buses/sources/analyzer) | ⚡ | over Lite's AudioV2 port; `MainAudioBus` spatial/analyzer and a second main bus unsupported |
136
136
  | Physics (`HavokPlugin`, `scene.enablePhysics`/`getPhysicsEngine`, `PhysicsShapeType`/`PhysicsMotionType`) | ⚡ | Havok V2 over Lite `createHavokWorld`; refresh-rate-independent `useDeltaForWorldStep`. Bodies via native `createPhysicsAggregate` (`PhysicsAggregate` class not wrapped) |
@@ -142,7 +142,7 @@ overloads within a supported area may still be absent.
142
142
  | ---------------------------------------------------------------------------------------------- | :----: | --------------------------------------------------------------- |
143
143
  | glTF 2.0 (+ extensions), `.babylon` | ✅ | via Lite `loadGltf` / `loadBabylon` |
144
144
  | `SceneLoader` (`ImportMeshAsync` / `AppendAsync` / `LoadAssetContainerAsync`), `AssetsManager` | ⚡ | `AssetContainer` partial |
145
- | Gaussian Splatting (`.ply` / `.splat` / `.sog` / `.spz`) | ⚡ | via `GaussianSplattingMesh`; LOD-streaming variants unsupported |
145
+ | Gaussian Splatting (`.ply` / `.splat` / `.sog` / `.spz`) | ⚡ | via `GaussianSplattingMesh`; LOD-streaming + glTF-embedded (`KHR_gaussian_splatting`) variants unsupported |
146
146
  | `OBJ` / `STL` / `FBX` / `BVH` | ❌ | not in Lite — convert to glTF |
147
147
 
148
148
  ### `@babylonjs/addons` · `@recast-navigation/*`
package/index.d.ts CHANGED
@@ -732,6 +732,10 @@ export declare class AssetsManager {
732
732
  loadAsync(): Promise<AbstractAssetTask[]>;
733
733
  }
734
734
 
735
+ export declare class AttachToBoxBehavior {
736
+ constructor();
737
+ }
738
+
735
739
  /** FFT window sizes accepted by the analyzer (mirrors `AudioAnalyzerFFTSizeType`). */
736
740
  export declare type AudioAnalyzerFFTSizeType = 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768;
737
741
 
@@ -890,6 +894,10 @@ export declare class BackgroundMaterial {
890
894
  constructor();
891
895
  }
892
896
 
897
+ export declare class BaseSixDofDragBehavior {
898
+ constructor();
899
+ }
900
+
893
901
  export declare abstract class BaseTexture {
894
902
  name: string;
895
903
  getClassName(): string;
896
904
  abstract whenReadyAsync(): Promise<void>;
@@ -1450,6 +1458,10 @@ export declare class FactorGradient {
1450
1458
  getFactor(): number;
1451
1459
  }
1452
1460
 
1461
+ export declare class FadeInOutBehavior {
1462
+ constructor();
1463
+ }
1464
+
1453
1465
  export declare class FBXFileLoader {
1454
1466
  constructor();
1455
1467
  }
@@ -1459,6 +1471,10 @@ export declare class FlyCamera extends TargetCamera {
1459
1471
  getClassName(): string;
1460
1472
  }
1461
1473
 
1474
+ export declare class FollowBehavior {
1475
+ constructor();
1476
+ }
1477
+
1462
1478
  /**
1463
1479
  * Babylon.js `FollowCamera` — follows a `lockedTarget` at a fixed radius /
1464
1480
  * height / rotation offset, updated each frame via the scene's before-render hook.
@@ -1570,6 +1586,10 @@ export declare class GeospatialCamera extends Camera {
1570
1586
  constructor(name: str
1571
1587
  attachControl(canvas: HTMLCanvasElement, _noPreventDefault?: boolean): void;
1572
1588
  }
1573
1589
 
1590
+ export declare class GeospatialClippingBehavior {
1591
+ constructor();
1592
+ }
1593
+
1574
1594
  /** Babylon.js `GetElementPixelFromUv` — HTML overlay raycast interaction is unsupported by the compat layer. */
1575
1595
  export declare function GetElementPixelFromUv(): never;
1576
1596
 
@@ -1692,6 +1712,10 @@ declare interface GroundOptions {
1692
1712
  subdivisions?: number;
1693
1713
  }
1694
1714
 
1715
+ export declare class HandConstraintBehavior {
1716
+ constructor();
1717
+ }
1718
+
1695
1719
  /**
1696
1720
  * Babylon.js-shaped Havok V2 physics plugin, backed by Babylon Lite's native
1697
1721
  * `createHavokWorld` API.
@@ -1944,6 +1968,10 @@ export declare class InstancedMesh {
1944
1968
  constructor();
1945
1969
  }
1946
1970
 
1971
+ export declare class InterpolatingBehavior {
1972
+ constructor();
1973
+ }
1974
+
1947
1975
  /** Babylon.js `IsHtmlInCanvasSupportedNatively` — the HTML-in-canvas feature is unsupported by the compat layer. */
1948
1976
  export declare function IsHtmlInCanvasSupportedNatively(): never;
1949
1977
 
@@ -2410,6 +2438,10 @@ export declare class MultiMaterial {
2410
2438
  constructor();
2411
2439
  }
2412
2440
 
2441
+ export declare class MultiPointerScaleBehavior {
2442
+ constructor();
2443
+ }
2444
+
2413
2445
  declare abstract class Node_2 {
2414
2446
  name: string;
2415
2447
  /** String id. Defaults to the name (Babylon.js parity). */
@@ -2858,6 +2890,10 @@ export declare class PlaneRotationGizmo extends GizmoBase {
2858
2890
  private _attache
2859
2891
  dispose(): void;
2860
2892
  }
2861
2893
 
2894
+ export declare class PointerDragBehavior {
2895
+ constructor();
2896
+ }
2897
+
2862
2898
  export declare class PointLight extends Light {
2863
2899
  constructor(name: string, position: Vector3, scene?: Scene);
2864
2900
  getClassName(): string;
2865
2901
  get intensity(): number;
@@ -3391,6 +3427,10 @@ export declare class SineEase extends EasingFunction {
3391
3427
  easeInCore(gradient: number): number;
3392
3428
  }
3393
3429
 
3430
+ export declare class SixDofDragBehavior {
3431
+ constructor();
3432
+ }
3433
+
3394
3434
  /** Babylon.js-compatible `Size` and `Viewport` (pure JS). */
3395
3435
  export declare class Size {
3396
3436
  width: number;
@@ -3790,6 +3830,10 @@ export declare class StringDictionary<T> {
3790
3830
  forEach(callback: (key: string, value: T) => void): void;
3791
3831
  }
3792
3832
 
3833
+ export declare class SurfaceMagnetismBehavior {
3834
+ constructor();
3835
+ }
3836
+
3793
3837
  declare interface Taggable {
3794
3838
  _tags?: Record<string, true>;
3795
3839
  }
package/index.js CHANGED
@@ -7236,6 +7236,64 @@ class Sound {
7236
7236
  unsupported("Sound", "Audio is not part of Babylon Lite. Use the Web Audio API directly.");
7237
7237
  }
7238
7238
  }
7239
+ class PointerDragBehavior {
7240
+ constructor() {
7241
+ unsupported(
7242
+ "PointerDragBehavior",
7243
+ "Babylon Lite's pointer-drag (`createPointerDrag`) only drives utility-layer gizmo colliders, not arbitrary main-scene meshes, so mesh drag-behaviors cannot be wrapped."
7244
+ );
7245
+ }
7246
+ }
7247
+ class BaseSixDofDragBehavior {
7248
+ constructor() {
7249
+ unsupported("BaseSixDofDragBehavior", "Six-DoF mesh dragging is not implemented in Babylon Lite.");
7250
+ }
7251
+ }
7252
+ class SixDofDragBehavior {
7253
+ constructor() {
7254
+ unsupported("SixDofDragBehavior", "Six-DoF mesh dragging is not implemented in Babylon Lite.");
7255
+ }
7256
+ }
7257
+ class MultiPointerScaleBehavior {
7258
+ constructor() {
7259
+ unsupported("MultiPointerScaleBehavior", "Multi-pointer scaling is not implemented in Babylon Lite.");
7260
+ }
7261
+ }
7262
+ class AttachToBoxBehavior {
7263
+ constructor() {
7264
+ unsupported("AttachToBoxBehavior", "Bounding-box attachment (app-bar UI) is not implemented in Babylon Lite.");
7265
+ }
7266
+ }
7267
+ class FadeInOutBehavior {
7268
+ constructor() {
7269
+ unsupported("FadeInOutBehavior", "Mesh fade-in/out visibility tweening is not implemented in Babylon Lite.");
7270
+ }
7271
+ }
7272
+ class SurfaceMagnetismBehavior {
7273
+ constructor() {
7274
+ unsupported("SurfaceMagnetismBehavior", "Surface magnetism (mesh snapping) is not implemented in Babylon Lite.");
7275
+ }
7276
+ }
7277
+ class FollowBehavior {
7278
+ constructor() {
7279
+ unsupported("FollowBehavior", "Camera-follow behavior is not implemented in Babylon Lite.");
7280
+ }
7281
+ }
7282
+ class HandConstraintBehavior {
7283
+ constructor() {
7284
+ unsupported("HandConstraintBehavior", "WebXR hand-constraint behavior is out of scope for Babylon Lite.");
7285
+ }
7286
+ }
7287
+ class InterpolatingBehavior {
7288
+ constructor() {
7289
+ unsupported("InterpolatingBehavior", "The interpolating camera behavior is not implemented in Babylon Lite.");
7290
+ }
7291
+ }
7292
+ class GeospatialClippingBehavior {
7293
+ constructor() {
7294
+ unsupported("GeospatialClippingBehavior", "Geospatial camera clipping is not implemented in Babylon Lite.");
7295
+ }
7296
+ }
7239
7297
  const SceneSerializer = {
7240
7298
  Serialize() {
7241
7299
  return unsupported("SceneSerializer.Serialize", "Babylon Lite does not implement `.babylon` scene serialization.");
@@ -7448,6 +7506,7 @@ export {
7448
7506
  ArcRotateCamera,
7449
7507
  AssetContainer,
7450
7508
  AssetsManager,
7509
+ AttachToBoxBehavior,
7451
7510
  AudioBus,
7452
7511
  AudioEngine,
7453
7512
  AudioEngineV2,
@@ -7459,6 +7518,7 @@ export {
7459
7518
  BVHFileLoader,
7460
7519
  BackEase,
7461
7520
  BackgroundMaterial,
7521
+ BaseSixDofDragBehavior,
7462
7522
  BaseTexture,
7463
7523
  BlackAndWhitePostProcess,
7464
7524
  BloomEffect,
@@ -7524,7 +7584,9 @@ export {
7524
7584
  ExponentialEase,
7525
7585
  FBXFileLoader,
7526
7586
  FactorGradient,
7587
+ FadeInOutBehavior,
7527
7588
  FlyCamera,
7589
+ FollowBehavior,
7528
7590
  FollowCamera,
7529
7591
  FramingBehavior,
7530
7592
  FreeCamera,
@@ -7536,6 +7598,7 @@ export {
7536
7598
  GaussianSplattingMesh,
7537
7599
  GeometryBufferRenderer,
7538
7600
  GeospatialCamera,
7601
+ GeospatialClippingBehavior,
7539
7602
  GetElementPixelFromUv,
7540
7603
  GizmoManager,
7541
7604
  GlowLayer,
@@ -7543,6 +7606,7 @@ export {
7543
7606
  GridMaterial,
7544
7607
  G as GroundMesh,
7545
7608
  HDRCubeTexture,
7609
+ HandConstraintBehavior,
7546
7610
  HavokPlugin,
7547
7611
  HemisphericLight,
7548
7612
  HighlightLayer,
@@ -7555,6 +7619,7 @@ export {
7555
7619
  InitializeCSG2Async,
7556
7620
  InstallHtmlInCanvasPolyfill,
7557
7621
  I as InstancedMesh,
7622
+ InterpolatingBehavior,
7558
7623
  IsHtmlInCanvasSupportedNatively,
7559
7624
  IsHtmlInCanvasUploadSupported,
7560
7625
  KHR_materials_variants,
@@ -7576,6 +7641,7 @@ export {
7576
7641
  MorphTarget,
7577
7642
  MorphTargetManager,
7578
7643
  MultiMaterial,
7644
+ MultiPointerScaleBehavior,
7579
7645
  Node,
7580
7646
  NodeMaterial,
7581
7647
  NullEngine,
@@ -7607,6 +7673,7 @@ export {
7607
7673
  PlaneDragGizmo,
7608
7674
  PlaneRotationGizmo,
7609
7675
  PointLight,
7676
+ PointerDragBehavior,
7610
7677
  PointsCloudSystem,
7611
7678
  PositionGizmo,
7612
7679
  PostProcess,
@@ -7639,6 +7706,7 @@ export {
7639
7706
  ShaderMaterial,
7640
7707
  ShadowGenerator,
7641
7708
  SineEase,
7709
+ SixDofDragBehavior,
7642
7710
  Size,
7643
7711
  Skeleton,
7644
7712
  SmartArray,
@@ -7659,6 +7727,7 @@ export {
7659
7727
  StaticSoundBuffer,
7660
7728
  StreamingSound,
7661
7729
  StringDictionary,
7730
+ SurfaceMagnetismBehavior,
7662
7731
  Tags,
7663
7732
  TargetCamera,
7664
7733
  Texture,