@babylonjs-toolkit/next 9.9.1 → 9.9.3
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 +5 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +49 -0
- package/lib/scenemanager.d.ts +3 -0
- package/lib/scenemanager.d.ts.map +1 -1
- package/lib/scenemanager.js +10549 -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 +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
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/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>
|
|
7
|
+
|
|
4
8
|
## Basic Installation
|
|
5
9
|
```bash
|
|
6
10
|
npm install @babylonjs-toolkit/next
|
|
@@ -8,7 +12,7 @@ npm install @babylonjs-toolkit/next
|
|
|
8
12
|
|
|
9
13
|
## Default Installation (ES6)
|
|
10
14
|
```bash
|
|
11
|
-
npm install @babylonjs/core @babylonjs/gui @babylonjs/loaders @babylonjs/materials @babylonjs/inspector @babylonjs/serializers @babylonjs/havok @babylonjs/addons @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
|
|
12
16
|
```
|
|
13
17
|
|
|
14
18
|
* Default Module Import Libraries
|
|
@@ -54,7 +58,6 @@ The Vite bundle services behave differently in devmode than production. To prese
|
|
|
54
58
|
"@babylonjs/addons",
|
|
55
59
|
"@babylonjs/materials",
|
|
56
60
|
"@babylonjs/serializers",
|
|
57
|
-
"@babylonjs-toolkit/dlc",
|
|
58
61
|
"@babylonjs-toolkit/next",
|
|
59
62
|
"scheduler",
|
|
60
63
|
"use-sync-external-store/shim"
|
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,mB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C,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';
|
|
@@ -38,3 +39,51 @@ export * from './unityslider';
|
|
|
38
39
|
export * from './unityscrollbar';
|
|
39
40
|
export * from './unitydropdownmenu';
|
|
40
41
|
export * from './fontmanifestentry';
|
|
42
|
+
import * as BABYLON from "@babylonjs/core/Legacy/legacy";
|
|
43
|
+
import * as _tk_0 from './scenemanager';
|
|
44
|
+
import * as _tk_1 from './handedness';
|
|
45
|
+
import * as _tk_2 from './playercontrol';
|
|
46
|
+
import * as _tk_3 from './xbox360trigger';
|
|
47
|
+
import * as _tk_4 from './movementtype';
|
|
48
|
+
import * as _tk_5 from './collisioncontact';
|
|
49
|
+
import * as _tk_6 from './intersectionprecision';
|
|
50
|
+
import * as _tk_7 from './collisionfilters';
|
|
51
|
+
import * as _tk_8 from './collisionstate';
|
|
52
|
+
import * as _tk_9 from './collisionflags';
|
|
53
|
+
import * as _tk_10 from './userinputpointer';
|
|
54
|
+
import * as _tk_11 from './triggervolume';
|
|
55
|
+
import * as _tk_12 from './roomerrormessage';
|
|
56
|
+
import * as _tk_13 from './customloadingscreen';
|
|
57
|
+
import * as _tk_14 from './localmessagebus';
|
|
58
|
+
import * as _tk_15 from './prefabobjectpool';
|
|
59
|
+
import * as _tk_16 from './raycasthitresult';
|
|
60
|
+
import * as _tk_17 from './linesmeshrenderer';
|
|
61
|
+
import * as _tk_18 from './entitycontroller';
|
|
62
|
+
import * as _tk_19 from './recastclassctor';
|
|
63
|
+
import * as _tk_20 from './irecastnavigationplugin';
|
|
64
|
+
import * as _tk_21 from './perlin2d';
|
|
65
|
+
import * as _tk_22 from './randomfn';
|
|
66
|
+
import * as _tk_23 from './noisefunction2d';
|
|
67
|
+
import * as _tk_24 from './noisefunction3d';
|
|
68
|
+
import * as _tk_25 from './noisefunction4d';
|
|
69
|
+
import * as _tk_26 from './simplexnoise';
|
|
70
|
+
import * as _tk_27 from './windowsplatform';
|
|
71
|
+
import * as _tk_28 from './mousebuttonmode';
|
|
72
|
+
import * as _tk_29 from './touchmousebutton';
|
|
73
|
+
import * as _tk_30 from './touchjoystickhandler';
|
|
74
|
+
import * as _tk_31 from './blendtreeposition';
|
|
75
|
+
import * as _tk_32 from './ianimationcurve';
|
|
76
|
+
import * as _tk_33 from './channelmixerplugin';
|
|
77
|
+
import * as _tk_34 from './universalcharactercontroller';
|
|
78
|
+
import * as _tk_35 from './lutblendplugin';
|
|
79
|
+
import * as _tk_36 from './iparticlesystemtransform';
|
|
80
|
+
import * as _tk_37 from './unityslider';
|
|
81
|
+
import * as _tk_38 from './unityscrollbar';
|
|
82
|
+
import * as _tk_39 from './unitydropdownmenu';
|
|
83
|
+
import * as _tk_40 from './fontmanifestentry';
|
|
84
|
+
if (typeof window !== 'undefined') {
|
|
85
|
+
window.BABYLON = BABYLON;
|
|
86
|
+
window.TOOLKIT = Object.assign({}, _tk_0, _tk_1, _tk_2, _tk_3, _tk_4, _tk_5, _tk_6, _tk_7, _tk_8, _tk_9, _tk_10, _tk_11, _tk_12, _tk_13, _tk_14, _tk_15, _tk_16, _tk_17, _tk_18, _tk_19, _tk_20, _tk_21, _tk_22, _tk_23, _tk_24, _tk_25, _tk_26, _tk_27, _tk_28, _tk_29, _tk_30, _tk_31, _tk_32, _tk_33, _tk_34, _tk_35, _tk_36, _tk_37, _tk_38, _tk_39, _tk_40);
|
|
87
|
+
if (!window.PROJECT)
|
|
88
|
+
window.PROJECT = {};
|
|
89
|
+
}
|
package/lib/scenemanager.d.ts
CHANGED
|
@@ -842,12 +842,14 @@ export declare class CVTOOLS_unity_metadata implements IGLTFLoaderExtension {
|
|
|
842
842
|
private _licenseName;
|
|
843
843
|
private _licenseType;
|
|
844
844
|
private _pendingReflectionTextures;
|
|
845
|
+
private _deferredCustomMaterials;
|
|
845
846
|
private static ScriptBundleCache;
|
|
846
847
|
constructor(loader: GLTFLoader);
|
|
847
848
|
dispose(): void;
|
|
848
849
|
onLoading(): void;
|
|
849
850
|
onReady(): void;
|
|
850
851
|
onComplete(): void;
|
|
852
|
+
loadProjectScriptAsync(): Promise<void>;
|
|
851
853
|
getScriptBundleTag(): string;
|
|
852
854
|
getScriptBundleUrl(): string;
|
|
853
855
|
finishComplete(): void;
|
|
@@ -860,6 +862,7 @@ export declare class CVTOOLS_unity_metadata implements IGLTFLoaderExtension {
|
|
|
860
862
|
private _processPreloadTimeout;
|
|
861
863
|
loadSceneAsync(context: string, scene: IScene): Promise<void> | null;
|
|
862
864
|
private _loadSceneInternalAsync;
|
|
865
|
+
private _resolveDeferredCustomMaterials;
|
|
863
866
|
private _loadSceneExAsync;
|
|
864
867
|
loadNodeAsync(context: string, node: INode, assign: (babylonMesh: TransformNode) => void): Promise<TransformNode> | null;
|
|
865
868
|
loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
|