Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T TYPO3.CMS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • accessibilityaccessibility
  • TYPO3.CMS
  • Repository
Switch branch/tag
  • TYPO3.CMS
  • ..
  • Element
  • SelectTreeElement.ts
Find file BlameHistoryPermalink
  • Benni Mack's avatar
    [TASK] Use native DOM events instead of d3 · 0ce519a0
    Benni Mack authored Mar 19, 2021 and Richard Haeser's avatar Richard Haeser committed Mar 19, 2021
    This change reduces the overhead of the d3 framework
    by using native CustomEvents on the actual Lit element
    of the SVG instead of d3-dispatch logic:
    
    * typo3:svg-tree:nodes-prepared (enrich node data)
    * typo3:svg-tree:expand-toggle (expand/collapse)
    * typo3:svg-tree:node-context (clickmenu)
    * typo3:svg-tree:node-selected (on-click)
    
    As shown in the patch, the actual logic of interacting
    with the outside framework (Persistent, ContextMenu, window.)
    is moved to the actual Lit components, making the SVG
    tree slimmer and easier to maintain.
    
    Resolves: #93782
    Releases: master
    Change-Id: I6f5227579eb16ec218bbe67de2aecbcaaabb3fcc
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68464
    
    
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Tested-by: Richard Haeser's avatarRichard Haeser <richard@richardhaeser.com>
    Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Reviewed-by: Richard Haeser's avatarRichard Haeser <richard@richardhaeser.com>
    0ce519a0