gltf-parser-plugin 1.1.6 → 1.1.7

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/index.d.ts CHANGED
@@ -158,11 +158,11 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
158
158
  /**
159
159
  * Hide the corresponding part of the original mesh according to the OID array
160
160
  */
161
- hideByOids(oids: number[]): void;
161
+ hidePartsByOids(oids: number[]): void;
162
162
  /**
163
163
  * Restore the display of the corresponding mesh according to the OID array
164
164
  */
165
- unhideByOids(oids: number[]): void;
165
+ showPartsByOids(oids: number[]): void;
166
166
  /**
167
167
  * 根据 oid 数组设置构件颜色
168
168
  * 隐藏原 mesh,将 split mesh 替换材质后加入场景(使用 tiles.group)
@@ -172,7 +172,7 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
172
172
  setPartColorByOids(oids: number[], color: ColorInput): void;
173
173
  /**
174
174
  * 恢复指定构件的颜色
175
- * 从场景移除 split mesh,unhide mesh
175
+ * 从场景移除 split mesh,恢复原 mesh 显示
176
176
  * @param oids 构件 OID 数组
177
177
  */
178
178
  restorePartColorByOids(oids: number[]): void;
@@ -215,10 +215,22 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
215
215
  * 清除所有线框显示构件
216
216
  */
217
217
  clearAllFrameParts(): void;
218
+ /**
219
+ * 设置指定构件的线框填充颜色
220
+ * @param oids 构件 OID 数组
221
+ * @param color 颜色值,支持 hex 数字、颜色字符串(如 "#ff0000")、THREE.Color 对象
222
+ */
223
+ setFrameFillColor(oids: number[], color: ColorInput): void;
224
+ /**
225
+ * 设置指定构件的线框边框颜色
226
+ * @param oids 构件 OID 数组
227
+ * @param color 颜色值,支持 hex 数字、颜色字符串(如 "#ff0000")、THREE.Color 对象
228
+ */
229
+ setFrameEdgeColor(oids: number[], color: ColorInput): void;
218
230
  /**
219
231
  * Restore the original materials of the mesh
220
232
  */
221
- unhide(): void;
233
+ showAllParts(): void;
222
234
  /**
223
235
  * Get the current feature ID count
224
236
  */
@@ -234,7 +246,7 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
234
246
  */
235
247
  export declare interface GLTFParserPluginOptions {
236
248
  /**
237
- * WebGLRenderer instance, required for mesh helper features (hideByOids, etc.)
249
+ * WebGLRenderer instance, required for mesh helper features (hidePartsByOids, etc.)
238
250
  */
239
251
  renderer?: WebGLRenderer;
240
252
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gltf-parser-plugin",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "A plugin for parsing GLTF files",
5
5
  "type": "module",
6
6
  "main": "./build/gltf-parser-plugin.module.js",