From 20b24dab58c7a21166a160ca409f2560d004d8e4 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 29 Oct 2024 10:14:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(ar):=20=E4=BF=AE=E5=A4=8D=20threejs-minipro?= =?UTF-8?q?gram=20=E5=AF=BC=E5=85=A5=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将所有 AR 相关行为文件中的 threejs-miniprogram 导入路径从相对路径 './threejs-miniprogram' 修改为模块路径 'threejs-miniprogram',确保导入路径的正确性。 影响文件: - body-detect - cameraBuffer-detect - depth-detect - face-detect 等20个 AR 功能模块的 behavior.js 文件 --- miniprogram/packageAPI/pages/ar/body-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/cameraBuffer-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/depth-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/face-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/hand-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/ocr-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/osd-ar/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/photo-body-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/photo-depth-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/photo-face-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/photo-hand-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/photo-ocr-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/photo-shoe-detect/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/plane-ar-3dof/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/plane-ar-v2-depth/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/plane-ar-v2-marker/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/plane-ar-v2/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/plane-ar/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/visionkit-basic-v2/behavior.js | 2 +- miniprogram/packageAPI/pages/ar/visionkit-basic/behavior.js | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/miniprogram/packageAPI/pages/ar/body-detect/behavior.js b/miniprogram/packageAPI/pages/ar/body-detect/behavior.js index e1d09e9e..285e40db 100644 --- a/miniprogram/packageAPI/pages/ar/body-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/body-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/cameraBuffer-detect/behavior.js b/miniprogram/packageAPI/pages/ar/cameraBuffer-detect/behavior.js index 470142f8..eca52713 100644 --- a/miniprogram/packageAPI/pages/ar/cameraBuffer-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/cameraBuffer-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/depth-detect/behavior.js b/miniprogram/packageAPI/pages/ar/depth-detect/behavior.js index 4a24a696..3434e327 100644 --- a/miniprogram/packageAPI/pages/ar/depth-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/depth-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/face-detect/behavior.js b/miniprogram/packageAPI/pages/ar/face-detect/behavior.js index 8b66a6cb..28429278 100644 --- a/miniprogram/packageAPI/pages/ar/face-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/face-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/hand-detect/behavior.js b/miniprogram/packageAPI/pages/ar/hand-detect/behavior.js index d5601218..9e785038 100644 --- a/miniprogram/packageAPI/pages/ar/hand-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/hand-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/ocr-detect/behavior.js b/miniprogram/packageAPI/pages/ar/ocr-detect/behavior.js index 08238e25..7d631251 100644 --- a/miniprogram/packageAPI/pages/ar/ocr-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/ocr-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/osd-ar/behavior.js b/miniprogram/packageAPI/pages/ar/osd-ar/behavior.js index a4eeacfc..d1eac79e 100644 --- a/miniprogram/packageAPI/pages/ar/osd-ar/behavior.js +++ b/miniprogram/packageAPI/pages/ar/osd-ar/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/photo-body-detect/behavior.js b/miniprogram/packageAPI/pages/ar/photo-body-detect/behavior.js index b5dde3e3..df9dee8a 100644 --- a/miniprogram/packageAPI/pages/ar/photo-body-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/photo-body-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/photo-depth-detect/behavior.js b/miniprogram/packageAPI/pages/ar/photo-depth-detect/behavior.js index d5b516cb..ba5c1304 100644 --- a/miniprogram/packageAPI/pages/ar/photo-depth-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/photo-depth-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/photo-face-detect/behavior.js b/miniprogram/packageAPI/pages/ar/photo-face-detect/behavior.js index 89569428..a96920eb 100644 --- a/miniprogram/packageAPI/pages/ar/photo-face-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/photo-face-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/photo-hand-detect/behavior.js b/miniprogram/packageAPI/pages/ar/photo-hand-detect/behavior.js index a47c0bdf..060cc800 100644 --- a/miniprogram/packageAPI/pages/ar/photo-hand-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/photo-hand-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/photo-ocr-detect/behavior.js b/miniprogram/packageAPI/pages/ar/photo-ocr-detect/behavior.js index 64ab7c3f..958b56b0 100644 --- a/miniprogram/packageAPI/pages/ar/photo-ocr-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/photo-ocr-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/photo-shoe-detect/behavior.js b/miniprogram/packageAPI/pages/ar/photo-shoe-detect/behavior.js index 105eeddc..77333fa1 100644 --- a/miniprogram/packageAPI/pages/ar/photo-shoe-detect/behavior.js +++ b/miniprogram/packageAPI/pages/ar/photo-shoe-detect/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/plane-ar-3dof/behavior.js b/miniprogram/packageAPI/pages/ar/plane-ar-3dof/behavior.js index ff5d3f1e..d1b5f711 100644 --- a/miniprogram/packageAPI/pages/ar/plane-ar-3dof/behavior.js +++ b/miniprogram/packageAPI/pages/ar/plane-ar-3dof/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/plane-ar-v2-depth/behavior.js b/miniprogram/packageAPI/pages/ar/plane-ar-v2-depth/behavior.js index c61dc394..e33058f7 100644 --- a/miniprogram/packageAPI/pages/ar/plane-ar-v2-depth/behavior.js +++ b/miniprogram/packageAPI/pages/ar/plane-ar-v2-depth/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/plane-ar-v2-marker/behavior.js b/miniprogram/packageAPI/pages/ar/plane-ar-v2-marker/behavior.js index 6627b04d..567469d4 100644 --- a/miniprogram/packageAPI/pages/ar/plane-ar-v2-marker/behavior.js +++ b/miniprogram/packageAPI/pages/ar/plane-ar-v2-marker/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/plane-ar-v2/behavior.js b/miniprogram/packageAPI/pages/ar/plane-ar-v2/behavior.js index 54375034..9502a2f9 100644 --- a/miniprogram/packageAPI/pages/ar/plane-ar-v2/behavior.js +++ b/miniprogram/packageAPI/pages/ar/plane-ar-v2/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/plane-ar/behavior.js b/miniprogram/packageAPI/pages/ar/plane-ar/behavior.js index 6225f46c..8f37bf26 100644 --- a/miniprogram/packageAPI/pages/ar/plane-ar/behavior.js +++ b/miniprogram/packageAPI/pages/ar/plane-ar/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/visionkit-basic-v2/behavior.js b/miniprogram/packageAPI/pages/ar/visionkit-basic-v2/behavior.js index 5727b637..845b70d2 100644 --- a/miniprogram/packageAPI/pages/ar/visionkit-basic-v2/behavior.js +++ b/miniprogram/packageAPI/pages/ar/visionkit-basic-v2/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader' diff --git a/miniprogram/packageAPI/pages/ar/visionkit-basic/behavior.js b/miniprogram/packageAPI/pages/ar/visionkit-basic/behavior.js index d2f0ea1d..c4c2e9b2 100644 --- a/miniprogram/packageAPI/pages/ar/visionkit-basic/behavior.js +++ b/miniprogram/packageAPI/pages/ar/visionkit-basic/behavior.js @@ -1,6 +1,6 @@ import { createScopedThreejs -} from './threejs-miniprogram' +} from 'threejs-miniprogram' import { registerGLTFLoader } from '../loaders/gltf-loader'