Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: ESTK - draw a graphic

$
0
0

Even using the function Point (x,y) as described in the Scripting Guide (Function Summary), i have no success. The statement

oPoints = [Point(4*CM, 1*CM), Point(6*CM, 2*CM), Point(8*CM, 1*CM), Point(10*CM, 2*CM)];

yields message Point() is not a function!

 

var oPoints = [[4*CM, 1*CM], [6*CM, 2*CM], [8*CM, 1*CM], [10*CM, 2*CM]];

is accepted by ESTK, but creates only a line. The UI reports a PolyLine at 0/0 with width=height = 0.635 cm (1/4"). The Stroke width is as set in the script:

polyline2.png

I have also found this:

  • The FDK constants FV_METRIC_xx are not mapped to ESTK.
  • For the typographic unit didot I see a discrepancy between the definition in FM (1/72” * 69977/65536) = 0.376684 and the official definition (1/72 French Royal inch = 0.375972 mm).
  • For Line my simple definition of the points
    var oPoints = [1, 1, 3, 2];
    seems to work - why then not in Polyline?
    line1.png

Where is a description of the required data types in JS terminology?

 

I'ts also an imposition that for every graphic object (line, arc, ellipse...) simply all properties for any object are listed (most likely by a text inset). IMHO it is at least misleading that a circle can have an arrow head. Well this is obvious, but others are not at all.

 

Maybe I need to bridle the tail of the ferd and look for a script which lists the set of properties of a selected object...


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>