vis-core 0.31.8 → 0.31.10

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
@@ -90,6 +90,12 @@ declare class Area extends GroupObject {
90
90
  export declare class Base extends Camera {
91
91
  static VisName: string;
92
92
  private static _loadingCount;
93
+ private static urlCache;
94
+ /**
95
+ * 清除特定 URL 的缓存
96
+ * @param url 要清除的 URL,如果不提供则清除所有缓存
97
+ */
98
+ static clearUrlCache(url?: string): void;
93
99
  playing: boolean;
94
100
  leftTruck: boolean;
95
101
  options: BaseOptions;
@@ -555,6 +561,7 @@ export declare interface FixConfig {
555
561
  t?: string[];
556
562
  b?: string[];
557
563
  l?: string[];
564
+ r?: string[];
558
565
  };
559
566
  }
560
567
 
@@ -706,7 +713,7 @@ declare class Map_2 extends Base {
706
713
  hide(): Promise<void>;
707
714
  shadowMapEnabled(): Promise<void>;
708
715
  getOptionsDepth(adcode: number): number;
709
- getDepth(adcode: number, futureBox: number[]): number;
716
+ getDepth(adcode: number): number;
710
717
  getReferenceScale(bboxa: number[], bboxb: number[]): number;
711
718
  getAdcodeShowLevel(adcode: number, fix?: boolean): string | undefined;
712
719
  handleClick(area?: ExtrudePolygonObject): void;
@@ -886,12 +893,15 @@ export declare class MapManager {
886
893
  private mapInstances;
887
894
  private mapDistances;
888
895
  private mapConfigs;
896
+ private mapReferenceAngle;
889
897
  private currentMap;
890
898
  private currentZoom;
891
899
  private mapPadding;
892
900
  private isInitializing;
893
901
  private rmTemplateIdentifier;
894
902
  private geojsonExtensions;
903
+ private areaHoverEnabled;
904
+ private showBuildingOnlyWithoutChildren;
895
905
  private groups;
896
906
  private eventHandlers;
897
907
  private areaCloseTimer;
@@ -918,6 +928,7 @@ export declare class MapManager {
918
928
  } | undefined;
919
929
  static extendsAdcodeAll: (cb: any) => void;
920
930
  key: string;
931
+ topAdcode: number;
921
932
  constructor(config: MapManagerConfig);
922
933
  /**
923
934
  * 设置事件处理器
@@ -938,7 +949,7 @@ export declare class MapManager {
938
949
  /**
939
950
  * 初始化地图
940
951
  */
941
- initMap(adcodeArr: number[], fixedAdcode?: boolean): Promise<Map_2 | null | undefined>;
952
+ showMap(adcodeArr: number[], fixedAdcode?: boolean): Promise<Map_2 | null>;
942
953
  /**
943
954
  * 创建地图实例
944
955
  */
@@ -993,6 +1004,9 @@ export declare interface MapManagerConfig {
993
1004
  rmTemplateIdentifier?: boolean;
994
1005
  geojsonExtensions?: Record<string, any[]>;
995
1006
  mapConfigs?: Record<string, any>;
1007
+ areaHoverEnabled?: boolean;
1008
+ topAdcode?: number;
1009
+ showBuildingOnlyWithoutChildren?: boolean;
996
1010
  }
997
1011
 
998
1012
  declare interface MapOptions extends BaseOptions {
@@ -1425,6 +1439,8 @@ declare interface SwitchFixConfig {
1425
1439
  b?: string[];
1426
1440
  /** 灯光按缩放比调整 */
1427
1441
  l?: string[];
1442
+ /** 删除对象 */
1443
+ r?: string[];
1428
1444
  }
1429
1445
 
1430
1446
  declare class Target extends GroupObject {
@@ -1473,7 +1489,7 @@ export { TWEEN }
1473
1489
 
1474
1490
  export { Tween }
1475
1491
 
1476
- export declare const VERSION = "0.31.8";
1492
+ export declare const VERSION = "0.31.10";
1477
1493
 
1478
1494
  export { }
1479
1495