fix:修复跳转bug
This commit is contained in:
BIN
crawler/__pycache__/db_merge.cpython-39.pyc
Normal file
BIN
crawler/__pycache__/db_merge.cpython-39.pyc
Normal file
Binary file not shown.
@@ -673,36 +673,15 @@ export function WarMap() {
|
|||||||
if (sourceCoords.israel) push(sourceCoords.israel)
|
if (sourceCoords.israel) push(sourceCoords.israel)
|
||||||
flattenPaths(israelPathsAll)
|
flattenPaths(israelPathsAll)
|
||||||
break
|
break
|
||||||
case 'virginia_srilanka': {
|
case 'virginia_srilanka':
|
||||||
const src = sourceCoords.virginia_srilanka
|
if (sourceCoords.virginia_srilanka) push(sourceCoords.virginia_srilanka)
|
||||||
const paths = effectiveVirginiaSrilankaPathsDisplay
|
flattenPaths(virginiaSrilankaPaths)
|
||||||
if (src && paths.length > 0) {
|
|
||||||
const tgt = paths[0][paths[0].length - 1]
|
|
||||||
const padLine = 1.2
|
|
||||||
return [
|
|
||||||
Math.min(src[0], tgt[0]) - padLine,
|
|
||||||
Math.min(src[1], tgt[1]) - padLine,
|
|
||||||
Math.max(src[0], tgt[0]) + padLine,
|
|
||||||
Math.max(src[1], tgt[1]) + padLine,
|
|
||||||
]
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
}
|
|
||||||
case 'tomahawk_arabian': {
|
case 'tomahawk_arabian': {
|
||||||
const src = sourceCoords.tomahawk_arabian ?? sourceCoords.arabian_sea_sub_torpedo
|
const src = sourceCoords.tomahawk_arabian ?? sourceCoords.arabian_sea_sub_torpedo
|
||||||
const paths = [...effectiveTomahawkArabianPathsDisplay, ...effectiveArabianSubTorpedoPathsDisplay]
|
if (src) push(src)
|
||||||
if (src && paths.length > 0) {
|
flattenPaths(tomahawkArabianPaths)
|
||||||
const allCoords = paths.flatMap((p) => p)
|
flattenPaths(arabianSubTorpedoPaths)
|
||||||
const lngs = allCoords.map((c) => c[0])
|
|
||||||
const lats = allCoords.map((c) => c[1])
|
|
||||||
const padLine = 1.2
|
|
||||||
return [
|
|
||||||
Math.min(...lngs) - padLine,
|
|
||||||
Math.min(...lats) - padLine,
|
|
||||||
Math.max(...lngs) + padLine,
|
|
||||||
Math.max(...lats) + padLine,
|
|
||||||
]
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case 'hezbollah':
|
case 'hezbollah':
|
||||||
@@ -755,9 +734,9 @@ export function WarMap() {
|
|||||||
lincolnPathsAll,
|
lincolnPathsAll,
|
||||||
fordPathsAll,
|
fordPathsAll,
|
||||||
israelPathsAll,
|
israelPathsAll,
|
||||||
effectiveVirginiaSrilankaPathsDisplay,
|
virginiaSrilankaPaths,
|
||||||
effectiveTomahawkArabianPathsDisplay,
|
tomahawkArabianPaths,
|
||||||
effectiveArabianSubTorpedoPathsDisplay,
|
arabianSubTorpedoPaths,
|
||||||
hezbollahPaths,
|
hezbollahPaths,
|
||||||
attackPathsAll,
|
attackPathsAll,
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user