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
ab6b490c
Commit
ab6b490c
authored
Aug 19, 2019
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Graph] more RangeSlider styling, removed debug logging
parent
dfc80e93
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
range-slider.css
dist/styles/range-slider.css
+1
-1
range-slider.sass
dist/styles/range-slider.sass
+1
-1
Controls.purs
src/Gargantext/Components/GraphExplorer/Controls.purs
+1
-1
RangeSlider.purs
src/Gargantext/Components/RangeSlider.purs
+6
-6
No files found.
dist/styles/range-slider.css
View file @
ab6b490c
...
...
@@ -10,7 +10,7 @@
cursor
:
pointer
;
}
.range-slider
.knob
.button
{
top
:
-7
px
;
margin-top
:
-3
px
;
background
:
#f00
;
width
:
10px
;
height
:
10px
;
...
...
dist/styles/range-slider.sass
View file @
ab6b490c
...
...
@@ -10,7 +10,7 @@
cursor
:
pointer
.button
top
:
-7
px
margin-top
:
-3
px
background
:
#f00
width
:
10px
...
...
src/Gargantext/Components/GraphExplorer/Controls.purs
View file @
ab6b490c
...
...
@@ -49,8 +49,8 @@ controlsToSigmaSettings { cursorSize: (cursorSize /\ _)
, hideEdgesOnMove = not showEdges
, labelMaxSize = labelSize
, maxEdgeSize = if showEdges then 1.0 else 0.0
, maxNodeSize = nodeSizeMax
, minEdgeSize = if showEdges then 1.0 else 0.0
, maxNodeSize = nodeSizeMax
, minNodeSize = nodeSizeMin
}
...
...
src/Gargantext/Components/RangeSlider.purs
View file @
ab6b490c
...
...
@@ -55,8 +55,8 @@ rangeSliderCpt :: R.Component Props
rangeSliderCpt = R.hooksComponent "RangeSlider" cpt
where
cpt props _ = do
R.useEffect' $ do
liftEffect $ log2 "Props: " props
--
R.useEffect' $ do
--
liftEffect $ log2 "Props: " props
-- scale bar
scaleElem <- (R.useRef null) :: R.Hooks (R.Ref (Nullable DOM.Element)) -- dom ref
...
...
@@ -80,7 +80,7 @@ rangeSliderCpt = R.hooksComponent "RangeSlider" cpt
mouseMoveHandler <- (R.useRef $ Nothing) :: R.Hooks (R.Ref (Maybe (EL.Callback Event.MouseEvent)))
mouseUpHandler <- (R.useRef $ Nothing) :: R.Hooks (R.Ref (Maybe (EL.Callback Event.MouseEvent)))
let destroy = \_ -> do
log "RangeSlider: Destroying event handlers"
--
log "RangeSlider: Destroying event handlers"
destroyEventHandler "mousemove" mouseMoveHandler
destroyEventHandler "mouseup" mouseUpHandler
R.setRef mouseMoveHandler $ Nothing
...
...
@@ -121,14 +121,14 @@ rangeSliderCpt = R.hooksComponent "RangeSlider" cpt
case reproject drag scalePos props.bounds (R2.domMousePosition event) of
Just val -> do
log2 "reproject val" val
--
log2 "reproject val" val
setKnob knob setValue value val
Nothing -> destroy unit
let onMouseUp = EL.callback $ \(_event :: Event.MouseEvent) -> do
setDragKnob $ const Nothing
destroy unit
log "RangeSlider: Creating event handlers"
log2 "Clamp: " $ Range.clamp props.bounds value'.min
--
log "RangeSlider: Creating event handlers"
--
log2 "Clamp: " $ Range.clamp props.bounds value'.min
EL.addEventListener document "mousemove" onMouseMove
EL.addEventListener document "mouseup" onMouseUp
R.setRef mouseMoveHandler $ Just onMouseMove
...
...
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