|
@@ -1408,7 +1408,12 @@ declare module "babylonjs/Misc/fileTools" {
|
|
|
static SetCorsBehavior(url: string | string[], element: {
|
|
|
crossOrigin: string | null;
|
|
|
}): void;
|
|
|
- private static _ArrayBufferToBase64;
|
|
|
+ /**
|
|
|
+ * Encode an array buffer into a base64 string
|
|
|
+ * @param buffer defines the buffer to encode
|
|
|
+ * @returns a string containing the base64 version of the buffer
|
|
|
+ */
|
|
|
+ static ArrayBufferToBase64(buffer: ArrayBuffer | ArrayBufferView): string;
|
|
|
/**
|
|
|
* Loads an image as an HTMLImageElement.
|
|
|
* @param input url string, ArrayBuffer, or Blob to load
|
|
@@ -27999,7 +28004,7 @@ declare module "babylonjs/node" {
|
|
|
declare module "babylonjs/Animations/animation" {
|
|
|
import { IEasingFunction, EasingFunction } from "babylonjs/Animations/easing";
|
|
|
import { Vector3, Quaternion, Vector2, Matrix } from "babylonjs/Maths/math.vector";
|
|
|
- import { Color3 } from "babylonjs/Maths/math.color";
|
|
|
+ import { Color3, Color4 } from "babylonjs/Maths/math.color";
|
|
|
import { Nullable } from "babylonjs/types";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
import { IAnimationKey } from "babylonjs/Animations/animationKey";
|
|
@@ -28325,6 +28330,14 @@ declare module "babylonjs/Animations/animation" {
|
|
|
*/
|
|
|
color3InterpolateFunction(startValue: Color3, endValue: Color3, gradient: number): Color3;
|
|
|
/**
|
|
|
+ * Interpolates a Color4 linearly
|
|
|
+ * @param startValue Start value of the animation curve
|
|
|
+ * @param endValue End value of the animation curve
|
|
|
+ * @param gradient Scalar amount to interpolate
|
|
|
+ * @returns Interpolated Color3 value
|
|
|
+ */
|
|
|
+ color4InterpolateFunction(startValue: Color4, endValue: Color4, gradient: number): Color4;
|
|
|
+ /**
|
|
|
* @hidden Internal use only
|
|
|
*/
|
|
|
_getKeyValue(value: any): any;
|
|
@@ -28359,83 +28372,47 @@ declare module "babylonjs/Animations/animation" {
|
|
|
/**
|
|
|
* Float animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_FLOAT;
|
|
|
+ static readonly ANIMATIONTYPE_FLOAT: number;
|
|
|
/**
|
|
|
* Vector3 animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_VECTOR3;
|
|
|
+ static readonly ANIMATIONTYPE_VECTOR3: number;
|
|
|
/**
|
|
|
* Quaternion animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_QUATERNION;
|
|
|
+ static readonly ANIMATIONTYPE_QUATERNION: number;
|
|
|
/**
|
|
|
* Matrix animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_MATRIX;
|
|
|
+ static readonly ANIMATIONTYPE_MATRIX: number;
|
|
|
/**
|
|
|
* Color3 animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_COLOR3;
|
|
|
+ static readonly ANIMATIONTYPE_COLOR3: number;
|
|
|
+ /**
|
|
|
+ * Color3 animation type
|
|
|
+ */
|
|
|
+ static readonly ANIMATIONTYPE_COLOR4: number;
|
|
|
/**
|
|
|
* Vector2 animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_VECTOR2;
|
|
|
+ static readonly ANIMATIONTYPE_VECTOR2: number;
|
|
|
/**
|
|
|
* Size animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_SIZE;
|
|
|
+ static readonly ANIMATIONTYPE_SIZE: number;
|
|
|
/**
|
|
|
* Relative Loop Mode
|
|
|
*/
|
|
|
- private static _ANIMATIONLOOPMODE_RELATIVE;
|
|
|
+ static readonly ANIMATIONLOOPMODE_RELATIVE: number;
|
|
|
/**
|
|
|
* Cycle Loop Mode
|
|
|
*/
|
|
|
- private static _ANIMATIONLOOPMODE_CYCLE;
|
|
|
+ static readonly ANIMATIONLOOPMODE_CYCLE: number;
|
|
|
/**
|
|
|
* Constant Loop Mode
|
|
|
*/
|
|
|
- private static _ANIMATIONLOOPMODE_CONSTANT;
|
|
|
- /**
|
|
|
- * Get the float animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_FLOAT: number;
|
|
|
- /**
|
|
|
- * Get the Vector3 animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_VECTOR3: number;
|
|
|
- /**
|
|
|
- * Get the Vector2 animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_VECTOR2: number;
|
|
|
- /**
|
|
|
- * Get the Size animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_SIZE: number;
|
|
|
- /**
|
|
|
- * Get the Quaternion animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_QUATERNION: number;
|
|
|
- /**
|
|
|
- * Get the Matrix animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_MATRIX: number;
|
|
|
- /**
|
|
|
- * Get the Color3 animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_COLOR3: number;
|
|
|
- /**
|
|
|
- * Get the Relative Loop Mode
|
|
|
- */
|
|
|
- static readonly ANIMATIONLOOPMODE_RELATIVE: number;
|
|
|
- /**
|
|
|
- * Get the Cycle Loop Mode
|
|
|
- */
|
|
|
- static readonly ANIMATIONLOOPMODE_CYCLE: number;
|
|
|
- /**
|
|
|
- * Get the Constant Loop Mode
|
|
|
- */
|
|
|
- static readonly ANIMATIONLOOPMODE_CONSTANT: number;
|
|
|
+ static readonly ANIMATIONLOOPMODE_CONSTANT: number;
|
|
|
/** @hidden */
|
|
|
static _UniversalLerp(left: any, right: any, amount: number): any;
|
|
|
/**
|
|
@@ -33051,12 +33028,6 @@ declare module "babylonjs/Misc/tools" {
|
|
|
*/
|
|
|
static ToRadians(angle: number): number;
|
|
|
/**
|
|
|
- * Encode a buffer to a base64 string
|
|
|
- * @param buffer defines the buffer to encode
|
|
|
- * @returns the encoded string
|
|
|
- */
|
|
|
- static EncodeArrayBufferTobase64(buffer: ArrayBuffer): string;
|
|
|
- /**
|
|
|
* Returns an array if obj is not an array
|
|
|
* @param obj defines the object to evaluate as an array
|
|
|
* @param allowsNullUndefined defines a boolean indicating if obj is allowed to be null or undefined
|
|
@@ -56556,6 +56527,9 @@ declare module "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint" {
|
|
|
* Gets or sets a string indicating that this uniform must be defined under a #ifdef
|
|
|
*/
|
|
|
define: string;
|
|
|
+ /** @hidden */
|
|
|
+ _prioritizeVertex: boolean;
|
|
|
+ private _target;
|
|
|
/** Gets or sets the target of that connection point */
|
|
|
target: NodeMaterialBlockTargets;
|
|
|
/**
|
|
@@ -68841,7 +68815,12 @@ declare module BABYLON {
|
|
|
static SetCorsBehavior(url: string | string[], element: {
|
|
|
crossOrigin: string | null;
|
|
|
}): void;
|
|
|
- private static _ArrayBufferToBase64;
|
|
|
+ /**
|
|
|
+ * Encode an array buffer into a base64 string
|
|
|
+ * @param buffer defines the buffer to encode
|
|
|
+ * @returns a string containing the base64 version of the buffer
|
|
|
+ */
|
|
|
+ static ArrayBufferToBase64(buffer: ArrayBuffer | ArrayBufferView): string;
|
|
|
/**
|
|
|
* Loads an image as an HTMLImageElement.
|
|
|
* @param input url string, ArrayBuffer, or Blob to load
|
|
@@ -94964,6 +94943,14 @@ declare module BABYLON {
|
|
|
*/
|
|
|
color3InterpolateFunction(startValue: Color3, endValue: Color3, gradient: number): Color3;
|
|
|
/**
|
|
|
+ * Interpolates a Color4 linearly
|
|
|
+ * @param startValue Start value of the animation curve
|
|
|
+ * @param endValue End value of the animation curve
|
|
|
+ * @param gradient Scalar amount to interpolate
|
|
|
+ * @returns Interpolated Color3 value
|
|
|
+ */
|
|
|
+ color4InterpolateFunction(startValue: Color4, endValue: Color4, gradient: number): Color4;
|
|
|
+ /**
|
|
|
* @hidden Internal use only
|
|
|
*/
|
|
|
_getKeyValue(value: any): any;
|
|
@@ -94998,83 +94985,47 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* Float animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_FLOAT;
|
|
|
+ static readonly ANIMATIONTYPE_FLOAT: number;
|
|
|
/**
|
|
|
* Vector3 animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_VECTOR3;
|
|
|
+ static readonly ANIMATIONTYPE_VECTOR3: number;
|
|
|
/**
|
|
|
* Quaternion animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_QUATERNION;
|
|
|
+ static readonly ANIMATIONTYPE_QUATERNION: number;
|
|
|
/**
|
|
|
* Matrix animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_MATRIX;
|
|
|
+ static readonly ANIMATIONTYPE_MATRIX: number;
|
|
|
/**
|
|
|
* Color3 animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_COLOR3;
|
|
|
+ static readonly ANIMATIONTYPE_COLOR3: number;
|
|
|
+ /**
|
|
|
+ * Color3 animation type
|
|
|
+ */
|
|
|
+ static readonly ANIMATIONTYPE_COLOR4: number;
|
|
|
/**
|
|
|
* Vector2 animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_VECTOR2;
|
|
|
+ static readonly ANIMATIONTYPE_VECTOR2: number;
|
|
|
/**
|
|
|
* Size animation type
|
|
|
*/
|
|
|
- private static _ANIMATIONTYPE_SIZE;
|
|
|
+ static readonly ANIMATIONTYPE_SIZE: number;
|
|
|
/**
|
|
|
* Relative Loop Mode
|
|
|
*/
|
|
|
- private static _ANIMATIONLOOPMODE_RELATIVE;
|
|
|
+ static readonly ANIMATIONLOOPMODE_RELATIVE: number;
|
|
|
/**
|
|
|
* Cycle Loop Mode
|
|
|
*/
|
|
|
- private static _ANIMATIONLOOPMODE_CYCLE;
|
|
|
+ static readonly ANIMATIONLOOPMODE_CYCLE: number;
|
|
|
/**
|
|
|
* Constant Loop Mode
|
|
|
*/
|
|
|
- private static _ANIMATIONLOOPMODE_CONSTANT;
|
|
|
- /**
|
|
|
- * Get the float animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_FLOAT: number;
|
|
|
- /**
|
|
|
- * Get the Vector3 animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_VECTOR3: number;
|
|
|
- /**
|
|
|
- * Get the Vector2 animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_VECTOR2: number;
|
|
|
- /**
|
|
|
- * Get the Size animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_SIZE: number;
|
|
|
- /**
|
|
|
- * Get the Quaternion animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_QUATERNION: number;
|
|
|
- /**
|
|
|
- * Get the Matrix animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_MATRIX: number;
|
|
|
- /**
|
|
|
- * Get the Color3 animation type
|
|
|
- */
|
|
|
- static readonly ANIMATIONTYPE_COLOR3: number;
|
|
|
- /**
|
|
|
- * Get the Relative Loop Mode
|
|
|
- */
|
|
|
- static readonly ANIMATIONLOOPMODE_RELATIVE: number;
|
|
|
- /**
|
|
|
- * Get the Cycle Loop Mode
|
|
|
- */
|
|
|
- static readonly ANIMATIONLOOPMODE_CYCLE: number;
|
|
|
- /**
|
|
|
- * Get the Constant Loop Mode
|
|
|
- */
|
|
|
- static readonly ANIMATIONLOOPMODE_CONSTANT: number;
|
|
|
+ static readonly ANIMATIONLOOPMODE_CONSTANT: number;
|
|
|
/** @hidden */
|
|
|
static _UniversalLerp(left: any, right: any, amount: number): any;
|
|
|
/**
|
|
@@ -99587,12 +99538,6 @@ declare module BABYLON {
|
|
|
*/
|
|
|
static ToRadians(angle: number): number;
|
|
|
/**
|
|
|
- * Encode a buffer to a base64 string
|
|
|
- * @param buffer defines the buffer to encode
|
|
|
- * @returns the encoded string
|
|
|
- */
|
|
|
- static EncodeArrayBufferTobase64(buffer: ArrayBuffer): string;
|
|
|
- /**
|
|
|
* Returns an array if obj is not an array
|
|
|
* @param obj defines the object to evaluate as an array
|
|
|
* @param allowsNullUndefined defines a boolean indicating if obj is allowed to be null or undefined
|
|
@@ -121444,6 +121389,9 @@ declare module BABYLON {
|
|
|
* Gets or sets a string indicating that this uniform must be defined under a #ifdef
|
|
|
*/
|
|
|
define: string;
|
|
|
+ /** @hidden */
|
|
|
+ _prioritizeVertex: boolean;
|
|
|
+ private _target;
|
|
|
/** Gets or sets the target of that connection point */
|
|
|
target: NodeMaterialBlockTargets;
|
|
|
/**
|