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
131
Issues
131
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
96be222a
Commit
96be222a
authored
Nov 10, 2021
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
>>> continue
parent
ffa21aa2
Pipeline
#2071
failed with stage
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
28 deletions
+23
-28
Draw.js
src/Gargantext/Components/PhyloExplorer/Draw.js
+0
-13
Draw.purs
src/Gargantext/Components/PhyloExplorer/Draw.purs
+17
-9
_phylo.scss
src/sass/_phylo.scss
+6
-6
No files found.
src/Gargantext/Components/PhyloExplorer/Draw.js
View file @
96be222a
exports
.
_drawPhylo
=
drawPhylo
;
exports
.
_drawPhylo
=
drawPhylo
;
exports
.
_highlightSource
=
highlightSource
;
exports
.
_highlightSource
=
highlightSource
;
exports
.
_unhide
=
unhide
;
// (from "index.html" scripts)
function
unhide
(
name
)
{
document
.
getElementById
(
"phyloName"
).
innerHTML
=
name
;
document
.
getElementById
(
"phyloName"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"reset"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"label"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"heading"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"export"
).
style
.
visibility
=
"visible"
;
}
// set javascript date from a string year
// set javascript date from a string year
function
yearToDate
(
year
)
{
function
yearToDate
(
year
)
{
...
...
src/Gargantext/Components/PhyloExplorer/Draw.purs
View file @
96be222a
...
@@ -12,9 +12,10 @@ import Data.Foldable (for_)
...
@@ -12,9 +12,10 @@ import Data.Foldable (for_)
import Data.FoldableWithIndex (forWithIndex_)
import Data.FoldableWithIndex (forWithIndex_)
import Data.Maybe (Maybe(..))
import Data.Maybe (Maybe(..))
import Effect (Effect)
import Effect (Effect)
import Effect.Uncurried (EffectFn
1, EffectFn7, runEffectFn1
, runEffectFn7)
import Effect.Uncurried (EffectFn
7
, runEffectFn7)
import FFI.Simple (applyTo, (..), (.=), (.?))
import FFI.Simple (applyTo, (..), (.=), (.?))
import Gargantext.Components.PhyloExplorer.Types (AncestorLink, Branch, BranchLink, GlobalTerm(..), Group(..), Link, Period, PhyloDataSet(..))
import Gargantext.Components.PhyloExplorer.Types (AncestorLink, Branch, BranchLink, GlobalTerm(..), Group(..), Link, Period, PhyloDataSet(..))
import Gargantext.Utils.Reactix (getElementById)
import Graphics.D3.Base (D3)
import Graphics.D3.Base (D3)
foreign import _drawPhylo :: EffectFn7
foreign import _drawPhylo :: EffectFn7
...
@@ -47,14 +48,6 @@ highlightSource = _highlightSource
...
@@ -47,14 +48,6 @@ highlightSource = _highlightSource
-----------------------------------------------------------
-----------------------------------------------------------
-- @WIP: still necessary? as we certainly would have only one mode?
foreign import _unhide :: EffectFn1 String Unit
unhide :: String -> Effect Unit
unhide = runEffectFn1 _unhide
-----------------------------------------------------------
setGlobalDependencies :: Window -> PhyloDataSet -> Effect Unit
setGlobalDependencies :: Window -> PhyloDataSet -> Effect Unit
setGlobalDependencies w (PhyloDataSet o)
setGlobalDependencies w (PhyloDataSet o)
= do
= do
...
@@ -107,3 +100,18 @@ setGlobalDependencies w (PhyloDataSet o)
...
@@ -107,3 +100,18 @@ setGlobalDependencies w (PhyloDataSet o)
setGlobalD3Reference :: Window -> D3 -> Effect Unit
setGlobalD3Reference :: Window -> D3 -> Effect Unit
setGlobalD3Reference window d3 = void $ pure $ (window .= "d3") d3
setGlobalD3Reference window d3 = void $ pure $ (window .= "d3") d3
-----------------------------------------------------------
unhide :: String -> Effect Unit
unhide name = pure unit
<* setText "phyloName" name
<* turnVisible "phyloName"
<* turnVisible "reset"
<* turnVisible "label"
<* turnVisible "heading"
where
setText id n = getElementById id >>= \el -> pure $ (el .= "innerHTML") n
turnVisible id = getElementById id >>= \el -> pure $ (el .= "visibility")
"visible"
src/sass/_phylo.scss
View file @
96be222a
...
@@ -420,13 +420,13 @@ i.how:hover span {
...
@@ -420,13 +420,13 @@ i.how:hover span {
fill
:
#f8381f
;
fill
:
#f8381f
;
}
}
.term-unfocus
{
//
.term-unfocus {
/*fill: #A9A9A9;*/
// fill: #A9A9A9;
}
//
}
.term-focus
{
//
.term-focus {
/*fill: black;*/
// fill: black;
}
//
}
.term-path
{
.term-path
{
fill
:
none
;
fill
:
none
;
...
...
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