chillerlan-QRCode-Detector-FinderPattern.html 50 KB

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