@shopware-ag/dive 1.19.1-beta.2 → 1.19.1-beta.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/build/dive.cjs +196 -196
- package/build/dive.cjs.map +1 -1
- package/build/dive.js +182 -182
- package/build/dive.js.map +1 -1
- package/build/dive.mjs +2287 -2239
- package/build/dive.mjs.map +1 -1
- package/build/src/ar/arquicklook/ARQuickLook.d.ts +1 -1
- package/build/src/ar/sceneviewer/SceneViewer.d.ts +1 -1
- package/build/src/com/actions/scene/launchar.d.ts +1 -1
- package/build/src/converter/Converter.d.ts +0 -2
- package/build/src/dive.d.ts +4 -4
- package/build/src/error/ar-compatibility/ar-compatibility-error.d.ts +12 -0
- package/build/src/error/file-type/file-type-error.d.ts +4 -0
- package/build/src/error/index.d.ts +4 -0
- package/build/src/error/network/network-error.d.ts +5 -0
- package/build/src/error/parse/parse-error.d.ts +4 -0
- package/build/src/helper/getFileTypeFromUri/getFileTypeFromUri.d.ts +6 -0
- package/build/src/helper/index.d.ts +7 -0
- package/build/src/helper/isFileTypeSupported/isFileTypeSupported.d.ts +7 -0
- package/build/src/info/Info.d.ts +1 -0
- package/build/src/loader/Loader.d.ts +1 -0
- package/build/src/types/file/FileTypes.d.ts +1 -2
- package/build/src/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/build/src/types/error/index.d.ts +0 -12
- /package/build/src/ar/{AR.d.ts → ARSystem.d.ts} +0 -0
|
@@ -6,7 +6,5 @@ export declare class Converter {
|
|
|
6
6
|
private _exporter;
|
|
7
7
|
constructor(_uri: string);
|
|
8
8
|
static convert(uri: string): Converter;
|
|
9
|
-
private _getFileTypeFromUri;
|
|
10
|
-
private _loadFile;
|
|
11
9
|
to<T extends FileType>(type: T, options?: FileTypeToExporterOptions[T]): Promise<ArrayBuffer>;
|
|
12
10
|
}
|
package/build/src/dive.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export default class DIVE {
|
|
|
60
60
|
}
|
|
61
61
|
export { DIVE, DIVECommunication };
|
|
62
62
|
export * from './math/index.ts';
|
|
63
|
-
export * from './ar/
|
|
64
|
-
export
|
|
65
|
-
export
|
|
66
|
-
export
|
|
63
|
+
export * from './ar/ARSystem.ts';
|
|
64
|
+
export * from './com/actions/index.ts';
|
|
65
|
+
export * from './com/types';
|
|
66
|
+
export * from './types';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class ARCompatibilityError extends Error {
|
|
2
|
+
readonly browserInfo: {
|
|
3
|
+
userAgent: string;
|
|
4
|
+
platform: string;
|
|
5
|
+
vendor: string;
|
|
6
|
+
browser: string;
|
|
7
|
+
version: string;
|
|
8
|
+
os: string;
|
|
9
|
+
osVersion: string;
|
|
10
|
+
};
|
|
11
|
+
constructor(baseMessage: string, userAgent: string, platform: string, vendor: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './getFileTypeFromUri/getFileTypeFromUri';
|
|
2
|
+
export * from './isFileTypeSupported/isFileTypeSupported';
|
|
3
|
+
export * from './findSceneRecursive/findSceneRecursive';
|
|
4
|
+
export * from './getObjectDelta/getObjectDelta';
|
|
5
|
+
export * from './isInterface/implementsInterface';
|
|
6
|
+
export * from './findInterface/findInterface';
|
|
7
|
+
export * from './applyMixins/applyMixins';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileType } from '../../types/file/FileTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a file extension is supported
|
|
4
|
+
* @param extension The file extension to check
|
|
5
|
+
* @returns True if the extension is supported, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare function isFileTypeSupported(extension: string): extension is FileType;
|
package/build/src/info/Info.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare class SystemInfo {
|
|
|
29
29
|
* (Chrome, Firefox, etc.) do not support ARQuickLook, even on iOS.
|
|
30
30
|
*
|
|
31
31
|
* @returns boolean indicating if ARQuickLook is supported
|
|
32
|
+
* @throws ARCompatibilityError if ARQuickLook is not supported, with detailed browser information
|
|
32
33
|
*/
|
|
33
34
|
static GetSupportsARQuickLook(): boolean;
|
|
34
35
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const FILE_TYPES: {
|
|
1
|
+
export declare const FILE_TYPES: {
|
|
2
2
|
readonly glb: {
|
|
3
3
|
readonly key: "glb";
|
|
4
4
|
readonly extension: "glb";
|
|
@@ -14,4 +14,3 @@ declare const FILE_TYPES: {
|
|
|
14
14
|
};
|
|
15
15
|
export type FileType = keyof typeof FILE_TYPES;
|
|
16
16
|
export declare const SUPPORTED_FILE_TYPES: readonly string[];
|
|
17
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare class ConversionError extends Error {
|
|
2
|
-
readonly cause?: unknown | undefined;
|
|
3
|
-
constructor(message: string, cause?: unknown | undefined);
|
|
4
|
-
}
|
|
5
|
-
export declare class FileTypeError extends Error {
|
|
6
|
-
constructor(message: string);
|
|
7
|
-
}
|
|
8
|
-
export declare class NetworkError extends Error {
|
|
9
|
-
readonly url: string;
|
|
10
|
-
readonly cause?: unknown | undefined;
|
|
11
|
-
constructor(url: string, message: string, cause?: unknown | undefined);
|
|
12
|
-
}
|
|
File without changes
|