|
18 | 18 | import DataPageControlBar from '../components/datacollection/DataPageControlBar.svelte'; |
19 | 19 | import Information from '../components/information/Information.svelte'; |
20 | 20 | import { onMount } from 'svelte'; |
21 | | - import RecordingInspector from '../components/3d-inspector/RecordingInspector.svelte'; |
22 | | - import { Vector3, graphInspectorState } from '../components/3d-inspector/View3DUtility'; |
23 | 21 |
|
24 | 22 | let isConnectionDialogOpen = false; |
25 | | - $: isInspectorOpen = $graphInspectorState.isOpen |
26 | | - let inspectedDataPoint: Vector3 = {x: 0, y: 0, z: 0} |
27 | | - let inspectorPosition: {x: number, y: number} = {x: 0, y: 0} |
28 | | -
|
29 | 23 |
|
30 | 24 | $: hasSomeData = (): boolean => { |
31 | 25 | if ($gestures.length === 0) { |
|
48 | 42 | filePicker.click(); |
49 | 43 | }; |
50 | 44 |
|
51 | | - const updateInspector = (newPoint: Vector3, newPosition: {x: number, y: number}) => { |
52 | | - inspectedDataPoint = newPoint; |
53 | | - inspectorPosition = newPosition; |
54 | | - isInspectorOpen = true; |
55 | | - } |
56 | | -
|
57 | | - const closeInspector = () => { |
58 | | - isInspectorOpen = false; |
59 | | - } |
60 | | -
|
61 | | -
|
62 | 45 | let filePicker: HTMLInputElement; |
63 | 46 | onMount(() => { |
64 | 47 | filePicker = document.createElement('input'); |
|
80 | 63 |
|
81 | 64 | <!-- Main pane --> |
82 | 65 | <main class="h-full inline-block min-w-full"> |
83 | | - <RecordingInspector |
84 | | - dataPoint={$graphInspectorState.dataPoint} |
85 | | - position={$graphInspectorState.inspectorPosition} |
86 | | - isOpen={isInspectorOpen} |
87 | | - size={250} |
88 | | - /> |
89 | 66 | <div> |
90 | 67 | <DataPageControlBar |
91 | 68 | clearDisabled={$gestures.length === 0} |
|
0 commit comments