@rtzh/gy-cesium 0.0.66 → 0.0.68

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 (65) hide show
  1. package/lib/types/Cesium.d.ts +3 -0
  2. package/lib/types/components/ClickDistance/index.d.ts +1 -0
  3. package/lib/types/components/GyCesium/index.d.ts +1 -0
  4. package/lib/types/components/GyCesiumHtml/index.d.ts +1 -0
  5. package/lib/types/components/GyCesiumLightLine/index.d.ts +1 -0
  6. package/lib/types/components/GyCesiumLine/index.d.ts +1 -0
  7. package/lib/types/components/GyCesiumModelSidebar/index.d.ts +1 -0
  8. package/lib/types/components/GyCesiumToolbar/index.d.ts +1 -0
  9. package/lib/types/components/GyCesiumWall/index.d.ts +1 -0
  10. package/lib/types/components/GyCesiumWater/index.d.ts +1 -0
  11. package/lib/types/components/ModelControls/index.d.ts +1 -0
  12. package/lib/types/components/RealTimePointClouds/index.d.ts +1 -0
  13. package/lib/types/components/SmallMap/index.d.ts +1 -0
  14. package/lib/types/components/TrackRoam/index.d.ts +1 -0
  15. package/lib/types/components/VideoShadow/index.d.ts +1 -0
  16. package/lib/types/components/demo/index.d.ts +1 -0
  17. package/lib/types/components/index.d.ts +14 -0
  18. package/lib/types/hooks/CesiumClass.d.ts +244 -0
  19. package/lib/types/hooks/CesiumFirstPerson.d.ts +95 -0
  20. package/lib/types/hooks/CesiumModel.d.ts +7 -0
  21. package/lib/types/hooks/CesiumSmallModel.d.ts +17 -0
  22. package/lib/types/hooks/CesiumUnit.d.ts +28 -0
  23. package/lib/types/hooks/Geometry/CT.d.ts +61 -0
  24. package/lib/types/hooks/Geometry/CesiumPrimitivePolyline.d.ts +50 -0
  25. package/lib/types/hooks/Geometry/CesiumWater.d.ts +37 -0
  26. package/lib/types/hooks/Geometry/HtmlOverlayManager.d.ts +11 -0
  27. package/lib/types/hooks/Geometry/LabelPanelManager.d.ts +137 -0
  28. package/lib/types/hooks/Geometry/ModelDragController.d.ts +43 -0
  29. package/lib/types/hooks/Geometry/TrackRoam.d.ts +28 -0
  30. package/lib/types/hooks/Geometry/VideoShed3d-old.d.ts +106 -0
  31. package/lib/types/hooks/Geometry/VideoShed3d.d.ts +107 -0
  32. package/lib/types/hooks/Geometry/WallEntityManager.d.ts +153 -0
  33. package/lib/types/hooks/Loader/CesiumLoader.d.ts +5 -0
  34. package/lib/types/hooks/Loader/GltfLoader.d.ts +169 -0
  35. package/lib/types/hooks/Loader/ModelMatrix.d.ts +71 -0
  36. package/lib/types/hooks/Loader/RealTimePointCloudsClass.d.ts +31 -0
  37. package/lib/types/hooks/Loader/RtzhTilesetLoader.d.ts +506 -0
  38. package/lib/types/hooks/Loader/TilesetLoader.d.ts +133 -0
  39. package/lib/types/hooks/Loader/createXrayOutline.d.ts +10 -0
  40. package/lib/types/hooks/Loader/xrayOutlineGpuAdapter-a.d.ts +55 -0
  41. package/lib/types/hooks/Loader/xrayOutlineGpuAdapter-ls.d.ts +57 -0
  42. package/lib/types/hooks/Loader/xrayOutlineGpuAdapter.d.ts +57 -0
  43. package/lib/types/hooks/Loader/xrayOutlineMask.d.ts +5 -0
  44. package/lib/types/hooks/Material/GridFloorMaterial.d.ts +54 -0
  45. package/lib/types/hooks/Material/GyMaterialPolygon.d.ts +4 -0
  46. package/lib/types/hooks/Material/PolylineArrowMaterialProperty.d.ts +25 -0
  47. package/lib/types/hooks/Material/PolylineLightingMaterialProperty.d.ts +20 -0
  48. package/lib/types/hooks/Material/PolylineTrialFlowMaterialProperty.d.ts +20 -0
  49. package/lib/types/hooks/ModelSplit.d.ts +9 -0
  50. package/lib/types/hooks/baseUrl.d.ts +2 -0
  51. package/lib/types/hooks/gyCesium.d.ts +11 -0
  52. package/lib/types/hooks/postProcess/GyEdgeDetectionStage.d.ts +12 -0
  53. package/lib/types/hooks/postProcess/WindingPoint.d.ts +25 -0
  54. package/lib/types/hooks/transformlat.d.ts +37 -0
  55. package/lib/types/index.d.ts +11 -0
  56. package/lib/v2/gy-cesium.cjs.js +2 -2
  57. package/lib/v2/gy-cesium.es.js +8950 -8304
  58. package/lib/v2/style.css +1 -1
  59. package/lib/v2.7/gy-cesium.cjs.js +2 -2
  60. package/lib/v2.7/gy-cesium.es.js +8621 -7964
  61. package/lib/v2.7/style.css +1 -1
  62. package/lib/v3/gy-cesium.cjs.js +5 -5
  63. package/lib/v3/gy-cesium.es.js +7726 -7059
  64. package/lib/v3/style.css +1 -1
  65. package/package.json +1 -1
@@ -0,0 +1,57 @@
1
+ import Cesium from '../../Cesium';
2
+ export declare function createMaskShaderSources(program: any, uIsRTZH?: boolean): {
3
+ vertexShaderSource: any;
4
+ fragmentShaderSource: any;
5
+ };
6
+ interface ContentEntry {
7
+ tile: any;
8
+ content: any;
9
+ version: number;
10
+ batchIds: number[];
11
+ commands: Map<any, CommandState>;
12
+ }
13
+ interface CommandState {
14
+ sourceProgram: any;
15
+ cached: ProgramCache;
16
+ command: Cesium.DrawCommand;
17
+ sourceUniformMap: any;
18
+ uniformMap: any;
19
+ }
20
+ interface ProgramCache {
21
+ shader: Cesium.ShaderProgram;
22
+ references: number;
23
+ }
24
+ export declare class XrayOutlineGpuAdapter {
25
+ context: Cesium.Context;
26
+ tileset: any;
27
+ selectedBatchIds: Set<number>;
28
+ selectionVersion: number;
29
+ contents: Map<any, ContentEntry>;
30
+ programs: Map<any, ProgramCache>;
31
+ listeners: Array<() => void>;
32
+ destroyed: boolean;
33
+ uIsRTZH: boolean;
34
+ selectionTexture: Cesium.Texture | undefined;
35
+ selectionTexSize: Cesium.Cartesian2;
36
+ constructor(context: Cesium.Context, uIsRTZH?: boolean);
37
+ setSelection(tileset: any, batchIds: Iterable<number>): void;
38
+ private rebuildSelectionTexture;
39
+ clearSelection(): void;
40
+ trackTile(tile: any): void;
41
+ untrackTile(tile: any): void;
42
+ readBatchIds(entry: ContentEntry): number[];
43
+ sourceCommands(model: any): Cesium.DrawCommand[];
44
+ createProgram(source: Cesium.DrawCommand): Cesium.ShaderProgram;
45
+ derive(entry: ContentEntry, source: Cesium.DrawCommand, framebuffer: Cesium.Framebuffer, renderState: Cesium.RenderState): CommandState | undefined;
46
+ render(framebuffer: Cesium.Framebuffer, renderState: Cesium.RenderState, passState: Cesium.PassState): {
47
+ matchedContents: number;
48
+ maskDrawCommands: number;
49
+ sourcePrograms: number;
50
+ geometryBytesAllocated: number;
51
+ };
52
+ releaseCommand(state: CommandState): void;
53
+ releaseEntry(entry: ContentEntry): void;
54
+ releaseSource(): void;
55
+ destroy(): void;
56
+ }
57
+ export {};
@@ -0,0 +1,57 @@
1
+ import Cesium from '../../Cesium';
2
+ export declare function createMaskShaderSources(program: any, uIsRTZH?: boolean): {
3
+ vertexShaderSource: any;
4
+ fragmentShaderSource: any;
5
+ };
6
+ interface ContentEntry {
7
+ tile: any;
8
+ content: any;
9
+ version: number;
10
+ batchIds: number[];
11
+ commands: Map<any, CommandState>;
12
+ }
13
+ interface CommandState {
14
+ sourceProgram: any;
15
+ cached: ProgramCache;
16
+ command: Cesium.DrawCommand;
17
+ sourceUniformMap: any;
18
+ uniformMap: any;
19
+ }
20
+ interface ProgramCache {
21
+ shader: Cesium.ShaderProgram;
22
+ references: number;
23
+ }
24
+ export declare class XrayOutlineGpuAdapter {
25
+ context: Cesium.Context;
26
+ tileset: any;
27
+ selectedBatchIds: Set<number>;
28
+ selectionVersion: number;
29
+ contents: Map<any, ContentEntry>;
30
+ programs: Map<any, ProgramCache>;
31
+ listeners: Array<() => void>;
32
+ destroyed: boolean;
33
+ uIsRTZH: boolean;
34
+ selectionTexture: Cesium.Texture | undefined;
35
+ selectionTexSize: Cesium.Cartesian2;
36
+ constructor(context: Cesium.Context, uIsRTZH?: boolean);
37
+ setSelection(tileset: any, batchIds: Iterable<number>): void;
38
+ private rebuildSelectionTexture;
39
+ clearSelection(): void;
40
+ trackTile(tile: any): void;
41
+ untrackTile(tile: any): void;
42
+ readBatchIds(entry: ContentEntry): number[];
43
+ sourceCommands(model: any): Cesium.DrawCommand[];
44
+ createProgram(source: Cesium.DrawCommand): Cesium.ShaderProgram;
45
+ derive(entry: ContentEntry, source: Cesium.DrawCommand, framebuffer: Cesium.Framebuffer, renderState: Cesium.RenderState): CommandState | undefined;
46
+ render(framebuffer: Cesium.Framebuffer, renderState: Cesium.RenderState, passState: Cesium.PassState): {
47
+ matchedContents: number;
48
+ maskDrawCommands: number;
49
+ sourcePrograms: number;
50
+ geometryBytesAllocated: number;
51
+ };
52
+ releaseCommand(state: CommandState): void;
53
+ releaseEntry(entry: ContentEntry): void;
54
+ releaseSource(): void;
55
+ destroy(): void;
56
+ }
57
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare function createOutlineKernel(width: number, height: number, cssWidth: number, cssHeight: number): {
2
+ key: string;
3
+ offsets: number[][];
4
+ };
5
+ export declare function createOuterOutlineFragmentShader(offsets: number[][]): string;
@@ -0,0 +1,54 @@
1
+ export interface GridFloorStyleOptions {
2
+ gridDensity?: number;
3
+ lineWidth?: number;
4
+ lineOpacity?: number;
5
+ bgCenterColor?: string;
6
+ bgEdgeColor?: string;
7
+ lineCenterColor?: string;
8
+ lineEdgeColor?: string;
9
+ crossGlowIntensity?: number;
10
+ edgeFadeStart?: number;
11
+ edgeFadeEnd?: number;
12
+ emissionIntensity?: number;
13
+ opacity?: number;
14
+ }
15
+ export interface GridFloorOptions extends GridFloorStyleOptions {
16
+ viewer: any;
17
+ center?: number[];
18
+ size?: number;
19
+ height?: number;
20
+ opacity?: number;
21
+ }
22
+ declare class GridFloorMaterial {
23
+ TYPE: "GridFloorMaterial";
24
+ private viewer;
25
+ private primitive;
26
+ private material;
27
+ private _loaded;
28
+ private _destroyed;
29
+ private center;
30
+ private size;
31
+ private height;
32
+ private opacity;
33
+ private gridDensity;
34
+ private lineWidth;
35
+ private lineOpacity;
36
+ private bgCenterColor;
37
+ private bgEdgeColor;
38
+ private lineCenterColor;
39
+ private lineEdgeColor;
40
+ private crossGlowIntensity;
41
+ private edgeFadeStart;
42
+ private edgeFadeEnd;
43
+ private emissionIntensity;
44
+ constructor(options: GridFloorOptions);
45
+ get loaded(): boolean;
46
+ get destroyed(): boolean;
47
+ load(): void;
48
+ private createMaterial;
49
+ private colorToCesiumColor;
50
+ updateStyle(options: GridFloorStyleOptions): void;
51
+ setShow(show: boolean): void;
52
+ destroy(): void;
53
+ }
54
+ export default GridFloorMaterial;
@@ -0,0 +1,4 @@
1
+ declare class GyMaterialPolygon {
2
+ constructor();
3
+ }
4
+ export default GyMaterialPolygon;
@@ -0,0 +1,25 @@
1
+ import type { Event, Color, JulianDate, MaterialProperty } from '../../Cesium';
2
+ interface OPTTYPE {
3
+ color?: string;
4
+ duration?: number;
5
+ url?: string;
6
+ count?: number;
7
+ colorOpacity?: number;
8
+ }
9
+ declare class PolylineArrowMaterialProperty implements MaterialProperty {
10
+ private _definitionChanged;
11
+ private _color;
12
+ duration: number;
13
+ private readonly _startTime;
14
+ url: string;
15
+ count: number;
16
+ constructor(opt?: OPTTYPE);
17
+ get isConstant(): boolean;
18
+ get definitionChanged(): Event;
19
+ get color(): Color;
20
+ set color(newVal: Color);
21
+ getType(_time?: JulianDate): string;
22
+ getValue(_time: JulianDate, result?: Record<string, any>): Record<string, any>;
23
+ equals(other?: MaterialProperty): boolean;
24
+ }
25
+ export default PolylineArrowMaterialProperty;
@@ -0,0 +1,20 @@
1
+ import type { Event, Color, JulianDate, MaterialProperty } from '../../Cesium';
2
+ interface OPTTYPE {
3
+ color?: string;
4
+ duration?: number;
5
+ url?: string;
6
+ count?: number;
7
+ }
8
+ declare class PolylineLightingMaterialProperty implements MaterialProperty {
9
+ private readonly _definitionChanged;
10
+ private _color;
11
+ constructor(opt?: OPTTYPE);
12
+ get isConstant(): boolean;
13
+ get definitionChanged(): Event;
14
+ get color(): Color;
15
+ set color(newColor: Color);
16
+ getType(_time?: JulianDate): string;
17
+ getValue(_time: JulianDate, result?: Record<string, any>): Record<string, any>;
18
+ equals(other?: MaterialProperty): boolean;
19
+ }
20
+ export default PolylineLightingMaterialProperty;
@@ -0,0 +1,20 @@
1
+ import type { Event, JulianDate, MaterialProperty } from '../../Cesium';
2
+ interface OPTTYPE {
3
+ color?: string;
4
+ duration?: number;
5
+ count?: number;
6
+ }
7
+ declare class PolylineTrialFlowMaterialProperty implements MaterialProperty {
8
+ private _definitionChanged;
9
+ private _color;
10
+ duration: number;
11
+ count: number;
12
+ private readonly _startTime;
13
+ constructor(opt?: OPTTYPE);
14
+ get isConstant(): boolean;
15
+ get definitionChanged(): Event;
16
+ getType(time?: JulianDate): string;
17
+ getValue(time: JulianDate, result?: Record<string, any>): Record<string, any>;
18
+ equals(other?: MaterialProperty): boolean;
19
+ }
20
+ export default PolylineTrialFlowMaterialProperty;
@@ -0,0 +1,9 @@
1
+ import Cesium from '../Cesium';
2
+ declare class ModelSplit {
3
+ model: Cesium.Primitive;
4
+ floorHeight: number;
5
+ constructor(model: any, options: {
6
+ floorHeight: number;
7
+ });
8
+ }
9
+ export default ModelSplit;
@@ -0,0 +1,2 @@
1
+ declare const BASEURL: string;
2
+ export default BASEURL;
@@ -0,0 +1,11 @@
1
+ import type { Ref } from 'vue-demi';
2
+ interface ModelObj {
3
+ init: (options: any) => void;
4
+ destroy: () => void;
5
+ model: any;
6
+ modelFinish: Ref<boolean>;
7
+ htmlOverlayManager?: any;
8
+ }
9
+ declare const gyCesium: (type: string) => ModelObj;
10
+ export default gyCesium;
11
+ export declare type ModelObjType = ModelObj;
@@ -0,0 +1,12 @@
1
+ declare class GyEdgeDetectionStage {
2
+ view: any;
3
+ select: any;
4
+ edgedetectionstage: any;
5
+ color: any;
6
+ length: number;
7
+ constructor(view: any, color: string, length?: number);
8
+ clear(): void;
9
+ selectFeature(features: any): void;
10
+ init(): void;
11
+ }
12
+ export default GyEdgeDetectionStage;
@@ -0,0 +1,25 @@
1
+ declare class WindingPoint {
2
+ viewer: any;
3
+ cesiumObj: any;
4
+ position: any;
5
+ entity: any;
6
+ rAngle: number;
7
+ heading: number;
8
+ offset: any;
9
+ isChange: any;
10
+ options: any;
11
+ modelId: string | null;
12
+ target: any;
13
+ targetType: 'entity' | 'tileset' | 'temp_entity' | null;
14
+ currentRange: number;
15
+ wheelHandler: any;
16
+ isPaused: boolean;
17
+ debounceTimer: any;
18
+ constructor(cesiumObj: any, positionOrModelId: any, rAngle?: number, opt?: any);
19
+ _getModelTarget(modelId: string): any;
20
+ _onWheel(event: any): void;
21
+ activate(): void;
22
+ postRenderEvent(): void;
23
+ deactivate(): void;
24
+ }
25
+ export default WindingPoint;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * 百度坐标系 (BD-09) 与 火星坐标系 (GCJ-02)的转换 / 即百度转谷歌、高德
3
+ * @param { Number } bd_lon
4
+ * @param { Number } bd_lat
5
+ */
6
+ export declare function bd09togcj02(bd_lon: number, bd_lat: number): number[];
7
+ /**
8
+ * 火星坐标系 (GCJ-02) 与百度坐标系 (BD-09) 的转换 / 即谷歌、高德 转 百度
9
+ * @param { Number } lng
10
+ * @param { Number } lat
11
+ */
12
+ export declare function gcj02tobd09(lng: number, lat: number): number[];
13
+ /**
14
+ * WGS84坐标系转火星坐标系GCj02 / 即WGS84 转谷歌、高德
15
+ * @param { Number } lng
16
+ * @param { Number } lat
17
+ */
18
+ export declare function wgs84togcj02(lng: number, lat: number): number[];
19
+ /**
20
+ * GCJ02(火星坐标系) 转换为 WGS84 / 即谷歌高德转WGS84
21
+ * 使用迭代法逼近真实值,往返误差从 0.2~1.5m 降到亚厘米级
22
+ * @param { Number } lng
23
+ * @param { Number } lat
24
+ */
25
+ export declare function gcj02towgs84(lng: number, lat: number): number[];
26
+ /**
27
+ * 百度坐标系转wgs84坐标系
28
+ * @param {*} lng
29
+ * @param {*} lat
30
+ */
31
+ export declare function bd09towgs84(lng: number, lat: number): number[];
32
+ /**
33
+ * wgs84坐标系转百度坐标系
34
+ * @param {*} lng
35
+ * @param {*} lat
36
+ */
37
+ export declare function wgs84tobd09(lng: number, lat: number): number[];
@@ -0,0 +1,11 @@
1
+ import Cesium from './Cesium';
2
+ import gyCesium from "./hooks/gyCesium";
3
+ import * as CesiumUnit from './hooks/CesiumUnit';
4
+ import LabelPanelManager from "./hooks/Geometry/LabelPanelManager";
5
+ declare let install: any;
6
+ declare const _default: {
7
+ install: any;
8
+ };
9
+ export default _default;
10
+ export { install, gyCesium, Cesium, CesiumUnit, LabelPanelManager };
11
+ export * from './components/index';