question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add additional text to pn.Transition

See original GitHub issue

Hey guys, I am trying to add conditions in Form of text to the standard pn.Transition. While searching for inspiration i found demo.List from @kumilingus, a custom Element which pretty much does what i need but in a slightly different way. (https://github.com/clientIO/joint/blob/master/demo/list/src/index.ts) I would love to use it right away, but i am hesitating because i would need to refactor my whole application which is based on the architecture of a pn.Transition.

Is there any way i can extend pn.Transition in such a way that the base architecture is kept but I am still able to add these list-items or simply some text inside the transition-rectangle delimited by new lines? Also i don’t need the List Items to be connectable via Links, it should just be some kind of text, maybe with a button to delete the item in a quick manner.

Any help is appreciated. Thanks in advance!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LordHeImchencommented, Dec 16, 2021

That totally makes sense. Thank you very much, highly appreciate your support and engagement in this library!

1reaction
kumilinguscommented, Dec 16, 2021

z attribute is a top-level attribute (same as size, position, attrs). Note that while HTML knows z-index property, SVG does not. When the z attribute is changed, JointJS change the order of the elements in the DOM.

const link = new joint.shapes.standard.Link({
  z: -1,
  attrs: { line: { stroke: 'green' }}
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Add Text Transitions in Powerpoint - wikiHow
You can click on each effect as you add them to see and change more options, such as the timing or their ability...
Read more >
How to add transition to text in Adobe Premiere Pro - YouTube
In todays video you will elarn how to add transition to text with adobe prmeiere pro very easy. Transition on text makes it...
Read more >
How to Make a Quick Text Transition in Adobe Premiere Pro ...
Check out my Premiere Pro Course: https://www.udemy.com/course/premiere-pro-course/?referralCode=AF659E18BEF06A7F4955Get near unlimited ...
Read more >
How to animate a TEXT TRANSITION | Adobe Premiere Pro ...
You will understand more on how to create a shape, ... transition in Premiere pro 06:59 How to add and animate text to...
Read more >
How do you add text to a transition - css - Stack Overflow
to just add text via css would be content:"YOURTEXT". so you would have something like .element:hover{content:"myhovertext";}.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found