Module

LayeredLayout.Compaction.EdgeAwareScanlineConstraints

Package
purescript-layered-layout
Repository
markgrafhq/purescript-layered-layout

Port of ELK's ScanlineConstraintCalculator + EdgeAwareScanlineConstraintCalculation. See EdgeAwareScanlineConstraintsSpec for the worked examples.

#edgeAwareScanlineConstraints Source

edgeAwareScanlineConstraints :: forall a. { edgeEdge :: Number, nodeNode :: Number } -> IConstraintCalculationAlgorithm a

Orthogonal edge-aware scanline. Constraints accumulate across all three sweeps and preserve the lifecycle's predefined constraints.

#scanlineConstraints Source

scanlineConstraints :: forall a. IConstraintCalculationAlgorithm a

Pure base scanline: one sweep over every CNode, no hitbox inflation.