@gis_victory/gismap 2.0.29 → 2.0.31

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/dist/index.d.ts CHANGED
@@ -31,6 +31,7 @@ import { LngLat } from '@gis_victory/mapbox-gl';
31
31
  import { LngLatBounds } from '@gis_victory/mapbox-gl';
32
32
  import { LngLatLike } from '@gis_victory/mapbox-gl';
33
33
  import { LoadFunction } from 'element-plus';
34
+ import type * as mapboxgl_2 from '@gis_victory/mapbox-gl';
34
35
  import { Marker } from '@gis_victory/mapbox-gl';
35
36
  import { MaybeRefOrGetter } from 'vue';
36
37
  import { Node as Node_2 } from 'element-plus/es/components/tree/src/model/node.mjs';
@@ -186,6 +187,7 @@ addVecLayer: (sourceConfig?: any, beforeId?: string) => void;
186
187
  removeVecLayer: () => void;
187
188
  addCiaLayer: (sourceConfig?: any, beforeId?: string) => void;
188
189
  removeCiaLayer: () => void;
190
+ setGrayMode: (id: string) => void;
189
191
  clear: () => void;
190
192
  show: () => void;
191
193
  hideAll: () => void;
@@ -893,7 +895,7 @@ declare class DrawManager {
893
895
  private createTooltip;
894
896
  private showTooltip;
895
897
  private hideTooltip;
896
- private updateTooltipPosition;
898
+ private _updateTooltipPosition;
897
899
  private removeTooltip;
898
900
  private finishDraw;
899
901
  private updateDrawFeature;
@@ -1105,6 +1107,92 @@ export declare const getEndpoint: (key: string) => string;
1105
1107
  */
1106
1108
  export declare const getFullUrl: (key: string) => string;
1107
1109
 
1110
+ export declare const GisMapCompareFrame: DefineComponent<ExtractPropTypes< {
1111
+ direction: {
1112
+ type: () => "horizontal" | "vertical";
1113
+ default: string;
1114
+ };
1115
+ initialPercent: {
1116
+ type: NumberConstructor;
1117
+ default: number;
1118
+ };
1119
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1120
+ cancel: () => any;
1121
+ change: (payload: {
1122
+ direction: "horizontal" | "vertical";
1123
+ percent: number;
1124
+ }) => any;
1125
+ confirm: (payload: {
1126
+ direction: "horizontal" | "vertical";
1127
+ percent: number;
1128
+ }) => any;
1129
+ "update:direction": (value: "horizontal" | "vertical") => any;
1130
+ "update:percent": (value: number) => any;
1131
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
1132
+ direction: {
1133
+ type: () => "horizontal" | "vertical";
1134
+ default: string;
1135
+ };
1136
+ initialPercent: {
1137
+ type: NumberConstructor;
1138
+ default: number;
1139
+ };
1140
+ }>> & Readonly<{
1141
+ onCancel?: (() => any) | undefined;
1142
+ onChange?: ((payload: {
1143
+ direction: "horizontal" | "vertical";
1144
+ percent: number;
1145
+ }) => any) | undefined;
1146
+ onConfirm?: ((payload: {
1147
+ direction: "horizontal" | "vertical";
1148
+ percent: number;
1149
+ }) => any) | undefined;
1150
+ "onUpdate:direction"?: ((value: "horizontal" | "vertical") => any) | undefined;
1151
+ "onUpdate:percent"?: ((value: number) => any) | undefined;
1152
+ }>, {
1153
+ direction: "horizontal" | "vertical";
1154
+ initialPercent: number;
1155
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1156
+
1157
+ export declare const GisMapCompareSplit: DefineComponent<ExtractPropTypes< {
1158
+ active: {
1159
+ type: BooleanConstructor;
1160
+ default: boolean;
1161
+ };
1162
+ direction: {
1163
+ type: () => "horizontal" | "vertical";
1164
+ default: string;
1165
+ };
1166
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1167
+ change: (payload: {
1168
+ active: boolean;
1169
+ direction: "horizontal" | "vertical";
1170
+ }) => any;
1171
+ toggle: () => any;
1172
+ "update:active": (value: boolean) => any;
1173
+ "update:direction": (value: "horizontal" | "vertical") => any;
1174
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
1175
+ active: {
1176
+ type: BooleanConstructor;
1177
+ default: boolean;
1178
+ };
1179
+ direction: {
1180
+ type: () => "horizontal" | "vertical";
1181
+ default: string;
1182
+ };
1183
+ }>> & Readonly<{
1184
+ onChange?: ((payload: {
1185
+ active: boolean;
1186
+ direction: "horizontal" | "vertical";
1187
+ }) => any) | undefined;
1188
+ onToggle?: (() => any) | undefined;
1189
+ "onUpdate:active"?: ((value: boolean) => any) | undefined;
1190
+ "onUpdate:direction"?: ((value: "horizontal" | "vertical") => any) | undefined;
1191
+ }>, {
1192
+ active: boolean;
1193
+ direction: "horizontal" | "vertical";
1194
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1195
+
1108
1196
  export declare const GisMapCompass: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1109
1197
 
1110
1198
  export declare const GisMapContainer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -3528,11 +3616,11 @@ export declare const GisMapMeasure: DefineComponent< {}, {}, {}, {}, {}, Comp
3528
3616
  /**
3529
3617
  * 地图配置选项
3530
3618
  */
3531
- export declare interface GISMapOptions extends Omit<mapboxgl.MapboxOptions, 'container'> {
3619
+ export declare interface GISMapOptions extends Omit<mapboxgl_2.MapboxOptions, 'container'> {
3532
3620
  /** 容器 ID 或元素 */
3533
3621
  container: string | HTMLElement;
3534
3622
  /** 地图样式 */
3535
- style?: string | mapboxgl.StyleSpecification;
3623
+ style?: string | mapboxgl_2.StyleSpecification;
3536
3624
  /** 初始中心点 */
3537
3625
  center?: [number, number];
3538
3626
  /** 初始缩放级别 */
@@ -3717,7 +3805,7 @@ export declare interface GISMapStyleConfig {
3717
3805
  /** 地形样式 */
3718
3806
  terrain?: string;
3719
3807
  /** 自定义样式 */
3720
- custom?: mapboxgl.StyleSpecification;
3808
+ custom?: mapboxgl_2.StyleSpecification;
3721
3809
  /** 字体 */
3722
3810
  glyphs?: string;
3723
3811
  /** 图标集 */
@@ -3736,6 +3824,10 @@ extensionsPosition: {
3736
3824
  type: StringConstructor;
3737
3825
  default: string;
3738
3826
  };
3827
+ gray: {
3828
+ type: BooleanConstructor;
3829
+ default: boolean;
3830
+ };
3739
3831
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
3740
3832
  data: {
3741
3833
  type: ObjectConstructor;
@@ -3748,9 +3840,14 @@ extensionsPosition: {
3748
3840
  type: StringConstructor;
3749
3841
  default: string;
3750
3842
  };
3843
+ gray: {
3844
+ type: BooleanConstructor;
3845
+ default: boolean;
3846
+ };
3751
3847
  }>> & Readonly<{}>, {
3752
3848
  data: Record<string, any>;
3753
3849
  extensionsPosition: string;
3850
+ gray: boolean;
3754
3851
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
3755
3852
  left?(_: {}): any;
3756
3853
  right?(_: {}): any;
@@ -3937,7 +4034,7 @@ export declare interface IEventSystem {
3937
4034
  * GIS 地图核心接口
3938
4035
  * 继承 MapboxGL.Map 并扩展功能
3939
4036
  */
3940
- export declare interface IGISMap extends mapboxgl.Map {
4037
+ export declare interface IGISMap extends mapboxgl_2.Map {
3941
4038
  /** 地图唯一标识 */
3942
4039
  readonly id: string;
3943
4040
  /** 地图名称 */
@@ -3973,19 +4070,19 @@ export declare interface IGISMap extends mapboxgl.Map {
3973
4070
  /**
3974
4071
  * 缩放到指定级别
3975
4072
  */
3976
- zoomTo(zoom: number, options?: mapboxgl.CameraOptions & mapboxgl.AnimationOptions): this;
4073
+ zoomTo(zoom: number, options?: mapboxgl_2.CameraOptions & mapboxgl_2.AnimationOptions): this;
3977
4074
  /**
3978
4075
  * 适应边界
3979
4076
  */
3980
- fitBounds(bounds: [number, number, number, number], options?: mapboxgl.FitBoundsOptions): this;
4077
+ fitBounds(bounds: [number, number, number, number], options?: mapboxgl_2.FitBoundsOptions): this;
3981
4078
  /**
3982
4079
  * 获取视图范围
3983
4080
  */
3984
- getBounds(): mapboxgl.LngLatBounds;
4081
+ getBounds(): mapboxgl_2.LngLatBounds;
3985
4082
  /**
3986
4083
  * 获取中心点
3987
4084
  */
3988
- getCenter(): mapboxgl.LngLat;
4085
+ getCenter(): mapboxgl_2.LngLat;
3989
4086
  /**
3990
4087
  * 获取缩放级别
3991
4088
  */
@@ -4002,11 +4099,11 @@ export declare interface IGISMap extends mapboxgl.Map {
4002
4099
  /**
4003
4100
  * 添加控件
4004
4101
  */
4005
- addControl(control: mapboxgl.IControl, position?: string): this;
4102
+ addControl(control: mapboxgl_2.IControl, position?: string): this;
4006
4103
  /**
4007
4104
  * 移除控件
4008
4105
  */
4009
- removeControl(control: mapboxgl.IControl): this;
4106
+ removeControl(control: mapboxgl_2.IControl): this;
4010
4107
  }
4011
4108
 
4012
4109
  /**
@@ -5934,6 +6031,7 @@ declare interface Props {
5934
6031
  name: string;
5935
6032
  url: string;
5936
6033
  }>;
6034
+ theme?: 'light' | 'dark';
5937
6035
  }
5938
6036
 
5939
6037
  /** 地图提供者
@@ -6166,6 +6264,8 @@ declare class TDTManager {
6166
6264
  /** 添加天地图注记图层 */
6167
6265
  addCiaLayer(sourceConfig?: any, beforeId?: string): void;
6168
6266
  removeCiaLayer(): void;
6267
+ /** 设置天地图图层灰度显示 */
6268
+ setGrayMode(id: string): void;
6169
6269
  /** 移除所有天地图图层 */
6170
6270
  clear(): void;
6171
6271
  /** 显示天地图(恢复可见性) */
@@ -6368,7 +6468,7 @@ export declare class TimeTravelStateStore extends StateStore implements ITimeTra
6368
6468
  * 提供类型安全的 DI 容器支持
6369
6469
  */
6370
6470
  /** 服务标识符 */
6371
- declare interface Token<T> {
6471
+ declare interface Token<_T> {
6372
6472
  readonly symbol: symbol;
6373
6473
  readonly name: string;
6374
6474
  }