Update index.html

This commit is contained in:
Vadim Namniak
2014-06-27 09:22:26 -04:00
parent 85720124b5
commit 143cbbac7c
+12 -6
View File
@@ -20,7 +20,7 @@
</p> </p>
</header> </header>
<article> <article>
<h2>Syntax:</h2><br/> <h2>Syntax</h2><br/>
<p class="white-block">new CanvasTextWrapper(HTMLCanvasElement, String [, Options]);</p><br/> <p class="white-block">new CanvasTextWrapper(HTMLCanvasElement, String [, Options]);</p><br/>
@@ -31,7 +31,7 @@
<ul class="syntax"> <ul class="syntax">
<li> <li>
<div class="emph">font</div> <div class="emph">font</div>
(String) - text style that includes font size, family, etc. specified similarly to CSS (String) - text style that includes font size in px (REQUIRED), weight & family, etc. specified similarly to CSS
font shorthand property font shorthand property
</li> </li>
<li> <li>
@@ -82,9 +82,8 @@
</p> </p>
</li> </li>
</ul> </ul>
</article>
<article> <h2>Defaults</h2><br/>
<h2>Defaults & Usage:</h2><br/>
<p>The default options object which values will be used if a property is not specified or no object is passed:</p> <p>The default options object which values will be used if a property is not specified or no object is passed:</p>
@@ -99,6 +98,7 @@
</p> </p>
<br/> <br/>
<h2>Usage</h2><br/>
<p> <p>
Use standard canvas text drawing methods such as "fillStyle" and "globalCompositeOperation" when needed before Use standard canvas text drawing methods such as "fillStyle" and "globalCompositeOperation" when needed before
using CanvasTextWrapper like so: using CanvasTextWrapper like so:
@@ -114,6 +114,12 @@
context.globalCompositeOperation = "destination-out";<br/> context.globalCompositeOperation = "destination-out";<br/>
var wrapper = new CanvasTextWrapper(canvas, 'Hello'); // default options will apply<br/> var wrapper = new CanvasTextWrapper(canvas, 'Hello'); // default options will apply<br/>
</p> </p>
<h2>Installation</h2><br/>
<p class="white-block">
bower install canvas-text-wrapper<br/>
npm install canvas-text-wrapper
</p>
</article> </article>
<section> <section>
<h2>Examples:</h2> <h2>Examples:</h2>
@@ -122,4 +128,4 @@
&larr;&nbsp;<a href="https://github.com/namniak/CanvasTextWrapper">View on GitHub</a> &larr;&nbsp;<a href="https://github.com/namniak/CanvasTextWrapper">View on GitHub</a>
</footer> </footer>
</body> </body>
</html> </html>