pubtool4pixi
Version:
Usefultool for PIXI xes project
1,280 lines (231 loc) • 12.1 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: BaseContainer</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: BaseContainer</h1>
<section>
<header>
<h2><span class="attribs"><span class="type-signature"></span></span>BaseContainer<span class="signature">(res, isPolar)</span><span class="type-signature"></span></h2>
<div class="class-description">组件基类.</div>
</header>
<article>
<div class="container-overview">
<h2>Constructor</h2>
<h4 class="name" id="BaseContainer"><span class="type-signature"></span>new BaseContainer<span class="signature">(res, isPolar)</span><span class="type-signature"></span></h4>
<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>res</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last">资源对象.</td>
</tr>
<tr>
<td class="name"><code>isPolar</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last">是否采用极坐标定位.</td>
</tr>
</tbody>
</table>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>parentContainer</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last">组件父容器</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line383">line 383</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id=".Destroy"><span class="type-signature">(static) </span>Destroy<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Destroy the instance
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line588">line 588</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".hide"><span class="type-signature">(static) </span>hide<span class="signature">(Is)</span><span class="type-signature"></span></h4>
<div class="description">
hide function.
</div>
<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>Is</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last">the container hided immediately</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line505">line 505</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".reset"><span class="type-signature">(static) </span>reset<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
remove all event and redo init function
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line577">line 577</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".show"><span class="type-signature">(static) </span>show<span class="signature">(Is)</span><span class="type-signature"></span></h4>
<div class="description">
show function.
</div>
<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>Is</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last">the container displayed immediately</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line471">line 471</a>
</li></ul></dd>
</dl>
<h3 class="subsection-title">Events</h3>
<h4 class="name" id=".event:beforeHide">beforeHide</h4>
<div class="description">
Fired before the instance hide
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line513">line 513</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".event:beforeShow">beforeShow</h4>
<div class="description">
Fired before the instance show
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line479">line 479</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".event:Destroyed">Destroyed</h4>
<div class="description">
Fired when the instance destroyed
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line597">line 597</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".event:onHide">onHide</h4>
<div class="description">
Fired after the instance hide
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line522">line 522</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".event:onShow">onShow</h4>
<div class="description">
Fired after the instance show
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line489">line 489</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".event:ParentChange">ParentChange</h4>
<div class="description">
Parent Change Event.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="easy.js.html">easy.js</a>, <a href="easy.js.html#line409">line 409</a>
</li></ul></dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Base.html">Base</a></li><li><a href="BaseContainer.html">BaseContainer</a></li><li><a href="BigMath_AniBtn.html">BigMath_AniBtn</a></li><li><a href="BigMath_GuideHand.html">BigMath_GuideHand</a></li><li><a href="BigMath_StarScoreBoard.html">BigMath_StarScoreBoard</a></li><li><a href="BigMath_Timer.html">BigMath_Timer</a></li><li><a href="HitContainer.html">HitContainer</a></li><li><a href="Preschool_aqiu.html">Preschool_aqiu</a></li><li><a href="Preschool_End.html">Preschool_End</a></li><li><a href="Preschool_HintBtn.html">Preschool_HintBtn</a></li><li><a href="Preschool_Start.html">Preschool_Start</a></li><li><a href="PUB_Mask.html">PUB_Mask</a></li></ul><h3>Events</h3><ul><li><a href="BaseContainer.html#.event:beforeHide">beforeHide</a></li><li><a href="BaseContainer.html#.event:beforeShow">beforeShow</a></li><li><a href="BaseContainer.html#.event:Destroyed">Destroyed</a></li><li><a href="BaseContainer.html#.event:onHide">onHide</a></li><li><a href="BaseContainer.html#.event:onShow">onShow</a></li><li><a href="BaseContainer.html#.event:ParentChange">ParentChange</a></li><li><a href="BigMath_AniBtn.html#.event:onClick">onClick</a></li><li><a href="BigMath_Timer.html#.event:onTimeRun">onTimeRun</a></li><li><a href="BigMath_Timer.html#.event:timeup">timeup</a></li><li><a href="Preschool_End.html#.event:gameOver">gameOver</a></li><li><a href="Preschool_Start.html#.event:startGame">startGame</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Wed Dec 18 2019 14:22:09 GMT+0800 (中国标准时间)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>