Adobe 65011817 Extended User Guide - Page 170
dom.setQuadrangle, dom.setRectRoundness
UPC - 883919157368
View all Adobe 65011817 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 170 highlights
Last updated 12/8/2009 EXTENDING FIREWORKS 166 The Document object dom.setQuadrangle() Availability Fireworks 3. Usage dom.setQuadrangle(pTopLeft, pTopRight, pBottomRight, pBottomLeft, options) Arguments pTopLeft, pTopRight, pBottomRight, and pBottomLeft Relative coordinates of a quadrangle expressed as percentages of an arbitrary square. These are not specific x, y coordinates. options Acceptable values are "transformAttributes", "autoTrimImages", and "autoTrimImages transformAttributes". Returns Nothing. Description Creates a bounding quadrangle based on percentages of an arbitrary square, and then transforms the selection within the bounding quadrangle. The effect is the same as performing a transform operation within Fireworks, and then replaying the Transform step from the History panel while other items are selected. Example The following command performs the transform operation on the selection within the specified points: fw.getDocumentDOM().setQuadrangle({x:-0.300884962, y:0.207964599}, {x:1, y:0.207964599}, {x:1, y:0.792035401}, {x:-0.300884962, y:0.792035401}, "autoTrimImages transformAttributes"); dom.setRectRoundness() Availability Fireworks 4; modified in Fireworks 10. Usage dom.setRectRoundness(roundness, mode) Arguments roundness A floating-point value between 0 and 1 that specifies the roundness to use for the corners (0 is no roundness, 1 is 100% roundness). mode String that specifies the mode of corner roundness of the rectangle as either a percentage value or or exact pixel value. Returns Nothing. Description Modifies the corner roundness of all the selected rectangle primitives.