vis-core 0.30.6 → 0.30.8

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
@@ -610,8 +610,11 @@ declare const findAdcodeInfo: (adcode: number) => {
610
610
 
611
611
  export declare interface FixConfig {
612
612
  [key: `${string}`]: {
613
- s: string[];
614
- z: string[];
613
+ s?: string[];
614
+ z?: string[];
615
+ t?: string[];
616
+ b?: string[];
617
+ l?: string[];
615
618
  };
616
619
  }
617
620
 
@@ -634,11 +637,9 @@ export declare const getCityConfig: (adcode: number) => {
634
637
  /**
635
638
  * 获取地图配置
636
639
  * @param adcode 区域代码
637
- * @param base 基础URL
638
- * @param prevConfig 之前的配置
639
- * @param imgArr 图像数组
640
+ * @param options 配置选项
640
641
  */
641
- export declare const getMapConfig: (adcode: number, base?: string, prevConfig?: any, imgArr?: string[] | Record<string, string>) => Promise<any>;
642
+ export declare const getMapConfig: (adcode: number, options?: MapConfigOptions) => Promise<any>;
642
643
 
643
644
  declare const getProjection: (options: {
644
645
  center: [number, number];
@@ -1010,13 +1011,24 @@ declare interface MapCityOptions extends MapOptions {
1010
1011
  citySSAO?: boolean;
1011
1012
  }
1012
1013
 
1014
+ /**
1015
+ * 地图配置选项接口
1016
+ */
1017
+ export declare interface MapConfigOptions {
1018
+ /** 基础URL */
1019
+ base?: string;
1020
+ /** 之前的配置 */
1021
+ prevConfig?: any;
1022
+ /** 图像数组 */
1023
+ imgArr?: string[] | Record<string, string>;
1024
+ /** 自定义模板配置,会与默认配置合并 */
1025
+ customTemplateConfigs?: Record<string, TemplateConfig>;
1026
+ }
1027
+
1013
1028
  export declare interface MapEventHandlers {
1014
1029
  [key: string]: (...args: any[]) => void;
1015
1030
  }
1016
1031
 
1017
- /**
1018
- * MapManager - 地图管理类
1019
- */
1020
1032
  export declare class MapManager {
1021
1033
  private container;
1022
1034
  private controlsContainer?;
@@ -1136,6 +1148,7 @@ export declare interface MapManagerConfig {
1136
1148
  mapPadding?: [number, number, number, number];
1137
1149
  rmTemplateIdentifier?: boolean;
1138
1150
  geojsonExtensions?: Record<string, any[]>;
1151
+ mapConfigs?: Record<string, any>;
1139
1152
  }
1140
1153
 
1141
1154
  declare interface MapOptions extends BaseOptions {
@@ -1699,6 +1712,18 @@ declare class Target extends BaseObject {
1699
1712
  update(delta: number, elapsed: number): void;
1700
1713
  }
1701
1714
 
1715
+ /**
1716
+ * 模板配置接口
1717
+ */
1718
+ declare interface TemplateConfig {
1719
+ id: string;
1720
+ mapIndex?: number;
1721
+ mapId?: string;
1722
+ emissiveMapIndex?: number;
1723
+ emmisiveMapId?: string;
1724
+ cityOnly?: boolean;
1725
+ }
1726
+
1702
1727
  declare class Tetrahedron extends BaseObject {
1703
1728
  create(): void;
1704
1729
  }
@@ -1725,7 +1750,7 @@ export { TWEEN }
1725
1750
 
1726
1751
  export { Tween }
1727
1752
 
1728
- export declare const VERSION = "0.30.6";
1753
+ export declare const VERSION = "0.30.8";
1729
1754
 
1730
1755
  declare class Viewport {
1731
1756
  editor: Editor;