aircitytype 1.1.7 → 1.1.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.
- package/aircity/index.d.ts +59 -0
- package/package.json +2 -2
package/aircity/index.d.ts
CHANGED
@@ -494,10 +494,13 @@ type CustomObjectType = {
|
|
494
494
|
coordinateType?: number;
|
495
495
|
location?: number[]; //位置坐标
|
496
496
|
rotation?: [number, number, number]; //旋转
|
497
|
+
isEffectRotation?:boolean;
|
498
|
+
supportAttach?:boolean;
|
497
499
|
localRotation?: [number, number, number];
|
498
500
|
scale?: [number, number, number] | number[]; //缩放
|
499
501
|
smoothMotion?: number; //1: 平滑插值,0: 跳跃
|
500
502
|
UserData?: string; //
|
503
|
+
visible?:boolean;
|
501
504
|
};
|
502
505
|
|
503
506
|
interface CustomObjectBPParam {
|
@@ -583,6 +586,7 @@ type marker3dType = {
|
|
583
586
|
textLocation?: number[]; // 文字位置
|
584
587
|
textRotation?: number[]; // 文字旋转
|
585
588
|
textScale?: number[]; // 文字缩放
|
589
|
+
fixedSize?:boolean;
|
586
590
|
pointName?: string; //3D标注展示的特效名称
|
587
591
|
pointVisible?: boolean; //3D标注是否显示
|
588
592
|
pointScale?: number; //3D标注整体缩放比例
|
@@ -668,6 +672,20 @@ interface TileLayerType {
|
|
668
672
|
scale: [number, number, number] | number[];
|
669
673
|
}
|
670
674
|
|
675
|
+
interface VehicleData{
|
676
|
+
id :string //Vehicle对象的ID
|
677
|
+
groupId?:string //可选,Group分组
|
678
|
+
userData?:string //可选,用户自定义数据
|
679
|
+
assetPath:string //资源库车辆载具路径,类似CustomObject对象的assetPath,示例值:'/JC_CustomAssets/VehicleLibrary/Exhibition/SUV_01'
|
680
|
+
coordinate:number[] //载具初始位置坐标:[X,Y,Z],取值示例,数组元素类型:(number),取值范围:[任意数值]
|
681
|
+
coordinateType?:number //可选,坐标系类型,取值:0为Projection类型,1为WGS84类型,默认值:0
|
682
|
+
autoHeight?:boolean //可选,是否自动计算载具行驶高度,默认值:true,注意:当设置为false时会使用载具坐标的高度Z
|
683
|
+
rotation?:number[] //可选,载具旋转,世界坐标系旋转:[Pitch,Yaw,Roll],数组元素类型:(number),取值范围:[任意数值],默认值:[0,0,0]
|
684
|
+
colorType?:number //可选,载具涂装颜色类型,取值范围:[0~任意正整数],默认值:0 随机使用涂装颜色,大于0则使用其他固定的涂装颜色。
|
685
|
+
localOffset?:number[] //可选,载具基于原始位置坐标的偏移量,默认值:[0,0,0]
|
686
|
+
supportAttach :boolean //是否支持贴画贴合,默认值:true
|
687
|
+
}
|
688
|
+
|
671
689
|
interface Marker {
|
672
690
|
clear(): void;
|
673
691
|
add(p: markType | markType[]): Promise<null>;
|
@@ -677,6 +695,11 @@ interface Marker {
|
|
677
695
|
showByGroupId(groupId: string, fn?: () => void): void;
|
678
696
|
hideByGroupId(groupId: string, fn?: () => void): void;
|
679
697
|
showPopupWindow(id:string):void;
|
698
|
+
setAttachCustomObject(obj:{
|
699
|
+
markerId: string,
|
700
|
+
objectId: string,
|
701
|
+
offset: number[],
|
702
|
+
}):void;
|
680
703
|
focus(id: string, o1?: number, o2?: number, rotation?: number[]): any;
|
681
704
|
show(ids: string[] | string, fn?: () => void): void;
|
682
705
|
hide(ids: string[] | string, fn?: () => void): void;
|
@@ -691,6 +714,7 @@ interface Marker {
|
|
691
714
|
interface Marker3D {
|
692
715
|
clear(): void;
|
693
716
|
add(p: marker3dType | marker3dType[]): Promise<null>;
|
717
|
+
update(p: marker3dType | marker3dType[]): Promise<null>;
|
694
718
|
/**
|
695
719
|
* o1 distance
|
696
720
|
* o2 flytime
|
@@ -703,8 +727,43 @@ interface Marker3D {
|
|
703
727
|
hideByGroupId(id: string): void;
|
704
728
|
}
|
705
729
|
|
730
|
+
/**
|
731
|
+
*
|
732
|
+
*/
|
733
|
+
type VehicleBatch = {
|
734
|
+
id:string // Vehicle对象的ID
|
735
|
+
functionName:string // 蓝图函数名
|
736
|
+
parameters:{"paramType":string|number,"paramValue":string|number|number[]}[] //蓝图函数包含的多个参数结构,可选参数,数组类型,注意:传入多参数的顺序与类型务必与蓝图函数的参数顺序及其参数类型一致以保证执行结果符合预期。多个参数结构示例:[{"paramType":BPFuncParamType.String,"paramValue":"示例值"},{"paramType":BPFuncParamType.Bool,"paramValue":false},{"paramType":BPFuncParamType.Float,"paramValue":100.8}]
|
737
|
+
}
|
738
|
+
|
706
739
|
interface Vehicle {
|
707
740
|
delete(id: string): void;
|
741
|
+
add(data:VehicleData|VehicleData[], fn?:()=>void):void;
|
742
|
+
callBatchFunction(data:VehicleBatch|VehicleBatch[], fn?:()=>void):void;
|
743
|
+
clear(fn?:()=>void):void;
|
744
|
+
delete(ids:string|string[], fn?:()=>void):void;
|
745
|
+
focus(ids:string|string[], followEnable?:boolean, distance?:number, flyTime?:number, rotation?:number[], distanceRotation?:number[], fn?:()=>void):void;
|
746
|
+
get(ids:string|string[], fn?:()=>void):void;
|
747
|
+
hide(ids:string|string[], fn?:()=>void):void;
|
748
|
+
moveTo(data, fn?:()=>void):void;
|
749
|
+
pause(ids:string|string[], fn?:()=>void):void;
|
750
|
+
resume(id:string, fn?:()=>void):void;
|
751
|
+
setWayPoint(data, fn?:()=>void):void;
|
752
|
+
show(ids:string|string[], fn?:()=>void):void;
|
753
|
+
/**
|
754
|
+
*
|
755
|
+
* @param data [
|
756
|
+
{"id":"vc1","timeStamp":1},
|
757
|
+
{"id":"vc2","timeStamp":5},
|
758
|
+
{"id":"vc3","timeStamp":7}
|
759
|
+
]
|
760
|
+
* @param fn
|
761
|
+
*/
|
762
|
+
start(data:{"id":string,"timeStamp":number}[], fn?:()=>void):void; //以下参数表示三辆载具开始运动,v1第一秒开始运动,v2第五秒开始运动,v3第七秒开始运动
|
763
|
+
stop(ids:string|string[], fn?:()=>void):void;
|
764
|
+
update(data:VehicleData|VehicleData[], fn?:()=>void):void;
|
765
|
+
updateBegin():void;
|
766
|
+
updateEnd(fn?:()=>void):void;
|
708
767
|
}
|
709
768
|
|
710
769
|
interface EditHelper {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aircitytype",
|
3
|
-
"description": "
|
3
|
+
"description": "marker3d更新方法",
|
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.
|
20
|
+
"version": "1.1.11"
|
21
21
|
}
|