@metagl/sdk-render 1.0.13 → 1.0.14

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.
@@ -2474,6 +2474,7 @@ interface RenderConfig {
2474
2474
  machineCode?: string;
2475
2475
  lic?: string;
2476
2476
  rsaPubKey?: string;
2477
+ assetsBasePath?: string;
2477
2478
  directionalLight?: DirectionalLightConfig;
2478
2479
  shadow?: ShadowConfig;
2479
2480
  volumetricClouds?: VolumetricCloudsConfig;
@@ -4770,6 +4771,19 @@ declare class VectorTileSystem {
4770
4771
  destroy(): Promise<void>;
4771
4772
  }
4772
4773
 
4774
+ /**
4775
+ * 设置全局基础路径(供用户手动配置)
4776
+ */
4777
+ declare function setSdkBasePath(path: string): void;
4778
+ /**
4779
+ * 获取当前基础路径
4780
+ */
4781
+ declare function getSdkBasePath(): string;
4782
+ /**
4783
+ * 解析资源路径
4784
+ */
4785
+ declare function resolveAssetPath(relativePath: string): string;
4786
+
4773
4787
  declare global {
4774
4788
  interface Window {
4775
4789
  LACDT?: Record<string, any>;
@@ -4818,6 +4832,12 @@ declare const render: {
4818
4832
  SeaSystem: typeof SeaSystem;
4819
4833
  /** 矢量瓦片系统 */
4820
4834
  VectorTileSystem: typeof VectorTileSystem;
4835
+ /** 设置资源基础路径 */
4836
+ setSdkBasePath: typeof setSdkBasePath;
4837
+ /** 获取当前资源基础路径 */
4838
+ getSdkBasePath: typeof getSdkBasePath;
4839
+ /** 解析资源路径 */
4840
+ resolveAssetPath: typeof resolveAssetPath;
4821
4841
  };
4822
4842
 
4823
- export { AtmosphereControl, type AtmosphereScatteringConfig, AtmosphereScatteringSystem, BuildingControl, BuildingSystem, CameraListener, type CameraListenerConfig, CameraListenerSystem, type CameraListenerSystemConfig, type CameraParams, CameraUrlManager, type CameraUrlManagerConfig, type DirectionalLightConfig, type DistanceFogConfig, DistanceFogSystem, EnvironmentControl, FogControl, type HeightFogConfig, HeightFogSystem, LayerControl, LayerSystem, LightingControl, LightingSystem, PlottingControl, type PostProcessingConfig, PostProcessingControl, PostProcessingSystem, RainSystem, Render, type RenderConfig, RenderControl, type SeaConfig, SeaSystem, type ShadowConfig, ShadowControl, ShadowSystem, SidebarControl, TilesetManager, TilesetSearchControl, ToolboxControl, ToolboxSystem, VectorTileSystem, Version, type VersionInfo, VolumetricCloudControl, type VolumetricCloudsConfig, VolumetricCloudsSystem, type WaterConfig, WaterControl, WaterSystem, type WeatherAreaData, getVersionInfo, printVersion, render };
4843
+ export { AtmosphereControl, type AtmosphereScatteringConfig, AtmosphereScatteringSystem, BuildingControl, BuildingSystem, CameraListener, type CameraListenerConfig, CameraListenerSystem, type CameraListenerSystemConfig, type CameraParams, CameraUrlManager, type CameraUrlManagerConfig, type DirectionalLightConfig, type DistanceFogConfig, DistanceFogSystem, EnvironmentControl, FogControl, type HeightFogConfig, HeightFogSystem, LayerControl, LayerSystem, LightingControl, LightingSystem, PlottingControl, type PostProcessingConfig, PostProcessingControl, PostProcessingSystem, RainSystem, Render, type RenderConfig, RenderControl, type SeaConfig, SeaSystem, type ShadowConfig, ShadowControl, ShadowSystem, SidebarControl, TilesetManager, TilesetSearchControl, ToolboxControl, ToolboxSystem, VectorTileSystem, Version, type VersionInfo, VolumetricCloudControl, type VolumetricCloudsConfig, VolumetricCloudsSystem, type WaterConfig, WaterControl, WaterSystem, type WeatherAreaData, getSdkBasePath, getVersionInfo, printVersion, render, resolveAssetPath, setSdkBasePath };
@@ -2474,6 +2474,7 @@ interface RenderConfig {
2474
2474
  machineCode?: string;
2475
2475
  lic?: string;
2476
2476
  rsaPubKey?: string;
2477
+ assetsBasePath?: string;
2477
2478
  directionalLight?: DirectionalLightConfig;
2478
2479
  shadow?: ShadowConfig;
2479
2480
  volumetricClouds?: VolumetricCloudsConfig;
@@ -4770,6 +4771,19 @@ declare class VectorTileSystem {
4770
4771
  destroy(): Promise<void>;
4771
4772
  }
4772
4773
 
4774
+ /**
4775
+ * 设置全局基础路径(供用户手动配置)
4776
+ */
4777
+ declare function setSdkBasePath(path: string): void;
4778
+ /**
4779
+ * 获取当前基础路径
4780
+ */
4781
+ declare function getSdkBasePath(): string;
4782
+ /**
4783
+ * 解析资源路径
4784
+ */
4785
+ declare function resolveAssetPath(relativePath: string): string;
4786
+
4773
4787
  declare global {
4774
4788
  interface Window {
4775
4789
  LACDT?: Record<string, any>;
@@ -4818,6 +4832,12 @@ declare const render: {
4818
4832
  SeaSystem: typeof SeaSystem;
4819
4833
  /** 矢量瓦片系统 */
4820
4834
  VectorTileSystem: typeof VectorTileSystem;
4835
+ /** 设置资源基础路径 */
4836
+ setSdkBasePath: typeof setSdkBasePath;
4837
+ /** 获取当前资源基础路径 */
4838
+ getSdkBasePath: typeof getSdkBasePath;
4839
+ /** 解析资源路径 */
4840
+ resolveAssetPath: typeof resolveAssetPath;
4821
4841
  };
4822
4842
 
4823
- export { AtmosphereControl, type AtmosphereScatteringConfig, AtmosphereScatteringSystem, BuildingControl, BuildingSystem, CameraListener, type CameraListenerConfig, CameraListenerSystem, type CameraListenerSystemConfig, type CameraParams, CameraUrlManager, type CameraUrlManagerConfig, type DirectionalLightConfig, type DistanceFogConfig, DistanceFogSystem, EnvironmentControl, FogControl, type HeightFogConfig, HeightFogSystem, LayerControl, LayerSystem, LightingControl, LightingSystem, PlottingControl, type PostProcessingConfig, PostProcessingControl, PostProcessingSystem, RainSystem, Render, type RenderConfig, RenderControl, type SeaConfig, SeaSystem, type ShadowConfig, ShadowControl, ShadowSystem, SidebarControl, TilesetManager, TilesetSearchControl, ToolboxControl, ToolboxSystem, VectorTileSystem, Version, type VersionInfo, VolumetricCloudControl, type VolumetricCloudsConfig, VolumetricCloudsSystem, type WaterConfig, WaterControl, WaterSystem, type WeatherAreaData, getVersionInfo, printVersion, render };
4843
+ export { AtmosphereControl, type AtmosphereScatteringConfig, AtmosphereScatteringSystem, BuildingControl, BuildingSystem, CameraListener, type CameraListenerConfig, CameraListenerSystem, type CameraListenerSystemConfig, type CameraParams, CameraUrlManager, type CameraUrlManagerConfig, type DirectionalLightConfig, type DistanceFogConfig, DistanceFogSystem, EnvironmentControl, FogControl, type HeightFogConfig, HeightFogSystem, LayerControl, LayerSystem, LightingControl, LightingSystem, PlottingControl, type PostProcessingConfig, PostProcessingControl, PostProcessingSystem, RainSystem, Render, type RenderConfig, RenderControl, type SeaConfig, SeaSystem, type ShadowConfig, ShadowControl, ShadowSystem, SidebarControl, TilesetManager, TilesetSearchControl, ToolboxControl, ToolboxSystem, VectorTileSystem, Version, type VersionInfo, VolumetricCloudControl, type VolumetricCloudsConfig, VolumetricCloudsSystem, type WaterConfig, WaterControl, WaterSystem, type WeatherAreaData, getSdkBasePath, getVersionInfo, printVersion, render, resolveAssetPath, setSdkBasePath };