Skip to content

Commit 5b2325d

Browse files
authored
fix: Remove widget src import (#9833)
1 parent 97c651f commit 5b2325d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/widgets/src/reset-view-widget.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
// Copyright (c) vis.gl contributors
44

55
import type {WidgetPlacement, WidgetProps} from '@deck.gl/core';
6-
import type {ViewStateMap, ViewOrViews} from '@deck.gl/core/src/lib/view-manager';
6+
import type {ViewStateMap, View} from '@deck.gl/core';
77
import {render} from 'preact';
88
import {Widget} from '@deck.gl/core';
99
import {IconButton} from './lib/components/icon-button';
1010

11+
/** @note Mirrors an internal calss in deck.gl/core. We can easily redefine it here */
12+
type ViewOrViews = View | View[] | null;
13+
1114
/** Properties for the ResetViewWidget */
1215
export type ResetViewWidgetProps<ViewsT extends ViewOrViews = null> = WidgetProps & {
1316
/** Widget positioning within the view. Default 'top-left'. */

0 commit comments

Comments
 (0)