Files
SkinCamera/unpackage/cache/.app-android/sourcemap/index.kt.map
T
2026-03-12 21:13:07 +08:00

1 line
14 KiB
Plaintext

{"version":3,"sources":["App.uvue","main.uts","uni_modules/Skin-cameraUTS/utssdk/interface.uts"],"sourcesContent":["<script lang=\"uts\">\r\n\r\n\tlet firstBackTime = 0\r\n\r\n\texport default {\r\n\t\tonLaunch() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t},\r\n\r\n\t\tonLastPageBackPress() {\r\n\t\t\tconsole.log('App LastPageBackPress')\r\n\t\t\tif (firstBackTime == 0) {\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: '再按一次退出应用',\r\n\t\t\t\t\tposition: 'bottom',\r\n\t\t\t\t})\r\n\t\t\t\tfirstBackTime = Date.now()\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tfirstBackTime = 0\r\n\t\t\t\t}, 2000)\r\n\t\t\t} else if (Date.now() - firstBackTime < 2000) {\r\n\t\t\t\tfirstBackTime = Date.now()\r\n\t\t\t\tuni.exit()\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonExit() {\r\n\t\t\tconsole.log('App Exit')\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t/*每个页面公共css */\r\n\t.uni-row {\r\n\t\tflex-direction: row;\r\n\t}\r\n\r\n\t.uni-column {\r\n\t\tflex-direction: column;\r\n\t}\r\n</style>","import App from './App.uvue'\r\n\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\nexport function main(app: IApp) {\n definePageRoutes();\n defineAppConfig();\n (createApp()['app'] as VueApp).mount(app, GenUniApp());\n}\n\nexport class UniAppConfig extends io.dcloud.uniapp.appframe.AppConfig {\n override name: string = \"SkinCamera\"\n override appid: string = \"__UNI__644401D\"\n override versionName: string = \"1.0.0\"\n override versionCode: string = \"100\"\n override uniCompilerVersion: string = \"4.87\"\n \n constructor() { super() }\n}\n\nimport GenPagesIndexIndexClass from './pages/index/index.uvue'\nfunction definePageRoutes() {\n__uniRoutes.push({ path: \"pages/index/index\", component: GenPagesIndexIndexClass, meta: { isQuit: true } as UniPageMeta, style: _uM([[\"navigationBarTitleText\",\"uni-app x\"]]) } as UniPageRoute)\n}\nconst __uniTabBar: Map<string, any | null> | null = null\nconst __uniLaunchPage: Map<string, any | null> = _uM([[\"url\",\"pages/index/index\"],[\"style\",_uM([[\"navigationBarTitleText\",\"uni-app x\"]])]])\nfunction defineAppConfig(){\n __uniConfig.entryPagePath = '/pages/index/index'\n __uniConfig.globalStyle = _uM([[\"navigationBarTextStyle\",\"black\"],[\"navigationBarTitleText\",\"uni-app x\"],[\"navigationBarBackgroundColor\",\"#F8F8F8\"],[\"backgroundColor\",\"#F8F8F8\"]])\n __uniConfig.getTabBarConfig = ():Map<string, any> | null => null\n __uniConfig.tabBar = __uniConfig.getTabBarConfig()\n __uniConfig.conditionUrl = ''\n __uniConfig.uniIdRouter = _uM()\n \n __uniConfig.ready = true\n}\n","export type GeneralCallbackResult = {\r\n\t/** 错误信息 */\r\n\terrMsg : string\r\n}\r\nexport type TakePhotoSuccessCallbackResult = {\r\n\t/** 照片文件的临时路径 (本地路径),安卓是jpg图片格式,ios是png */\r\n\ttempImagePath : string\r\n\tquality : string\r\n\terrMsg : string\r\n}\r\n/** 接口调用失败的回调函数 */\r\nexport type TakePhotoFailCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用成功的回调函数 */\r\nexport type TakePhotoSuccessCallback = (\r\n\tresult : TakePhotoSuccessCallbackResult\r\n) => void\r\n\r\n/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\nexport type TakePhotoCompleteCallback = (res : GeneralCallbackResult) => void\r\n\r\nexport type TakePhotoOption = {\r\n\t/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\n\tcomplete ?: TakePhotoCompleteCallback\r\n\t/** 接口调用失败的回调函数 */\r\n\tfail ?: TakePhotoFailCallback\r\n\t/** 成像质量\r\n\t *\r\n\t * 可选值:\r\n\t * - 'high': 高质量;\r\n\t * - 'normal': 普通质量;\r\n\t * - 'low': 低质量;\r\n\t * - 'original': 原图; */\r\n\tquality ?: 'high' | 'normal' | 'low' | 'original'\r\n\t/** \r\n\t * 是否开启镜像 */\r\n\tselfieMirror ?: boolean\r\n\t/** 接口调用成功的回调函数 */\r\n\tsuccess ?: TakePhotoSuccessCallback\r\n}\r\n\r\n\r\nexport type SetZoomSuccessCallbackResult = {\r\n\t/** 实际设置的缩放级别。由于系统限制,某些机型可能无法设置成指定值,会改用最接近的可设值。 */\r\n\tzoom : number\r\n\terrMsg : string\r\n}\r\n/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\nexport type SetZoomCompleteCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用失败的回调函数 */\r\nexport type SetZoomFailCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用成功的回调函数 */\r\nexport type CameraContextSetZoomSuccessCallback = (\r\n\tresult : SetZoomSuccessCallbackResult\r\n) => void\r\n\r\nexport type CameraContextSetZoomOption = {\r\n\t/** 缩放级别,范围[1, maxZoom]。zoom 可取小数,精确到小数后一位。maxZoom 可在 bindinitdone 返回值中获取。 */\r\n\tzoom : number\r\n\t/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\n\tcomplete ?: SetZoomCompleteCallback\r\n\t/** 接口调用失败的回调函数 */\r\n\tfail ?: SetZoomFailCallback\r\n\t/** 接口调用成功的回调函数 */\r\n\tsuccess ?: CameraContextSetZoomSuccessCallback\r\n}\r\n\r\nexport type StartRecordTimeoutCallbackResult = {\r\n\t/** 视频的文件的临时路径 (本地路径) */\r\n\ttempVideoPath : string\r\n}\r\n\r\n/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\nexport type StartRecordCompleteCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用失败的回调函数 */\r\nexport type StartRecordFailCallback = (res : GeneralCallbackResult) => void\r\n/** 超过录制时长上限时会结束录像并触发此回调,录像异常退出时也会触发此回调 */\r\nexport type StartRecordTimeoutCallback = (\r\n\tresult : StartRecordTimeoutCallbackResult\r\n) => void\r\n/** 接口调用成功的回调函数 */\r\nexport type CameraContextStartRecordSuccessCallback = (\r\n\tres : GeneralCallbackResult\r\n) => void\r\nexport type CameraContextStartRecordOption = {\r\n\t/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\n\tcomplete ?: StartRecordCompleteCallback\r\n\t/** 接口调用失败的回调函数 */\r\n\tfail ?: StartRecordFailCallback\r\n\t/** \r\n\t * 是否开启镜像 */\r\n\tselfieMirror ?: boolean\r\n\t/** 接口调用成功的回调函数 */\r\n\tsuccess ?: CameraContextStartRecordSuccessCallback\r\n\t/** \r\n\t * 录制时长上限,单位为秒,最长不能超过 5 分钟 */\r\n\ttimeout ?: number\r\n\t/** 超过录制时长上限时会结束录像并触发此回调,录像异常退出时也会触发此回调 */\r\n\ttimeoutCallback ?: StartRecordTimeoutCallback\r\n}\r\n\r\nexport type StopRecordSuccessCallbackResult = {\r\n\t/** 视频的文件的临时路径 (本地路径) */\r\n\ttempVideoPath : string\r\n\terrMsg : string\r\n}\r\n/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\nexport type StopRecordCompleteCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用失败的回调函数 */\r\nexport type StopRecordFailCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用成功的回调函数 */\r\nexport type CameraContextStopRecordSuccessCallback = (\r\n\tresult : StopRecordSuccessCallbackResult\r\n) => void\r\nexport type CameraContextStopRecordOption = {\r\n\t/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\n\tcomplete ?: StopRecordCompleteCallback\r\n\t/** 启动视频压缩,压缩效果同`chooseVideo` */\r\n\tcompressed ?: boolean\r\n\t/** 接口调用失败的回调函数 */\r\n\tfail ?: StopRecordFailCallback\r\n\t/** 接口调用成功的回调函数 */\r\n\tsuccess ?: CameraContextStopRecordSuccessCallback\r\n}\r\n\r\n/** 回调函数 */\r\nexport type OnCameraFrameCallback = (result : OnCameraFrameCallbackResult) => void\r\nexport type OnCameraFrameCallbackResult = {\r\n\t/** 图像像素点数据,一维数组,每四项表示一个像素点的 rgba */\r\n\tdata : any\r\n\t/** 图像数据矩形的高度 */\r\n\theight : number\r\n\t/** 图像数据矩形的宽度 */\r\n\twidth : number\r\n}\r\n/** 接口调用成功的回调函数 */\r\nexport type StartSuccessCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用失败的回调函数 */\r\ntype StartFailCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\ntype StartCompleteCallback = (res : GeneralCallbackResult) => void\r\nexport type CameraFrameListenerStartOption = {\r\n\t/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\n\tcomplete ?: StartCompleteCallback\r\n\t/** 接口调用失败的回调函数 */\r\n\tfail ?: StartFailCallback\r\n\t/** 接口调用成功的回调函数 */\r\n\tsuccess ?: StartSuccessCallback\r\n\t/** [Worker](https://developers.weixin.qq.com/miniprogram/dev/api/worker/Worker.html)\r\n\t *\r\n\t * 可选参数。如果需要在 iOS ExperimentalWorker 内监听摄像头帧数据,则需要传入对应 Worker 对象。详情 [Worker.getCameraFrameData](https://developers.weixin.qq.com/miniprogram/dev/api/worker/Worker.getCameraFrameData.html) */\r\n\t// worker ?: Worker\r\n}\r\n\r\n\r\n/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\nexport type StopCompleteCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用失败的回调函数 */\r\nexport type StopFailCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用成功的回调函数 */\r\nexport type StopSuccessCallback = (res : GeneralCallbackResult) => void\r\nexport type StopOption = {\r\n\t/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\n\tcomplete ?: StopCompleteCallback\r\n\t/** 接口调用失败的回调函数 */\r\n\tfail ?: StopFailCallback\r\n\t/** 接口调用成功的回调函数 */\r\n\tsuccess ?: StopSuccessCallback\r\n}\r\n\r\nexport type FlashMode = 'auto' | 'on' | 'off' | 'torch'\r\nexport type DevicePosition = 'back' | 'front'\r\nexport type Resolution = 'low' | 'medium' | 'high'\r\nexport type FrameSize = 'medium' | 'small' | 'large'\r\nexport type QualityType = 'high' | 'normal' | 'low' | 'original'\r\n\r\n\r\nexport type CameraConfig = {\r\n\tflash ?: FlashMode\r\n\tdevicePosition ?: DevicePosition\r\n\tresolution ?: Resolution\r\n\tframeSize ?: FrameSize\r\n}\r\n\r\n//////////////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\nexport type SwitchCompleteCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用失败的回调函数 */\r\nexport type SwitchFailCallback = (res : GeneralCallbackResult) => void\r\n/** 接口调用成功的回调函数 */\r\nexport type SwitchSuccessCallback = (res : GeneralCallbackResult) => void\r\nexport type SwitchOption = {\r\n\tposition : DevicePosition\r\n\t/** 接口调用结束的回调函数(调用成功、失败都会执行) */\r\n\tcomplete ?: SwitchCompleteCallback\r\n\t/** 接口调用失败的回调函数 */\r\n\tfail ?: SwitchFailCallback\r\n\t/** 接口调用成功的回调函数 */\r\n\tsuccess ?: SwitchSuccessCallback\r\n}\r\n\r\n//////////////////////////////////////////////////////////////////////////////////////////////////\r\nexport type OnCameraFrameListenerOption = {\r\n\tsuccess ?: OnCameraFrameCallback\r\n}\r\n\r\nexport type TakePhoto = (options : TakePhotoOption) => void\r\nexport type SetZoom = (options : CameraContextSetZoomOption) => void\r\nexport type StartRecord = (options : CameraContextStartRecordOption) => void\r\nexport type StopRecord = (options : CameraContextStopRecordOption) => void\r\nexport type OnCameraFrameListener = (options : OnCameraFrameListenerOption) => void\r\nexport type StartCameraFrame = (options : CameraFrameListenerStartOption) => void\r\nexport type StopCameraFrame = (options : StopOption) => void\r\nexport type SwitchCamera = (options : SwitchOption) => void"],"names":[],"mappings":";;;;;;;;;;;;;;+BA4BQ,QAAA;+BAVA,aAAA;;;;;;AAhBP,IAAI,wBAAgB,CAAA;AAEf;;iBACJ,wBAAQ;YACP,QAAQ,GAAG,CAAC,cAAY;QACzB;;kBACA,sBAAM;YACL,QAAQ,GAAG,CAAC,YAAU;QACvB;;kBACA,MAAM;YACL,QAAQ,GAAG,CAAC,YAAU;QACvB;;4BAEA,MAAmB;YAClB,QAAQ,GAAG,CAAC,yBAAuB;YACnC,IAAI,cAAY,EAAA,CAAK,CAAC,EAAE;gBACnB,+BACH,QAAO,YACP,WAAU;gBAEX,gBAAgB,KAAK,GAAG;gBACxB,WAAW,KAAI;oBACd,gBAAgB,CAAA;gBACjB,GAAG,IAAI;cACD,IAGP,CAHO,IAAI,KAAK,GAAG,GAAC,CAAA,CAAI,cAAY,CAAA,CAAI,IAAI,EAAE;gBAC7C,gBAAgB,KAAK,GAAG;gBACpB;;QAEN;;eAEA,MAAM;YACL,QAAQ,GAAG,CAAC,YAAU;QACvB;;;;;;;;;;;;;;AACD;;;;;;;;;;;;;;;AChCK,IAAU,aAAS,cAAA;IACxB,IAAM,MAAM;IACZ,OAAO,IACN,SAAA;AAEF;AACM,IAAU,KAAK,KAAK,IAAI,EAAA;IAC1B;IACA;IACA,CAAC,WAAW,CAAC,MAAM,CAAA,EAAA,CAAI,MAAM,EAAE,KAAK,CAAC,KAAK;AAC9C;AAEM,WAAO,eAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS;IACjE,aAAS,MAAM,MAAM,GAAG,YAAY;IACpC,aAAS,OAAO,MAAM,GAAG,gBAAgB;IACzC,aAAS,aAAa,MAAM,GAAG,OAAO;IACtC,aAAS,aAAa,MAAM,GAAG,KAAK;IACpC,aAAS,oBAAoB,MAAM,GAAG,MAAM;IAE5C,gBAAgB,KAAK,GAArB,CAAwB;;AAI5B,IAAS,mBAAgB;IACzB,YAAY,IAAI,CAAmK,aAAhK,OAAM,qBAAqB,qCAAoC,OAA0B,YAAlB,SAAQ,IAAI,GAAmB,QAAO,IAAM,4BAAyB;AAC/J;AAEA,IAAM,iBAAiB,IAAI,MAAM,EAAE,GAAG,KAAW,IAAM,SAAM,qBAAsB,WAAQ,IAAM,4BAAyB;AAC1H,IAAS,kBAAe;IACtB,YAAY,aAAa,GAAG;IAC5B,YAAY,WAAW,GAAG,IAAM,4BAAyB,SAAU,4BAAyB,aAAc,kCAA+B,WAAY,qBAAkB;IACvK,YAAY,eAAe,GAAG,OAAG,IAAI,MAAM,EAAE,GAAG;eAAa,IAAI;;IACjE,YAAY,MAAM,GAAG,YAAY,eAAe;IAChD,YAAY,YAAY,GAAG;IAC3B,YAAY,WAAW,GAAG;IAE1B,YAAY,KAAK,GAAG,IAAI;AAC1B;;;;8BCxCA,EAAE;;;;8BAAF,EAAE;;;;uBAAF,EAAE"}