From e45192486db00faf952787507f0df3e25cac0cc4 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期日, 24 十月 2021 12:36:26 +0800
Subject: [PATCH] add bug fix
---
lib/mars3d/mars3d.d.ts | 1338 ++++++++++++++++++++++++++++++++++-----------------------
1 files changed, 788 insertions(+), 550 deletions(-)
diff --git a/lib/mars3d/mars3d.d.ts b/lib/mars3d/mars3d.d.ts
index 562c20d..3c0ed85 100644
--- a/lib/mars3d/mars3d.d.ts
+++ b/lib/mars3d/mars3d.d.ts
@@ -1,3 +1,11 @@
+
+// /**
+// * Cesium搴�
+// */
+// declare namespace Cesium{
+
+// }
+
/**
* 鍥藉唴鍋忕Щ鍧愭爣绯� 鏋氫妇
*/
@@ -14,6 +22,36 @@
* 鐧惧害(BD09) 鍋忕Щ鍧愭爣绯�
*/
BAIDU = "BD09"
+}
+
+/**
+ * 瑁佸壀妯″瀷绫诲瀷
+ */
+declare const enum ClipType {
+ /**
+ * z姘村钩闈�, 鍒囧簳閮�
+ */
+ Z = 1,
+ /**
+ * z姘村钩闈紝鍒囬《閮�
+ */
+ ZR = 2,
+ /**
+ * x鍨傜洿闈�,鍒囪タ鍚�
+ */
+ X = 3,
+ /**
+ * x鍨傜洿闈�,鍒囦笢鍚�
+ */
+ XR = 4,
+ /**
+ * y鍨傜洿闈�, 鍒囧崡鍚�
+ */
+ Y = 5,
+ /**
+ * y鍨傜洿闈紝鍒囧寳鍚�
+ */
+ YR = 6
}
/**
@@ -154,6 +192,14 @@
* tooltip寮圭獥鍏抽棴
*/
tooltipClose = "tooltipClose",
+ /**
+ * highlight楂樹寒鍚�
+ */
+ highlightOpen = "highlightOpen",
+ /**
+ * highlight鍏抽棴鍚�
+ */
+ highlightClose = "highlightClose",
/**
* 宸﹂敭鍗曞嚮 榧犳爣浜嬩欢
*/
@@ -657,6 +703,7 @@
* 閫氱敤锛氬浘鐗� 鏉愯川2 (娌℃湁鍔犺浇瀹屾垚鍓嶇殑鐧借壊闂儊锛屼絾涔熶笉鏀寔绾櫧鑹茬殑鍥剧墖)
* @property image - 鍥剧墖瀵硅薄鎴栧浘鐗囧湴鍧�
* @property [opacity = 1.0] - 閫忔槑搴�
+ * @property [options.color = Cesium.Color.WHITE] - 棰滆壊
*/
const Image2: string;
/**
@@ -677,6 +724,7 @@
* @property [speed = 2] - 閫熷害锛屽�艰秺澶ц秺蹇�
* @property [percent = 0.04] - 姣斾緥
* @property [alpha = 0.1] - 閫忔槑绋嬪害 0.0-1.0
+ * @property [startTime = 0] - 寮�濮嬬殑鏃堕棿
*/
const LineFlowColor: string;
/**
@@ -831,6 +879,36 @@
}
/**
+ * 鐩告満鏃嬭浆鐨勭被鍨�
+ */
+declare const enum MoveType {
+ /**
+ * 鍚戝睆骞曚腑蹇冮潬杩�
+ */
+ ENLARGE = 0,
+ /**
+ * 鍚戝睆骞曚腑蹇冭繙绂�
+ */
+ NARROW = 1,
+ /**
+ * 鐩告満鍘熷湴宸︽棆杞�
+ */
+ LEFT_ROTATE = 2,
+ /**
+ * 鐩告満鍘熷湴鍙虫棆杞�
+ */
+ RIGHT_ROTATE = 3,
+ /**
+ * 鐩告満鍘熷湴涓婃棆杞�
+ */
+ TOP_ROTATE = 4,
+ /**
+ * 鐩告満鍘熷湴涓嬫棆杞�
+ */
+ BOTTOM_ROTATE = 5
+}
+
+/**
* 鐘舵�� 鏋氫妇
*/
declare const enum State {
@@ -952,7 +1030,7 @@
constructor(options: {
id?: string | number;
enabled?: boolean;
- insertIndex?: Int;
+ insertIndex?: number;
insertBefore?: HTMLElement;
});
/**
@@ -1187,7 +1265,7 @@
enabled?: boolean;
fps?: boolean;
latDecimal?: number;
- template?: Sring | Sring[];
+ template?: string | String[];
crs?: string | CRS;
crsDecimal?: number;
cacheTime?: number;
@@ -1210,14 +1288,14 @@
* @param [options.id = uuid()] - 瀵硅薄鐨刬d鏍囪瘑
* @param [options.enabled = true] - 瀵硅薄鐨勫惎鐢ㄧ姸鎬�
* @param [options.leftLayer] - 宸︿晶鍖哄煙鐡︾墖鍥惧眰
- * @param [options.leftLayer] - 鍙充晶鍖哄煙鐡︾墖鍥惧眰
+ * @param [options.rightLayer] - 鍙充晶鍖哄煙鐡︾墖鍥惧眰
*/
declare class MapSplit extends BaseControl {
constructor(options: {
id?: string | number;
enabled?: boolean;
leftLayer?: BaseTileLayer;
- leftLayer?: BaseTileLayer;
+ rightLayer?: BaseTileLayer;
});
/**
* 宸︿晶鍖哄煙鐡︾墖鍥惧眰
@@ -1445,6 +1523,14 @@
hasEventParent(obj: any): this;
}
+/**
+ * 杞崲options鍙傛暟澶勭悊鍩虹被
+ * @param options - 鍙傛暟鍚嶇О
+ */
+declare class BaseOptsConver {
+ constructor(options: any);
+}
+
declare namespace BaseThing {
/**
* 褰撳墠绫绘敮鎸佺殑{@link EventType}浜嬩欢绫诲瀷
@@ -1663,6 +1749,13 @@
*/
static parse(position: string | any[] | any | Cesium.Cartesian3 | any, time?: Cesium.JulianDate): LatLngPoint;
/**
+ * 鏍规嵁浼犲叆鐨勫悇绉嶅璞℃暟鎹紝杞崲杩斿洖Cartesian3瀵硅薄
+ * @param position - 鍧愭爣浣嶇疆
+ * @param [time = Cesium.JulianDate.now()] - Cesium鍧愭爣鏃讹紝getValue浼犲叆鐨勬椂闂村��
+ * @returns 杞崲杩斿洖鐨凜artesian3瀵硅薄
+ */
+ static parseCartesian3(position: string | any[] | any | Cesium.Cartesian3 | any, time?: Cesium.JulianDate): Cesium.Cartesian3;
+ /**
* 鏍规嵁鏁扮粍鏁版嵁锛岃浆鎹㈣繑鍥濴atLngPoint瀵硅薄
* 绀轰緥锛歔113.123456,31.123456,30.1]
* @param arr - 鍧愭爣浣嶇疆
@@ -1697,6 +1790,29 @@
* 楂樺害鐨勬牸寮忓寲鏃剁殑闀垮害锛岄粯璁や负1
*/
static FormatAltLength: number;
+}
+
+/**
+ * 灞�閮ㄥ潗鏍囩郴 涓� 涓栫晫鍧愭爣绯� 杞崲
+ * @param center - 灞�閮ㄥ潗鏍囩殑涓績鐐瑰搴旂殑涓栫晫鍧愭爣
+ * @param fixedFrameTransform - 灞�閮ㄥ潗鏍囩郴鐨勮酱鏂瑰悜
+ */
+declare class LocalWorldTransform {
+ constructor(center: Cesium.Cartesian3, fixedFrameTransform: Cesium.Transforms.LocalFrameToFixedFrame);
+ /**
+ * 灞�閮ㄥ潗鏍� 杞崲鎴愬搴旂殑 涓栫晫鍧愭爣
+ * @param localPoint - 灞�閮ㄥ潗鏍�
+ * @param result - 涓栫晫鍧愭爣
+ * @returns 涓栫晫鍧愭爣
+ */
+ localToWorld(localPoint: Cesium.Cartesian3, result: Cesium.Cartesian3): Cesium.Cartesian3;
+ /**
+ * 涓栫晫鍧愭爣 杞崲鎴愬搴旂殑 灞�閮ㄥ潗鏍�
+ * @param worldPoint - 涓栫晫鍧愭爣
+ * @param result - 灞�閮ㄥ潗鏍�
+ * @returns 灞�閮ㄥ潗鏍�
+ */
+ worldToLocal(worldPoint: Cesium.Cartesian3, result: Cesium.Cartesian3): Cesium.Cartesian3;
}
/**
@@ -1988,6 +2104,10 @@
*/
setOptions(options: any): this;
/**
+ * 楂樹寒瑙﹀彂鐨勪簨浠剁被鍨嬶紝榛樿涓哄崟鍑汇��
+ */
+ eventType: EventType;
+ /**
* 杞粨绾� 瀹藉害锛屽崟浣嶏細鍍忕礌px
*/
width: number;
@@ -2262,11 +2382,14 @@
*/
toJSON(): any;
/**
- * 鑾峰彇鐭㈤噺鏁版嵁浣嶇疆鐨� 鐭╁舰杈圭晫鍊�
- * @param [isFormat = true] - 鏄惁鏍煎紡鍖栵紝鏍煎紡鍖栨椂绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
+ * 鑾峰彇鏁版嵁鐨勭煩褰㈣竟鐣�
+ * @param [options] - 鎺у埗鍙傛暟
+ * @param [options.isFormat = false] - 鏄惁鏍煎紡鍖栵紝鏍煎紡鍖栨椂绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
* @returns isFormat锛歵rue鏃讹紝杩斿洖鏍煎紡鍖栧璞★紝isFormat锛歠alse鏃惰繑鍥濩esium.Rectangle瀵硅薄
*/
- getExtent(isFormat?: boolean): Cesium.Rectangle | any;
+ getRectangle(options?: {
+ isFormat?: boolean;
+ }): Cesium.Rectangle | any;
/**
* 椋炶瀹氫綅鑷� 鏁版嵁鎵�鍦ㄧ殑瑙嗚
* @param [options = {}] - 鍙傛暟瀵硅薄:
@@ -2300,7 +2423,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -2480,6 +2603,15 @@
*/
getPickedObject(pickId: string): any;
/**
+ * 鑾峰彇鏁版嵁鐨勭煩褰㈣竟鐣�
+ * @param [options] - 鎺у埗鍙傛暟
+ * @param [options.isFormat = false] - 鏄惁鏍煎紡鍖栵紝鏍煎紡鍖栨椂绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
+ * @returns isFormat锛歵rue鏃讹紝杩斿洖鏍煎紡鍖栧璞★紝isFormat锛歠alse鏃惰繑鍥濩esium.Rectangle瀵硅薄
+ */
+ getRectangle(options?: {
+ isFormat?: boolean;
+ }): Cesium.Rectangle | any;
+ /**
* 鏇存柊棰滆壊
* @param style - 鏍峰紡淇℃伅
* @param [style.color = "#3388ff"] - 棰滆壊
@@ -2603,7 +2735,7 @@
style?: ModelPrimitive.StyleOptions;
attr?: any;
}[];
- batchTable?: Cesium3DTileBatchTable;
+ batchTable?: Cesium.Cesium3DTileBatchTable;
requestType?: any;
gltf?: any | ArrayBuffer | Uint8Array;
basePath?: Cesium.Resource | string;
@@ -2612,8 +2744,8 @@
asynchronous?: boolean;
incrementallyLoadTextures?: boolean;
shadows?: Cesium.ShadowMode;
- imageBasedLightingFactor?: Cartesian2;
- lightColor?: Cartesian3;
+ imageBasedLightingFactor?: Cesium.Cartesian2;
+ lightColor?: Cesium.Cartesian3;
luminanceAtZenith?: number;
sphericalHarmonicCoefficients?: Cesium.Cartesian3[];
specularEnvironmentMaps?: string;
@@ -2622,7 +2754,7 @@
debugWireframe?: boolean;
startTime?: Cesium.JulianDate;
delay?: number;
- stopTime?: JulianDate;
+ stopTime?: Cesium.JulianDate;
removeOnStop?: boolean;
multiplier?: number;
reverse?: boolean;
@@ -2664,9 +2796,10 @@
/**
* 楂樹寒瀵硅薄銆�
* @param [highlightStyle] - 楂樹寒鐨勬牱寮忥紝鍏蜂綋瑙佸悇{@link GraphicType}鐭㈤噺鏁版嵁鐨剆tyle鍙傛暟銆�
+ * @param [closeLast = true] - 鏄惁娓呴櫎鍦板浘涓婁笂涓�娆$殑楂樹寒瀵硅薄
* @returns 鏃�
*/
- openHighlight(highlightStyle?: any): void;
+ openHighlight(highlightStyle?: any, closeLast?: boolean): void;
/**
* 娓呴櫎宸查�変腑鐨勯珮浜�
* @returns 鏃�
@@ -2779,10 +2912,14 @@
* @property [distanceDisplayCondition_far = 10000] - 鏈�澶ц窛绂�
* @property [distanceDisplayCondition_near = 0] - 鏈�灏忚窛绂�
* @property [clampToGround = false] - 鏄惁璐村湴
+ * @property [heightReference = Cesium.HeightReference.NONE] - 鎸囧畾楂樺害鐩稿浜庝粈涔堢殑灞炴�с��
* @property [css_transform_origin = 'left bottom 0'] - DIV鐨� transform-origin css鍊�
+ * @property [timeRender] - 鏄惁瀹炴椂鍒锋柊鍏ㄩ儴HTML锛屾鏃堕渶瑕佺粦瀹歨tml闇�浼犲叆鍥炶皟鏂规硶銆�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
*/
type StyleOptions = {
- html: string | Element;
+ html: string | Element | ((...params: any[]) => any);
horizontalOrigin?: Cesium.HorizontalOrigin;
verticalOrigin?: Cesium.VerticalOrigin;
offsetX?: number;
@@ -2796,7 +2933,11 @@
distanceDisplayCondition_far?: number;
distanceDisplayCondition_near?: number;
clampToGround?: boolean;
+ heightReference?: Cesium.HeightReference;
css_transform_origin?: string;
+ timeRender?: boolean;
+ setHeight?: number | string;
+ addHeight?: number | string;
};
/**
* 褰撳墠绫绘敮鎸佺殑{@link EventType}浜嬩欢绫诲瀷
@@ -2815,6 +2956,8 @@
* @property popupClose - popup寮圭獥鍏抽棴
* @property tooltipOpen - tooltip寮圭獥鎵撳紑鍚�
* @property tooltipClose - tooltip寮圭獥鍏抽棴
+ * @property highlightOpen - highlight楂樹寒鍚�
+ * @property highlightClose - highlight鍏抽棴鍚�
* @property drawStart - 寮�濮嬬粯鍒� 鏍囩粯浜嬩欢
* @property drawMouseMove - 姝e湪绉诲姩榧犳爣涓紝缁樺埗杩囩▼涓紶鏍囩Щ鍔ㄤ簡鐐� 鏍囩粯浜嬩欢
* @property drawCreated - 鍒涘缓瀹屾垚 鏍囩粯浜嬩欢
@@ -2833,6 +2976,8 @@
popupClose: string;
tooltipOpen: string;
tooltipClose: string;
+ highlightOpen: string;
+ highlightClose: string;
drawStart: string;
drawMouseMove: string;
drawCreated: string;
@@ -2943,9 +3088,10 @@
/**
* 楂樹寒瀵硅薄銆�
* @param [highlightStyle] - 楂樹寒鐨勬牱寮忥紝鍏蜂綋瑙佸悇{@link GraphicType}鐭㈤噺鏁版嵁鐨剆tyle鍙傛暟銆�
+ * @param [closeLast = true] - 鏄惁娓呴櫎鍦板浘涓婁笂涓�娆$殑楂樹寒瀵硅薄
* @returns 鏃�
*/
- openHighlight(highlightStyle?: any): void;
+ openHighlight(highlightStyle?: any, closeLast?: boolean): void;
/**
* 娓呴櫎宸查�変腑鐨勯珮浜�
* @returns 鏃�
@@ -3139,19 +3285,19 @@
image?: string;
emitter?: ParticleEmitter;
emissionRate?: number;
- bursts?: ParticleBurst[];
+ bursts?: Cesium.ParticleBurst[];
loop?: boolean;
particleSize?: number;
- imageSize?: Cartesian2;
- minimumImageSize?: Cartesian2;
- maximumImageSize?: Cartesian2;
+ imageSize?: Cesium.Cartesian2;
+ minimumImageSize?: Cesium.Cartesian2;
+ maximumImageSize?: Cesium.Cartesian2;
sizeInMeters?: boolean;
scale?: number;
startScale?: number;
endScale?: number;
- color?: Color;
- startColor?: Color;
- endColor?: Color;
+ color?: Cesium.Color;
+ startColor?: Cesium.Color;
+ endColor?: Cesium.Color;
speed?: number;
minimumSpeed?: number;
maximumSpeed?: number;
@@ -3162,7 +3308,7 @@
mass?: number;
minimumMass?: number;
maximumMass?: number;
- updateCallback?: ParticleSystem.updateCallback;
+ updateCallback?: Cesium.ParticleSystem.updateCallback;
};
}
@@ -3247,6 +3393,8 @@
* @property [distanceDisplayCondition_near = 0] - 鏈�灏忚窛绂�
* @property [clampToGround = false] - 鏄惁璐村湴
* @property [css_transform_origin = 'left bottom 0'] - DIV鐨� transform-origin css鍊�
+ * @property [timeRender] - 鏄惁瀹炴椂鍒锋柊鍏ㄩ儴HTML锛屾鏃堕渶瑕佺粦瀹歨tml闇�浼犲叆鍥炶皟鏂规硶銆�
+ * @property [autoCenter] - 褰撴皵娉$獥鍙f湁閮ㄥ垎鍦ㄥ湴鍥句箣澶栨椂鏄惁鑷姩杩涜灞呬腑 锛堢洰鍓嶄粎淇鏃跺噯纭畾浣嶏級
*/
type StyleOptions = {
html: string;
@@ -3265,6 +3413,8 @@
distanceDisplayCondition_near?: number;
clampToGround?: boolean;
css_transform_origin?: string;
+ timeRender?: boolean;
+ autoCenter?: boolean;
};
}
@@ -3330,6 +3480,7 @@
* @property [distanceDisplayCondition_near = 0] - 鏈�灏忚窛绂�
* @property [clampToGround = false] - 鏄惁璐村湴
* @property [css_transform_origin = 'left bottom 0'] - DIV鐨� transform-origin css鍊�
+ * @property [timeRender] - 鏄惁瀹炴椂鍒锋柊鍏ㄩ儴HTML锛屾鏃堕渶瑕佺粦瀹歨tml闇�浼犲叆鍥炶皟鏂规硶銆�
*/
type StyleOptions = {
html: string;
@@ -3349,6 +3500,7 @@
distanceDisplayCondition_near?: number;
clampToGround?: boolean;
css_transform_origin?: string;
+ timeRender?: boolean;
};
}
@@ -3436,7 +3588,7 @@
fillColor?: Cesium.Color;
strokeColor?: Cesium.Color;
strokeWidth?: number;
- backgroundColor?: vColor;
+ backgroundColor?: Cesium.Color;
padding?: number;
};
};
@@ -3571,6 +3723,8 @@
* @property popupClose - popup寮圭獥鍏抽棴
* @property tooltipOpen - tooltip寮圭獥鎵撳紑鍚�
* @property tooltipClose - tooltip寮圭獥鍏抽棴
+ * @property highlightOpen - highlight楂樹寒鍚�
+ * @property highlightClose - highlight鍏抽棴鍚�
* @property drawStart - 寮�濮嬬粯鍒� 鏍囩粯浜嬩欢
* @property drawMouseMove - 姝e湪绉诲姩榧犳爣涓紝缁樺埗杩囩▼涓紶鏍囩Щ鍔ㄤ簡鐐� 鏍囩粯浜嬩欢
* @property drawAddPoint - 缁樺埗杩囩▼涓鍔犱簡鐐� 鏍囩粯浜嬩欢
@@ -3594,6 +3748,8 @@
popupClose: string;
tooltipOpen: string;
tooltipClose: string;
+ highlightOpen: string;
+ highlightClose: string;
drawStart: string;
drawMouseMove: string;
drawAddPoint: string;
@@ -3651,9 +3807,10 @@
/**
* 楂樹寒瀵硅薄銆�
* @param [highlightStyle] - 楂樹寒鐨勬牱寮忥紝鍏蜂綋瑙佸悇{@link GraphicType}鐭㈤噺鏁版嵁鐨剆tyle鍙傛暟銆�
+ * @param [closeLast = true] - 鏄惁娓呴櫎鍦板浘涓婁笂涓�娆$殑楂樹寒瀵硅薄
* @returns 鏃�
*/
- openHighlight(highlightStyle?: any): void;
+ openHighlight(highlightStyle?: any, closeLast?: boolean): void;
/**
* 娓呴櫎宸查�変腑鐨勯珮浜�
* @returns 鏃�
@@ -4004,8 +4161,8 @@
* @property [translucencyByDistance] - 鐢ㄤ簬鍩轰簬涓庣浉鏈虹殑璺濈璁剧疆鍗婇�忔槑搴︺��
* @property [pixelOffsetScaleByDistance] - 鐢ㄤ簬鍩轰簬涓庣浉鏈虹殑璺濈璁剧疆pixelOffset銆�
* @property [imageSubRegion] - 瀹氫箟鐢ㄤ簬骞垮憡鐗岀殑鍥惧儚鐨勫瓙鍖哄煙锛岃�屼笉鏄粠宸︿笅瑙掑紑濮嬩互鍍忕礌涓哄崟浣嶇殑鏁翠釜鍥惧儚銆�
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -4042,8 +4199,8 @@
translucencyByDistance?: Cesium.NearFarScalar;
pixelOffsetScaleByDistance?: Cesium.NearFarScalar;
imageSubRegion?: Cesium.BoundingRectangle;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: BillboardEntity.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -4146,8 +4303,8 @@
* @property [shadows = Cesium.ShadowMode.DISABLED] - 鏄姇灏勮繕鏄帴鏀舵潵鑷厜婧愮殑闃村奖銆�
* @property [clampToGround = false] - 鏄惁璐村湴
* @property [heightReference = Cesium.HeightReference.NONE] - 鎸囧畾浠庡疄浣撲綅缃埌瀹冪殑鐩稿楂樺害銆�
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -4176,8 +4333,8 @@
shadows?: Cesium.ShadowMode;
clampToGround?: boolean;
heightReference?: Cesium.HeightReference;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: BoxEntity.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -4284,6 +4441,33 @@
angle: number;
}
+/**
+ * 瀹氭椂闂儊楂樹寒Entity锛堢偣銆佺嚎銆侀潰锛�
+ */
+declare class FlickerEntity {
+ /**
+ * 楂樹寒闂儊 Enity瀹炰綋瀵硅薄
+ * @param entitys - entity瀵硅薄鎴栧璞℃暟缁�
+ * @param [opts = {}] - 鎺у埗鍙傛暟
+ * @param [opts.time = null] - 闂儊鐨勬椂闀�(绉�)锛屾湭璁剧疆鏃朵笉鑷姩鍋滄銆�
+ * @param [opts.color = Cesium.Color.YELLOW] - 楂樹寒鐨勯鑹�
+ * @param [opts.maxAlpha = 0.3] - 闂儊鐨勬渶澶ч�忔槑搴︼紝浠� 0 鍒� maxAlpha 娓愬彉
+ * @param [opts.onEnd = null] - 鎾斁瀹屾垚鍚庣殑鍥炶皟鏂规硶
+ * @returns 楂樹寒闂儊鎺у埗 瀵硅薄
+ */
+ startFlicker(entitys: Cesium.Entity | Cesium.Entity[], opts?: {
+ time?: number;
+ color?: Cesium.Color;
+ maxAlpha?: number;
+ onEnd?: (...params: any[]) => any;
+ }): FlickerEntity;
+ /**
+ * 鍋滄楂樹寒闂儊
+ * @returns 楂樹寒闂儊鎺у埗 瀵硅薄
+ */
+ stopFlicker(): FlickerEntity;
+}
+
declare namespace CorridorEntity {
/**
* 璧板粖 鏀寔鐨勬牱寮忎俊鎭�
@@ -4314,8 +4498,8 @@
* @property [clampToGround = false] - 鏄惁璐村湴
* @property [classificationType = Cesium.ClassificationType.BOTH] - 鎸囧畾璐村湴鏃剁殑瑕嗙洊绫诲瀷锛屾槸鍙鍦板舰銆�3dtiles 鎴� 涓よ�呭悓鏃躲��
* @property [zIndex = 0] - 灞傜骇椤哄簭锛岀敤浜庢帓搴忋�傚彧鏈夊湪楂樺害鍜屾尋鍘嬮珮搴︽湭瀹氫箟锛屽苟涓旇蛋寤婃槸闈欐�佺殑鎯呭喌涓嬫墠鏈夋晥鏋溿��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -4347,8 +4531,8 @@
clampToGround?: string;
classificationType?: Cesium.ClassificationType;
zIndex?: number;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: CorridorEntity.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -4521,6 +4705,79 @@
position: Cesium.Cartesian3;
}
+/**
+ * Circle瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被
+ */
+declare class EditCircle extends EditPoly {
+}
+
+/**
+ * Corridor瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被
+ */
+declare class EditCorridor extends EditPoly {
+}
+
+/**
+ * Cylinder瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被
+ */
+declare class EditCylinder extends EditPoly {
+}
+
+/**
+ * Ellipsoid瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被
+ */
+declare class EditEllipsoid extends EditBase {
+}
+
+/**
+ * Model瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被
+ */
+declare class EditModel extends EditBase {
+}
+
+/**
+ * Plane瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被
+ */
+declare class EditPlane extends EditBase {
+}
+
+/**
+ * Point 瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被
+ */
+declare class EditPoint extends EditBase {
+}
+
+/**
+ * 绾块潰鐘跺璞� 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被鍩虹被
+ */
+declare class EditPoly extends EditBase {
+}
+
+/**
+ * Polygon瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被
+ */
+declare class EditPolygon extends EditPoly {
+}
+
+/**
+ * Polygon瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被锛�
+ * 鐢ㄤ簬澶栭儴鎵╁睍浣跨敤锛岀粯鍒剁殑鐐逛笌鏄剧ず鐨勭偣涓嶄竴鑷寸殑鏍囧彿
+ */
+declare class EditPolygonEx extends EditPolygon {
+}
+
+/**
+ * Rectangle瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被锛�
+ */
+declare class EditRectangle extends EditPoly {
+}
+
+/**
+ * Wall瀵硅薄 鏍囩粯澶勭悊瀵瑰簲鐨勭紪杈戠被锛�
+ */
+declare class EditWall extends EditPoly {
+}
+
declare namespace FontBillboardEntity {
/**
* Font CSS瀛椾綋鐐硅浆鍥剧墖鍚庣殑鍥炬爣鐐� Entity 鏀寔鐨勬牱寮忎俊鎭�
@@ -4618,8 +4875,8 @@
* @property [visibleDepth = true] - 鏄惁琚伄鎸�
* @property [disableDepthTestDistance] - 鎸囧畾浠庣浉鏈哄埌绂佺敤娣卞害娴嬭瘯鐨勮窛绂汇��
* @property [translucencyByDistance] - 鐢ㄤ簬鍩轰簬涓庣浉鏈虹殑璺濈璁剧疆鍗婇�忔槑搴︺��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
*/
type StyleOptions = {
text?: string;
@@ -4661,8 +4918,8 @@
visibleDepth?: boolean;
disableDepthTestDistance?: number;
translucencyByDistance?: Cesium.NearFarScalar;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
};
}
@@ -4747,8 +5004,8 @@
* @property [distanceDisplayCondition = false] - 鏄惁鎸夎璺濇樉绀� 鎴� 鎸囧畾姝ゆ灏嗘樉绀哄湪涓庢憚鍍忔満鐨勫澶ц窛绂汇��
* @property [distanceDisplayCondition_far = 100000] - 鏈�澶ц窛绂�
* @property [distanceDisplayCondition_near = 0] - 鏈�灏忚窛绂�
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
type StyleOptions = {
@@ -4762,8 +5019,8 @@
distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
distanceDisplayCondition_far?: number;
distanceDisplayCondition_near?: number;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
label?: LabelEntity.StyleOptions;
};
}
@@ -4845,7 +5102,7 @@
pitch: number;
roll: number;
duration?: number;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -4886,8 +5143,8 @@
* @property [distanceDisplayCondition_near = 0] - 鏈�灏忚窛绂�
* @property [hasShadows = false] - 鏄惁闃村奖
* @property [shadows = Cesium.ShadowMode.DISABLED] - 鎸囧畾骞抽潰鏄姇灏勮繕鏄帴鏀舵潵鑷厜婧愮殑闃村奖銆�
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -4917,8 +5174,8 @@
distanceDisplayCondition_near?: number;
hasShadows?: boolean;
shadows?: Cesium.ShadowMode;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: PlaneEntity.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -4995,8 +5252,8 @@
* @property [translucencyByDistance] - 鐢ㄤ簬鍩轰簬涓庣浉鏈虹殑璺濈璁剧疆鍗婇�忔槑搴︺��
* @property [clampToGround = false] - 鏄惁璐村湴
* @property [heightReference = Cesium.HeightReference.NONE] - 鎸囧畾楂樺害鐩稿浜庝粈涔堢殑灞炴�с��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -5021,8 +5278,8 @@
translucencyByDistance?: Cesium.NearFarScalar;
clampToGround?: boolean;
heightReference?: Cesium.HeightReference;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: PointEntity.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -5327,8 +5584,8 @@
* @property [clampToGround = false] - 鏄惁璐村湴
* @property [classificationType = Cesium.ClassificationType.BOTH] - 鎸囧畾璐村湴鏃剁殑瑕嗙洊绫诲瀷锛屾槸鍙鍦板舰銆�3dtiles 鎴� 涓よ�呭悓鏃躲��
* @property [zIndex = 0] - 灞傜骇椤哄簭锛屾寚瀹氱敤浜庢帓搴忓湴闈㈠嚑浣曠殑zIndex銆傚彧鏈夊綋鐭╁舰涓哄父閲忎笖娌℃湁鎸囧畾height鎴杄xtrdedheight鏃舵墠鏈夋晥鏋溿��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -5362,8 +5619,8 @@
clampToGround?: string;
classificationType?: Cesium.ClassificationType;
zIndex?: number;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: RectangleEntity.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -5451,6 +5708,15 @@
*/
getOutlineCoordinates(closure?: boolean, noAlt: boolean): any[][];
/**
+ * 鑾峰彇鏁版嵁鐨勭煩褰㈣竟鐣�
+ * @param [options] - 鎺у埗鍙傛暟
+ * @param [options.isFormat = false] - 鏄惁鏍煎紡鍖栵紝鏍煎紡鍖栨椂绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
+ * @returns isFormat锛歵rue鏃讹紝杩斿洖鏍煎紡鍖栧璞★紝isFormat锛歠alse鏃惰繑鍥濩esium.Rectangle瀵硅薄
+ */
+ getRectangle(options?: {
+ isFormat?: boolean;
+ }): Cesium.Rectangle | any;
+ /**
* 鍒ゆ柇鐐规槸鍚﹀湪鐭╁舰鍐�
* @param position - 闇�瑕佸垽鏂殑鐐�
* @returns 鏄惁鍦ㄧ煩褰㈠唴
@@ -5516,7 +5782,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -5799,8 +6065,8 @@
* @property [hasShadows = false] - 鏄惁闃村奖
* @property [shadows = Cesium.ShadowMode.DISABLED] - 鎸囧畾澧欏鏄姇灏勮繕鏄帴鏀舵潵鑷厜婧愮殑闃村奖銆�
* @property [granularity = Cesium.Math.RADIANS_PER_DEGREE] - 鎸囧畾姣忎釜绾害鐐瑰拰缁忓害鐐逛箣闂寸殑瑙掕窛绂汇��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀猴紝棰濆鏀寔锛�
* @property [label.position] - 鏂囧瓧鎵�鍦ㄤ綅缃紝榛樿鏄煝閲忓璞℃湰韬殑center灞炴�у�笺�傛敮鎸侀厤缃� 'center'锛氬洿鍚堥潰鐨勫唴閮ㄤ腑蹇冪偣鍧愭爣锛�'{xxxx}'閰嶇疆灞炴�у瓧娈�, 鎴栬�呯洿鎺ユ寚瀹氬潗鏍囧�笺��
@@ -5827,8 +6093,8 @@
hasShadows?: boolean;
shadows?: Cesium.ShadowMode;
granularity?: number;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: WallEntity.StyleOptions;
label?: {
position?: string | LatLngPoint;
@@ -6546,7 +6812,7 @@
type ConstructorOptions = {
appearance?: Cesium.Appearance;
attributes?: Cesium.Appearance;
- depthFailAppearance?: Appearance;
+ depthFailAppearance?: Cesium.Appearance;
vertexCacheOptimize?: boolean;
interleave?: boolean;
compressVertices?: boolean;
@@ -6573,6 +6839,8 @@
* @property popupClose - popup寮圭獥鍏抽棴
* @property tooltipOpen - tooltip寮圭獥鎵撳紑鍚�
* @property tooltipClose - tooltip寮圭獥鍏抽棴
+ * @property highlightOpen - highlight楂樹寒鍚�
+ * @property highlightClose - highlight鍏抽棴鍚�
*/
type EventType = {
閫氱敤: BaseGraphic.EventType;
@@ -6584,6 +6852,8 @@
popupClose: string;
tooltipOpen: string;
tooltipClose: string;
+ highlightOpen: string;
+ highlightClose: string;
};
}
@@ -6615,7 +6885,7 @@
*/
readonly geometryInstanceAttributes: any;
/**
- * 瀵瑰簲鏉愯川鐨剈niforms
+ * 瀵瑰簲鏉愯川鐨剈niforms锛堝綋璧嬫湁鏉愯川鏃讹級,
* 涓�涓璞★紝瀹冪殑灞炴�ц鐢ㄦ潵璁剧疆鐗囨鐫�鑹插櫒shader銆�
* <p>
* 瀵硅薄灞炴�у�煎彲浠ユ槸甯搁噺鎴栧嚱鏁般�傝繖涓嚱鏁板皢鍦ㄦ瘡涓�甯у悗澶勭悊闃舵鎵ц涔嬪墠琚皟鐢ㄣ��
@@ -6632,9 +6902,10 @@
/**
* 楂樹寒瀵硅薄銆�
* @param [highlightStyle] - 楂樹寒鐨勬牱寮忥紝鍏蜂綋瑙佸悇{@link GraphicType}鐭㈤噺鏁版嵁鐨剆tyle鍙傛暟銆�
+ * @param [closeLast = true] - 鏄惁娓呴櫎鍦板浘涓婁笂涓�娆$殑楂樹寒瀵硅薄
* @returns 鏃�
*/
- openHighlight(highlightStyle?: any): void;
+ openHighlight(highlightStyle?: any, closeLast?: boolean): void;
/**
* 娓呴櫎宸查�変腑鐨勯珮浜�
* @returns 鏃�
@@ -6709,8 +6980,8 @@
* @property [vertexShaderSource] - 鍙�夌殑GLSL椤剁偣鐫�鑹插櫒婧愶紝瑕嗙洊榛樿鐨勯《鐐圭潃鑹插櫒銆�
* @property [fragmentShaderSource] - 鍙�夌殑GLSL鐗囨鐫�鑹插櫒婧愯鐩栭粯璁ょ殑鐗囨鐫�鑹插櫒銆�
* @property [renderState] - 鍙�夋覆鏌撶姸鎬侊紝浠ヨ鐩栭粯璁ゆ覆鏌撶姸鎬併��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -6724,13 +6995,13 @@
roll?: number;
materialType?: string;
material鏉愯川鍙傛暟?: any;
- material?: Material;
+ material?: Cesium.Material;
color?: string | Cesium.Color;
opacity?: number;
outline?: boolean;
outlineColor?: string | Cesium.Color;
outlineOpacity?: number;
- materialSupport?: MaterialAppearance.MaterialSupportType;
+ materialSupport?: Cesium.MaterialAppearance.MaterialSupportType;
flat?: boolean;
faceForward?: boolean;
translucent?: boolean;
@@ -6738,8 +7009,8 @@
vertexShaderSource?: string;
fragmentShaderSource?: string;
renderState?: any;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: BoxPrimitive.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -6797,8 +7068,8 @@
* @property [vertexShaderSource] - 鍙�夌殑GLSL椤剁偣鐫�鑹插櫒婧愶紝瑕嗙洊榛樿鐨勯《鐐圭潃鑹插櫒銆�
* @property [fragmentShaderSource] - 鍙�夌殑GLSL鐗囨鐫�鑹插櫒婧愯鐩栭粯璁ょ殑鐗囨鐫�鑹插櫒銆�
* @property [renderState] - 鍙�夋覆鏌撶姸鎬侊紝浠ヨ鐩栭粯璁ゆ覆鏌撶姸鎬併��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -6812,7 +7083,7 @@
granularity?: number;
materialType?: string;
material鏉愯川鍙傛暟?: any;
- material?: Material;
+ material?: Cesium.Material;
color?: string | Cesium.Color;
opacity?: number;
outline?: boolean;
@@ -6829,8 +7100,8 @@
vertexShaderSource?: string;
fragmentShaderSource?: string;
renderState?: any;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: CirclePrimitive.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -6859,6 +7130,26 @@
* 鍦嗙殑鍗婂緞锛堝崟浣嶏細绫筹級
*/
radius: number;
+ /**
+ * 鍦嗙殑杈圭嚎鍧愭爣闆嗗悎锛堢瑳鍗″皵鍧愭爣锛�
+ */
+ readonly outlinePositions: Cesium.Cartesian3[];
+ /**
+ * 鑾峰彇鍦嗙殑杈圭嚎鍧愭爣闆嗗悎锛堢瑳鍗″皵鍧愭爣锛�
+ * @param [closure = true] - 鏄惁闂悎锛宼rue鏃朵細娣诲姞绗�0涓偣杩涜闂悎銆�
+ * @param [count = 90] - 璞¢檺鍐呯偣鐨勬暟閲忥紝杩斿洖鐨勬�绘暟涓� count*4
+ * @returns 杈圭嚎鍧愭爣鏁扮粍
+ */
+ getOutlinePositions(closure?: boolean, count?: number): Cesium.Cartesian3[];
+ /**
+ * 鑾峰彇鏁版嵁鐨勭煩褰㈣竟鐣�
+ * @param [options] - 鎺у埗鍙傛暟
+ * @param [options.isFormat = false] - 鏄惁鏍煎紡鍖栵紝鏍煎紡鍖栨椂绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
+ * @returns isFormat锛歵rue鏃讹紝杩斿洖鏍煎紡鍖栧璞★紝isFormat锛歠alse鏃惰繑鍥濩esium.Rectangle瀵硅薄
+ */
+ getRectangle(options?: {
+ isFormat?: boolean;
+ }): Cesium.Rectangle | any;
/**
* 鍒ゆ柇鐐规槸鍚﹀湪鍦嗗唴
* @param position - 闇�瑕佸垽鏂殑鐐�
@@ -6898,7 +7189,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -6939,8 +7230,8 @@
* @property [vertexShaderSource] - 鍙�夌殑GLSL椤剁偣鐫�鑹插櫒婧愶紝瑕嗙洊榛樿鐨勯《鐐圭潃鑹插櫒銆�
* @property [fragmentShaderSource] - 鍙�夌殑GLSL鐗囨鐫�鑹插櫒婧愯鐩栭粯璁ょ殑鐗囨鐫�鑹插櫒銆�
* @property [renderState] - 鍙�夋覆鏌撶姸鎬侊紝浠ヨ鐩栭粯璁ゆ覆鏌撶姸鎬併��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
type StyleOptions = {
@@ -6948,7 +7239,7 @@
cornerType?: string | Cesium.CornerType;
materialType?: string;
material鏉愯川鍙傛暟?: any;
- material?: Material;
+ material?: Cesium.Material;
color?: string | Cesium.Color;
opacity?: number;
outline?: boolean;
@@ -6969,8 +7260,8 @@
vertexShaderSource?: string;
fragmentShaderSource?: string;
renderState?: any;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
label?: LabelPrimitive.StyleOptions;
};
}
@@ -7031,13 +7322,13 @@
roll?: number;
materialType?: string;
material鏉愯川鍙傛暟?: any;
- material?: Material;
+ material?: Cesium.Material;
color?: string | Cesium.Color;
opacity?: number;
outline?: boolean;
outlineColor?: string | Cesium.Color;
outlineOpacity?: number;
- materialSupport?: MaterialAppearance.MaterialSupportType;
+ materialSupport?: Cesium.MaterialAppearance.MaterialSupportType;
flat?: boolean;
faceForward?: boolean;
translucent?: boolean;
@@ -7233,8 +7524,8 @@
* @property [multiplier = 1.0] - 澶т簬1.0鐨勫�煎鍔犲姩鐢绘挱鏀剧殑閫熷害鐩稿浜庡満鏅椂閽熺殑閫熷害;灏忎簬1.0浼氶檷浣庨�熷害銆�
* @property [reverse = false] - 褰搕rue鏃讹紝鍔ㄧ敾浼氬弽鍚戞挱鏀俱��
* @property [loop = Cesium.ModelAnimationLoop.REPEAT] - 鍐冲畾鍔ㄧ敾鏄惁寰幆浠ュ強濡備綍寰幆銆�
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [highlight] - 榧犳爣绉诲叆鎴栧崟鍑�(type:'click')鍚庣殑瀵瑰簲楂樹寒鐨勯儴鍒嗘牱寮忥紝鍒涘缓Graphic鍚庝篃鍙互openHighlight銆乧loseHighlight鏂规硶鏉ユ墜鍔ㄨ皟鐢�
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
@@ -7271,7 +7562,7 @@
runAnimations?: boolean;
clampAnimations?: boolean;
imageBasedLightingFactor?: Cesium.Cartesian2;
- lightColor?: Color;
+ lightColor?: Cesium.Color;
nodeTransformations?: Cesium.PropertyBag | {
[key: string]: Cesium.TranslationRotationScale;
};
@@ -7287,13 +7578,13 @@
debugWireframe?: boolean;
startTime?: Cesium.JulianDate;
delay?: number;
- stopTime?: JulianDate;
+ stopTime?: Cesium.JulianDate;
removeOnStop?: boolean;
multiplier?: number;
reverse?: boolean;
loop?: Cesium.ModelAnimationLoop;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
highlight?: ModelPrimitive.StyleOptions;
label?: LabelEntity.StyleOptions;
};
@@ -7399,8 +7690,8 @@
opacity?: number;
materialType?: string;
material鏉愯川鍙傛暟?: any;
- material?: Material;
- materialSupport?: MaterialAppearance.MaterialSupportType;
+ material?: Cesium.Material;
+ materialSupport?: Cesium.MaterialAppearance.MaterialSupportType;
outline?: boolean;
outlineColor?: string | Cesium.Color;
outlineOpacity?: number;
@@ -7462,8 +7753,8 @@
* @property [visibleDepth = true] - 鏄惁琚伄鎸�
* @property [disableDepthTestDistance] - 鎸囧畾浠庣浉鏈哄埌绂佺敤娣卞害娴嬭瘯鐨勮窛绂汇��
* @property [translucencyByDistance] - 鐢ㄤ簬鍩轰簬涓庣浉鏈虹殑璺濈璁剧疆鍗婇�忔槑搴︺��
- * @property [setHeight = 0] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
- * @property [addHeight = 0] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�
+ * @property [setHeight] - 鎸囧畾鍧愭爣楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
+ * @property [addHeight] - 鍦ㄧ幇鏈夊潗鏍囧熀纭�涓婂鍔犵殑楂樺害鍊硷紙甯哥敤浜庡浘灞備腑閰嶇疆锛�,涔熸敮鎸佸瓧绗︿覆妯$増閰嶇疆
* @property [label] - 鏀寔闄勫甫鏂囧瓧鐨勬樉绀�
*/
type StyleOptions = {
@@ -7485,8 +7776,8 @@
visibleDepth?: boolean;
disableDepthTestDistance?: number;
translucencyByDistance?: Cesium.NearFarScalar;
- setHeight?: number;
- addHeight?: number;
+ setHeight?: number | string;
+ addHeight?: number | string;
label?: LabelPrimitive.StyleOptions;
};
}
@@ -7561,7 +7852,7 @@
type StyleOptions = {
materialType?: string;
material鏉愯川鍙傛暟?: any;
- material?: Material;
+ material?: Cesium.Material;
color?: string | Cesium.Color;
opacity?: number;
randomColor?: boolean;
@@ -7657,7 +7948,7 @@
width?: number;
materialType?: string;
material鏉愯川鍙傛暟?: any;
- material?: Material;
+ material?: Cesium.Material;
color?: string | Cesium.Color;
opacity?: number;
randomColor?: boolean;
@@ -7786,7 +8077,7 @@
diffHeight?: number;
materialType?: string;
material鏉愯川鍙傛暟?: any;
- material?: Material;
+ material?: Cesium.Material;
color?: string | Cesium.Color;
opacity?: number;
outline?: boolean;
@@ -7953,6 +8244,10 @@
*/
readonly position: Cesium.Cartesian3;
/**
+ * 褰撳墠椋炶杩囩殑positions杞ㄨ抗鐐规暟缁勭殑index椤哄簭
+ */
+ readonly currIndex: number;
+ /**
* 璐存ā鍨嬪垎鏋愭椂锛屾帓闄ょ殑涓嶈繘琛岃创妯″瀷璁$畻鐨勬ā鍨嬪璞★紝榛樿鏄綋鍓嶆湰韬紝鍙互鏄細 primitives, entities 绛�
*/
readonly objectsToExclude: object[] | undefined;
@@ -7960,10 +8255,6 @@
* 涓績鐐瑰潗鏍囷紙绗涘崱灏斿潗鏍囷級,popup/tooltip绛夊姛鑳戒細浣跨敤
*/
readonly center: Cesium.SampledPositionProperty;
- /**
- * 宸茬粡椋炶杩囩殑鐐圭殑 index
- */
- readonly indexForFlyOK: Int;
/**
* 鑾峰彇涓夌淮绌洪棿涓殑鏃嬭浆銆�
*/
@@ -7974,6 +8265,11 @@
readonly hpr: Cesium.HeadingPitchRoll;
/**
* 鑾峰彇褰撳墠杞崲璁$畻妯″瀷鐭╅樀銆傚鏋滄柟鍚戞垨浣嶇疆鏈畾涔夛紝鍒欒繑鍥瀠ndefined銆�
+ */
+ readonly modelMatrix: Cesium.Matrix4;
+ /**
+ * 鑾峰彇褰撳墠杞崲璁$畻妯″瀷鐭╅樀銆傚鏋滄柟鍚戞垨浣嶇疆鏈畾涔夛紝鍒欒繑鍥瀠ndefined銆�
+ * 鍚� modelMatrix
*/
readonly matrix: Cesium.Matrix4;
/**
@@ -8057,6 +8353,11 @@
followedZ?: followedZ;
}): void;
/**
+ * 鑾峰彇椋炶繃鐨勮矾绾垮潗鏍囨暟缁�
+ * @returns 鍧愭爣鏁扮粍
+ */
+ getOverPositions(): Cesium.Cartesian3[];
+ /**
* 鎸夌被鍨� 娣诲姞鍗曚釜鎶曞奖
* @param item - 鍙傛暟锛屾寜绫诲瀷鍒嗗埆鏀寔锛�
* @param [item.wall] - wall绫诲瀷鎵�鏀寔鐨勫弬鏁�
@@ -8136,7 +8437,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -8166,7 +8467,7 @@
pitch: number;
roll: number;
duration?: number;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -8251,6 +8552,8 @@
* @param [options.camera.offsetX = 0] - 'dy'閿佸畾绗竴瑙嗚鏃讹紝閿佸畾鐐圭殑鏈韩鐨刋杞存柟鍚戯紙鍓嶅悗锛夊亸绉诲��
* @param [options.camera.offsetY = 0] - 'dy'閿佸畾绗竴瑙嗚鏃讹紝閿佸畾鐐圭殑鏈韩鐨刌杞存柟鍚戯紙妯悜锛夊亸绉诲��
* @param [options.camera.offsetZ = 0] - 'dy'閿佸畾绗竴瑙嗚鏃讹紝閿佸畾鐐圭殑鏈韩鐨刏杞存柟鍚戯紙楂樺害锛夊亸绉诲��
+ * @param [forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 鍦ㄤ换浣曞彲鐢ㄥ潗鏍囦箣鍚庝竴娆¤姹傚�兼椂瑕佹墽琛岀殑鎺ㄦ柇绫诲瀷锛岄粯璁や负鏈�鍚庝竴涓潗鏍囦綅缃��
+ * @param [backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 鍦ㄤ换浣曞彲鐢ㄥ潗鏍囦箣鍓嶄竴娆¤姹傚�兼椂瑕佹墽琛岀殑鎺ㄦ柇绫诲瀷锛岄粯璁や负绗竴涓潗鏍囦綅缃��
* @param [options.clampToTileset = false] - 鏄惁璐�3dtiles妯″瀷涓婏紙璐存ā鍨嬫晥鐜囪緝鎱紝鎸夐渶寮�鍚級
* @param [options.frameRate = 30] - 褰揷lampToTileset锛歵rue鏃讹紝鎺у埗璐存ā鍨嬬殑鏁堢巼锛屽灏戝抚璁$畻涓�娆¤创妯″瀷楂樺害,
* @param [options.objectsToExclude = null] - 璐存ā鍨嬪垎鏋愭椂锛屾帓闄ょ殑涓嶈繘琛岃创妯″瀷璁$畻鐨勬ā鍨嬪璞★紝榛樿鏄綋鍓嶆湰韬紝鍙互鏄細 primitives, entities, 鎴� 3D Tiles features
@@ -8287,7 +8590,7 @@
clampToTileset?: boolean;
frameRate?: number;
objectsToExclude?: object[];
- });
+ }, forwardExtrapolationType?: Cesium.ExtrapolationType, backwardExtrapolationType?: Cesium.ExtrapolationType);
/**
* 灏嗚建杩规暟鎹浆鎹负CZML鏍煎紡鏁版嵁
* @example
@@ -8374,7 +8677,6 @@
* @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 鍙傝�冪郴
* @param [options.interpolation = false] - 鏄惁LagrangePolynomialApproximation鎻掑�硷紝瀵硅建杩硅繘琛屽渾寮х姸鎻掑��
* @param [options.interpolationDegree = 2] - 褰搃nterpolation涓簍rue鏃讹紝浣跨敤鐨勬彃鍊肩▼搴︺��
- * @param [options.showStop = false] - 鏄惁鍦╯tart鍓嶆垨stop鍚庢樉绀烘ā鍨嬬瓑瀵硅薄
* @param [options.label] - 璁剧疆鏄惁鏄剧ず 鏂囨湰 鍜屽搴旂殑鏍峰紡
* @param [options.showGroundHeight = false] - 鏄惁姹傚噯纭殑 鍦伴潰娴锋嫈 鍜� 绂诲湴楂樺害 (娌℃湁姝ら渶姹傛椂鍙互鍏抽棴锛屾彁楂樻晥鐜�)
* @param [options.model] - 璁剧疆鏄惁鏄剧ず gltf妯″瀷 鍜屽搴旂殑鏍峰紡
@@ -8400,6 +8702,9 @@
* @param [options.camera.offsetZ = 0] - 'dy'閿佸畾绗竴瑙嗚鏃讹紝閿佸畾鐐圭殑鏈韩鐨刏杞存柟鍚戯紙楂樺害锛夊亸绉诲��
* @param [options.clockRange] - 鎸囧畾鎾斁鐨勬ā寮�
* @param [options.clockLoop = false] - 鏄惁寰幆鎾斁锛岀瓑浠蜂簬clockRange:Cesium.ClockRange.LOOP_STOP
+ * @param [forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 鍦ㄤ换浣曞彲鐢ㄥ潗鏍囦箣鍚庝竴娆¤姹傚�兼椂瑕佹墽琛岀殑鎺ㄦ柇绫诲瀷锛岄粯璁や负鏈�鍚庝竴涓潗鏍囦綅缃��
+ * @param [backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 鍦ㄤ换浣曞彲鐢ㄥ潗鏍囦箣鍓嶄竴娆¤姹傚�兼椂瑕佹墽琛岀殑鎺ㄦ柇绫诲瀷锛岄粯璁や负绗竴涓潗鏍囦綅缃��
+ * @param [options.showStop = false] - 鏄惁鍦╯tart鍓嶆垨stop鍚庢樉绀烘ā鍨嬬瓑瀵硅薄
* @param [options.autoStop = false] - 鏄惁鑷姩鍋滄
*
* //浠ヤ笅鏄� clampToGround涓娇鐢ㄧ殑
@@ -8424,7 +8729,6 @@
fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame;
interpolation?: boolean;
interpolationDegree?: boolean;
- showStop?: boolean;
label?: LabelEntity.StyleOptions;
showGroundHeight?: boolean;
model?: ModelEntity.StyleOptions;
@@ -8452,6 +8756,7 @@
};
clockRange?: Cesium.ClockRange;
clockLoop?: boolean;
+ showStop?: boolean;
autoStop?: boolean;
splitNum?: number;
minDistance?: number;
@@ -8459,11 +8764,7 @@
clampToTileset?: boolean;
frameRate?: number;
objectsToExclude?: object[];
- });
- /**
- * 褰撳墠椋炶杩囩殑positions杞ㄨ抗鐐规暟缁勭殑index椤哄簭
- */
- readonly currIndex: number;
+ }, forwardExtrapolationType?: Cesium.ExtrapolationType, backwardExtrapolationType?: Cesium.ExtrapolationType);
/**
* 鏄惁宸插惎鍔�
*/
@@ -8934,7 +9235,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -9110,7 +9411,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -9496,8 +9797,8 @@
* 鍔犺浇灞曠ず GeoJSON鏁版嵁 鐨勫浘灞�
* @param options - 鍙傛暟瀵硅薄锛屽寘鎷互涓嬶細
* @param [options.閫氱敤鍙傛暟] - 鍖呭惈鐖剁被鏀寔鐨勬墍鏈夊弬鏁�
- * @param [options.url] - SDK鏍囩粯鐢熶骇鐨刧eojson鏂囦欢鎴栨湇鍔rl鍦板潃
- * @param [options.data] - SDK鏍囩粯鐢熶骇鐨刧eojson鏍煎紡瑙勮寖鏁版嵁瀵硅薄锛屼笌url浜岄�変竴鍗冲彲銆�
+ * @param [options.url] - geojson鏂囦欢鎴栨湇鍔rl鍦板潃
+ * @param [options.data] - geojson鏍煎紡瑙勮寖鏁版嵁瀵硅薄锛屼笌url浜岄�変竴鍗冲彲銆�
* @param [options.crs] - 鍘熷鏁版嵁鐨勫潗鏍囩郴锛屽'EPSG:3857'
* @param [options.format] - 鍙互瀵瑰姞杞界殑geojson鏁版嵁杩涜鏍煎紡鍖栨垨杞崲鎿嶄綔
* @param [options.onCreateGraphic] - 瑙f瀽geojson鍚庯紝澶栭儴鑷畾涔夋柟娉曟潵鍒涘缓Graphic瀵硅薄
@@ -9505,6 +9806,7 @@
* @param [options.templateValues] - 涓�涓璞★紝鐢ㄤ簬鏇挎崲Url涓殑妯℃澘鍊肩殑閿�/鍊煎
* @param [options.queryParameters] - 涓�涓璞★紝鍏朵腑鍖呭惈鍦ㄦ绱㈣祫婧愭椂灏嗗彂閫佺殑鏌ヨ鍙傛暟銆傛瘮濡傦細queryParameters: {'access_token': '123-435-456-000'}
* @param [options.headers] - 涓�涓璞★紝灏嗗彂閫佺殑鍏朵粬HTTP鏍囧ご銆傛瘮濡傦細headers: { 'X-My-Header': 'valueOfHeader' }
+ * @param [options.graphicOptions] - 榛樿鐨刧raphic鐨勬瀯閫犲弬鏁帮紝姣忕涓嶅悓绫诲瀷鏁版嵁閮芥湁涓嶅悓鐨勫睘鎬э紝鍏蜂綋瑙佸悇{@link GraphicType}鐭㈤噺鏁版嵁鐨勬瀯閫犲弬鏁般��
* @param [options.symbol] - 鐭㈤噺鏁版嵁鐨剆tyle鏍峰紡,涓篎unction鏃舵槸瀹屽叏鑷畾涔夌殑鍥炶皟澶勭悊 symbol(attr, style, feature)
* @param [options.symbol.type] - 鏍囪瘑鏁版嵁绫诲瀷锛岄粯璁ゆ槸鏍规嵁鏁版嵁鐢熸垚 point銆乸olyline銆乸olygon
* @param options.symbol.styleOptions - Style鏍峰紡锛屾瘡绉嶄笉鍚岀被鍨嬫暟鎹兘鏈変笉鍚岀殑鏍峰紡锛屽叿浣撹鍚剓@link GraphicType}鐭㈤噺鏁版嵁鐨剆tyle鍙傛暟銆�
@@ -9529,6 +9831,7 @@
templateValues?: any;
queryParameters?: any;
headers?: any;
+ graphicOptions?: any;
symbol?: {
type?: GraphicType;
styleOptions: any;
@@ -9660,6 +9963,12 @@
style?: any;
layer?: string;
}): BaseGraphic[];
+ /**
+ * 鑾峰彇鍥惧眰鍐呮墍鏈夋暟鎹殑 鐭╁舰杈圭晫鍊�
+ * @param [isFormat = false] - 鏄惁鏍煎紡鍖栵紝鏍煎紡鍖栨椂绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
+ * @returns isFormat锛歵rue鏃讹紝杩斿洖鏍煎紡鍖栧璞★紝isFormat锛歠alse鏃惰繑鍥濩esium.Rectangle瀵硅薄
+ */
+ getRectangle(isFormat?: boolean): Cesium.Rectangle | any;
/**
* 寮�濮嬬粯鍒剁煝閲忔暟鎹紝缁樺埗鐨勬暟鎹細鍔犺浇鍦ㄥ綋鍓嶅浘灞傘��
* @param options - Graphic鏋勯�犲弬鏁�,鍖呭惈锛�
@@ -9828,6 +10137,12 @@
*/
_removedHook(): void;
/**
+ * 鑾峰彇鍥惧眰鍐呮墍鏈夋暟鎹殑 鐭╁舰杈圭晫鍊�
+ * @param [isFormat = false] - 鏄惁鏍煎紡鍖栵紝鏍煎紡鍖栨椂绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
+ * @returns isFormat锛歵rue鏃讹紝杩斿洖鏍煎紡鍖栧璞★紝isFormat锛歠alse鏃惰繑鍥濩esium.Rectangle瀵硅薄
+ */
+ getRectangle(isFormat?: boolean): Cesium.Rectangle | any;
+ /**
* 灏嗗浘灞傛暟鎹鍑轰负GeoJSON鏍煎紡瑙勮寖瀵硅薄銆�
* @param [options] - 鍙傛暟瀵硅薄:
* @param [options.noAlt] - 涓嶅鍑洪珮搴﹀��
@@ -9842,13 +10157,17 @@
* @param [options] - 鍔犺浇鎺у埗鍙傛暟,鍖呭惈锛�
* @param [options.clear = false] - 鏄惁娓呴櫎鍥惧眰宸叉湁鏁版嵁
* @param [options.flyTo = false] - 鏄惁鍔犺浇瀹屾垚鍚庤繘琛岄琛屽埌鏁版嵁鍖哄煙
- * @param [options.style] - 鍙互璁剧疆鎸囧畾style鏍峰紡
+ * @param [options.type] - 杞负鎸囧畾鐨勭被鍨�
+ * @param [options.style] - 鍙互璁剧疆鎸囧畾style鏍峰紡,姣忕涓嶅悓绫诲瀷鏁版嵁閮芥湁涓嶅悓鐨勬牱寮忥紝鍏蜂綋瑙佸悇鐭㈤噺鏁版嵁鐨剆tyle鍙傛暟銆倇@link GraphicType}
+ * @param [options.crs] - 鍘熷鏁版嵁鐨勫潗鏍囩郴锛屽'EPSG:3857' 锛堝彲浠ヤ粠 {@link http://epsg.io }鏌ヨ锛�
* @returns 杞崲鍚庣殑Graphic瀵硅薄鏁扮粍
*/
loadGeoJSON(geojson: string | any, options?: {
clear?: boolean;
flyTo?: boolean;
+ type?: GraphicType;
style?: any;
+ crs?: string;
}): BaseGraphic[];
/**
* 娣诲姞Graphic鐭㈤噺鏁版嵁
@@ -9986,7 +10305,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -10256,6 +10575,8 @@
* @property allTilesLoaded - 3dtiles妯″瀷
* @property loadBefore - 瀹屾垚鍔犺浇锛屼絾鏈仛浠讳綍鍏朵粬澶勭悊鍓�
* @property load - 瀹屾垚鍔犺浇锛屾墽琛屾墍鏈夊唴閮ㄥ鐞嗗悗
+ * @property highlightOpen - highlight楂樹寒鍚�
+ * @property highlightClose - highlight鍏抽棴鍚�
*/
type EventType = {
閫氱敤: BaseGraphicLayer.EventType;
@@ -10263,6 +10584,8 @@
allTilesLoaded: string;
loadBefore: string;
load: string;
+ highlightOpen: string;
+ highlightClose: string;
};
}
@@ -10324,8 +10647,8 @@
* @param [options.marsJzwStyle = false] - 寮�鍚垨璁剧疆寤虹瓚鐗╃壒鏁堟牱寮忋��
* @param [options.highlight] - 楂樹寒鍙婂叾鏍峰紡閰嶇疆
* @param [options.highlight.type] - 榧犳爣绉诲叆楂樹寒 鎴� 鍗曞嚮楂樹寒(type:'click')
+ * @param [options.highlight.all] - 鏄惁鏁翠綋楂樹寒锛� true:妯″瀷鏁翠綋鍏ㄩ儴楂樹寒锛宖alse:鍗曚釜鏋勪欢楂樹寒
* @param [options.highlight.color = '#FFFF00'] - 棰滆壊锛屾敮鎸乺gba瀛楃涓�
- * @param [options.highlight.opacity = 1.0] - 閫忔槑搴�
* @param [options.highlight.outlineEffect = false] - 榛樿涓轰慨鏀圭煝閲忓璞℃湰韬殑style楂樹寒锛宼rue鏃堕噰鐢▄@link OutlineEffect}鏂瑰紡楂樹寒銆�
* @param [options.highlight.鍏朵粬] - outlineEffect:true鏃跺搴旂殑鍙傛暟淇℃伅
* @param [options.clampToGround] - 鏄惁璐村湴,true鏃惰嚜鍔ㄨ皟鐢ㄨ创鍦拌绠楋紝浣嗘灞炴�у彧閫傚悎鏍囧噯鐨勪笌鍦板舰鏁版嵁鍖归厤鐨勬ā鍨嬶紝骞朵笉绮剧‘锛屽缓璁�氳繃妯″瀷缂栬緫椤甸潰璋冭瘯缁欏叿浣撻珮搴﹀�笺��
@@ -10362,8 +10685,8 @@
clippingPlanes?: ClippingPlaneCollection;
classificationType?: ClassificationType;
pointCloudShading?: any;
- imageBasedLightingFactor?: Cartesian2;
- lightColor?: Cartesian3;
+ imageBasedLightingFactor?: Cesium.Cartesian2;
+ lightColor?: Cesium.Cartesian3;
luminanceAtZenith?: number;
sphericalHarmonicCoefficients?: Cartesian3[];
specularEnvironmentMaps?: string;
@@ -10389,8 +10712,8 @@
marsJzwStyle?: boolean | string;
highlight?: {
type?: string;
+ all?: boolean;
color?: string;
- opacity?: number;
outlineEffect?: boolean;
鍏朵粬?: OutlineEffect.Options;
};
@@ -10506,9 +10829,10 @@
/**
* 楂樹寒瀵硅薄銆�
* @param [highlightStyle] - 楂樹寒鐨勬牱寮忥紝鍏蜂綋瑙佸悇{@link GraphicType}鐭㈤噺鏁版嵁鐨剆tyle鍙傛暟銆�
+ * @param [closeLast = true] - 鏄惁娓呴櫎鍦板浘涓婁笂涓�娆$殑楂樹寒瀵硅薄
* @returns 鏃�
*/
- openHighlight(highlightStyle?: any): void;
+ openHighlight(highlightStyle?: any, closeLast?: boolean): void;
/**
* 娓呴櫎宸查�変腑鐨勯珮浜�
* @returns 鏃�
@@ -10544,7 +10868,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -10675,7 +10999,7 @@
/**
* 瀛愬浘灞傜殑涓暟
*/
- readonly length: Int;
+ readonly length: number;
/**
* 鏄惁鍙互璋冩暣閫忔槑搴�
*/
@@ -10708,10 +11032,15 @@
*/
eachLayer(method: (...params: any[]) => any, context: any): this;
/**
- * 鑾峰彇鎵�鏈夊瓙鍥惧眰瀵硅薄
+ * 鑾峰彇鎵�鏈夊唴缃瓙鍥惧眰瀵硅薄
* @returns } 鎵�鏈夊瓙鍥惧眰瀵硅薄
*/
getLayers(): BaseLayer[];
+ /**
+ * 鑾峰彇鍦板浘鎵�鏈夌殑瀛愬浘灞傚璞�(鍖呮嫭pid鍜宨d鍏宠仈鐨勫浘灞�)
+ * @returns } 鎵�鏈夊瓙鍥惧眰瀵硅薄
+ */
+ getChildLayers(): BaseLayer[];
/**
* 鏍规嵁ID鎴栧彇鍥惧眰
* @param id - 鍥惧眰id鎴杣uid
@@ -10731,6 +11060,43 @@
* @returns 鏄惁鍚屽悕
*/
hasLayer(name: string, excludedLayer?: BaseLayer): boolean;
+ /**
+ * 鑾峰彇鍥惧眰鍐呮墍鏈夋暟鎹殑 鐭╁舰杈圭晫鍊�
+ * @param [isFormat = false] - 鏄惁鏍煎紡鍖栵紝鏍煎紡鍖栨椂绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
+ * @returns isFormat锛歵rue鏃讹紝杩斿洖鏍煎紡鍖栧璞★紝isFormat锛歠alse鏃惰繑鍥濩esium.Rectangle瀵硅薄
+ */
+ getRectangle(isFormat?: boolean): Cesium.Rectangle | any;
+ /**
+ * 椋炶瀹氫綅鑷冲浘灞傛暟鎹墍鍦ㄧ殑瑙嗚
+ * @param [options = {}] - 鍙傛暟瀵硅薄:
+ * @param options.radius - 鐐圭姸鏁版嵁鏃讹紝鐩告満璺濈鐩爣鐐圭殑璺濈锛堝崟浣嶏細绫筹級
+ * @param [options.scale = 1.8] - 绾块潰鏁版嵁鏃讹紝缂╂斁姣斾緥锛屽彲浠ユ帶鍒惰瑙掓瘮鐭╁舰鐣ュぇ涓�浜涳紝杩欐牱鏁堟灉鏇村弸濂姐��
+ * @param [options.duration] - 椋炶鏃堕棿锛堝崟浣嶏細绉掞級銆傚鏋滅渷鐣ワ紝SDK鍐呴儴浼氭牴鎹琛岃窛绂昏绠楀嚭鐞嗘兂鐨勯琛屾椂闂淬��
+ * @param [options.complete] - 椋炶瀹屾垚鍚庤鎵ц鐨勫嚱鏁般��
+ * @param [options.cancel] - 椋炶鍙栨秷鏃惰鎵ц鐨勫嚱鏁般��
+ * @param [options.endTransform] - 鍙樻崲鐭╅樀琛ㄧず椋炶缁撴潫鏃剁浉鏈烘墍澶勭殑鍙傜収绯汇��
+ * @param [options.maximumHeight] - 椋炶楂樺嘲鏃剁殑鏈�澶ч珮搴︺��
+ * @param [options.pitchAdjustHeight] - 濡傛灉鐩告満椋炲緱姣旇繖涓�奸珮锛屽湪椋炶杩囩▼涓皟鏁翠刊浠颁互鍚戜笅鐪嬶紝骞朵繚鎸佸湴鐞冨湪瑙嗗彛銆�
+ * @param [options.flyOverLongitude] - 鍦扮悆涓婄殑涓ょ偣涔嬮棿鎬绘湁涓ゆ潯璺�傝繖涓�夐」杩娇鐩告満閫夋嫨鎴樻枟鏂瑰悜椋炶繃閭d釜缁忓害銆�
+ * @param [options.flyOverLongitudeWeight] - 浠呭湪閫氳繃flyOverLongitude鎸囧畾鐨刲on涓婄┖椋炶锛屽彧瑕佽鏂瑰紡鐨勬椂闂翠笉瓒呰繃flyOverLongitudeWeight鐨勭煭閫旀椂闂淬��
+ * @param [options.convert = true] - 鏄惁灏嗙洰鐨勫湴浠庝笘鐣屽潗鏍囪浆鎹负鍦烘櫙鍧愭爣锛堜粎鍦ㄤ笉浣跨敤3D鏃剁浉鍏筹級銆�
+ * @param [options.easingFunction] - 鎺у埗鍦ㄩ琛岃繃绋嬩腑濡備綍鎻掑�兼椂闂淬��
+ * @returns 褰撳墠瀵硅薄鏈韩锛屽彲浠ラ摼寮忚皟鐢�
+ */
+ flyTo(options?: {
+ radius: number;
+ scale?: number;
+ duration?: number;
+ complete?: Cesium.Camera.FlightCompleteCallback;
+ cancel?: Cesium.Camera.FlightCancelledCallback;
+ endTransform?: Cesium.Matrix4;
+ maximumHeight?: number;
+ pitchAdjustHeight?: number;
+ flyOverLongitude?: number;
+ flyOverLongitudeWeight?: number;
+ convert?: boolean;
+ easingFunction?: Cesium.EasingFunction.Callback;
+ }): this;
}
/**
@@ -11053,6 +11419,8 @@
* @property click - 榧犳爣鍗曞嚮浜嬩欢銆怶MS绛夊姩鎬佹湇鍔nablePickFeatures:true鏃�,鏀寔鍗曞嚮鑾峰彇瀵瑰簲鐨勭煝閲忓璞°��
* @property popupOpen - 褰撳瓨鍦╬opup鏃讹紝popup寮圭獥鎵撳紑鍚�
* @property popupClose - 褰撳瓨鍦╬opup鏃讹紝popup寮圭獥鍏抽棴
+ * @property highlightOpen - highlight楂樹寒鍚�
+ * @property highlightClose - highlight鍏抽棴鍚�
*/
type EventType = {
add: string;
@@ -11066,6 +11434,8 @@
click: string;
popupOpen: string;
popupClose: string;
+ highlightOpen: string;
+ highlightClose: string;
};
}
@@ -11153,9 +11523,10 @@
/**
* 楂樹寒瀵硅薄銆�
* @param [highlightStyle] - 楂樹寒鐨勬牱寮忥紝鍏蜂綋瑙佸悇{@link GraphicType}鐭㈤噺鏁版嵁鐨剆tyle鍙傛暟銆�
+ * @param [closeLast = true] - 鏄惁娓呴櫎鍦板浘涓婁笂涓�娆$殑楂樹寒瀵硅薄
* @returns 鏃�
*/
- openHighlight(highlightStyle?: any): void;
+ openHighlight(highlightStyle?: any, closeLast?: boolean): void;
/**
* 娓呴櫎宸查�変腑鐨勯珮浜�
* @returns 鏃�
@@ -11194,7 +11565,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -11918,27 +12289,18 @@
rotateCamera(type: MoveType): void;
/**
* 鐩告満鏃嬭浆鐨勭被鍨�
- * @property ENLARGE - 鍚戝睆骞曚腑蹇冮潬杩�
- * @property NARROW - 鍚戝睆骞曚腑蹇冭繙绂�
- * @property LEFT_ROTATE - 鐩告満鍘熷湴宸︽棆杞�
- * @property RIGHT_ROTATE - 鐩告満鍘熷湴鍙虫棆杞�
- * @property TOP_ROTATE - 鐩告満鍘熷湴涓婃棆杞�
- * @property BOTTOM_ROTATE - 鐩告満鍘熷湴涓嬫棆杞�
*/
- static MoveType: {
- ENLARGE: Int;
- NARROW: Int;
- LEFT_ROTATE: Int;
- RIGHT_ROTATE: Int;
- TOP_ROTATE: Int;
- BOTTOM_ROTATE: Int;
- };
+ static MoveType: MoveType;
}
/**
* 鍦板浘榧犳爣浜嬩欢 缁熶竴绠$悊绫�
*/
declare class MouseEvent {
+ /**
+ * 榧犳爣绉诲姩浜嬩欢鐨勫欢杩熸绉掓暟
+ */
+ moveDelay: number;
/**
* 鏄惁寮�鍚紶鏍囩Щ鍔ㄤ簨浠剁殑鎷惧彇鐭㈤噺鏁版嵁
*/
@@ -12402,7 +12764,7 @@
/**
* 鑾峰彇褰撳墠鍦板浘灞傜骇锛堟鐣ワ級锛屼竴鑸负0-21灞�
*/
- readonly level: Int;
+ readonly level: number;
/**
* 鏄惁鍥哄畾鍏夌収锛�
* true锛氬彲閬垮厤gltf銆�3dtiles妯″瀷闅忔椂闂村瓨鍦ㄤ寒搴︿笉涓�鑷淬��
@@ -12434,13 +12796,20 @@
*/
getCenter(): LatLngPoint;
/**
+ * 鍙栫浉鏈哄埌灞忓箷涓績鐐圭殑璺濈
+ * @returns 鐩告満鍒板睆骞曚腑蹇冪偣鐨勮窛绂伙紝鍗曚綅锛氱背
+ */
+ getCameraDistance(): number;
+ /**
* 鎻愬彇鍦扮悆褰撳墠瑙嗗煙杈圭晫,绀轰緥锛歿 xmin: 70, xmax: 140, ymin: 0, ymax: 55, height: 0, }
* @param [options = {}] - 鍙傛暟瀵硅薄:
* @param [options.formatNum = false] - 鏄惁鏍煎紡鍖栧皬鏁颁綅锛屽彧淇濈暀6浣嶅皬鏁�
+ * @param [options.scale = 1] - 閫氳繃鍦ㄦ瘡涓柟鍚戜笂鎸夌粰瀹氭瘮渚嬫墿灞曞綋鍓嶈竟鐣岋紝0.x鏃惰繑鍥炵缉灏忕殑姣斾緥杈圭晫锛屽ぇ浜�1鏃惰繑鍥炴斁澶х殑杈圭晫
* @returns 褰撳墠瑙嗗煙杈圭晫
*/
getExtent(options?: {
formatNum?: boolean;
+ scale?: number;
}): any;
/**
* 鎴浘锛屽鍑哄湴鍥惧満鏅浘鐗�
@@ -12492,7 +12861,7 @@
* 娌℃湁id鐨勫浘灞傦紝浼氳嚜鍔ㄤ娇鐢ㄦ湰鏂规硶杩涜id璧嬪�煎鐞�
* @returns 鍥惧眰ID
*/
- getNextLayerId(): Int;
+ getNextLayerId(): number;
/**
* 娣诲姞鍥惧眰鍒板湴鍥句笂
* @param layer - 鍥惧眰瀵硅薄
@@ -12745,7 +13114,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -12810,7 +13179,7 @@
}[], options?: {
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -12871,7 +13240,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -12913,7 +13282,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -12964,7 +13333,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -13001,7 +13370,7 @@
clampToGround?: boolean;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -13039,9 +13408,10 @@
}): void;
/**
* 娓呴櫎宸查珮浜殑鐭㈤噺瀵硅薄
+ * @param [result] - 浜嬩欢瀵硅薄
* @returns 鏃�
*/
- closeHighlight(): void;
+ closeHighlight(result?: any): void;
/**
* 楂樹寒鐭㈤噺瀵硅薄
* @param graphic - 鐭㈤噺瀵硅薄
@@ -13383,11 +13753,13 @@
* @param options - 鍙傛暟瀵硅薄锛屽寘鎷互涓嬶細
* @param options.image - 鑳屾櫙鍥剧墖URL
* @param [options.opacity = 1] - 閫忔槑搴�
+ * @param [options.color = Cesium.Color.WHITE] - 棰滆壊
*/
declare class Image2MaterialProperty extends BaseMaterialProperty {
constructor(options: {
image: string;
opacity?: number;
+ color?: string | Cesium.Color;
});
/**
* 鑾峰彇 鏉愯川鍚嶇О
@@ -13457,6 +13829,7 @@
* @param [options.speed = 2] - 閫熷害锛屽�艰秺澶ц秺蹇�
* @param [options.percent = 0.04] - 姣斾緥
* @param [options.alpha = 0.1] - 閫忔槑绋嬪害 0.0-1.0
+ * @param [options.startTime = 0] - 寮�濮嬬殑鏃堕棿绯绘暟
*/
declare class LineFlowColorMaterialProperty extends BaseMaterialProperty {
constructor(options: {
@@ -13464,6 +13837,7 @@
speed?: number;
percent?: number;
alpha?: number;
+ startTime?: number;
});
/**
* 鑾峰彇 鏉愯川鍚嶇О
@@ -13798,9 +14172,9 @@
fill?: boolean;
color?: string;
stroke?: boolean;
- strokeColor?: Color;
+ strokeColor?: Cesium.Color;
strokeWidth?: number;
- backgroundColor?: Color;
+ backgroundColor?: Cesium.Color;
outlineWidth?: number;
outlineColor?: Cesium.Color;
padding?: number;
@@ -13975,11 +14349,11 @@
font_style?: string;
font?: string;
fill?: boolean;
- fillColor?: Color;
+ fillColor?: Cesium.Color;
stroke?: boolean;
- strokeColor?: Color;
+ strokeColor?: Cesium.Color;
strokeWidth?: number;
- backgroundColor?: Color;
+ backgroundColor?: Cesium.Color;
outlineWidth?: number;
outlineColor?: Cesium.Color;
padding?: number;
@@ -14311,7 +14685,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -14398,6 +14772,20 @@
* @returns 鏃�
*/
remove(destroy: boolean): void;
+}
+
+/**
+ * 瑙嗛敟浣撶殑绫诲瀷
+ */
+declare const enum SensorType {
+ /**
+ * 鍥涙1閿�
+ */
+ Rect = 0,
+ /**
+ * 鍦嗛敟
+ */
+ Conic = 1
}
/**
@@ -15180,7 +15568,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -15412,7 +15800,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -15527,7 +15915,7 @@
duration?: number;
complete?: Cesium.Camera.FlightCompleteCallback;
cancel?: Cesium.Camera.FlightCancelledCallback;
- endTransform?: Matrix4;
+ endTransform?: Cesium.Matrix4;
maximumHeight?: number;
pitchAdjustHeight?: number;
flyOverLongitude?: number;
@@ -15585,6 +15973,72 @@
});
}
+declare namespace BaseWidget {
+ /**
+ * widget 閰嶇疆鍙傛暟
+ * @property name - 蹇呴』锛屼腑鏂囧悕绉帮紝鐢ㄤ簬鏍囪瘑鍜屽脊绐楁爣棰樸��
+ * @property uri - 蹇呴』锛孞S鏂囦欢璺緞锛岃矾寰勬槸鐩稿浜巜idgets鐩綍鐨勮矾寰勩�傚锛�"widgets/bookmark/widget.js"
+ * @property [id] - 瀹氫箟璇ユ彃浠剁殑鍞竴鏍囪瘑,鏂逛究鍚庣画鍒ゆ柇銆�
+ * @property [autoDisable = true] - 婵�娲诲叾浠栨柊鎻掍欢鏃讹紝鏄惁鑷姩閲婃斁鏈彃浠�
+ * @property [disableOther = true] - 婵�娲绘湰鎻掍欢鏃讹紝鏄惁閲婃斁鍏跺畠宸叉縺娲荤殑鎻掍欢
+ * @property [group] - 閰嶇疆group鍚庯紝鍚実roup涓嬬殑widget浜掓枼锛屾墦寮�浠绘剰涓�涓細鑷姩閲婃斁鍏朵粬鐨�
+ * @property [windowOptions] - 瀛樺湪寮圭獥鐨勬彃浠剁殑寮圭獥鐩稿叧鍙傛暟閰嶇疆锛屾洿澶氬弬鏁拌鍙傝�� [layer寮圭獥API]{@link https://www.layui.com/doc/modules/layer.html} 鍖呮嫭锛�
+ * @property [windowOptions.width] - 绐楀彛瀹藉害锛屽彲浠ユ槸 鍍忕礌鏁板瓧(鍍忕礌鍊�) 鎴栬�� 瀛楃涓�(灞忓箷瀹藉害鐧惧垎姣�)锛岀ず渚嬶細200 鎴� "20%"
+ * @property [windowOptions.height] - 绐楀彛楂樺害锛屽彲浠ユ槸 鍍忕礌鏁板瓧(鍍忕礌鍊�) 鎴栬�� 瀛楃涓�(灞忓箷楂樺害鐧惧垎姣�)锛岀ず渚嬶細600 鎴� "50%"
+ * @property [windowOptions.position = 'auto'] - 绐楀彛鎵�鍦ㄤ綅缃潗鏍囷紝閰嶇疆瀛楃涓插彲閫夊�硷細auto鍨傜洿姘村钩灞呬腑锛宼椤堕儴,b搴曢儴,r鍙宠竟缂�,l宸﹁竟缂�,lt宸︿笂瑙�,lb宸︿笅瑙�,rt鍙充笂瑙�,rb鍙充笅瑙掞紱涔熷彲浠ラ厤缃璞★細
+ * @property [windowOptions.position.top] - 浣嶇疆css鐨則op鍊硷紝鍙互鏄� 鍍忕礌鏁板瓧(鍍忕礌鍊�) 鎴栬�� 瀛楃涓�(灞忓箷楂樺害鐧惧垎姣�)锛岀ず渚嬶細10 鎴� "5%"
+ * @property [windowOptions.position.bottom] - 浣嶇疆css鐨則op鍊硷紝鍙互鏄� 鍍忕礌鏁板瓧(鍍忕礌鍊�) 鎴栬�� 瀛楃涓�(灞忓箷楂樺害鐧惧垎姣�)锛岀ず渚嬶細10 鎴� "5%"
+ * @property [windowOptions.position.left] - 浣嶇疆css鐨則op鍊硷紝鍙互鏄� 鍍忕礌鏁板瓧(鍍忕礌鍊�) 鎴栬�� 瀛楃涓�(灞忓箷瀹藉害鐧惧垎姣�)锛岀ず渚嬶細10 鎴� "5%"
+ * @property [windowOptions.position.right] - 浣嶇疆css鐨則op鍊硷紝鍙互鏄� 鍍忕礌鏁板瓧(鍍忕礌鍊�) 鎴栬�� 瀛楃涓�(灞忓箷瀹藉害鐧惧垎姣�)锛岀ず渚嬶細10 鎴� "5%"
+ * @property [windowOptions.minHeight] - 闄愬畾鐨勭獥鍙f渶灏忛珮搴�(鍍忕礌鍊�)锛岄粯璁や笉闄愬埗
+ * @property [windowOptions.maxHeight] - 闄愬畾鐨勭獥鍙f渶澶ч珮搴�(鍍忕礌鍊�)锛岄粯璁や笉闄愬埗
+ * @property [windowOptions.minWidth] - 闄愬畾鐨勭獥鍙f渶灏忓搴�(鍍忕礌鍊�)锛岄粯璁や笉闄愬埗
+ * @property [windowOptions.maxWidth] - 闄愬畾鐨勭獥鍙f渶澶у搴�(鍍忕礌鍊�)锛岄粯璁や笉闄愬埗
+ * @property [windowOptions.maxmin = true] - 鏄惁鍙互鍦ㄥ脊灞傚彸涓嬭鎷栧姩鏉ユ媺浼稿昂瀵�
+ * @property [windowOptions.shade = 0] - 閬僵锛岄粯璁や负0涓嶆樉绀猴紝鍙厤缃暟瀛�0.3閫忔槑搴︾殑榛戣壊鑳屾櫙锛�'#000'锛夛紝鍏朵粬棰滆壊锛屽彲浠hade: [0.8, '#393D49']
+ * @property [windowOptions.shade = false] - 褰搒hade鏄瓨鍦ㄧ殑锛岀偣鍑诲脊灞傚鍖哄煙鍚庢槸鍚﹀叧闂脊绐椼��
+ * @property [windowOptions.closeBtn = 1] - 褰撲负0鏃讹紝涓嶆樉绀哄叧闂寜閽紝閰嶇疆1鍜�2鏉ュ睍绀轰袱绉嶉鏍肩殑鍏抽棴鎸夐挳
+ * @property [windowOptions.noTitle = false] - 鏄惁涓嶆樉绀烘爣棰橈紝涓簍rue鏄笉鏄剧ず鏍囬
+ * @property [openAtStart = false] - 鎵撳紑绯荤粺鍚庢槸鍚﹁嚜鍔ㄥ惎鍔ㄦ湰鎻掍欢
+ * @property [style] - 娣诲姞鍒皐idget鐨剉iew涓殑class鏍峰紡鍚�
+ * @property [css] - 娣诲姞鍒皐idget鐨刢ss鍊�
+ * @property [show = true] - 婵�娲诲悗鏄惁鏄剧ず寮圭獥锛宖alse鏃舵縺娲诲悗鑷姩闅愯棌寮圭獥銆�
+ * @property [鍏朵粬] - 浼犲叆鏁版嵁绛夛紝瀹氫箟鐨勪换鎰忓弬鏁板湪widget鍐呴儴鏂规硶涓兘鍙互閫氳繃this.config鑾峰彇鍒�
+ */
+ type widgetOptions = {
+ name: string;
+ uri: string;
+ id?: string;
+ autoDisable?: boolean;
+ disableOther?: boolean;
+ group?: string;
+ windowOptions?: {
+ width?: number | string;
+ height?: number | string;
+ position?: {
+ top?: number | string;
+ bottom?: number | string;
+ left?: number | string;
+ right?: number | string;
+ };
+ minHeight?: number;
+ maxHeight?: number;
+ minWidth?: number;
+ maxWidth?: number;
+ maxmin?: boolean;
+ shade?: boolean;
+ shade?: boolean;
+ closeBtn?: number;
+ noTitle?: number;
+ };
+ openAtStart?: boolean;
+ style?: string;
+ css?: any;
+ show?: boolean;
+ 鍏朵粬?: any;
+ };
+}
+
/**
* widget鍩虹绫�,
* 闇�瑕佺户鎵垮悗浣跨敤锛屼笉鐢ㄦ墜鍔ㄥ疄渚嬪寲锛屾鏋跺唴閮ㄨ嚜鍔ㄥ疄渚嬪寲鍙婄浉鍏冲鐞嗐��
@@ -15627,7 +16081,7 @@
* @param options - 閰嶇疆鍙傛暟
*/
declare class BaseWidget extends BaseClass {
- constructor(map: Map, options: widget.WidgetOptions);
+ constructor(map: Map, options: BaseWidget.widgetOptions);
/**
* 鑾峰彇褰撳墠鍦板浘
*/
@@ -15635,11 +16089,11 @@
/**
* 鑾峰彇褰撳墠閰嶇疆鍙傛暟
*/
- readonly options: widget.WidgetOptions;
+ readonly options: BaseWidget.widgetOptions;
/**
* 鑾峰彇褰撳墠閰嶇疆鍙傛暟锛屽埆鍚嶏紝鍚宱ptions
*/
- readonly config: widget.WidgetOptions;
+ readonly config: BaseWidget.widgetOptions;
/**
* 鑾峰彇褰撳墠widget鐨勭洰褰曡矾寰�
*/
@@ -15771,327 +16225,46 @@
}
/**
- * 浜嬩欢绫诲瀷 鏋氫妇锛堟墍鏈変簨浠剁粺涓�鐨勫叆鍙o級
+ * widget浜嬩欢绫诲瀷鏋氫妇, mars3d.widget.EventType
+ * 銆愰渶瑕佸紩鍏� mars3d-widget 鎻掍欢搴撱��
*/
-declare const enum EventType {
+declare const enum WidgetEventType {
/**
- * 娣诲姞瀵硅薄
+ * 鍦ㄥ疄渚嬪垵濮嬪寲涔嬪悗銆佸垱寤轰箣鍓嶆墽琛�
*/
- add = "add",
+ beforeCreate = "beforeCreate",
/**
- * 绉婚櫎瀵硅薄
+ * 瀹炰緥鍒涘缓鍚庢墽琛�
*/
- remove = "remove",
+ created = "created",
/**
- * 娣诲姞鐭㈤噺鏁版嵁鏃禰鍥惧眰涓婄洃鍚椂浣跨敤]
+ * 鍦╝ctivat鎸傝浇寮�濮嬩箣鍓嶈皟鐢�
*/
- addGraphic = "addGraphic",
+ beforeActivate = "beforeActivate",
/**
- * 绉婚櫎鐭㈤噺鏁版嵁鏃禰鍥惧眰涓婄洃鍚椂浣跨敤]
+ * activate鏂规硶璋冪敤鍚�
*/
- removeGraphic = "removeGraphic",
+ activated = "activated",
/**
- * 娣诲姞鍥惧眰[map涓婄洃鍚椂浣跨敤]
+ * view寮圭獥鏋勯�犲畬鎴愬悗鍚庤皟鐢�
*/
- addLayer = "addLayer",
+ openView = "openView",
/**
- * 绉婚櫎鍥惧眰[map涓婄洃鍚椂浣跨敤]
+ * 瀹炰緥閿�姣佷箣鍓嶈皟鐢�
*/
- removeLayer = "removeLayer",
+ beforeDisable = "beforeDisable",
/**
- * 鏇存柊浜嗗璞�
+ * 瀹炰緥閿�姣佸畬鎴愯皟鐢�
*/
- update = "update",
+ disabled = "disabled",
/**
- * 鏇存柊浜唖tyle瀵硅薄
- */
- updateStyle = "updateStyle",
- /**
- * 鏇存柊浜哸ttr瀵硅薄
- */
- updateAttr = "updateAttr",
- /**
- * 鏄剧ず浜嗗璞�
- */
- show = "show",
- /**
- * 闅愯棌浜嗗璞�
- */
- hide = "hide",
- /**
- * 寮�濮�
- */
- start = "start",
- /**
- * 鍙樺寲浜�
- */
- change = "change",
- /**
- * 澶氫釜鏁版嵁寮傛鍒嗘瀽鏃讹紝瀹屾垚鍏朵腑涓�涓椂鐨勫洖璋冧簨浠�
- */
- endItem = "endItem",
- /**
- * 澶氫釜鏁版嵁寮傛鍒嗘瀽鏃讹紝瀹屾垚鎵�鏈夌殑鍥炶皟浜嬩欢
- */
- end = "end",
- /**
- * 瀹屾垚
- */
- stop = "stop",
- /**
- * 瀹屾垚鍔犺浇锛屼絾鏈仛浠讳綍鍏朵粬澶勭悊鍓�
+ * 鍔犺浇瀹屾垚 鏈仛浠讳綍鍏朵粬澶勭悊鍓�
*/
loadBefore = "loadBefore",
/**
- * 瀹屾垚鍔犺浇锛屾墽琛屾墍鏈夊唴閮ㄥ鐞嗗悗
+ * 鍔犺浇瀹屾垚锛屾墽琛屾墍鏈夊唴閮ㄥ鐞嗗悗
*/
- load = "load",
- /**
- * 鍑洪敊浜�
- */
- error = "error",
- /**
- * 瀹屾垚鍔犺浇閰嶇疆淇℃伅
- */
- loadConfig = "loadConfig",
- /**
- * popup寮圭獥鎵撳紑鍚�
- */
- popupOpen = "popupOpen",
- /**
- * popup寮圭獥鍏抽棴
- */
- popupClose = "popupClose",
- /**
- * tooltip寮圭獥鎵撳紑鍚�
- */
- tooltipOpen = "tooltipOpen",
- /**
- * tooltip寮圭獥鍏抽棴
- */
- tooltipClose = "tooltipClose",
- /**
- * 宸﹂敭鍗曞嚮 榧犳爣浜嬩欢
- */
- click = "click",
- /**
- * 宸﹂敭鍗曞嚮鍒扮煝閲忔垨妯″瀷鏁版嵁鏃� 榧犳爣浜嬩欢
- */
- clickGraphic = "clickGraphic",
- /**
- * 宸﹂敭鍗曞嚮鍒皐ms鎴朼rcgis鐡︾墖鏈嶅姟鐨勫搴旂煝閲忔暟鎹椂
- */
- clickTileGraphic = "clickTileGraphic",
- /**
- * 宸﹂敭鍗曞嚮鍦板浘绌虹櫧锛堟湭鍗曞嚮鍒扮煝閲忔垨妯″瀷鏁版嵁锛夋椂 榧犳爣浜嬩欢
- */
- clickMap = "clickMap",
- /**
- * 宸﹂敭鍙屽嚮 榧犳爣浜嬩欢
- */
- dblClick = "dblClick",
- /**
- * 宸﹂敭榧犳爣鎸変笅 榧犳爣浜嬩欢
- */
- leftDown = "leftDown",
- /**
- * 宸﹂敭榧犳爣鎸変笅鍚庨噴鏀� 榧犳爣浜嬩欢
- */
- leftUp = "leftUp",
- /**
- * 榧犳爣绉诲姩 榧犳爣浜嬩欢
- */
- mouseMove = "mouseMove",
- /**
- * 榧犳爣绉诲姩锛堟嬀鍙栫洰鏍囷紝骞跺欢杩熷鐞嗭級 榧犳爣浜嬩欢
- */
- mouseMoveTarget = "mouseMoveTarget",
- /**
- * 榧犳爣婊氳疆婊氬姩 榧犳爣浜嬩欢
- */
- wheel = "wheel",
- /**
- * 鍙抽敭鍗曞嚮 榧犳爣浜嬩欢
- */
- rightClick = "rightClick",
- /**
- * 鍙抽敭榧犳爣鎸変笅 榧犳爣浜嬩欢
- */
- rightDown = "rightDown",
- /**
- * 鍙抽敭榧犳爣鎸変笅鍚庨噴鏀� 榧犳爣浜嬩欢
- */
- rightUp = "rightUp",
- /**
- * 涓敭鍗曞嚮 榧犳爣浜嬩欢
- */
- middleClick = "middleClick",
- /**
- * 涓敭榧犳爣鎸変笅 榧犳爣浜嬩欢
- */
- middleDown = "middleDown",
- /**
- * 涓敭榧犳爣鎸変笅鍚庨噴鏀� 榧犳爣浜嬩欢
- */
- middleUp = "middleUp",
- /**
- * 鍦ㄨЕ鎽稿睆涓婁袱鎸囩缉鏀惧紑濮� 榧犳爣浜嬩欢
- */
- pinchStart = "pinchStart",
- /**
- * 鍦ㄨЕ鎽稿睆涓婁袱鎸囩缉鏀剧粨鏉� 榧犳爣浜嬩欢
- */
- pinchEnd = "pinchEnd",
- /**
- * 鍦ㄨЕ鎽稿睆涓婁袱鎸囩Щ鍔� 榧犳爣浜嬩欢
- */
- pinchMove = "pinchMove",
- /**
- * 榧犳爣鎸変笅 [宸︿腑鍙�3閿兘瑙﹀彂] 榧犳爣浜嬩欢
- */
- mouseDown = "mouseDown",
- /**
- * 榧犳爣鎸変笅鍚庨噴鏀� [宸︿腑鍙�3閿兘瑙﹀彂] 榧犳爣浜嬩欢
- */
- mouseUp = "mouseUp",
- /**
- * 榧犳爣绉诲叆 榧犳爣浜嬩欢
- */
- mouseOver = "mouseOver",
- /**
- * 榧犳爣绉诲嚭 榧犳爣浜嬩欢
- */
- mouseOut = "mouseOut",
- /**
- * 鎸夐敭鎸変笅 閿洏浜嬩欢
- */
- keydown = "keydown",
- /**
- * 鎸夐敭鎸変笅鍚庨噴鏀� 閿洏浜嬩欢
- */
- keyup = "keyup",
- /**
- * 寮�濮嬬粯鍒� 鏍囩粯浜嬩欢
- */
- drawStart = "drawStart",
- /**
- * 姝e湪绉诲姩榧犳爣涓紝缁樺埗杩囩▼涓紶鏍囩Щ鍔ㄤ簡鐐� 鏍囩粯浜嬩欢
- */
- drawMouseMove = "drawMouseMove",
- /**
- * 缁樺埗杩囩▼涓鍔犱簡鐐� 鏍囩粯浜嬩欢
- */
- drawAddPoint = "drawAddPoint",
- /**
- * 缁樺埗杩囩▼涓垹闄や簡鏈�鍚庝竴涓偣 鏍囩粯浜嬩欢
- */
- drawRemovePoint = "drawRemovePoint",
- /**
- * 鍒涘缓瀹屾垚 鏍囩粯浜嬩欢
- */
- drawCreated = "drawCreated",
- /**
- * 寮�濮嬬紪杈� 鏍囩粯浜嬩欢
- */
- editStart = "editStart",
- /**
- * 绉诲姩榧犳爣鎸変笅宸﹂敭锛圠EFT_DOWN锛夋爣缁樹簨浠�
- */
- editMouseDown = "editMouseDown",
- /**
- * 姝e湪绉诲姩榧犳爣涓紝姝e湪缂栬緫鎷栨嫿淇敼鐐逛腑锛圡OUSE_MOVE锛� 鏍囩粯浜嬩欢
- */
- editMouseMove = "editMouseMove",
- /**
- * 缂栬緫淇敼浜嗙偣锛圠EFT_UP锛夋爣缁樹簨浠�
- */
- editMovePoint = "editMovePoint",
- /**
- * 缂栬緫鍒犻櫎浜嗙偣 鏍囩粯浜嬩欢
- */
- editRemovePoint = "editRemovePoint",
- /**
- * 鍥句笂缂栬緫淇敼浜嗙浉鍏硈tyle灞炴�� 鏍囩粯浜嬩欢
- */
- editStyle = "editStyle",
- /**
- * 鍋滄缂栬緫 鏍囩粯浜嬩欢
- */
- editStop = "editStop",
- /**
- * 鏍囩粯浜嬩欢
- */
- move = "move",
- /**
- * 3dtiles妯″瀷锛屾ā鍨嬬摝鐗囧垵濮嬪寲瀹屾垚
- * 璇ュ洖璋冨彧鎵ц涓�娆�
- */
- initialTilesLoaded = "initialTilesLoaded",
- /**
- * 3dtiles妯″瀷,褰撳墠鎵规妯″瀷鍔犺浇瀹屾垚
- * 璇ュ洖璋冧細鎵ц澶氭锛岃瑙掑彉鍖栧悗閲嶆柊鍔犺浇涓�娆″畬鎴愬悗閮戒細鍥炶皟
- */
- allTilesLoaded = "allTilesLoaded",
- /**
- * 鏍呮牸鐡︾墖鍥惧眰锛屾坊鍔犲崟涓摝鐗囷紝寮�濮嬪姞杞界摝鐗囷紙璇锋眰鍓嶏級
- */
- addTile = "addTile",
- /**
- * 鏍呮牸鐡︾墖鍥惧眰锛屾坊鍔犲崟涓摝鐗� 鍔犺浇鐡︾墖瀹屾垚
- */
- addTileSuccess = "addTileSuccess",
- /**
- * 鏍呮牸鐡︾墖鍥惧眰锛屾坊鍔犲崟涓摝鐗� 鍔犺浇鐡︾墖鍑洪敊浜�
- */
- addTileError = "addTileError",
- /**
- * 鏍呮牸鐡︾墖鍥惧眰锛岀Щ闄ゅ崟涓摝鐗�
- */
- removeTile = "removeTile",
- /**
- * 鐩告満寮�鍚Щ鍔ㄥ墠 鍦烘櫙浜嬩欢
- */
- cameraMoveStart = "cameraMoveStart",
- /**
- * 鐩告満绉诲姩瀹屾垚鍚� 鍦烘櫙浜嬩欢
- */
- cameraMoveEnd = "cameraMoveEnd",
- /**
- * 鐩告満浣嶇疆瀹屾垚 鍦烘櫙浜嬩欢
- */
- cameraChanged = "cameraChanged",
- /**
- * 鍦烘櫙鏇存柊鍓� 鍦烘櫙浜嬩欢
- */
- preUpdate = "preUpdate",
- /**
- * 鍦烘櫙鏇存柊鍚� 鍦烘櫙浜嬩欢
- */
- postUpdate = "postUpdate",
- /**
- * 鍦烘櫙娓叉煋鍓� 鍦烘櫙浜嬩欢
- */
- preRender = "preRender",
- /**
- * 鍦烘櫙娓叉煋鍚� 鍦烘櫙浜嬩欢
- */
- postRender = "postRender",
- /**
- * 鍦烘櫙娓叉煋澶辫触锛堥渶瑕佸埛鏂伴〉闈級
- */
- renderError = "renderError",
- /**
- * 鍦烘櫙妯″紡(2D/3D/鍝ヤ鸡甯�)鍙樻崲鍓� 鍦烘櫙浜嬩欢
- */
- morphStart = "morphStart",
- /**
- * 瀹屾垚鍦烘櫙妯″紡(2D/3D/鍝ヤ鸡甯�)鍙樻崲 鍦烘櫙浜嬩欢
- */
- morphComplete = "morphComplete",
- /**
- * 鏃堕挓璺冲姩 鍦烘櫙浜嬩欢
- */
- clockTick = "clockTick"
+ load = "load"
}
/**
@@ -16148,9 +16321,9 @@
* @returns 鏃�
*/
function init(map: Map, widgetcfg?: {
- defaultOptions?: widget.WidgetOptions;
- openAtStart?: widget.WidgetOptions[];
- widgets?: widget.WidgetOptions[];
+ defaultOptions?: BaseWidget.widgetOptions;
+ openAtStart?: BaseWidget.widgetOptions[];
+ widgets?: BaseWidget.widgetOptions[];
version?: string;
debugger?: boolean;
}, _basePath?: string): void;
@@ -16180,13 +16353,13 @@
*/
function activate(item: {
map?: Map;
- }, noDisableOther?: boolean): widget.WidgetOptions;
+ }, noDisableOther?: boolean): BaseWidget.widgetOptions;
/**
* 鑾峰彇鎸囧畾鐨剋idget閰嶇疆淇℃伅
* @param uri - widget鐨剈ri 鎴� id
* @returns widget閰嶇疆淇℃伅
*/
- function getWidget(uri: string): widget.WidgetOptions;
+ function getWidget(uri: string): BaseWidget.widgetOptions;
/**
* 鑾峰彇鎸囧畾鐨剋idget 瀵瑰簲鐨勫疄渚嬪寲瀵硅薄
* @param uri - widget鐨剈ri 鎴� id
@@ -16258,7 +16431,7 @@
* @param context - 渚﹀惉鍣ㄧ殑涓婁笅鏂�(this鍏抽敭瀛楀皢鎸囧悜鐨勫璞�)銆�
* @returns 鏃�
*/
- function on(types: EventType | EventType[], fn: (...params: any[]) => any, context: any): void;
+ function on(types: WidgetEventType | WidgetEventType[], fn: (...params: any[]) => any, context: any): void;
/**
* 瑙i櫎缁戝畾鎸囧畾绫诲瀷浜嬩欢鐩戝惉鍣�
* @param types - 浜嬩欢绫诲瀷
@@ -16266,7 +16439,7 @@
* @param context - 渚﹀惉鍣ㄧ殑涓婁笅鏂�(this鍏抽敭瀛楀皢鎸囧悜鐨勫璞�)銆�
* @returns 鏃�
*/
- function off(types: EventType | EventType[], fn: (...params: any[]) => any, context: any): void;
+ function off(types: WidgetEventType | WidgetEventType[], fn: (...params: any[]) => any, context: any): void;
/**
* 瑙﹀彂鎸囧畾绫诲瀷鐨勪簨浠躲��
* @param type - 浜嬩欢绫诲瀷
@@ -16274,7 +16447,7 @@
* @param [propagate = null] - 灏嗕簨浠朵紶鎾粰鐖剁被 (鐢╝ddEventParent璁剧疆)
* @returns 鏃�
*/
- function fire(type: EventType, data: any, propagate?: BaseClass): void;
+ function fire(type: WidgetEventType, data: any, propagate?: BaseClass): void;
/**
* 缁戝畾涓�娆℃�ф墽琛岀殑鎸囧畾绫诲瀷浜嬩欢鐩戝惉鍣�
* 涓巓n绫讳技锛岀洃鍚櫒鍙細琚Е鍙戜竴娆★紝鐒跺悗琚垹闄ゃ��
@@ -16283,14 +16456,14 @@
* @param context - 渚﹀惉鍣ㄧ殑涓婁笅鏂�(this鍏抽敭瀛楀皢鎸囧悜鐨勫璞�)銆�
* @returns 鏃�
*/
- function once(types: EventType | EventType[], fn: (...params: any[]) => any, context: any): void;
+ function once(types: WidgetEventType | WidgetEventType[], fn: (...params: any[]) => any, context: any): void;
/**
* 鏄惁鏈夌粦瀹氭寚瀹氱殑浜嬩欢
* @param type - 浜嬩欢绫诲瀷
* @param [propagate = null] - 鏄惁鍒ゆ柇鎸囧畾鐨勭埗绫� (鐢╝ddEventParent璁剧疆鐨�)
* @returns 鏄惁瀛樺湪
*/
- function listens(type: EventType, propagate?: BaseClass): boolean;
+ function listens(type: WidgetEventType, propagate?: BaseClass): boolean;
}
/**
@@ -16948,23 +17121,26 @@
readonly graphics: BaseGraphic[];
/**
* 娴嬮噺 绌洪棿闀垮害
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 璺嚎鐨勬牱寮�
- * @param [opts.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 璺嚎鐨勬牱寮�
+ * @param [options.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
* @param [options.maxPointNum = 9999] - 缁樺埗鏃讹紝鏈�澶氬厑璁哥偣鐨勪釜鏁�
* @param [options.addHeight = 0] - 鍦╠raw缁樺埗鏃讹紝鍦ㄧ粯鍒剁偣鐨勫熀纭�涓婂鍔犵殑楂樺害鍊�
* @param [options.showAddText = true] - 鏄惁鏄剧ず姣忎竴娈电殑澧炲姞閮ㄥ垎璺濈锛屽锛�+10.1km锛�
* @returns 闀垮害娴嬮噺鎺у埗绫� 瀵硅薄
*/
- distance(opts: {
+ distance(options: {
style?: PolylineEntity.StyleOptions;
unit?: string;
+ maxPointNum?: number;
+ addHeight?: number;
+ showAddText?: boolean;
}): MeasureDistance;
/**
* 娴嬮噺 璐村湴闀垮害
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 璺嚎鐨勬牱寮�
- * @param [opts.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 璺嚎鐨勬牱寮�
+ * @param [options.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
* @param [options.maxPointNum = 9999] - 缁樺埗鏃讹紝鏈�澶氬厑璁哥偣鐨勪釜鏁�
* @param [options.addHeight = 0] - 鍦╠raw缁樺埗鏃讹紝鍦ㄧ粯鍒剁偣鐨勫熀纭�涓婂鍔犵殑楂樺害鍊�
* @param [options.showAddText = true] - 鏄惁鏄剧ず姣忎竴娈电殑澧炲姞閮ㄥ垎璺濈锛屽锛�+10.1km锛�
@@ -16972,54 +17148,65 @@
* @param [options.has3dtiles = auto] - 鏄惁鍦�3dtiles妯″瀷涓婂垎鏋愶紙妯″瀷鍒嗘瀽杈冩參锛屾寜闇�寮�鍚級,榛樿鍐呴儴鏍规嵁鐐圭殑浣嶇疆鑷姩鍒ゆ柇锛堜絾鍙兘涓嶅噯锛�
* @returns 璐村湴闀垮害娴嬮噺鎺у埗绫� 瀵硅薄
*/
- distanceSurface(opts: {
+ distanceSurface(options: {
style?: PolylineEntity.StyleOptions;
unit?: string;
+ maxPointNum?: number;
+ addHeight?: number;
+ showAddText?: boolean;
+ splitNum?: number;
+ has3dtiles?: boolean;
}): MeasureDistanceSurface;
/**
* 鍓栭潰鍒嗘瀽锛屾祴閲忕嚎鎻掑�肩偣鐨勯珮绋嬫暟鎹�
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 璺嚎鐨勬牱寮�
- * @param [opts.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 璺嚎鐨勬牱寮�
+ * @param [options.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
* @param [options.maxPointNum = 9999] - 缁樺埗鏃讹紝鏈�澶氬厑璁哥偣鐨勪釜鏁�
* @param [options.addHeight = 0] - 鍦╠raw缁樺埗鏃讹紝鍦ㄧ粯鍒剁偣鐨勫熀纭�涓婂鍔犵殑楂樺害鍊�
* @param [options.splitNum = 200] - 鎻掑�兼暟锛屽皢绾挎鍒嗗壊鐨勪釜鏁�
* @param [options.has3dtiles = auto] - 鏄惁鍦�3dtiles妯″瀷涓婂垎鏋愶紙妯″瀷鍒嗘瀽杈冩參锛屾寜闇�寮�鍚級,榛樿鍐呴儴鏍规嵁鐐圭殑浣嶇疆鑷姩鍒ゆ柇锛堜絾鍙兘涓嶅噯锛�
* @returns 鍓栭潰鍒嗘瀽鎺у埗绫� 瀵硅薄
*/
- section(opts: {
+ section(options: {
style?: PolylineEntity.StyleOptions;
unit?: string;
+ maxPointNum?: number;
+ addHeight?: number;
+ splitNum?: number;
+ has3dtiles?: boolean;
}): MeasureDistanceSection;
/**
* 闈㈢Н娴嬮噺锛堟按骞抽潰锛�
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 闈㈢殑鏍峰紡
- * @param [opts.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatArea}鍙�夊�硷細auto銆乵銆乲m銆乵u銆乭a 銆俛uto鏃舵牴鎹潰绉�艰嚜鍔ㄩ�夌敤k鎴杒m
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 闈㈢殑鏍峰紡
+ * @param [options.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatArea}鍙�夊�硷細auto銆乵銆乲m銆乵u銆乭a 銆俛uto鏃舵牴鎹潰绉�艰嚜鍔ㄩ�夌敤k鎴杒m
* @returns 闈㈢Н娴嬮噺鎺у埗绫� 瀵硅薄
*/
- area(opts: {
+ area(options: {
style?: PolygonEntity.StyleOptions;
unit?: string;
}): MeasureArea;
/**
* 璐村湴闈㈢Н娴嬮噺
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 闈㈢殑鏍峰紡
- * @param [opts.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatArea}鍙�夊�硷細auto銆乵銆乲m銆乵u銆乭a 銆俛uto鏃舵牴鎹潰绉�艰嚜鍔ㄩ�夌敤k鎴杒m
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 闈㈢殑鏍峰紡
+ * @param [options.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatArea}鍙�夊�硷細auto銆乵銆乲m銆乵u銆乭a 銆俛uto鏃舵牴鎹潰绉�艰嚜鍔ㄩ�夌敤k鎴杒m
* @param [options.splitNum = 10] - 鎻掑�兼暟锛屽皢闈㈠垎鍓茬殑缃戞牸鏁�
* @param [options.has3dtiles = auto] - 鏄惁鍦�3dtiles妯″瀷涓婂垎鏋愶紙妯″瀷鍒嗘瀽杈冩參锛屾寜闇�寮�鍚級,榛樿鍐呴儴鏍规嵁鐐圭殑浣嶇疆鑷姩鍒ゆ柇锛堜絾鍙兘涓嶅噯锛�
* @returns 闈㈢Н娴嬮噺鎺у埗绫� 瀵硅薄
*/
- areaSurface(opts: {
+ areaSurface(options: {
style?: PolygonEntity.StyleOptions;
unit?: string;
+ splitNum?: number;
+ has3dtiles?: boolean;
}): MeasureArea;
/**
* 浣撶Н娴嬮噺锛堟柟閲忓垎鏋愶級
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 璺嚎鐨勬牱寮�
- * @param [opts.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatArea}鍙�夊�硷細auto銆乵銆乲m銆乵u銆乭a 銆俛uto鏃舵牴鎹潰绉�艰嚜鍔ㄩ�夌敤k鎴杒m
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 璺嚎鐨勬牱寮�
+ * @param [options.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatArea}鍙�夊�硷細auto銆乵銆乲m銆乵u銆乭a 銆俛uto鏃舵牴鎹潰绉�艰嚜鍔ㄩ�夌敤k鎴杒m
* @param [options.splitNum = 10] - 鎻掑�兼暟锛屽皢闈㈠垎鍓茬殑缃戞牸鏁�
* @param [options.has3dtiles = auto] - 鏄惁鍦�3dtiles妯″瀷涓婂垎鏋愶紙妯″瀷鍒嗘瀽杈冩參锛屾寜闇�寮�鍚級,榛樿鍐呴儴鏍规嵁鐐圭殑浣嶇疆鑷姩鍒ゆ柇锛堜絾鍙兘涓嶅噯锛�
* @param [options.minHeight] - 鍙互鎸囧畾鏈�浣庨珮搴︼紙鍗曚綅锛氱背锛�
@@ -17027,49 +17214,54 @@
* @param [options.height] - 鍙互鎸囧畾鍩哄噯闈㈤珮搴︼紙鍗曚綅锛氱背锛夛紝榛樿鏄粯鍒跺悗鐨勬渶浣庨珮搴﹀��
* @returns 浣撶Н娴嬮噺鎺у埗绫� 瀵硅薄
*/
- volume(opts: {
+ volume(options: {
style?: PolygonEntity.StyleOptions;
unit?: string;
+ splitNum?: number;
+ has3dtiles?: boolean;
+ minHeight?: number;
+ maxHeight?: number;
+ height?: number;
}): MeasureVolume;
/**
* 楂樺害娴嬮噺
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 璺嚎鐨勬牱寮�
- * @param [opts.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 璺嚎鐨勬牱寮�
+ * @param [options.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
* @returns 楂樺害娴嬮噺鎺у埗绫� 瀵硅薄
*/
- height(opts: {
+ height(options: {
style?: PolylineEntity.StyleOptions;
unit?: string;
}): MeasureHeight;
/**
* 涓夎楂樺害娴嬮噺锛�
* 鍖呮嫭姘村钩璺濈銆佺┖闂磋窛绂汇�侀珮搴﹀樊銆�
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 璺嚎鐨勬牱寮�
- * @param [opts.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 璺嚎鐨勬牱寮�
+ * @param [options.unit = 'auto'] - 璁¢噺鍗曚綅,{@link MeasureUtil#formatDistance}鍙�夊�硷細auto銆乵銆乲m銆乵ile銆亃hang 銆俛uto鏃舵牴鎹窛绂诲�艰嚜鍔ㄩ�夌敤k鎴杒m
* @returns 涓夎楂樺害娴嬮噺鎺у埗绫� 瀵硅薄
*/
- heightTriangle(opts: {
+ heightTriangle(options: {
style?: PolylineEntity.StyleOptions;
unit?: string;
}): MeasureHeightTriangle;
/**
* 瑙掑害娴嬮噺
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 璺嚎鐨勬牱寮忥紝榛樿涓虹澶寸嚎
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 璺嚎鐨勬牱寮忥紝榛樿涓虹澶寸嚎
* @returns 瑙掑害娴嬮噺鎺у埗绫� 瀵硅薄
*/
- angle(opts: {
+ angle(options: {
style?: PolylineEntity.StyleOptions;
}): MeasureAngle;
/**
* 鍧愭爣娴嬮噺
- * @param opts - 鎺у埗鍙傛暟
- * @param [opts.style] - 鐐圭殑鏍峰紡
+ * @param options - 鎺у埗鍙傛暟
+ * @param [options.style] - 鐐圭殑鏍峰紡
* @returns 鍧愭爣娴嬮噺鎺у埗绫� 瀵硅薄
*/
- point(opts: {
+ point(options: {
style?: PointEntity.StyleOptions;
}): MeasurePoint;
/**
@@ -17293,7 +17485,7 @@
id?: string | number;
enabled?: boolean;
alpha?: number;
- color?: Color;
+ color?: Cesium.Color;
});
/**
* 鎺у埗鐞冧綋閫忔槑搴︾殑Cesium鍐呴儴瀵硅薄
@@ -17683,7 +17875,7 @@
* @param [options.spacing = 100.0] - 绛夐珮绾� 闂撮殧锛堝崟浣嶏細绫筹級
* @param [options.width = 1.5] - 绛夐珮绾� 绾垮锛堝崟浣嶏細鍍忕礌锛�
* @param [options.color = Cesium.Color.RED] - 绛夐珮绾� 棰滆壊
- * @param [options.shadingType = 'none'] - 鍦拌〃娓叉煋鏁堟灉锛屽彲閫夊��: 鏃爊ono, 楂樼▼ elevation, 鍧″害slope, 鍧″悜aspect
+ * @param [options.shadingType = 'none'] - 鍦拌〃娓叉煋鏁堟灉锛屽彲閫夊��: 鏃爊one, 楂樼▼ elevation, 鍧″害slope, 鍧″悜aspect
* @param [options.colorScheme] - 鍦拌〃娓叉煋閰嶈壊鏂规,榛樿鍊间负锛�
* {
* elevation: {
@@ -17711,7 +17903,7 @@
contourShow?: boolean;
spacing?: number;
width?: number;
- color?: Cesium.Color;
+ color?: Cesium.Color | string;
shadingType?: string;
colorScheme?: any;
showElseArea?: boolean;
@@ -17723,7 +17915,7 @@
*/
contourShow: boolean;
/**
- * 鍦拌〃娓叉煋鏁堟灉锛屽彲閫夊��: 鏃爊ono, 楂樼▼ elevation, 鍧″害slope, 鍧″悜aspect
+ * 鍦拌〃娓叉煋鏁堟灉锛屽彲閫夊��: 鏃爊one, 楂樼▼ elevation, 鍧″害slope, 鍧″悜aspect
*/
shadingType: string;
/**
@@ -17737,7 +17929,7 @@
/**
* 绛夐珮绾� 棰滆壊
*/
- color: Cesium.Color;
+ color: Cesium.Color | string;
/**
* 娓呴櫎鏁版嵁
* @returns 鏃�
@@ -17859,7 +18051,7 @@
* @param options - 鍙傛暟瀵硅薄锛屽寘鎷互涓嬶細
* @param [options.id = uuid()] - 瀵硅薄鐨刬d鏍囪瘑
* @param [options.enabled = true] - 瀵硅薄鐨勫惎鐢ㄧ姸鎬�
- * @param [positions] - 鍧愭爣浣嶇疆鏁扮粍锛屽彧鏄剧ず鍗曚釜鍖哄煙銆愬崟涓尯鍩熷満鏅椂浣跨敤銆�
+ * @param [options.positions] - 鍧愭爣浣嶇疆鏁扮粍锛屽彧鏄剧ず鍗曚釜鍖哄煙銆愬崟涓尯鍩熷満鏅椂浣跨敤銆�
* @param [options.speed] - 娣规病閫熷害
* @param [options.minHeight] - 娣规病璧峰鐨勬捣鎷旈珮搴︼紙鍗曚綅锛氱背锛�
* @param [options.maxHeight] - 娣规病缁撴潫鐨勬捣鎷旈珮搴︼紙鍗曚綅锛氱背锛�
@@ -17869,11 +18061,12 @@
constructor(options: {
id?: string | number;
enabled?: boolean;
+ positions?: any[][] | String[] | LatLngPoint[] | Cesium.Cartesian3[];
speed?: number;
minHeight?: number;
maxHeight?: number;
showElseArea?: boolean;
- }, positions?: any[][] | String[] | LatLngPoint[] | Cesium.Cartesian3[]);
+ });
/**
* 娣规病楂樺害锛堝崟浣嶏細绫筹級
*/
@@ -18004,7 +18197,7 @@
* @param options - 鍙傛暟瀵硅薄锛屽寘鎷互涓嬶細
* @param [options.id = uuid()] - 瀵硅薄鐨刬d鏍囪瘑
* @param [options.enabled = true] - 瀵硅薄鐨勫惎鐢ㄧ姸鎬�
- * @param [positions] - 鍧愭爣浣嶇疆鏁扮粍锛屽彧鏄剧ず鍗曚釜鍖哄煙銆愬崟涓尯鍩熷満鏅椂浣跨敤銆�
+ * @param [options.positions] - 鍧愭爣浣嶇疆鏁扮粍锛屽彧鏄剧ず鍗曚釜鍖哄煙銆愬崟涓尯鍩熷満鏅椂浣跨敤銆�
* @param [options.clipOutSide = false] - 鏄惁澶栧垏寮�鎸�
* @param [options.image] - 寮�鎸栧尯鍩熺殑浜曞闈㈣创鍥綰RL銆傛湭浼犲叆璇ュ�兼椂锛屼笉鏄剧ず寮�鎸栧尯鍩熺殑浜曘��
* @param [options.imageBottom] - 褰撴樉绀哄紑鎸栧尯鍩熺殑浜曟椂锛屼簳搴曢潰璐村浘URL
@@ -18015,11 +18208,12 @@
constructor(options: {
id?: string | number;
enabled?: boolean;
+ positions?: any[][] | String[] | LatLngPoint[] | Cesium.Cartesian3[];
clipOutSide?: boolean;
image?: string;
imageBottom?: string;
diffHeight?: number;
- }, positions?: any[][] | String[] | LatLngPoint[] | Cesium.Cartesian3[], splitNum?: number);
+ }, splitNum?: number);
/**
* 鏄惁澶栧垏寮�鎸�
*/
@@ -18040,13 +18234,14 @@
* @param options - 鍙傛暟瀵硅薄锛屽寘鎷互涓嬶細
* @param [options.id = uuid()] - 瀵硅薄鐨刬d鏍囪瘑
* @param [options.enabled = true] - 瀵硅薄鐨勫惎鐢ㄧ姸鎬�
- * @param [positions] - 鍧愭爣浣嶇疆鏁扮粍锛屽彧鏄剧ず鍗曚釜鍖哄煙銆愬崟涓尯鍩熷満鏅椂浣跨敤銆�
+ * @param [options.positions] - 鍧愭爣浣嶇疆鏁扮粍锛屽彧鏄剧ず鍗曚釜鍖哄煙銆愬崟涓尯鍩熷満鏅椂浣跨敤銆�
*/
declare class TerrainEditBase extends BaseThing {
constructor(options: {
id?: string | number;
enabled?: boolean;
- }, positions?: any[][] | String[] | LatLngPoint[] | Cesium.Cartesian3[]);
+ positions?: any[][] | String[] | LatLngPoint[] | Cesium.Cartesian3[];
+ });
/**
* 鍖哄煙 鍒楄〃
*/
@@ -18062,7 +18257,7 @@
/**
* 宸叉坊鍔犵殑鍖哄煙涓暟
*/
- readonly length: Int;
+ readonly length: number;
/**
* 娓呴櫎鎵�鏈夊尯鍩�
* @returns 鏃�
@@ -18110,7 +18305,7 @@
* @param options - 鍙傛暟瀵硅薄锛屽寘鎷互涓嬶細
* @param [options.id = uuid()] - 瀵硅薄鐨刬d鏍囪瘑
* @param [options.enabled = true] - 瀵硅薄鐨勫惎鐢ㄧ姸鎬�
- * @param [positions] - 寮�鎸栧尯鍩熺殑 鍧愭爣浣嶇疆鏁扮粍
+ * @param [options.positions] - 寮�鎸栧尯鍩熺殑 鍧愭爣浣嶇疆鏁扮粍
* @param [options.clipOutSide = false] - 鏄惁澶栧垏寮�鎸�
* @param [options.image] - 寮�鎸栧尯鍩熺殑浜曞闈㈣创鍥綰RL銆傛湭浼犲叆璇ュ�兼椂锛屼笉鏄剧ず寮�鎸栧尯鍩熺殑浜曘��
* @param [options.imageBottom] - 褰撴樉绀哄紑鎸栧尯鍩熺殑浜曟椂锛屼簳搴曢潰璐村浘URL
@@ -18121,11 +18316,12 @@
constructor(options: {
id?: string | number;
enabled?: boolean;
+ positions?: any[][] | String[] | LatLngPoint[] | Cesium.Cartesian3[];
clipOutSide?: boolean;
image?: string;
imageBottom?: string;
diffHeight?: number;
- }, positions?: any[][] | String[] | LatLngPoint[] | Cesium.Cartesian3[], splitNum?: number);
+ }, splitNum?: number);
/**
* 寮�鎸栧尯鍩熺殑 鍧愭爣浣嶇疆鏁扮粍
*/
@@ -18214,9 +18410,10 @@
*/
graphic: ModelEntity;
/**
- * 鑾峰彇褰撳墠杞崲璁$畻妯″瀷鐭╅樀銆傚鏋滄柟鍚戞垨浣嶇疆鏈畾涔夛紝鍒欒繑鍥瀠ndefined銆�
+ * 鑾峰彇褰撳墠杞崲璁$畻妯″瀷閫嗙煩闃碉紝
+ * 鐢ㄤ簬 灞�閮ㄥ潗鏍囩郴 涓� 涓栫晫鍧愭爣绯� 鐨勮浆鎹€��
*/
- readonly matrix: Cesium.Matrix4;
+ readonly inverseMatrix: Cesium.Matrix4;
}
declare namespace ModelPlanClip {
@@ -18278,9 +18475,10 @@
*/
tileset: Cesium.Cesium3DTileset;
/**
- * 鑾峰彇褰撳墠杞崲璁$畻妯″瀷鐭╅樀銆傚鏋滄柟鍚戞垨浣嶇疆鏈畾涔夛紝鍒欒繑鍥瀠ndefined銆�
+ * 鑾峰彇褰撳墠杞崲璁$畻妯″瀷閫嗙煩闃碉紝
+ * 鐢ㄤ簬 灞�閮ㄥ潗鏍囩郴 涓� 涓栫晫鍧愭爣绯� 鐨勮浆鎹€��
*/
- readonly matrix: Cesium.Matrix4;
+ readonly inverseMatrix: Cesium.Matrix4;
/**
* 鍧愭爣浣嶇疆鏁扮粍锛屽彧鏄剧ず鍗曚釜鍖哄煙銆愬崟涓尯鍩熷満鏅椂浣跨敤銆�
*/
@@ -18288,7 +18486,7 @@
/**
* 宸叉坊鍔犵殑鍖哄煙涓暟
*/
- readonly length: Int;
+ readonly length: number;
/**
* 娓呴櫎鍒嗘瀽
* @returns 鏃�
@@ -18474,9 +18672,10 @@
*/
readonly planes: Cesium.ClippingPlaneCollection;
/**
- * 鑾峰彇褰撳墠杞崲璁$畻妯″瀷鐭╅樀銆傚鏋滄柟鍚戞垨浣嶇疆鏈畾涔夛紝鍒欒繑鍥瀠ndefined銆�
+ * 鑾峰彇褰撳墠杞崲璁$畻妯″瀷閫嗙煩闃碉紝
+ * 鐢ㄤ簬 灞�閮ㄥ潗鏍囩郴 涓� 涓栫晫鍧愭爣绯� 鐨勮浆鎹€��
*/
- readonly matrix: Cesium.Matrix4;
+ readonly inverseMatrix: Cesium.Matrix4;
/**
* 鏇存柊鏈�鍚庝竴涓潰鐨� 瑁佸壀璺濈 (鍗曚綅锛氱背)
*/
@@ -18518,6 +18717,38 @@
Y,
YR
}
+}
+
+/**
+ * 閫氱敤鏉愯川 杞崲澶勭悊绫�
+ */
+declare class BaseMaterialConver extends BaseOptsConver {
+}
+
+/**
+ * 鍥剧墖鏉愯川 杞崲澶勭悊绫�
+ */
+declare class ImageOptsConver extends BaseMaterialConver {
+}
+
+/**
+ * 鐭㈤噺鏁版嵁style杞崲澶勭悊鍩虹被
+ */
+declare class BaseStyleConver extends BaseOptsConver {
+}
+
+/**
+ * Polygon鐭㈤噺鏁版嵁style杞崲澶勭悊绫�
+ */
+declare class PolygonStyleConver extends BaseStyleConver {
+ /**
+ * style鏍峰紡灞炴�ц祴鍊煎埌 entity
+ * @param style - 鏍峰紡
+ * @param entityGraphic - 鐭㈤噺鏁版嵁瀵瑰簲鐨� Cesium鍐呴儴瀵硅薄
+ * @param isEntity - 鏄惁涓篹ntity
+ * @returns 鐭㈤噺鏁版嵁鎵�闇�鐨凜esium鍐呴儴瀵硅薄
+ */
+ static toCesiumVal(style: PolygonEntity.StyleOptions, entityGraphic: Cesium.PolygonGraphics | null, isEntity: boolean): Cesium.PolygonGraphics;
}
/**
@@ -18893,14 +19124,14 @@
* @param positions - 鍧愭爣鏁扮粍
* @returns 璺濈锛堝崟浣嶏細绫筹級
*/
- function getDistance(positions: Cesium.Cartesian3[]): number;
+ function getDistance(positions: Cesium.Cartesian3[] | LatLngPoint[]): number;
/**
* 姹傚潗鏍囨暟缁勭殑 璺濈锛堝湴鐞冭〃闈㈠姬搴︾殑锛�,
* 姣斿鍖椾含鍒扮航绾︼紙涓嶈兘绌胯繃鐞冨績锛屾槸璐村湴琛ㄧ殑绾跨殑璺濈锛�
* @param positions - 鍧愭爣鏁扮粍
* @returns 璺濈锛堝崟浣嶏細绫筹級
*/
- function getSurfaceDistance(positions: Cesium.Cartesian3[]): number;
+ function getSurfaceDistance(positions: Cesium.Cartesian3[] | LatLngPoint[]): number;
/**
* 寮傛璁$畻璐村湴璺濈涓紝姣忚绠楀畬鎴�2涓偣涔嬮棿鐨勮窛绂诲悗 鐨勫洖璋冩柟娉�
* @param options - 鍙傛暟瀵硅薄锛屽叿鏈変互涓嬪睘鎬�:
@@ -18934,7 +19165,7 @@
* @param options.callback - 寮傛璁$畻璐村湴璺濈瀹屾垚 鐨勫洖璋冩柟娉�
* @returns 鏃�
*/
- function getClampDistance(positions: Cesium.Cartesian3[], options: {
+ function getClampDistance(positions: Cesium.Cartesian3[] | LatLngPoint[], options: {
scene: Cesium.Scene;
splitNum?: number;
has3dtiles?: boolean;
@@ -18946,7 +19177,7 @@
* @param positions - 鍧愭爣鏁扮粍
* @returns 闈㈢Н锛屽崟浣嶏細骞虫柟绫�
*/
- function getArea(positions: Cesium.Cartesian3[]): number;
+ function getArea(positions: Cesium.Cartesian3[] | LatLngPoint[]): number;
/**
* 璁$畻涓夎褰㈤潰绉紙绌洪棿骞抽潰锛�
* @param pos1 - 涓夎褰㈤《鐐瑰潗鏍�1
@@ -18972,7 +19203,7 @@
* @param options.callback - 寮傛璁$畻璐村湴璺濈瀹屾垚 鐨勫洖璋冩柟娉�
* @returns 浠� asyn:false 鏃惰繑鍥為潰绉紝鍗曚綅锛氬钩鏂圭背
*/
- function getClampArea(positions: Cesium.Cartesian3[], options: {
+ function getClampArea(positions: Cesium.Cartesian3[] | LatLngPoint[], options: {
asyn: boolean;
scene: Cesium.Scene;
splitNum?: number;
@@ -19318,7 +19549,7 @@
* 鑾峰彇 鍧愭爣 鐨� 璐村湴(鎴栬创妯″瀷)楂樺害
* @example
* var position = graphic.position
- * position = mars3d.PointUtil.getSurfaceHeight(map.scene, position, {
+ * mars3d.PointUtil.getSurfaceHeight(map.scene, position, {
* asyn: true, //鏄惁寮傛姹傚噯纭珮搴�
* has3dtiles: true, //鏄惁鍏堟眰璐存ā鍨嬩笂锛堟棤妯″瀷鏃舵敼涓篺alse锛屾彁楂樻晥鐜囷級
* callback: function (newHeight, cartOld) {
@@ -19566,7 +19797,7 @@
* @param [splitNum = 10] - splitNum缃戞牸鏁�
* @returns granularity鍊�
*/
- function getGranularity(positions: Cesium.Cartesian3[], splitNum?: Int): number;
+ function getGranularity(positions: Cesium.Cartesian3[], splitNum?: number): number;
/**
* 闈㈠唴杩涜璐村湴(鎴栬创妯″瀷)鎻掑��, 杩斿洖涓夎缃戠瓑璁$畻缁撴灉 鐨勫洖璋冩柟娉�
* @param [options = {}] - 鍙傛暟瀵硅薄:
@@ -19687,7 +19918,7 @@
* @returns 杈圭嚎涓婄殑鍧愭爣鐐规暟缁�
*/
function getEllipseOuterPositions(options?: {
- position: Cesium.Cartesian3;
+ position: Cesium.Cartesian3 | LatLngPoint;
radius: number;
semiMajorAxis: number;
semiMinorAxis: number;
@@ -19700,7 +19931,7 @@
* @param [digits = 6] - 缁忕含搴︿繚鐣欑殑灏忔暟浣嶆暟
* @returns 杩斿洖缁忕含搴﹀�硷紝绀轰緥锛� { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
*/
- function formatRectangle(rectangle: Cesium.Rectangle, digits?: Int): any;
+ function formatRectangle(rectangle: Cesium.Rectangle, digits?: number): any;
/**
* 鑾峰彇 鍧愭爣鏁扮粍 鐨� 鐭╁舰杈圭晫鍊�
* @param positions - 鍧愭爣鏁扮粍
@@ -19751,6 +19982,13 @@
originX?: number;
originY?: number;
}): Cesium.Cartesian3[];
+ /**
+ * 鍒ゆ柇鐐规槸鍚� 澶氳竟褰㈠唴
+ * @param position - 闇�瑕佸垽鏂殑鐐�
+ * @param coordinates - 澶氳竟褰㈢殑杈圭晫鐐�
+ * @returns 鏄惁鍦ㄥ杈瑰舰鍐�
+ */
+ function isInPoly(position: Cesium.Cartesian3 | LatLngPoint, coordinates: Cesium.Cartesian3[] | LatLngPoint[]): boolean;
/**
* 姹傝礉濉炲皵鏇茬嚎鍧愭爣
* @param positions - 鍧愭爣鏁扮粍
@@ -19955,14 +20193,14 @@
* @param [digits = 0] - 灏忔暟浣嶆暟
* @returns 杩斿洖digits鎸囧畾灏忔暟浣嶇殑鏁板瓧
*/
- function formatNum(num: number, digits?: Int): number;
+ function formatNum(num: number, digits?: number): number;
/**
* 鎸夋寚瀹氶暱搴�,瀵规暟瀛楄繘琛岃ˉ闆讹紝杩斿洖鎸囧畾闀垮害鐨勫瓧绗︿覆
* @param numStr - 鏁板瓧瀵硅薄,绀轰緥锛�1234
* @param n - 鎸囧畾闀垮害锛岀ず渚嬶細8
* @returns 琛ラ浂鍚庣殑鎸囧畾闀垮害鐨勫瓧绗︿覆锛岀ず渚嬶細'00001234'
*/
- function padLeft0(numStr: number | string, n: Int): string;
+ function padLeft0(numStr: number | string, n: number): string;
/**
* 鏍规嵁绌烘牸鍒嗗壊瀛楃涓诧紝骞惰繑鍥炲瓧绗︿覆鏁扮粍锛堜細鑷姩鍘绘帀棣栦綅绌烘牸锛�
* @param str - 瀛楃涓�
@@ -20108,7 +20346,7 @@
* @param [level = 5] - 鎷疯礉鐨勫眰绾ф渶澶ф繁搴�,閬垮厤姝诲惊鐜�
* @returns 鍏嬮殕鍚庣殑瀵硅薄
*/
- function clone(obj: any, removeKeys?: String[], level?: Int): any;
+ function clone(obj: any, removeKeys?: String[], level?: number): any;
/**
* 闅忔満鑾峰彇鏁扮粍涓殑涓�涓厓绱�
* @param arr - 鏁扮粍
@@ -20195,15 +20433,15 @@
* @param feature - geojson鍗曚釜Feature瀵硅薄
* @param [options = {}] - 鍙傛暟锛屽寘鎷細
* @param [options.type] - 杞负鎸囧畾鐨勭被鍨�
- * @param [options.crs] - 鍘熷鏁版嵁鐨勫潗鏍囩郴锛屽'EPSG:3857' 锛堝彲浠ヤ粠 {@link http://epsg.io }鏌ヨ锛�
* @param [options.style = {}] - Style鏍峰紡锛屾瘡绉嶄笉鍚岀被鍨嬫暟鎹兘鏈変笉鍚岀殑鏍峰紡锛屽叿浣撹鍚勭煝閲忔暟鎹殑style鍙傛暟銆倇@link GraphicType}
+ * @param [options.crs] - 鍘熷鏁版嵁鐨勫潗鏍囩郴锛屽'EPSG:3857' 锛堝彲浠ヤ粠 {@link http://epsg.io }鏌ヨ锛�
* @param [options.hasEdit] - 褰撻渶瑕佺紪杈戞椂鍙互浼爐rue鍊�,鎸囧畾涓篍ntity绫诲瀷
* @returns Graphic鏋勯�犲弬鏁帮紙鐢ㄤ簬鍒涘缓{@link BaseGraphic}锛�
*/
function featureToGraphic(feature: any, options?: {
type?: GraphicType;
- crs?: string;
style?: any;
+ crs?: string;
hasEdit?: boolean;
}): any;
/**
@@ -20211,7 +20449,7 @@
* @param altitude - 楂樺害鍊�
* @returns 鍦板浘灞傜骇,閫氬父涓� 0-21
*/
- function heightToZoom(altitude: number): Int;
+ function heightToZoom(altitude: number): number;
/**
* 鏍规嵁鍥惧眰鐨刢onfig鐨勯厤缃俊鎭紝鑷姩鍔犱笂浠g悊绛夐厤缃繑鍥濺esource瀵硅薄
* @param config - 鍥惧眰鐨勯厤缃俊鎭�
--
Gitblit v1.9.1