Skip to content

Commit

Permalink
Add documentation for .text() method.
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Baranovskiy <dmitry.baranovskiy@gmail.com>
  • Loading branch information
fabacab authored and DmitryBaranovskiy committed Jan 27, 2009
1 parent 03d8fcc commit 1254ae1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.markdown
Expand Up @@ -293,6 +293,20 @@ Embeds an image into the SVG/VML canvas.

var c = paper.image("apple.png", 10, 10, 100, 100);

#### text

Draws a text string.

##### Parameters

1. x number X coordinate position
2. y number Y coordinate position
3. text string The text string to draw.

##### Usage

var t = paper.text(10, 10, "Look mom, I'm scalable!");

#### path

Initialises path drawing. Typically, this function returns an empty `path` object and to draw paths you use its built-in methods like `lineTo` and `curveTo`. However, you can also specify a path literally by supplying the path data as a second argument.
Expand Down
14 changes: 14 additions & 0 deletions reference.html
Expand Up @@ -289,6 +289,20 @@ <h4>Parameters</h4>
</ol>
<h4>Usage</h4>
<pre class="javascript code"><code>var c = paper.image("apple.png", 10, 10, 100, 100);</code></pre>
<h3 id="text">
text
</h3>
<p>
Draws a text string.
</p>
<h4>Parameters</h4>
<ol>
<li>x <em>number</em> X coordinate position.</li>
<li>y <em>number</em> Y coordinate position.</li>
<li>text <em>string</em> The text string to draw.</li>
</ol>
<h4>Usage</h4>
<pre class="javascript code"><code>var t = paper.text(10, 10, "Look mom, I'm scalable!");</code></pre>
<h3 id="path">
path
</h3>
Expand Down

0 comments on commit 1254ae1

Please sign in to comment.