earthsdk3 3.0.7-beta.10 → 3.0.7-beta.12

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.
@@ -1,28 +1,91 @@
1
1
  import { ESJResource, ESJVector2D } from "../../ESJTypes";
2
2
  import { ESVisualObject } from "../base";
3
3
  import { UniteChanged } from "xbsj-base";
4
+ /**
5
+ * 表示树类型的对象结构
6
+ * @typedef {Object} ESTreeType
7
+ * @property {string} name - 树的名称
8
+ * @property {string} mesh - 树的网格模型
9
+ * @property {number} cullingDistance - 剔除距离
10
+ * @property {number} scale - 缩放比例
11
+ */
4
12
  export type ESTreeType = {
5
13
  name: string;
6
14
  mesh: string;
7
15
  cullingDistance: number;
8
16
  scale: number;
9
17
  };
18
+ /**
19
+ * 表示小班部件的对象结构
20
+ * @typedef {Object} ESXiaoBanWidget
21
+ * @property {string} class - 部件的类名
22
+ * @property {ESJVector2D} pivot - 枢轴点
23
+ * @property {number} space - 空间值
24
+ */
10
25
  export type ESXiaoBanWidget = {
11
26
  class: string;
12
27
  pivot: ESJVector2D;
13
28
  space: number;
14
29
  };
30
+ /**
31
+ * ESForestTileset 类用于表示森林切片图层,继承自 ESVisualObject 类。
32
+ * 该类主要用于管理和渲染森林地形的切片数据,支持自定义树类型、小班块和小班块的默认属性等。
33
+ *
34
+ * 核心功能包括:
35
+ * - UE对象
36
+ * - 注册类的类型信息
37
+ * - 获取类的类型名称
38
+ * - 获取默认属性
39
+ * - 获取对象的属性列表
40
+ *
41
+ * 使用示例:
42
+ *
43
+ * 构造函数参数:
44
+ * @param {string} [id] - 对象的可选 ID
45
+ *
46
+ * 特殊使用限制或潜在的副作用:
47
+ * - 该类依赖于 ESVisualObject 类,因此需要确保 ESVisualObject 已被正确导入和使用。
48
+ * - 在使用该类时,需要提供有效的树类型和小板块属性,否则可能会导致渲染问题。
49
+ */
15
50
  export declare class ESForestTileset extends ESVisualObject {
51
+ /**
52
+ * 注册类的类型信息
53
+ *
54
+ * @readonly
55
+ * @type {any}
56
+ * @description 注册 'ESForestTileset' 类型,包含中文名、标签和描述信息
57
+ */
16
58
  static readonly type: string;
59
+ /**
60
+ * 获取类的类型名称
61
+ * @returns {string} 类型名称 'ESForestTileset'
62
+ */
17
63
  get typeName(): string;
64
+ /**
65
+ * 获取默认属性
66
+ * @override
67
+ * @returns {any} 默认属性对象
68
+ */
18
69
  get defaultProps(): {
70
+ /**服务路径或数据体
71
+ * @type {string | ESJResource}
72
+ */
19
73
  url: string | ESJResource;
74
+ /**树类型数组*/
20
75
  treeTypes: import("xbsj-base").ReactiveVariable<ESTreeType[] | undefined>;
76
+ /**小版部件的默认配置
77
+ * @type {ESXiaoBanWidget}
78
+ */
21
79
  xiaoBanWidget: import("xbsj-base").ReactiveVariable<ESXiaoBanWidget | undefined>;
80
+ /**优势树种 引用*/
22
81
  youShiSZ: string;
82
+ /**地类 引用*/
23
83
  diLei: string;
84
+ /**森林类别 引用*/
24
85
  senLinLB: string;
86
+ /**标签材质 引用*/
25
87
  labelMaterial: string;
88
+ /**高度偏移量*/
26
89
  heightOffset: number;
27
90
  show: boolean;
28
91
  collision: boolean;
@@ -58,18 +121,47 @@ export declare class ESForestTileset extends ESVisualObject {
58
121
  flyToParam: import("../../ESJTypes").ESJFlyToParam;
59
122
  flyInParam: import("../../ESJTypes").ESJFlyInParam;
60
123
  };
124
+ /**
125
+ * 构造函数
126
+ * @param {string} [id] - 对象的可选 ID
127
+ */
61
128
  constructor(id?: string);
129
+ /**
130
+ * 获取对象的属性列表
131
+ * @override
132
+ * @param {string} [language] - 可选的语言参数
133
+ * @returns {any[]} 属性列表
134
+ */
62
135
  getProperties(language?: string): import("../../ESJTypes").Property[];
63
136
  }
137
+ /**
138
+ * ESForestTileset 命名空间,包含创建默认属性的静态方法
139
+ */
64
140
  export declare namespace ESForestTileset {
141
+ /**
142
+ * 创建默认属性对象
143
+ * @returns {Object} 默认属性对象
144
+ */
65
145
  const createDefaultProps: () => {
146
+ /**服务路径或数据体
147
+ * @type {string | ESJResource}
148
+ */
66
149
  url: string | ESJResource;
150
+ /**树类型数组*/
67
151
  treeTypes: import("xbsj-base").ReactiveVariable<ESTreeType[] | undefined>;
152
+ /**小版部件的默认配置
153
+ * @type {ESXiaoBanWidget}
154
+ */
68
155
  xiaoBanWidget: import("xbsj-base").ReactiveVariable<ESXiaoBanWidget | undefined>;
156
+ /**优势树种 引用*/
69
157
  youShiSZ: string;
158
+ /**地类 引用*/
70
159
  diLei: string;
160
+ /**森林类别 引用*/
71
161
  senLinLB: string;
162
+ /**标签材质 引用*/
72
163
  labelMaterial: string;
164
+ /**高度偏移量*/
73
165
  heightOffset: number;
74
166
  show: boolean;
75
167
  collision: boolean;
@@ -85,6 +177,9 @@ export declare namespace ESForestTileset {
85
177
  toDestroyFuncStr: string | undefined;
86
178
  };
87
179
  }
180
+ /**
181
+ * ESForestTileset 类的扩展接口,继承自 UniteChanged
182
+ */
88
183
  export interface ESForestTileset extends UniteChanged<ReturnType<typeof ESForestTileset.createDefaultProps>> {
89
184
  }
90
185
  //# sourceMappingURL=ESForestTileset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ESForestTileset.d.ts","sourceRoot":"","sources":["../../../../src/ESObjects/general/ESForestTileset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAA+D,MAAM,gBAAgB,CAAC;AACvH,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAA4C,YAAY,EAAE,MAAM,WAAW,CAAC;AAEnF,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAC/F,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MA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;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,SAAqI;IAEzJ;;;OAGG;IACH,IAAI,QAAQ,WAAgC;IAE5C;;;;OAIG;IACH,IAAa,YAAY;QA+ErB;;WAEG;aACQ,MAAM,GAAG,WAAW;QAC/B,UAAU;;QAEV;;UAEE;;QAEF,YAAY;;QAEZ,UAAU;;QAEV,YAAY;;QAEZ,YAAY;;QAEZ,UAAU;;;;;;;;;;;;;;MAjG8D;IAE5E,OAAgB,QAAQ;;mBAGH,UAAU,EAAE;;;;;;;;;;;;;;;;;;MA+BhC;IAED;;;OAGG;gBACS,EAAE,CAAC,EAAE,MAAM;IAIvB;;;;;OAKG;IACM,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM;CAe3C;AAED;;GAEG;AACH,yBAAiB,eAAe,CAAC;IAC7B;;;OAGG;IACI,MAAM,kBAAkB;QAE3B;;WAEG;aACQ,MAAM,GAAG,WAAW;QAC/B,UAAU;;QAEV;;UAEE;;QAEF,YAAY;;QAEZ,UAAU;;QAEV,YAAY;;QAEZ,YAAY;;QAEZ,UAAU;;;;;;;;;;;;;;KAEZ,CAAC;CACN;AAKD;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,YAAY,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,kBAAkB,CAAC,CAAC;CAAI"}
@@ -1,11 +1,49 @@
1
+ import { ESJResource } from "../../ESJTypes";
1
2
  import { ReactivePropsToNativePropsAndChanged, SceneObjectKey } from "xbsj-base";
2
3
  import { ESObjectWithLocation } from "../base";
3
- import { ESJResource } from "../../ESJTypes";
4
+ /**
5
+ * ESGaussianSplatting 类用于加载和管理高斯溅射模型。该类继承自 ESObjectWithLocation,提供了一系列方法来处理高斯溅射模型的属性和显示。
6
+ *
7
+ * 核心功能包括:
8
+ * - 注册类信息,设置类型名称、中文名称、标签和描述。
9
+ * - 获取对象的类型名称。
10
+ * - 获取默认属性。
11
+ * - 构造函数,创建 ESGaussianSplatting 实例。
12
+ * - 获取 ES 属性。
13
+ * - 根据指定语言获取属性。
14
+ *
15
+ * 使用示例:
16
+ *
17
+ * 构造函数参数:
18
+ * - `id` (SceneObjectKey, 可选): 场景对象的键,用于唯一标识一个场景对象。
19
+ *
20
+ * 特殊使用限制或潜在的副作用:
21
+ * - 无特殊使用限制或潜在的副作用。
22
+ */
4
23
  export declare class ESGaussianSplatting extends ESObjectWithLocation {
24
+ /**
25
+ * 注册 ESGaussianSplatting 类,设置其类型名称、中文名称、标签和描述。
26
+ *
27
+ * @readonly
28
+ * @type {any}
29
+ */
5
30
  static readonly type: string;
31
+ /**
32
+ * 获取对象的类型名称。
33
+ * @returns {string} 类型名称,固定为 'ESGaussianSplatting'。
34
+ */
6
35
  get typeName(): string;
36
+ /**
37
+ * 获取默认属性。
38
+ * @override
39
+ * @returns {any} 默认属性对象。
40
+ */
7
41
  get defaultProps(): {
42
+ /**服务路径或数据体
43
+ * @type {string | ESJResource}
44
+ */
8
45
  url: string | ESJResource;
46
+ /**加载进度*/
9
47
  progress: number;
10
48
  position: import("xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJVector3D>;
11
49
  rotation: import("xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJVector3D>;
@@ -25,6 +63,12 @@ export declare class ESGaussianSplatting extends ESObjectWithLocation {
25
63
  updateFuncStr: string | undefined;
26
64
  toDestroyFuncStr: string | undefined;
27
65
  };
66
+ /**
67
+ * 静态默认属性,继承自 ESObjectWithLocation 的默认属性。
68
+ *
69
+ * @override
70
+ * @type {any}
71
+ */
28
72
  static defaults: {
29
73
  show: boolean;
30
74
  collision: boolean;
@@ -32,7 +76,16 @@ export declare class ESGaussianSplatting extends ESObjectWithLocation {
32
76
  flyToParam: import("../../ESJTypes").ESJFlyToParam;
33
77
  flyInParam: import("../../ESJTypes").ESJFlyInParam;
34
78
  };
79
+ /**
80
+ * 构造函数,创建 ESGaussianSplatting 实例。
81
+ * @param {SceneObjectKey} [id] - 场景对象的键,可选参数。
82
+ */
35
83
  constructor(id?: SceneObjectKey);
84
+ /**
85
+ * 获取 ES 属性。
86
+ * @override
87
+ * @returns {any} ES 属性对象。
88
+ */
36
89
  getESProperties(): {
37
90
  basic: import("../../ESJTypes").Property[];
38
91
  defaultMenu: string;
@@ -42,11 +95,28 @@ export declare class ESGaussianSplatting extends ESObjectWithLocation {
42
95
  coordinate: import("../../ESJTypes").Property[];
43
96
  style: import("../../ESJTypes").Property[];
44
97
  };
98
+ /**
99
+ * 根据指定语言获取属性。
100
+ * @override
101
+ * @param {string} language - 语言类型。
102
+ * @returns {any[]} 属性数组。
103
+ */
45
104
  getProperties(language: string): import("../../ESJTypes").Property[];
46
105
  }
106
+ /**
107
+ * ESGaussianSplatting 类的命名空间,包含创建默认属性的方法。
108
+ */
47
109
  export declare namespace ESGaussianSplatting {
110
+ /**
111
+ * 创建默认属性对象。
112
+ * @returns {any} 默认属性对象,包含 url 和 progress 属性。
113
+ */
48
114
  const createDefaultProps: () => {
115
+ /**服务路径或数据体
116
+ * @type {string | ESJResource}
117
+ */
49
118
  url: string | ESJResource;
119
+ /**加载进度*/
50
120
  progress: number;
51
121
  position: import("xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJVector3D>;
52
122
  rotation: import("xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJVector3D>;
@@ -67,6 +137,9 @@ export declare namespace ESGaussianSplatting {
67
137
  toDestroyFuncStr: string | undefined;
68
138
  };
69
139
  }
140
+ /**
141
+ * 定义 ESGaussianSplatting 类的接口,继承自 ReactivePropsToNativePropsAndChanged。
142
+ */
70
143
  export interface ESGaussianSplatting extends ReactivePropsToNativePropsAndChanged<ReturnType<typeof ESGaussianSplatting.createDefaultProps>> {
71
144
  }
72
145
  //# sourceMappingURL=ESGaussianSplatting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ESGaussianSplatting.d.ts","sourceRoot":"","sources":["../../../../src/ESObjects/general/ESGaussianSplatting.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2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;;MApEmE;IAEhF;;;;;OAKG;IACH,OAAgB,QAAQ;;;;;;MAEvB;IAED;;;OAGG;gBACS,EAAE,CAAC,EAAE,cAAc;IAI/B;;;;OAIG;IACM,eAAe;;;;;;;;;IAYxB;;;;;OAKG;IACM,aAAa,CAAC,QAAQ,EAAE,MAAM;CAS1C;AAED;;GAEG;AACH,yBAAiB,mBAAmB,CAAC;IACjC;;;OAGG;IACI,MAAM,kBAAkB;QAE3B;;WAEG;aACQ,MAAM,GAAG,WAAW;QAC/B,SAAS;;;;;;;;;;;;;;;;;;;KAEX,CAAA;CACL;AAOD;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,oCAAoC,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;CAAI"}
@@ -1,8 +1,38 @@
1
1
  import { ReactivePropsToNativePropsAndChanged, SceneObjectKey } from "xbsj-base";
2
2
  import { ESObjectWithLocation } from "../base";
3
+ import { ESJColor, ESJVector4D } from "../../ESJTypes";
4
+ /**
5
+ * ESGeoDivTextPoi 类用于表示带有文本标签的地理点对象,通常用于在地图或三维场景中显示文本信息。
6
+ * 该类继承自 ESObjectWithLocation,并扩展了与文本显示相关的属性和方法。
7
+ *
8
+ * 核心功能包括:
9
+ * - 设置和获取文本内容、样式和位置。
10
+ * - 支持文本编辑交互。
11
+ * - 自定义文本的宽度、颜色、背景、边框等样式。
12
+ *
13
+ * 使用示例:
14
+ *
15
+ * 构造函数参数:
16
+ * - `id`:场景对象的键,可选参数,用于唯一标识该对象。
17
+ *
18
+ * 特殊使用限制或潜在的副作用:
19
+ * - 该类依赖于 ESObjectWithLocation 类,因此需要确保在使用 ESGeoDivTextPoi 之前已经正确引入并初始化了 ESObjectWithLocation。
20
+ * - 文本编辑交互功能可能会影响性能,特别是在大量文本对象同时存在时。
21
+ */
3
22
  export declare class ESGeoDivTextPoi extends ESObjectWithLocation {
23
+ /**
24
+ * 静态属性,用于注册 ESGeoDivTextPoi 类,包含中文名称、标签和描述信息。
25
+ */
4
26
  static readonly type: string;
27
+ /**
28
+ * 获取对象的类型名称。
29
+ * @returns 类型名称 'ESGeoDivTextPoi'。
30
+ */
5
31
  get typeName(): string;
32
+ /**
33
+ * 重写默认属性获取方法,返回 ESGeoDivTextPoi 的默认属性。
34
+ * @returns ESGeoDivTextPoi 的默认属性。
35
+ */
6
36
  get defaultProps(): {
7
37
  position: import("xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJVector3D>;
8
38
  rotation: import("xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJVector3D>;
@@ -21,34 +51,82 @@ export declare class ESGeoDivTextPoi extends ESObjectWithLocation {
21
51
  execOnceFuncStr: string | undefined;
22
52
  updateFuncStr: string | undefined;
23
53
  toDestroyFuncStr: string | undefined;
54
+ /**
55
+ * 文本内容,初始值为未定义。
56
+ */
24
57
  text: string | undefined;
58
+ /**
59
+ * 文本的宽度,初始值为未定义。
60
+ */
25
61
  width: number | undefined;
62
+ /**
63
+ * 是否允许文本编辑交互,初始值为 false。
64
+ */
26
65
  textEditingInteraction: boolean;
66
+ /**
67
+ * 是否处于文本编辑状态,初始值为 false。
68
+ */
27
69
  textEditing: boolean;
70
+ /**
71
+ * 原点比例和偏移,格式为 [左比例, 上比例, 左偏移, 上偏移],初始值为 [0.5, 1, 0, 0]。
72
+ */
28
73
  originRatioAndOffset: import("xbsj-base").ReactiveVariable<[leftRatio: number, topRatio: number, leftOffset: number, topOffset: number]>;
74
+ /**
75
+ * 文本的透明度,初始值为 1。
76
+ */
29
77
  opacity: number;
78
+ /**
79
+ * 文本的字体大小,初始值为 14。
80
+ */
30
81
  fontSize: number;
82
+ /**
83
+ * 文本的对齐方式,初始值为 'left'(左对齐)。
84
+ */
31
85
  textAlign: string;
32
- color: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
33
- backgroundColor: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
34
- padding: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
35
- borderRadius: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
86
+ /**
87
+ * 文本的颜色,格式为 RGBA 数组,初始值为 [1, 1, 1, 1](白色不透明)。
88
+ */
89
+ color: import("xbsj-base").ReactiveVariable<ESJColor>;
90
+ /**
91
+ * 文本背景的颜色,格式为 RGBA 数组,初始值为 [0, 0, 0, 0.8](黑色 80% 透明度)。
92
+ */
93
+ backgroundColor: import("xbsj-base").ReactiveVariable<ESJColor>;
94
+ /**
95
+ * 文本的内边距,格式为 [上, 右, 下, 左],初始值为 [5, 5, 5, 5]。
96
+ */
97
+ padding: import("xbsj-base").ReactiveVariable<ESJVector4D>;
98
+ /**
99
+ * 文本边框的圆角,格式为 [左上, 右上, 右下, 左下],初始值为 [6, 6, 6, 6]。
100
+ */
101
+ borderRadius: import("xbsj-base").ReactiveVariable<ESJVector4D>;
102
+ /**
103
+ * 文本边框的宽度,初始值为 0。
104
+ */
36
105
  borderWidth: number;
37
- borderColor: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
106
+ /**
107
+ * 文本边框的颜色,格式为 RGBA 数组,初始值为 [1, 1, 1, 1](白色不透明)。
108
+ */
109
+ borderColor: import("xbsj-base").ReactiveVariable<ESJColor>;
110
+ /**
111
+ * 文本边框的样式,初始值为 "solid"(实线)。
112
+ */
38
113
  borderStyle: string;
39
114
  };
115
+ /**
116
+ * 静态重写的默认属性对象,包含了 ESGeoDivTextPoi 的各种默认属性值。
117
+ */
40
118
  static defaults: {
41
119
  allowTextEditing: boolean;
42
120
  width: number;
43
121
  text: string;
44
- originRatioAndOffset: [number, number, number, number];
122
+ originRatioAndOffset: ESJVector4D;
45
123
  opacity: number;
46
124
  fontSize: number;
47
- color: [number, number, number, number];
48
- backgroundColor: [number, number, number, number];
49
- padding: [number, number, number, number];
50
- borderRadius: [number, number, number, number];
51
- borderColor: [number, number, number, number];
125
+ color: ESJColor;
126
+ backgroundColor: ESJColor;
127
+ padding: ESJVector4D;
128
+ borderRadius: ESJVector4D;
129
+ borderColor: ESJColor;
52
130
  borderWidth: number;
53
131
  textAlign: string;
54
132
  borderStyle: string;
@@ -58,10 +136,26 @@ export declare class ESGeoDivTextPoi extends ESObjectWithLocation {
58
136
  flyToParam: import("../../ESJTypes").ESJFlyToParam;
59
137
  flyInParam: import("../../ESJTypes").ESJFlyInParam;
60
138
  };
139
+ /**
140
+ * 构造函数,用于创建 ESGeoDivTextPoi 实例。
141
+ * @param id - 场景对象的键,可选参数。
142
+ */
61
143
  constructor(id?: SceneObjectKey);
144
+ /**
145
+ * 重写获取属性的方法,返回 ESGeoDivTextPoi 的属性列表。
146
+ * @param language - 语言参数,可选参数。
147
+ * @returns 属性列表。
148
+ */
62
149
  getProperties(language?: string): import("../../ESJTypes").Property[];
63
150
  }
151
+ /**
152
+ * ESGeoDivTextPoi 的命名空间,包含创建默认属性的方法。
153
+ */
64
154
  export declare namespace ESGeoDivTextPoi {
155
+ /**
156
+ * 创建 ESGeoDivTextPoi 的默认属性对象。
157
+ * @returns ESGeoDivTextPoi 的默认属性对象。
158
+ */
65
159
  const createDefaultProps: () => {
66
160
  position: import("xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJVector3D>;
67
161
  rotation: import("xbsj-base").ReactiveVariable<import("../../ESJTypes").ESJVector3D>;
@@ -80,23 +174,71 @@ export declare namespace ESGeoDivTextPoi {
80
174
  execOnceFuncStr: string | undefined;
81
175
  updateFuncStr: string | undefined;
82
176
  toDestroyFuncStr: string | undefined;
177
+ /**
178
+ * 文本内容,初始值为未定义。
179
+ */
83
180
  text: string | undefined;
181
+ /**
182
+ * 文本的宽度,初始值为未定义。
183
+ */
84
184
  width: number | undefined;
185
+ /**
186
+ * 是否允许文本编辑交互,初始值为 false。
187
+ */
85
188
  textEditingInteraction: boolean;
189
+ /**
190
+ * 是否处于文本编辑状态,初始值为 false。
191
+ */
86
192
  textEditing: boolean;
193
+ /**
194
+ * 原点比例和偏移,格式为 [左比例, 上比例, 左偏移, 上偏移],初始值为 [0.5, 1, 0, 0]。
195
+ */
87
196
  originRatioAndOffset: import("xbsj-base").ReactiveVariable<[leftRatio: number, topRatio: number, leftOffset: number, topOffset: number]>;
197
+ /**
198
+ * 文本的透明度,初始值为 1。
199
+ */
88
200
  opacity: number;
201
+ /**
202
+ * 文本的字体大小,初始值为 14。
203
+ */
89
204
  fontSize: number;
205
+ /**
206
+ * 文本的对齐方式,初始值为 'left'(左对齐)。
207
+ */
90
208
  textAlign: string;
91
- color: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
92
- backgroundColor: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
93
- padding: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
94
- borderRadius: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
209
+ /**
210
+ * 文本的颜色,格式为 RGBA 数组,初始值为 [1, 1, 1, 1](白色不透明)。
211
+ */
212
+ color: import("xbsj-base").ReactiveVariable<ESJColor>;
213
+ /**
214
+ * 文本背景的颜色,格式为 RGBA 数组,初始值为 [0, 0, 0, 0.8](黑色 80% 透明度)。
215
+ */
216
+ backgroundColor: import("xbsj-base").ReactiveVariable<ESJColor>;
217
+ /**
218
+ * 文本的内边距,格式为 [上, 右, 下, 左],初始值为 [5, 5, 5, 5]。
219
+ */
220
+ padding: import("xbsj-base").ReactiveVariable<ESJVector4D>;
221
+ /**
222
+ * 文本边框的圆角,格式为 [左上, 右上, 右下, 左下],初始值为 [6, 6, 6, 6]。
223
+ */
224
+ borderRadius: import("xbsj-base").ReactiveVariable<ESJVector4D>;
225
+ /**
226
+ * 文本边框的宽度,初始值为 0。
227
+ */
95
228
  borderWidth: number;
96
- borderColor: import("xbsj-base").ReactiveVariable<[number, number, number, number]>;
229
+ /**
230
+ * 文本边框的颜色,格式为 RGBA 数组,初始值为 [1, 1, 1, 1](白色不透明)。
231
+ */
232
+ borderColor: import("xbsj-base").ReactiveVariable<ESJColor>;
233
+ /**
234
+ * 文本边框的样式,初始值为 "solid"(实线)。
235
+ */
97
236
  borderStyle: string;
98
237
  };
99
238
  }
239
+ /**
240
+ * ESGeoDivTextPoi 接口,继承自 ReactivePropsToNativePropsAndChanged 类型。
241
+ */
100
242
  export interface ESGeoDivTextPoi extends ReactivePropsToNativePropsAndChanged<ReturnType<typeof ESGeoDivTextPoi.createDefaultProps>> {
101
243
  }
102
244
  //# sourceMappingURL=ESGeoDivTextPoi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ESGeoDivTextPoi.d.ts","sourceRoot":"","sources":["../../../../src/ESObjects/general/ESGeoDivTextPoi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,oCAAoC,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,qBAAa,eAAgB,SAAQ,oBAAoB;IACrD,MAAM,CAAC,QAAQ,CAAC,IAAI,SAAyI;IAC7J,IAAI,QAAQ,WAAgC;IAC5C,IAAa,YAAY;;;;;;;;;;;;;;;;;;cAmDF,MAAM,GAAG,SAAS;eACjB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;MApDkC;IAE5E,OAAgB,QAAQ;;;;8BAKoB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;;;eAGjD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;yBACpB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;iBAC1C,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;sBAC3B,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;qBACjC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;;;;;;;;;MAIhE;gBACW,EAAE,CAAC,EAAE,cAAc;IAItB,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM;CAwB3C;AAED,yBAAiB,eAAe,CAAC;IACtB,MAAM,kBAA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B3C;AAED;;GAEG;AACH,yBAAiB,eAAe,CAAC;IACjC;;;OAGG;IACI,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;QAC3B;;WAEG;cACgB,MAAM,GAAG,SAAS;QACrC;;WAEG;eACiB,MAAM,GAAG,SAAS;QACtC;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;KAML,CAAC;CACF;AAOD;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,oCAAoC,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,kBAAkB,CAAC,CAAC;CAAI"}
@@ -1,6 +1,6 @@
1
- import { ESJVector2DArray } from "../../../ESJTypes";
2
1
  import { ESGeoVector } from "../../../ESObjects/base";
3
2
  import { Event, ReactivePropsToNativePropsAndChanged, SceneObjectKey } from "xbsj-base";
3
+ import { ESGeoExtrudedPolygon } from "../ESGeoExtrudedPolygon";
4
4
  /**
5
5
  * ESSkylineAnalysis 类用于进行天际线分析。它继承自 ESGeoVector 类,提供了一系列方法来启动和清除天际线分析,并触发相关事件。
6
6
  *
@@ -33,7 +33,9 @@ export declare class ESSkylineAnalysis extends ESGeoVector {
33
33
  */
34
34
  get defaultProps(): {
35
35
  /** 天际线分析结果的屏幕坐标数组 */
36
- screenPoints: import("xbsj-base").ReactiveVariable<ESJVector2DArray | undefined>;
36
+ windowPositions: import("xbsj-base").ReactiveVariable<[number, number][] | undefined>;
37
+ depths: import("xbsj-base").ReactiveVariable<number[] | undefined>;
38
+ radius: import("xbsj-base").ReactiveVariable<number | undefined>;
37
39
  pointed: boolean;
38
40
  pointStyle: import("xbsj-base").ReactiveVariable<import("../../../ESJTypes").ESJPointStyle>;
39
41
  stroked: boolean;
@@ -80,6 +82,35 @@ export declare class ESSkylineAnalysis extends ESGeoVector {
80
82
  * 触发清除事件,清除天际线分析的结果。
81
83
  */
82
84
  clear(): void;
85
+ /**
86
+ * 私有属性,用于存储 ES 挤压多边形对象。
87
+ */
88
+ private _eSGeoExtrudedPolygon;
89
+ /**
90
+ * 获取 ES 挤压多边形对象。
91
+ * @returns {object} ES 挤压多边形对象。
92
+ */
93
+ get eSGeoExtrudedPolygon(): ESGeoExtrudedPolygon;
94
+ /**
95
+ * ESSkylineAnalysis 类的默认属性
96
+ */
97
+ static defaults: {
98
+ windowPositions: never[];
99
+ depths: never[];
100
+ radius: number;
101
+ points: import("../../../ESJTypes").ESJVector3DArray;
102
+ pointStyle: import("../../../ESJTypes").ESJPointStyle;
103
+ strokeStyle: import("../../../ESJTypes").ESJStrokeStyle;
104
+ fillStyle: import("../../../ESJTypes").ESJFillStyle;
105
+ pointed: boolean;
106
+ stroked: boolean;
107
+ filled: boolean;
108
+ show: boolean;
109
+ collision: boolean;
110
+ allowPicking: boolean;
111
+ flyToParam: import("../../../ESJTypes").ESJFlyToParam;
112
+ flyInParam: import("../../../ESJTypes").ESJFlyInParam;
113
+ };
83
114
  /**
84
115
  * 构造函数,创建 ESSkylineAnalysis 实例。
85
116
  * @param {SceneObjectKey} [id] - 可选的场景对象键。
@@ -115,7 +146,9 @@ export declare namespace ESSkylineAnalysis {
115
146
  */
116
147
  const createDefaultProps: () => {
117
148
  /** 天际线分析结果的屏幕坐标数组 */
118
- screenPoints: import("xbsj-base").ReactiveVariable<ESJVector2DArray | undefined>;
149
+ windowPositions: import("xbsj-base").ReactiveVariable<[number, number][] | undefined>;
150
+ depths: import("xbsj-base").ReactiveVariable<number[] | undefined>;
151
+ radius: import("xbsj-base").ReactiveVariable<number | undefined>;
119
152
  pointed: boolean;
120
153
  pointStyle: import("xbsj-base").ReactiveVariable<import("../../../ESJTypes").ESJPointStyle>;
121
154
  stroked: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ESObjects/general/ESSkylineAnalysis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsD,MAAM,yBAAyB,CAAC;AAC/G,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAA6C,oCAAoC,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEnI;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAC9C;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,SAA6I;IAEjK;;;OAGG;IACH,IAAa,QAAQ,IAAI,MAAM,CAAgC;IAE/D;;;OAGG;IACH,IAAa,YAAY;QAsFrB,qBAAqB;;;;;;;;;;;;;;;;;;;;;MAtFqD;IAE9E;;OAEG;IACH,OAAO,CAAC,WAAW,CAAwB;IAE3C;;;OAGG;IACH,IAAI,UAAU,cAA+B;IAE7C;;OAEG;IACH,KAAK;IAEL;;OAEG;IACH,OAAO,CAAC,WAAW,CAAwB;IAE3C;;;OAGG;IACH,IAAI,UAAU,cAA+B;IAE7C;;OAEG;IACH,KAAK;IAEL;;;OAGG;gBACS,EAAE,CAAC,EAAE,cAAc;IAI/B;;;OAGG;IACM,eAAe;;;;;;;;;IAaxB;;;;OAIG;IACM,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM;CAU3C;AAED;;GAEG;AACH,yBAAiB,iBAAiB,CAAC;IAC/B;;;OAGG;IACI,MAAM,kBAAkB;QAE3B,qBAAqB;;;;;;;;;;;;;;;;;;;;;KAEvB,CAAC;CACN;AAOD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,oCAAoC,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;CAAI"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ESObjects/general/ESSkylineAnalysis/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5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10",
3
+ "version": "3.0.7-beta.12",
4
4
  "description": "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",
5
5
  "type": "module",
6
6
  "main": "./dist/earthsdk3.umd.cjs",