chillerlan-QRCode-Detector-FinderPattern.html 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-detector.html">Detector</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. FinderPattern
  89. <span class="phpdocumentor-element__extends">
  90. extends <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html"><abbr title="\chillerlan\QRCode\Detector\ResultPoint">ResultPoint</abbr></a>
  91. </span>
  92. <div class="phpdocumentor-element__package">
  93. in package
  94. <ul class="phpdocumentor-breadcrumbs">
  95. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  96. </ul>
  97. </div>
  98. </h2>
  99. <aside class="phpdocumentor-element-found-in">
  100. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">23</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">&lt;p&gt;Encapsulates a finder pattern, which are the three square patterns found in
  105. the corners of QR Codes. It also encapsulates a count of similar finder patterns,
  106. as a convenience to the finder&#039;s bookkeeping.&lt;/p&gt;</p>
  107. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  108. Tags
  109. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  110. </h5>
  111. <dl class="phpdocumentor-tag-list">
  112. <dt class="phpdocumentor-tag-list__entry">
  113. <span class="phpdocumentor-tag__name">author</span>
  114. </dt>
  115. <dd class="phpdocumentor-tag-list__definition">
  116. <section class="phpdocumentor-description"><p>Sean Owen</p>
  117. </section>
  118. </dd>
  119. </dl>
  120. <h3 id="toc">
  121. Table of Contents
  122. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  123. </h3>
  124. <dl class="phpdocumentor-table-of-contents">
  125. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  126. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_estimatedModuleSize">$estimatedModuleSize</a>
  127. <span>
  128. &nbsp;: float </span>
  129. </dt>
  130. <dd></dd>
  131. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  132. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_x">$x</a>
  133. <span>
  134. &nbsp;: float </span>
  135. </dt>
  136. <dd></dd>
  137. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  138. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_y">$y</a>
  139. <span>
  140. &nbsp;: float </span>
  141. </dt>
  142. <dd></dd>
  143. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  144. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#property_count">$count</a>
  145. <span>
  146. &nbsp;: int </span>
  147. </dt>
  148. <dd></dd>
  149. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  150. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method___construct">__construct()</a>
  151. <span>
  152. &nbsp;: mixed </span>
  153. </dt>
  154. <dd></dd>
  155. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  156. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_aboutEquals">aboutEquals()</a>
  157. <span>
  158. &nbsp;: bool </span>
  159. </dt>
  160. <dd>&lt;p&gt;Determines if this finder pattern &quot;about equals&quot; a finder pattern at the stated
  161. position and size -- meaning, it is at nearly the same center with nearly the same size.&lt;/p&gt;</dd>
  162. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  163. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_combineEstimate">combineEstimate()</a>
  164. <span>
  165. &nbsp;: self </span>
  166. </dt>
  167. <dd>Combines this object&#039;s current estimate of a finder pattern position and module size
  168. with a new estimate. It returns a new {@code FinderPattern} containing a weighted average
  169. based on count.</dd>
  170. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  171. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_distance">distance()</a>
  172. <span>
  173. &nbsp;: float </span>
  174. </dt>
  175. <dd></dd>
  176. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  177. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getCount">getCount()</a>
  178. <span>
  179. &nbsp;: int </span>
  180. </dt>
  181. <dd></dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  183. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getDistance">getDistance()</a>
  184. <span>
  185. &nbsp;: float </span>
  186. </dt>
  187. <dd></dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  189. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getEstimatedModuleSize">getEstimatedModuleSize()</a>
  190. <span>
  191. &nbsp;: float </span>
  192. </dt>
  193. <dd></dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  195. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getSquaredDistance">getSquaredDistance()</a>
  196. <span>
  197. &nbsp;: float </span>
  198. </dt>
  199. <dd>Get square of distance between a and b.</dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  201. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getX">getX()</a>
  202. <span>
  203. &nbsp;: float </span>
  204. </dt>
  205. <dd></dd>
  206. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  207. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getY">getY()</a>
  208. <span>
  209. &nbsp;: float </span>
  210. </dt>
  211. <dd></dd>
  212. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  213. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_squaredDistance">squaredDistance()</a>
  214. <span>
  215. &nbsp;: float </span>
  216. </dt>
  217. <dd></dd>
  218. </dl>
  219. <section class="phpdocumentor-properties">
  220. <h3 class="phpdocumentor-elements__header" id="properties">
  221. Properties
  222. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  223. </h3>
  224. <article
  225. class="
  226. phpdocumentor-element
  227. -property
  228. -protected
  229. "
  230. >
  231. <h4 class="phpdocumentor-element__name" id="property_estimatedModuleSize">
  232. $estimatedModuleSize
  233. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_estimatedModuleSize" class="headerlink"><i class="fas fa-link"></i></a>
  234. <span class="phpdocumentor-element__modifiers">
  235. </span>
  236. </h4>
  237. <aside class="phpdocumentor-element-found-in">
  238. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  239. :
  240. <span class="phpdocumentor-element-found-in__line">26</span>
  241. </aside>
  242. <code class="phpdocumentor-code phpdocumentor-signature ">
  243. <span class="phpdocumentor-signature__visibility">protected</span>
  244. <span class="phpdocumentor-signature__type">float</span>
  245. <span class="phpdocumentor-signature__name">$estimatedModuleSize</span>
  246. </code>
  247. <section class="phpdocumentor-description"></section>
  248. <section class="phpdocumentor-description"></section>
  249. </article>
  250. <article
  251. class="
  252. phpdocumentor-element
  253. -property
  254. -protected
  255. "
  256. >
  257. <h4 class="phpdocumentor-element__name" id="property_x">
  258. $x
  259. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_x" class="headerlink"><i class="fas fa-link"></i></a>
  260. <span class="phpdocumentor-element__modifiers">
  261. </span>
  262. </h4>
  263. <aside class="phpdocumentor-element-found-in">
  264. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  265. :
  266. <span class="phpdocumentor-element-found-in__line">24</span>
  267. </aside>
  268. <code class="phpdocumentor-code phpdocumentor-signature ">
  269. <span class="phpdocumentor-signature__visibility">protected</span>
  270. <span class="phpdocumentor-signature__type">float</span>
  271. <span class="phpdocumentor-signature__name">$x</span>
  272. </code>
  273. <section class="phpdocumentor-description"></section>
  274. <section class="phpdocumentor-description"></section>
  275. </article>
  276. <article
  277. class="
  278. phpdocumentor-element
  279. -property
  280. -protected
  281. "
  282. >
  283. <h4 class="phpdocumentor-element__name" id="property_y">
  284. $y
  285. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#property_y" class="headerlink"><i class="fas fa-link"></i></a>
  286. <span class="phpdocumentor-element__modifiers">
  287. </span>
  288. </h4>
  289. <aside class="phpdocumentor-element-found-in">
  290. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  291. :
  292. <span class="phpdocumentor-element-found-in__line">25</span>
  293. </aside>
  294. <code class="phpdocumentor-code phpdocumentor-signature ">
  295. <span class="phpdocumentor-signature__visibility">protected</span>
  296. <span class="phpdocumentor-signature__type">float</span>
  297. <span class="phpdocumentor-signature__name">$y</span>
  298. </code>
  299. <section class="phpdocumentor-description"></section>
  300. <section class="phpdocumentor-description"></section>
  301. </article>
  302. <article
  303. class="
  304. phpdocumentor-element
  305. -property
  306. -private
  307. "
  308. >
  309. <h4 class="phpdocumentor-element__name" id="property_count">
  310. $count
  311. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#property_count" class="headerlink"><i class="fas fa-link"></i></a>
  312. <span class="phpdocumentor-element__modifiers">
  313. </span>
  314. </h4>
  315. <aside class="phpdocumentor-element-found-in">
  316. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  317. :
  318. <span class="phpdocumentor-element-found-in__line">25</span>
  319. </aside>
  320. <code class="phpdocumentor-code phpdocumentor-signature ">
  321. <span class="phpdocumentor-signature__visibility">private</span>
  322. <span class="phpdocumentor-signature__type">int</span>
  323. <span class="phpdocumentor-signature__name">$count</span>
  324. </code>
  325. <section class="phpdocumentor-description"></section>
  326. <section class="phpdocumentor-description"></section>
  327. </article>
  328. </section>
  329. <section class="phpdocumentor-methods">
  330. <h3 class="phpdocumentor-elements__header" id="methods">
  331. Methods
  332. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  333. </h3>
  334. <article
  335. class="phpdocumentor-element
  336. -method
  337. -public
  338. "
  339. >
  340. <h4 class="phpdocumentor-element__name" id="method___construct">
  341. __construct()
  342. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  343. </h4>
  344. <aside class="phpdocumentor-element-found-in">
  345. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  346. :
  347. <span class="phpdocumentor-element-found-in__line">30</span>
  348. </aside>
  349. <code class="phpdocumentor-code phpdocumentor-signature ">
  350. <span class="phpdocumentor-signature__visibility">public</span>
  351. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$posX</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$posY</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$estimatedModuleSize</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$count</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  352. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  353. <dl class="phpdocumentor-argument-list">
  354. <dt class="phpdocumentor-argument-list__entry">
  355. <span class="phpdocumentor-signature__argument__name">$posX</span>
  356. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  357. </dt>
  358. <dd class="phpdocumentor-argument-list__definition">
  359. <section class="phpdocumentor-description"></section>
  360. </dd>
  361. <dt class="phpdocumentor-argument-list__entry">
  362. <span class="phpdocumentor-signature__argument__name">$posY</span>
  363. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  364. </dt>
  365. <dd class="phpdocumentor-argument-list__definition">
  366. <section class="phpdocumentor-description"></section>
  367. </dd>
  368. <dt class="phpdocumentor-argument-list__entry">
  369. <span class="phpdocumentor-signature__argument__name">$estimatedModuleSize</span>
  370. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  371. </dt>
  372. <dd class="phpdocumentor-argument-list__definition">
  373. <section class="phpdocumentor-description"></section>
  374. </dd>
  375. <dt class="phpdocumentor-argument-list__entry">
  376. <span class="phpdocumentor-signature__argument__name">$count</span>
  377. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  378. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  379. <dd class="phpdocumentor-argument-list__definition">
  380. <section class="phpdocumentor-description"></section>
  381. </dd>
  382. </dl>
  383. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  384. <span class="phpdocumentor-signature__response_type">mixed</span>
  385. &mdash;
  386. </article>
  387. <article
  388. class="phpdocumentor-element
  389. -method
  390. -public
  391. "
  392. >
  393. <h4 class="phpdocumentor-element__name" id="method_aboutEquals">
  394. aboutEquals()
  395. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_aboutEquals" class="headerlink"><i class="fas fa-link"></i></a>
  396. </h4>
  397. <aside class="phpdocumentor-element-found-in">
  398. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  399. :
  400. <span class="phpdocumentor-element-found-in__line">62</span>
  401. </aside>
  402. <p class="phpdocumentor-summary">&lt;p&gt;Determines if this finder pattern &quot;about equals&quot; a finder pattern at the stated
  403. position and size -- meaning, it is at nearly the same center with nearly the same size.&lt;/p&gt;</p>
  404. <code class="phpdocumentor-code phpdocumentor-signature ">
  405. <span class="phpdocumentor-signature__visibility">public</span>
  406. <span class="phpdocumentor-signature__name">aboutEquals</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$moduleSize</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$j</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  407. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  408. <dl class="phpdocumentor-argument-list">
  409. <dt class="phpdocumentor-argument-list__entry">
  410. <span class="phpdocumentor-signature__argument__name">$moduleSize</span>
  411. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  412. </dt>
  413. <dd class="phpdocumentor-argument-list__definition">
  414. <section class="phpdocumentor-description"></section>
  415. </dd>
  416. <dt class="phpdocumentor-argument-list__entry">
  417. <span class="phpdocumentor-signature__argument__name">$i</span>
  418. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  419. </dt>
  420. <dd class="phpdocumentor-argument-list__definition">
  421. <section class="phpdocumentor-description"></section>
  422. </dd>
  423. <dt class="phpdocumentor-argument-list__entry">
  424. <span class="phpdocumentor-signature__argument__name">$j</span>
  425. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  426. </dt>
  427. <dd class="phpdocumentor-argument-list__definition">
  428. <section class="phpdocumentor-description"></section>
  429. </dd>
  430. </dl>
  431. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  432. <span class="phpdocumentor-signature__response_type">bool</span>
  433. &mdash;
  434. </article>
  435. <article
  436. class="phpdocumentor-element
  437. -method
  438. -public
  439. "
  440. >
  441. <h4 class="phpdocumentor-element__name" id="method_combineEstimate">
  442. combineEstimate()
  443. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_combineEstimate" class="headerlink"><i class="fas fa-link"></i></a>
  444. </h4>
  445. <aside class="phpdocumentor-element-found-in">
  446. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  447. :
  448. <span class="phpdocumentor-element-found-in__line">64</span>
  449. </aside>
  450. <p class="phpdocumentor-summary">Combines this object&#039;s current estimate of a finder pattern position and module size
  451. with a new estimate. It returns a new {@code FinderPattern} containing a weighted average
  452. based on count.</p>
  453. <code class="phpdocumentor-code phpdocumentor-signature ">
  454. <span class="phpdocumentor-signature__visibility">public</span>
  455. <span class="phpdocumentor-signature__name">combineEstimate</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$j</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$newModuleSize</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  456. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  457. <dl class="phpdocumentor-argument-list">
  458. <dt class="phpdocumentor-argument-list__entry">
  459. <span class="phpdocumentor-signature__argument__name">$i</span>
  460. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  461. </dt>
  462. <dd class="phpdocumentor-argument-list__definition">
  463. <section class="phpdocumentor-description"></section>
  464. </dd>
  465. <dt class="phpdocumentor-argument-list__entry">
  466. <span class="phpdocumentor-signature__argument__name">$j</span>
  467. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  468. </dt>
  469. <dd class="phpdocumentor-argument-list__definition">
  470. <section class="phpdocumentor-description"></section>
  471. </dd>
  472. <dt class="phpdocumentor-argument-list__entry">
  473. <span class="phpdocumentor-signature__argument__name">$newModuleSize</span>
  474. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  475. </dt>
  476. <dd class="phpdocumentor-argument-list__definition">
  477. <section class="phpdocumentor-description"></section>
  478. </dd>
  479. </dl>
  480. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  481. <span class="phpdocumentor-signature__response_type">self</span>
  482. &mdash;
  483. </article>
  484. <article
  485. class="phpdocumentor-element
  486. -method
  487. -public
  488. -static "
  489. >
  490. <h4 class="phpdocumentor-element__name" id="method_distance">
  491. distance()
  492. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_distance" class="headerlink"><i class="fas fa-link"></i></a>
  493. </h4>
  494. <aside class="phpdocumentor-element-found-in">
  495. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  496. :
  497. <span class="phpdocumentor-element-found-in__line">88</span>
  498. </aside>
  499. <code class="phpdocumentor-code phpdocumentor-signature ">
  500. <span class="phpdocumentor-signature__visibility">public</span>
  501. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">distance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$aX</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$aY</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bX</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bY</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  502. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  503. <dl class="phpdocumentor-argument-list">
  504. <dt class="phpdocumentor-argument-list__entry">
  505. <span class="phpdocumentor-signature__argument__name">$aX</span>
  506. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  507. </dt>
  508. <dd class="phpdocumentor-argument-list__definition">
  509. <section class="phpdocumentor-description"></section>
  510. </dd>
  511. <dt class="phpdocumentor-argument-list__entry">
  512. <span class="phpdocumentor-signature__argument__name">$aY</span>
  513. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  514. </dt>
  515. <dd class="phpdocumentor-argument-list__definition">
  516. <section class="phpdocumentor-description"></section>
  517. </dd>
  518. <dt class="phpdocumentor-argument-list__entry">
  519. <span class="phpdocumentor-signature__argument__name">$bX</span>
  520. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  521. </dt>
  522. <dd class="phpdocumentor-argument-list__definition">
  523. <section class="phpdocumentor-description"></section>
  524. </dd>
  525. <dt class="phpdocumentor-argument-list__entry">
  526. <span class="phpdocumentor-signature__argument__name">$bY</span>
  527. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  528. </dt>
  529. <dd class="phpdocumentor-argument-list__definition">
  530. <section class="phpdocumentor-description"></section>
  531. </dd>
  532. </dl>
  533. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  534. <span class="phpdocumentor-signature__response_type">float</span>
  535. &mdash;
  536. </article>
  537. <article
  538. class="phpdocumentor-element
  539. -method
  540. -public
  541. "
  542. >
  543. <h4 class="phpdocumentor-element__name" id="method_getCount">
  544. getCount()
  545. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getCount" class="headerlink"><i class="fas fa-link"></i></a>
  546. </h4>
  547. <aside class="phpdocumentor-element-found-in">
  548. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  549. :
  550. <span class="phpdocumentor-element-found-in__line">39</span>
  551. </aside>
  552. <code class="phpdocumentor-code phpdocumentor-signature ">
  553. <span class="phpdocumentor-signature__visibility">public</span>
  554. <span class="phpdocumentor-signature__name">getCount</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  555. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  556. <span class="phpdocumentor-signature__response_type">int</span>
  557. &mdash;
  558. </article>
  559. <article
  560. class="phpdocumentor-element
  561. -method
  562. -public
  563. "
  564. >
  565. <h4 class="phpdocumentor-element__name" id="method_getDistance">
  566. getDistance()
  567. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getDistance" class="headerlink"><i class="fas fa-link"></i></a>
  568. </h4>
  569. <aside class="phpdocumentor-element-found-in">
  570. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  571. :
  572. <span class="phpdocumentor-element-found-in__line">48</span>
  573. </aside>
  574. <code class="phpdocumentor-code phpdocumentor-signature ">
  575. <span class="phpdocumentor-signature__visibility">public</span>
  576. <span class="phpdocumentor-signature__name">getDistance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"><abbr title="\chillerlan\QRCode\Detector\FinderPattern">FinderPattern</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$b</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  577. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  578. <dl class="phpdocumentor-argument-list">
  579. <dt class="phpdocumentor-argument-list__entry">
  580. <span class="phpdocumentor-signature__argument__name">$b</span>
  581. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"><abbr title="\chillerlan\QRCode\Detector\FinderPattern">FinderPattern</abbr></a></span>
  582. </dt>
  583. <dd class="phpdocumentor-argument-list__definition">
  584. <section class="phpdocumentor-description"><p>second pattern</p>
  585. </section>
  586. </dd>
  587. </dl>
  588. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  589. <span class="phpdocumentor-signature__response_type">float</span>
  590. &mdash;
  591. <section class="phpdocumentor-description"><p>distance between two points</p>
  592. </section>
  593. </article>
  594. <article
  595. class="phpdocumentor-element
  596. -method
  597. -public
  598. "
  599. >
  600. <h4 class="phpdocumentor-element__name" id="method_getEstimatedModuleSize">
  601. getEstimatedModuleSize()
  602. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getEstimatedModuleSize" class="headerlink"><i class="fas fa-link"></i></a>
  603. </h4>
  604. <aside class="phpdocumentor-element-found-in">
  605. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  606. :
  607. <span class="phpdocumentor-element-found-in__line">54</span>
  608. </aside>
  609. <code class="phpdocumentor-code phpdocumentor-signature ">
  610. <span class="phpdocumentor-signature__visibility">public</span>
  611. <span class="phpdocumentor-signature__name">getEstimatedModuleSize</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  612. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  613. <span class="phpdocumentor-signature__response_type">float</span>
  614. &mdash;
  615. </article>
  616. <article
  617. class="phpdocumentor-element
  618. -method
  619. -public
  620. "
  621. >
  622. <h4 class="phpdocumentor-element__name" id="method_getSquaredDistance">
  623. getSquaredDistance()
  624. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_getSquaredDistance" class="headerlink"><i class="fas fa-link"></i></a>
  625. </h4>
  626. <aside class="phpdocumentor-element-found-in">
  627. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  628. :
  629. <span class="phpdocumentor-element-found-in__line">55</span>
  630. </aside>
  631. <p class="phpdocumentor-summary">Get square of distance between a and b.</p>
  632. <code class="phpdocumentor-code phpdocumentor-signature ">
  633. <span class="phpdocumentor-signature__visibility">public</span>
  634. <span class="phpdocumentor-signature__name">getSquaredDistance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"><abbr title="\chillerlan\QRCode\Detector\FinderPattern">FinderPattern</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$b</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  635. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  636. <dl class="phpdocumentor-argument-list">
  637. <dt class="phpdocumentor-argument-list__entry">
  638. <span class="phpdocumentor-signature__argument__name">$b</span>
  639. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Detector-FinderPattern.html"><abbr title="\chillerlan\QRCode\Detector\FinderPattern">FinderPattern</abbr></a></span>
  640. </dt>
  641. <dd class="phpdocumentor-argument-list__definition">
  642. <section class="phpdocumentor-description"></section>
  643. </dd>
  644. </dl>
  645. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  646. <span class="phpdocumentor-signature__response_type">float</span>
  647. &mdash;
  648. </article>
  649. <article
  650. class="phpdocumentor-element
  651. -method
  652. -public
  653. "
  654. >
  655. <h4 class="phpdocumentor-element__name" id="method_getX">
  656. getX()
  657. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getX" class="headerlink"><i class="fas fa-link"></i></a>
  658. </h4>
  659. <aside class="phpdocumentor-element-found-in">
  660. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  661. :
  662. <span class="phpdocumentor-element-found-in__line">40</span>
  663. </aside>
  664. <code class="phpdocumentor-code phpdocumentor-signature ">
  665. <span class="phpdocumentor-signature__visibility">public</span>
  666. <span class="phpdocumentor-signature__name">getX</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  667. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  668. <span class="phpdocumentor-signature__response_type">float</span>
  669. &mdash;
  670. </article>
  671. <article
  672. class="phpdocumentor-element
  673. -method
  674. -public
  675. "
  676. >
  677. <h4 class="phpdocumentor-element__name" id="method_getY">
  678. getY()
  679. <a href="classes/chillerlan-QRCode-Detector-ResultPoint.html#method_getY" class="headerlink"><i class="fas fa-link"></i></a>
  680. </h4>
  681. <aside class="phpdocumentor-element-found-in">
  682. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/ResultPoint.php"><a href="files/src-detector-resultpoint.html"><abbr title="src/Detector/ResultPoint.php">ResultPoint.php</abbr></a></abbr>
  683. :
  684. <span class="phpdocumentor-element-found-in__line">47</span>
  685. </aside>
  686. <code class="phpdocumentor-code phpdocumentor-signature ">
  687. <span class="phpdocumentor-signature__visibility">public</span>
  688. <span class="phpdocumentor-signature__name">getY</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  689. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  690. <span class="phpdocumentor-signature__response_type">float</span>
  691. &mdash;
  692. </article>
  693. <article
  694. class="phpdocumentor-element
  695. -method
  696. -private
  697. -static "
  698. >
  699. <h4 class="phpdocumentor-element__name" id="method_squaredDistance">
  700. squaredDistance()
  701. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#method_squaredDistance" class="headerlink"><i class="fas fa-link"></i></a>
  702. </h4>
  703. <aside class="phpdocumentor-element-found-in">
  704. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/FinderPattern.php"><a href="files/src-detector-finderpattern.html"><abbr title="src/Detector/FinderPattern.php">FinderPattern.php</abbr></a></abbr>
  705. :
  706. <span class="phpdocumentor-element-found-in__line">78</span>
  707. </aside>
  708. <code class="phpdocumentor-code phpdocumentor-signature ">
  709. <span class="phpdocumentor-signature__visibility">private</span>
  710. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">squaredDistance</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$aX</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$aY</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bX</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bY</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  711. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  712. <dl class="phpdocumentor-argument-list">
  713. <dt class="phpdocumentor-argument-list__entry">
  714. <span class="phpdocumentor-signature__argument__name">$aX</span>
  715. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  716. </dt>
  717. <dd class="phpdocumentor-argument-list__definition">
  718. <section class="phpdocumentor-description"></section>
  719. </dd>
  720. <dt class="phpdocumentor-argument-list__entry">
  721. <span class="phpdocumentor-signature__argument__name">$aY</span>
  722. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  723. </dt>
  724. <dd class="phpdocumentor-argument-list__definition">
  725. <section class="phpdocumentor-description"></section>
  726. </dd>
  727. <dt class="phpdocumentor-argument-list__entry">
  728. <span class="phpdocumentor-signature__argument__name">$bX</span>
  729. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  730. </dt>
  731. <dd class="phpdocumentor-argument-list__definition">
  732. <section class="phpdocumentor-description"></section>
  733. </dd>
  734. <dt class="phpdocumentor-argument-list__entry">
  735. <span class="phpdocumentor-signature__argument__name">$bY</span>
  736. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  737. </dt>
  738. <dd class="phpdocumentor-argument-list__definition">
  739. <section class="phpdocumentor-description"></section>
  740. </dd>
  741. </dl>
  742. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  743. <span class="phpdocumentor-signature__response_type">float</span>
  744. &mdash;
  745. </article>
  746. </section>
  747. <script type="text/javascript">
  748. function loadExternalCodeSnippets(line) {
  749. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  750. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  751. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  752. var language = 'php';
  753. var code = document.createElement('code');
  754. code.className = 'language-' + language;
  755. pre.textContent = '';
  756. pre.setAttribute('data-line', line)
  757. code.textContent = 'Loading…';
  758. pre.appendChild(code);
  759. var xhr = new XMLHttpRequest();
  760. xhr.open('GET', src, true);
  761. xhr.onreadystatechange = function () {
  762. if (xhr.readyState == 4) {
  763. if (xhr.status < 400 && xhr.responseText) {
  764. code.textContent = xhr.responseText;
  765. Prism.highlightElement(code);
  766. }
  767. else if (xhr.status >= 400) {
  768. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  769. }
  770. else {
  771. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  772. }
  773. }
  774. };
  775. xhr.send(null);
  776. });
  777. }
  778. var modals = document.querySelectorAll("[data-modal]");
  779. modals.forEach(function (trigger) {
  780. trigger.addEventListener("click", function (event) {
  781. //event.preventDefault();
  782. const modal = document.getElementById(trigger.dataset.modal);
  783. modal.classList.add("phpdocumentor-modal__open");
  784. loadExternalCodeSnippets(trigger.dataset.line)
  785. const exits = modal.querySelectorAll("[data-exit-button]");
  786. exits.forEach(function (exit) {
  787. exit.addEventListener("click", function (event) {
  788. event.preventDefault();
  789. modal.classList.remove("phpdocumentor-modal__open");
  790. });
  791. });
  792. });
  793. });
  794. </script>
  795. </article>
  796. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  797. <section class="phpdocumentor-search-results__dialog">
  798. <header class="phpdocumentor-search-results__header">
  799. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  800. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  801. </header>
  802. <section class="phpdocumentor-search-results__body">
  803. <ul class="phpdocumentor-search-results__entries"></ul>
  804. </section>
  805. </section>
  806. </section>
  807. </div>
  808. </div>
  809. <a href="classes/chillerlan-QRCode-Detector-FinderPattern.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  810. </main>
  811. <script>
  812. cssVars({});
  813. </script>
  814. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  815. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  816. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  817. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  818. </body>
  819. </html>