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
5f574220
Commit
5f574220
authored
Apr 19, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix max zoom ratio
parent
8e293315
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
18 deletions
+11
-18
settings_explorerjs.js
settings_explorerjs.js
+9
-8
Tinaweb.js
tinawebJS/Tinaweb.js
+2
-2
enviroment.js
tinawebJS/enviroment.js
+0
-8
No files found.
settings_explorerjs.js
View file @
5f574220
...
...
@@ -152,7 +152,7 @@ var sigmaJsGraphProperties = {
maxEdgeSize
:
4
};
var
sigmaJsMouseProperties
=
{
minRatio
:
0.1
,
minRatio
:
.
03125
,
// 1/32 pour permettre zoom x32
maxRatio
:
2
};
// ============ < / SIGMA.JS PROPERTIES > ============
...
...
@@ -193,11 +193,11 @@ var lastFilter = []
TW
.
Filters
=
{}
var
overviewWidth
=
200
;
var
overviewHeight
=
175
;
var
overviewScale
=
0.25
;
var
overviewHover
=
false
;
//
//
var overviewWidth = 200;
//
var overviewHeight = 175;
//
var overviewScale = 0.25;
//
var overviewHover=false;
var
moveDelay
=
80
,
zoomDelay
=
2
;
//var Vecindad;
TW
.
partialGraph
;
...
...
@@ -210,9 +210,10 @@ var nodeslength=0;
var
labels
=
[];
var
numberOfDocs
=
0
;
var
numberOfNGrams
=
0
;
var
numberOfDocs
=
0
;
// not used!
var
numberOfNGrams
=
0
;
// not used, but cf TW.nNodes TW.nEdges
// FIXME should become TW.*
var
selections
=
[];
var
deselections
=
{};
var
opossites
=
{};
...
...
tinawebJS/Tinaweb.js
View file @
5f574220
...
...
@@ -759,8 +759,8 @@ TinaWebJS = function ( sigmacanvas ) {
// new sigma.js current zoom ratio
value
:
partialGraph
.
camera
.
ratio
,
min
:
1
/
sigmaJsMouseProperties
.
maxRatio
,
max
:
1
/
sigmaJsMouseProperties
.
minRatio
,
min
:
1
/
sigmaJsMouseProperties
.
maxRatio
,
// ex x.5
max
:
1
/
sigmaJsMouseProperties
.
minRatio
,
// ex x32
// range: true,
step
:
.
2
,
value
:
1
,
...
...
tinawebJS/enviroment.js
View file @
5f574220
...
...
@@ -3,14 +3,6 @@
// always useful
var
theHtml
=
document
.
getElementsByTagName
(
'html'
)[
0
]
// overriding pixelRatio is possible if we need very high definition
// var realRatio = sigma.utils.getPixelRatio
// if (TW.overSampling) {
// sigma.utils.getPixelRatio = function() {
// return 2 * realRatio()
// }
// }
TW
.
anynodegoes
=
true
// TW.anynodegoes = true
...
...
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