@babylonjs/lite-compat 1.2.0-preview → 1.3.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 +13 -1
- package/index.js +2 -5
- package/index.js.map +1 -1
- package/{meshes-BQZyNGmT.js → meshes-BkNs_oK5.js} +74 -9
- package/meshes-BkNs_oK5.js.map +1 -0
- package/navigation.d.ts +13 -1
- package/navigation.js +1 -1
- package/package.json +4 -4
- package/meshes-BQZyNGmT.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -764,7 +764,6 @@ export declare class Color4 {
|
|
|
764
764
|
add(other: Color4): Color4;
|
|
765
765
|
clone(): Color4;
|
|
766
766
|
equals(other: Color4): boolean;
|
|
767
|
-
toColor3(): Color3;
|
|
768
767
|
asArray(): [number, number, number, number];
|
|
769
768
|
static FromArray(array: ArrayLike<number>, offset?: number): Color4;
|
|
770
769
|
static FromInts(r: number, g: number, b: number, a: number): Color4;
|
|
@@ -3035,6 +3034,10 @@ export declare class Vector3 {
|
|
|
3035
3034
|
scale(scale: number): Vector3;
|
|
3036
3035
|
scaleInPlace(scale: number): this;
|
|
3037
3036
|
negate(): Vector3;
|
|
3037
|
+
minimizeInPlace(other: Vector3): this;
|
|
3038
|
+
maximizeInPlace(other: Vector3): this;
|
|
3039
|
+
minimizeInPlaceFromFloats(x: number, y: number, z: number): this;
|
|
3040
|
+
maximizeInPlaceFromFloats(x: number, y: number, z: number): this;
|
|
3038
3041
|
length(): number;
|
|
3039
3042
|
lengthSquared(): number;
|
|
3040
3043
|
normalize(): this;
|
|
@@ -3052,22 +3055,31 @@ export declare class Vector3 {
|
|
|
3052
3055
|
static Right(): Vector3;
|
|
3053
3056
|
static Left(): Vector3;
|
|
3054
3057
|
static FromArray(array: ArrayLike<number>, offset?: number): Vector3;
|
|
3058
|
+
static FromArrayToRef<T extends Vector3>(array: ArrayLike<number>, offset: number, result: T): T;
|
|
3059
|
+
static FromFloatsToRef<T extends Vector3>(x: number, y: number, z: number, result: T): T;
|
|
3055
3060
|
static Dot(a: Vector3, b: Vector3): number;
|
|
3056
3061
|
static Cross(a: Vector3, b: Vector3): Vector3;
|
|
3062
|
+
static CrossToRef<T extends Vector3>(a: Vector3, b: Vector3, result: T): T;
|
|
3057
3063
|
static Distance(a: Vector3, b: Vector3): number;
|
|
3058
3064
|
static DistanceSquared(a: Vector3, b: Vector3): number;
|
|
3059
3065
|
static Lerp(start: Vector3, end: Vector3, amount: number): Vector3;
|
|
3066
|
+
static LerpToRef<T extends Vector3>(start: Vector3, end: Vector3, amount: number, result: T): T;
|
|
3060
3067
|
/** Midpoint between two vectors. */
|
|
3061
3068
|
static Center(a: Vector3, b: Vector3): Vector3;
|
|
3062
3069
|
/** Midpoint between two vectors, written into `ref`. */
|
|
3063
3070
|
static CenterToRef(a: Vector3, b: Vector3, ref: Vector3): Vector3;
|
|
3064
3071
|
static Normalize(vector: Vector3): Vector3;
|
|
3072
|
+
static NormalizeToRef<T extends Vector3>(vector: Vector3, result: T): T;
|
|
3065
3073
|
static Minimize(a: Vector3, b: Vector3): Vector3;
|
|
3066
3074
|
static Maximize(a: Vector3, b: Vector3): Vector3;
|
|
3067
3075
|
/** Transform a coordinate (point) by a matrix using the row-vector convention. */
|
|
3068
3076
|
static TransformCoordinates(vector: Vector3, transformation: Matrix): Vector3;
|
|
3077
|
+
/** Transform a coordinate (point) by a matrix using the row-vector convention. */
|
|
3078
|
+
static TransformCoordinatesToRef<T extends Vector3>(vector: Vector3, transformation: Matrix, result: T): T;
|
|
3069
3079
|
/** Transform a direction (normal) by a matrix, ignoring translation. */
|
|
3070
3080
|
static TransformNormal(vector: Vector3, transformation: Matrix): Vector3;
|
|
3081
|
+
/** Transform a direction (normal) by a matrix, ignoring translation. */
|
|
3082
|
+
static TransformNormalToRef<T extends Vector3>(vector: Vector3, transformation: Matrix, result: T): T;
|
|
3071
3083
|
}
|
|
3072
3084
|
|
|
3073
3085
|
export declare class Vector4 {
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { V as Vector3, u as unsupported, L as LiteCompatError, N as Node, M as Matrix, a as Mesh, T as TransformNode, l as liteBackedVector3 } from "./meshes-
|
|
5
|
-
import { A, C, b, c, d, e, f, g, G, I, h, Q, i, j, k, m, t, n } from "./meshes-
|
|
4
|
+
import { V as Vector3, u as unsupported, L as LiteCompatError, N as Node, M as Matrix, a as Mesh, T as TransformNode, l as liteBackedVector3 } from "./meshes-BkNs_oK5.js";
|
|
5
|
+
import { A, C, b, c, d, e, f, g, G, I, h, Q, i, j, k, m, t, n } from "./meshes-BkNs_oK5.js";
|
|
6
6
|
import { createEngine, onBeforeRender, stopEngine, resizeEngine, setEngineSize, disposeEngine, registerSceneWithShadowSupport, registerScene, startEngine, createArcRotateCamera, attachControl, getCameraPosition, getViewMatrix, getProjectionMatrix, createGeospatialCamera, setGeospatialOrientation, attachGeospatialControls, createFreeCamera, attachFreeControl, markMaterialUboDirty, createPbrMaterial, createSolidTexture2D, createStandardMaterial, setAnimationAdditive, playAnimation, pauseAnimation, goToFrame, stopAnimation, createSceneContext, updateAnimationManager, setFog, setClipPlane, loadDdsEnvironment, loadEnvironment, createDefaultCamera, addToScene, createHemisphericLight, createAnimationManager, enableAnimationBlending, addAnimationGroup, disposeScene, createDirectionalLight, createPointLight, createSpotLight, createCsgFromMesh, csgSubtract, csgIntersect, csgUnion, createMeshFromCsg, createCsg2FromMesh, csg2Subtract, csg2Intersect, csg2Add, createMeshesFromCsg2, disposeCsg2, initializeCsg2Async, createMorphTargets, setMorphTargetWeights, createTransformNode, bakeCurrentTransformIntoVertices, loadSOG, loadSPZ, loadSplat, createTexture2DFromPixels, updateTexture2DFromPixels, loadBasisTexture2D, loadKtxTexture2D, loadTexture2D, getContainerMeshes, loadBabylon, loadGltf, resetVariant, getVariantNames, selectVariant, disposePicker, createGpuPicker, pickAsync, createAxisDragGizmo, attachAxisDragGizmoToNode, disposeAxisDragGizmo, createAxisScaleGizmo, attachAxisScaleGizmoToNode, disposeAxisScaleGizmo, createBoundingBoxGizmo, attachBoundingBoxGizmoToNode, disposeBoundingBoxGizmo, createCameraGizmo, attachCameraGizmoToCamera, disposeCameraGizmo, createLightGizmo, attachLightGizmoToLight, disposeLightGizmo, createPlaneDragGizmo, attachPlaneDragGizmoToNode, disposePlaneDragGizmo, createPlaneRotationGizmo, attachPlaneRotationGizmoToNode, disposePlaneRotationGizmo, createPositionGizmo, setPositionGizmoLocalCoordinates, attachPositionGizmoToNode, disposePositionGizmo, createRotationGizmo, setRotationGizmoLocalCoordinates, attachRotationGizmoToNode, disposeRotationGizmo, createScaleGizmo, setScaleGizmoLocalCoordinates, attachScaleGizmoToNode, disposeScaleGizmo, createUtilityLayer, registerUtilityLayer, disposeUtilityLayer, addBillboardSpriteIndex, updateBillboardSpriteIndex, loadSpriteAtlas, createFacingBillboardSystem, addFacingBillboardSystem, billboardBlendAdditive, billboardBlendAlpha, spriteBlendPremultiplied, spriteBlendAdditive, spriteBlendAlpha, createSprite2DLayer, addSprite2DIndex, createSpriteRenderer, registerSpriteRenderer, updateSprite2DIndex, createPcfSpotlightShadowGenerator, createPcfDirectionalShadowGenerator, createEsmDirectionalShadowGenerator, setShadowTaskCasterMeshes, parseNodeMaterialFromSnippet, createGridMaterial } from "@babylonjs/lite";
|
|
7
7
|
class Color3 {
|
|
8
8
|
constructor(r = 0, g2 = 0, b2 = 0) {
|
|
@@ -122,9 +122,6 @@ class Color4 {
|
|
|
122
122
|
equals(other) {
|
|
123
123
|
return this.r === other.r && this.g === other.g && this.b === other.b && this.a === other.a;
|
|
124
124
|
}
|
|
125
|
-
toColor3() {
|
|
126
|
-
return new Color3(this.r, this.g, this.b);
|
|
127
|
-
}
|
|
128
125
|
asArray() {
|
|
129
126
|
return [this.r, this.g, this.b, this.a];
|
|
130
127
|
}
|