babylonjs-editor-tools 0.0.11 → 0.0.12

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 (34) hide show
  1. package/build/index.node.js +1 -1451
  2. package/build/src/cinematic/events/apply-impulse.js +5 -7
  3. package/build/src/cinematic/events/set-enabled.js +2 -3
  4. package/build/src/cinematic/generate.js +6 -4
  5. package/build/src/cinematic/guards.js +16 -0
  6. package/build/src/cinematic/parse.js +30 -2
  7. package/build/src/cinematic/tools.js +0 -31
  8. package/build/src/decorators/apply.js +25 -0
  9. package/build/src/decorators/inspector.js +27 -1
  10. package/build/src/index.js +2 -0
  11. package/build/src/loading/loader.js +1 -1
  12. package/build/src/rendering/default-pipeline.js +69 -1
  13. package/build/src/rendering/motion-blur.js +7 -0
  14. package/build/src/rendering/ssao.js +7 -0
  15. package/build/src/rendering/ssr.js +7 -0
  16. package/build/src/rendering/tools.js +3 -2
  17. package/build/src/rendering/vls.js +7 -0
  18. package/build/src/tools/animation.js +21 -0
  19. package/declaration/src/cinematic/events/apply-impulse.d.ts +5 -3
  20. package/declaration/src/cinematic/events/set-enabled.d.ts +3 -3
  21. package/declaration/src/cinematic/generate.d.ts +10 -1
  22. package/declaration/src/cinematic/guards.d.ts +6 -0
  23. package/declaration/src/cinematic/tools.d.ts +0 -5
  24. package/declaration/src/cinematic/typings.d.ts +2 -0
  25. package/declaration/src/decorators/inspector.d.ts +18 -2
  26. package/declaration/src/index.d.ts +2 -0
  27. package/declaration/src/rendering/default-pipeline.d.ts +6 -1
  28. package/declaration/src/rendering/motion-blur.d.ts +5 -0
  29. package/declaration/src/rendering/ssao.d.ts +5 -0
  30. package/declaration/src/rendering/ssr.d.ts +5 -0
  31. package/declaration/src/rendering/tools.d.ts +2 -1
  32. package/declaration/src/rendering/vls.d.ts +5 -0
  33. package/declaration/src/tools/animation.d.ts +5 -0
  34. package/package.json +8 -8
@@ -9,7 +9,12 @@ export declare const defaultPipelineCameraConfigurations: Map<Camera, any>;
9
9
  * Returns the reference to the default rendering pipeline if exists.
10
10
  */
11
11
  export declare function getDefaultRenderingPipeline(): DefaultRenderingPipeline | null;
12
+ /**
13
+ * Sets the reference to the default rendering pipeline.
14
+ * @access editor only.
15
+ */
16
+ export declare function setDefaultRenderingPipelineRef(pipeline: DefaultRenderingPipeline | null): void;
12
17
  export declare function disposeDefaultRenderingPipeline(): void;
13
18
  export declare function createDefaultRenderingPipeline(scene: Scene, camera: Camera): DefaultRenderingPipeline;
14
19
  export declare function serializeDefaultRenderingPipeline(): any;
15
- export declare function parseDefaultRenderingPipeline(scene: Scene, camera: Camera, data: any): DefaultRenderingPipeline;
20
+ export declare function parseDefaultRenderingPipeline(scene: Scene, camera: Camera, data: any, rootUrl: string): DefaultRenderingPipeline;
@@ -6,6 +6,11 @@ import { MotionBlurPostProcess } from "@babylonjs/core/PostProcesses/motionBlurP
6
6
  */
7
7
  export declare const motionBlurPostProcessCameraConfigurations: Map<Camera, any>;
8
8
  export declare function getMotionBlurPostProcess(): MotionBlurPostProcess | null;
9
+ /**
10
+ * Sets the reference to the motion blur post-process.
11
+ * @access editor only.
12
+ */
13
+ export declare function setMotionBlurPostProcessRef(postProcess: MotionBlurPostProcess | null): void;
9
14
  export declare function disposeMotionBlurPostProcess(): void;
10
15
  export declare function createMotionBlurPostProcess(scene: Scene, camera: Camera): MotionBlurPostProcess;
11
16
  export declare function serializeMotionBlurPostProcess(): any;
@@ -6,6 +6,11 @@ import { SSAO2RenderingPipeline } from "@babylonjs/core/PostProcesses/RenderPipe
6
6
  */
7
7
  export declare const ssaoRenderingPipelineCameraConfigurations: Map<Camera, any>;
8
8
  export declare function getSSAO2RenderingPipeline(): SSAO2RenderingPipeline | null;
9
+ /**
10
+ * Sets the reference to the SSAO rendering pipeline.
11
+ * @access editor only.
12
+ */
13
+ export declare function setSSAO2RenderingPipelineRef(pipeline: SSAO2RenderingPipeline | null): void;
9
14
  export declare function disposeSSAO2RenderingPipeline(): void;
10
15
  export declare function createSSAO2RenderingPipeline(scene: Scene, camera: Camera): SSAO2RenderingPipeline;
11
16
  export declare function serializeSSAO2RenderingPipeline(): any;
@@ -6,6 +6,11 @@ import { SSRRenderingPipeline } from "@babylonjs/core/PostProcesses/RenderPipeli
6
6
  */
7
7
  export declare const ssrRenderingPipelineCameraConfigurations: Map<Camera, any>;
8
8
  export declare function getSSRRenderingPipeline(): SSRRenderingPipeline | null;
9
+ /**
10
+ * Sets the reference to the ssr rendering pipeline.
11
+ * @access editor only.
12
+ */
13
+ export declare function setSSRRenderingPipelineRef(pipeline: SSRRenderingPipeline | null): void;
9
14
  export declare function disposeSSRRenderingPipeline(): void;
10
15
  export declare function createSSRRenderingPipeline(scene: Scene, camera: Camera): SSRRenderingPipeline;
11
16
  export declare function serializeSSRRenderingPipeline(): any;
@@ -10,5 +10,6 @@ export declare function saveRenderingConfigurationForCamera(camera: Camera): voi
10
10
  * saved per-camera and can be applied on demand using this function.
11
11
  * Previous post-processes configurations are disposed before applying the new ones.
12
12
  * @param camera defines the reference to the camera to apply its rendering configurations.
13
+ * @param rootUrl defines the rootUrl that contains all resource files needed by the post-processes (color grading texture, etc.).
13
14
  */
14
- export declare function applyRenderingConfigurationForCamera(camera: Camera): void;
15
+ export declare function applyRenderingConfigurationForCamera(camera: Camera, rootUrl: string): void;
@@ -7,6 +7,11 @@ import { VolumetricLightScatteringPostProcess } from "@babylonjs/core/PostProces
7
7
  */
8
8
  export declare const vlsPostProcessCameraConfigurations: Map<Camera, any>;
9
9
  export declare function getVLSPostProcess(): VolumetricLightScatteringPostProcess | null;
10
+ /**
11
+ * Sets the reference to the volumetric light scattering post-process.
12
+ * @access editor only.
13
+ */
14
+ export declare function setVLSPostProcessRef(postProcess: VolumetricLightScatteringPostProcess | null): void;
10
15
  export declare function disposeVLSPostProcess(scene: Scene): void;
11
16
  export declare function createVLSPostProcess(scene: Scene, mesh?: Mesh | null): VolumetricLightScatteringPostProcess;
12
17
  export declare function serializeVLSPostProcess(): any;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Returns the animation type according to the given animated property type.
3
+ * @param effectiveProperty defines the reference to the animated property to get its animation type.
4
+ */
5
+ export declare function getAnimationTypeForObject(effectiveProperty: any): number | null;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "babylonjs-editor-tools",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
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": {
7
7
  "build": "tsc -p . && node esbuild.mjs",
8
8
  "watch": "concurrently \"tsc -p . --watch\" \"node esbuild.mjs --watch\"",
9
- "test": "jest test/*",
10
- "coverage": "jest test/* --coverage"
9
+ "test": "jest build/test/*",
10
+ "coverage": "jest build/test/* --coverage"
11
11
  },
12
12
  "main": "build/index.js",
13
13
  "exports": {
@@ -17,21 +17,21 @@
17
17
  "require": "./build/index.node.js"
18
18
  }
19
19
  },
20
- "typings": "declaration/src/index.ts",
20
+ "typings": "declaration/src/index.d.ts",
21
21
  "license": "(Apache-2.0)",
22
22
  "devDependencies": {
23
23
  "@babel/core": "^7.26.10",
24
24
  "@babel/preset-env": "^7.26.9",
25
25
  "@babel/preset-typescript": "^7.27.0",
26
- "@babylonjs/core": "8.6.1",
27
- "@babylonjs/gui": "8.6.1",
26
+ "@babylonjs/core": "8.14.0",
27
+ "@babylonjs/gui": "8.14.0",
28
28
  "@types/jest": "^29.5.14",
29
29
  "babel-jest": "^29.7.0",
30
30
  "babel-plugin-transform-class-properties": "^6.24.1",
31
31
  "babel-plugin-transform-decorators-legacy": "^1.3.5",
32
- "esbuild": "^0.25.0",
32
+ "esbuild": "0.25.5",
33
33
  "jest": "^29.7.0",
34
- "typescript": "5.4.5"
34
+ "typescript": "5.8.3"
35
35
  },
36
36
  "dependencies": {}
37
37
  }