aircitytype 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/index.d.ts +15 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -505,6 +505,21 @@ interface CustomObject {
505
505
  setLocation(id: string | string[], arr: [number, number, number]): void;
506
506
  show(ids: string[] | string, fn?: () => void): void;
507
507
  hide(ids: string[] | string, fn?: () => void): void;
508
+ restoreMaterial(ids: string | string[]): void;
509
+ /**
510
+ *
511
+ * data object | array
512
+ 替换CustomObject对象材质的详细信息,支持对象或数组,对于每一个对象支持以下属性:
513
+ id (string) 必选参数,CustomObject对象的ID
514
+ material (string) 可选参数,替换材质的文件路径,UE工程里材质文件对应资源的相对路径
515
+ scalarParameters (array) 可选参数,替换材质数值类型参数数组,包含name/value键值对的数组,其中value为数值
516
+ vectorParameters (array) 可选参数,替换材质矢量类型参数数组,包含name/value键值对的数组,其中value为数组
517
+
518
+ fn function
519
+ 可选的回调函数,请参考二次开发:异步接口调用方式
520
+ */
521
+
522
+ overrideMaterial(data: any, fn: () => void): void;
508
523
  }
509
524
 
510
525
  interface Heatmap {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {