path.js
Represents a path used with a Graphics implementation.

File Location

graphics/path.js

Classes

goog.graphics.Path
Creates a path object. A path is a sequence of segments and may be open or closed. Path uses the EVEN-ODD fill rule for determining the interior of the path. A path must start with a moveTo command. A "simple" path does not contain any arcs and may be transformed using the {@code transform} method.

Public Protected Private

Global Functions

goog.graphics.Path.createSimplifiedPath(src)
Creates a copy of the given path, replacing {@code arcTo} with {@code arcToAsCurves}. The resulting path is simplified and can be transformed.
Arguments:
src :
The path to simplify.
Returns:   A new simplified path.
code »
goog.graphics.Path.getSegmentCount(segment)
Returns the number of points for a segment type.
Arguments:
segment :
The segment type.
Returns:   The number of points.
code »

Global Properties

goog.graphics.Path.segmentArgCounts_ :
The number of points for each segment type.
Code »
goog.graphics.Path.simplifySegmentMap_ :
A map from segment type to the path function to call to simplify a path.
Code »

Directory graphics

File Reference