Skip to content

{center: true} does not work correctly with {top: xx} in arrays and trees #179

Description

@cashaffer

Normally, arrays and trees default to {center: true} on their layout. However, if you add {top: 10} to the constructor, the default horizontal centering gets lost. Not only that, but explicitly adding {center: true} will not have any effect.

AV/General/UFfigCON.js illustrates the problem. This diagram appears as the first figure of the UnionFind module: http://algoviz.org/OpenDSA/dev/OpenDSA/Books/CS3114/html/UnionFind.html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions