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
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
Grégoire Locqueville
purescript-gargantext
Commits
f07cc33d
Commit
f07cc33d
authored
Nov 08, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graph] selector size, related terms, scaling of related terms
parent
fcdaa46e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Sidebar.purs
src/Gargantext/Components/GraphExplorer/Sidebar.purs
+6
-5
SlideButton.purs
...gantext/Components/GraphExplorer/Toolbar/SlideButton.purs
+1
-1
No files found.
src/Gargantext/Components/GraphExplorer/Sidebar.purs
View file @
f07cc33d
...
...
@@ -509,7 +509,7 @@ neighborhoodCpt = R.memo' $ here.component "neighborhood" cpt where
[ "text-info", "d-inline" ] $
show termCount
,
H.text $ nbsp 1 <> "terms"
H.text $ nbsp 1 <> "
related
terms"
,
-- Expand word cloud
B.iconButton
...
...
@@ -643,11 +643,12 @@ updateTermButtonCpt = here.component "updateTermButton" cpt where
badgeSize :: Number -> Number -> Number -> String
badgeSize minSize maxSize size =
let
minFontSize =
10
.0
maxFontSize = 2
4
.0
minFontSize =
7
.0
maxFontSize = 2
8
.0
sizeScaled = (size - minSize) / (maxSize - minSize) -- in [0; 1] range
scale' = DN.log (sizeScaled + 1.0) / (DN.log 2.0) -- in [0; 1] range
scale = minFontSize + scale' * (maxFontSize - minFontSize)
--scale' = DN.log (sizeScaled + 1.0) / (DN.log 2.0) -- in [0; 1] range
--scale = minFontSize + scale' * (maxFontSize - minFontSize)
scale = minFontSize + sizeScaled * (maxFontSize - minFontSize)
in
show scale <> "px"
...
...
src/Gargantext/Components/GraphExplorer/Toolbar/SlideButton.purs
View file @
f07cc33d
...
...
@@ -145,7 +145,7 @@ mouseSelectorSizeSliderCpt = here.component "mouseSelectorSizeSlider" cpt
caption: "Selector size (Shift + wheel)"
, forceAtlasState
, min: 1.0
, max:
5
0.0
, max:
10
0.0
, onChange: \e -> do
let sigma = R.readRef sigmaRef
let newValue' = DN.fromString $ R.unsafeEventValue e
...
...
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