|
@@ -49,7 +49,7 @@
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
|
- Base 2D object class, implements all the object positioning and scalling features.
|
|
|
+ Base object class, implements all the object positioning and scalling features.
Stores all the base properties shared between all objects as the position, transformation properties, children etc.
Object2D should be used as a group to store all the other objects drawn.
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -93,7 +93,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line12">line 12</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line16">line 16</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -187,7 +187,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line138">line 138</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line142">line 142</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -249,7 +249,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line22">line 22</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line26">line 26</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -311,7 +311,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line104">line 104</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line108">line 108</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -373,7 +373,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line78">line 78</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line82">line 82</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -435,7 +435,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line116">line 116</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line120">line 120</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -497,7 +497,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line85">line 85</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line89">line 89</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -559,7 +559,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line66">line 66</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line70">line 70</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -621,7 +621,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line34">line 34</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line38">line 38</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -683,7 +683,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line92">line 92</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line96">line 96</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -745,7 +745,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line71">line 71</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line75">line 75</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -807,7 +807,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line97">line 97</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line101">line 101</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -831,7 +831,7 @@
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
|
- Method called when the object its added to a parent.
Receives (parent) as arguments.
|
|
|
+ Method called when the object its added to a parent.
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -869,7 +869,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line279">line 279</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line316">line 316</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -931,7 +931,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line328">line 328</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line380">line 380</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -993,7 +993,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line321">line 321</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line370">line 370</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1055,7 +1055,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line335">line 335</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line390">line 390</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1117,7 +1117,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line300">line 300</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line340">line 340</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1179,7 +1179,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line307">line 307</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line350">line 350</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1241,7 +1241,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line314">line 314</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line360">line 360</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1265,7 +1265,7 @@
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
|
- Method called when the object gets removed from its parent
Receives (parent) as arguments.
|
|
|
+ Method called when the object gets removed from its parent
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -1303,7 +1303,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line286">line 286</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line323">line 323</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1365,7 +1365,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line293">line 293</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line330">line 330</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1427,7 +1427,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line44">line 44</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line48">line 48</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1489,7 +1489,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line27">line 27</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line31">line 31</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1551,7 +1551,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line111">line 111</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line115">line 115</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1613,7 +1613,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line133">line 133</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line137">line 137</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1675,7 +1675,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line39">line 39</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line43">line 43</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1737,7 +1737,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line126">line 126</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line130">line 130</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1799,7 +1799,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line54">line 54</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line58">line 58</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1861,7 +1861,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line121">line 121</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line125">line 125</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1923,7 +1923,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line49">line 49</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line53">line 53</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -1985,7 +1985,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line17">line 17</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line21">line 21</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2047,7 +2047,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line59">line 59</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line63">line 63</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2083,7 +2083,7 @@
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
|
- Attach a children to the object.
|
|
|
+ Attach a children to this object.
The object is set as children of this object and the transformations applied to this object are traversed to its children.
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -2124,6 +2124,11 @@
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
+
|
|
|
+<span class="param-type"><a href="Object2D.html">Object2D</a></span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</td>
|
|
|
|
|
|
|
|
@@ -2171,7 +2176,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line163">line 163</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line190">line 190</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2354,7 +2359,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line258">line 258</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line291">line 291</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2390,7 +2395,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <h4 class="name" id="isInside"><span class="type-signature"></span>isInside<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
|
+ <h4 class="name" id="getChildByUUID"><span class="type-signature"></span>getChildByUUID<span class="signature">(uuid)</span><span class="type-signature"> → {<a href="Object2D.html">Object2D</a>}</span></h4>
|
|
|
|
|
|
|
|
|
|
|
@@ -2398,7 +2403,7 @@
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
|
- Check if a point is inside of the object.
|
|
|
+ Get a object from its children list by its UUID.
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -2409,6 +2414,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ <h5>Parameters:</h5>
|
|
|
+
|
|
|
+
|
|
|
+<table class="params">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <th>Name</th>
|
|
|
+
|
|
|
+
|
|
|
+ <th>Type</th>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <th class="last">Description</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+
|
|
|
+ <tbody>
|
|
|
+
|
|
|
+
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td class="name"><code>uuid</code></td>
|
|
|
+
|
|
|
+
|
|
|
+ <td class="type">
|
|
|
+
|
|
|
+
|
|
|
+<span class="param-type">String</span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <td class="description last">UUID of the object to get.</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+</table>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -2442,7 +2496,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line209">line 209</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line168">line 168</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2467,6 +2521,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
+<h5>Returns:</h5>
|
|
|
+
|
|
|
+
|
|
|
+<div class="param-desc">
|
|
|
+ The object that has the UUID specified, null if the object was not found.
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<dl>
|
|
|
+ <dt>
|
|
|
+ Type
|
|
|
+ </dt>
|
|
|
+ <dd>
|
|
|
+
|
|
|
+<span class="param-type"><a href="Object2D.html">Object2D</a></span>
|
|
|
+
|
|
|
+
|
|
|
+ </dd>
|
|
|
+</dl>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -2478,7 +2554,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <h4 class="name" id="onPointerDrag"><span class="type-signature"></span>onPointerDrag<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
|
+ <h4 class="name" id="isInside"><span class="type-signature"></span>isInside<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<div class="description">
|
|
|
+ Check if a point is inside of the object.
Used to update the point events attached to the object.
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<dl class="details">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <dt class="tag-source">Source:</dt>
|
|
|
+ <dd class="tag-source"><ul class="dummy"><li>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line240">line 240</a>
|
|
|
+ </li></ul></dd>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</dl>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<h5>Returns:</h5>
|
|
|
+
|
|
|
+
|
|
|
+<div class="param-desc">
|
|
|
+ True if the point is inside of the object.
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<dl>
|
|
|
+ <dt>
|
|
|
+ Type
|
|
|
+ </dt>
|
|
|
+ <dd>
|
|
|
+
|
|
|
+<span class="param-type">boolean</span>
|
|
|
+
|
|
|
+
|
|
|
+ </dd>
|
|
|
+</dl>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <h4 class="name" id="onPointerDrag"><span class="type-signature"></span>onPointerDrag<span class="signature">(pointer, viewport, delta)</span><span class="type-signature"></span></h4>
|
|
|
|
|
|
|
|
|
|
|
@@ -2497,6 +2683,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ <h5>Parameters:</h5>
|
|
|
+
|
|
|
+
|
|
|
+<table class="params">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <th>Name</th>
|
|
|
+
|
|
|
+
|
|
|
+ <th>Type</th>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <th class="last">Description</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+
|
|
|
+ <tbody>
|
|
|
+
|
|
|
+
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td class="name"><code>pointer</code></td>
|
|
|
+
|
|
|
+
|
|
|
+ <td class="type">
|
|
|
+
|
|
|
+
|
|
|
+<span class="param-type"><a href="Pointer.html">Pointer</a></span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <td class="description last">Pointer object that receives the user input.</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td class="name"><code>viewport</code></td>
|
|
|
+
|
|
|
+
|
|
|
+ <td class="type">
|
|
|
+
|
|
|
+
|
|
|
+<span class="param-type"><a href="Viewport.html">Viewport</a></span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <td class="description last">Viewport where the object is drawn.</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td class="name"><code>delta</code></td>
|
|
|
+
|
|
|
+
|
|
|
+ <td class="type">
|
|
|
+
|
|
|
+
|
|
|
+<span class="param-type"><a href="Vector2.html">Vector2</a></span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <td class="description last">Pointer movement in world space.</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+</table>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -2530,7 +2811,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line269">line 269</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line306">line 306</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2615,6 +2896,11 @@
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
+
|
|
|
+<span class="param-type"><a href="Object2D.html">Object2D</a></span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</td>
|
|
|
|
|
|
|
|
@@ -2662,7 +2948,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line184">line 184</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line211">line 211</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2822,7 +3108,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line244">line 244</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line277">line 277</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2907,6 +3193,11 @@
|
|
|
|
|
|
<td class="type">
|
|
|
|
|
|
+
|
|
|
+<span class="param-type">function</span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</td>
|
|
|
|
|
|
|
|
@@ -2954,7 +3245,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line146">line 146</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line150">line 150</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -2990,7 +3281,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <h4 class="name" id="updateMatrix"><span class="type-signature"></span>updateMatrix<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
|
+ <h4 class="name" id="updateMatrix"><span class="type-signature"></span>updateMatrix<span class="signature">(context)</span><span class="type-signature"></span></h4>
|
|
|
|
|
|
|
|
|
|
|
@@ -3009,6 +3300,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ <h5>Parameters:</h5>
|
|
|
+
|
|
|
+
|
|
|
+<table class="params">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <th>Name</th>
|
|
|
+
|
|
|
+
|
|
|
+ <th>Type</th>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <th class="last">Description</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+
|
|
|
+ <tbody>
|
|
|
+
|
|
|
+
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td class="name"><code>context</code></td>
|
|
|
+
|
|
|
+
|
|
|
+ <td class="type">
|
|
|
+
|
|
|
+
|
|
|
+<span class="param-type">CanvasContext</span>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </td>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <td class="description last"></td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+</table>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -3042,7 +3382,7 @@
|
|
|
|
|
|
<dt class="tag-source">Source:</dt>
|
|
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
|
- <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line217">line 217</a>
|
|
|
+ <a href="Object2D.js.html">Object2D.js</a>, <a href="Object2D.js.html#line250">line 250</a>
|
|
|
</li></ul></dd>
|
|
|
|
|
|
|
|
@@ -3094,7 +3434,7 @@
|
|
|
<br class="clear">
|
|
|
|
|
|
<footer>
|
|
|
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Thu Jun 13 2019 11:59:09 GMT+0100 (Western European Summer Time)
|
|
|
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Mon Jun 17 2019 11:15:30 GMT+0100 (Western European Summer Time)
|
|
|
</footer>
|
|
|
|
|
|
<script> prettyPrint(); </script>
|