File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
extended-reality/visualization/page-setup/bottom-bar/evolution
visualization/page-setup/bottom-bar/evolution Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- import React , { useEffect , useRef } from 'react' ;
1
+ import { useRef } from 'react' ;
2
2
import {
3
3
useCommitTreeStateStore ,
4
4
SelectedCommit ,
@@ -32,6 +32,7 @@ export default function EvolutionRenderingButtons(args: IArgs) {
32
32
33
33
const visService = useVisibilityServiceStore (
34
34
useShallow ( ( state ) => ( {
35
+ configuration : state . _evolutionModeRenderingConfiguration ,
35
36
applyEvolutionModeRenderingConfiguration :
36
37
state . applyEvolutionModeRenderingConfiguration ,
37
38
getCloneOfEvolutionModeRenderingConfiguration :
@@ -122,12 +123,14 @@ export default function EvolutionRenderingButtons(args: IArgs) {
122
123
{ args . selectedCommits . get ( args . selectedAppName ) ?. length === 2 && (
123
124
< div className = "col-md-auto" >
124
125
< div className = "d-flex" >
125
- < div className = "mr-2" > Only show differences</ div >
126
+ < div style = { { 'margin-right' : '4rem' } } >
127
+ Only show differences
128
+ </ div >
126
129
< div className = "d-flex" >
127
130
< label className = "wide-checkbox-container" >
128
131
< input
129
132
type = "checkbox"
130
- checked = { checkboxValues . current . renderOnlyDifferences }
133
+ checked = { visService . configuration . renderOnlyDifferences }
131
134
onChange = { ( ) => changeAnalysisMode ( 'difference' ) }
132
135
/>
133
136
< span className = "wide-checkbox" > </ span >
Original file line number Diff line number Diff line change @@ -387,8 +387,6 @@ export default function PlotlyCommitTree({
387
387
layout ,
388
388
getPlotlyOptionsObject ( )
389
389
) ;
390
- } else {
391
- console . log ( 'No commits found for selected application!' ) ;
392
390
}
393
391
} ;
394
392
Original file line number Diff line number Diff line change @@ -107,8 +107,9 @@ export const useVisibilityServiceStore = create<VisibilityServiceState>(
107
107
useRenderingServiceStore . getState ( ) . _landscapeData
108
108
?. structureLandscapeData ;
109
109
110
- for ( const applicationObject3D of useApplicationRendererStore . getState ( )
111
- . openApplications ) {
110
+ for ( const applicationObject3D of useApplicationRendererStore
111
+ . getState ( )
112
+ . openApplicationsMap . values ( ) ) {
112
113
const hideVis = (
113
114
type : TypeOfAnalysis ,
114
115
keepMeshesNecessaryForDifference : boolean = false
@@ -189,7 +190,7 @@ export const useVisibilityServiceStore = create<VisibilityServiceState>(
189
190
) => {
190
191
structure ?. nodes . forEach ( ( node ) => {
191
192
const app = node . applications . find (
192
- ( a ) => a . id === applicationObject3D . data . application . id
193
+ ( a ) => a . id === applicationObject3D . getModelId ( )
193
194
) ;
194
195
195
196
if ( app ) {
@@ -311,7 +312,7 @@ export const useVisibilityServiceStore = create<VisibilityServiceState>(
311
312
) => {
312
313
structure ?. nodes . forEach ( ( node ) => {
313
314
const app = node . applications . find (
314
- ( a ) => a . id === applicationObject3D . data . application . id
315
+ ( a ) => a . id === applicationObject3D . getModelId ( )
315
316
) ;
316
317
317
318
if ( app ) {
You can’t perform that action at this time.
0 commit comments