earthsdk3 3.0.5 → 3.0.6-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.cjs +58169 -2
- package/dist/earthsdk3.js +58188 -2
- package/dist/earthsdk3.mjs +58327 -2
- package/dist/types/ESJTypes/properties/ESJMaterialType.d.ts +8 -8
- package/dist/types/ESObjects/general/ES3DTileset/index.d.ts +4 -4
- package/dist/types/ESObjects/general/ESGeoJson/index.d.ts +1 -1
- package/dist/types/ESObjects/general/ESGltfModel.d.ts +7 -3
- package/dist/types/ESObjects/general/ESRtsFeatureEditing/index.d.ts +9 -13
- package/dist/types/ESObjects/general/ESRtsTileset/index.d.ts +4 -8
- package/package.json +1 -2
- package/dist/earthsdk3.cjs.LICENSE.txt +0 -29
- package/dist/earthsdk3.js.LICENSE.txt +0 -29
- package/dist/earthsdk3.mjs.LICENSE.txt +0 -29
|
@@ -8,16 +8,16 @@ export type ESJMaterialType = {
|
|
|
8
8
|
unlit?: boolean;
|
|
9
9
|
alphaMode?: "OPAQUE" | "MASK" | "BLEND";
|
|
10
10
|
baseColorTexture?: {
|
|
11
|
-
value
|
|
12
|
-
offset
|
|
13
|
-
scale
|
|
14
|
-
rotate
|
|
11
|
+
value?: "";
|
|
12
|
+
offset?: ESJVector2D;
|
|
13
|
+
scale?: ESJVector2D;
|
|
14
|
+
rotate?: number;
|
|
15
15
|
};
|
|
16
16
|
normalTexture?: {
|
|
17
|
-
value
|
|
18
|
-
offset
|
|
19
|
-
scale
|
|
20
|
-
rotate
|
|
17
|
+
value?: "";
|
|
18
|
+
offset?: ESJVector2D;
|
|
19
|
+
scale?: ESJVector2D;
|
|
20
|
+
rotate?: number;
|
|
21
21
|
};
|
|
22
22
|
magFilter?: 'LINEAR' | 'NEAREST';
|
|
23
23
|
minFilter?: 'LINEAR' | 'NEAREST' | 'NEAREST_MIPMAP_NEAREST' | 'LINEAR_MIPMAP_NEAREST' | 'NEAREST_MIPMAP_LINEAR' | 'LINEAR_MIPMAP_LINEAR';
|
|
@@ -21,7 +21,7 @@ export declare class ES3DTileset extends ESVisualObject {
|
|
|
21
21
|
rotation: import("xbsj-base").ReactiveVariable<ESJVector3D>;
|
|
22
22
|
czmImageBasedLightingFactor: import("xbsj-base").ReactiveVariable<ESJVector2D>;
|
|
23
23
|
/**
|
|
24
|
-
* @deprecated czmLuminanceAtZenith已弃用,请使用
|
|
24
|
+
* @deprecated czmLuminanceAtZenith已弃用,请使用czmAtmosphereScatteringIntensity代替
|
|
25
25
|
*/
|
|
26
26
|
czmLuminanceAtZenith: number;
|
|
27
27
|
czmAtmosphereScatteringIntensity: number;
|
|
@@ -181,8 +181,8 @@ export declare class ES3DTileset extends ESVisualObject {
|
|
|
181
181
|
get resetFeatureStyleEvent(): Event<[]>;
|
|
182
182
|
resetFeatureStyle(): void;
|
|
183
183
|
private _setMaterialEvent;
|
|
184
|
-
get setMaterialEvent(): Event<[ESJMaterialType]>;
|
|
185
|
-
setMaterial(options: ESJMaterialType): void;
|
|
184
|
+
get setMaterialEvent(): Event<["default" | ESJMaterialType]>;
|
|
185
|
+
setMaterial(options: ESJMaterialType | 'default'): void;
|
|
186
186
|
private _clippingPlanesId;
|
|
187
187
|
get clippingPlanesId(): string;
|
|
188
188
|
set clippingPlanesId(value: string);
|
|
@@ -253,7 +253,7 @@ export declare namespace ES3DTileset {
|
|
|
253
253
|
rotation: import("xbsj-base").ReactiveVariable<ESJVector3D>;
|
|
254
254
|
czmImageBasedLightingFactor: import("xbsj-base").ReactiveVariable<ESJVector2D>;
|
|
255
255
|
/**
|
|
256
|
-
* @deprecated czmLuminanceAtZenith已弃用,请使用
|
|
256
|
+
* @deprecated czmLuminanceAtZenith已弃用,请使用czmAtmosphereScatteringIntensity代替
|
|
257
257
|
*/
|
|
258
258
|
czmLuminanceAtZenith: number;
|
|
259
259
|
czmAtmosphereScatteringIntensity: number;
|
|
@@ -127,7 +127,7 @@ export declare class ESGeoJson extends ESVisualObject {
|
|
|
127
127
|
dataSource: (NumberProperty | EnumProperty<string> | JsonProperty<string>)[];
|
|
128
128
|
location: never[];
|
|
129
129
|
coordinate: never[];
|
|
130
|
-
style: (GroupProperty | StringProperty | NumberProperty | BooleanProperty | EnumProperty<string> | ColorProperty |
|
|
130
|
+
style: (GroupProperty | StringProperty | NumberProperty | BooleanProperty | EnumProperty<string> | ColorProperty | JsonProperty<string> | Number2Property | JsonProperty<{}>)[];
|
|
131
131
|
};
|
|
132
132
|
getProperties(language?: string): import("../../../ESJTypes").Property[];
|
|
133
133
|
get strokeWidth(): number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event, SceneObjectKey, ReactivePropsToNativePropsAndChanged } from "xbsj-base";
|
|
2
2
|
import { ESObjectWithLocation } from "../base";
|
|
3
|
-
import { ESJColor, ESJMaterialType, ESJResource, ESJVector3D } from "../../ESJTypes";
|
|
3
|
+
import { ESJColor, ESJMaterialType, ESJResource, ESJVector2D, ESJVector3D } from "../../ESJTypes";
|
|
4
4
|
import { ESJInstances } from "../../ESJTypes/properties/ESJInstances";
|
|
5
5
|
type ModelNodeTransformation = {
|
|
6
6
|
translationX: number;
|
|
@@ -27,6 +27,8 @@ export declare class ESGltfModel extends ESObjectWithLocation {
|
|
|
27
27
|
czmColor: import("xbsj-base").ReactiveVariable<ESJColor>;
|
|
28
28
|
allowPicking: boolean;
|
|
29
29
|
instances: import("xbsj-base").ReactiveVariable<ESJInstances | undefined>;
|
|
30
|
+
czmImageBasedLightingFactor: import("xbsj-base").ReactiveVariable<ESJVector2D>;
|
|
31
|
+
czmAtmosphereScatteringIntensity: number;
|
|
30
32
|
position: import("xbsj-base").ReactiveVariable<ESJVector3D>;
|
|
31
33
|
rotation: import("xbsj-base").ReactiveVariable<ESJVector3D>;
|
|
32
34
|
scale: import("xbsj-base").ReactiveVariable<ESJVector3D>;
|
|
@@ -75,8 +77,8 @@ export declare class ESGltfModel extends ESObjectWithLocation {
|
|
|
75
77
|
get printDebugInfoEvent(): Event<[]>;
|
|
76
78
|
printDebugInfo(): void;
|
|
77
79
|
private _setMaterialEvent;
|
|
78
|
-
get setMaterialEvent(): Event<[ESJMaterialType]>;
|
|
79
|
-
setMaterial(options: ESJMaterialType): void;
|
|
80
|
+
get setMaterialEvent(): Event<["default" | ESJMaterialType]>;
|
|
81
|
+
setMaterial(options: ESJMaterialType | 'default'): void;
|
|
80
82
|
static defaults: {
|
|
81
83
|
url: string;
|
|
82
84
|
instances: never[];
|
|
@@ -107,6 +109,8 @@ export declare namespace ESGltfModel {
|
|
|
107
109
|
czmColor: import("xbsj-base").ReactiveVariable<ESJColor>;
|
|
108
110
|
allowPicking: boolean;
|
|
109
111
|
instances: import("xbsj-base").ReactiveVariable<ESJInstances | undefined>;
|
|
112
|
+
czmImageBasedLightingFactor: import("xbsj-base").ReactiveVariable<ESJVector2D>;
|
|
113
|
+
czmAtmosphereScatteringIntensity: number;
|
|
110
114
|
position: import("xbsj-base").ReactiveVariable<ESJVector3D>;
|
|
111
115
|
rotation: import("xbsj-base").ReactiveVariable<ESJVector3D>;
|
|
112
116
|
scale: import("xbsj-base").ReactiveVariable<ESJVector3D>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JsonValue, SceneObjectKey, UniteChanged } from "xbsj-base";
|
|
2
2
|
import { ES3DTileset } from "../ES3DTileset";
|
|
3
3
|
import { ESRtsTileset } from "../ESRtsTileset";
|
|
4
4
|
import { ESSceneObject } from "../../../ESObjects/base";
|
|
@@ -26,7 +26,7 @@ export declare class ESRtsFeatureEditing extends ES3DTileset {
|
|
|
26
26
|
czmAtmosphereScatteringIntensity: number;
|
|
27
27
|
czmMaximumMemoryUsage: number;
|
|
28
28
|
czmClassificationType: string;
|
|
29
|
-
czmStyleJson: import("xbsj-base").ReactiveVariable<
|
|
29
|
+
czmStyleJson: import("xbsj-base").ReactiveVariable<JsonValue>;
|
|
30
30
|
czmBackFaceCulling: boolean;
|
|
31
31
|
czmDebugShowBoundingVolume: boolean;
|
|
32
32
|
czmDebugShowContentBoundingVolume: boolean;
|
|
@@ -45,21 +45,21 @@ export declare class ESRtsFeatureEditing extends ES3DTileset {
|
|
|
45
45
|
flyInParam: import("xbsj-base").ReactiveVariable<import("../../../ESJTypes").ESJFlyInParam | undefined>;
|
|
46
46
|
name: string;
|
|
47
47
|
ref: string | undefined;
|
|
48
|
-
extras: import("xbsj-base").ReactiveVariable<
|
|
48
|
+
extras: import("xbsj-base").ReactiveVariable<JsonValue>;
|
|
49
49
|
devTags: import("xbsj-base").ReactiveVariable<string[] | undefined>;
|
|
50
50
|
execOnceFuncStr: string | undefined;
|
|
51
51
|
updateFuncStr: string | undefined;
|
|
52
52
|
toDestroyFuncStr: string | undefined;
|
|
53
53
|
};
|
|
54
|
-
get json():
|
|
55
|
-
set json(value:
|
|
54
|
+
get json(): JsonValue;
|
|
55
|
+
set json(value: JsonValue);
|
|
56
56
|
combinationClass: boolean;
|
|
57
57
|
mainClass: undefined | ESSceneObject;
|
|
58
58
|
getMainClass(): ESSceneObject;
|
|
59
59
|
init(eSRtsTileset: ESRtsTileset, featureId: string): Promise<void>;
|
|
60
60
|
constructor(id?: SceneObjectKey);
|
|
61
61
|
static defaults: {
|
|
62
|
-
layerConfig:
|
|
62
|
+
layerConfig: JsonValue;
|
|
63
63
|
url: string;
|
|
64
64
|
actorTag: string;
|
|
65
65
|
materialMode: string;
|
|
@@ -99,7 +99,7 @@ export declare namespace ESRtsFeatureEditing {
|
|
|
99
99
|
czmAtmosphereScatteringIntensity: number;
|
|
100
100
|
czmMaximumMemoryUsage: number;
|
|
101
101
|
czmClassificationType: string;
|
|
102
|
-
czmStyleJson: import("xbsj-base").ReactiveVariable<
|
|
102
|
+
czmStyleJson: import("xbsj-base").ReactiveVariable<JsonValue>;
|
|
103
103
|
czmBackFaceCulling: boolean;
|
|
104
104
|
czmDebugShowBoundingVolume: boolean;
|
|
105
105
|
czmDebugShowContentBoundingVolume: boolean;
|
|
@@ -118,16 +118,12 @@ export declare namespace ESRtsFeatureEditing {
|
|
|
118
118
|
flyInParam: import("xbsj-base").ReactiveVariable<import("../../../ESJTypes").ESJFlyInParam | undefined>;
|
|
119
119
|
name: string;
|
|
120
120
|
ref: string | undefined;
|
|
121
|
-
extras: import("xbsj-base").ReactiveVariable<
|
|
121
|
+
extras: import("xbsj-base").ReactiveVariable<JsonValue>;
|
|
122
122
|
devTags: import("xbsj-base").ReactiveVariable<string[] | undefined>;
|
|
123
123
|
execOnceFuncStr: string | undefined;
|
|
124
124
|
updateFuncStr: string | undefined;
|
|
125
125
|
toDestroyFuncStr: string | undefined;
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
export interface ESRtsFeatureEditing extends
|
|
128
|
+
export interface ESRtsFeatureEditing extends UniteChanged<ReturnType<typeof ESRtsFeatureEditing.createDefaultProps>> {
|
|
129
129
|
}
|
|
130
|
-
type JsonType = PartialWithUndefinedReactivePropsToNativeProps<ReturnType<typeof ESRtsFeatureEditing.createDefaultProps> & {
|
|
131
|
-
type: string;
|
|
132
|
-
}>;
|
|
133
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event, JsonValue,
|
|
1
|
+
import { Event, JsonValue, SceneObjectKey, UniteChanged } from "xbsj-base";
|
|
2
2
|
import { LayerType } from "./types";
|
|
3
3
|
import { ESRtsFeatureEditing } from "../ESRtsFeatureEditing";
|
|
4
4
|
import { ES3DTileset } from "../ES3DTileset";
|
|
@@ -46,8 +46,8 @@ export declare class ESRtsTileset extends ES3DTileset {
|
|
|
46
46
|
toDestroyFuncStr: string | undefined;
|
|
47
47
|
layerConfig: import("xbsj-base").ReactiveVariable<JsonValue[] | undefined>;
|
|
48
48
|
};
|
|
49
|
-
get json():
|
|
50
|
-
set json(value:
|
|
49
|
+
get json(): JsonValue;
|
|
50
|
+
set json(value: JsonValue);
|
|
51
51
|
combinationClass: boolean;
|
|
52
52
|
getMainClass(): ES3DTileset;
|
|
53
53
|
private _es3DTileset;
|
|
@@ -153,9 +153,5 @@ export declare namespace ESRtsTileset {
|
|
|
153
153
|
layerConfig: import("xbsj-base").ReactiveVariable<JsonValue[] | undefined>;
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
export interface ESRtsTileset extends
|
|
156
|
+
export interface ESRtsTileset extends UniteChanged<ReturnType<typeof ESRtsTileset.createDefaultProps>> {
|
|
157
157
|
}
|
|
158
|
-
type JsonType = PartialWithUndefinedReactivePropsToNativeProps<ReturnType<typeof ESRtsTileset.createDefaultProps> & {
|
|
159
|
-
type: string;
|
|
160
|
-
}>;
|
|
161
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "earthsdk3",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6-beta.2",
|
|
4
4
|
"description": "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",
|
|
5
|
-
"1main": "./src/index.ts",
|
|
6
5
|
"main": "dist/earthsdk3.cjs",
|
|
7
6
|
"module": "dist/earthsdk3.mjs",
|
|
8
7
|
"types": "dist/types/index.d.ts",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
10
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
11
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
|
|
13
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
15
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
17
|
-
|
|
18
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
|
-
and limitations under the License.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* splaytree v3.1.2
|
|
24
|
-
* Fast Splay tree for Node and browser
|
|
25
|
-
*
|
|
26
|
-
* @author Alexander Milevski <info@w8r.name>
|
|
27
|
-
* @license MIT
|
|
28
|
-
* @preserve
|
|
29
|
-
*/
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
10
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
11
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
|
|
13
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
15
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
17
|
-
|
|
18
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
|
-
and limitations under the License.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* splaytree v3.1.2
|
|
24
|
-
* Fast Splay tree for Node and browser
|
|
25
|
-
*
|
|
26
|
-
* @author Alexander Milevski <info@w8r.name>
|
|
27
|
-
* @license MIT
|
|
28
|
-
* @preserve
|
|
29
|
-
*/
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
10
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
11
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
|
|
13
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
15
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
17
|
-
|
|
18
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
|
-
and limitations under the License.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* splaytree v3.1.2
|
|
24
|
-
* Fast Splay tree for Node and browser
|
|
25
|
-
*
|
|
26
|
-
* @author Alexander Milevski <info@w8r.name>
|
|
27
|
-
* @license MIT
|
|
28
|
-
* @preserve
|
|
29
|
-
*/
|