Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frama-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
pub
frama-c
Commits
0e411614
Commit
0e411614
authored
Oct 12, 2020
by
Valentin Perrelle
Committed by
David Bühler
Nov 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dive] display all incoming edges in gray overlay while selected ones remains blueish
parent
5a8c3222
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
ivette/src/frama-c/dive/Dive.tsx
ivette/src/frama-c/dive/Dive.tsx
+3
-2
ivette/src/frama-c/dive/style.json
ivette/src/frama-c/dive/style.json
+7
-5
No files found.
ivette/src/frama-c/dive/Dive.tsx
View file @
0e411614
...
...
@@ -297,9 +297,8 @@ class Dive {
for
(
const
dep
of
data
.
deps
)
{
const
src
=
this
.
cy
.
$id
(
dep
.
src
);
const
dst
=
this
.
cy
.
$id
(
dep
.
dst
);
const
isRoot
=
dst
?.
data
(
'
is_root
'
);
this
.
cy
.
add
({
data
:
{
...
dep
,
source
:
dep
.
src
,
target
:
dep
.
dst
,
is_root
:
isRoot
},
data
:
{
...
dep
,
source
:
dep
.
src
,
target
:
dep
.
dst
},
group
:
'
edges
'
,
classes
:
src
?.
hasClass
(
'
new
'
)
||
dst
?.
hasClass
(
'
new
'
)
?
'
new
'
:
''
,
});
...
...
@@ -486,8 +485,10 @@ class Dive {
_
.
some
(
ele
.
data
().
origins
,
this
.
selectedLocation
)
);
this
.
cy
.
$
(
'
:selected
'
).
forEach
(
unselect
);
this
.
cy
.
$
(
'
.multiple-selection
'
).
removeClass
(
'
multiple-selection
'
);
select
(
node
);
const
edges
=
node
.
incomers
(
'
edge
'
);
edges
.
addClass
(
'
multiple-selection
'
);
edges
.
unselect
();
const
relevantEdges
=
edges
.
filter
(
hasOrigin
);
if
(
relevantEdges
.
empty
())
...
...
ivette/src/frama-c/dive/style.json
View file @
0e411614
...
...
@@ -58,18 +58,20 @@
}
},
{
"selector"
:
"
edge:selected
"
,
"selector"
:
"
.multiple-selection
"
,
"style"
:
{
"color"
:
"#48f"
,
"overlay-color"
:
"#8bf"
,
"overlay-color"
:
"#aaa"
,
"overlay-padding"
:
"10px"
,
"overlay-opacity"
:
0.4
}
},
{
"selector"
:
"edge
[?is_root]
"
,
"selector"
:
"edge
:selected
"
,
"style"
:
{
"width"
:
4
"color"
:
"#48f"
,
"overlay-color"
:
"#8bf"
,
"overlay-padding"
:
"10px"
,
"overlay-opacity"
:
0.4
}
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment