Skip to content

attrs text-anchor #420

@KVAnton-WEB

Description

@KVAnton-WEB

I have code like this, but the text-anchor has no effect, although I can change it in the dev tools of browser

plots: {
   // Plot positioned by area name of the map
   myplot_with_area_name: {
      plotsOn: "cr",
      width: 30,
      height: 30,
      text: {
         content: "Some Text",
         position: "inner",
         attrs: {
            "text-anchor": "start",
            "font-size": 10,
            fill: "#004a9b",
            opacity: 0.6,
         },
      },
   },
},

I need to get this:
image

But now I get this ("text-anchor": "middle" by default):
image

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