babylonjs-editor-cli 5.4.1-rc.7 → 5.4.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.
@@ -1,5 +1,9 @@
1
1
  import { IProcessAssetFileOptions } from "./process.mjs";
2
2
  export declare function getExtractedTextureOutputPath(publicDir: string): string;
3
+ export type DownscaledTextureSize = {
4
+ width: number;
5
+ height: number;
6
+ };
3
7
  export interface IComputeExportedTextureOptions extends IProcessAssetFileOptions {
4
8
  force: boolean;
5
9
  exportedAssets: string[];
@@ -3,6 +3,7 @@ export interface ICreateGeometryFilesOptions {
3
3
  sceneFile: string;
4
4
  sceneName: string;
5
5
  publicDir: string;
6
+ geometryFiles: string[];
6
7
  exportedAssets: string[];
7
8
  babylonjsEditorToolsVersion: string;
8
9
  directories: Awaited<ReturnType<typeof readSceneDirectories>>;
@@ -1,5 +1,6 @@
1
1
  import { readSceneDirectories } from "../tools/scene.mjs";
2
2
  export interface ICreateBabylonSceneOptions {
3
+ buildTime: number;
3
4
  sceneFile: string;
4
5
  sceneName: string;
5
6
  publicDir: string;
@@ -10,4 +11,8 @@ export interface ICreateBabylonSceneOptions {
10
11
  config: any;
11
12
  directories: Awaited<ReturnType<typeof readSceneDirectories>>;
12
13
  }
13
- export declare function createBabylonScene(options: ICreateBabylonSceneOptions): Promise<string[]>;
14
+ export declare function createBabylonScene(options: ICreateBabylonSceneOptions): Promise<{
15
+ usedFiles: string[];
16
+ geometryFiles: string[];
17
+ reusedGeometriesCount: number;
18
+ }>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns a new array composed of distinct elements.
3
+ * @param array defines the reference to the source array.
4
+ */
5
+ export declare function unique<T>(array: T[]): T[];
6
+ /**
7
+ * Compares two arrays and returns true if they are the same (same length and same elements in the same order).
8
+ */
9
+ export declare function isSameArray<T>(a: T[] | Buffer, b: T[] | Buffer): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-editor-cli",
3
- "version": "5.4.1-rc.7",
3
+ "version": "5.4.1",
4
4
  "description": "Babylon.js Editor CLI is a command line interface to help you package your scenes made using the Babylon.js Editor",
5
5
  "productName": "Babylon.js Editor CLI",
6
6
  "scripts": {