tencentcloud-webar 2.0.3-dev.11 → 2.0.3-dev.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.
- package/build-esm/index.js +2 -2
- package/build-esm/lib-3d.js +1 -1
- package/build-esm/recorder.js +6 -0
- package/build-esm/sticker3d.js +1 -1
- package/build-esm/sticker3d.worker.js +1 -1
- package/build-umd/avatar.umd.js +1 -1
- package/build-umd/hand-3d.umd.js +1 -1
- package/build-umd/stickers-3d.umd.js +1 -1
- package/build-umd/webar-recorder.umd.js +6 -0
- package/build-umd/webar-sdk.umd.js +2 -2
- package/index.umd-main.ts +30 -0
- package/miniprogram_dist/index.js +1 -1
- package/miniprogram_dist/plugin-3d.js +1 -1
- package/miniprogram_dist/plugin-hand-3d.js +1 -1
- package/package.json +16 -2
- package/recorder.ts +24 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UMD 主包专用入口(webar-sdk.umd.js 用)。
|
|
3
|
+
*
|
|
4
|
+
* 与根 index.ts 几乎一致,只差一处:**不 export ArRecorderSdk**。
|
|
5
|
+
* 离线 mp4 处理走单独打包的 webar-recorder.umd.js(library 名 ArRecorder),
|
|
6
|
+
* 主 SDK 包不带它,避免被 mp4-muxer / mp4box / RecorderInput / RecorderOutput
|
|
7
|
+
* 等离线管线代码拖累体积。
|
|
8
|
+
*
|
|
9
|
+
* ESM 走根 index.ts(包含 ArRecorderSdk + tree-shake 处理)。
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* IFTRUE_platform_h5*/
|
|
13
|
+
import { QualityManager } from "src/utils/quality";
|
|
14
|
+
export { ArSdk } from "./src/h5";
|
|
15
|
+
export { isWebGLSupported, isWebGL2Supported } from "src/h5/utils";
|
|
16
|
+
export { checkWorkerAvailable as isWorkerAvailable } from "src/h5/impls/utils";
|
|
17
|
+
|
|
18
|
+
export const getGPULevel = () => {
|
|
19
|
+
return QualityManager.instance.gpu_detector.level;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/* FITRUE_platform_h5*/
|
|
23
|
+
/* IFTRUE_platform_wx
|
|
24
|
+
export { ArSdk, setRootPath } from './src/wx'
|
|
25
|
+
export { authorize } from './src/auth'
|
|
26
|
+
export { authorizeWxCamera } from "./src/wx/authorize";
|
|
27
|
+
FITRUE_platform_wx*/
|
|
28
|
+
export { EntryType, ENTRY_TYPES, OUTPUT_TYPES } from "./src/types/types";
|
|
29
|
+
export { INNER_BLEND_MODES as BLEND_MODES } from "./src/common/picture/shaders/shaders";
|
|
30
|
+
export { BeautifyOptions as BEAUTIFY_OPTIONS } from "./src/types/types";
|