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
97dd4c84
Commit
97dd4c84
authored
Apr 07, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deselect on click in the bg (except if dragging)
parent
b2bb0ba6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
Tinaweb.js
tinawebJS/Tinaweb.js
+22
-0
main.js
tinawebJS/main.js
+1
-1
No files found.
tinawebJS/Tinaweb.js
View file @
97dd4c84
...
@@ -634,6 +634,20 @@ TinaWebJS = function ( sigmacanvas ) {
...
@@ -634,6 +634,20 @@ TinaWebJS = function ( sigmacanvas ) {
// just before, at click event
// just before, at click event
})
})
// when click in the empty background
// ==================================
TW
.
partialGraph
.
bind
(
'clickStage'
,
function
(
e
)
{
// console.log("clickStage event e", e)
if
(
!
e
.
data
.
captor
.
isDragging
&&
Object
.
keys
(
selections
).
length
&&
!
cursor_size
)
{
// we clear selections and all its effects
cancelSelection
(
false
);
}
})
// for all TW.cam.goTo (move/zoom) events
// for all TW.cam.goTo (move/zoom) events
// ===============
// ===============
var
zoomTimeoutId
=
null
var
zoomTimeoutId
=
null
...
@@ -643,6 +657,14 @@ TinaWebJS = function ( sigmacanvas ) {
...
@@ -643,6 +657,14 @@ TinaWebJS = function ( sigmacanvas ) {
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// POSS: bind to captors (0=>mouse, 1=>touch)
// TW.rend.captors[0].bind('mousemove', function(e) {
// console.log("mousemove event e", e.data.node)
//
// })
// ---------------------------------------------------------------------
// raw events (non-sigma): handlers attached to the container
// raw events (non-sigma): handlers attached to the container
// ==========
// ==========
$
(
"#sigma-contnr"
)
$
(
"#sigma-contnr"
)
...
...
tinawebJS/main.js
View file @
97dd4c84
...
@@ -331,7 +331,7 @@ if(RES["OK"]) {
...
@@ -331,7 +331,7 @@ if(RES["OK"]) {
console
.
log
(
"level: "
+
level
);
console
.
log
(
"level: "
+
level
);
console
.
log
(
"selections: "
);
console
.
log
(
"selections: "
);
console
.
log
(
sels
)
console
.
log
(
sels
)
console
.
log
(
"selections
2
: "
);
console
.
log
(
"selections
len
: "
);
console
.
log
(
sels
.
length
)
console
.
log
(
sels
.
length
)
console
.
log
(
"opposites: "
);
console
.
log
(
"opposites: "
);
console
.
log
(
oppos
)
console
.
log
(
oppos
)
...
...
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