How to change the radius of the standard.Circle? #2666
Unanswered
xxxHunterxxx19
asked this question in
Q&A
Replies: 1 comment
-
How did you define the circle element? You need to know how to define the radius of the circle to be relative to the size of the model. The You can use Here's an example: const MyCircle = dia.Element.define('MyCircle', {
size: {
width: 100,
height: 100
},
attrs: {
body: {
cx: 'calc(s/2)',
cy: 'calc(s/2)',
r: 'calc(s/2)',
stroke: '#333333',
fill: '#FFFFFF'
},
}
}, {
markup: `
<circle @selector="body"/>
`
}); Note: if you want to resize an element into an ellipse (different |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
Through rezise, halo, freetransform, the size of the circle does not change. What to do? How do I change the radius manually or how do I configure the halo to change the size of the circle?
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS, JointJS+
Beta Was this translation helpful? Give feedback.
All reactions