Files
esengine/source/docs/classes/_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html
2020-11-20 14:07:34 +08:00

873 lines
58 KiB
HTML

<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>RectanglePacker | @esengine/egret-framework</title>
<meta name="description" content="Documentation for @esengine/egret-framework">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">@esengine/egret-framework</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="../modules/_utils_runtimespritesheet_rectanglepacker_.html">&quot;Utils/RuntimeSpriteSheet/RectanglePacker&quot;</a>
</li>
<li>
<a href="../modules/_utils_runtimespritesheet_rectanglepacker_.es.html">es</a>
</li>
<li>
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html">RectanglePacker</a>
</li>
</ul>
<h1>Class RectanglePacker</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>类用于在容器矩形内包装矩形,并具有接近最优解。</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">RectanglePacker</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Constructors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-private tsd-is-private-protected">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_freeareas" class="tsd-kind-icon">_free<wbr>Areas</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_height" class="tsd-kind-icon">_height</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_insertlist" class="tsd-kind-icon">_insert<wbr>List</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_insertedrectangles" class="tsd-kind-icon">_inserted<wbr>Rectangles</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_newfreeareas" class="tsd-kind-icon">_new<wbr>Free<wbr>Areas</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_outsiderectangle" class="tsd-kind-icon">_outside<wbr>Rectangle</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_packedheight" class="tsd-kind-icon">_packed<wbr>Height</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_packedwidth" class="tsd-kind-icon">_packed<wbr>Width</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_padding" class="tsd-kind-icon">_padding</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_rectanglestack" class="tsd-kind-icon">_rectangle<wbr>Stack</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_sortablesizestack" class="tsd-kind-icon">_sortable<wbr>Size<wbr>Stack</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_width" class="tsd-kind-icon">_width</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Accessors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#packedheight" class="tsd-kind-icon">packed<wbr>Height</a></li>
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#packedwidth" class="tsd-kind-icon">packed<wbr>Width</a></li>
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#padding" class="tsd-kind-icon">padding</a></li>
<li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#rectanglecount" class="tsd-kind-icon">rectangle<wbr>Count</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#allocaterectangle" class="tsd-kind-icon">allocate<wbr>Rectangle</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#allocatesize" class="tsd-kind-icon">allocate<wbr>Size</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#filterselfsubareas" class="tsd-kind-icon">filter<wbr>Self<wbr>Sub<wbr>Areas</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#freerectangle" class="tsd-kind-icon">free<wbr>Rectangle</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#freesize" class="tsd-kind-icon">free<wbr>Size</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#generatedividedareas" class="tsd-kind-icon">generate<wbr>Divided<wbr>Areas</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#generatenewfreeareas" class="tsd-kind-icon">generate<wbr>New<wbr>Free<wbr>Areas</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#getfreeareaindex" class="tsd-kind-icon">get<wbr>Free<wbr>Area<wbr>Index</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#getrectangle" class="tsd-kind-icon">get<wbr>Rectangle</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#getrectangleid" class="tsd-kind-icon">get<wbr>Rectangle<wbr>Id</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#insertrectangle" class="tsd-kind-icon">insert<wbr>Rectangle</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#packrectangles" class="tsd-kind-icon">pack<wbr>Rectangles</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#reset" class="tsd-kind-icon">reset</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Constructors</h2>
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">new <wbr>Rectangle<wbr>Packer<span class="tsd-signature-symbol">(</span>width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, padding<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html" class="tsd-signature-type">RectanglePacker</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L37">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:37</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>width: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>height: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> padding: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html" class="tsd-signature-type">RectanglePacker</a></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-private tsd-is-private-protected">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_freeareas" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _free<wbr>Areas</h3>
<div class="tsd-signature tsd-kind-icon">_free<wbr>Areas<span class="tsd-signature-symbol">:</span> <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L15">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:15</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_height" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _height</h3>
<div class="tsd-signature tsd-kind-icon">_height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L7">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:7</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_insertlist" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _insert<wbr>List</h3>
<div class="tsd-signature tsd-kind-icon">_insert<wbr>List<span class="tsd-signature-symbol">:</span> <a href="_utils_runtimespritesheet_sortablesize_.es.sortablesize.html" class="tsd-signature-type">SortableSize</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L13">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:13</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_insertedrectangles" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _inserted<wbr>Rectangles</h3>
<div class="tsd-signature tsd-kind-icon">_inserted<wbr>Rectangles<span class="tsd-signature-symbol">:</span> <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L14">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:14</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_newfreeareas" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _new<wbr>Free<wbr>Areas</h3>
<div class="tsd-signature tsd-kind-icon">_new<wbr>Free<wbr>Areas<span class="tsd-signature-symbol">:</span> <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L16">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:16</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_outsiderectangle" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _outside<wbr>Rectangle</h3>
<div class="tsd-signature tsd-kind-icon">_outside<wbr>Rectangle<span class="tsd-signature-symbol">:</span> <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L18">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:18</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_packedheight" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _packed<wbr>Height</h3>
<div class="tsd-signature tsd-kind-icon">_packed<wbr>Height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L11">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:11</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_packedwidth" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _packed<wbr>Width</h3>
<div class="tsd-signature tsd-kind-icon">_packed<wbr>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L10">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:10</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_padding" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _padding</h3>
<div class="tsd-signature tsd-kind-icon">_padding<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 8</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L8">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:8</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_rectanglestack" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _rectangle<wbr>Stack</h3>
<div class="tsd-signature tsd-kind-icon">_rectangle<wbr>Stack<span class="tsd-signature-symbol">:</span> <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L21">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:21</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_sortablesizestack" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _sortable<wbr>Size<wbr>Stack</h3>
<div class="tsd-signature tsd-kind-icon">_sortable<wbr>Size<wbr>Stack<span class="tsd-signature-symbol">:</span> <a href="_utils_runtimespritesheet_sortablesize_.es.sortablesize.html" class="tsd-signature-type">SortableSize</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L20">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:20</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_width" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _width</h3>
<div class="tsd-signature tsd-kind-icon">_width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L6">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:6</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Accessors</h2>
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
<a name="packedheight" class="tsd-anchor"></a>
<h3>packed<wbr>Height</h3>
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> packedHeight<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L31">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:31</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
<a name="packedwidth" class="tsd-anchor"></a>
<h3>packed<wbr>Width</h3>
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> packedWidth<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L27">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:27</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
<a name="padding" class="tsd-anchor"></a>
<h3>padding</h3>
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> padding<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L35">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:35</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
<a name="rectanglecount" class="tsd-anchor"></a>
<h3>rectangle<wbr>Count</h3>
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> rectangleCount<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L23">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:23</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="allocaterectangle" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> allocate<wbr>Rectangle</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">allocate<wbr>Rectangle<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L258">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:258</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>x: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>y: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>width: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>height: <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="allocatesize" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> allocate<wbr>Size</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">allocate<wbr>Size<span class="tsd-signature-symbol">(</span>width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_sortablesize_.es.sortablesize.html" class="tsd-signature-type">SortableSize</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L241">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:241</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>width: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>height: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>id: <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_utils_runtimespritesheet_sortablesize_.es.sortablesize.html" class="tsd-signature-type">SortableSize</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="filterselfsubareas" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> filter<wbr>Self<wbr>Sub<wbr>Areas</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">filter<wbr>Self<wbr>Sub<wbr>Areas<span class="tsd-signature-symbol">(</span>areas<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L152">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:152</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>areas: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="freerectangle" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> free<wbr>Rectangle</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">free<wbr>Rectangle<span class="tsd-signature-symbol">(</span>rectangle<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L274">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:274</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>rectangle: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="freesize" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> free<wbr>Size</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">free<wbr>Size<span class="tsd-signature-symbol">(</span>size<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_sortablesize_.es.sortablesize.html" class="tsd-signature-type">SortableSize</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L254">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:254</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>size: <a href="_utils_runtimespritesheet_sortablesize_.es.sortablesize.html" class="tsd-signature-type">SortableSize</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="generatedividedareas" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> generate<wbr>Divided<wbr>Areas</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">generate<wbr>Divided<wbr>Areas<span class="tsd-signature-symbol">(</span>divider<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a>, area<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a>, results<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L171">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:171</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>divider: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></h5>
</li>
<li>
<h5>area: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></h5>
</li>
<li>
<h5>results: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="generatenewfreeareas" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> generate<wbr>New<wbr>Free<wbr>Areas</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">generate<wbr>New<wbr>Free<wbr>Areas<span class="tsd-signature-symbol">(</span>target<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a>, areas<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span>, results<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L122">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:122</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>target: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></h5>
</li>
<li>
<h5>areas: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span></h5>
</li>
<li>
<h5>results: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">[]</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="getfreeareaindex" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> get<wbr>Free<wbr>Area<wbr>Index</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">get<wbr>Free<wbr>Area<wbr>Index<span class="tsd-signature-symbol">(</span>width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L205">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:205</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>width: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>height: <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getrectangle" class="tsd-anchor"></a>
<h3>get<wbr>Rectangle</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Rectangle<span class="tsd-signature-symbol">(</span>index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, rectangle<span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L107">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:107</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>index: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>rectangle: <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_utils_runtimespritesheet_integerrectangle_.es.integerrectangle.html" class="tsd-signature-type">IntegerRectangle</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getrectangleid" class="tsd-anchor"></a>
<h3>get<wbr>Rectangle<wbr>Id</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Rectangle<wbr>Id<span class="tsd-signature-symbol">(</span>index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L117">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:117</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>index: <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="insertrectangle" class="tsd-anchor"></a>
<h3>insert<wbr>Rectangle</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">insert<wbr>Rectangle<span class="tsd-signature-symbol">(</span>width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L65">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:65</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>width: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>height: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>id: <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="packrectangles" class="tsd-anchor"></a>
<h3>pack<wbr>Rectangles</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">pack<wbr>Rectangles<span class="tsd-signature-symbol">(</span>sort<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L70">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:70</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> sort: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="reset" class="tsd-anchor"></a>
<h3>reset</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">reset<span class="tsd-signature-symbol">(</span>width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, padding<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/Utils/RuntimeSpriteSheet/RectanglePacker.ts#L44">src/Utils/RuntimeSpriteSheet/RectanglePacker.ts:44</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>width: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>height: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> padding: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class="current tsd-kind-module">
<a href="../modules/_utils_runtimespritesheet_rectanglepacker_.html">&quot;<wbr>Utils/<wbr>Runtime<wbr>Sprite<wbr>Sheet/<wbr>Rectangle<wbr>Packer&quot;</a>
<ul>
<li class="current tsd-kind-namespace tsd-parent-kind-module">
<a href="../modules/_utils_runtimespritesheet_rectanglepacker_.es.html">es</a>
</li>
</ul>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-namespace">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html" class="tsd-kind-icon">Rectangle<wbr>Packer</a>
<ul>
<li class=" tsd-kind-constructor tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_freeareas" class="tsd-kind-icon">_free<wbr>Areas</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_height" class="tsd-kind-icon">_height</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_insertlist" class="tsd-kind-icon">_insert<wbr>List</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_insertedrectangles" class="tsd-kind-icon">_inserted<wbr>Rectangles</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_newfreeareas" class="tsd-kind-icon">_new<wbr>Free<wbr>Areas</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_outsiderectangle" class="tsd-kind-icon">_outside<wbr>Rectangle</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_packedheight" class="tsd-kind-icon">_packed<wbr>Height</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_packedwidth" class="tsd-kind-icon">_packed<wbr>Width</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_padding" class="tsd-kind-icon">_padding</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_rectanglestack" class="tsd-kind-icon">_rectangle<wbr>Stack</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_sortablesizestack" class="tsd-kind-icon">_sortable<wbr>Size<wbr>Stack</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#_width" class="tsd-kind-icon">_width</a>
</li>
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#packedheight" class="tsd-kind-icon">packed<wbr>Height</a>
</li>
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#packedwidth" class="tsd-kind-icon">packed<wbr>Width</a>
</li>
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#padding" class="tsd-kind-icon">padding</a>
</li>
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#rectanglecount" class="tsd-kind-icon">rectangle<wbr>Count</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#allocaterectangle" class="tsd-kind-icon">allocate<wbr>Rectangle</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#allocatesize" class="tsd-kind-icon">allocate<wbr>Size</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#filterselfsubareas" class="tsd-kind-icon">filter<wbr>Self<wbr>Sub<wbr>Areas</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#freerectangle" class="tsd-kind-icon">free<wbr>Rectangle</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#freesize" class="tsd-kind-icon">free<wbr>Size</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#generatedividedareas" class="tsd-kind-icon">generate<wbr>Divided<wbr>Areas</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#generatenewfreeareas" class="tsd-kind-icon">generate<wbr>New<wbr>Free<wbr>Areas</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#getfreeareaindex" class="tsd-kind-icon">get<wbr>Free<wbr>Area<wbr>Index</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#getrectangle" class="tsd-kind-icon">get<wbr>Rectangle</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#getrectangleid" class="tsd-kind-icon">get<wbr>Rectangle<wbr>Id</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#insertrectangle" class="tsd-kind-icon">insert<wbr>Rectangle</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#packrectangles" class="tsd-kind-icon">pack<wbr>Rectangles</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_utils_runtimespritesheet_rectanglepacker_.es.rectanglepacker.html#reset" class="tsd-kind-icon">reset</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>