@babylonjs-toolkit/next 9.8.0 → 9.9.2
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 +12 -18
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/scenemanager.d.ts +6 -0
- package/lib/scenemanager.d.ts.map +1 -1
- package/lib/scenemanager.js +10580 -4
- package/lib/windowsplatform.d.ts +17 -0
- package/lib/windowsplatform.d.ts.map +1 -0
- package/lib/windowsplatform.js +133 -0
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# ESNext Edition
|
|
2
2
|
The <a href="https://www.babylontoolkit.com">Babylon Toolkit</a> is a runtime library extension for BabylonJS development that provides modern programming mechanics with a familiar Unity like scripting model to fast track native web game development.
|
|
3
3
|
|
|
4
|
-
<a href="https://github.com/
|
|
4
|
+
<a href="https://github.com/BabylonJS/BabylonToolkit/tree/master/Runtime">Browser Library (CDN)</a>
|
|
5
|
+
<br/>
|
|
6
|
+
<a href="https://www.npmjs.com/package/babylonjs-toolkit">Classic Edition (UMD)</a>
|
|
5
7
|
|
|
6
8
|
## Basic Installation
|
|
7
9
|
```bash
|
|
@@ -10,7 +12,7 @@ npm install @babylonjs-toolkit/next
|
|
|
10
12
|
|
|
11
13
|
## Default Installation (ES6)
|
|
12
14
|
```bash
|
|
13
|
-
npm install @babylonjs/core @babylonjs/gui @babylonjs/loaders @babylonjs/materials @babylonjs/havok @babylonjs-toolkit/next
|
|
15
|
+
npm install @babylonjs/core @babylonjs/gui @babylonjs/loaders @babylonjs/materials @babylonjs/inspector @babylonjs/serializers @babylonjs/havok @babylonjs/addons @babylonjs-toolkit/next
|
|
14
16
|
```
|
|
15
17
|
|
|
16
18
|
* Default Module Import Libraries
|
|
@@ -42,31 +44,23 @@ import * as TOOLKIT from "@babylonjs-toolkit/next";
|
|
|
42
44
|
TOOLKIT.SceneManager.AutoStripNamespacePrefix = false;
|
|
43
45
|
```
|
|
44
46
|
|
|
45
|
-
## Navigation Mesh And Pathfinding ([Navigation](https://github.com/MackeyK24/babylon-navigation-mesh))
|
|
46
|
-
|
|
47
|
-
Import Navigation from the babylon-toolkit library:
|
|
48
|
-
```
|
|
49
|
-
import { Navigation } from '@babylonjs-toolkit/next';
|
|
50
|
-
```
|
|
51
|
-
|
|
52
47
|
### Vite Configuration (ES6)
|
|
53
48
|
|
|
54
49
|
The Vite bundle services behave differently in devmode than production. To preserve some required classes during devmode, these `exclude` and `include` settings are strongly recommended in your vite.config.js settings file.
|
|
55
50
|
|
|
56
51
|
```json
|
|
57
52
|
optimizeDeps: {
|
|
58
|
-
exclude:
|
|
59
|
-
|
|
53
|
+
exclude: ["@babylonjs/havok", "@babylonjs/inspector"],
|
|
54
|
+
include: mode === 'development' ? [
|
|
60
55
|
"@babylonjs/core",
|
|
56
|
+
"@babylonjs/gui",
|
|
61
57
|
"@babylonjs/loaders",
|
|
62
|
-
"@babylonjs/
|
|
63
|
-
] : ["@babylonjs/havok"],
|
|
64
|
-
include: mode === 'development' ? [
|
|
65
|
-
"@babylonjs/gui",
|
|
58
|
+
"@babylonjs/addons",
|
|
66
59
|
"@babylonjs/materials",
|
|
67
|
-
"@babylonjs/
|
|
68
|
-
"@babylonjs-toolkit/
|
|
69
|
-
"
|
|
60
|
+
"@babylonjs/serializers",
|
|
61
|
+
"@babylonjs-toolkit/next",
|
|
62
|
+
"scheduler",
|
|
63
|
+
"use-sync-external-store/shim"
|
|
70
64
|
] : [],
|
|
71
65
|
},
|
|
72
66
|
```
|
package/lib/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './noisefunction2d';
|
|
|
25
25
|
export * from './noisefunction3d';
|
|
26
26
|
export * from './noisefunction4d';
|
|
27
27
|
export * from './simplexnoise';
|
|
28
|
+
export * from './windowsplatform';
|
|
28
29
|
export * from './mousebuttonmode';
|
|
29
30
|
export * from './touchmousebutton';
|
|
30
31
|
export * from './touchjoystickhandler';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from './noisefunction2d';
|
|
|
25
25
|
export * from './noisefunction3d';
|
|
26
26
|
export * from './noisefunction4d';
|
|
27
27
|
export * from './simplexnoise';
|
|
28
|
+
export * from './windowsplatform';
|
|
28
29
|
export * from './mousebuttonmode';
|
|
29
30
|
export * from './touchmousebutton';
|
|
30
31
|
export * from './touchjoystickhandler';
|
package/lib/scenemanager.d.ts
CHANGED
|
@@ -70,6 +70,8 @@ export declare class SceneManager {
|
|
|
70
70
|
static EnableUserInput: boolean;
|
|
71
71
|
static RenderLoopReady: boolean;
|
|
72
72
|
static PauseRenderLoop: boolean;
|
|
73
|
+
static ScenePlaying: boolean;
|
|
74
|
+
private static PhysicsTimeStep;
|
|
73
75
|
static LostRenderContext: boolean;
|
|
74
76
|
static AutoUpdateProgress: boolean;
|
|
75
77
|
static PhysicsCapsuleShape: number;
|
|
@@ -176,6 +178,7 @@ export declare class SceneManager {
|
|
|
176
178
|
static GetDeltaMilliseconds(scene: Scene, applyAnimationRatio?: boolean): number;
|
|
177
179
|
static GetTimeMilliseconds(): number;
|
|
178
180
|
static GetAnimationRatio(scene: Scene): number;
|
|
181
|
+
static SetScenePlaying(playing: boolean, scene?: Scene): void;
|
|
179
182
|
static RunOnce(scene: Scene, func: () => void, timeout?: number): void;
|
|
180
183
|
static DisposeScene(scene: Scene, clearColor?: Color4): void;
|
|
181
184
|
static SafeDestroy(transform: TransformNode, delay?: number, disable?: boolean): void;
|
|
@@ -839,12 +842,14 @@ export declare class CVTOOLS_unity_metadata implements IGLTFLoaderExtension {
|
|
|
839
842
|
private _licenseName;
|
|
840
843
|
private _licenseType;
|
|
841
844
|
private _pendingReflectionTextures;
|
|
845
|
+
private _deferredCustomMaterials;
|
|
842
846
|
private static ScriptBundleCache;
|
|
843
847
|
constructor(loader: GLTFLoader);
|
|
844
848
|
dispose(): void;
|
|
845
849
|
onLoading(): void;
|
|
846
850
|
onReady(): void;
|
|
847
851
|
onComplete(): void;
|
|
852
|
+
loadProjectScriptAsync(): Promise<void>;
|
|
848
853
|
getScriptBundleTag(): string;
|
|
849
854
|
getScriptBundleUrl(): string;
|
|
850
855
|
finishComplete(): void;
|
|
@@ -857,6 +862,7 @@ export declare class CVTOOLS_unity_metadata implements IGLTFLoaderExtension {
|
|
|
857
862
|
private _processPreloadTimeout;
|
|
858
863
|
loadSceneAsync(context: string, scene: IScene): Promise<void> | null;
|
|
859
864
|
private _loadSceneInternalAsync;
|
|
865
|
+
private _resolveDeferredCustomMaterials;
|
|
860
866
|
private _loadSceneExAsync;
|
|
861
867
|
loadNodeAsync(context: string, node: INode, assign: (babylonMesh: TransformNode) => void): Promise<TransformNode> | null;
|
|
862
868
|
loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
|