earthsdk3-ue 3.0.6-beta.8 → 3.0.6

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.
@@ -64,6 +64,9 @@ export declare class ESUeViewer extends ESViewer {
64
64
  };
65
65
  elevationRamp: {
66
66
  show: boolean;
67
+ minHeight: number;
68
+ maxHeight: number;
69
+ color: import("earthsdk3").ESJColor[] | HTMLCanvasElement;
67
70
  };
68
71
  elevationContour: {
69
72
  show: boolean;
@@ -271,11 +274,7 @@ export declare class ESUeViewer extends ESViewer {
271
274
  re: {
272
275
  height: number;
273
276
  };
274
- error: string | undefined; /**
275
- * @description 切换为第一人称漫游模式 w a s d可以控制相机移动
276
- * @param position 相机位置
277
- * @returns
278
- */
277
+ error: string | undefined;
279
278
  } | undefined>;
280
279
  /**
281
280
  * 保存str到指定目录下
@@ -297,12 +296,16 @@ export declare class ESUeViewer extends ESViewer {
297
296
  rotation: [number, number, number];
298
297
  length: number;
299
298
  } | undefined>;
299
+ /**
300
+ * 获取场景中可替换的材质列表
301
+ */
302
+ getTilesetMaterialIDList(): Promise<string[] | undefined>;
300
303
  pick(screenPosition?: ESJVector2D, attachedInfo?: any, parentInfo?: boolean): Promise<import("earthsdk3").PickedResult | undefined>;
301
304
  pickPosition(screenPosition: ESJVector2D): Promise<[number, number, number] | undefined>;
302
- flyIn(position: ESJVector3D, rotation?: ESJVector3D, duration?: number): Promise<{
305
+ flyIn(position: ESJVector3D, rotation?: ESJVector3D, duration?: number, flyMode?: "default" | "uniform"): Promise<{
303
306
  endType: 0 | 1;
304
307
  } | undefined>;
305
- flyTo(flyToParam: ESJFlyToParam, position: ESJVector3D): Promise<{
308
+ flyTo(flyToParam: ESJFlyToParam, position: ESJVector3D, flyMode?: "default" | "uniform"): Promise<{
306
309
  endType: 0 | 1;
307
310
  } | undefined>;
308
311
  flyToBoundingSphere(rectangle: ESJVector4D, distance?: number, duration?: number): void;
@@ -396,7 +399,10 @@ export declare class ESUeViewer extends ESViewer {
396
399
  setGlobalProperty(params: ESJsonObjectType): Promise<{
397
400
  error: string | undefined;
398
401
  } | undefined>;
399
- startEditing(sceneObject: ESSceneObject, modes: string[] | string, useKeyToSwitch?: boolean): Promise<{
402
+ startEditing(sceneObject: ESSceneObject, modes: string[] | string, options?: {
403
+ useKeyToSwitch?: boolean;
404
+ callSource?: "outer" | "inner";
405
+ }): Promise<{
400
406
  error: string | undefined;
401
407
  } | undefined>;
402
408
  stopEditing(): Promise<{
@@ -430,6 +436,9 @@ export declare class ESUeViewer extends ESViewer {
430
436
  };
431
437
  elevationRamp: {
432
438
  show: boolean;
439
+ minHeight: number;
440
+ maxHeight: number;
441
+ color: import("earthsdk3").ESJColor[] | HTMLCanvasElement;
433
442
  };
434
443
  elevationContour: {
435
444
  show: boolean;
@@ -499,6 +508,9 @@ export declare namespace ESUeViewer {
499
508
  };
500
509
  elevationRamp: {
501
510
  show: boolean;
511
+ minHeight: number;
512
+ maxHeight: number;
513
+ color: import("earthsdk3").ESJColor[] | HTMLCanvasElement;
502
514
  };
503
515
  elevationContour: {
504
516
  show: boolean;
@@ -23,6 +23,9 @@ declare const reactPropDefaults: {
23
23
  };
24
24
  elevationRamp: {
25
25
  show: boolean;
26
+ minHeight: number;
27
+ maxHeight: number;
28
+ color: import("earthsdk3").ESJColor[] | HTMLCanvasElement;
26
29
  };
27
30
  elevationContour: {
28
31
  show: boolean;
@@ -83,6 +86,9 @@ declare const createReactProps: () => {
83
86
  };
84
87
  elevationRamp: {
85
88
  show: boolean;
89
+ minHeight: number;
90
+ maxHeight: number;
91
+ color: import("earthsdk3").ESJColor[] | HTMLCanvasElement;
86
92
  };
87
93
  elevationContour: {
88
94
  show: boolean;
@@ -1,7 +1,7 @@
1
1
  import { ESJVector2D, ESJVector2DArray, ESJVector3D, PickedResult } from "earthsdk3";
2
2
  import { UeCloudViewerBase } from "./UeCloudViewerBase";
3
3
  import { ESFlyToParam, NavigationModeCallFuncParam } from "./UeFuncsType";
4
- declare const flyToCallFunc: (viewer: UeCloudViewerBase, id?: string, duration?: number, flyToParam?: ESFlyToParam, position?: ESJVector3D) => Promise<{
4
+ declare const flyToCallFunc: (viewer: UeCloudViewerBase, id?: string, duration?: number, flyToParam?: ESFlyToParam, position?: ESJVector3D, flyMode?: "default" | "uniform") => Promise<{
5
5
  endType: 0 | 1;
6
6
  } | undefined>;
7
7
  declare const destroyCallFunc: (viewer: UeCloudViewerBase, id: string) => Promise<{
@@ -9,7 +9,7 @@ declare const destroyCallFunc: (viewer: UeCloudViewerBase, id: string) => Promis
9
9
  }>;
10
10
  declare const calcFlyToParamCallFunc: (viewer: UeCloudViewerBase, id: string) => void;
11
11
  declare const refreshTilesetCallFunc: (viewer: UeCloudViewerBase, id: string) => void;
12
- declare const flyInCallFunc: (viewer: UeCloudViewerBase, id?: string, position?: ESJVector3D, rotation?: ESJVector3D, duration?: number) => Promise<{
12
+ declare const flyInCallFunc: (viewer: UeCloudViewerBase, id?: string, position?: ESJVector3D, rotation?: ESJVector3D, duration?: number, flyMode?: "default" | "uniform") => Promise<{
13
13
  endType: 0 | 1;
14
14
  } | undefined>;
15
15
  declare const flyInDefaultCameraCallFunc: (viewer: UeCloudViewerBase, Duration?: number) => Promise<{
@@ -178,13 +178,14 @@ export declare const getStatusCallFunc: (viewer: UeCloudViewerBase) => Promise<{
178
178
  rotation: [number, number, number];
179
179
  length: number;
180
180
  } | undefined>;
181
- export declare const startEditingCallFunc: (viewer: UeCloudViewerBase, sceneObjectID: string, modes: string[] | string, useKeyToSwitch?: boolean) => Promise<{
181
+ export declare const startEditingCallFunc: (viewer: UeCloudViewerBase, sceneObjectID: string, editingID: string, modes: string[] | string, useKeyToSwitch?: boolean) => Promise<{
182
182
  error: string | undefined;
183
183
  } | undefined>;
184
184
  export declare const stopEditingCallFunc: (viewer: UeCloudViewerBase) => Promise<{
185
185
  error: string | undefined;
186
186
  } | undefined>;
187
- export declare const moveObjectsCallFunc: (viewer: UeCloudViewerBase, sceneObjectIDs: string[]) => Promise<{
187
+ export declare const moveObjectsCallFunc: (viewer: UeCloudViewerBase, sceneObjectIDs: string[], editingID: string) => Promise<{
188
188
  error: string | undefined;
189
189
  } | undefined>;
190
- export { generateMemReportCallFunc, startVoiceCallFunc, pickCallFunc, stopVoiceCallFunc, HighlightFeatureAndFlyToCallFunc, HighlightFeatureCallFunc, SetLayerColorCallFunc, SetLayerVisibleCallFunc, calcFlyToParamCallFunc, callFunctionCallFunc, changeNavigationModeCallFunc, destroyCallFunc, flyInCallFunc, flyInDefaultCameraCallFunc, flyToCallFunc, pickPositionCallFunc, quitCallFunc, refreshTilesetCallFunc, resetWithCurrentCameraCallFunc, setGlobalPropertyCallFunc, setNodePositionCallFunc, setNodeRotationCallFunc, setNodeScaleCallFunc, smoothMoveCallFunc, smoothMoveOnGroundCallFunc, smoothMoveWithRotationCallFunc, smoothMoveWithRotationOnGroundCallFunc, mountPakFiles };
190
+ declare const getTilesetMaterialIDListCallFunc: (viewer: UeCloudViewerBase) => Promise<string[] | undefined>;
191
+ export { generateMemReportCallFunc, startVoiceCallFunc, pickCallFunc, stopVoiceCallFunc, HighlightFeatureAndFlyToCallFunc, HighlightFeatureCallFunc, SetLayerColorCallFunc, SetLayerVisibleCallFunc, calcFlyToParamCallFunc, callFunctionCallFunc, changeNavigationModeCallFunc, destroyCallFunc, flyInCallFunc, flyInDefaultCameraCallFunc, flyToCallFunc, pickPositionCallFunc, quitCallFunc, refreshTilesetCallFunc, resetWithCurrentCameraCallFunc, setGlobalPropertyCallFunc, setNodePositionCallFunc, setNodeRotationCallFunc, setNodeScaleCallFunc, smoothMoveCallFunc, smoothMoveOnGroundCallFunc, smoothMoveWithRotationCallFunc, smoothMoveWithRotationOnGroundCallFunc, mountPakFiles, getTilesetMaterialIDListCallFunc };
@@ -94,6 +94,7 @@ export type UeEventsType = {
94
94
  eid: string;
95
95
  type: 'start' | 'changed' | 'end' | 'changedFailed';
96
96
  objectIDs: string[];
97
+ editingID: string;
97
98
  add: {
98
99
  modes: [];
99
100
  cMode: string;
@@ -880,6 +880,7 @@ export type UeFuncsType = {
880
880
  startEditing: {
881
881
  params: {
882
882
  sceneObjectID: string;
883
+ editingID: string;
883
884
  modes: string[] | string;
884
885
  useKeyToSwitch?: boolean;
885
886
  };
@@ -896,11 +897,21 @@ export type UeFuncsType = {
896
897
  moveObjects: {
897
898
  params: {
898
899
  sceneObjectIDs: string[];
900
+ editingID: string;
899
901
  };
900
902
  result: {
901
903
  error: string | undefined;
902
904
  };
903
905
  };
906
+ getTilesetMaterialIDList: {
907
+ params: undefined;
908
+ result: {
909
+ re: {
910
+ materialIDList: string[];
911
+ };
912
+ error: string | undefined;
913
+ };
914
+ };
904
915
  [k: string]: {
905
916
  params: {
906
917
  [k: string]: any;
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "earthsdk3-ue",
3
- "version": "3.0.6-beta.8",
4
- "description": "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",
5
- "main": "dist/earthsdk3-ue.cjs",
6
- "module": "dist/earthsdk3-ue.mjs",
7
- "types": "dist/types/index.d.ts",
8
- "files": [
9
- "dist",
10
- "package.json",
11
- "README.md"
12
- ],
13
- "keywords": [
14
- "xbsj-base",
15
- "earthsdk3",
16
- "earthsdk3-ue",
17
- "earthsdk3-cesium"
18
- ],
19
- "scripts": {
20
- "build:dev": "rimraf dist && webpack --config ./tools/webpack-scripts/webpack.dev.js && tsc-alias",
21
- "build:prod": "rimraf dist && webpack --config ./tools/webpack-scripts/webpack.prod.js && tsc-alias",
22
- "login": "npm login --registry https://registry.npmjs.org",
23
- "push:beta": "npm publish --registry https://registry.npmjs.org --tag beta",
24
- "push": "npm publish --registry https://registry.npmjs.org"
25
- },
26
- "author": "suplyang",
27
- "owner": "北京西部世界科技有限公司",
28
- "homepage": "www.earthsdk.com",
29
- "license": "ISC",
30
- "devDependencies": {
31
- "compression-webpack-plugin": "^11.1.0",
32
- "ts-loader": "^9.5.1",
33
- "typescript": "^4.6.2",
34
- "webpack": "^5.37.0",
35
- "webpack-cli": "4.10.0",
36
- "webpack-merge": "^4.2.2",
37
- "tsc-alias": "^1.8.10"
38
- },
39
- "dependencies": {
40
- "html2canvas": "^1.4.1",
41
- "@epicgames-ps/lib-pixelstreamingfrontend-ue5.4": "^1.1.5"
42
- }
43
- }
1
+ {
2
+ "name": "earthsdk3-ue",
3
+ "version": "3.0.6",
4
+ "description": "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",
5
+ "main": "dist/earthsdk3-ue.cjs",
6
+ "files": [
7
+ "dist",
8
+ "package.json",
9
+ "README.md"
10
+ ],
11
+ "keywords": [
12
+ "xbsj-base",
13
+ "earthsdk3",
14
+ "earthsdk3-ue",
15
+ "earthsdk3-cesium"
16
+ ],
17
+ "scripts": {
18
+ "build:dev": "rimraf dist && webpack --config ./tools/webpack-scripts/webpack.dev.js && tsc-alias",
19
+ "build:prod": "rimraf dist && webpack --config ./tools/webpack-scripts/webpack.prod.js && tsc-alias",
20
+ "login": "npm login --registry https://registry.npmjs.org",
21
+ "push:beta": "npm publish --registry https://registry.npmjs.org --tag beta",
22
+ "push": "npm publish --registry https://registry.npmjs.org"
23
+ },
24
+ "author": "suplyang",
25
+ "owner": "北京西部世界科技有限公司",
26
+ "homepage": "www.earthsdk.com",
27
+ "license": "ISC",
28
+ "devDependencies": {
29
+ "compression-webpack-plugin": "^11.1.0",
30
+ "ts-loader": "^9.5.1",
31
+ "typescript": "^4.6.2",
32
+ "webpack": "^5.37.0",
33
+ "webpack-cli": "4.10.0",
34
+ "webpack-merge": "^4.2.2",
35
+ "tsc-alias": "^1.8.10"
36
+ },
37
+ "dependencies": {
38
+ "html2canvas": "^1.4.1",
39
+ "@epicgames-ps/lib-pixelstreamingfrontend-ue5.4": "^1.1.5"
40
+ },
41
+ "module": "dist/earthsdk3-ue.mjs",
42
+ "types": "dist/types/index.d.ts"
43
+ }