earthsdk3 3.11.0-alpha.3 → 3.11.0-beta.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.
Files changed (33) hide show
  1. package/dist/earthsdk3.iife.js +44 -44
  2. package/dist/earthsdk3.js +4722 -4636
  3. package/dist/earthsdk3.umd.cjs +38 -38
  4. package/dist/types/ESMCPTools/ESMCPClient.d.ts +10 -16
  5. package/dist/types/ESMCPTools/tools/{getCameraTools.d.ts → camera.d.ts} +3 -4
  6. package/dist/types/ESMCPTools/tools/index.d.ts +4 -2
  7. package/dist/types/ESMCPTools/tools/{getSceneObjectTools.d.ts → sceneObject.d.ts} +3 -4
  8. package/dist/types/ESMCPTools/types/MCPToolType.d.ts +61 -0
  9. package/dist/types/ESMCPTools/types/index.d.ts +2 -35
  10. package/dist/types/ESObjectManager/index.d.ts +5 -0
  11. package/dist/types/ESObjects/base/ESSceneObject/index.d.ts +5 -0
  12. package/dist/types/ESObjects/general/ESAlarm.d.ts +1 -11
  13. package/dist/types/ESObjects/general/ESCylinder.d.ts +1 -1
  14. package/dist/types/ESObjects/general/ESGltfModel.d.ts +5 -4
  15. package/dist/types/ESObjects/general/ESGltfModelEditing/index.d.ts +2 -10
  16. package/dist/types/ESObjects/general/ESHuman.d.ts +3 -13
  17. package/dist/types/ESObjects/general/ESHumanFountain.d.ts +1 -1
  18. package/dist/types/ESObjects/general/ESHumanPoi.d.ts +1 -1
  19. package/dist/types/ESObjects/general/ESHumans.d.ts +1 -1
  20. package/dist/types/ESObjects/general/ESMVTLayer.d.ts +2 -0
  21. package/dist/types/ESObjects/general/ESMediaLayer/index.d.ts +1 -1
  22. package/dist/types/ESObjects/general/ESMsTileset/index.d.ts +56 -84
  23. package/dist/types/ESObjects/general/ESMsTileset/msPath.d.ts +5 -0
  24. package/dist/types/ESObjects/general/ESMsTileset/types.d.ts +2 -5
  25. package/dist/types/ESObjects/general/ESPolygonsFlattenedPlane.d.ts +93 -0
  26. package/dist/types/ESObjects/general/ESRtsTileset/index.d.ts +12 -0
  27. package/dist/types/ESObjects/general/ESRtsTileset/rtsPath.d.ts +57 -0
  28. package/dist/types/ESObjects/general/ESRtsTileset/types.d.ts +5 -3
  29. package/dist/types/ESObjects/general/ESSignalInterference.d.ts +1 -0
  30. package/dist/types/ESObjects/general/ESSubmergingAnalysis/index.d.ts +1 -5
  31. package/dist/types/ESObjects/general/index.d.ts +1 -0
  32. package/dist/types/ESViewer/ESViewer.d.ts +3 -3
  33. package/package.json +1 -3
@@ -1,22 +1,16 @@
1
- import { Destroyable } from "../xbsj-base";
2
- import { CallToolResult, ESMCPTool, Tool, ToolCallParams } from "./types";
3
- type ToolGroup = Map<string, Tool>;
1
+ import { CallToolResult, ESTool, MCPToolParams, ToolCallParams } from "./types";
2
+ import { Destroyable } from '../xbsj-base';
3
+ import { ESObjectsManager } from '../ESObjectManager';
4
4
  /**
5
- * @deprecated 将在未来版本中废弃,建议从 earthsdk3-mcp 中获取
5
+ * 自定义工具服务器 + 客户端
6
+ * 可注册工具,也可调用工具
6
7
  */
7
8
  export declare class ESMCPClient extends Destroyable {
8
9
  private _tools;
9
- _getMcpTool(tool: Tool): ESMCPTool;
10
- listTools(): ESMCPTool[];
11
- groupTools(): {
12
- group: string;
13
- tools: ESMCPTool[];
14
- }[];
15
- _getGroup(groupName: string): ToolGroup;
16
- _getTool(name: string): Tool | undefined;
17
- _registerTool(tool: Tool, groupName?: string): void;
18
- _registerTools(tools: Tool[], groupName?: string): void;
10
+ toolTransformParams(tool: ESTool): MCPToolParams;
11
+ listTools(): Promise<MCPToolParams[]>;
12
+ registerTool(tool: ESTool): void;
19
13
  callTool(params: ToolCallParams): Promise<CallToolResult>;
20
- constructor();
14
+ getTools(): ESTool[];
15
+ constructor(objm?: ESObjectsManager);
21
16
  }
22
- export {};
@@ -1,5 +1,5 @@
1
1
  import { ESObjectsManager } from "../../ESObjectManager";
2
- import { Tool } from "../types";
2
+ import { ESTool } from "../types";
3
3
  /**
4
4
  * 获取相机相关的mcp工具
5
5
  * {
@@ -9,7 +9,6 @@ import { Tool } from "../types";
9
9
  * "adjustCamera":"调整相机视角",
10
10
  * }
11
11
  * @param objm ESObjectsManager
12
- * @returns { Tool[] }
13
- * @deprecated 该工具将在未来版本中废弃,建议从 earthsdk3-mcp 中获取
12
+ * @returns { ESTool[] }
14
13
  */
15
- export declare const getCameraTools: (objm: ESObjectsManager) => Tool[];
14
+ export declare const getCameraTools: (objm: ESObjectsManager) => ESTool[];
@@ -1,2 +1,4 @@
1
- export * from './getCameraTools';
2
- export * from './getSceneObjectTools';
1
+ import { ESObjectsManager } from '../../ESObjectManager';
2
+ export * from './camera';
3
+ export * from './sceneObject';
4
+ export declare const getESMCPTools: (objm: ESObjectsManager) => import("..").ESTool[];
@@ -1,5 +1,5 @@
1
1
  import { ESObjectsManager } from "../../ESObjectManager";
2
- import { Tool } from "../types";
2
+ import { ESTool } from "../types";
3
3
  /**
4
4
  * 获取场景对象相关的mcp工具
5
5
  * {
@@ -13,7 +13,6 @@ import { Tool } from "../types";
13
13
  * "deleteSceneObject":"根据对象id来删除场景对象,删除多个时请用逗号分隔id,如:`id1,id2,id3`",
14
14
  * }
15
15
  * @param objm ESObjectsManager
16
- * @returns {Tool[]}
17
- * @deprecated 该工具将在未来版本中废弃,建议从 earthsdk3-mcp 中获取
16
+ * @returns {ESTool[]}
18
17
  */
19
- export declare const getSceneObjectTools: (objm: ESObjectsManager) => Tool[];
18
+ export declare const getSceneObjectTools: (objm: ESObjectsManager) => ESTool[];
@@ -0,0 +1,61 @@
1
+ import { z, ZodTypeAny, ZodRawShape } from 'zod';
2
+ import { CallToolResultSchema } from './CallToolResultSchema';
3
+ type Primitive = string | number | boolean | bigint | null | undefined;
4
+ type Flatten<T> = T extends Primitive ? T : T extends Array<infer U> ? Array<Flatten<U>> : T extends Set<infer U> ? Set<Flatten<U>> : T extends Map<infer K, infer V> ? Map<Flatten<K>, Flatten<V>> : T extends object ? {
5
+ [K in keyof T]: Flatten<T[K]>;
6
+ } : T;
7
+ type Infer<Schema extends ZodTypeAny> = Flatten<z.infer<Schema>>;
8
+ export type CallToolResult = Infer<typeof CallToolResultSchema>;
9
+ export type ESTool = {
10
+ name: string;
11
+ params: {
12
+ description: string;
13
+ inputSchema: ZodRawShape;
14
+ outputSchema?: ZodRawShape;
15
+ };
16
+ func: (args: any) => Promise<CallToolResult>;
17
+ };
18
+ /**
19
+ * MCP工具类型
20
+ */
21
+ export type MCPToolParams = {
22
+ inputSchema: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: Record<string, object> | undefined;
26
+ required?: string[] | undefined;
27
+ };
28
+ name: string;
29
+ description?: string | undefined;
30
+ outputSchema?: {
31
+ [x: string]: unknown;
32
+ type: "object";
33
+ properties?: Record<string, object> | undefined;
34
+ required?: string[] | undefined;
35
+ } | undefined;
36
+ annotations?: {
37
+ title?: string | undefined;
38
+ readOnlyHint?: boolean | undefined;
39
+ destructiveHint?: boolean | undefined;
40
+ idempotentHint?: boolean | undefined;
41
+ openWorldHint?: boolean | undefined;
42
+ } | undefined;
43
+ execution?: {
44
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
45
+ } | undefined;
46
+ _meta?: Record<string, unknown> | undefined;
47
+ icons?: {
48
+ src: string;
49
+ mimeType?: string | undefined;
50
+ sizes?: string[] | undefined;
51
+ theme?: "light" | "dark" | undefined;
52
+ }[] | undefined;
53
+ title?: string | undefined;
54
+ };
55
+ export interface ToolCallParams {
56
+ name: string;
57
+ arguments: Record<string, any>;
58
+ }
59
+ export declare function getErrorResult(toolName: string, data?: any, msg?: string): CallToolResult;
60
+ export declare function getSuccessResult(toolName: string, data?: any, msg?: string): CallToolResult;
61
+ export {};
@@ -1,35 +1,2 @@
1
- import { z, ZodTypeAny, ZodRawShape } from 'zod';
2
- import { CallToolResultSchema } from './CallToolResultSchema';
3
- type Primitive = string | number | boolean | bigint | null | undefined;
4
- type Flatten<T> = T extends Primitive ? T : T extends Array<infer U> ? Array<Flatten<U>> : T extends Set<infer U> ? Set<Flatten<U>> : T extends Map<infer K, infer V> ? Map<Flatten<K>, Flatten<V>> : T extends object ? {
5
- [K in keyof T]: Flatten<T[K]>;
6
- } : T;
7
- type Infer<Schema extends ZodTypeAny> = Flatten<z.infer<Schema>>;
8
- export type CallToolResult = Infer<typeof CallToolResultSchema>;
9
- export type Tool = {
10
- name: string;
11
- params: {
12
- description: string;
13
- inputSchema: ZodRawShape;
14
- };
15
- func: (args: any) => Promise<CallToolResult>;
16
- };
17
- /**
18
- * MCP工具类型
19
- */
20
- export type ESMCPTool = {
21
- name: string;
22
- description?: string;
23
- inputSchema: {
24
- type: string;
25
- properties?: Record<string, any>;
26
- required?: string[];
27
- };
28
- };
29
- export interface ToolCallParams {
30
- name: string;
31
- arguments: Record<string, any>;
32
- }
33
- export declare function getErrorResult(toolName: string, data?: any, msg?: string): CallToolResult;
34
- export declare function getSuccessResult(toolName: string, data?: any, msg?: string): CallToolResult;
35
- export {};
1
+ export * from './CallToolResultSchema';
2
+ export * from './MCPToolType';
@@ -35,6 +35,11 @@ export declare class ESObjectsManager extends Destroyable {
35
35
  * @returns 对应的场景对象。
36
36
  */
37
37
  static getSceneObjById: (id: string) => ESSceneObject | undefined;
38
+ /**
39
+ * 获取当前浏览器环境:UE大屏(ESWebView)/浏览器(Browser)
40
+ * @returns 当前浏览器环境。
41
+ */
42
+ getBrowserEnv(): "ESWebView" | "Browser";
38
43
  /**
39
44
  * 获取环境变量的静态方法。
40
45
  * @returns 当前的环境变量。
@@ -194,6 +194,11 @@ export declare class ESSceneObject extends Destroyable {
194
194
  private _reloadEvent;
195
195
  get reloadEvent(): Event<[]>;
196
196
  reload(): void;
197
+ /**
198
+ * 对象准备就绪事件,当对象的实现类准备就绪时触发
199
+ */
200
+ private _readyEvent;
201
+ get readyEvent(): Event<[ESViewer | undefined]>;
197
202
  /**
198
203
  * 将对象添加到指定视口中。
199
204
  * @param viewer - 要添加对象的视口。
@@ -1,4 +1,4 @@
1
- import { Event, ReactivePropsToNativePropsAndChanged, SceneObjectKey } from "../../xbsj-base";
1
+ import { ReactivePropsToNativePropsAndChanged, SceneObjectKey } from "../../xbsj-base";
2
2
  import { ESObjectWithLocation } from "../base";
3
3
  /**
4
4
  * ESAlarm 类用于表示和操作场景中的报警对象。
@@ -70,16 +70,6 @@ export declare class ESAlarm extends ESObjectWithLocation {
70
70
  * @returns 返回飞行进入效果创建状态的变化事件。
71
71
  */
72
72
  get isFlyInCreatedChanged(): import("../../xbsj-base").Listener<[boolean, boolean]>;
73
- /**
74
- * 当模型加载完成时触发的事件。
75
- * @returns Cesium 返回事件对象 Cesium.Model
76
- */
77
- private _readyEvent;
78
- /**
79
- * 当模型加载完成时触发的事件。
80
- * @returns Cesium 返回事件对象 Cesium.Model
81
- */
82
- get readyEvent(): Event<[any]>;
83
73
  /**
84
74
  * ESAlarm 类的构造函数。
85
75
  * @param id - 场景对象的键,可选参数。
@@ -31,7 +31,7 @@ export declare class ESCylinder extends ESObjectWithLocation {
31
31
  * 创建圆柱体对象的默认属性
32
32
  * @returns 包含圆柱体默认配置的对象
33
33
  */
34
- static createDefaultProps: () => {
34
+ static readonly createDefaultProps: () => {
35
35
  /** 圆柱体半径,默认为2 */
36
36
  radius: number;
37
37
  /** 圆柱体高度,默认为10 */
@@ -71,6 +71,11 @@ export declare class ESGltfModel extends ESObjectWithLocation {
71
71
  * @default ${earthsdk3-assets-script-dir}/assets/glb/building.glb
72
72
  */
73
73
  url: string | ESJResource | undefined;
74
+ /**
75
+ * 模型动画播放索引
76
+ * @type {number | undefined}
77
+ */
78
+ czmAnimationsIndex: number | undefined;
74
79
  /**
75
80
  * 模型最大缩放比例(Cesium 引擎专用)
76
81
  * @type {number | undefined}
@@ -188,10 +193,6 @@ export declare class ESGltfModel extends ESObjectWithLocation {
188
193
  * 获取Cesium模型准备就绪事件
189
194
  */
190
195
  get czmModelReadyEvent(): Event<[model: any]>;
191
- /**
192
- * 获取Cesium模型准备就绪事件
193
- */
194
- get readyEvent(): Event<[model: any]>;
195
196
  /**
196
197
  * 删除指定节点的变换信息
197
198
  * @param nodeName 节点名称
@@ -1,19 +1,11 @@
1
1
  import { Property, ESJVector3DArray } from "../../../ESJTypes";
2
2
  import { UniteChanged, SceneObjectKey, Event } from "../../../index";
3
- import { ESObjectWithLocation } from "../../base";
4
- export declare class ESGltfModelEditing extends ESObjectWithLocation {
3
+ import { ESVisualObject } from "../../base";
4
+ export declare class ESGltfModelEditing extends ESVisualObject {
5
5
  static readonly createDefaultProps: () => {
6
6
  urls: import("../../../index").ReactiveVariable<string[] | undefined>;
7
7
  mode: "delete" | "repair";
8
8
  allowPicking: boolean;
9
- pointed: boolean;
10
- pointStyle: import("../../../index").ReactiveVariable<import("../../../ESJTypes").ESJPointStyle>;
11
- position: import("../../../index").ReactiveVariable<import("../../../ESJTypes").ESJVector3D>;
12
- rotation: import("../../../index").ReactiveVariable<import("../../../ESJTypes").ESJVector3D>;
13
- positionOffset: import("../../../index").ReactiveVariable<import("../../../ESJTypes").ESJVector3D>;
14
- scale: import("../../../index").ReactiveVariable<import("../../../ESJTypes").ESJVector3D>;
15
- minVisibleDistance: import("../../../index").ReactiveVariable<number>;
16
- maxVisibleDistance: import("../../../index").ReactiveVariable<number>;
17
9
  show: boolean;
18
10
  collision: boolean;
19
11
  flyToParam: import("../../../index").ReactiveVariable<import("../../../ESJTypes").ESJFlyToParam | undefined>;
@@ -24,7 +24,7 @@ export declare class ESHuman extends ESObjectWithLocation {
24
24
  /** 模型模式枚举 默认 worker [["工人", 'worker'], ["警察", "police"], ["路人", "pedestrian"], ["陌生人", "stranger"], ["男士", 'suitMan'], ["女士", 'suitWoman'], ["维修工", 'repairMan'], ["消防员", "fireMan"], ["消防员-水泵", 'firefighterWithWaterPump'], ["消防员-打火鞭", 'firefighterWithFirestick'], ["消防员-点火器", 'firefighterWithDripIgniter'], ["消防员-风力灭火机", 'firefighterWithBlower'], ["消防员-水枪", 'firefighterWithHose'], ["消防员-灭火弹", 'firefighterWithThrowable'], ["消防员-工具包", 'firefighterWithToolkit'], ["消防员-行走", 'firefighterWalking'], ["消防员-防护服", 'firefighterUniform']] */
25
25
  mode: (typeof ESHuman.modes)[number][1];
26
26
  /** 动画枚举 默认standing [["站立", 'standing'], ["行走", "walking"], ["奔跑", "running"]] */
27
- animation: string;
27
+ animation: (typeof ESHuman.animations)[number][1];
28
28
  /**是否允许拾取 默认true */
29
29
  allowPicking: boolean;
30
30
  /**
@@ -61,8 +61,8 @@ export declare class ESHuman extends ESObjectWithLocation {
61
61
  * 类的类型,包含名称、中文名称、标签和描述信息。
62
62
  */
63
63
  static readonly type: string;
64
- static modes: [name: string, value: string][];
65
- static animations: [name: string, value: string][];
64
+ static modes: readonly [readonly ["工人", "worker"], readonly ["警察", "police"], readonly ["路人", "pedestrian"], readonly ["陌生人", "stranger"], readonly ["男士", "suitMan"], readonly ["女士", "suitWoman"], readonly ["维修工", "repairMan"], readonly ["消防员", "fireMan"], readonly ["消防员-水泵", "firefighterWithWaterPump"], readonly ["消防员-打火鞭", "firefighterWithFirestick"], readonly ["消防员-点火器", "firefighterWithDripIgniter"], readonly ["消防员-风力灭火机", "firefighterWithBlower"], readonly ["消防员-水枪", "firefighterWithHose"], readonly ["消防员-灭火弹", "firefighterWithThrowable"], readonly ["消防员-工具包", "firefighterWithToolkit"], readonly ["消防员-行走", "firefighterWalking"], readonly ["消防员-防护服", "firefighterUniform"]];
65
+ static animations: readonly [readonly ["站立", "standing"], readonly ["行走", "walking"], readonly ["奔跑", "running"]];
66
66
  /**
67
67
  * 自动寻路事件。
68
68
  * @private
@@ -95,16 +95,6 @@ export declare class ESHuman extends ESObjectWithLocation {
95
95
  * 触发停止自动寻路事件。
96
96
  */
97
97
  stopAIMove(): void;
98
- /**
99
- * 当模型加载完成时触发的事件。
100
- * @returns Cesium 返回事件对象 Cesium.Model
101
- */
102
- private _readyEvent;
103
- /**
104
- * 当模型加载完成时触发的事件。
105
- * @returns Cesium 返回事件对象 Cesium.Model
106
- */
107
- get readyEvent(): Event<[any]>;
108
98
  /**
109
99
  * 构造函数。
110
100
  * @param {SceneObjectKey} [id] - 对象的ID。
@@ -43,7 +43,7 @@ export declare class ESHumanFountain extends ESHuman {
43
43
  /** 粒子发射率(每秒发射数量) */
44
44
  fountainEmissionRate: number;
45
45
  mode: (typeof ESHuman.modes /** 喷泉高度系数,影响粒子的喷射高度和生命周期 */)[number][1];
46
- animation: string;
46
+ animation: (typeof ESHuman.animations)[number][1];
47
47
  allowPicking: boolean;
48
48
  instances: import("../../xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJESGltfModelInstances | undefined>;
49
49
  pointed: boolean;
@@ -26,7 +26,7 @@ import { ESPoi2D } from "./ESPoi2D";
26
26
  export declare class ESHumanPoi extends ESHuman {
27
27
  static readonly createDefaultProps: () => {
28
28
  mode: (typeof ESHuman.modes)[number][1];
29
- animation: string;
29
+ animation: (typeof ESHuman.animations)[number][1];
30
30
  allowPicking: boolean;
31
31
  instances: import("../../xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJESGltfModelInstances | undefined>;
32
32
  pointed: boolean;
@@ -6,7 +6,7 @@ export declare class ESHumans extends ESHuman {
6
6
  instancesCount: number;
7
7
  radius: number;
8
8
  mode: (typeof ESHuman.modes)[number][1];
9
- animation: string;
9
+ animation: (typeof ESHuman.animations)[number][1];
10
10
  allowPicking: boolean;
11
11
  instances: import("../../xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJESGltfModelInstances | undefined>;
12
12
  pointed: boolean;
@@ -33,6 +33,8 @@ export declare class ESMVTLayer extends ESVisualObject {
33
33
  opacity: number;
34
34
  /** 分割方向 */
35
35
  splitDirection: ESJSplitDirectionType;
36
+ /** 目标 ID */
37
+ targetID: string | undefined;
36
38
  /** czm 亮度 */
37
39
  czmBrightness: number;
38
40
  /** czm 对比度 */
@@ -2,7 +2,7 @@ import { ESJResource, ESJComplexImageType, Property } from "../../../ESJTypes";
2
2
  import { SceneObjectKey, UniteChanged } from "../../../xbsj-base";
3
3
  import { ESImageryLayer } from "../ESImageryLayer";
4
4
  export declare class ESMediaLayer extends ESImageryLayer {
5
- static createDefaultProps: () => {
5
+ static readonly createDefaultProps: () => {
6
6
  videoStreamType: Omit<ESJComplexImageType, "gif">;
7
7
  looping: boolean;
8
8
  play: boolean;
@@ -1,104 +1,76 @@
1
- import { ReactivePropsToNativePropsAndChanged, SceneObjectKey } from "../../../xbsj-base";
1
+ import { SceneObjectKey, UniteChanged } from "../../../xbsj-base";
2
2
  import { ES3DTileset } from "../ES3DTileset";
3
+ import type { ESRtsPlatform } from "../ESRtsTileset/rtsPath";
3
4
  /**
4
5
  * ESMsTileset 类继承自 ES3DTileset,用于表示和操作 Modelser 实时 3DTileset 图层。
5
- * 该类提供了对 3DTileset 的管理和控制功能,包括获取和设置 JSON 数据、刷新 URL、获取服务地址和端口等。
6
- *
7
- * 核心功能或关键方法包括:
8
- * - 获取和设置数据地址端口号(tilesetServePort)
9
- * - 异步获取端口号(getport)
10
- * - 刷新 3DTileset 的 URL(refresh)
11
- * - 获取当前服务的基础 URL 和 IP 地址(baseUrl 和 tileServiceIp)
12
- * - 获取图层服务名称(tileServiceName)
13
- *
14
- * 使用示例:
15
- *
16
- * 构造函数参数:
17
- * @param {SceneObjectKey} [id] - 可选的场景对象键,用于初始化 ESMsTileset 实例。
18
- *
19
- * 特殊的使用限制或潜在的副作用:
20
- * - 在设置数据地址端口号后,需要调用 getport 方法来异步获取端口号并更新 tilesetServePort。
21
- * - 刷新 3DTileset 的 URL 时,如果 URL 不合法或未定义,则不执行操作。
22
- * - 获取服务地址相关的方法(baseUrl、tileServiceIp、tileServiceName)如果服务地址不合法,会抛出错误。
23
6
  */
24
7
  export declare class ESMsTileset extends ES3DTileset {
25
- /**
26
- * 静态属性,用于注册类的类型信息。
27
- * 类型名称为 'ESMsTileset',中文名称为 'Modelser 实时 3DTileset 图层',包含相关标签和描述。
28
- */
8
+ static readonly createDefaultProps: () => {
9
+ isSameIP: boolean;
10
+ useEarthDSToken: boolean;
11
+ earthdstoken: string;
12
+ url: string | import("../../..").ESJResource;
13
+ actorTag: string;
14
+ materialMode: "normal" | "technology";
15
+ highlight: boolean;
16
+ maximumScreenSpaceError: number;
17
+ highlightID: number;
18
+ highlightColor: import("../../../xbsj-base").ReactiveVariable<import("../../..").ESJColor>;
19
+ offset: import("../../../xbsj-base").ReactiveVariable<import("../../..").ESJVector3D | undefined>;
20
+ rotation: import("../../../xbsj-base").ReactiveVariable<import("../../..").ESJVector3D>;
21
+ czmImageBasedLightingFactor: import("../../../xbsj-base").ReactiveVariable<import("../../..").ESJVector2D>;
22
+ czmEnvironmentMapManager: import("../../../xbsj-base").ReactiveVariable<import("../../..").ESJEnvironmentMapManagerType | undefined>;
23
+ czmLuminanceAtZenith: number;
24
+ czmAtmosphereScatteringIntensity: number;
25
+ czmMaximumMemoryUsage: number;
26
+ czmClassificationType: string;
27
+ czmStyleJson: import("../../../xbsj-base").ReactiveVariable<import("../../../xbsj-base").JsonValue>;
28
+ czmBackFaceCulling: boolean;
29
+ czmDebugShowBoundingVolume: boolean;
30
+ czmDebugShowContentBoundingVolume: boolean;
31
+ czmSkipLevelOfDetail: boolean;
32
+ cacheBytes: number;
33
+ colorBlendMode: "HIGHLIGHT" | "REPLACE" | "MIX";
34
+ clippingPlaneEnabled: boolean;
35
+ unionClippingRegions: boolean;
36
+ clippingPlaneEdgeColor: import("../../../xbsj-base").ReactiveVariable<import("../../..").ESJColor>;
37
+ clippingPlaneEdgeWidth: number;
38
+ materialParams: import("../../..").ESJsonObjectType;
39
+ allowPicking: boolean;
40
+ materialOverrideMap: import("../../../xbsj-base").ReactiveVariable<{} | undefined>;
41
+ featureIdLabel: number;
42
+ splitDirection: import("..").ESJSplitDirectionType;
43
+ czmDebugWireframe: boolean;
44
+ show: boolean;
45
+ collision: boolean;
46
+ flyToParam: import("../../../xbsj-base").ReactiveVariable<import("../../..").ESJFlyToParam | undefined>;
47
+ flyInParam: import("../../../xbsj-base").ReactiveVariable<import("../../..").ESJFlyInParam | undefined>;
48
+ name: string;
49
+ ref: string | undefined;
50
+ extras: import("../../../xbsj-base").ReactiveVariable<import("../../../xbsj-base").JsonValue>;
51
+ devTags: import("../../../xbsj-base").ReactiveVariable<string[] | undefined>;
52
+ execOnceFuncStr: string | undefined;
53
+ updateFuncStr: string | undefined;
54
+ toDestroyFuncStr: string | undefined;
55
+ };
29
56
  static readonly type: string;
30
- /**
31
- * 内部的 ES3DTileset 实例。
32
- */
33
57
  private _es3DTileset;
34
- /**
35
- * 获取内部的 ES3DTileset 实例。
36
- * @returns {ES3DTileset} 内部的 ES3DTileset 实例。
37
- */
38
58
  get es3DTileset(): ES3DTileset;
39
- /**
40
- * 数据地址端口号,使用响应式变量存储。
41
- */
59
+ private _platform;
60
+ get platform(): ESRtsPlatform;
61
+ get platformChanged(): import("../../../xbsj-base").Listener<[ESRtsPlatform, ESRtsPlatform]>;
62
+ set platform(value: ESRtsPlatform);
42
63
  private _tilesetServePort;
43
- /**
44
- * 获取数据地址端口号。
45
- * @returns {string} 数据地址端口号。
46
- */
47
64
  get tilesetServePort(): string;
48
- /**
49
- * 获取数据地址端口号的变化事件。
50
- * @returns {any} 数据地址端口号的变化事件。
51
- */
52
65
  get tilesetServePortChanged(): import("../../../xbsj-base").Listener<[string, string]>;
53
- /**
54
- * 设置数据地址端口号。
55
- * @param {string} value - 要设置的数据地址端口号。
56
- */
57
66
  set tilesetServePort(value: string);
58
- private _useEarthDSToken;
59
- get useEarthDSToken(): boolean;
60
- get useEarthDSTokenChanged(): import("../../../xbsj-base").Listener<[boolean, boolean]>;
61
- set useEarthDSToken(value: boolean);
62
- private _earthdstoken;
63
- get earthdstoken(): string;
64
- get earthdstokenChanged(): import("../../../xbsj-base").Listener<[string, string]>;
65
- set earthdstoken(value: string);
66
- /**
67
- * 异步获取端口号。
68
- * @returns {Promise<string>} 包含端口号的 Promise,如果获取失败则抛出错误。
69
- */
70
67
  getport(): Promise<string>;
71
- /**
72
- * 刷新 3DTileset 的 URL。
73
- * 如果 URL 不合法或未定义,则不执行操作。
74
- */
75
68
  refresh(): Promise<void>;
76
- /**
77
- * 获取当前服务的基础 URL,包含协议和域名。
78
- * @returns {string} 当前服务的基础 URL。
79
- * @throws {Error} 如果服务地址不合法,则抛出错误。
80
- */
69
+ private syncPlatformFromUrl;
81
70
  get baseUrl(): string;
82
- /**
83
- * 获取当前服务的 IP 地址,包含协议。
84
- * @returns {string} 当前服务的 IP 地址。
85
- * @throws {Error} 如果服务地址不合法,则抛出错误。
86
- */
87
71
  get tileServiceIp(): string;
88
- /**
89
- * 获取图层服务名称。
90
- * @returns {string} 图层服务名称。
91
- * @throws {Error} 如果服务地址不合法,则抛出错误。
92
- */
93
72
  get tileServiceName(): string;
94
- /**
95
- * 构造函数,初始化 ESMsTileset 实例。
96
- * @param {SceneObjectKey} [id] - 可选的场景对象键。
97
- */
98
73
  constructor(id?: SceneObjectKey);
99
74
  }
100
- /**
101
- * ESMsTileset 接口,继承自 ReactivePropsToNativePropsAndChanged,包含默认属性的响应式和原生属性转换。
102
- */
103
- export interface ESMsTileset extends ReactivePropsToNativePropsAndChanged<ReturnType<typeof ESMsTileset.createDefaultProps>> {
75
+ export interface ESMsTileset extends UniteChanged<ReturnType<typeof ESMsTileset.createDefaultProps>> {
104
76
  }
@@ -0,0 +1,5 @@
1
+ import type { ESRtsPlatform } from '../ESRtsTileset/rtsPath';
2
+ export declare function getMsServicePrefix(platform: ESRtsPlatform): string;
3
+ export declare function parseMsPlatformFromUrl(url: string): ESRtsPlatform | undefined;
4
+ export declare function parseMsTileServiceName(url: string): string | undefined;
5
+ export declare function buildMsTilesetUrl(tileServiceIp: string, port: string, platform: ESRtsPlatform, time?: number): string;
@@ -1,7 +1,4 @@
1
- export declare const apis: {};
2
1
  /**
3
- * 获取切片服务的端口
4
- * @param {*} tileServiceName
5
- * @returns
2
+ * 获取 Modelser 切片服务的端口
6
3
  */
7
- export declare const _getport: (url: string, useEarthDSToken: boolean, earthdstoken: string) => Promise<string | undefined>;
4
+ export declare const _getMsPort: (url: string, useEarthDSToken: boolean, earthdstoken: string) => Promise<string | undefined>;
@@ -0,0 +1,93 @@
1
+ import { SceneObjectKey, UniteChanged } from "../../xbsj-base";
2
+ import { ESVisualObject } from "../base";
3
+ /**
4
+ * 多压平多边形类,继承自 ESVisualObject。
5
+ *
6
+ * 与 ESPolygonFlattenedPlane(单多边形压平)的区别:支持同时压平多个多边形区域。
7
+ * 通过 pointsSet(多个多边形点数组)描述所有需要压平的区域,关联同一个目标瓦片图层(targetID)即可一并压平。
8
+ *
9
+ * 核心功能:
10
+ * - 创建多压平多边形对象
11
+ * - 管理瓦片图层ID的绑定和变更
12
+ * - 提供属性配置接口(含描边/填充样式,用于可视化)
13
+ * - 支持多语言属性显示
14
+ *
15
+ * 注意事项:
16
+ * - 默认不填充多边形(filled = false)
17
+ * - 需要配合有效的瓦片图层ID才能实现压平效果
18
+ * - 仅在支持 Cesium 的实现环境中可用
19
+ */
20
+ export declare class ESPolygonsFlattenedPlane extends ESVisualObject {
21
+ static readonly createDefaultProps: () => {
22
+ /**
23
+ * 目标图层id,用于压平对象的作用对象。
24
+ */
25
+ targetID: string;
26
+ filled: boolean;
27
+ stroked: boolean;
28
+ strokeColor: import("../../xbsj-base").ReactiveVariable<[number, number, number, number]>;
29
+ strokeWidth: number;
30
+ fillColor: import("../../xbsj-base").ReactiveVariable<[number, number, number, number]>;
31
+ strokeGround: boolean;
32
+ fillGround: boolean;
33
+ pointsSet: import("../../xbsj-base").ReactiveVariable<[number, number, number][][] | undefined>;
34
+ show: boolean;
35
+ collision: boolean;
36
+ allowPicking: boolean;
37
+ flyToParam: import("../../xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJFlyToParam | undefined>;
38
+ flyInParam: import("../../xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJFlyInParam | undefined>;
39
+ name: string;
40
+ ref: string | undefined;
41
+ extras: import("../../xbsj-base").ReactiveVariable<import("../../xbsj-base").JsonValue>;
42
+ devTags: import("../../xbsj-base").ReactiveVariable<string[] | undefined>;
43
+ execOnceFuncStr: string | undefined;
44
+ updateFuncStr: string | undefined;
45
+ toDestroyFuncStr: string | undefined;
46
+ };
47
+ /**
48
+ * 注册类的类型信息,包括类型名称、父类、中文名称、标签和描述。
49
+ * 类型名称为 'ESPolygonsFlattenedPlane',中文名称为 '多压平',标签包含 'ESObjects'、'_ES_Impl_Cesium'、'_ES_Impl_UE'。
50
+ */
51
+ static readonly type: string;
52
+ /**
53
+ * 私有响应式属性,用于存储瓦片图层的ID。
54
+ */
55
+ private _czmFlattenedPlaneId;
56
+ /**
57
+ * 获取瓦片图层的ID。
58
+ */
59
+ get czmFlattenedPlaneId(): string;
60
+ /**
61
+ * 设置瓦片图层的ID。
62
+ * @param value - 要设置的瓦片图层ID。
63
+ */
64
+ set czmFlattenedPlaneId(value: string);
65
+ /**
66
+ * 获取瓦片图层ID的变化事件。
67
+ */
68
+ get czmFlattenedPlaneIdChanged(): import("../../xbsj-base").Listener<[string, string]>;
69
+ /**
70
+ * 构造函数,创建 `ESPolygonsFlattenedPlane` 实例。
71
+ * @param id - 场景对象的键,可选参数。
72
+ */
73
+ constructor(id?: SceneObjectKey);
74
+ /**
75
+ * 获取该对象的ES属性。
76
+ * @returns 包含属性信息的对象。
77
+ */
78
+ getESProperties(): {
79
+ basic: import("../../ESJTypes").Property[];
80
+ style: import("../../ESJTypes").Property[];
81
+ general: import("../../ESJTypes").Property[];
82
+ more: import("../../ESJTypes").Property[];
83
+ defaultMenu: string;
84
+ dataSource: import("../../ESJTypes").Property[];
85
+ location: import("../../ESJTypes").Property[];
86
+ coordinate: import("../../ESJTypes").Property[];
87
+ };
88
+ }
89
+ /**
90
+ * 定义 `ESPolygonsFlattenedPlane` 类的接口,继承自响应式属性到原生属性及变化的类型。
91
+ */
92
+ export interface ESPolygonsFlattenedPlane extends UniteChanged<ReturnType<typeof ESPolygonsFlattenedPlane.createDefaultProps>> {
93
+ }