babylonjs-editor-tools 5.2.0 → 5.2.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.
Files changed (43) 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 +92 -44
  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/decorators/apply.js +4 -1
  13. package/build/src/decorators/apply.js.map +1 -1
  14. package/build/src/index.js +1 -0
  15. package/build/src/index.js.map +1 -1
  16. package/build/src/loading/loader.js +12 -5
  17. package/build/src/loading/loader.js.map +1 -1
  18. package/build/src/loading/script.js +7 -2
  19. package/build/src/loading/script.js.map +1 -1
  20. package/build/src/loading/shadows.js +26 -16
  21. package/build/src/loading/shadows.js.map +1 -1
  22. package/build/src/loading/sound.js +17 -10
  23. package/build/src/loading/sound.js.map +1 -1
  24. package/build/src/loading/sprite-manager.js +41 -34
  25. package/build/src/loading/sprite-manager.js.map +1 -1
  26. package/build/src/loading/sprite-map.js +46 -39
  27. package/build/src/loading/sprite-map.js.map +1 -1
  28. package/build/src/loading/texture.js +51 -46
  29. package/build/src/loading/texture.js.map +1 -1
  30. package/declaration/src/cinematic/cinematic.d.ts +14 -0
  31. package/declaration/src/cinematic/events/event.d.ts +5 -0
  32. package/declaration/src/cinematic/generate.d.ts +2 -2
  33. package/declaration/src/cinematic/parse.d.ts +2 -1
  34. package/declaration/src/cinematic/tools.d.ts +3 -0
  35. package/declaration/src/cinematic/typings.d.ts +3 -0
  36. package/declaration/src/index.d.ts +1 -0
  37. package/declaration/src/loading/loader.d.ts +12 -7
  38. package/declaration/src/loading/shadows.d.ts +1 -1
  39. package/declaration/src/loading/sound.d.ts +1 -1
  40. package/declaration/src/loading/sprite-manager.d.ts +1 -1
  41. package/declaration/src/loading/sprite-map.d.ts +1 -1
  42. package/declaration/src/loading/texture.d.ts +1 -1
  43. package/package.json +1 -1
@@ -1,51 +1,56 @@
1
1
  import { SerializationHelper } from "@babylonjs/core/Misc/decorators.serialization";
2
2
  import { getPowerOfTwoUntil } from "../tools/scalar";
3
- /**
4
- * Defines the reference to the original texture parser function.
5
- */
6
- const textureParser = SerializationHelper._TextureParser;
7
- SerializationHelper._TextureParser = (sourceProperty, scene, rootUrl) => {
8
- if (scene.loadingQuality === "high" || !sourceProperty.metadata?.baseSize) {
9
- return textureParser(sourceProperty, scene, rootUrl);
10
- }
11
- const width = sourceProperty.metadata.baseSize.width;
12
- const height = sourceProperty.metadata.baseSize.height;
13
- const isPowerOfTwo = width === getPowerOfTwoUntil(width) || height === getPowerOfTwoUntil(height);
14
- let suffix = "";
15
- switch (scene.loadingQuality) {
16
- case "medium":
17
- let midWidth = (width * 0.66) >> 0;
18
- let midHeight = (height * 0.66) >> 0;
19
- if (isPowerOfTwo) {
20
- midWidth = getPowerOfTwoUntil(midWidth);
21
- midHeight = getPowerOfTwoUntil(midHeight);
22
- }
23
- suffix = `_${midWidth}_${midHeight}`;
24
- break;
25
- case "low":
26
- let lowWidth = (width * 0.33) >> 0;
27
- let lowHeight = (height * 0.33) >> 0;
28
- if (isPowerOfTwo) {
29
- lowWidth = getPowerOfTwoUntil(lowWidth);
30
- lowHeight = getPowerOfTwoUntil(lowHeight);
31
- }
32
- suffix = `_${lowWidth}_${lowHeight}`;
33
- break;
3
+ let registered = false;
4
+ export function registerTextureParser() {
5
+ if (registered) {
6
+ return;
34
7
  }
35
- const name = sourceProperty.name;
36
- if (!name || !suffix) {
8
+ registered = true;
9
+ const textureParser = SerializationHelper._TextureParser;
10
+ SerializationHelper._TextureParser = (sourceProperty, scene, rootUrl) => {
11
+ if (scene.loadingTexturesQuality === "high" || !sourceProperty.metadata?.baseSize) {
12
+ return textureParser(sourceProperty, scene, rootUrl);
13
+ }
14
+ const width = sourceProperty.metadata.baseSize.width;
15
+ const height = sourceProperty.metadata.baseSize.height;
16
+ const isPowerOfTwo = width === getPowerOfTwoUntil(width) || height === getPowerOfTwoUntil(height);
17
+ let suffix = "";
18
+ switch (scene.loadingTexturesQuality) {
19
+ case "medium":
20
+ let midWidth = (width * 0.66) >> 0;
21
+ let midHeight = (height * 0.66) >> 0;
22
+ if (isPowerOfTwo) {
23
+ midWidth = getPowerOfTwoUntil(midWidth);
24
+ midHeight = getPowerOfTwoUntil(midHeight);
25
+ }
26
+ suffix = `_${midWidth}_${midHeight}`;
27
+ break;
28
+ case "low":
29
+ case "very-low":
30
+ let lowWidth = (width * 0.33) >> 0;
31
+ let lowHeight = (height * 0.33) >> 0;
32
+ if (isPowerOfTwo) {
33
+ lowWidth = getPowerOfTwoUntil(lowWidth);
34
+ lowHeight = getPowerOfTwoUntil(lowHeight);
35
+ }
36
+ suffix = `_${lowWidth}_${lowHeight}`;
37
+ break;
38
+ }
39
+ const name = sourceProperty.name;
40
+ if (!name || !suffix) {
41
+ return textureParser(sourceProperty, scene, rootUrl);
42
+ }
43
+ const finalUrl = name.split("/");
44
+ const filename = finalUrl.pop();
45
+ if (!filename) {
46
+ return textureParser(sourceProperty, scene, rootUrl);
47
+ }
48
+ const extension = filename.split(".").pop();
49
+ const baseFilename = filename.replace(`.${extension}`, "");
50
+ const newFilename = `${baseFilename}${suffix}.${extension}`;
51
+ finalUrl.push(newFilename);
52
+ sourceProperty.name = finalUrl.join("/");
37
53
  return textureParser(sourceProperty, scene, rootUrl);
38
- }
39
- const finalUrl = name.split("/");
40
- const filename = finalUrl.pop();
41
- if (!filename) {
42
- return textureParser(sourceProperty, scene, rootUrl);
43
- }
44
- const extension = filename.split(".").pop();
45
- const baseFilename = filename.replace(`.${extension}`, "");
46
- const newFilename = `${baseFilename}${suffix}.${extension}`;
47
- finalUrl.push(newFilename);
48
- sourceProperty.name = finalUrl.join("/");
49
- return textureParser(sourceProperty, scene, rootUrl);
50
- };
54
+ };
55
+ }
51
56
  //# sourceMappingURL=texture.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"texture.js","sourceRoot":"","sources":["../../../src/loading/texture.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,aAAa,GAAG,mBAAmB,CAAC,cAAc,CAAC;AAEzD,mBAAmB,CAAC,cAAc,GAAG,CAAC,cAAmB,EAAE,KAAY,EAAE,OAAe,EAAyB,EAAE;IAClH,IAAI,KAAK,CAAC,cAAc,KAAK,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC;QAC3E,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,KAAK,GAAG,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC;IACrD,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;IAEvD,MAAM,YAAY,GAAG,KAAK,KAAK,kBAAkB,CAAC,KAAK,CAAC,IAAI,MAAM,KAAK,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAElG,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,QAAQ,KAAK,CAAC,cAAc,EAAE,CAAC;QAC9B,KAAK,QAAQ;YACZ,IAAI,QAAQ,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;YACnC,IAAI,SAAS,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;YAErC,IAAI,YAAY,EAAE,CAAC;gBAClB,QAAQ,GAAG,kBAAkB,CAAC,QAA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EAAE,CAAC;QAC5C,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAE3D,MAAM,WAAW,GAAG,GAAG,YAAY,GAAG,MAAM,IAAI,SAAS,EAAE,CAAC;QAE5D,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE3B,cAAc,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEzC,OAAO,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC,CAAC;AACH,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Observable } from "@babylonjs/core/Misc/observable";
2
+ import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup";
3
+ export declare class Cinematic extends AnimationGroup {
4
+ /**
5
+ * Defines the observable used to notify observers when an event is raised during the cinematic playback.
6
+ */
7
+ onEventObservable: Observable<string>;
8
+ /**
9
+ * Registers and calls the given callback on the provided event name is emitted during the cinematic playback.
10
+ * @param eventName defines the name of the event to listen to
11
+ * @param callback defines the callback to call when the event is raised
12
+ */
13
+ onEvent(eventName: string, callback: () => void): void;
14
+ }
@@ -0,0 +1,5 @@
1
+ import { Cinematic } from "../cinematic";
2
+ export type EventType = {
3
+ eventName: string;
4
+ };
5
+ export declare function handleApplyEvent(cinematic: Cinematic, eventData: EventType): void;
@@ -1,6 +1,6 @@
1
1
  import { Scene } from "@babylonjs/core/scene";
2
- import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup";
3
2
  import { ICinematic } from "./typings";
3
+ import { Cinematic } from "./cinematic";
4
4
  export type GenerateCinematicAnimationGroupOptions = {
5
5
  /**
6
6
  * Defines wether or not sounds should be ignored when generating the animation group.
@@ -15,4 +15,4 @@ export type GenerateCinematicAnimationGroupOptions = {
15
15
  * @param scene defines the reference to the scene where to retrieve the animated objects.
16
16
  * @param options defines the options to use when generating the animation group.
17
17
  */
18
- export declare function generateCinematicAnimationGroup(cinematic: ICinematic, scene: Scene, options?: GenerateCinematicAnimationGroupOptions): AnimationGroup;
18
+ export declare function generateCinematicAnimationGroup(cinematic: ICinematic, scene: Scene, options?: GenerateCinematicAnimationGroupOptions): Cinematic;
@@ -1,5 +1,5 @@
1
1
  import { Scene } from "@babylonjs/core/scene";
2
- import { ICinematic } from "./typings";
2
+ import { ICinematic, ICinematicKey, ICinematicKeyCut } from "./typings";
3
3
  /**
4
4
  * Parses the given JSON data and returns a new cinematic object.
5
5
  * @param data defines the JSON data of the cinematic to parse.
@@ -13,3 +13,4 @@ export declare function parseCinematic(data: ICinematic, scene: Scene): ICinemat
13
13
  * @example [0, 0, 0] with type Animation.ANIMATIONTYPE_VECTOR3 will return a new Vector3(0, 0, 0) object.
14
14
  */
15
15
  export declare function parseCinematicKeyValue(value: any, type: number): any;
16
+ export declare function parseKeyFrameAnimations(keyFrameAnimations: (ICinematicKey | ICinematicKeyCut)[], animationType: number): (ICinematicKey | ICinematicKeyCut)[];
@@ -1,4 +1,6 @@
1
+ import { Scene } from "@babylonjs/core/scene";
1
2
  import { IAnimationKey } from "@babylonjs/core/Animations/animationKey";
3
+ import { Cinematic } from "./cinematic";
2
4
  export declare function cloneKey(dataType: number, key: IAnimationKey): IAnimationKey;
3
5
  /**
4
6
  * Returns the current value of the given property of the given object.
@@ -8,3 +10,4 @@ export declare function cloneKey(dataType: number, key: IAnimationKey): IAnimati
8
10
  * @example getPropertyValue(scene, "ambientColor.r");
9
11
  */
10
12
  export declare function getPropertyValue(object: any, property: string): any;
13
+ export declare function registerAfterAnimationCallback(cinematic: Cinematic, scene: Scene, callback: () => void): void;
@@ -9,10 +9,12 @@ export interface ICinematicTrack {
9
9
  _id?: string;
10
10
  animationGroup?: any;
11
11
  animationGroups?: ICinematicAnimationGroup[];
12
+ animationGroupWeight?: (ICinematicKey | ICinematicKeyCut)[];
12
13
  node?: any;
13
14
  defaultRenderingPipeline?: boolean;
14
15
  sound?: any;
15
16
  sounds?: ICinematicSound[];
17
+ soundVolume?: (ICinematicKey | ICinematicKeyCut)[];
16
18
  propertyPath?: string;
17
19
  keyFrameAnimations?: (ICinematicKey | ICinematicKeyCut)[];
18
20
  keyFrameEvents?: ICinematicKeyEvent[];
@@ -23,6 +25,7 @@ export interface ICinematicAnimationGroup {
23
25
  speed: number;
24
26
  startFrame: number;
25
27
  endFrame: number;
28
+ repeatCount?: number;
26
29
  }
27
30
  export interface ICinematicKey extends IAnimationKey {
28
31
  type: "key" | "cut";
@@ -24,3 +24,4 @@ export * from "./cinematic/parse";
24
24
  export * from "./cinematic/typings";
25
25
  export * from "./cinematic/generate";
26
26
  export * from "./cinematic/guards";
27
+ export * from "./cinematic/cinematic";
@@ -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.2",
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": {