jgraph / jgraph/drawio

Mirror attribute in Custom shape for Texts

Open
#5,462 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs-info
Dominant language
JavaScript
Stars
8.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.

Hello,
i am describing custom shapes. In the shape i use placeholder texts for Data. When i mirror my shape the text is also mirrored and not readable anymore. Sadly i couldn't find a way to mirror the text inside the shape or give a parameter so that the text "orientation" remains the same.

Thanks for your help!

Describe the solution you'd like
A clear and concise description of what you want to happen.

I would like to have a parameter which is called "flip" or "mirrored" which i can set in the Data to flip the Text.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

As alternative i had created Text objects. But they are "in the way" when i connect my Objects. Therefor the textfield in my custom shapes are nice.

Additional context
Add any other context or screenshots about the feature request here.

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named in the issue. Start by locating the JavaScript code responsible for custom-shape text and mirroring, then determine how the requested parameter fits the existing shape data; done means mirrored shapes keep their placeholder text readable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.