Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions test/apps/widgets-infovis/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
_FpsWidget
} from '@deck.gl/widgets';
import '@deck.gl/widgets/stylesheet.css';
import { ScrollbarWidget } from './scrollbar-widget';

function generateData(count) {
const result: {position: number[]; color: number[]}[] = [];
Expand Down Expand Up @@ -56,11 +57,10 @@ const ORTHOGRAPHIC_POINTS = [

new Deck({
views: [
new OrbitView({id: 'orbit-view', x: 0, width: '50%'}),
new OrthographicView({id: 'ortho-view', x: '50%', width: '50%'})
new OrbitView({id: 'orbit-view', x: 0, width: '50%', controller: true}),
new OrthographicView({id: 'ortho-view', x: '50%', width: '50%', controller: true})
],
initialViewState: INITIAL_VIEW_STATE,
controller: true,
layers: [
new ScatterplotLayer({
id: 'scatter',
Expand All @@ -85,10 +85,13 @@ new Deck({
})
],
widgets: [
new ZoomWidget(),
new GimbalWidget(),
new FullscreenWidget(),
new ResetViewWidget(),
new _FpsWidget()
new GimbalWidget(),
new _FpsWidget(),
new ResetViewWidget({id: 'reset-orbit', viewId: 'orbit-view', placement: 'top-right'}),
new ScrollbarWidget({id: 'scroll-orbit', viewId: 'orbit-view', orientation: 'horizontal', contentBounds: [[-50, -50], [50, 50]]}),
new ResetViewWidget({id: 'reset-ortho', viewId: 'ortho-view', placement: 'top-right'}),
new ZoomWidget({viewId: 'ortho-view'}),
new ScrollbarWidget({viewId: 'ortho-view', orientation: 'vertical', contentBounds: [[-50, -50], [50, 50]]})
]
});
Loading
Loading