@openglobus/og 1.0.0-rc30 → 1.0.0-rc31
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/layer/BaseTileMaterialLayer.d.ts +11 -1
- package/lib/layer/CanvasTiles.d.ts +0 -10
- package/lib/layer/GeoTIFFLayer.d.ts +11 -3
- package/lib/layer/Vector.d.ts +2 -3
- package/lib/layer/XYZ.d.ts +0 -6
- package/lib/layer/geotiff/GeoTIFFReader.d.ts +3 -0
- package/lib/og.es.js +1 -1
- package/lib/og.es.js.map +1 -1
- package/package.json +1 -1
- package/lib/basedecoder-B4-YuM7w.mjs +0 -57
- package/lib/basedecoder-B4-YuM7w.mjs.map +0 -1
- package/lib/deflate-DYCJGL0P.mjs +0 -10
- package/lib/deflate-DYCJGL0P.mjs.map +0 -1
- package/lib/globals-1MwmSWn-.mjs +0 -579
- package/lib/globals-1MwmSWn-.mjs.map +0 -1
- package/lib/jpeg-Xvwz4hSD.mjs +0 -495
- package/lib/jpeg-Xvwz4hSD.mjs.map +0 -1
- package/lib/lerc-Ca1DtViY.mjs +0 -729
- package/lib/lerc-Ca1DtViY.mjs.map +0 -1
- package/lib/lzw-CCaYoYwZ.mjs +0 -69
- package/lib/lzw-CCaYoYwZ.mjs.map +0 -1
- package/lib/packbits-Ct8jLmcJ.mjs +0 -22
- package/lib/packbits-Ct8jLmcJ.mjs.map +0 -1
- package/lib/pako.esm-B35Pbobp.mjs +0 -1410
- package/lib/pako.esm-B35Pbobp.mjs.map +0 -1
- package/lib/raw-CUzqu_GQ.mjs +0 -9
- package/lib/raw-CUzqu_GQ.mjs.map +0 -1
- package/lib/webimage-BBmqvNtc.mjs +0 -24
- package/lib/webimage-BBmqvNtc.mjs.map +0 -1
- package/lib/zstd-CdGlEv5B.mjs +0 -47
- package/lib/zstd-CdGlEv5B.mjs.map +0 -1
|
@@ -1,21 +1,30 @@
|
|
|
1
|
+
import type { EventsHandler } from "../Events";
|
|
1
2
|
import { Layer } from "./Layer";
|
|
2
|
-
import type { ILayerParams } from "./Layer";
|
|
3
|
+
import type { ILayerParams, LayerEventsList } from "./Layer";
|
|
3
4
|
import { Material } from "./Material";
|
|
4
5
|
import type { NumberArray4 } from "../math/Vec4";
|
|
5
6
|
import type { Node } from "../quadTree/Node";
|
|
7
|
+
import type { Planet } from "../scene/Planet";
|
|
6
8
|
import { Segment } from "../segment/Segment";
|
|
7
9
|
export interface IBaseTileMaterialLayerParams extends ILayerParams {
|
|
8
10
|
minNativeZoom?: number;
|
|
9
11
|
maxNativeZoom?: number;
|
|
10
12
|
}
|
|
13
|
+
type BaseTileMaterialLayerEventsList = ["load", "loadend"];
|
|
14
|
+
export type BaseTileMaterialLayerEventsType = EventsHandler<BaseTileMaterialLayerEventsList> & EventsHandler<LayerEventsList>;
|
|
11
15
|
/**
|
|
12
16
|
* Shared tile material application for imagery/canvas tile layers.
|
|
13
17
|
* It can be applied to any type of tiled data that can be displayed on the planet in either of these two ways, such as BUildings, vector tiles etc.
|
|
14
18
|
*/
|
|
15
19
|
export declare abstract class BaseTileMaterialLayer extends Layer {
|
|
20
|
+
events: BaseTileMaterialLayerEventsType;
|
|
16
21
|
minNativeZoom: number;
|
|
17
22
|
maxNativeZoom: number;
|
|
18
23
|
constructor(name?: string | null, options?: IBaseTileMaterialLayerParams);
|
|
24
|
+
addTo(planet: Planet): void;
|
|
25
|
+
remove(): this;
|
|
26
|
+
protected _checkLoadend(): void;
|
|
27
|
+
protected _onLoadend: () => void;
|
|
19
28
|
applyMaterial(material: Material, forceLoading?: boolean): NumberArray4;
|
|
20
29
|
protected _applyMaterialDefaultCore(material: Material, forceLoading?: boolean): NumberArray4;
|
|
21
30
|
protected _applyMaterialFastCore(material: Material, forceLoading?: boolean): NumberArray4;
|
|
@@ -34,3 +43,4 @@ export declare abstract class BaseTileMaterialLayer extends Layer {
|
|
|
34
43
|
protected _defaultMaterialLoadForce(_mat: Material, material: Material, targetNode: Node, forceLoading: boolean): boolean;
|
|
35
44
|
clearMaterial(material: Material): void;
|
|
36
45
|
}
|
|
46
|
+
export {};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type { EventCallback, EventsHandler } from "../Events";
|
|
2
1
|
import { BaseTileMaterialLayer } from "./BaseTileMaterialLayer";
|
|
3
2
|
import type { IBaseTileMaterialLayerParams } from "./BaseTileMaterialLayer";
|
|
4
|
-
import type { LayerEventsList } from "./Layer";
|
|
5
3
|
import { Material } from "../layer/Material";
|
|
6
|
-
import { Planet } from "../scene/Planet";
|
|
7
4
|
type ApplyImageFunc = (material: HTMLCanvasElement | ImageBitmap | HTMLImageElement) => void;
|
|
8
5
|
type DrawTileCallback = (material: Material, applyImage: ApplyImageFunc) => void;
|
|
9
6
|
export interface ICanvasTilesParams extends IBaseTileMaterialLayerParams {
|
|
@@ -12,8 +9,6 @@ export interface ICanvasTilesParams extends IBaseTileMaterialLayerParams {
|
|
|
12
9
|
minNativeZoom?: number;
|
|
13
10
|
maxNativeZoom?: number;
|
|
14
11
|
}
|
|
15
|
-
type CanvasTilesEventsList = ["load", "loadend"];
|
|
16
|
-
type CanvasTilesEventsType = EventsHandler<CanvasTilesEventsList> & EventsHandler<LayerEventsList>;
|
|
17
12
|
/**
|
|
18
13
|
* Layer that renders each tile as a separate canvas object.
|
|
19
14
|
* @class
|
|
@@ -36,7 +31,6 @@ type CanvasTilesEventsType = EventsHandler<CanvasTilesEventsList> & EventsHandle
|
|
|
36
31
|
declare class CanvasTiles extends BaseTileMaterialLayer {
|
|
37
32
|
static MAX_REQUESTS: number;
|
|
38
33
|
static __requestsCounter: number;
|
|
39
|
-
events: CanvasTilesEventsType;
|
|
40
34
|
animated: boolean;
|
|
41
35
|
/**
|
|
42
36
|
* Current creating tiles counter.
|
|
@@ -56,11 +50,7 @@ declare class CanvasTiles extends BaseTileMaterialLayer {
|
|
|
56
50
|
* @public
|
|
57
51
|
*/
|
|
58
52
|
drawTile: DrawTileCallback;
|
|
59
|
-
protected _onLoadend_: EventCallback | null;
|
|
60
53
|
constructor(name: string | null, options: ICanvasTilesParams);
|
|
61
|
-
addTo(planet: Planet): void;
|
|
62
|
-
remove(): this;
|
|
63
|
-
_onLoadend(): void;
|
|
64
54
|
get instanceName(): string;
|
|
65
55
|
get isIdle(): boolean;
|
|
66
56
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { EventsHandler } from "../Events";
|
|
2
2
|
import { Material } from "./Material";
|
|
3
3
|
import { BaseTileMaterialLayer } from "./BaseTileMaterialLayer";
|
|
4
|
-
import type {
|
|
4
|
+
import type { BaseTileMaterialLayerEventsType } from "./BaseTileMaterialLayer";
|
|
5
|
+
import type { Planet } from "../scene/Planet";
|
|
5
6
|
import type { Segment } from "../segment/Segment";
|
|
6
7
|
import { type IGeoTIFFLayerParams, type IGeoTIFFMetadata, type IGeoTIFFReader, type IGeoTIFFRenderOptions, type IGeoTIFFSourceItem, type DecodedTileData } from "./geotiff";
|
|
7
8
|
interface ICachedTile {
|
|
@@ -12,8 +13,8 @@ interface IPendingTile {
|
|
|
12
13
|
material: Material;
|
|
13
14
|
forceLoading: boolean;
|
|
14
15
|
}
|
|
15
|
-
type GeoTIFFEventsList = ["
|
|
16
|
-
type GeoTIFFEventsType = EventsHandler<GeoTIFFEventsList> &
|
|
16
|
+
type GeoTIFFEventsList = ["ready", "error"];
|
|
17
|
+
type GeoTIFFEventsType = EventsHandler<GeoTIFFEventsList> & BaseTileMaterialLayerEventsType;
|
|
17
18
|
/**
|
|
18
19
|
* GeoTIFFLayer renders Cloud Optimized GeoTIFF (COG) and standard GeoTIFF rasters
|
|
19
20
|
* onto the OpenGlobus 3D globe using progressive overview pyramid tiles.
|
|
@@ -33,11 +34,18 @@ export declare class GeoTIFFLayer extends BaseTileMaterialLayer {
|
|
|
33
34
|
protected _renderOptionsVersion: number;
|
|
34
35
|
protected _debounceUpdateTimer: any;
|
|
35
36
|
protected _pendingsQueue: IPendingTile[];
|
|
37
|
+
protected _sourceOptions: IGeoTIFFLayerParams;
|
|
38
|
+
protected _readerDestroyed: boolean;
|
|
36
39
|
static MAX_REQUESTS: number;
|
|
37
40
|
constructor(name: string | null, options?: IGeoTIFFLayerParams);
|
|
41
|
+
/**
|
|
42
|
+
* Opens the layer source. Also used to reopen it when the layer returns to the planet.
|
|
43
|
+
*/
|
|
44
|
+
protected _initReader(): Promise<IGeoTIFFMetadata>;
|
|
38
45
|
static fromUrl(name: string, url: string, options?: IGeoTIFFLayerParams): Promise<GeoTIFFLayer>;
|
|
39
46
|
static fromBlob(name: string, blob: Blob | File, options?: IGeoTIFFLayerParams): Promise<GeoTIFFLayer>;
|
|
40
47
|
static fromSources(name: string, sources: IGeoTIFFSourceItem[], options?: IGeoTIFFLayerParams): Promise<GeoTIFFLayer>;
|
|
48
|
+
addTo(planet: Planet): void;
|
|
41
49
|
get instanceName(): string;
|
|
42
50
|
get isIdle(): boolean;
|
|
43
51
|
get reader(): IGeoTIFFReader;
|
package/lib/layer/Vector.d.ts
CHANGED
|
@@ -5,8 +5,7 @@ import { EntityCollectionsTreeStrategy } from "../quadTree/EntityCollectionsTree
|
|
|
5
5
|
import type { EventsHandler } from "../Events";
|
|
6
6
|
import { GeometryHandler } from "../entity/geometry/GeometryHandler";
|
|
7
7
|
import { BaseTileMaterialLayer } from "./BaseTileMaterialLayer";
|
|
8
|
-
import type { IBaseTileMaterialLayerParams } from "./BaseTileMaterialLayer";
|
|
9
|
-
import type { LayerEventsList } from "./Layer";
|
|
8
|
+
import type { BaseTileMaterialLayerEventsType, IBaseTileMaterialLayerParams } from "./BaseTileMaterialLayer";
|
|
10
9
|
import type { NumberArray3 } from "../math/Vec3";
|
|
11
10
|
import { Planet } from "../scene/Planet";
|
|
12
11
|
import { Material } from "./Material";
|
|
@@ -35,7 +34,7 @@ type VectorEventsList = [
|
|
|
35
34
|
"entityadd",
|
|
36
35
|
"entityremove"
|
|
37
36
|
];
|
|
38
|
-
export type VectorEventsType = EventsHandler<VectorEventsList> &
|
|
37
|
+
export type VectorEventsType = EventsHandler<VectorEventsList> & BaseTileMaterialLayerEventsType;
|
|
39
38
|
/**
|
|
40
39
|
* Vector layer is an alternative entity storage. Used for geospatial data rendering like
|
|
41
40
|
* points, lines, polygons, geometry objects, etc.
|
package/lib/layer/XYZ.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { BaseTileMaterialLayer } from "./BaseTileMaterialLayer";
|
|
2
2
|
import type { IBaseTileMaterialLayerParams } from "./BaseTileMaterialLayer";
|
|
3
|
-
import type { LayerEventsList } from "./Layer";
|
|
4
3
|
import { Segment } from "../segment/Segment";
|
|
5
|
-
import type { EventsHandler } from "../Events";
|
|
6
4
|
import { Material } from "./Material";
|
|
7
5
|
import type { FetchCache } from "../utils/Loader";
|
|
8
6
|
export interface IXYZParams extends IBaseTileMaterialLayerParams {
|
|
@@ -18,8 +16,6 @@ export interface IXYZParams extends IBaseTileMaterialLayerParams {
|
|
|
18
16
|
*/
|
|
19
17
|
cache?: FetchCache;
|
|
20
18
|
}
|
|
21
|
-
type XYZEventsList = ["load", "loadend"];
|
|
22
|
-
type XYZEventsType = EventsHandler<XYZEventsList> & EventsHandler<LayerEventsList>;
|
|
23
19
|
/**
|
|
24
20
|
* Represents an imagery tiles source provider.
|
|
25
21
|
* @class
|
|
@@ -52,7 +48,6 @@ type XYZEventsType = EventsHandler<XYZEventsList> & EventsHandler<LayerEventsLis
|
|
|
52
48
|
* });
|
|
53
49
|
*/
|
|
54
50
|
export declare class XYZ extends BaseTileMaterialLayer {
|
|
55
|
-
events: XYZEventsType;
|
|
56
51
|
/**
|
|
57
52
|
* Tile url source template.
|
|
58
53
|
* @public
|
|
@@ -137,4 +132,3 @@ export declare class XYZ extends BaseTileMaterialLayer {
|
|
|
137
132
|
*/
|
|
138
133
|
protected _correctFullExtent(): void;
|
|
139
134
|
}
|
|
140
|
-
export {};
|
|
@@ -7,6 +7,8 @@ export declare class GeoTIFFReader implements IGeoTIFFReader {
|
|
|
7
7
|
options: IGeoTIFFReaderParams;
|
|
8
8
|
source: GeoTIFF | null;
|
|
9
9
|
images: GeoTIFFImage[];
|
|
10
|
+
/** Internal transparency mask of every entry of images, null when the file has none */
|
|
11
|
+
masks: (GeoTIFFImage | null)[];
|
|
10
12
|
workerPool: Pool | null;
|
|
11
13
|
metadata: IGeoTIFFMetadata | null;
|
|
12
14
|
extentWgs84: Extent;
|
|
@@ -18,6 +20,7 @@ export declare class GeoTIFFReader implements IGeoTIFFReader {
|
|
|
18
20
|
isReady: boolean;
|
|
19
21
|
private _poolHandle;
|
|
20
22
|
private _projHelper;
|
|
23
|
+
private _convertPhotometric;
|
|
21
24
|
private _activeReads;
|
|
22
25
|
private _destroyed;
|
|
23
26
|
constructor(options?: IGeoTIFFReaderParams);
|