Skip to content

Commit 0c24dd6

Browse files
committed
Fix deck COG build: plain super.finalizeState + restore focus-trap-react pruned by dedup
1 parent 3fb2bfc commit 0c24dd6

3 files changed

Lines changed: 59 additions & 5 deletions

File tree

package-lock.json

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@
124124
"express-session": "^1.17.3",
125125
"file-saver": "^2.0.2",
126126
"flat": "^5.0.2",
127+
"focus-trap": "^7.8.0",
128+
"focus-trap-react": "^11.0.6",
127129
"fs-extra": "^8.1.0",
128130
"geo-extent": "^1.5.0",
129131
"geocanvas": "^0.4.0",

src/essence/Basics/MapEngines/Adapters/DeckCOGLayer.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,8 @@ export class ColormappedCOGLayer extends COGLayer<any> {
163163
if (tex && typeof tex.destroy === 'function') {
164164
tex.destroy()
165165
}
166-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
167-
if ((super as any).finalizeState) {
168-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
169-
;(super as any).finalizeState(context)
170-
}
166+
// deck.gl's Layer base class always defines finalizeState.
167+
super.finalizeState(context)
171168
}
172169

173170
// Return type is `any` to avoid TypeScript's return-type assignability

0 commit comments

Comments
 (0)