Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Set Shape Orientation (Read 1009 times)
Kuzya
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Joined: Dec 19th, 2011
Set Shape Orientation
Jul 17th, 2018 at 7:49am
Print Post  
Hi,

I want to set Shape Orientation.
IIs it possible that element set up in the other direction?

i need -> Bild1
i have -> Bild2

Regards,
Kuzya
  

Bild1.jpg ( 13 KB | 80 Downloads )
Bild1.jpg
Bild2.jpg ( 12 KB | 78 Downloads )
Bild2.jpg
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Set Shape Orientation
Reply #1 - Jul 17th, 2018 at 9:55am
Print Post  
Hi,

You can set the shapeOrientation property of a Shape object to rotate it. For example:
Code (Javascript)
Select All
node.getShape().shapeOrientation = 90; // this will rotate the shape 90 degrees clockwise. 



For this particular shape, you could instead set the node's rotationAngle to 180 and the rotateText property to false:
Code (Javascript)
Select All
node.setRotationAngle(180);
node.setRotateText(false); 



Regards,
Lyubo
« Last Edit: Jul 17th, 2018 at 12:01pm by Lyubo »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint