@openglobus/og 1.0.0-rc1 → 1.0.0-rc3
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/README.md +1 -1
- package/lib/camera/Camera.d.ts +1 -1
- package/lib/camera/PlanetCamera.d.ts +6 -0
- package/lib/control/drawing/PolygonDrawingScene.d.ts +1 -1
- package/lib/control/elevationProfile/ElevationProfileScene.d.ts +1 -1
- package/lib/control/entityEditor/EntityEditorScene.d.ts +1 -1
- package/lib/control/heightRuler/HeightRulerScene.d.ts +2 -1
- package/lib/control/ruler/RulerScene.d.ts +1 -1
- package/lib/control/selection/SelectionScene.d.ts +1 -1
- package/lib/entity/billboard/Billboard.d.ts +7 -3
- package/lib/og.es.js +1 -1
- package/lib/og.es.js.map +1 -1
- package/lib/renderer/Renderer.d.ts +1 -0
- package/lib/res/fonts/Ephesis-Regular.json +1 -0
- package/lib/res/fonts/Ephesis-Regular.png +0 -0
- package/lib/res/fonts/Karla-Bold.json +1 -0
- package/lib/res/fonts/Karla-Bold.png +0 -0
- package/lib/res/fonts/Karla-Italic.json +1 -0
- package/lib/res/fonts/Karla-Italic.png +0 -0
- package/lib/res/fonts/Karla-Light.json +1 -0
- package/lib/res/fonts/Karla-Light.png +0 -0
- package/lib/res/fonts/Karla-Medium.json +1 -0
- package/lib/res/fonts/Karla-Medium.png +0 -0
- package/lib/res/fonts/Roboto-Regular.json +1 -37147
- package/lib/res/fonts/Roboto-Regular.png +0 -0
- package/lib/res/fonts/arial.json +1 -4321
- package/lib/res/fonts/arial.png +0 -0
- package/lib/scene/Axes.d.ts +1 -0
- package/lib/scene/Scene.d.ts +1 -2
- package/lib/terrain/EmptyTerrain.d.ts +1 -1
- package/lib/ui/Input.d.ts +5 -0
- package/lib/ui/Slider.d.ts +2 -0
- package/lib/utils/FontAtlas.d.ts +52 -8
- package/package.json +3 -3
- package/lib/res/fonts/Roboto-Regular.ttf.cfg +0 -1340
- package/lib/res/fonts/Roboto-Regular.ttf.png +0 -0
- package/lib/res/fonts/arial.ttf.cfg +0 -1570
- package/lib/res/fonts/arial.ttf.png +0 -0
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# OpenGlobus
|
|
5
5
|
|
|
6
|
-
[
|
|
6
|
+
[OpenGlobus](https://www.openglobus.org/) is a typescript/javascript library designed to display interactive 3D maps and other geospatial data at a
|
|
7
7
|
scale from planet to bee.
|
|
8
8
|
|
|
9
9
|
It supports various high-resolution terrain providers, imagery layers, renders thousands of 3D objects, provides
|
package/lib/camera/Camera.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface IFlyBaseParams {
|
|
|
37
37
|
startCallback?: Function;
|
|
38
38
|
frameCallback?: Function;
|
|
39
39
|
}
|
|
40
|
-
export declare const DEFAULT_FLIGHT_DURATION =
|
|
40
|
+
export declare const DEFAULT_FLIGHT_DURATION = 1000;
|
|
41
41
|
export declare const DEFAULT_EASING: EasingFunction;
|
|
42
42
|
type CameraFrame = {
|
|
43
43
|
eye: Vec3;
|
|
@@ -91,6 +91,7 @@ declare class PlanetCamera extends Camera {
|
|
|
91
91
|
protected _keyLock: Key;
|
|
92
92
|
protected _checkTerrainCollision: boolean;
|
|
93
93
|
eyeNorm: Vec3;
|
|
94
|
+
protected _extentFitRequestId: number;
|
|
94
95
|
constructor(planet: Planet, options?: IPlanetCameraParams);
|
|
95
96
|
/**
|
|
96
97
|
* Enables or disables terrain collision checks.
|
|
@@ -148,6 +149,11 @@ declare class PlanetCamera extends Camera {
|
|
|
148
149
|
* @returns {Vec3}
|
|
149
150
|
*/
|
|
150
151
|
getExtentPosition(extent: Extent, height?: number | null): Vec3;
|
|
152
|
+
protected _getExtentCenterHeightInfo(extent: Extent): {
|
|
153
|
+
height: number;
|
|
154
|
+
segmentZoom: number;
|
|
155
|
+
};
|
|
156
|
+
protected _isSegmentHeightAccurate(extentHeight: number, segmentZoom: number): boolean;
|
|
151
157
|
/**
|
|
152
158
|
* View current extent.
|
|
153
159
|
* @public
|
|
@@ -72,7 +72,7 @@ declare class PolygonDrawingScene extends Scene {
|
|
|
72
72
|
protected _drawCorners(): void;
|
|
73
73
|
protected _drawCenters(): void;
|
|
74
74
|
protected _drawGhostCorner(): void;
|
|
75
|
-
|
|
75
|
+
protected _onForwardpass: () => void;
|
|
76
76
|
protected _checkTerrainCollision(entity: Entity): void;
|
|
77
77
|
protected _moveCenterPoint(): void;
|
|
78
78
|
protected _addNew(cart: Vec3): void;
|
|
@@ -70,7 +70,7 @@ declare class ElevationProfileScene extends Scene {
|
|
|
70
70
|
setPointerVisibility(visibility: boolean): void;
|
|
71
71
|
setVisibility(visibility: boolean): void;
|
|
72
72
|
clear(): void;
|
|
73
|
-
|
|
73
|
+
protected _onForwardpass: () => void;
|
|
74
74
|
get ellipsoid(): Ellipsoid | null;
|
|
75
75
|
}
|
|
76
76
|
type ElevationProfileSceneEventsList = ["change", "addpoint"];
|
|
@@ -105,7 +105,7 @@ declare class EntityEditorScene extends Scene {
|
|
|
105
105
|
unselect(): void;
|
|
106
106
|
protected _onLclick: (e: IMouseState) => void;
|
|
107
107
|
clear(): void;
|
|
108
|
-
|
|
108
|
+
protected _onForwardpass: () => void;
|
|
109
109
|
protected _moveX: (e: IMouseState) => void;
|
|
110
110
|
protected _moveY: (e: IMouseState) => void;
|
|
111
111
|
protected _moveZ: (e: IMouseState) => void;
|
|
@@ -82,7 +82,7 @@ declare class RulerScene extends Scene {
|
|
|
82
82
|
protected _onMouseMove: (e: IMouseState) => void;
|
|
83
83
|
clear(): void;
|
|
84
84
|
isCornersPositionChanged(): boolean;
|
|
85
|
-
|
|
85
|
+
protected _onForwardpass(): void;
|
|
86
86
|
get ellipsoid(): Ellipsoid | null;
|
|
87
87
|
}
|
|
88
88
|
export { RulerScene };
|
|
@@ -38,7 +38,7 @@ declare class SelectionScene extends Scene {
|
|
|
38
38
|
_drawLine(startLonLat: any, endLonLat: any, startPos?: any): void;
|
|
39
39
|
_onMouseMove(e: any): void;
|
|
40
40
|
clear(): void;
|
|
41
|
-
|
|
41
|
+
protected _onForwardpass: () => void;
|
|
42
42
|
get ellipsoid(): any;
|
|
43
43
|
}
|
|
44
44
|
export { SelectionScene };
|
|
@@ -5,9 +5,10 @@ import type { HTMLImageElementExt } from "../../utils/ImagesCacheManager";
|
|
|
5
5
|
export interface IBillboardParams extends IBaseBillboardParams {
|
|
6
6
|
src?: string;
|
|
7
7
|
image?: HTMLImageElement;
|
|
8
|
-
size?: [number, number];
|
|
9
|
-
width?: number;
|
|
10
|
-
height?: number;
|
|
8
|
+
size?: [number, number] | null;
|
|
9
|
+
width?: number | null;
|
|
10
|
+
height?: number | null;
|
|
11
|
+
scale?: number | null;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Represents basic quad billboard image.
|
|
@@ -56,6 +57,7 @@ declare class Billboard extends BaseBillboard {
|
|
|
56
57
|
*/
|
|
57
58
|
_height: number;
|
|
58
59
|
constructor(options?: IBillboardParams);
|
|
60
|
+
protected _applyImageSize(image: HTMLImageElementExt | HTMLImageElement | null): void;
|
|
59
61
|
/**
|
|
60
62
|
* Sets billboard image url source.
|
|
61
63
|
* @public
|
|
@@ -77,6 +79,8 @@ declare class Billboard extends BaseBillboard {
|
|
|
77
79
|
* @param {number} height - Billboard height.
|
|
78
80
|
*/
|
|
79
81
|
setSize(width: number, height: number): void;
|
|
82
|
+
getScale(): number;
|
|
83
|
+
setOffset(x: number, y: number): void;
|
|
80
84
|
/**
|
|
81
85
|
* Returns billboard screen size.
|
|
82
86
|
* @public
|