earthsdk3 3.5.0-beta.1 → 3.5.0-beta.2
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/earthsdk3.js
CHANGED
|
@@ -39,7 +39,7 @@ function hd(r) {
|
|
|
39
39
|
}
|
|
40
40
|
let Ha;
|
|
41
41
|
try {
|
|
42
|
-
const r = "earthsdk3", e = "3.5.0-beta.
|
|
42
|
+
const r = "earthsdk3", e = "3.5.0-beta.2", t = "2025-09-24T01:03:57.000Z", n = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "3b8038e8e7241a1525bbddfac4189c43732e823e", a = ((Date.now() - 1758675837e3) / 36e5).toFixed(1), u = `%c🌏 ${r}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
|
|
43
43
|
%c${i ? i + `
|
|
44
44
|
` : ""}当前网站正在使用${r},此软件版权归${n}所有
|
|
45
45
|
`;
|
|
@@ -53,7 +53,7 @@ try {
|
|
|
53
53
|
},
|
|
54
54
|
// @ts-ignore
|
|
55
55
|
get gituri() {
|
|
56
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
56
|
+
return GITURI_ && GITURI_.replace("${commitId}", "3b8038e8e7241a1525bbddfac4189c43732e823e");
|
|
57
57
|
},
|
|
58
58
|
// @ts-ignore
|
|
59
59
|
get info() {
|
|
@@ -61,7 +61,7 @@ try {
|
|
|
61
61
|
},
|
|
62
62
|
// @ts-ignore
|
|
63
63
|
get date() {
|
|
64
|
-
return "2025-09-
|
|
64
|
+
return "2025-09-24T01:03:57.000Z";
|
|
65
65
|
},
|
|
66
66
|
// @ts-ignore
|
|
67
67
|
get author() {
|
|
@@ -69,7 +69,7 @@ try {
|
|
|
69
69
|
},
|
|
70
70
|
// @ts-ignore
|
|
71
71
|
get version() {
|
|
72
|
-
return "3.5.0-beta.
|
|
72
|
+
return "3.5.0-beta.2";
|
|
73
73
|
},
|
|
74
74
|
// @ts-ignore
|
|
75
75
|
get name() {
|
|
@@ -77,7 +77,7 @@ try {
|
|
|
77
77
|
},
|
|
78
78
|
// @ts-ignore
|
|
79
79
|
get commitId() {
|
|
80
|
-
return "
|
|
80
|
+
return "3b8038e8e7241a1525bbddfac4189c43732e823e";
|
|
81
81
|
},
|
|
82
82
|
/**
|
|
83
83
|
* 打印版权信息到控制台
|
|
@@ -1222,17 +1222,18 @@ function Ts(r, e) {
|
|
|
1222
1222
|
for (let [i, s] of Object.entries(e()))
|
|
1223
1223
|
if (!Reflect.has(r, i)) {
|
|
1224
1224
|
const o = function(a) {
|
|
1225
|
+
var c, h;
|
|
1225
1226
|
if (a[t]) return;
|
|
1226
1227
|
const u = [];
|
|
1227
1228
|
let l = Object.getPrototypeOf(a);
|
|
1228
1229
|
for (; l; )
|
|
1229
1230
|
u.push(l), l = Object.getPrototypeOf(l);
|
|
1230
1231
|
u.reverse();
|
|
1231
|
-
for (let
|
|
1232
|
-
const
|
|
1233
|
-
if (!
|
|
1234
|
-
const
|
|
1235
|
-
|
|
1232
|
+
for (let f of u) {
|
|
1233
|
+
const p = (c = f.constructor) == null ? void 0 : c.__xbsj_dpSymbol;
|
|
1234
|
+
if (!p) continue;
|
|
1235
|
+
const g = (h = f.constructor) == null ? void 0 : h.__xbsj_createDefaultProps;
|
|
1236
|
+
g && Ya(a, p, f, g);
|
|
1236
1237
|
}
|
|
1237
1238
|
};
|
|
1238
1239
|
Object.defineProperties(r, {
|
|
@@ -32600,7 +32601,7 @@ d(zs, "supportEditingModes", [
|
|
|
32600
32601
|
J.HeightModify
|
|
32601
32602
|
]);
|
|
32602
32603
|
let up = zs;
|
|
32603
|
-
const
|
|
32604
|
+
const Ii = class Ii extends Lt {
|
|
32604
32605
|
/**
|
|
32605
32606
|
* 构造函数,调用父类构造函数并传入可选的ID。
|
|
32606
32607
|
* @param {string} [id] - 可选的对象ID。
|
|
@@ -32636,13 +32637,12 @@ const ni = class ni extends Lt {
|
|
|
32636
32637
|
defaultMenu: "dataSource",
|
|
32637
32638
|
basic: [
|
|
32638
32639
|
...t.basic,
|
|
32639
|
-
new N([this, "zIndex"], "层级序号",
|
|
32640
|
-
new N([this, "opacity"], "透明度", ni.defaults.opacity)
|
|
32640
|
+
new N([this, "zIndex"], "层级序号", Ii.defaults.zIndex)
|
|
32641
32641
|
],
|
|
32642
32642
|
dataSource: [
|
|
32643
32643
|
...t.dataSource,
|
|
32644
|
-
new K([this, "url"], "地形服务地址",
|
|
32645
|
-
new hi([this, "rectangle"], "矩形范围",
|
|
32644
|
+
new K([this, "url"], "地形服务地址", Ii.defaults.url),
|
|
32645
|
+
new hi([this, "rectangle"], "矩形范围", Ii.defaults.rectangle)
|
|
32646
32646
|
],
|
|
32647
32647
|
more: [
|
|
32648
32648
|
...t.more,
|
|
@@ -32652,7 +32652,7 @@ const ni = class ni extends Lt {
|
|
|
32652
32652
|
};
|
|
32653
32653
|
}
|
|
32654
32654
|
};
|
|
32655
|
-
d(
|
|
32655
|
+
d(Ii, "createDefaultProps", () => ({
|
|
32656
32656
|
...Lt.createDefaultProps(),
|
|
32657
32657
|
/**
|
|
32658
32658
|
* 地形服务地址,支持URL和ESJResource。
|
|
@@ -32689,9 +32689,9 @@ d(ni, "createDefaultProps", () => ({
|
|
|
32689
32689
|
*
|
|
32690
32690
|
* @readonly
|
|
32691
32691
|
*/
|
|
32692
|
-
d(
|
|
32693
|
-
let lp =
|
|
32694
|
-
const
|
|
32692
|
+
d(Ii, "type", Ii.register("ESTerrainLayer", Ii, { chsName: "地形图层", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "地形图层" }));
|
|
32693
|
+
let lp = Ii;
|
|
32694
|
+
const ni = class ni extends mr {
|
|
32695
32695
|
/**
|
|
32696
32696
|
* 构造函数,创建 ESTextLabel 实例。
|
|
32697
32697
|
* @param {SceneObjectKey} [id] - 可选的场景对象键。
|
|
@@ -32711,9 +32711,9 @@ const ri = class ri extends mr {
|
|
|
32711
32711
|
...e.basic,
|
|
32712
32712
|
new St([this, "color"], "文本颜色", [1, 1, 1, 1]),
|
|
32713
32713
|
new N([this, "fontSize"], "文字大小", 14),
|
|
32714
|
-
new qg([this, "text"], "内容",
|
|
32715
|
-
new St([this, "backgroundColor"], "背景颜色",
|
|
32716
|
-
new hi([this, "padding"], "内边距",
|
|
32714
|
+
new qg([this, "text"], "内容", ni.defaults.text, void 0, !0),
|
|
32715
|
+
new St([this, "backgroundColor"], "背景颜色", ni.defaults.backgroundColor),
|
|
32716
|
+
new hi([this, "padding"], "内边距", ni.defaults.padding),
|
|
32717
32717
|
new St([this, "borderColor"], "边界颜色"),
|
|
32718
32718
|
new hi([this, "borderRadius"], "边界圆角"),
|
|
32719
32719
|
new N([this, "borderWidth"], "边界宽度")
|
|
@@ -32723,7 +32723,7 @@ const ri = class ri extends mr {
|
|
|
32723
32723
|
new rt([], "czm", "czm"),
|
|
32724
32724
|
new W([this, "textEditingInteraction"], "文本编辑交互"),
|
|
32725
32725
|
new W([this, "textEditing"], "文本编辑"),
|
|
32726
|
-
new N([this, "width"], "宽度",
|
|
32726
|
+
new N([this, "width"], "宽度", ni.defaults.width, !0),
|
|
32727
32727
|
new N([this, "opacity"], "透明度"),
|
|
32728
32728
|
new vt([this, "textAlign"], [["center", "center"], ["left", "left"], ["right", "right"]], "文字位置", "left"),
|
|
32729
32729
|
new vt(
|
|
@@ -32746,7 +32746,7 @@ const ri = class ri extends mr {
|
|
|
32746
32746
|
};
|
|
32747
32747
|
}
|
|
32748
32748
|
};
|
|
32749
|
-
d(
|
|
32749
|
+
d(ni, "createDefaultProps", () => ({
|
|
32750
32750
|
...mr.createDefaultProps(),
|
|
32751
32751
|
/**
|
|
32752
32752
|
* 文本标签的文本内容。
|
|
@@ -32839,8 +32839,8 @@ d(ri, "createDefaultProps", () => ({
|
|
|
32839
32839
|
* 静态属性,用于注册类的类型信息。
|
|
32840
32840
|
* 包括类名、父类、中文名称、标签和描述等。
|
|
32841
32841
|
*/
|
|
32842
|
-
d(
|
|
32843
|
-
let Au =
|
|
32842
|
+
d(ni, "type", ni.register("ESTextLabel", ni, { chsName: "文本标签", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "文本标签。" }));
|
|
32843
|
+
let Au = ni;
|
|
32844
32844
|
const kE = `
|
|
32845
32845
|
#### 默认值如下
|
|
32846
32846
|
\`\`\`js
|
|
@@ -34598,7 +34598,7 @@ d(Ko, "createDefaultProps", () => ({
|
|
|
34598
34598
|
*/
|
|
34599
34599
|
d(Ko, "type", Ko.register("ESLocalRectangle", Ko, { chsName: "局部坐标四边形", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESLocalRectangle" }));
|
|
34600
34600
|
let yp = Ko;
|
|
34601
|
-
const
|
|
34601
|
+
const ri = class ri extends wt {
|
|
34602
34602
|
/**
|
|
34603
34603
|
* 构造函数,初始化围栏对象。
|
|
34604
34604
|
* @param id 可选参数,围栏对象的唯一标识符。
|
|
@@ -34667,7 +34667,7 @@ const Ii = class Ii extends wt {
|
|
|
34667
34667
|
...t.basic,
|
|
34668
34668
|
new N([this, "height"], "高度", 10),
|
|
34669
34669
|
new N([this, "width"], "宽度", 10),
|
|
34670
|
-
new vt([this, "materialMode"],
|
|
34670
|
+
new vt([this, "materialMode"], ri.materialModes, "模式", ri.defaults.materialMode)
|
|
34671
34671
|
],
|
|
34672
34672
|
coordinate: [
|
|
34673
34673
|
...t.coordinate,
|
|
@@ -34676,7 +34676,7 @@ const Ii = class Ii extends wt {
|
|
|
34676
34676
|
};
|
|
34677
34677
|
}
|
|
34678
34678
|
};
|
|
34679
|
-
d(
|
|
34679
|
+
d(ri, "createDefaultProps", () => ({
|
|
34680
34680
|
...wt.createDefaultProps(),
|
|
34681
34681
|
/**
|
|
34682
34682
|
* 围栏的高度。默认10
|
|
@@ -34705,15 +34705,15 @@ d(Ii, "createDefaultProps", () => ({
|
|
|
34705
34705
|
})), /**
|
|
34706
34706
|
* 静态属性,用于注册类类型,包含类名、中文名称、标签和描述信息。
|
|
34707
34707
|
*/
|
|
34708
|
-
d(
|
|
34708
|
+
d(ri, "type", ri.register("ESPipeFence", ri, { chsName: "管道电子围栏", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "管道电子围栏" })), d(ri, "materialModes", [["单箭头", "singleArrow"], ["多箭头", "multipleArrows"], ["纯色", "color"]]), /**
|
|
34709
34709
|
* 静态属性,重写支持的编辑模式,包含 ESGeoVector 的编辑模式以及新增的线串追加和插入模式。
|
|
34710
34710
|
*/
|
|
34711
|
-
d(
|
|
34711
|
+
d(ri, "supportEditingModes", [
|
|
34712
34712
|
...wt.supportEditingModes,
|
|
34713
34713
|
J.LineStringAppend,
|
|
34714
34714
|
J.LineStringInsert
|
|
34715
34715
|
]);
|
|
34716
|
-
let fh =
|
|
34716
|
+
let fh = ri;
|
|
34717
34717
|
const Pi = class Pi extends Rr {
|
|
34718
34718
|
/**
|
|
34719
34719
|
* 构造函数。
|