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

1080 lines
65 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>FollowCamera | @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/_ecs_components_followcamera_.html">&quot;ECS/Components/FollowCamera&quot;</a>
</li>
<li>
<a href="../modules/_ecs_components_followcamera_.es.html">es</a>
</li>
<li>
<a href="_ecs_components_followcamera_.es.followcamera.html">FollowCamera</a>
</li>
</ul>
<h1>Class FollowCamera</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<a href="_ecs_component_.es.component.html" class="tsd-signature-type">Component</a>
<ul class="tsd-hierarchy">
<li>
<span class="target">FollowCamera</span>
</li>
</ul>
</li>
</ul>
</section>
<section class="tsd-panel">
<h3>Implements</h3>
<ul class="tsd-hierarchy">
<li><span class="tsd-signature-type">IHashObject</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 tsd-is-overwrite"><a href="_ecs_components_followcamera_.es.followcamera.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-private"><a href="_ecs_components_followcamera_.es.followcamera.html#_hashcode" class="tsd-kind-icon">$hash<wbr>Code</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#_camerastyle" class="tsd-kind-icon">_camera<wbr>Style</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#_desiredpositiondelta" class="tsd-kind-icon">_desired<wbr>Position<wbr>Delta</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#_targetcollider" class="tsd-kind-icon">_target<wbr>Collider</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#_targetentity" class="tsd-kind-icon">_target<wbr>Entity</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#_worldspacedeadzone" class="tsd-kind-icon">_world<wbr>Space<wbr>Dead<wbr>Zone</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#camera" class="tsd-kind-icon">camera</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#deadzone" class="tsd-kind-icon">deadzone</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#debugdisplayobject" class="tsd-kind-icon">debug<wbr>Display<wbr>Object</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#entity" class="tsd-kind-icon">entity</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#focusoffset" class="tsd-kind-icon">focus<wbr>Offset</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#followlerp" class="tsd-kind-icon">follow<wbr>Lerp</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#hashcode" class="tsd-kind-icon">hash<wbr>Code</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#maplockenabled" class="tsd-kind-icon">map<wbr>Lock<wbr>Enabled</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#mapsize" class="tsd-kind-icon">map<wbr>Size</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_ecs_components_followcamera_.es.followcamera.html#rectshape" class="tsd-kind-icon">rect<wbr>Shape</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#updateinterval" class="tsd-kind-icon">update<wbr>Interval</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-inherited">
<h3>Accessors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#enabled" class="tsd-kind-icon">enabled</a></li>
<li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#transform" class="tsd-kind-icon">transform</a></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#updateorder" class="tsd-kind-icon">update<wbr>Order</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"><a href="_ecs_components_followcamera_.es.followcamera.html#clamptomapsize" class="tsd-kind-icon">clamp<wbr>ToMap<wbr>Size</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="_ecs_components_followcamera_.es.followcamera.html#debugrender" class="tsd-kind-icon">debug<wbr>Render</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#follow" class="tsd-kind-icon">follow</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#initialize" class="tsd-kind-icon">initialize</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="_ecs_components_followcamera_.es.followcamera.html#onaddedtoentity" class="tsd-kind-icon">on<wbr>Added<wbr>ToEntity</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#ondisabled" class="tsd-kind-icon">on<wbr>Disabled</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#onenabled" class="tsd-kind-icon">on<wbr>Enabled</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#onentitytransformchanged" class="tsd-kind-icon">on<wbr>Entity<wbr>Transform<wbr>Changed</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#ongraphicsdevicereset" class="tsd-kind-icon">on<wbr>Graphics<wbr>Device<wbr>Reset</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#onremovedfromentity" class="tsd-kind-icon">on<wbr>Removed<wbr>From<wbr>Entity</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#setcentereddeadzone" class="tsd-kind-icon">set<wbr>Centered<wbr>Deadzone</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#setenabled" class="tsd-kind-icon">set<wbr>Enabled</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_ecs_components_followcamera_.es.followcamera.html#setupdateorder" class="tsd-kind-icon">set<wbr>Update<wbr>Order</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="_ecs_components_followcamera_.es.followcamera.html#update" class="tsd-kind-icon">update</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ecs_components_followcamera_.es.followcamera.html#updatefollow" class="tsd-kind-icon">update<wbr>Follow</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 tsd-is-overwrite">
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
<li class="tsd-signature tsd-kind-icon">new <wbr>Follow<wbr>Camera<span class="tsd-signature-symbol">(</span>targetEntity<span class="tsd-signature-symbol">?: </span><a href="_ecs_entity_.es.entity.html" class="tsd-signature-type">Entity</a>, camera<span class="tsd-signature-symbol">?: </span><a href="_ecs_components_camera_.es.camera.html" class="tsd-signature-type">Camera</a>, cameraStyle<span class="tsd-signature-symbol">?: </span><a href="../enums/_ecs_components_followcamera_.es.camerastyle.html" class="tsd-signature-type">CameraStyle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_ecs_components_followcamera_.es.followcamera.html" class="tsd-signature-type">FollowCamera</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Overrides <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L39">src/ECS/Components/FollowCamera.ts:39</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> targetEntity: <a href="_ecs_entity_.es.entity.html" class="tsd-signature-type">Entity</a><span class="tsd-signature-symbol"> = null</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> camera: <a href="_ecs_components_camera_.es.camera.html" class="tsd-signature-type">Camera</a><span class="tsd-signature-symbol"> = null</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> cameraStyle: <a href="../enums/_ecs_components_followcamera_.es.camerastyle.html" class="tsd-signature-type">CameraStyle</a><span class="tsd-signature-symbol"> = CameraStyle.lockOn</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_ecs_components_followcamera_.es.followcamera.html" class="tsd-signature-type">FollowCamera</a></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-private">
<a name="_hashcode" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> $hash<wbr>Code</h3>
<div class="tsd-signature tsd-kind-icon">$hash<wbr>Code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_core_.es.core.html">Core</a>.<a href="_ecs_core_.es.core.html#_hashcode">$hashCode</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L71">lib/egret.d.ts:71</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="_camerastyle" class="tsd-anchor"></a>
<h3>_camera<wbr>Style</h3>
<div class="tsd-signature tsd-kind-icon">_camera<wbr>Style<span class="tsd-signature-symbol">:</span> <a href="../enums/_ecs_components_followcamera_.es.camerastyle.html" class="tsd-signature-type">CameraStyle</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L36">src/ECS/Components/FollowCamera.ts:36</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="_desiredpositiondelta" class="tsd-anchor"></a>
<h3>_desired<wbr>Position<wbr>Delta</h3>
<div class="tsd-signature tsd-kind-icon">_desired<wbr>Position<wbr>Delta<span class="tsd-signature-symbol">:</span> <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol"> = new Vector2()</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L35">src/ECS/Components/FollowCamera.ts:35</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="_targetcollider" class="tsd-anchor"></a>
<h3>_target<wbr>Collider</h3>
<div class="tsd-signature tsd-kind-icon">_target<wbr>Collider<span class="tsd-signature-symbol">:</span> <a href="_ecs_components_physics_colliders_collider_.es.collider.html" class="tsd-signature-type">Collider</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L34">src/ECS/Components/FollowCamera.ts:34</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="_targetentity" class="tsd-anchor"></a>
<h3>_target<wbr>Entity</h3>
<div class="tsd-signature tsd-kind-icon">_target<wbr>Entity<span class="tsd-signature-symbol">:</span> <a href="_ecs_entity_.es.entity.html" class="tsd-signature-type">Entity</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L33">src/ECS/Components/FollowCamera.ts:33</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="_worldspacedeadzone" class="tsd-anchor"></a>
<h3>_world<wbr>Space<wbr>Dead<wbr>Zone</h3>
<div class="tsd-signature tsd-kind-icon">_world<wbr>Space<wbr>Dead<wbr>Zone<span class="tsd-signature-symbol">:</span> <a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a><span class="tsd-signature-symbol"> = new Rectangle()</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L37">src/ECS/Components/FollowCamera.ts:37</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="camera" class="tsd-anchor"></a>
<h3>camera</h3>
<div class="tsd-signature tsd-kind-icon">camera<span class="tsd-signature-symbol">:</span> <a href="_ecs_components_camera_.es.camera.html" class="tsd-signature-type">Camera</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L8">src/ECS/Components/FollowCamera.ts:8</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="deadzone" class="tsd-anchor"></a>
<h3>deadzone</h3>
<div class="tsd-signature tsd-kind-icon">deadzone<span class="tsd-signature-symbol">:</span> <a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a><span class="tsd-signature-symbol"> = new Rectangle()</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L19">src/ECS/Components/FollowCamera.ts:19</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>在cameraWindow模式下宽度/高度被用做边界框,允许在不移动相机的情况下移动
在lockOn模式下只使用deadZone的x/y值 你可以通过直接setCenteredDeadzone重写它来自定义deadZone</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a name="debugdisplayobject" class="tsd-anchor"></a>
<h3>debug<wbr>Display<wbr>Object</h3>
<div class="tsd-signature tsd-kind-icon">debug<wbr>Display<wbr>Object<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DisplayObjectContainer</span><span class="tsd-signature-symbol"> = new egret.DisplayObjectContainer()</span></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#debugdisplayobject">debugDisplayObject</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L22">src/ECS/Component.ts:22</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>用于装载debug使用的显示容器</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a name="entity" class="tsd-anchor"></a>
<h3>entity</h3>
<div class="tsd-signature tsd-kind-icon">entity<span class="tsd-signature-symbol">:</span> <a href="_ecs_entity_.es.entity.html" class="tsd-signature-type">Entity</a></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#entity">entity</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L14">src/ECS/Component.ts:14</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>此组件附加的实体</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="focusoffset" class="tsd-anchor"></a>
<h3>focus<wbr>Offset</h3>
<div class="tsd-signature tsd-kind-icon">focus<wbr>Offset<span class="tsd-signature-symbol">:</span> <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol"> = Vector2.zero</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L23">src/ECS/Components/FollowCamera.ts:23</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>相机聚焦于屏幕中心的偏移</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="followlerp" class="tsd-anchor"></a>
<h3>follow<wbr>Lerp</h3>
<div class="tsd-signature tsd-kind-icon">follow<wbr>Lerp<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0.1</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L14">src/ECS/Components/FollowCamera.ts:14</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>如果相机模式为cameraWindow 则会进行缓动移动
该值为移动速度</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a name="hashcode" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagReadonly">Readonly</span> hash<wbr>Code</h3>
<div class="tsd-signature tsd-kind-icon">hash<wbr>Code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_core_.es.core.html">Core</a>.<a href="_ecs_core_.es.core.html#hashcode">hashCode</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/lib/egret.d.ts#L84">lib/egret.d.ts:84</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。</p>
</div>
<dl class="tsd-comment-tags">
<dt>version</dt>
<dd><p>Egret 2.4</p>
</dd>
<dt>platform</dt>
<dd><p>Web,Native</p>
</dd>
<dt>language</dt>
<dd><p>zh_CN</p>
</dd>
</dl>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="maplockenabled" class="tsd-anchor"></a>
<h3>map<wbr>Lock<wbr>Enabled</h3>
<div class="tsd-signature tsd-kind-icon">map<wbr>Lock<wbr>Enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L27">src/ECS/Components/FollowCamera.ts:27</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>如果为true 相机位置则不会超出地图矩形0, 0, mapwidth, mapheight</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="mapsize" class="tsd-anchor"></a>
<h3>map<wbr>Size</h3>
<div class="tsd-signature tsd-kind-icon">map<wbr>Size<span class="tsd-signature-symbol">:</span> <a href="_math_rectangle_.es.rectangle.html" class="tsd-signature-type">Rectangle</a><span class="tsd-signature-symbol"> = new Rectangle()</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L31">src/ECS/Components/FollowCamera.ts:31</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>當前地圖映射的寬度和高度</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="rectshape" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> rect<wbr>Shape</h3>
<div class="tsd-signature tsd-kind-icon">rect<wbr>Shape<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Shape</span><span class="tsd-signature-symbol"> = new egret.Shape()</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L39">src/ECS/Components/FollowCamera.ts:39</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a name="updateinterval" class="tsd-anchor"></a>
<h3>update<wbr>Interval</h3>
<div class="tsd-signature tsd-kind-icon">update<wbr>Interval<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#updateinterval">updateInterval</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L18">src/ECS/Component.ts:18</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>更新该组件的时间间隔。这与实体的更新间隔无关。</p>
</div>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
<h2>Accessors</h2>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
<a name="enabled" class="tsd-anchor"></a>
<h3>enabled</h3>
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> enabled<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> enabled<span class="tsd-signature-symbol">(</span>value<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">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#enabled">enabled</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L36">src/ECS/Component.ts:36</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>如果组件和实体都已启用则为。当启用该组件时将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#enabled">enabled</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L44">src/ECS/Component.ts:44</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>如果组件和实体都已启用则为。当启用该组件时将调用该组件的生命周期方法。状态的改变会导致调用onEnabled/onDisable。</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>value: <span class="tsd-signature-type">boolean</span></h5>
<div class="tsd-comment tsd-typography">
</div>
</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-get-signature tsd-parent-kind-class tsd-is-inherited">
<a name="transform" class="tsd-anchor"></a>
<h3>transform</h3>
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> transform<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_ecs_transform_.es.transform.html" class="tsd-signature-type">Transform</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#transform">transform</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L27">src/ECS/Component.ts:27</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>快速访问 this.entity.transform</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <a href="_ecs_transform_.es.transform.html" class="tsd-signature-type">Transform</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
<a name="updateorder" class="tsd-anchor"></a>
<h3>update<wbr>Order</h3>
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> updateOrder<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>
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> updateOrder<span class="tsd-signature-symbol">(</span>value<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">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#updateorder">updateOrder</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L51">src/ECS/Component.ts:51</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>更新此实体上组件的顺序</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#updateorder">updateOrder</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L56">src/ECS/Component.ts:56</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>更新此实体上组件的顺序</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>value: <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>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="clamptomapsize" class="tsd-anchor"></a>
<h3>clamp<wbr>ToMap<wbr>Size</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">clamp<wbr>ToMap<wbr>Size<span class="tsd-signature-symbol">(</span>position<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</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/ECS/Components/FollowCamera.ts#L110">src/ECS/Components/FollowCamera.ts:110</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>固定相机 永远不会离开地图的可见区域</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>position: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
<div class="tsd-comment tsd-typography">
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
<a name="debugrender" class="tsd-anchor"></a>
<h3>debug<wbr>Render</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
<li class="tsd-signature tsd-kind-icon">debug<wbr>Render<span class="tsd-signature-symbol">(</span>camera<span class="tsd-signature-symbol">: </span><a href="_ecs_components_camera_.es.camera.html" class="tsd-signature-type">Camera</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">
<p>Overrides <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#debugrender">debugRender</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L85">src/ECS/Components/FollowCamera.ts:85</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>camera: <a href="_ecs_components_camera_.es.camera.html" class="tsd-signature-type">Camera</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">
<a name="follow" class="tsd-anchor"></a>
<h3>follow</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">follow<span class="tsd-signature-symbol">(</span>targetEntity<span class="tsd-signature-symbol">: </span><a href="_ecs_entity_.es.entity.html" class="tsd-signature-type">Entity</a>, cameraStyle<span class="tsd-signature-symbol">?: </span><a href="../enums/_ecs_components_followcamera_.es.camerastyle.html" class="tsd-signature-type">CameraStyle</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/ECS/Components/FollowCamera.ts#L117">src/ECS/Components/FollowCamera.ts:117</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>targetEntity: <a href="_ecs_entity_.es.entity.html" class="tsd-signature-type">Entity</a></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> cameraStyle: <a href="../enums/_ecs_components_followcamera_.es.camerastyle.html" class="tsd-signature-type">CameraStyle</a><span class="tsd-signature-symbol"> = CameraStyle.cameraWindow</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-inherited">
<a name="initialize" class="tsd-anchor"></a>
<h3>initialize</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">initialize<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">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#initialize">initialize</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L63">src/ECS/Component.ts:63</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>当此组件已分配其实体,但尚未添加到实体的活动组件列表时调用。有用的东西,如物理组件,需要访问转换来修改碰撞体的属性。</p>
</div>
</div>
<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-overwrite">
<a name="onaddedtoentity" class="tsd-anchor"></a>
<h3>on<wbr>Added<wbr>ToEntity</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
<li class="tsd-signature tsd-kind-icon">on<wbr>Added<wbr>ToEntity<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">
<p>Overrides <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#onaddedtoentity">onAddedToEntity</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L49">src/ECS/Components/FollowCamera.ts:49</a></li>
</ul>
</aside>
<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-inherited">
<a name="ondisabled" class="tsd-anchor"></a>
<h3>on<wbr>Disabled</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">on<wbr>Disabled<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">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#ondisabled">onDisabled</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L100">src/ECS/Component.ts:100</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>禁用父实体或此组件时调用</p>
</div>
</div>
<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-inherited">
<a name="onenabled" class="tsd-anchor"></a>
<h3>on<wbr>Enabled</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">on<wbr>Enabled<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">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#onenabled">onEnabled</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L94">src/ECS/Component.ts:94</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>当父实体或此组件启用时调用</p>
</div>
</div>
<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-inherited">
<a name="onentitytransformchanged" class="tsd-anchor"></a>
<h3>on<wbr>Entity<wbr>Transform<wbr>Changed</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">on<wbr>Entity<wbr>Transform<wbr>Changed<span class="tsd-signature-symbol">(</span>comp<span class="tsd-signature-symbol">: </span><a href="../enums/_ecs_transform_.transform.component.html" class="tsd-signature-type">Component</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">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#onentitytransformchanged">onEntityTransformChanged</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L82">src/ECS/Component.ts:82</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>当实体的位置改变时调用。这允许组件知道它们由于父实体的移动而移动了。</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>comp: <a href="../enums/_ecs_transform_.transform.component.html" class="tsd-signature-type">Component</a></h5>
<div class="tsd-comment tsd-typography">
</div>
</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="ongraphicsdevicereset" class="tsd-anchor"></a>
<h3>on<wbr>Graphics<wbr>Device<wbr>Reset</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">on<wbr>Graphics<wbr>Device<wbr>Reset<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/ECS/Components/FollowCamera.ts#L58">src/ECS/Components/FollowCamera.ts:58</a></li>
</ul>
</aside>
<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-inherited">
<a name="onremovedfromentity" class="tsd-anchor"></a>
<h3>on<wbr>Removed<wbr>From<wbr>Entity</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">on<wbr>Removed<wbr>From<wbr>Entity<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">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#onremovedfromentity">onRemovedFromEntity</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L75">src/ECS/Component.ts:75</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>当此组件从其实体中移除时调用。在这里做所有的清理工作。</p>
</div>
</div>
<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="setcentereddeadzone" class="tsd-anchor"></a>
<h3>set<wbr>Centered<wbr>Deadzone</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">set<wbr>Centered<wbr>Deadzone<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">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/ECS/Components/FollowCamera.ts#L177">src/ECS/Components/FollowCamera.ts:177</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>以给定的尺寸设置当前相机边界中心的死区</p>
</div>
</div>
<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>
<div class="tsd-comment tsd-typography">
</div>
</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-inherited">
<a name="setenabled" class="tsd-anchor"></a>
<h3>set<wbr>Enabled</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">set<wbr>Enabled<span class="tsd-signature-symbol">(</span>isEnabled<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">this</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#setenabled">setEnabled</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L109">src/ECS/Component.ts:109</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>isEnabled: <span class="tsd-signature-type">boolean</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a name="setupdateorder" class="tsd-anchor"></a>
<h3>set<wbr>Update<wbr>Order</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">set<wbr>Update<wbr>Order<span class="tsd-signature-symbol">(</span>updateOrder<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">this</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#setupdateorder">setUpdateOrder</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Component.ts#L123">src/ECS/Component.ts:123</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>updateOrder: <span class="tsd-signature-type">number</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">this</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
<a name="update" class="tsd-anchor"></a>
<h3>update</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
<li class="tsd-signature tsd-kind-icon">update<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">
<p>Overrides <a href="_ecs_component_.es.component.html">Component</a>.<a href="_ecs_component_.es.component.html#update">update</a></p>
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/ECS/Components/FollowCamera.ts#L66">src/ECS/Components/FollowCamera.ts:66</a></li>
</ul>
</aside>
<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="updatefollow" class="tsd-anchor"></a>
<h3>update<wbr>Follow</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">update<wbr>Follow<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/ECS/Components/FollowCamera.ts#L134">src/ECS/Components/FollowCamera.ts:134</a></li>
</ul>
</aside>
<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/_ecs_components_followcamera_.html">&quot;ECS/<wbr>Components/<wbr>Follow<wbr>Camera&quot;</a>
<ul>
<li class="current tsd-kind-namespace tsd-parent-kind-module">
<a href="../modules/_ecs_components_followcamera_.es.html">es</a>
</li>
</ul>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-enum tsd-parent-kind-namespace">
<a href="../enums/_ecs_components_followcamera_.es.camerastyle.html" class="tsd-kind-icon">Camera<wbr>Style</a>
</li>
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-namespace">
<a href="_ecs_components_followcamera_.es.followcamera.html" class="tsd-kind-icon">Follow<wbr>Camera</a>
<ul>
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
<a href="_ecs_components_followcamera_.es.followcamera.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-private">
<a href="_ecs_components_followcamera_.es.followcamera.html#_hashcode" class="tsd-kind-icon">$hash<wbr>Code</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#_camerastyle" class="tsd-kind-icon">_camera<wbr>Style</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#_desiredpositiondelta" class="tsd-kind-icon">_desired<wbr>Position<wbr>Delta</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#_targetcollider" class="tsd-kind-icon">_target<wbr>Collider</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#_targetentity" class="tsd-kind-icon">_target<wbr>Entity</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#_worldspacedeadzone" class="tsd-kind-icon">_world<wbr>Space<wbr>Dead<wbr>Zone</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#camera" class="tsd-kind-icon">camera</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#deadzone" class="tsd-kind-icon">deadzone</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#debugdisplayobject" class="tsd-kind-icon">debug<wbr>Display<wbr>Object</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#entity" class="tsd-kind-icon">entity</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#focusoffset" class="tsd-kind-icon">focus<wbr>Offset</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#followlerp" class="tsd-kind-icon">follow<wbr>Lerp</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#hashcode" class="tsd-kind-icon">hash<wbr>Code</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#maplockenabled" class="tsd-kind-icon">map<wbr>Lock<wbr>Enabled</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#mapsize" class="tsd-kind-icon">map<wbr>Size</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_ecs_components_followcamera_.es.followcamera.html#rectshape" class="tsd-kind-icon">rect<wbr>Shape</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#updateinterval" class="tsd-kind-icon">update<wbr>Interval</a>
</li>
<li class=" tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#enabled" class="tsd-kind-icon">enabled</a>
</li>
<li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#transform" class="tsd-kind-icon">transform</a>
</li>
<li class=" tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#updateorder" class="tsd-kind-icon">update<wbr>Order</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#clamptomapsize" class="tsd-kind-icon">clamp<wbr>ToMap<wbr>Size</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
<a href="_ecs_components_followcamera_.es.followcamera.html#debugrender" class="tsd-kind-icon">debug<wbr>Render</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#follow" class="tsd-kind-icon">follow</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#initialize" class="tsd-kind-icon">initialize</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
<a href="_ecs_components_followcamera_.es.followcamera.html#onaddedtoentity" class="tsd-kind-icon">on<wbr>Added<wbr>ToEntity</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#ondisabled" class="tsd-kind-icon">on<wbr>Disabled</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#onenabled" class="tsd-kind-icon">on<wbr>Enabled</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#onentitytransformchanged" class="tsd-kind-icon">on<wbr>Entity<wbr>Transform<wbr>Changed</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#ongraphicsdevicereset" class="tsd-kind-icon">on<wbr>Graphics<wbr>Device<wbr>Reset</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#onremovedfromentity" class="tsd-kind-icon">on<wbr>Removed<wbr>From<wbr>Entity</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#setcentereddeadzone" class="tsd-kind-icon">set<wbr>Centered<wbr>Deadzone</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#setenabled" class="tsd-kind-icon">set<wbr>Enabled</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a href="_ecs_components_followcamera_.es.followcamera.html#setupdateorder" class="tsd-kind-icon">set<wbr>Update<wbr>Order</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
<a href="_ecs_components_followcamera_.es.followcamera.html#update" class="tsd-kind-icon">update</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ecs_components_followcamera_.es.followcamera.html#updatefollow" class="tsd-kind-icon">update<wbr>Follow</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-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</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-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</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-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</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>
</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>