@qy_better_lib/hooks 0.2.9 → 0.2.11

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.
@@ -0,0 +1,11 @@
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
2
+ import { ModelLoader } from './type';
3
+ /**
4
+ * 加载GLTF模型
5
+ * @param url 模型路径
6
+ * @param loaders 加载器
7
+ * @param cache 是否缓存
8
+ * @param store indexedDB仓库
9
+ * @returns
10
+ */
11
+ export declare function GLTFloadAsync(path: string, loaders: ModelLoader, cache: boolean, store?: any): Promise<GLTF>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qy_better_lib/hooks",
3
3
  "private": false,
4
- "version": "0.2.9",
4
+ "version": "0.2.11",
5
5
  "description": "qy better lib hooks",
6
6
  "author": "luhuiming",
7
7
  "license": "MIT",
@@ -52,6 +52,10 @@
52
52
  "./use-mqtt": {
53
53
  "import": "./lib/use-mqtt/index.mjs",
54
54
  "types": "./lib/use-mqtt/index.d.ts"
55
+ },
56
+ "./use-three": {
57
+ "import": "./lib/use-three/index.mjs",
58
+ "types": "./lib/use-three/index.d.ts"
55
59
  }
56
60
  },
57
61
  "devDependencies": {
@@ -59,11 +63,13 @@
59
63
  "@qy_better_lib/core": "^0.2.8",
60
64
  "@types/dagre": "^0.7.53",
61
65
  "@types/node": "^24.5.2",
66
+ "@types/three": "^0.182.0",
62
67
  "@vitejs/plugin-vue": "^6.0.1",
63
68
  "dagre": "^0.8.5",
64
69
  "echarts": "5.6.0",
65
70
  "mitt": "^3.0.1",
66
71
  "mqtt": "^5.14.1",
72
+ "three": "^0.182.0",
67
73
  "vite": "^7.1.7",
68
74
  "vite-plugin-dts": "^4.5.4",
69
75
  "vitest": "^4.0.18",
@@ -76,6 +82,7 @@
76
82
  "echarts": "5.6.0",
77
83
  "mitt": "^3.0.1",
78
84
  "mqtt": "^5.14.1",
85
+ "three": "^0.182.0",
79
86
  "vue": "^3.5.22"
80
87
  },
81
88
  "peerDependenciesMeta": {
@@ -94,6 +101,9 @@
94
101
  "mqtt": {
95
102
  "optional": true
96
103
  },
104
+ "three": {
105
+ "optional": true
106
+ },
97
107
  "@qy_better_lib/core": {
98
108
  "optional": false
99
109
  }