It is possible to add a rectangle around each label ( different in width and height) using centroid of label and bounding box of text text outside limit ?
Given this... but find not easy to use adobe javascript editor and read the API
I read the above (this intended as gently tongue-in-cheek) to be translated as "I don't like reading the API doc... could somebody who does write this for me?" :-) Setting weak humor aside, the answer to your first question is, of course, in the documentation. Based on your careful reading of the labels topic do you think that is a built-in feature? How close to what you want can you get using existing styles? You ask about programming. I guess that means your first question was a rhetorical question that meant "OK, I read all this carefully and I believe what I want is not a built-in feature... how would I go about adding it myself?" If that is the intended question, the answer, of course, is that you can do almost anything with scripting given enough skill and time. Like any API for a complex application, skill can be gained from detailed reading of the API doc and much experimentation. That can be a very worthwhile activity because even if you decide that coding something which is exactly what you want is too big a project for right now, the process of investigation and learning will pay dividends. My advice is that rather than consider how to program this yourself, you consider very carefully what can be done using existing styles and, if those don't work for you, write up what you want as a suggestion for a new feature and send that in. Given all the development going on with labels and styles and such, if you have a great idea, why not first see if you can get Manifold to do the work for you, for free?
|