aircitytype 1.0.20 → 1.0.22

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 +5 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -460,7 +460,7 @@ type RadiationPointData = {
460
460
  autoHeight?: boolean; //自动判断下方是否有物体,设置正确高度,默认值:false
461
461
  };
462
462
 
463
- type CustomObjectParams = {
463
+ type CustomObjectType = {
464
464
  id: string; //自定义对象唯一标识
465
465
  pakFilePath: string; //pak文件路径
466
466
  assetPath: string; //资源目录,自定义对象在pak文件资源包里的相对路径
@@ -473,7 +473,7 @@ type CustomObjectParams = {
473
473
  UserData?: string; //
474
474
  };
475
475
 
476
- interface CustomObjectParam {
476
+ interface CustomObjectBPParam {
477
477
  id: string;
478
478
  functionName: string
479
479
  parameters: { [key: string]: string | number | any[] }[],
@@ -483,7 +483,7 @@ interface CustomObject {
483
483
  delete: any;
484
484
  focus(id: string, t?: number): void;
485
485
  startMove(id: string, v: number, t: any[]): void;
486
- add(p: CustomObjectParams | CustomObjectParams[]): void;
486
+ add(p: CustomObjectType | CustomObjectType[]): void;
487
487
  focus(p: string, a: number, c: number): Promise<void>;
488
488
  clear(): void;
489
489
  coordinateType: number;
@@ -505,8 +505,8 @@ interface CustomObject {
505
505
  resultMessage: string;
506
506
  timestamp: number;
507
507
  }>;
508
- callBatchBPFunction(v: CustomObjectParam | CustomObjectParam[]): void;
509
- setLocation(id: string | string[], arr: number[], smoothTime: number): void;
508
+ callBatchBPFunction(v: CustomObjectBPParam | CustomObjectBPParam[]): void;
509
+ setLocation(id: string | string[], arr: number[], smoothTime?: number): void;
510
510
  show(ids: string[] | string, fn?: () => void): void;
511
511
  hide(ids: string[] | string, fn?: () => void): void;
512
512
  restoreMaterial(ids: string | string[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {