Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P
purescript-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 140
    • Issues 140
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • purescript-gargantext
  • Issues
  • #363

Closed
Open
Opened Feb 08, 2022 by arturo@pdominique
  • Report abuse
  • New issue
Report abuse New issue

[phylo] resize feature

As a user, I want an adapting memiescape. When the window width changes, or when we hide the tree, then it can resize itself accordingly.

Pre-requisites

  • ratio issue: GraphViz returns a fixed ratio frame box, so we have to rigidify either the width or the height
  • fluid width: it is simpler to fluidify the width value, so we have to delete svg attribute width for a CSS rule 100%
  • observing change of wrapper dimensions: best done via a ResizeObserver (more info here)
  • light ~ warning: prevent unneeded calls (eg. the observer will trigger even if the element has already been printed and thus drawed)

a) Micro management

  • aim: updating scalers used for transformation and zooming
  • on dimension change: set new values, calling onZoom function, reapply setAxis
  • same behavior for the isoline
  • medium ~ time consuming: imperative drawPhylo business has to be re-write (intrication issue)
  • light ~ warning: onZoom need an event transformation, how can we simulate it? If not, have to create another set of functions

b) Macro management

  • aim: calling the whole drawPhylo function again
  • same behavior for the isoline
  • light ~ UI issue: extra layer of micro management needed to keep selection and some options after a re-draw (too difficult for the viewBox position values though)

Solution a) fits the description with a qualitative UI/UX, more time consuming though

Edited Feb 08, 2022 by arturo
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
toDiscuss
Assign labels
  • View project labels
Reference: gargantext/purescript-gargantext#363