Socket
Book a DemoInstallSign in
Socket

@plait/layouts

Package Overview
Dependencies
Maintainers
3
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plait/layouts

It is used to implement the mind map automatic layout algorithm. Based on an independent algorithm, the mind map node layout logic can be decoupled from other functions. The automatic layout algorithm only focuses on the location distribution of nodes.

latest
Source
npmnpm
Version
0.91.0
Version published
Weekly downloads
218
-72.05%
Maintainers
3
Weekly downloads
 
Created
Source

@plait/layouts

It is used to implement the mind map automatic layout algorithm. Based on an independent algorithm, the mind map node layout logic can be decoupled from other functions. The automatic layout algorithm only focuses on the location distribution of nodes.

Layout Classification

  • Logical layout
  • Standard layout
  • Indent layout
  • Layout nesting

Timeline and fishbone are not supported yet

Algorithm Implementation

The layout algorithm in this library mainly refers to the implementation ideas in the paper [Drawing Non-layered Tidy Trees in Linear Time], and has been appropriately transformed. The abstraction of nodes also follows the abstract implementation in the paper.

Reference

For the paper, see: https://github.com/Klortho/d3-flextree/tree/master/papers

open source library: https://github.com/leungwensen/mindmap-layouts

Keywords

mind map

FAQs

Package last updated on 03 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts