Jump to content
Search Community

Padding for lines?

Rasmus test
Moderator Tag

Recommended Posts

I'm working on a project, using the TransformManager, and I need to fiddle with the pixel tolerance, for triggering the drag-function on a line on the bounding rectangle.

Is there a function for this, like the: paddingForRotation(value:Number):void ??

I have been over the docs a few times, and can't seem to find a call to do this.

Link to comment
Share on other sites

I don't quite understand the question - could you give a little more detail about what you're looking for? "padding on rotation" isn't clicking for me. Do you mean the distance beyond the corner handles that triggers the rotation interaction? 

Link to comment
Share on other sites

Sorry if my description was a little hard to understand.

But yes ... I'm thinking about the distance from the lines, to trigger the drag-function, if the user holds down LMB. In the same way, as i can set the tolerance for rotation.

_trans.paddingForRotation=64;

 

Is there a way to set this in pixels for the lines?

Link to comment
Share on other sites

No, that's not a parameter or property, but you can edit the source code to get the results you're after. The edge line is 10px thick and you can look in the renderSelection() method for this line:

_edges.graphics.lineStyle(10, 0xFF0000, 0, false, "none");
  • Like 1
Link to comment
Share on other sites

Thanks for the help :)

 

I just didn't want to screw around with the source, if there was a simple way to change it.

Well .. I guess I'm not blind after all ... thanks. .. ill give the source a crack :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...