JS/JSX 77개 파일을 TS/TSX로 전환하고 JS 원본을 삭제. - stores 7개, map core 6개, hooks 4개 등 전체 모듈 전환 - TypeScript strict 모드, OL/Deck.gl 타입 적용 - .gitignore에서 TS/TSX 무시 규칙 제거 - pre-commit hook: .js,.jsx → .ts,.tsx 확장자 변경 - tsc --noEmit 0 에러, ESLint 0 에러, yarn build 성공 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
536 B
TypeScript
22 lines
536 B
TypeScript
/**
|
|
* STS 분석 레이어 전역 레지스트리
|
|
* 참조: src/areaSearch/utils/areaSearchLayerRegistry.ts
|
|
*
|
|
* useStsLayer 훅이 레이어를 등록하면
|
|
* useShipLayer의 handleBatchRender에서 가져와 deck.gl에 병합
|
|
*/
|
|
|
|
import type { Layer } from '@deck.gl/core';
|
|
|
|
export function registerStsLayers(layers: Layer[]): void {
|
|
window.__stsLayers__ = layers;
|
|
}
|
|
|
|
export function getStsLayers(): Layer[] {
|
|
return window.__stsLayers__ || [];
|
|
}
|
|
|
|
export function unregisterStsLayers(): void {
|
|
window.__stsLayers__ = [];
|
|
}
|