Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
f73386cf
Commit
f73386cf
authored
Sep 28, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default selection behavior in meso: deselect if overlap
parent
1c19957b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
Tinaweb.js
twmain/Tinaweb.js
+14
-2
No files found.
twmain/Tinaweb.js
View file @
f73386cf
...
@@ -27,8 +27,15 @@ function SelectionEngine() {
...
@@ -27,8 +27,15 @@ function SelectionEngine() {
return
args
.
prevsels
.
indexOf
(
item
)
<
0
;
return
args
.
prevsels
.
indexOf
(
item
)
<
0
;
}).
concat
(
args
.
prevsels
.
filter
(
function
(
item
)
{
}).
concat
(
args
.
prevsels
.
filter
(
function
(
item
)
{
return
args
.
currsels
.
indexOf
(
item
)
<
0
;
return
args
.
currsels
.
indexOf
(
item
)
<
0
;
}));
;
}));
}
}
// meso view default: deselect if overlap
else
if
(
!
TW
.
SystemState
().
level
)
{
targeted
=
args
.
currsels
.
filter
(
function
(
item
)
{
return
args
.
prevsels
.
indexOf
(
item
)
<
0
;
});
}
// macro view default: only new targets
else
{
else
{
targeted
=
args
.
currsels
;
targeted
=
args
.
currsels
;
}
}
...
@@ -1292,7 +1299,6 @@ var TinaWebJS = function ( sigmacanvas ) {
...
@@ -1292,7 +1299,6 @@ var TinaWebJS = function ( sigmacanvas ) {
let
activereltypes
=
[]
let
activereltypes
=
[]
// multiple nodetypes all true => all reltypes
// multiple nodetypes all true => all reltypes
if
(
nodeActivetypes
.
indexOf
(
false
)
==
-
1
)
{
if
(
nodeActivetypes
.
indexOf
(
false
)
==
-
1
)
{
let
combinations
=
{}
if
(
TW
.
categories
.
length
==
1
)
{
if
(
TW
.
categories
.
length
==
1
)
{
activereltypes
=
[
'00'
]
activereltypes
=
[
'00'
]
}
}
...
@@ -1308,4 +1314,10 @@ var TinaWebJS = function ( sigmacanvas ) {
...
@@ -1308,4 +1314,10 @@ var TinaWebJS = function ( sigmacanvas ) {
return
activereltypes
;
return
activereltypes
;
}
}
// POSS for one type => many (jutsu case) results are also interesting when
// "disconnecting" previous direct neighbors (making them indirect via XR)
// ie:
// 00 => [11, XR]
// 11 => [00, XR]
};
};
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