Skip to content

Replace 'spacing.labelNode' with 'nodeLabels.margin'  #576

Open

Description

@uruuru

Consider

// TODO only applied to outside labels?
spacing.labelNode: 30
nodeLabels.padding: "[top=10.0,left=10.0,bottom=10.0,right=10.0]"

node n3 {
	nodeLabels.placement: "H_CENTER V_TOP INSIDE"
	label "label1"
	label "label2"
}

node n4 {
	nodeLabels.placement: "H_CENTER V_TOP OUTSIDE"
	label "label1"
	label "label2"
}

which yields
image

The labelNode is only applied to the OUTSIDE labels, while padding is used on the inside. @le-cds is it possible that labelNode is partly deprecated in this case after your node label placement changes?
Maybe it's reasonable to replace the labelNode by a new margins property for the outside?

Activity

  1. added
    questionRequest for support in using ELK.
    discussionFurther discussion required before implementation.
    on Apr 22, 2020
  2. added this to the Release 0.7.0 milestone on Apr 22, 2020
  3. le-cds commented on Apr 24, 2020

    @le-cds
    Contributor

    Sure, we could replace the label-node spacing by margins, which would be configurable for all four sides independently.

    You don't see a bug here, do you? I'd consider this expected behaviour?

  4. uruuru commented on Apr 24, 2020

    @uruuru
    ContributorAuthor

    Not a bug but inconsistent behavior I'd say.

    If we were introduce nodeLabels.margins, spacing.nodeLabel would be obsolete, wouldn't it? In that case we should

    • a) either remove it or
    • b) use it - if it's set - to fill all values of padding and margin with nodeLabel.

    I kind of like b) since that would preserve the possibility to control all spacings using the spacing group.

  5. le-cds commented on Apr 24, 2020

    @le-cds
    Contributor

    Ah, I see why you find it inconsistent.

    If we were introduce nodeLabels.margins, spacing.nodeLabel would be obsolete, wouldn't it?

    Absolutely. I guess I'd simply remove it. The spacing options are already way too complex...

  6. added 4 commits that reference this issue on May 19, 2020
  7. assigned and unassigned on Jun 18, 2020
  8. uruuru commented on Jun 18, 2020

    @uruuru
    ContributorAuthor

    Feel free to participate in the PR :).

  9. changed the title [-]Spacing labelNode not applied[/-] [+]Replace 'spacing.labelNode' with 'nodeLabels.margin' [/+] on Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

discussionFurther discussion required before implementation.questionRequest for support in using ELK.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions