@evergis/sgis
Advanced tools
Comparing version 0.5.0-alpha.21 to 0.5.0-alpha.22
@@ -67,2 +67,3 @@ import { TileScheme } from "../TileScheme"; | ||
private _cacheTile; | ||
private _cancelUnloadedTile; | ||
private _getTileIndexes; | ||
@@ -69,0 +70,0 @@ private static _getTileId; |
@@ -63,4 +63,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export declare const version = "0.5.0-alpha.21"; | ||
export declare const releaseDate = "26.05.2022"; | ||
export declare const version = "0.5.0-alpha.22"; | ||
export declare const releaseDate = "04.07.2022"; | ||
export declare const controls: { | ||
@@ -67,0 +67,0 @@ Circle: typeof Circle; |
@@ -67,2 +67,3 @@ import { TileScheme } from "../TileScheme"; | ||
private _cacheTile; | ||
private _cancelUnloadedTile; | ||
private _getTileIndexes; | ||
@@ -69,0 +70,0 @@ private static _getTileId; |
@@ -69,2 +69,3 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
let renders = []; | ||
this._cancelUnloadedTile(indexes); | ||
let isSetComplete = true; | ||
@@ -145,2 +146,13 @@ for (let index of indexes) { | ||
} | ||
_cancelUnloadedTile(indexes) { | ||
Object.keys(this._tileCache).forEach((tileId) => { | ||
const tile = this._tileCache[tileId]; | ||
const indexDoesNotExistInCurrentBBox = !indexes.some((index) => TileLayer._getTileId(index.z, index.x, index.y) === tileId); | ||
const itIsImageNodeNotLoaded = "src" in tile.node && !tile.node.complete; | ||
if (indexDoesNotExistInCurrentBBox && itIsImageNodeNotLoaded) { | ||
tile.node.src = ""; | ||
delete this._tileCache[tileId]; | ||
} | ||
}); | ||
} | ||
_getTileIndexes(bbox, resolution) { | ||
@@ -147,0 +159,0 @@ if (!this.crs.canProjectTo(bbox.crs)) |
@@ -63,4 +63,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export declare const version = "0.5.0-alpha.21"; | ||
export declare const releaseDate = "26.05.2022"; | ||
export declare const version = "0.5.0-alpha.22"; | ||
export declare const releaseDate = "04.07.2022"; | ||
export declare const controls: { | ||
@@ -67,0 +67,0 @@ Circle: typeof Circle; |
@@ -65,4 +65,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export const version = "0.5.0-alpha.21"; | ||
export const releaseDate = "26.05.2022"; | ||
export const version = "0.5.0-alpha.22"; | ||
export const releaseDate = "04.07.2022"; | ||
let utilsModulesExt = {}; | ||
@@ -69,0 +69,0 @@ Object.assign(utilsModulesExt, utilsModule, { Color: Color }); |
@@ -51,3 +51,3 @@ import { registerSymbol } from "../../serializers/symbolSerializer"; | ||
let deprecated = anchorPoint; | ||
if (deprecated.x !== undefined && deprecated.y !== undefined) { | ||
if (deprecated && deprecated.x !== undefined && deprecated.y !== undefined) { | ||
warn('Using anchorPoint in {x, y} format is deprecated. Use [x, y] format instead.'); | ||
@@ -54,0 +54,0 @@ this._anchorPoint = [deprecated.x, deprecated.y]; |
{ | ||
"name": "@evergis/sgis", | ||
"version": "0.5.0-alpha.21", | ||
"version": "0.5.0-alpha.22", | ||
"description": "", | ||
@@ -73,2 +73,3 @@ "main": "dist/sGis_bundle.js", | ||
], | ||
"testEnvironment": "jsdom", | ||
"globals": { | ||
@@ -75,0 +76,0 @@ "ts-jest": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2903829
36004
0