Documentation

Path
in package
implements IteratorAggregate

Internal Representation of a vector path.

Interfaces, Classes, Traits and Enums

IteratorAggregate

Table of Contents

$operations  : array<string|int, OperationInterface>
append()  : self
Appends another path to this one.
close()  : self
Closes a sub-path.
curve()  : self
Draws a curve from the current position to another position.
ellipticArc()  : self
Draws an elliptic arc from the current position to another position.
getIterator()  : array<string|int, OperationInterface>|Traversable
line()  : self
Draws a line from the current position to another position.
move()  : self
Moves the drawing operation to a certain position.
translate()  : self

Properties

Methods

append()

Appends another path to this one.

public append(self $other) : self
Parameters
$other : self
Return values
self

close()

Closes a sub-path.

public close() : self
Return values
self

curve()

Draws a curve from the current position to another position.

public curve(float $x1, float $y1, float $x2, float $y2, float $x3, float $y3) : self
Parameters
$x1 : float
$y1 : float
$x2 : float
$y2 : float
$x3 : float
$y3 : float
Return values
self

ellipticArc()

Draws an elliptic arc from the current position to another position.

public ellipticArc(float $xRadius, float $yRadius, float $xAxisRotation, bool $largeArc, bool $sweep, float $x, float $y) : self
Parameters
$xRadius : float
$yRadius : float
$xAxisRotation : float
$largeArc : bool
$sweep : bool
$x : float
$y : float
Return values
self

line()

Draws a line from the current position to another position.

public line(float $x, float $y) : self
Parameters
$x : float
$y : float
Return values
self

move()

Moves the drawing operation to a certain position.

public move(float $x, float $y) : self
Parameters
$x : float
$y : float
Return values
self

translate()

public translate(float $x, float $y) : self
Parameters
$x : float
$y : float
Return values
self

Search results