Skip to content

Adding an icon to an element #2619

Closed Answered by dmb0058
dmb0058 asked this question in Q&A
Apr 14, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Solved :)

joint.shapes.standard.Rectangle.define('examples.Rectangle',
        {   
            attrs: {
                background: {
                    'x': 143,
                    'y': 9,
                    'width': 14,
                    'height': 32,
                    'rx': 5,
                    'ry': 5,
                    'fill': 'black'
                },
                redlight: {
                    'cx': 150,
                    'cy': 15,
                    'r': 5,
                    'fill': '#ff0000',
                    'fill-opacity': 0.5
                },
                orangelight: {
                    'cx': 150,
                    'cy': 25,
                 …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kumilingus
Comment options

Answer selected by dmb0058
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants