babylonjs-editor-tools 5.2.0 → 5.2.1

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.
Files changed (39) hide show
  1. package/build/index.node.js +1 -1
  2. package/build/src/cinematic/cinematic.js +21 -0
  3. package/build/src/cinematic/cinematic.js.map +1 -0
  4. package/build/src/cinematic/events/event.js +4 -0
  5. package/build/src/cinematic/events/event.js.map +1 -0
  6. package/build/src/cinematic/generate.js +65 -12
  7. package/build/src/cinematic/generate.js.map +1 -1
  8. package/build/src/cinematic/parse.js +34 -32
  9. package/build/src/cinematic/parse.js.map +1 -1
  10. package/build/src/cinematic/tools.js +20 -0
  11. package/build/src/cinematic/tools.js.map +1 -1
  12. package/build/src/index.js +1 -0
  13. package/build/src/index.js.map +1 -1
  14. package/build/src/loading/loader.js +12 -5
  15. package/build/src/loading/loader.js.map +1 -1
  16. package/build/src/loading/shadows.js +26 -16
  17. package/build/src/loading/shadows.js.map +1 -1
  18. package/build/src/loading/sound.js +17 -10
  19. package/build/src/loading/sound.js.map +1 -1
  20. package/build/src/loading/sprite-manager.js +41 -34
  21. package/build/src/loading/sprite-manager.js.map +1 -1
  22. package/build/src/loading/sprite-map.js +46 -39
  23. package/build/src/loading/sprite-map.js.map +1 -1
  24. package/build/src/loading/texture.js +51 -46
  25. package/build/src/loading/texture.js.map +1 -1
  26. package/declaration/src/cinematic/cinematic.d.ts +14 -0
  27. package/declaration/src/cinematic/events/event.d.ts +5 -0
  28. package/declaration/src/cinematic/generate.d.ts +2 -2
  29. package/declaration/src/cinematic/parse.d.ts +2 -1
  30. package/declaration/src/cinematic/tools.d.ts +3 -0
  31. package/declaration/src/cinematic/typings.d.ts +2 -0
  32. package/declaration/src/index.d.ts +1 -0
  33. package/declaration/src/loading/loader.d.ts +12 -7
  34. package/declaration/src/loading/shadows.d.ts +1 -1
  35. package/declaration/src/loading/sound.d.ts +1 -1
  36. package/declaration/src/loading/sprite-manager.d.ts +1 -1
  37. package/declaration/src/loading/sprite-map.d.ts +1 -1
  38. package/declaration/src/loading/texture.d.ts +1 -1
  39. package/package.json +1 -1
@@ -1,10 +1,5 @@
1
1
  import { Scene } from "@babylonjs/core/scene";
2
2
  import { IScript } from "../script";
3
- import "./sound";
4
- import "./texture";
5
- import "./shadows";
6
- import "./sprite-map";
7
- import "./sprite-manager";
8
3
  /**
9
4
  * Defines the possible output type of a script.
10
5
  * `default` is a class that will be instantiated with the object as parameter.
@@ -21,16 +16,24 @@ export type ScriptMap = Record<string, {
21
16
  * Using "medium" or "low" quality levels will reduce the memory usage and improve the performance of the scene
22
17
  * especially on mobiles where memory is limited.
23
18
  */
24
- export type SceneLoaderQualitySelector = "low" | "medium" | "high";
19
+ export type SceneLoaderQualitySelector = "very-low" | "low" | "medium" | "high";
25
20
  export type SceneLoaderOptions = {
26
21
  /**
27
22
  * Defines the quality of the scene.
28
23
  * This will affect the quality of textures that will be loaded in terms of dimensions.
29
24
  * The editor computes automatic "high (untouched)", "medium (half)", and "low (quarter)" quality levels for textures.
30
25
  * Using "medium" or "low" quality levels will reduce the memory usage and improve the performance of the scene
31
- * especially on mobiles where memory is limited.
26
+ * especially on mobiles where memory is limited. The "very-low" quality level is even more aggressive with shadows quality.
32
27
  */
33
28
  quality?: SceneLoaderQualitySelector;
29
+ /**
30
+ * Same as "quality" but only applied to textures. If set, this has priority over "quality".
31
+ */
32
+ texturesQuality?: SceneLoaderQualitySelector;
33
+ /**
34
+ * Same as "quality" but only applied to shadows. If set, this has priority over "quality".
35
+ */
36
+ shadowsQuality?: SceneLoaderQualitySelector;
34
37
  /**
35
38
  * Defines the function called to notify the loading progress in interval [0, 1]
36
39
  */
@@ -39,6 +42,8 @@ export type SceneLoaderOptions = {
39
42
  declare module "@babylonjs/core/scene" {
40
43
  interface Scene {
41
44
  loadingQuality: SceneLoaderQualitySelector;
45
+ loadingTexturesQuality: SceneLoaderQualitySelector;
46
+ loadingShadowsQuality: SceneLoaderQualitySelector;
42
47
  }
43
48
  }
44
49
  export declare function loadScene(rootUrl: any, sceneFilename: string, scene: Scene, scriptsMap: ScriptMap, options?: SceneLoaderOptions): Promise<void>;
@@ -1 +1 @@
1
- export {};
1
+ export declare function registerShadowGeneratorParser(): void;
@@ -1 +1 @@
1
- export {};
1
+ export declare function registerAudioParser(): void;
@@ -1 +1 @@
1
- export {};
1
+ export declare function registerSpriteManagerParser(): void;
@@ -1 +1 @@
1
- export {};
1
+ export declare function registerSpriteMapParser(): void;
@@ -1 +1 @@
1
- export {};
1
+ export declare function registerTextureParser(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-editor-tools",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "Babylon.js Editor Tools is a set of tools to help you create, edit and manage your Babylon.js scenes made using the Babylon.js Editor",
5
5
  "productName": "Babylon.js Editor Tools",
6
6
  "scripts": {