@metagl/sdk-render 1.0.12 → 1.0.13
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 +1 -1
- package/README_EN.md +1 -1
- package/amd/lacdt.render.amd.js +61 -55
- package/cjs/lacdt.render.cjs.js +62 -55
- package/cjs/lacdt.render.d.ts +163 -7
- package/esm/lacdt.render.d.ts +163 -7
- package/esm/lacdt.render.js +58 -55
- package/lacdt.render.d.ts +163 -7
- package/lacdt.render.js +64 -58
- package/package.json +4 -1
package/lacdt.render.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import * as Cesium from 'cesium';
|
|
1
|
+
import * as Cesium$1 from 'cesium';
|
|
2
2
|
import { Cartesian3, Color, Viewer, PostProcessStage, Cartesian4, Rectangle, Primitive, Cesium3DTileset, ClippingPolygonCollection } from 'cesium';
|
|
3
3
|
import { Render as Render$1 } from '@/system/RenderCore';
|
|
4
|
+
import { VectorTileset } from '@metagl/sdk-mbtiles';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* RenderSystem
|
|
@@ -1480,7 +1481,7 @@ declare class LayerSystem implements RenderSystem {
|
|
|
1480
1481
|
}
|
|
1481
1482
|
|
|
1482
1483
|
interface ViewshedConfig {
|
|
1483
|
-
position: Cesium.Cartesian3;
|
|
1484
|
+
position: Cesium$1.Cartesian3;
|
|
1484
1485
|
heading: number;
|
|
1485
1486
|
pitch: number;
|
|
1486
1487
|
distance: number;
|
|
@@ -1490,8 +1491,8 @@ interface ViewshedConfig {
|
|
|
1490
1491
|
texelSnap?: boolean;
|
|
1491
1492
|
minHeight?: number;
|
|
1492
1493
|
near?: number;
|
|
1493
|
-
visibleColor?: Cesium.Color;
|
|
1494
|
-
hiddenColor?: Cesium.Color;
|
|
1494
|
+
visibleColor?: Cesium$1.Color;
|
|
1495
|
+
hiddenColor?: Cesium$1.Color;
|
|
1495
1496
|
}
|
|
1496
1497
|
/**
|
|
1497
1498
|
* 视域分析系统 - 支持多视域实例和多视锥体模式
|
|
@@ -1559,7 +1560,7 @@ declare class ViewshedAnalysisSystem implements RenderSystem {
|
|
|
1559
1560
|
/**
|
|
1560
1561
|
* 使用 direction 和 up 向量更新视域方向(参考 DirectionCameraBinding)
|
|
1561
1562
|
*/
|
|
1562
|
-
updateViewshedOrientation(id: string, position: Cesium.Cartesian3, direction: Cesium.Cartesian3, up: Cesium.Cartesian3): void;
|
|
1563
|
+
updateViewshedOrientation(id: string, position: Cesium$1.Cartesian3, direction: Cesium$1.Cartesian3, up: Cesium$1.Cartesian3): void;
|
|
1563
1564
|
/**
|
|
1564
1565
|
* 更新可视距离
|
|
1565
1566
|
*/
|
|
@@ -1659,7 +1660,7 @@ declare class ViewshedAnalysisSystem implements RenderSystem {
|
|
|
1659
1660
|
}
|
|
1660
1661
|
|
|
1661
1662
|
interface SingleViewshedConfig {
|
|
1662
|
-
position: Cesium.Cartesian3;
|
|
1663
|
+
position: Cesium$1.Cartesian3;
|
|
1663
1664
|
heading: number;
|
|
1664
1665
|
pitch: number;
|
|
1665
1666
|
distance: number;
|
|
@@ -2679,6 +2680,54 @@ declare class Render {
|
|
|
2679
2680
|
destroy(): void;
|
|
2680
2681
|
}
|
|
2681
2682
|
|
|
2683
|
+
/**
|
|
2684
|
+
* 版本信息工具类
|
|
2685
|
+
* 用于在运行时获取 SDK 的版本信息
|
|
2686
|
+
*/
|
|
2687
|
+
interface VersionInfo {
|
|
2688
|
+
version: string;
|
|
2689
|
+
buildTime: string;
|
|
2690
|
+
buildMode: string;
|
|
2691
|
+
}
|
|
2692
|
+
/**
|
|
2693
|
+
* 获取 SDK 版本信息
|
|
2694
|
+
* @returns 版本信息对象
|
|
2695
|
+
*/
|
|
2696
|
+
declare function getVersionInfo(): VersionInfo;
|
|
2697
|
+
/**
|
|
2698
|
+
* 在控制台打印版本信息
|
|
2699
|
+
*/
|
|
2700
|
+
declare function printVersion(): void;
|
|
2701
|
+
/**
|
|
2702
|
+
* 版本信息类
|
|
2703
|
+
*/
|
|
2704
|
+
declare class Version {
|
|
2705
|
+
/**
|
|
2706
|
+
* 获取版本号
|
|
2707
|
+
*/
|
|
2708
|
+
static get version(): string;
|
|
2709
|
+
/**
|
|
2710
|
+
* 获取构建时间
|
|
2711
|
+
*/
|
|
2712
|
+
static get buildTime(): string;
|
|
2713
|
+
/**
|
|
2714
|
+
* 获取构建模式
|
|
2715
|
+
*/
|
|
2716
|
+
static get buildMode(): string;
|
|
2717
|
+
/**
|
|
2718
|
+
* 获取完整版本信息
|
|
2719
|
+
*/
|
|
2720
|
+
static get info(): VersionInfo;
|
|
2721
|
+
/**
|
|
2722
|
+
* 打印版本信息到控制台
|
|
2723
|
+
*/
|
|
2724
|
+
static print(): void;
|
|
2725
|
+
/**
|
|
2726
|
+
* 转换为字符串
|
|
2727
|
+
*/
|
|
2728
|
+
static toString(): string;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2682
2731
|
declare class RenderControl {
|
|
2683
2732
|
private viewer;
|
|
2684
2733
|
private render;
|
|
@@ -4618,6 +4667,109 @@ declare class RainSystem {
|
|
|
4618
4667
|
private _getParticleSystemMatrix;
|
|
4619
4668
|
}
|
|
4620
4669
|
|
|
4670
|
+
interface VectorTileSystemConfig {
|
|
4671
|
+
enabled?: boolean;
|
|
4672
|
+
style?: string | object;
|
|
4673
|
+
showTileColor?: boolean;
|
|
4674
|
+
workerUrl?: string;
|
|
4675
|
+
maximumActiveTasks?: number;
|
|
4676
|
+
useBillboard?: boolean;
|
|
4677
|
+
}
|
|
4678
|
+
/**
|
|
4679
|
+
* 矢量瓦片系统类
|
|
4680
|
+
* 用于加载和显示Mapbox矢量瓦片
|
|
4681
|
+
* 参考: sdk-mbtiles/examples/index.js
|
|
4682
|
+
*/
|
|
4683
|
+
declare class VectorTileSystem {
|
|
4684
|
+
private viewer;
|
|
4685
|
+
private isEnabled;
|
|
4686
|
+
private config;
|
|
4687
|
+
private tileset;
|
|
4688
|
+
private style;
|
|
4689
|
+
constructor(viewer: Cesium.Viewer, config?: VectorTileSystemConfig);
|
|
4690
|
+
/**
|
|
4691
|
+
* 初始化系统
|
|
4692
|
+
*/
|
|
4693
|
+
private init;
|
|
4694
|
+
/**
|
|
4695
|
+
* 设置样式并重新加载
|
|
4696
|
+
* @param style Mapbox样式URL或样式对象
|
|
4697
|
+
*/
|
|
4698
|
+
setStyle(style: string | object): Promise<void>;
|
|
4699
|
+
/**
|
|
4700
|
+
* 获取当前样式
|
|
4701
|
+
*/
|
|
4702
|
+
getStyle(): string | object | null;
|
|
4703
|
+
/**
|
|
4704
|
+
* 设置图层布局属性
|
|
4705
|
+
* @param layerId 图层ID
|
|
4706
|
+
* @param name 属性名
|
|
4707
|
+
* @param value 属性值
|
|
4708
|
+
*/
|
|
4709
|
+
setLayoutProperty(layerId: string, name: string, value: any): boolean;
|
|
4710
|
+
/**
|
|
4711
|
+
* 设置图层绘制属性
|
|
4712
|
+
* @param layerId 图层ID
|
|
4713
|
+
* @param name 属性名
|
|
4714
|
+
* @param value 属性值
|
|
4715
|
+
*/
|
|
4716
|
+
setPaintProperty(layerId: string, name: string, value: any): boolean;
|
|
4717
|
+
/**
|
|
4718
|
+
* 设置图层过滤器
|
|
4719
|
+
* @param layerId 图层ID
|
|
4720
|
+
* @param filter 过滤器
|
|
4721
|
+
*/
|
|
4722
|
+
setFilter(layerId: string, filter: any): boolean;
|
|
4723
|
+
/**
|
|
4724
|
+
* 获取矢量瓦片集实例
|
|
4725
|
+
*/
|
|
4726
|
+
getTileset(): VectorTileset | null;
|
|
4727
|
+
/**
|
|
4728
|
+
* 获取就绪状态
|
|
4729
|
+
*/
|
|
4730
|
+
isReady(): boolean;
|
|
4731
|
+
/**
|
|
4732
|
+
* 设置显示状态
|
|
4733
|
+
*/
|
|
4734
|
+
setVisible(visible: boolean): void;
|
|
4735
|
+
/**
|
|
4736
|
+
* 获取显示状态
|
|
4737
|
+
*/
|
|
4738
|
+
getVisible(): boolean;
|
|
4739
|
+
/**
|
|
4740
|
+
* 启用系统
|
|
4741
|
+
*/
|
|
4742
|
+
enable(): Promise<void>;
|
|
4743
|
+
/**
|
|
4744
|
+
* 禁用系统
|
|
4745
|
+
*/
|
|
4746
|
+
disable(): Promise<void>;
|
|
4747
|
+
/**
|
|
4748
|
+
* 获取启用状态
|
|
4749
|
+
*/
|
|
4750
|
+
getStatus(): boolean;
|
|
4751
|
+
/**
|
|
4752
|
+
* 切换启用状态
|
|
4753
|
+
*/
|
|
4754
|
+
toggle(): Promise<boolean>;
|
|
4755
|
+
/**
|
|
4756
|
+
* 更新配置
|
|
4757
|
+
*/
|
|
4758
|
+
update(newConfig: Partial<VectorTileSystemConfig>): Promise<void>;
|
|
4759
|
+
/**
|
|
4760
|
+
* 获取当前配置
|
|
4761
|
+
*/
|
|
4762
|
+
getConfig(): VectorTileSystemConfig;
|
|
4763
|
+
/**
|
|
4764
|
+
* 移除矢量瓦片集
|
|
4765
|
+
*/
|
|
4766
|
+
private removeTileset;
|
|
4767
|
+
/**
|
|
4768
|
+
* 销毁系统
|
|
4769
|
+
*/
|
|
4770
|
+
destroy(): Promise<void>;
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4621
4773
|
declare global {
|
|
4622
4774
|
interface Window {
|
|
4623
4775
|
LACDT?: Record<string, any>;
|
|
@@ -4626,6 +4778,8 @@ declare global {
|
|
|
4626
4778
|
}
|
|
4627
4779
|
|
|
4628
4780
|
declare const render: {
|
|
4781
|
+
/** 版本信息 */
|
|
4782
|
+
Version: typeof Version;
|
|
4629
4783
|
/** 渲染类 */
|
|
4630
4784
|
Render: typeof Render;
|
|
4631
4785
|
/** 渲染控制面板 */
|
|
@@ -4662,6 +4816,8 @@ declare const render: {
|
|
|
4662
4816
|
RainSystem: typeof RainSystem;
|
|
4663
4817
|
/** 海洋系统 */
|
|
4664
4818
|
SeaSystem: typeof SeaSystem;
|
|
4819
|
+
/** 矢量瓦片系统 */
|
|
4820
|
+
VectorTileSystem: typeof VectorTileSystem;
|
|
4665
4821
|
};
|
|
4666
4822
|
|
|
4667
|
-
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, VolumetricCloudControl, type VolumetricCloudsConfig, VolumetricCloudsSystem, type WaterConfig, WaterControl, WaterSystem, type WeatherAreaData, render };
|
|
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 };
|