@loaders.gl/loader-utils
Advanced tools
Comparing version 4.2.1 to 4.3.0-alpha.1
@@ -44,10 +44,12 @@ export type { DataType, SyncDataType, BatchableDataType, TypedArray, BigTypedArray, TypedArrayConstructor, BigTypedArrayConstructor, NumberArray, NumericArray, FetchLike } from "./types.js"; | ||
export { DataSource } from "./lib/sources/data-source.js"; | ||
export { ImageSource } from "./lib/sources/image-source.js"; | ||
export type { ImageType } from "./lib/sources/utils/image-type.js"; | ||
export type { ImageSourceProps, ImageSourceMetadata } from "./lib/sources/image-source.js"; | ||
export type { GetImageParameters } from "./lib/sources/image-source.js"; | ||
export { ImageSource } from "./lib/sources/image-source.js"; | ||
export type { TileSourceProps, TileSourceMetadata, GetTileParameters, TileLoadParameters } from "./lib/sources/tile-source.js"; | ||
export type { TileSource } from "./lib/sources/tile-source.js"; | ||
export type { TileSource, TileSourceProps } from "./lib/sources/tile-source.js"; | ||
export type { TileSourceMetadata, GetTileParameters } from "./lib/sources/tile-source.js"; | ||
export type { TileLoadParameters } from "./lib/sources/tile-source.js"; | ||
export type { ImageTileSource } from "./lib/sources/image-tile-source.js"; | ||
export type { VectorTileSource } from "./lib/sources/vector-tile-source.js"; | ||
export type { VectorTileSource, VectorTileSourceProps } from "./lib/sources/vector-tile-source.js"; | ||
export type { VectorTile } from "./lib/sources/vector-tile-source.js"; | ||
//# sourceMappingURL=index.d.ts.map |
import { Log } from '@probe.gl/log'; | ||
export declare const VERSION: any; | ||
/** Global log instance */ | ||
export declare const log: Log; | ||
//# sourceMappingURL=log.d.ts.map |
@@ -5,3 +5,8 @@ // loaders.gl | ||
import { Log } from '@probe.gl/log'; | ||
// Version constant cannot be imported, it needs to correspond to the build version of **this** module. | ||
// __VERSION__ is injected by babel-plugin-version-inline | ||
// @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
export const VERSION = typeof "4.2.0" !== 'undefined' ? "4.2.0" : 'latest'; | ||
const version = VERSION[0] >= '0' && VERSION[0] <= '9' ? `v${VERSION}` : ''; | ||
/** Global log instance */ | ||
export const log = new Log({ id: 'loaders.gl' }); | ||
export const log = new Log({ id: `loaders.gl ${version}` }); |
@@ -32,3 +32,3 @@ // loaders.gl | ||
} | ||
const { x, y, zoom } = parameters; | ||
const { x, y, z: zoom } = parameters; | ||
return [ | ||
@@ -35,0 +35,0 @@ /** Bounding box of tile in this tileset `[[w, s], ...]` */ |
@@ -47,8 +47,4 @@ /** | ||
export type GetTileParameters = { | ||
/** Layers to render */ | ||
layers: string | string[]; | ||
/** Styling */ | ||
styles?: unknown; | ||
/** bounding box of the requested map image */ | ||
zoom: number; | ||
z: number; | ||
/** tile x coordinate */ | ||
@@ -60,2 +56,6 @@ x: number; | ||
crs?: string; | ||
/** Layers to render */ | ||
layers?: string | string[]; | ||
/** Styling */ | ||
styles?: unknown; | ||
/** requested format for the return image */ | ||
@@ -103,3 +103,3 @@ format?: 'image/png'; | ||
/** Flat parameters */ | ||
getTile(parameters: GetTileParameters): Promise<unknown>; | ||
getTile(parameters: GetTileParameters): Promise<unknown | null>; | ||
/** deck.gl style parameters */ | ||
@@ -106,0 +106,0 @@ getTileData?(parameters: TileLoadParameters): Promise<unknown | null>; |
@@ -1,10 +0,12 @@ | ||
import { TileSource, TileSourceMetadata } from "./tile-source.js"; | ||
import { GetTileParameters } from "./tile-source.js"; | ||
import { TileSource, TileSourceProps, TileSourceMetadata } from "./tile-source.js"; | ||
import type { GetTileParameters } from "./tile-source.js"; | ||
export type VectorTile = unknown; | ||
export type VectorTileSourceProps = TileSourceProps; | ||
/** | ||
* MapTileSource - data sources that allow data to be queried by (geospatial) tile | ||
* VectorTileSource - data sources that allow data to be queried by (geospatial) tile | ||
* @note If geospatial, bounding box is expected to be in web mercator coordinates | ||
*/ | ||
export interface VectorTileSource<MetadataT extends TileSourceMetadata = TileSourceMetadata> extends TileSource<MetadataT> { | ||
getVectorTile(parameters: GetTileParameters): Promise<unknown | null>; | ||
getVectorTile(parameters: GetTileParameters): Promise<VectorTile | null>; | ||
} | ||
//# sourceMappingURL=vector-tile-source.d.ts.map |
{ | ||
"name": "@loaders.gl/loader-utils", | ||
"version": "4.2.1", | ||
"version": "4.3.0-alpha.1", | ||
"description": "Framework-independent loaders for 3D graphics formats", | ||
@@ -48,4 +48,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/schema": "4.2.1", | ||
"@loaders.gl/worker-utils": "4.2.1", | ||
"@loaders.gl/schema": "4.3.0-alpha.1", | ||
"@loaders.gl/worker-utils": "4.3.0-alpha.1", | ||
"@probe.gl/stats": "^4.0.2" | ||
@@ -56,3 +56,3 @@ }, | ||
}, | ||
"gitHead": "b2ea799ff9f233ab8af0a6c3696e28ddf6e3c5a3" | ||
"gitHead": "568446ea69eb590f0c42d965459b636216cda74e" | ||
} |
@@ -147,17 +147,14 @@ // loaders.gl | ||
export {ImageSource} from './lib/sources/image-source'; | ||
export type {ImageType} from './lib/sources/utils/image-type'; | ||
export type {ImageSourceProps, ImageSourceMetadata} from './lib/sources/image-source'; | ||
export type {GetImageParameters} from './lib/sources/image-source'; | ||
export {ImageSource} from './lib/sources/image-source'; | ||
export type { | ||
TileSourceProps, | ||
TileSourceMetadata, | ||
GetTileParameters, | ||
TileLoadParameters | ||
} from './lib/sources/tile-source'; | ||
export type {TileSource} from './lib/sources/tile-source'; | ||
export type {TileSource, TileSourceProps} from './lib/sources/tile-source'; | ||
export type {TileSourceMetadata, GetTileParameters} from './lib/sources/tile-source'; | ||
export type {TileLoadParameters} from './lib/sources/tile-source'; | ||
export type {ImageTileSource} from './lib/sources/image-tile-source'; | ||
export type {VectorTileSource} from './lib/sources/vector-tile-source'; | ||
export type {VectorTileSource, VectorTileSourceProps} from './lib/sources/vector-tile-source'; | ||
export type {VectorTile} from './lib/sources/vector-tile-source'; |
@@ -7,3 +7,10 @@ // loaders.gl | ||
// Version constant cannot be imported, it needs to correspond to the build version of **this** module. | ||
// __VERSION__ is injected by babel-plugin-version-inline | ||
// @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
export const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest'; | ||
const version = VERSION[0] >= '0' && VERSION[0] <= '9' ? `v${VERSION}` : ''; | ||
/** Global log instance */ | ||
export const log: Log = new Log({id: 'loaders.gl'}); | ||
export const log: Log = new Log({id: `loaders.gl ${version}`}); |
@@ -20,2 +20,3 @@ // loaders.gl | ||
} | ||
/** Flat parameters */ | ||
@@ -41,3 +42,3 @@ getTile(parameters: GetTileParameters): Promise<unknown> { | ||
} | ||
const {x, y, zoom} = parameters; | ||
const {x, y, z: zoom} = parameters; | ||
@@ -44,0 +45,0 @@ return [ |
@@ -5,2 +5,5 @@ // loaders.gl | ||
// import type {DataSourceProps} from './data-source'; | ||
// import {DataSource} from './data-source'; | ||
/** | ||
@@ -57,8 +60,4 @@ * Normalized capabilities of an Image service | ||
export type GetTileParameters = { | ||
/** Layers to render */ | ||
layers: string | string[]; | ||
/** Styling */ | ||
styles?: unknown; | ||
/** bounding box of the requested map image */ | ||
zoom: number; | ||
z: number; | ||
/** tile x coordinate */ | ||
@@ -70,2 +69,6 @@ x: number; | ||
crs?: string; | ||
/** Layers to render */ | ||
layers?: string | string[]; | ||
/** Styling */ | ||
styles?: unknown; | ||
/** requested format for the return image */ | ||
@@ -93,3 +96,3 @@ format?: 'image/png'; | ||
*/ | ||
export type TileSourceProps = {}; | ||
export type TileSourceProps = {}; // DataSourceProps; | ||
@@ -102,7 +105,8 @@ /** | ||
export interface TileSource<MetadataT extends TileSourceMetadata> { | ||
// extends DataSource { | ||
getMetadata(): Promise<MetadataT>; | ||
/** Flat parameters */ | ||
getTile(parameters: GetTileParameters): Promise<unknown>; | ||
getTile(parameters: GetTileParameters): Promise<unknown | null>; | ||
/** deck.gl style parameters */ | ||
getTileData?(parameters: TileLoadParameters): Promise<unknown | null>; | ||
} |
@@ -5,7 +5,11 @@ // loaders.gl | ||
import {TileSource, TileSourceMetadata} from './tile-source'; | ||
import {GetTileParameters} from './tile-source'; | ||
import {TileSource, TileSourceProps, TileSourceMetadata} from './tile-source'; | ||
import type {GetTileParameters} from './tile-source'; | ||
export type VectorTile = unknown; | ||
export type VectorTileSourceProps = TileSourceProps; | ||
/** | ||
* MapTileSource - data sources that allow data to be queried by (geospatial) tile | ||
* VectorTileSource - data sources that allow data to be queried by (geospatial) tile | ||
* @note If geospatial, bounding box is expected to be in web mercator coordinates | ||
@@ -15,3 +19,3 @@ */ | ||
extends TileSource<MetadataT> { | ||
getVectorTile(parameters: GetTileParameters): Promise<unknown | null>; | ||
getVectorTile(parameters: GetTileParameters): Promise<VectorTile | null>; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
415222
7582
2
+ Added@loaders.gl/schema@4.3.0-alpha.1(transitive)
+ Added@loaders.gl/worker-utils@4.3.0-alpha.1(transitive)
- Removed@loaders.gl/schema@4.2.1(transitive)
- Removed@loaders.gl/worker-utils@4.2.1(transitive)