@antv/l7-utils
Advanced tools
Comparing version 2.20.5 to 2.20.6
@@ -1,2 +0,2 @@ | ||
import { BBox, Units } from '@turf/helpers'; | ||
import type { BBox, Units } from '@turf/helpers'; | ||
export type IBounds = [[number, number], [number, number]]; | ||
@@ -3,0 +3,0 @@ interface ILngLat { |
@@ -19,1 +19,2 @@ export * from './ajax'; | ||
export * from './interface/map'; | ||
export declare function defaultValue(v1: any, v2: any): any; |
@@ -22,2 +22,8 @@ // @ts-ignore | ||
export * from "./workers/triangulation"; | ||
export * from "./interface/map"; | ||
export * from "./interface/map"; | ||
export function defaultValue(v1, v2) { | ||
if (v1 === undefined || v1 === null) { | ||
return v2; | ||
} | ||
return v1; | ||
} |
import { MapType } from '../interface/map'; | ||
import { Point } from './interface'; | ||
import type { Point } from './interface'; | ||
export declare function arcLineAtOffset(source: Point, target: Point, offset: number, thetaOffset: number | undefined, mapVersion: MapType | undefined, segmentNumber: number | undefined, autoFit: boolean): number[]; |
@@ -1,4 +0,4 @@ | ||
import { MapType } from '../interface/map'; | ||
import { Point } from './interface'; | ||
import type { MapType } from '../interface/map'; | ||
import type { Point } from './interface'; | ||
export declare function greatCircleLineAtOffset(source: Point, target: Point, offset: number, thetaOffset: number | undefined, mapVersion: MapType | undefined, segmentNumber: number | undefined, autoFit: boolean): number[]; | ||
export declare function interpolate(s: Point, t: Point, offset: number, mapVersion: string | undefined): number[]; |
@@ -1,3 +0,3 @@ | ||
import { ILineAtOffset, Source } from './interface'; | ||
import type { ILineAtOffset, Source } from './interface'; | ||
export declare function lineAtOffset(source: Source, option: ILineAtOffset): any; | ||
export declare function lineAtOffsetAsyc(source: Source, option: ILineAtOffset): Promise<unknown>; |
@@ -1,2 +0,2 @@ | ||
import { MapType } from '../interface/map'; | ||
import type { MapType } from '../interface/map'; | ||
export type Source = any; | ||
@@ -3,0 +3,0 @@ export type ILineShape = 'line' | 'arc' | 'arc3d' | 'greatcircle'; |
@@ -1,2 +0,2 @@ | ||
import { Point } from './interface'; | ||
import type { Point } from './interface'; | ||
export declare function pathLineAtOffset(coords: Point[], offset: number): { | ||
@@ -3,0 +3,0 @@ lng: number | undefined; |
@@ -1,2 +0,2 @@ | ||
import { TileBounds } from './types'; | ||
import type { TileBounds } from './types'; | ||
import { updateTileStateOverlap, updateTileStateRealtime, updateTileStateReplace } from './utils/strategies'; | ||
@@ -3,0 +3,0 @@ export declare const TILE_SIZE = 256; |
import { EventEmitter } from 'eventemitter3'; | ||
import { TileBounds, TileLoadDataOptions, TileOptions } from './types'; | ||
import type { TileBounds, TileLoadDataOptions, TileOptions } from './types'; | ||
/** | ||
@@ -4,0 +4,0 @@ * 单个瓦片 |
import EventEmitter from 'eventemitter3'; | ||
import { SourceTile } from './tile'; | ||
import { TileBounds, TilesetManagerOptions } from './types'; | ||
import type { TileBounds, TilesetManagerOptions } from './types'; | ||
export declare enum TileEventType { | ||
@@ -5,0 +5,0 @@ TilesLoadStart = "tiles-load-start", |
@@ -1,2 +0,2 @@ | ||
import { SourceTile } from './tile'; | ||
import type { SourceTile } from './tile'; | ||
export type TileBounds = [number, number, number, number]; | ||
@@ -3,0 +3,0 @@ export declare enum UpdateTileStrategy { |
@@ -1,2 +0,2 @@ | ||
import { TileBounds } from '../types'; | ||
import type { TileBounds } from '../types'; | ||
export declare function osmLonLat2TileXY(lon: number, lat: number, zoom: number): number[]; | ||
@@ -3,0 +3,0 @@ export declare function osmTileXY2LonLat(x: number, y: number, zoom: number): number[]; |
@@ -1,4 +0,4 @@ | ||
import { SourceTile } from '../tile'; | ||
import type { SourceTile } from '../tile'; | ||
export declare function updateTileStateRealtime(tiles: SourceTile[]): void; | ||
export declare function updateTileStateOverlap(tiles: SourceTile[]): void; | ||
export declare function updateTileStateReplace(tiles: SourceTile[]): void; |
@@ -1,2 +0,2 @@ | ||
import { IEncodeFeature } from './interface'; | ||
import type { IEncodeFeature } from './interface'; | ||
export declare function a_Color(feature: IEncodeFeature): number[]; | ||
@@ -3,0 +3,0 @@ export declare function a_Position(feature: IEncodeFeature, featureIdx: number, vertex: number[]): number[]; |
@@ -1,2 +0,2 @@ | ||
import { IEncodeFeature, IVertexAttributeDescriptor } from './interface'; | ||
import type { IEncodeFeature, IVertexAttributeDescriptor } from './interface'; | ||
export declare const lineModel: ({ descriptors, features, enablePicking, iconMap, }: { | ||
@@ -3,0 +3,0 @@ descriptors: IVertexAttributeDescriptor[]; |
@@ -1,2 +0,2 @@ | ||
import { IEncodeFeature, IVertexAttributeDescriptor } from './interface'; | ||
import type { IEncodeFeature, IVertexAttributeDescriptor } from './interface'; | ||
export declare const pointFillModel: ({ descriptors, features, enablePicking, shape2d, }: { | ||
@@ -3,0 +3,0 @@ descriptors: IVertexAttributeDescriptor[]; |
@@ -1,2 +0,2 @@ | ||
import { IEncodeFeature, IVertexAttributeDescriptor } from './interface'; | ||
import type { IEncodeFeature, IVertexAttributeDescriptor } from './interface'; | ||
export declare const polygonFillModel: ({ descriptors, features, enablePicking, }: { | ||
@@ -3,0 +3,0 @@ descriptors: IVertexAttributeDescriptor[]; |
@@ -1,2 +0,2 @@ | ||
import { IEncodeFeature } from './interface'; | ||
import type { IEncodeFeature } from './interface'; | ||
export declare function LineTriangulation(feature: IEncodeFeature): { | ||
@@ -3,0 +3,0 @@ vertices: number[]; |
@@ -36,2 +36,3 @@ var __create = Object.create; | ||
Satistics: () => Satistics, | ||
defaultValue: () => defaultValue, | ||
djb2hash: () => import_hash.djb2hash, | ||
@@ -59,2 +60,8 @@ guid: () => import_hash.guid | ||
__reExport(src_exports, require("./interface/map"), module.exports); | ||
function defaultValue(v1, v2) { | ||
if (v1 === void 0 || v1 === null) { | ||
return v2; | ||
} | ||
return v1; | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -65,2 +72,3 @@ 0 && (module.exports = { | ||
Satistics, | ||
defaultValue, | ||
djb2hash, | ||
@@ -67,0 +75,0 @@ guid, |
{ | ||
"name": "@antv/l7-utils", | ||
"version": "2.20.5", | ||
"version": "2.20.6", | ||
"description": "", | ||
@@ -42,3 +42,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "9c6df5f2ef050d18102f4aa4ccbb598bc1b5ee4d", | ||
"gitHead": "b5af1f23f8f5524cbbb2ea858399fefba63b0163", | ||
"publishConfig": { | ||
@@ -45,0 +45,0 @@ "access": "public" |
339092
9338