@openglobus/og 0.26.5 → 0.27.0

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/lib/Globe.d.ts CHANGED
@@ -11,6 +11,7 @@ import type { HTMLDivElementExt } from "./renderer/Renderer";
11
11
  import { RenderNode } from "./scene/RenderNode";
12
12
  import { Extent } from "./Extent";
13
13
  import type { IAtmosphereParams } from "./control/atmosphere/Atmosphere";
14
+ import { QuadTreeStrategy } from "./quadTree";
14
15
  export interface IGlobeParams {
15
16
  attributionContainer?: HTMLElement;
16
17
  target?: string | HTMLElement;
@@ -28,7 +29,7 @@ export interface IGlobeParams {
28
29
  maxEqualZoomAltitude?: number;
29
30
  minEqualZoomAltitude?: number;
30
31
  minEqualZoomCameraSlope?: number;
31
- quadTreeStrategyPrototype?: any;
32
+ quadTreeStrategyPrototype?: typeof QuadTreeStrategy;
32
33
  maxLoadingRequests?: number;
33
34
  atmosphereEnabled?: boolean;
34
35
  transitionOpacityEnabled?: boolean;
@@ -11,6 +11,7 @@ export interface IPlanetCameraParams extends ICameraParams {
11
11
  }
12
12
  export interface IPlanetFlyCartesianParams extends IFlyCartesianParams {
13
13
  amplitude?: number;
14
+ preventLock?: boolean;
14
15
  }
15
16
  export interface IPlanetFlyDistanceParams extends IPlanetFlyCartesianParams {
16
17
  distance?: number;
@@ -6,13 +6,16 @@ import { Control, IControlParams } from "../Control";
6
6
  import { Vec3 } from "../../math/Vec3";
7
7
  import { LonLat } from "../../LonLat";
8
8
  import { GeoImage } from "../../layer/GeoImage";
9
- export interface ICameraDepthhandlerParams extends IControlParams {
9
+ import { QuadTreeStrategy } from "../../quadTree";
10
+ export interface ICameraDepthHandlerParams extends IControlParams {
10
11
  }
11
12
  export declare class CameraDepthHandler extends Control {
12
- protected _depthHandler: CameraFrameHandler | null;
13
+ protected _frameHandler: CameraFrameHandler | null;
13
14
  protected _frameComposer: CameraFrameComposer;
14
15
  readonly cameraGeoImage: GeoImage;
15
- constructor(params: ICameraDepthhandlerParams);
16
+ protected _quadTreeStrategy: QuadTreeStrategy | null;
17
+ protected _skipPreRender: boolean;
18
+ constructor(params: ICameraDepthHandlerParams);
16
19
  protected _createCamera(): Camera;
17
20
  get camera(): Camera | undefined;
18
21
  oninit(): void;
@@ -109,6 +109,7 @@ export interface IEntityParams {
109
109
  */
110
110
  declare class Entity {
111
111
  static __counter__: number;
112
+ protected _name: string;
112
113
  /**
113
114
  * Uniq identifier.
114
115
  * @public
@@ -266,6 +267,8 @@ declare class Entity {
266
267
  _absoluteQRot: Quat;
267
268
  protected _useDirectQuaternion: boolean;
268
269
  constructor(options?: IEntityParams);
270
+ get name(): string;
271
+ set name(name: string);
269
272
  get isEmpty(): boolean;
270
273
  /**
271
274
  * Returns root entity object.
@@ -322,10 +325,9 @@ declare class Entity {
322
325
  * Adds current entity into the specified entity collection.
323
326
  * @public
324
327
  * @param {EntityCollection | Vector} collection - Specified entity collection or vector layer.
325
- * @param {boolean} [rightNow=false] - Entity insertion option for vector layer.
326
328
  * @returns {Entity} - This object.
327
329
  */
328
- addTo(collection: EntityCollection | Vector, rightNow?: boolean): Entity;
330
+ addTo(collection: EntityCollection | Vector): Entity;
329
331
  /**
330
332
  * Removes current entity from its collection or layer.
331
333
  * @public
@@ -619,6 +621,13 @@ declare class Entity {
619
621
  */
620
622
  get layer(): Vector | null;
621
623
  get rendererEvents(): VectorEventsType | EntityCollectionEvents | null;
624
+ /**
625
+ * Append child entity.
626
+ * @public
627
+ * @param {Entity[]} entities - Child entities.
628
+ * @param {boolean} [forceRelativePosition] - Force relative position property.
629
+ */
630
+ appendChildren(entities: Entity[], forceRelativePosition?: boolean): void;
622
631
  /**
623
632
  * Append child entity.
624
633
  * @public
@@ -376,7 +376,7 @@ declare class Layer {
376
376
  protected _correctFullExtent(): void;
377
377
  get opacity(): number;
378
378
  get screenOpacity(): number;
379
- _refreshFadingOpacity(): boolean;
379
+ _refreshFadingOpacity(minCurrZoom: number, maxCurrZoom: number): boolean;
380
380
  createMaterial(segment: Segment): Material;
381
381
  redraw(): void;
382
382
  abortMaterialLoading(material: Material): void;
@@ -128,7 +128,6 @@ declare class Vector extends Layer {
128
128
  * Adds layer to the planet.
129
129
  * @public
130
130
  * @param {Planet} planet - Planet scene object.
131
- * @returns {Vector} -
132
131
  */
133
132
  addTo(planet: Planet): void;
134
133
  remove(): this;
@@ -142,28 +141,25 @@ declare class Vector extends Layer {
142
141
  * Adds entity to the layer.
143
142
  * @public
144
143
  * @param {Entity} entity - Entity.
145
- * @param {boolean} [rightNow=false] - Entity insertion option. False is default.
146
144
  * @returns {Vector} - Returns this layer.
147
145
  */
148
- add(entity: Entity, rightNow?: boolean): this;
146
+ add(entity: Entity): this;
149
147
  /**
150
148
  * Adds entity to the layer in the index position.
151
149
  * @public
152
150
  * @param {Entity} entity - Entity.
153
151
  * @param {Number} index - Index position.
154
- * @param {boolean} [rightNow] - Entity insertion option. False is default.
155
152
  * @returns {Vector} - Returns this layer.
156
153
  */
157
- insert(entity: Entity, index: number, rightNow?: boolean): this;
158
- protected _proceedEntity(entity: Entity, rightNow?: boolean): void;
154
+ insert(entity: Entity, index: number): this;
155
+ protected _proceedEntity(entity: Entity): void;
159
156
  /**
160
157
  * Adds entity array to the layer.
161
158
  * @public
162
159
  * @param {Array.<Entity>} entities - Entities array.
163
- * @param {boolean} [rightNow=false] - Entity insertion option. False is default.
164
160
  * @returns {Vector} - Returns this layer.
165
161
  */
166
- addEntities(entities: Entity[], rightNow?: boolean): this;
162
+ addEntities(entities: Entity[]): Vector;
167
163
  /**
168
164
  * Remove entity from layer.
169
165
  * TODO: memory leaks.
@@ -233,7 +229,7 @@ declare class Vector extends Layer {
233
229
  * @param {Material} material - Segment material.
234
230
  */
235
231
  abortMaterialLoading(material: Material): void;
236
- applyMaterial(material: Material, isForced?: boolean): NumberArray4;
232
+ applyMaterial(material: Material): NumberArray4;
237
233
  clearMaterial(material: Material): void;
238
234
  update(): void;
239
235
  }