earthsdk3-cesium 3.7.0-beta.15 → 3.7.0-beta.16

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 (18) hide show
  1. package/dist/earthsdk3-cesium.iife.js +3 -3
  2. package/dist/earthsdk3-cesium.js +39 -33
  3. package/dist/earthsdk3-cesium.umd.cjs +45 -45
  4. package/dist/types/CzmObjects/base/InnerClass/XbsjGroundPolylinePrimitive/GroundPolylinePrimitive.d.ts +148 -0
  5. package/dist/types/CzmObjects/general/CzmESSignalTransmission/XbsjPolyline/XbsjPolylineGeometry.d.ts +3 -0
  6. package/dist/types/CzmObjects/general/CzmESSignalTransmission/XbsjPolyline/xbsjCreateODLinesPrimitive.d.ts +29 -0
  7. package/dist/types/CzmObjects/general/CzmESVideoFusion/XbsjCameraVideo/XbsjCameraVideo.d.ts +18 -0
  8. package/dist/types/CzmObjects/general/CzmESViewShed/XbsjViewshed/XbsjViewshed.d.ts +16 -0
  9. package/dist/types/ESCesiumViewer/BackGroundImage/BackGroundImage.d.ts +5 -0
  10. package/dist/types/ESCesiumViewer/LocalSkyBox/SkyAtmosphere.d.ts +14 -0
  11. package/dist/types/ESCesiumViewer/initCesiumViewer/GaussianSplattingExtend/GaussianSplatPipelineStage.d.ts +12 -0
  12. package/dist/types/ESCesiumViewer/initCesiumViewer/GaussianSplattingExtend/GaussianSplatTexturePipelineStage.d.ts +11 -0
  13. package/dist/types/ESCesiumViewer/initCesiumViewer/fixGoogleEarth/cesiumFixGoogleEarth.d.ts +1 -0
  14. package/dist/types/__declares/cesium.d.ts +434 -0
  15. package/dist/types/utils/czmUtils/todo/generateCartesianArc/czm/generateCartesianArc.d.ts +8 -0
  16. package/dist/types/utils/generalUtils/geoPolylineToBezierSpline/bezierSpline/index.d.ts +37 -0
  17. package/dist/types/utils/generalUtils/geoPolylineToBezierSpline/bezierSpline/lib/spline.d.ts +62 -0
  18. package/package.json +1 -1
@@ -0,0 +1,148 @@
1
+ import * as Cesium from 'cesium';
2
+
3
+ // declare class GroundPolylinePrimitive extends Destroyable {
4
+ // constructor()
5
+ // }
6
+
7
+ type GeometryInstance = Cesium.GeometryInstance;
8
+ type Appearance = Cesium.Appearance;
9
+ type ClassificationType = Cesium.ClassificationType;
10
+ type Scene = Cesium.Scene;
11
+
12
+ declare class GroundPolylinePrimitive {
13
+ constructor(options?: {
14
+ geometryInstances?: any[] | GeometryInstance;
15
+ appearance?: Appearance;
16
+ show?: boolean;
17
+ interleave?: boolean;
18
+ releaseGeometryInstances?: boolean;
19
+ allowPicking?: boolean;
20
+ asynchronous?: boolean;
21
+ classificationType?: ClassificationType;
22
+ debugShowBoundingVolume?: boolean;
23
+ debugShowShadowVolume?: boolean;
24
+ });
25
+ /**
26
+ * The geometry instances rendered with this primitive. This may
27
+ * be <code>undefined</code> if <code>options.releaseGeometryInstances</code>
28
+ * is <code>true</code> when the primitive is constructed.
29
+ * <p>
30
+ * Changing this property after the primitive is rendered has no effect.
31
+ * </p>
32
+ */
33
+ readonly geometryInstances: any[] | GeometryInstance;
34
+ /**
35
+ * The {@link Appearance} used to shade this primitive. Each geometry
36
+ * instance is shaded with the same appearance. Some appearances, like
37
+ * {@link PolylineColorAppearance} allow giving each instance unique
38
+ * properties.
39
+ */
40
+ appearance: Appearance;
41
+ /**
42
+ * Determines if the primitive will be shown. This affects all geometry
43
+ * instances in the primitive.
44
+ */
45
+ show: boolean;
46
+ /**
47
+ * Determines whether terrain, 3D Tiles or both will be classified.
48
+ */
49
+ classificationType: ClassificationType;
50
+ /**
51
+ * This property is for debugging only; it is not for production use nor is it optimized.
52
+ * <p>
53
+ * Draws the bounding sphere for each draw command in the primitive.
54
+ * </p>
55
+ */
56
+ debugShowBoundingVolume: boolean;
57
+ /**
58
+ * Determines if geometry vertex attributes are interleaved, which can slightly improve rendering performance.
59
+ */
60
+ readonly interleave: boolean;
61
+ /**
62
+ * When <code>true</code>, the primitive does not keep a reference to the input <code>geometryInstances</code> to save memory.
63
+ */
64
+ readonly releaseGeometryInstances: boolean;
65
+ /**
66
+ * When <code>true</code>, each geometry instance will only be pickable with {@link Scene#pick}. When <code>false</code>, GPU memory is saved.
67
+ */
68
+ readonly allowPicking: boolean;
69
+ /**
70
+ * Determines if the geometry instances will be created and batched on a web worker.
71
+ */
72
+ readonly asynchronous: boolean;
73
+ /**
74
+ * Determines if the primitive is complete and ready to render. If this property is
75
+ * true, the primitive will be rendered the next time that {@link GroundPolylinePrimitive#update}
76
+ * is called.
77
+ */
78
+ readonly ready: boolean;
79
+ /**
80
+ * Gets a promise that resolves when the primitive is ready to render.
81
+ */
82
+ readonly readyPromise: Promise<GroundPolylinePrimitive>;
83
+ /**
84
+ * This property is for debugging only; it is not for production use nor is it optimized.
85
+ * <p>
86
+ * If true, draws the shadow volume for each geometry in the primitive.
87
+ * </p>
88
+ */
89
+ readonly debugShowShadowVolume: boolean;
90
+ /**
91
+ * Initializes the minimum and maximum terrain heights. This only needs to be called if you are creating the
92
+ * GroundPolylinePrimitive synchronously.
93
+ * @returns A promise that will resolve once the terrain heights have been loaded.
94
+ */
95
+ static initializeTerrainHeights(): Promise<void>;
96
+ /**
97
+ * Called when {@link Viewer} or {@link CesiumWidget} render the scene to
98
+ * get the draw commands needed to render this primitive.
99
+ * <p>
100
+ * Do not call this function directly. This is documented just to
101
+ * list the exceptions that may be propagated when the scene is rendered:
102
+ * </p>
103
+ */
104
+ update(): void;
105
+ /**
106
+ * Returns the modifiable per-instance attributes for a {@link GeometryInstance}.
107
+ * @example
108
+ * const attributes = primitive.getGeometryInstanceAttributes('an id');
109
+ * attributes.color = Cesium.ColorGeometryInstanceAttribute.toValue(Cesium.Color.AQUA);
110
+ * attributes.show = Cesium.ShowGeometryInstanceAttribute.toValue(true);
111
+ * @param id - The id of the {@link GeometryInstance}.
112
+ * @returns The typed array in the attribute's format or undefined if the is no instance with id.
113
+ */
114
+ getGeometryInstanceAttributes(id: any): any;
115
+ /**
116
+ * Checks if the given Scene supports GroundPolylinePrimitives.
117
+ * GroundPolylinePrimitives require support for the WEBGL_depth_texture extension.
118
+ * @param scene - The current scene.
119
+ * @returns Whether or not the current scene supports GroundPolylinePrimitives.
120
+ */
121
+ static isSupported(scene: Scene): boolean;
122
+ /**
123
+ * Returns true if this object was destroyed; otherwise, false.
124
+ * <p>
125
+ * If this object was destroyed, it should not be used; calling any function other than
126
+ * <code>isDestroyed</code> will result in a {@link DeveloperError} exception.
127
+ * </p>
128
+ * @returns <code>true</code> if this object was destroyed; otherwise, <code>false</code>.
129
+ */
130
+ isDestroyed(): boolean;
131
+ /**
132
+ * Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
133
+ * release of WebGL resources, instead of relying on the garbage collector to destroy this object.
134
+ * <p>
135
+ * Once an object is destroyed, it should not be used; calling any function other than
136
+ * <code>isDestroyed</code> will result in a {@link DeveloperError} exception. Therefore,
137
+ * assign the return value (<code>undefined</code>) to the object as done in the example.
138
+ * </p>
139
+ * @example
140
+ * e = e && e.destroy();
141
+ */
142
+ destroy(): void;
143
+ }
144
+
145
+ export default GroundPolylinePrimitive;
146
+
147
+
148
+
@@ -0,0 +1,29 @@
1
+ import * as Cesium from 'cesium';
2
+ import { XbsjRoutePath } from './XbsjRoutePath';
3
+ import { SceneObjectKey } from "earthsdk3";
4
+
5
+ export type XbsjPositionCallbackResultType = {
6
+ timeRatio: number;
7
+ repeat: number;
8
+ color: [number, number, number, number];
9
+ bgColor: [number, number, number, number];
10
+ bidirectional: 0 | 1 | 2 | 3; // 0/1表示单向,2表示双向, 3表示无信号
11
+ };
12
+
13
+ export type XbsjODLinesPostionCallback = (
14
+ instanceIndex: number,
15
+ frameState: Cesium.FrameState,
16
+ result: XbsjPositionCallbackResultType,
17
+ ) => XbsjPositionCallbackResultType;
18
+
19
+ export default function xbsjCreateODLinesPrimitive(
20
+ routePaths: XbsjRoutePath[],
21
+ color: [number, number, number, number],
22
+ arcType: Cesium.ArcType,
23
+ postionCallback: (instanceIndex: number, frameState: Cesium.FrameState | undefined, result: XbsjPositionCallbackResultType) => XbsjPositionCallbackResultType,
24
+ brightening?: boolean,
25
+ depthTest?: boolean,
26
+ getTextureFunc?: () => Cesium.Texture,
27
+ id?: SceneObjectKey
28
+ ): Cesium.Primitive;
29
+
@@ -0,0 +1,18 @@
1
+ import * as Cesium from 'cesium';
2
+
3
+ export declare class XbsjCameraVideo {
4
+ constructor(options: {
5
+ inverseViewMatrix: Cesium.Matrix4,
6
+ frustum: Cesium.PerspectiveFrustum,
7
+ // videoElement: HTMLVideoElement | string | undefined,
8
+ videoTextureFunc?: (() => Cesium.Texture | undefined) | undefined,
9
+ alphaTextureFunc?: (() => Cesium.Texture | undefined) | undefined,
10
+ showHelperPrimitive: true,
11
+ });
12
+ // videoElement: HTMLVideoElement | string | undefined;
13
+ // alphaImage: string;
14
+ videoTextureFunc: (() => Cesium.Texture | undefined) | undefined;
15
+ alphaTextureFunc: (() => Cesium.Texture | undefined) | undefined;
16
+ showHelperPrimitive: boolean;
17
+ destroy(): void;
18
+ }
@@ -0,0 +1,16 @@
1
+ import * as Cesium from 'cesium';
2
+
3
+ export declare class XbsjViewshed {
4
+ constructor(scene: Cesium.Scene, id?: string);
5
+ enabled: boolean;
6
+ showHelper: boolean;
7
+ fovH: number;
8
+ fovV: number;
9
+ near: number;
10
+ far: number;
11
+ position: Cesium.Cartesian3;
12
+ heading: number;
13
+ pitch: number;
14
+ roll: number;
15
+ destroy(): void;
16
+ }
@@ -0,0 +1,5 @@
1
+ export declare class BackGroundImage {
2
+ show: boolean;
3
+ material: Cesium.Material;
4
+ destroy(): void;
5
+ }
@@ -0,0 +1,14 @@
1
+ import * as Cesium from 'cesium';
2
+
3
+ declare class SkyAtmosphere {
4
+ constructor(ellipsoid: Cesium.Ellipsoid | undefined, sources: {
5
+ positiveX: string;
6
+ negativeX: string;
7
+ positiveY: string;
8
+ negativeY: string;
9
+ positiveZ: string;
10
+ negativeZ: string;
11
+ });
12
+ }
13
+
14
+ export = SkyAtmosphere;
@@ -0,0 +1,12 @@
1
+ import * as Cesium from 'cesium';
2
+
3
+ declare const GaussianSplatPipelineStage: {
4
+ name: string;
5
+ process: (
6
+ renderResources: any,
7
+ primitive: Cesium.Primitive,
8
+ frameState: Cesium.FrameState
9
+ ) => void;
10
+ };
11
+
12
+ export default GaussianSplatPipelineStage;
@@ -0,0 +1,11 @@
1
+ import * as Cesium from 'cesium';
2
+ declare const GaussianSplatTexturePipelineStage: {
3
+ name: string;
4
+ process: (
5
+ renderResources: any,
6
+ primitive: Cesium.Primitive,
7
+ frameState: Cesium.FrameState
8
+ ) => void;
9
+ };
10
+
11
+ export default GaussianSplatTexturePipelineStage;
@@ -0,0 +1 @@
1
+ export declare function cesiumFixGoogleEarth(Cesium: any): void;