aircitytype 1.1.12 → 1.1.15

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/aircity/index.d.ts +21 -1
  2. package/package.json +2 -2
@@ -379,6 +379,7 @@ interface Polygon {
379
379
 
380
380
  interface Polygon3D {
381
381
  add(data: any, fn?: () => void): void;
382
+ delete(ids: string[] | string, fn?: () => void): void;
382
383
  clear(): void;
383
384
  focus(id: string, v2?: number, v3?: number): void;
384
385
  }
@@ -552,6 +553,18 @@ interface CustomObject {
552
553
  hide(ids: string[] | string, fn?: () => void): void;
553
554
  restoreMaterial(ids: string | string[]): void;
554
555
  addByTileLayer(data: CustomTileLayer | CustomTileLayer[]): void;
556
+ unhighlight(id:string|string[]):void;
557
+
558
+
559
+ /** Name Type Description
560
+ ids string | array
561
+ CustomObject对象的ID或者数组
562
+ newColor Color
563
+ 新颜色值
564
+ fn function
565
+ 可选的回调函数,请参考二次开发:异步接口调用方式
566
+ */
567
+ setTintColor(ids:string|string[], newColor:string, fn?:()=>void):void;
555
568
 
556
569
  /**
557
570
  *
@@ -647,8 +660,15 @@ interface PolygonType {
647
660
  style?: number;
648
661
  userData?: string;
649
662
  depthTest?: boolean;
663
+ material?:string;
664
+ scalarParameters?:{ name: string, value: number }[];
665
+ vectorParameters?:{ name: string, value: number[] }[]
650
666
  }
651
667
 
668
+ declare enum PolygonStyle {
669
+ OnTerrain = 0,
670
+ }
671
+
652
672
  interface PolyLineType {
653
673
  id: string; //字符串类型的ID
654
674
  groupId?: string; //可选,Group分组
@@ -794,7 +814,7 @@ interface EditHelper {
794
814
  可选的回调函数,请参考二次开发:异步接口调用方式
795
815
  *
796
816
  */
797
- setParam(lineType: number, buildType: number, color: [number, number, number, number], fn?: () => void): void;
817
+ setParam(lineType: number, buildType: number, color: [number, number, number, number]|acapi.Color, fn?: () => void): void;
798
818
  start(fn?: () => void): void;
799
819
  }
800
820
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aircitytype",
3
- "description": "marker3d更新方法",
3
+ "description": "补齐PolyLineType",
4
4
  "scripts": {
5
5
  "test": "echo \"Error: no test specified\" && exit 1"
6
6
  },
@@ -17,5 +17,5 @@
17
17
  "dependencies": {
18
18
  "jsonc-parser": "^3.3.1"
19
19
  },
20
- "version": "1.1.12"
20
+ "version": "1.1.15"
21
21
  }