@ywbgn/bgl-package 1.1.1 → 1.2.2
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/README.md +411 -29
- package/dist/index.css +1 -1
- package/dist/index.d.ts +471 -6
- package/dist/vue-arcgis-map.js +14143 -2380
- package/dist/vue-arcgis-map.umd.cjs +131 -2
- package/package.json +11 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { Attrs } from 'vue';
|
|
3
|
+
import { ComponentCustomProperties } from 'vue';
|
|
4
|
+
import { ComponentCustomProps } from 'vue';
|
|
5
|
+
import { ComponentInternalInstance } from 'vue';
|
|
6
|
+
import { ComponentOptionsBase } from 'vue';
|
|
1
7
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
8
|
import { ComponentProvideOptions } from 'vue';
|
|
9
|
+
import { ComponentPublicInstance } from 'vue';
|
|
3
10
|
import { ComputedRef } from 'vue';
|
|
4
11
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
12
|
+
import { DebuggerEvent } from 'vue';
|
|
5
13
|
import { default as default_2 } from '@arcgis/core/Map.js';
|
|
6
14
|
import { default as default_3 } from '@arcgis/core/views/MapView.js';
|
|
7
15
|
import { default as default_4 } from '@arcgis/core/layers/GraphicsLayer.js';
|
|
@@ -15,9 +23,15 @@ import { GlobalDirectives } from 'vue';
|
|
|
15
23
|
import { InjectionKey } from 'vue';
|
|
16
24
|
import { MaybeRef } from 'vue';
|
|
17
25
|
import { MaybeRefOrGetter } from 'vue';
|
|
26
|
+
import { nextTick } from 'vue';
|
|
27
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
18
28
|
import { Plugin as Plugin_2 } from 'vue';
|
|
19
29
|
import { PropType } from 'vue';
|
|
20
30
|
import { PublicProps } from 'vue';
|
|
31
|
+
import { Slot } from 'vue';
|
|
32
|
+
import { VNodeProps } from 'vue';
|
|
33
|
+
import { WatchOptions } from 'vue';
|
|
34
|
+
import { WatchStopHandle } from 'vue';
|
|
21
35
|
|
|
22
36
|
declare const __VLS_component: DefineComponent<ExtractPropTypes< {
|
|
23
37
|
/** MapView 实例 */
|
|
@@ -212,6 +226,33 @@ visible: boolean;
|
|
|
212
226
|
}> | null;
|
|
213
227
|
}, HTMLDivElement>;
|
|
214
228
|
|
|
229
|
+
declare const __VLS_component_2: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
230
|
+
close: () => any;
|
|
231
|
+
}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
|
|
232
|
+
onClose?: (() => any) | undefined;
|
|
233
|
+
}>, {
|
|
234
|
+
anchor: "center" | "start";
|
|
235
|
+
appearance: LegendAppearance;
|
|
236
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
237
|
+
|
|
238
|
+
declare const __VLS_component_3: DefineComponent<__VLS_Props_9, {
|
|
239
|
+
scrollToTop: typeof scrollToTop;
|
|
240
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
241
|
+
"update:activeIndex": (index: number) => any;
|
|
242
|
+
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
243
|
+
"onUpdate:activeIndex"?: ((index: number) => any) | undefined;
|
|
244
|
+
}>, {
|
|
245
|
+
rows: BglDataTableRow[];
|
|
246
|
+
columns: BglDataTableColumn[];
|
|
247
|
+
align: "left" | "center";
|
|
248
|
+
activeIndex: number;
|
|
249
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
250
|
+
headRef: HTMLDivElement;
|
|
251
|
+
headTableRef: HTMLTableElement;
|
|
252
|
+
wrapRef: HTMLDivElement;
|
|
253
|
+
bodyTableRef: HTMLTableElement;
|
|
254
|
+
}, HTMLDivElement>;
|
|
255
|
+
|
|
215
256
|
/** 外层容器尺寸,支持像素数字或 CSS 字符串(如 100%、70vh) */
|
|
216
257
|
declare type __VLS_Props = {
|
|
217
258
|
width?: string | number;
|
|
@@ -233,6 +274,17 @@ declare type __VLS_Props = {
|
|
|
233
274
|
};
|
|
234
275
|
|
|
235
276
|
declare type __VLS_Props_2 = {
|
|
277
|
+
/** MapView 实例 */
|
|
278
|
+
view: default_3;
|
|
279
|
+
/** 业务图层 id 前缀,与 loadBusinessLayers 一致 */
|
|
280
|
+
idPrefix?: string;
|
|
281
|
+
/**
|
|
282
|
+
* 弹框外观。plain=纯色圆角面板;frame=切图九宫格背景。
|
|
283
|
+
*/
|
|
284
|
+
appearance?: LegendAppearance;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
declare type __VLS_Props_3 = {
|
|
236
288
|
/** MapView 实例 */
|
|
237
289
|
view: default_3;
|
|
238
290
|
/** 业务图层 id 前缀,与 loadBusinessLayers 一致 */
|
|
@@ -249,9 +301,13 @@ declare type __VLS_Props_2 = {
|
|
|
249
301
|
* 默认 14,停靠左下、位于底图/卷帘入口下方;底图/卷帘默认 bottom 已上移避开图例高度。
|
|
250
302
|
*/
|
|
251
303
|
offsetY?: number;
|
|
304
|
+
/**
|
|
305
|
+
* 图例外观。plain=现有纯色圆角面板;frame=切图九宫格背景。
|
|
306
|
+
*/
|
|
307
|
+
appearance?: LegendAppearance;
|
|
252
308
|
};
|
|
253
309
|
|
|
254
|
-
declare type
|
|
310
|
+
declare type __VLS_Props_4 = {
|
|
255
311
|
/** MapView 实例 */
|
|
256
312
|
view: default_3;
|
|
257
313
|
/**
|
|
@@ -282,6 +338,68 @@ declare type __VLS_Props_3 = {
|
|
|
282
338
|
numericLabelColor?: string;
|
|
283
339
|
};
|
|
284
340
|
|
|
341
|
+
declare type __VLS_Props_5 = {
|
|
342
|
+
/** 弹框标题 */
|
|
343
|
+
title: string;
|
|
344
|
+
/** 弹框宽度,默认 300px */
|
|
345
|
+
width?: number | string;
|
|
346
|
+
/**
|
|
347
|
+
* 水平锚点:center 配合工具栏居中弹框;
|
|
348
|
+
* start 配合左对齐弹框(如底图切换),拖动不带 -50% 偏移。
|
|
349
|
+
*/
|
|
350
|
+
anchor?: 'center' | 'start';
|
|
351
|
+
/**
|
|
352
|
+
* 弹框外观。plain=纯色圆角面板;frame=切图九宫格背景。
|
|
353
|
+
*/
|
|
354
|
+
appearance?: LegendAppearance;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
declare type __VLS_Props_6 = {
|
|
358
|
+
map: default_2 | null;
|
|
359
|
+
view: default_3 | null;
|
|
360
|
+
systemCoordinateWkid?: number | null;
|
|
361
|
+
mapBounds?: MapBounds | null;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
declare type __VLS_Props_7 = {
|
|
365
|
+
/** 双向绑定值 */
|
|
366
|
+
modelValue?: string | number;
|
|
367
|
+
/** 输入类型 */
|
|
368
|
+
type?: string;
|
|
369
|
+
/** 占位文案 */
|
|
370
|
+
placeholder?: string;
|
|
371
|
+
/** 是否禁用 */
|
|
372
|
+
disabled?: boolean;
|
|
373
|
+
/** 原生最小值 */
|
|
374
|
+
min?: string | number;
|
|
375
|
+
/** 原生最大值 */
|
|
376
|
+
max?: string | number;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
declare type __VLS_Props_8 = {
|
|
380
|
+
/** 当前值 */
|
|
381
|
+
modelValue?: string;
|
|
382
|
+
/** 选项列表 */
|
|
383
|
+
options?: BglSelectOption[];
|
|
384
|
+
/** 无选中值时的占位文案 */
|
|
385
|
+
placeholder?: string;
|
|
386
|
+
/** 是否展开 */
|
|
387
|
+
open?: boolean;
|
|
388
|
+
/** 是否禁用 */
|
|
389
|
+
disabled?: boolean;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
declare type __VLS_Props_9 = {
|
|
393
|
+
/** 列定义 */
|
|
394
|
+
columns?: BglDataTableColumn[];
|
|
395
|
+
/** 行数据 */
|
|
396
|
+
rows?: BglDataTableRow[];
|
|
397
|
+
/** 单元格对齐方式 */
|
|
398
|
+
align?: 'left' | 'center';
|
|
399
|
+
/** 当前高亮行下标,-1 表示无 */
|
|
400
|
+
activeIndex?: number;
|
|
401
|
+
};
|
|
402
|
+
|
|
285
403
|
declare function __VLS_template(): {
|
|
286
404
|
attrs: Partial<{}>;
|
|
287
405
|
slots: {
|
|
@@ -329,14 +447,58 @@ declare function __VLS_template(): {
|
|
|
329
447
|
rootEl: HTMLDivElement;
|
|
330
448
|
};
|
|
331
449
|
|
|
450
|
+
declare function __VLS_template_2(): {
|
|
451
|
+
attrs: Partial<{}>;
|
|
452
|
+
slots: {
|
|
453
|
+
default?(_: {}): any;
|
|
454
|
+
};
|
|
455
|
+
refs: {};
|
|
456
|
+
rootEl: any;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
declare function __VLS_template_3(): {
|
|
460
|
+
attrs: Partial<{}>;
|
|
461
|
+
slots: Partial<Record<`cell-${string}`, (_: {
|
|
462
|
+
row: BglDataTableRow;
|
|
463
|
+
index: number;
|
|
464
|
+
column: BglDataTableColumn;
|
|
465
|
+
value: string | number;
|
|
466
|
+
}) => any>> & {
|
|
467
|
+
footer?(_: {}): any;
|
|
468
|
+
};
|
|
469
|
+
refs: {
|
|
470
|
+
headRef: HTMLDivElement;
|
|
471
|
+
headTableRef: HTMLTableElement;
|
|
472
|
+
wrapRef: HTMLDivElement;
|
|
473
|
+
bodyTableRef: HTMLTableElement;
|
|
474
|
+
};
|
|
475
|
+
rootEl: HTMLDivElement;
|
|
476
|
+
};
|
|
477
|
+
|
|
332
478
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
333
479
|
|
|
480
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
481
|
+
|
|
482
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
483
|
+
|
|
334
484
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
335
485
|
new (): {
|
|
336
486
|
$slots: S;
|
|
337
487
|
};
|
|
338
488
|
};
|
|
339
489
|
|
|
490
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
491
|
+
new (): {
|
|
492
|
+
$slots: S;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
497
|
+
new (): {
|
|
498
|
+
$slots: S;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
|
|
340
502
|
/**
|
|
341
503
|
* 按配置给已上图的业务 FeatureLayer 设置 labelingInfo。
|
|
342
504
|
* 仅 FeatureLayer 生效;找不到图层时跳过。
|
|
@@ -405,6 +567,13 @@ keys: {
|
|
|
405
567
|
type: PropType<BasemapKeys | null>;
|
|
406
568
|
default: null;
|
|
407
569
|
};
|
|
570
|
+
/**
|
|
571
|
+
* 弹框外观。plain=纯色圆角面板;frame=切图九宫格背景。
|
|
572
|
+
*/
|
|
573
|
+
appearance: {
|
|
574
|
+
type: PropType<LegendAppearance>;
|
|
575
|
+
default: string;
|
|
576
|
+
};
|
|
408
577
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
409
578
|
"before-change": () => any;
|
|
410
579
|
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -418,14 +587,80 @@ keys: {
|
|
|
418
587
|
type: PropType<BasemapKeys | null>;
|
|
419
588
|
default: null;
|
|
420
589
|
};
|
|
590
|
+
/**
|
|
591
|
+
* 弹框外观。plain=纯色圆角面板;frame=切图九宫格背景。
|
|
592
|
+
*/
|
|
593
|
+
appearance: {
|
|
594
|
+
type: PropType<LegendAppearance>;
|
|
595
|
+
default: string;
|
|
596
|
+
};
|
|
421
597
|
}>> & Readonly<{
|
|
422
598
|
"onBefore-change"?: (() => any) | undefined;
|
|
423
599
|
}>, {
|
|
424
600
|
keys: BasemapKeys | null;
|
|
601
|
+
appearance: LegendAppearance;
|
|
425
602
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
426
603
|
basemapSelectRef: HTMLDivElement;
|
|
427
604
|
}, HTMLDivElement>;
|
|
428
605
|
|
|
606
|
+
export declare const BglDataTable: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
607
|
+
|
|
608
|
+
/** 表格列 */
|
|
609
|
+
export declare type BglDataTableColumn = {
|
|
610
|
+
/** 表头文案 */
|
|
611
|
+
title: string;
|
|
612
|
+
/** 列标识,同时作为单元格插槽名 cell-<key> */
|
|
613
|
+
key: string;
|
|
614
|
+
/** 列宽,如 '48px' */
|
|
615
|
+
width?: string;
|
|
616
|
+
/** 单元格渲染,缺省时按 key 直接取值 */
|
|
617
|
+
render?: (row: BglDataTableRow, index: number) => string | number;
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* 通用数据表格类型定义
|
|
622
|
+
*/
|
|
623
|
+
/** 表格行 */
|
|
624
|
+
export declare type BglDataTableRow = Record<string, string | number | undefined>;
|
|
625
|
+
|
|
626
|
+
export declare const BglInput: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
627
|
+
"update:modelValue": (value: string) => any;
|
|
628
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
629
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
630
|
+
}>, {
|
|
631
|
+
type: string;
|
|
632
|
+
placeholder: string;
|
|
633
|
+
disabled: boolean;
|
|
634
|
+
modelValue: string | number;
|
|
635
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
636
|
+
|
|
637
|
+
export declare const BglSelect: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
638
|
+
select: (value: string) => any;
|
|
639
|
+
"update:modelValue": (value: string) => any;
|
|
640
|
+
"update:open": (open: boolean) => any;
|
|
641
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
642
|
+
onSelect?: ((value: string) => any) | undefined;
|
|
643
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
644
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
645
|
+
}>, {
|
|
646
|
+
placeholder: string;
|
|
647
|
+
disabled: boolean;
|
|
648
|
+
modelValue: string;
|
|
649
|
+
options: BglSelectOption[];
|
|
650
|
+
open: boolean;
|
|
651
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
652
|
+
rootRef: HTMLDivElement;
|
|
653
|
+
}, any>;
|
|
654
|
+
|
|
655
|
+
declare type BglSelectOption = {
|
|
656
|
+
/** 选项值 */
|
|
657
|
+
value: string;
|
|
658
|
+
/** 选项展示文案 */
|
|
659
|
+
label: string;
|
|
660
|
+
/** 是否禁用该选项 */
|
|
661
|
+
disabled?: boolean;
|
|
662
|
+
};
|
|
663
|
+
|
|
429
664
|
/**
|
|
430
665
|
* 由字段列表生成 Arcade 表达式(空格拼接)。
|
|
431
666
|
*/
|
|
@@ -560,8 +795,23 @@ export declare const getSpatialReferenceMismatches: () => SpatialReferenceMismat
|
|
|
560
795
|
*/
|
|
561
796
|
export declare const goToFullExtent: (view: default_3, lonLatExtent: LonLatExtent) => Promise<void>;
|
|
562
797
|
|
|
798
|
+
/**
|
|
799
|
+
* 判断 goTo 是否被后续定位打断(可安全忽略,避免 Uncaught (in promise))。
|
|
800
|
+
*/
|
|
801
|
+
export declare const isViewGotoInterrupted: (error: unknown) => boolean;
|
|
802
|
+
|
|
563
803
|
declare type LayerProps = __esri.FeatureLayerProperties | __esri.MapImageLayerProperties;
|
|
564
804
|
|
|
805
|
+
export declare const LayerSwitch: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {
|
|
806
|
+
appearance: LegendAppearance;
|
|
807
|
+
idPrefix: string;
|
|
808
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
809
|
+
rootRef: HTMLDivElement;
|
|
810
|
+
}, HTMLDivElement>;
|
|
811
|
+
|
|
812
|
+
/** 图例外观:plain=纯色圆角面板;frame=切图九宫格背景 */
|
|
813
|
+
export declare type LegendAppearance = 'plain' | 'frame';
|
|
814
|
+
|
|
565
815
|
/** 图例停靠左右(避让业务侧栏) */
|
|
566
816
|
export declare type LegendDockPosition = 'left' | 'right';
|
|
567
817
|
|
|
@@ -621,7 +871,15 @@ export declare type LonLatExtent = {
|
|
|
621
871
|
ymax: number;
|
|
622
872
|
};
|
|
623
873
|
|
|
624
|
-
export declare
|
|
874
|
+
export declare type MapBounds = {
|
|
875
|
+
jwXMin: number;
|
|
876
|
+
jwXMax: number;
|
|
877
|
+
jwYMin: number;
|
|
878
|
+
jwYMax: number;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
export declare const MapLegend: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
882
|
+
appearance: LegendAppearance;
|
|
625
883
|
idPrefix: string;
|
|
626
884
|
position: LegendDockPosition;
|
|
627
885
|
offsetX: number;
|
|
@@ -637,7 +895,7 @@ export declare interface MapReadyPayload {
|
|
|
637
895
|
sketchLayer: default_4;
|
|
638
896
|
}
|
|
639
897
|
|
|
640
|
-
export declare const MapScaleBar: DefineComponent<
|
|
898
|
+
export declare const MapScaleBar: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
|
|
641
899
|
position: LegendDockPosition;
|
|
642
900
|
offsetX: number;
|
|
643
901
|
offsetY: number;
|
|
@@ -646,11 +904,13 @@ barStyle: ScaleBarStyle;
|
|
|
646
904
|
showNumericScale: boolean;
|
|
647
905
|
numericScaleUseGrouping: boolean;
|
|
648
906
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
649
|
-
|
|
907
|
+
rootRef: HTMLDivElement;
|
|
650
908
|
}, HTMLDivElement>;
|
|
651
909
|
|
|
652
910
|
export declare const MapToolbar: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
653
911
|
|
|
912
|
+
export declare const MapToolPanel: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
913
|
+
|
|
654
914
|
/**
|
|
655
915
|
* 将待创建图层真正加入地图并重排 z 序。
|
|
656
916
|
* 成功后从登记表移除;失败返回 null。
|
|
@@ -660,6 +920,12 @@ export declare const materializePendingBusinessLayer: (map: default_2, layerId:
|
|
|
660
920
|
/** 合并注记所需 outFields(默认注记与手动标注共用) */
|
|
661
921
|
export declare const mergeOutFields: (layer: default_7, fields: string[]) => void;
|
|
662
922
|
|
|
923
|
+
/**
|
|
924
|
+
* 将 FeatureLayer 服务自带 labelingInfo 中的不可用字体改为 Web 安全字体,
|
|
925
|
+
* 避免 GET .../fonts/simsun-regular/*.pbf 404。
|
|
926
|
+
*/
|
|
927
|
+
export declare const normalizeFeatureLayerLabelFonts: (layer: default_7) => void;
|
|
928
|
+
|
|
663
929
|
/** 去空白并大写,便于 WKT 文本比较 */
|
|
664
930
|
export declare const normalizeWkt: (wkt: string) => string;
|
|
665
931
|
|
|
@@ -671,6 +937,10 @@ export declare type PanConstraintHandle = {
|
|
|
671
937
|
remove(): void;
|
|
672
938
|
/** 包装 view.goTo,程序化定位期间临时放开边界约束 */
|
|
673
939
|
wrapViewGoTo(view: default_3): void;
|
|
940
|
+
/** 长期暂停约束(如 TXT 画图面板打开) */
|
|
941
|
+
suspend(): void;
|
|
942
|
+
/** 恢复约束 */
|
|
943
|
+
resume(): void;
|
|
674
944
|
};
|
|
675
945
|
|
|
676
946
|
/** 待创建业务图层的创建参数(勾选显示时使用) */
|
|
@@ -696,6 +966,16 @@ export declare type PendingBusinessLayerItem = {
|
|
|
696
966
|
declare const plugin: Plugin_2;
|
|
697
967
|
export default plugin;
|
|
698
968
|
|
|
969
|
+
/** 后端代签 token 登记选项(不含账号密码) */
|
|
970
|
+
export declare type PortalAccessTokenOptions = {
|
|
971
|
+
/** Portal 根地址,如 https://map.baigeli.cn */
|
|
972
|
+
portalUrl: string;
|
|
973
|
+
/** 已签发的 Portal access token */
|
|
974
|
+
token: string;
|
|
975
|
+
/** 额外登记的 server 根路径(图层 host 与 portal 不一致时传入) */
|
|
976
|
+
extraServers?: string[];
|
|
977
|
+
};
|
|
978
|
+
|
|
699
979
|
export declare type PortalAuthOptions = {
|
|
700
980
|
/** Portal 根地址,如 https://map.baigeli.cn */
|
|
701
981
|
portalUrl: string;
|
|
@@ -714,6 +994,25 @@ export declare type PortalAuthOptions = {
|
|
|
714
994
|
referer?: string;
|
|
715
995
|
};
|
|
716
996
|
|
|
997
|
+
/** 通过 fetchToken 回调续期的选项(生产推荐) */
|
|
998
|
+
export declare type PortalTokenFetcherRenewalOptions = {
|
|
999
|
+
portalUrl: string;
|
|
1000
|
+
/** 首次与续期均调用;返回 null 表示跳过鉴权 */
|
|
1001
|
+
fetchToken: () => Promise<PortalTokenFetchResult | string | null>;
|
|
1002
|
+
/** fetch 未返回 expires 时的有效分钟数,默认 60 */
|
|
1003
|
+
expirationMinutes?: number;
|
|
1004
|
+
renewBeforeMinutes?: number;
|
|
1005
|
+
extraServers?: string[];
|
|
1006
|
+
onRenewError?: (error: unknown) => void;
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
/** 后端代签 fetch 返回值 */
|
|
1010
|
+
export declare type PortalTokenFetchResult = {
|
|
1011
|
+
token: string;
|
|
1012
|
+
/** 过期时间戳(毫秒);有则按此调度续期 */
|
|
1013
|
+
expires?: number;
|
|
1014
|
+
};
|
|
1015
|
+
|
|
717
1016
|
/** startPortalTokenRenewal 的返回值 */
|
|
718
1017
|
export declare type PortalTokenRenewalHandle = {
|
|
719
1018
|
/** 当前已登记的 token */
|
|
@@ -729,7 +1028,10 @@ export declare type PortalTokenRenewalOptions = PortalAuthOptions & {
|
|
|
729
1028
|
* 例:120 分钟有效 → 默认约提前 20 分钟续期。
|
|
730
1029
|
*/
|
|
731
1030
|
renewBeforeMinutes?: number;
|
|
732
|
-
/**
|
|
1031
|
+
/**
|
|
1032
|
+
* 续期失败回调(定时刷新失败时);首次注册失败仍会抛错。
|
|
1033
|
+
* 连续失败时库内会节流:首次立即回调,之后同一失败串最多约每 15 分钟回调一次。
|
|
1034
|
+
*/
|
|
733
1035
|
onRenewError?: (error: unknown) => void;
|
|
734
1036
|
};
|
|
735
1037
|
|
|
@@ -739,6 +1041,11 @@ export declare type PortalTokenRenewalOptions = PortalAuthOptions & {
|
|
|
739
1041
|
*/
|
|
740
1042
|
export declare const provideBasemapKeys: (keys: MaybeRef<BasemapKeys>) => void;
|
|
741
1043
|
|
|
1044
|
+
/**
|
|
1045
|
+
* 登记后端代签的 Portal token(不调用 generateToken)。
|
|
1046
|
+
*/
|
|
1047
|
+
export declare const registerPortalAccessToken: (options: PortalAccessTokenOptions) => string;
|
|
1048
|
+
|
|
742
1049
|
/**
|
|
743
1050
|
* 向 IdentityManager 注册 Portal token,并挂请求拦截器保证首轮带 token。
|
|
744
1051
|
* 注意:前端持有账号密码仅适合内网联调;生产应由后端签发 token。
|
|
@@ -770,12 +1077,23 @@ export declare const resolveLabelExpression: (config: BusinessLayerLabelConfig)
|
|
|
770
1077
|
*/
|
|
771
1078
|
export declare const resolveLayerVisible: (value: unknown) => boolean;
|
|
772
1079
|
|
|
1080
|
+
/** 恢复指定视图的平移边界约束 */
|
|
1081
|
+
export declare function resumePanBounds(view: default_3): void;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* 包装 view.goTo:忽略打断类拒绝,其它错误继续抛出。
|
|
1085
|
+
*/
|
|
1086
|
+
export declare const safeViewGoTo: (view: default_3, target: Parameters<default_3["goTo"]>[0], options?: Parameters<default_3["goTo"]>[1]) => Promise<void>;
|
|
1087
|
+
|
|
773
1088
|
/** 比例尺样式 */
|
|
774
1089
|
declare type ScaleBarStyle = 'line' | 'ruler';
|
|
775
1090
|
|
|
776
1091
|
/** 比例尺单位 */
|
|
777
1092
|
declare type ScaleBarUnit = 'metric' | 'imperial' | 'dual';
|
|
778
1093
|
|
|
1094
|
+
/** 滚动重置到左上角(切换 Tab 等场景使用) */
|
|
1095
|
+
declare function scrollToTop(): void;
|
|
1096
|
+
|
|
779
1097
|
/**
|
|
780
1098
|
* 登记尚未上图的业务图层(默认隐藏)。
|
|
781
1099
|
* 不 map.add,因此不会触发服务元数据请求;用户勾选时再 materialize。
|
|
@@ -785,6 +1103,126 @@ export declare const setPendingBusinessLayers: (layers: BusinessLayerConfig[], o
|
|
|
785
1103
|
/** 是否应按 MapImageLayer 加载(整幅 MapServer) */
|
|
786
1104
|
export declare const shouldUseMapImageLayer: (item: BusinessLayerConfig) => boolean;
|
|
787
1105
|
|
|
1106
|
+
export declare const SpatialAnalysisPanel: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
|
|
1107
|
+
systemCoordinateWkid: number | null;
|
|
1108
|
+
mapBounds: MapBounds | null;
|
|
1109
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1110
|
+
fileInputRef: HTMLInputElement;
|
|
1111
|
+
tabsScrollRef: HTMLDivElement;
|
|
1112
|
+
resultTableRef: ({
|
|
1113
|
+
$: ComponentInternalInstance;
|
|
1114
|
+
$data: {};
|
|
1115
|
+
$props: {
|
|
1116
|
+
readonly columns?: BglDataTableColumn[] | undefined;
|
|
1117
|
+
readonly rows?: BglDataTableRow[] | undefined;
|
|
1118
|
+
readonly align?: "left" | "center" | undefined;
|
|
1119
|
+
readonly activeIndex?: number | undefined;
|
|
1120
|
+
readonly "onUpdate:activeIndex"?: ((index: number) => any) | undefined;
|
|
1121
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1122
|
+
$attrs: Attrs;
|
|
1123
|
+
$refs: {
|
|
1124
|
+
[x: string]: unknown;
|
|
1125
|
+
} & {
|
|
1126
|
+
headRef: HTMLDivElement;
|
|
1127
|
+
headTableRef: HTMLTableElement;
|
|
1128
|
+
wrapRef: HTMLDivElement;
|
|
1129
|
+
bodyTableRef: HTMLTableElement;
|
|
1130
|
+
};
|
|
1131
|
+
$slots: Readonly<{
|
|
1132
|
+
[name: string]: Slot<any> | undefined;
|
|
1133
|
+
}>;
|
|
1134
|
+
$root: ComponentPublicInstance | null;
|
|
1135
|
+
$parent: ComponentPublicInstance | null;
|
|
1136
|
+
$host: Element | null;
|
|
1137
|
+
$emit: (event: "update:activeIndex", index: number) => void;
|
|
1138
|
+
$el: HTMLDivElement;
|
|
1139
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
1140
|
+
columns?: BglDataTableColumn[];
|
|
1141
|
+
rows?: BglDataTableRow[];
|
|
1142
|
+
align?: "left" | "center";
|
|
1143
|
+
activeIndex?: number;
|
|
1144
|
+
}> & Readonly<{
|
|
1145
|
+
"onUpdate:activeIndex"?: ((index: number) => any) | undefined;
|
|
1146
|
+
}>, {
|
|
1147
|
+
scrollToTop: () => void;
|
|
1148
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1149
|
+
"update:activeIndex": (index: number) => any;
|
|
1150
|
+
}, string, {
|
|
1151
|
+
rows: BglDataTableRow[];
|
|
1152
|
+
columns: BglDataTableColumn[];
|
|
1153
|
+
align: "left" | "center";
|
|
1154
|
+
activeIndex: number;
|
|
1155
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1156
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1157
|
+
created?: (() => void) | (() => void)[];
|
|
1158
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1159
|
+
mounted?: (() => void) | (() => void)[];
|
|
1160
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1161
|
+
updated?: (() => void) | (() => void)[];
|
|
1162
|
+
activated?: (() => void) | (() => void)[];
|
|
1163
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1164
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1165
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1166
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1167
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1168
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1169
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1170
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1171
|
+
};
|
|
1172
|
+
$forceUpdate: () => void;
|
|
1173
|
+
$nextTick: typeof nextTick;
|
|
1174
|
+
$watch<T extends string | ((
|
|
1175
|
+
/**
|
|
1176
|
+
* 空间分析面板(可导出地图组件)
|
|
1177
|
+
* UI + 业务编排:叠加图层、上传上图、分析、导出、重置
|
|
1178
|
+
* map/view 由宿主 props 注入
|
|
1179
|
+
*/
|
|
1180
|
+
...args: any) => any)>(source: T, cb: T extends (
|
|
1181
|
+
/**
|
|
1182
|
+
* 空间分析面板(可导出地图组件)
|
|
1183
|
+
* UI + 业务编排:叠加图层、上传上图、分析、导出、重置
|
|
1184
|
+
* map/view 由宿主 props 注入
|
|
1185
|
+
*/
|
|
1186
|
+
...args: any) => infer R ? (
|
|
1187
|
+
/**
|
|
1188
|
+
* 空间分析面板(可导出地图组件)
|
|
1189
|
+
* UI + 业务编排:叠加图层、上传上图、分析、导出、重置
|
|
1190
|
+
* map/view 由宿主 props 注入
|
|
1191
|
+
*/
|
|
1192
|
+
...args: [R, R, OnCleanup]) => any : (
|
|
1193
|
+
/**
|
|
1194
|
+
* 空间分析面板(可导出地图组件)
|
|
1195
|
+
* UI + 业务编排:叠加图层、上传上图、分析、导出、重置
|
|
1196
|
+
* map/view 由宿主 props 注入
|
|
1197
|
+
*/
|
|
1198
|
+
...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1199
|
+
} & Readonly<{
|
|
1200
|
+
rows: BglDataTableRow[];
|
|
1201
|
+
columns: BglDataTableColumn[];
|
|
1202
|
+
align: "left" | "center";
|
|
1203
|
+
activeIndex: number;
|
|
1204
|
+
}> & Omit<Readonly<{
|
|
1205
|
+
columns?: BglDataTableColumn[];
|
|
1206
|
+
rows?: BglDataTableRow[];
|
|
1207
|
+
align?: "left" | "center";
|
|
1208
|
+
activeIndex?: number;
|
|
1209
|
+
}> & Readonly<{
|
|
1210
|
+
"onUpdate:activeIndex"?: ((index: number) => any) | undefined;
|
|
1211
|
+
}>, "scrollToTop" | ("rows" | "columns" | "align" | "activeIndex")> & {
|
|
1212
|
+
scrollToTop: () => void;
|
|
1213
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
1214
|
+
$slots: Partial<Record<`cell-${string}`, (_: {
|
|
1215
|
+
row: BglDataTableRow;
|
|
1216
|
+
index: number;
|
|
1217
|
+
column: BglDataTableColumn;
|
|
1218
|
+
value: string | number;
|
|
1219
|
+
}) => any>> & {
|
|
1220
|
+
footer?(_: {}): any;
|
|
1221
|
+
};
|
|
1222
|
+
}) | null;
|
|
1223
|
+
wordRef: HTMLDivElement;
|
|
1224
|
+
}, HTMLDivElement>;
|
|
1225
|
+
|
|
788
1226
|
/** 业务图层坐标系校验结果原因 */
|
|
789
1227
|
export declare type SpatialReferenceCheckReason = 'mismatch' | 'unreadable';
|
|
790
1228
|
|
|
@@ -824,12 +1262,21 @@ export declare type SpatialReferenceMismatchInfo = {
|
|
|
824
1262
|
*/
|
|
825
1263
|
export declare const startPortalTokenRenewal: (options: PortalTokenRenewalOptions) => Promise<PortalTokenRenewalHandle>;
|
|
826
1264
|
|
|
1265
|
+
/**
|
|
1266
|
+
* 通过 fetchToken 登记 Portal token 并自动续期(后端代签场景)。
|
|
1267
|
+
* fetchToken 应调用业务后端 /portalToken,不再持有 Portal 账号密码。
|
|
1268
|
+
*/
|
|
1269
|
+
export declare const startPortalTokenRenewalWithFetcher: (options: PortalTokenFetcherRenewalOptions) => Promise<PortalTokenRenewalHandle>;
|
|
1270
|
+
|
|
827
1271
|
/** 订阅待创建列表变化(返回取消订阅) */
|
|
828
1272
|
export declare const subscribePendingBusinessLayers: (listener: () => void) => (() => void);
|
|
829
1273
|
|
|
830
1274
|
/** 订阅不一致登记变化(返回取消订阅函数) */
|
|
831
1275
|
export declare const subscribeSpatialReferenceMismatches: (listener: () => void) => (() => void);
|
|
832
1276
|
|
|
1277
|
+
/** 暂停指定视图的平移边界约束 */
|
|
1278
|
+
export declare function suspendPanBounds(view: default_3): void;
|
|
1279
|
+
|
|
833
1280
|
export declare const SwipeCompare: DefineComponent<ExtractPropTypes< {
|
|
834
1281
|
/** MapView 实例 */
|
|
835
1282
|
view: {
|
|
@@ -841,6 +1288,13 @@ keys: {
|
|
|
841
1288
|
type: PropType<BasemapKeys | null>;
|
|
842
1289
|
default: null;
|
|
843
1290
|
};
|
|
1291
|
+
/**
|
|
1292
|
+
* 弹框外观。plain=纯色圆角面板;frame=切图九宫格背景。
|
|
1293
|
+
*/
|
|
1294
|
+
appearance: {
|
|
1295
|
+
type: PropType<LegendAppearance>;
|
|
1296
|
+
default: string;
|
|
1297
|
+
};
|
|
844
1298
|
}>, {
|
|
845
1299
|
destroySwipe: () => void;
|
|
846
1300
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -854,8 +1308,16 @@ keys: {
|
|
|
854
1308
|
type: PropType<BasemapKeys | null>;
|
|
855
1309
|
default: null;
|
|
856
1310
|
};
|
|
1311
|
+
/**
|
|
1312
|
+
* 弹框外观。plain=纯色圆角面板;frame=切图九宫格背景。
|
|
1313
|
+
*/
|
|
1314
|
+
appearance: {
|
|
1315
|
+
type: PropType<LegendAppearance>;
|
|
1316
|
+
default: string;
|
|
1317
|
+
};
|
|
857
1318
|
}>> & Readonly<{}>, {
|
|
858
1319
|
keys: BasemapKeys | null;
|
|
1320
|
+
appearance: LegendAppearance;
|
|
859
1321
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
860
1322
|
swipeSelectRef: HTMLDivElement;
|
|
861
1323
|
}, HTMLDivElement>;
|
|
@@ -879,7 +1341,7 @@ export declare const toFeatureLayerProps: (item: BusinessLayerConfig) => __esri.
|
|
|
879
1341
|
export declare const toLayerProps: (item: BusinessLayerConfig, options?: Pick<LoadBusinessLayersOptions, "idPrefix" | "outFields" | "accessToken">) => LayerProps;
|
|
880
1342
|
|
|
881
1343
|
/** 工具栏内置工具 id(不含坐标条,坐标条由 showCoordinate 控制) */
|
|
882
|
-
export declare type ToolbarToolId = 'fullExtent' | 'fullscreen' | 'zoomIn' | 'zoomOut' | 'coordinateLocate' | 'distanceMeasure' | 'areaMeasure' | 'layerManage' | 'layerSwipe' | 'mapLabel' | 'conditionQuery';
|
|
1344
|
+
export declare type ToolbarToolId = 'fullExtent' | 'fullscreen' | 'zoomIn' | 'zoomOut' | 'prevExtent' | 'nextExtent' | 'coordinateLocate' | 'distanceMeasure' | 'areaMeasure' | 'layerManage' | 'layerSwipe' | 'mapLabel' | 'conditionQuery' | 'txtDraw';
|
|
883
1345
|
|
|
884
1346
|
/**
|
|
885
1347
|
* 解析底图密钥:显式 props.keys 优先,否则取 inject,再否则空对象。
|
|
@@ -887,4 +1349,7 @@ export declare type ToolbarToolId = 'fullExtent' | 'fullscreen' | 'zoomIn' | 'zo
|
|
|
887
1349
|
*/
|
|
888
1350
|
export declare const useBasemapKeys: (propsKeys?: MaybeRefOrGetter<BasemapKeys | null | undefined>) => ComputedRef<BasemapKeys>;
|
|
889
1351
|
|
|
1352
|
+
/** 地图 Web 标注可用字体(Esri CDN 托管字形) */
|
|
1353
|
+
export declare const WEB_SAFE_LABEL_FONT = "Arial Unicode MS";
|
|
1354
|
+
|
|
890
1355
|
export { }
|