Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
727ea08d
Commit
727ea08d
authored
Sep 11, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
[Merge]
parents
ab28023d
9f41f3fa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
+13
-9
Graph.css
dist/styles/Graph.css
+2
-2
Graph.sass
dist/styles/Graph.sass
+2
-2
package.json
package.json
+1
-1
Sigma.js
src/Gargantext/Hooks/Sigmax/Sigma.js
+8
-4
No files found.
dist/styles/Graph.css
View file @
727ea08d
...
...
@@ -12,7 +12,7 @@
max-width
:
200px
;
}
#graph-explorer
#toggle-container
{
position
:
absolute
;
position
:
fixed
;
z-index
:
999
;
right
:
25%
;
top
:
10px
;
...
...
@@ -22,7 +22,7 @@
padding-top
:
90px
;
}
#graph-explorer
#controls-container
{
position
:
absolute
;
position
:
fixed
;
z-index
:
999
;
backdrop-filter
:
blur
(
4px
);
background
:
rgba
(
255
,
255
,
255
,
0.75
);
...
...
dist/styles/Graph.sass
View file @
727ea08d
...
...
@@ -19,7 +19,7 @@
max-width
:
200px
#toggle-container
position
:
absolute
position
:
fixed
z-index
:
999
//
needs
to
appear
above
solid
menu
bar
right
:
25%
top
:
10px
...
...
@@ -28,7 +28,7 @@
padding-top
:
90px
#controls-container
position
:
absolute
position
:
fixed
z-index
:
999
//
needs
to
appear
above
graph
elements
backdrop-filter
:
blur
(
4px
)
background
:
rgba
(
255
,
255
,
255
,
75%
)
...
...
package.json
View file @
727ea08d
{
"name"
:
"Gargantext"
,
"version"
:
"0.0.1.8.
2
"
,
"version"
:
"0.0.1.8.
3
"
,
"scripts"
:
{
"rebase-set"
:
"spago package-set-upgrade && spago psc-package-insdhall"
,
"rebuild-set"
:
"spago psc-package-insdhall"
,
...
...
src/Gargantext/Hooks/Sigmax/Sigma.js
View file @
727ea08d
...
...
@@ -194,10 +194,14 @@ function takeScreenshot(sigma) {
let
c
=
sigma
.
renderers
[
0
].
container
;
let
edges
=
c
.
getElementsByClassName
(
'sigma-edges'
)[
0
];
let
scene
=
c
.
getElementsByClassName
(
'sigma-scene'
)[
0
];
let
sceneCtx
=
scene
.
getContext
(
'2d'
);
sceneCtx
.
globalAlpha
=
1
;
sceneCtx
.
drawImage
(
edges
,
0
,
0
);
return
scene
.
toDataURL
(
'image/png'
);
// let sceneCtx = scene.getContext('2d');
// sceneCtx.globalAlpha = 1;
// sceneCtx.drawImage(edges, 0, 0);
// return scene.toDataURL('image/png');
let
edgesCtx
=
edges
.
getContext
(
'2d'
);
edgesCtx
.
globalAlpha
=
1
;
edgesCtx
.
drawImage
(
scene
,
0
,
0
);
return
edges
.
toDataURL
(
'image/png'
);
}
function
getEdges
(
sigma
)
{
...
...
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