@openglobus/og 1.0.0-rc1 → 1.0.0-rc2

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 (34) hide show
  1. package/README.md +1 -1
  2. package/lib/control/drawing/PolygonDrawingScene.d.ts +1 -1
  3. package/lib/control/elevationProfile/ElevationProfileScene.d.ts +1 -1
  4. package/lib/control/entityEditor/EntityEditorScene.d.ts +1 -1
  5. package/lib/control/heightRuler/HeightRulerScene.d.ts +2 -1
  6. package/lib/control/ruler/RulerScene.d.ts +1 -1
  7. package/lib/control/selection/SelectionScene.d.ts +1 -1
  8. package/lib/entity/billboard/Billboard.d.ts +7 -3
  9. package/lib/og.es.js +1 -1
  10. package/lib/og.es.js.map +1 -1
  11. package/lib/res/fonts/Ephesis-Regular.json +1 -0
  12. package/lib/res/fonts/Ephesis-Regular.png +0 -0
  13. package/lib/res/fonts/Karla-Bold.json +1 -0
  14. package/lib/res/fonts/Karla-Bold.png +0 -0
  15. package/lib/res/fonts/Karla-Italic.json +1 -0
  16. package/lib/res/fonts/Karla-Italic.png +0 -0
  17. package/lib/res/fonts/Karla-Light.json +1 -0
  18. package/lib/res/fonts/Karla-Light.png +0 -0
  19. package/lib/res/fonts/Karla-Medium.json +1 -0
  20. package/lib/res/fonts/Karla-Medium.png +0 -0
  21. package/lib/res/fonts/Roboto-Regular.json +1 -37147
  22. package/lib/res/fonts/Roboto-Regular.png +0 -0
  23. package/lib/res/fonts/arial.json +1 -4321
  24. package/lib/res/fonts/arial.png +0 -0
  25. package/lib/scene/Axes.d.ts +1 -0
  26. package/lib/scene/Scene.d.ts +1 -2
  27. package/lib/ui/Input.d.ts +5 -0
  28. package/lib/ui/Slider.d.ts +2 -0
  29. package/lib/utils/FontAtlas.d.ts +47 -5
  30. package/package.json +3 -3
  31. package/lib/res/fonts/Roboto-Regular.ttf.cfg +0 -1340
  32. package/lib/res/fonts/Roboto-Regular.ttf.png +0 -0
  33. package/lib/res/fonts/arial.ttf.cfg +0 -1570
  34. 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
- [openglobus](https://www.openglobus.org/) is a typescript/javascript library designed to display interactive 3D maps and other geospatial data at a
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
@@ -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
- frame(): void;
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
- frame(): void;
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
- frame(): void;
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;
@@ -30,6 +30,7 @@ declare class HeightRulerScene extends RulerScene {
30
30
  clear(): void;
31
31
  _createCorners(): void;
32
32
  init(): void;
33
- frame(): void;
33
+ onremove(): void;
34
+ protected _onForwardpassHeight: () => void;
34
35
  }
35
36
  export { HeightRulerScene };
@@ -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
- frame(): void;
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
- frame(): void;
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