New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@antv/l7-source

Package Overview
Dependencies
Maintainers
64
Versions
540
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/l7-source - npm Package Compare versions

Comparing version 2.21.5-beat.0 to 2.21.5

2

es/parser/raster-tile.js

@@ -63,3 +63,3 @@ var __defProp = Object.defineProperty;

case RasterTileType.ARRAYBUFFER:
return getTileBuffer(data, tileParams, tile, cfg);
return getTileBuffer(data, tileParams, tile, (cfg == null ? void 0 : cfg.format) || defaultFormat, cfg == null ? void 0 : cfg.operation);
case RasterTileType.CUSTOMARRAYBUFFER:

@@ -66,0 +66,0 @@ case RasterTileType.CUSTOMRGB:

import type { ITileParserCFG } from '@antv/l7-core';
import type { ITileBand, SourceTile, TileLoadParams } from '@antv/l7-utils';
import type { IBandsOperation, IRasterFormat } from '../../interface';
/**

@@ -12,3 +13,3 @@ * 用于获取 raster data 的瓦片,如 tiff、lerc、dem 等

*/
export declare const getTileBuffer: (url: string | string[] | ITileBand[], tileParams: TileLoadParams, tile: SourceTile, cfg: Partial<ITileParserCFG>) => Promise<HTMLImageElement | ImageBitmap>;
export declare const getTileBuffer: (url: string | string[] | ITileBand[], tileParams: TileLoadParams, tile: SourceTile, rasterFormat: IRasterFormat, operation?: IBandsOperation) => Promise<HTMLImageElement | ImageBitmap>;
/**

@@ -15,0 +16,0 @@ * 获取图片格式的文件 jpg、png 等

@@ -45,12 +45,11 @@ var __defProp = Object.defineProperty;

import { getTileUrl } from "./request";
var getTileBuffer = (url, tileParams, tile, cfg) => __async(void 0, null, function* () {
const { format = defaultFormat, operation, requestParameters = {} } = cfg;
const reqParams = __spreadProps(__spreadValues({}, requestParameters), {
var getTileBuffer = (url, tileParams, tile, rasterFormat, operation) => __async(void 0, null, function* () {
const requestParameters = {
// getTileUrl 将原始的 url 路径进行转化(多服务器)
url: getTileUrl(url, tileParams)
// getTileUrl 将原始的 url 路径进行转化(多服务器)
});
};
return new Promise((resolve, reject) => {
getRasterFile(
tile,
reqParams,
requestParameters,
(err, img) => {

@@ -63,3 +62,3 @@ if (err) {

},
format,
rasterFormat,
operation

@@ -66,0 +65,0 @@ );

@@ -84,3 +84,3 @@ var __defProp = Object.defineProperty;

case import_l7_core.RasterTileType.ARRAYBUFFER:
return (0, import_getRasterTile.getTileBuffer)(data, tileParams, tile, cfg);
return (0, import_getRasterTile.getTileBuffer)(data, tileParams, tile, (cfg == null ? void 0 : cfg.format) || import_getRasterTile.defaultFormat, cfg == null ? void 0 : cfg.operation);
case import_l7_core.RasterTileType.CUSTOMARRAYBUFFER:

@@ -87,0 +87,0 @@ case import_l7_core.RasterTileType.CUSTOMRGB:

import type { ITileParserCFG } from '@antv/l7-core';
import type { ITileBand, SourceTile, TileLoadParams } from '@antv/l7-utils';
import type { IBandsOperation, IRasterFormat } from '../../interface';
/**

@@ -12,3 +13,3 @@ * 用于获取 raster data 的瓦片,如 tiff、lerc、dem 等

*/
export declare const getTileBuffer: (url: string | string[] | ITileBand[], tileParams: TileLoadParams, tile: SourceTile, cfg: Partial<ITileParserCFG>) => Promise<HTMLImageElement | ImageBitmap>;
export declare const getTileBuffer: (url: string | string[] | ITileBand[], tileParams: TileLoadParams, tile: SourceTile, rasterFormat: IRasterFormat, operation?: IBandsOperation) => Promise<HTMLImageElement | ImageBitmap>;
/**

@@ -15,0 +16,0 @@ * 获取图片格式的文件 jpg、png 等

@@ -67,12 +67,11 @@ var __defProp = Object.defineProperty;

var import_request = require("./request");
var getTileBuffer = (url, tileParams, tile, cfg) => __async(void 0, null, function* () {
const { format = defaultFormat, operation, requestParameters = {} } = cfg;
const reqParams = __spreadProps(__spreadValues({}, requestParameters), {
var getTileBuffer = (url, tileParams, tile, rasterFormat, operation) => __async(void 0, null, function* () {
const requestParameters = {
// getTileUrl 将原始的 url 路径进行转化(多服务器)
url: (0, import_request.getTileUrl)(url, tileParams)
// getTileUrl 将原始的 url 路径进行转化(多服务器)
});
};
return new Promise((resolve, reject) => {
(0, import_getRasterData.getRasterFile)(
tile,
reqParams,
requestParameters,
(err, img) => {

@@ -85,3 +84,3 @@ if (err) {

},
format,
rasterFormat,
operation

@@ -88,0 +87,0 @@ );

{
"name": "@antv/l7-source",
"version": "2.21.5-beat.0",
"version": "2.21.5",
"description": "",

@@ -29,4 +29,4 @@ "license": "MIT",

"supercluster": "^7.0.0",
"@antv/l7-core": "2.21.5-beat.0",
"@antv/l7-utils": "2.21.5-beat.0"
"@antv/l7-core": "2.21.5",
"@antv/l7-utils": "2.21.5"
},

@@ -33,0 +33,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc