chillerlan-QRCode-Decoder-LuminanceSourceInterface.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  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-decoder.html">Decoder</a></li>
  89. </ul>
  90. <article class="phpdocumentor-element -interface">
  91. <h2 class="phpdocumentor-content__title">
  92. LuminanceSourceInterface
  93. <div class="phpdocumentor-element__package">
  94. in
  95. <ul class="phpdocumentor-breadcrumbs">
  96. <li><a href="packages/Application.html">Application</a></li>
  97. </ul>
  98. </div>
  99. </h2>
  100. <aside class="phpdocumentor-element-found-in">
  101. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceInterface.php"><a href="files/src-decoder-luminancesourceinterface.html"><abbr title="src/Decoder/LuminanceSourceInterface.php">LuminanceSourceInterface.php</abbr></a></abbr>
  102. :
  103. <span class="phpdocumentor-element-found-in__line">15</span>
  104. </aside>
  105. <h3 id="toc">
  106. Table of Contents
  107. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  108. </h3>
  109. <dl class="phpdocumentor-table-of-contents">
  110. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  111. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_fromBlob">fromBlob()</a>
  112. <span>
  113. &nbsp;: self </span>
  114. </dt>
  115. <dd>Creates a LuminanceSource instance from the given data blob</dd>
  116. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  117. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_fromFile">fromFile()</a>
  118. <span>
  119. &nbsp;: self </span>
  120. </dt>
  121. <dd>Creates a LuminanceSource instance from the given file</dd>
  122. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  123. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_getHeight">getHeight()</a>
  124. <span>
  125. &nbsp;: int </span>
  126. </dt>
  127. <dd></dd>
  128. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  129. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_getLuminances">getLuminances()</a>
  130. <span>
  131. &nbsp;: array&lt;string|int, mixed&gt; </span>
  132. </dt>
  133. <dd>Fetches luminance data for the underlying bitmap. Values should be fetched using:
  134. `int luminance = array[y * width + x] &amp; 0xff`</dd>
  135. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  136. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_getRow">getRow()</a>
  137. <span>
  138. &nbsp;: array&lt;string|int, mixed&gt; </span>
  139. </dt>
  140. <dd>Fetches one row of luminance data from the underlying platform&#039;s bitmap. Values range from
  141. 0 (black) to 255 (white). Because Java does not have an unsigned byte type, callers will have
  142. to bitwise and with 0xff for each value. It is preferable for implementations of this method
  143. to only fetch this row rather than the whole image, since no 2D Readers may be installed and
  144. getLuminances() may never be called.</dd>
  145. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  146. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_getWidth">getWidth()</a>
  147. <span>
  148. &nbsp;: int </span>
  149. </dt>
  150. <dd></dd>
  151. </dl>
  152. <section class="phpdocumentor-methods">
  153. <h3 class="phpdocumentor-elements__header" id="methods">
  154. Methods
  155. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  156. </h3>
  157. <article
  158. class="phpdocumentor-element
  159. -method
  160. -public
  161. -static "
  162. >
  163. <h4 class="phpdocumentor-element__name" id="method_fromBlob">
  164. fromBlob()
  165. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_fromBlob" class="headerlink"><i class="fas fa-link"></i></a>
  166. </h4>
  167. <aside class="phpdocumentor-element-found-in">
  168. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceInterface.php"><a href="files/src-decoder-luminancesourceinterface.html"><abbr title="src/Decoder/LuminanceSourceInterface.php">LuminanceSourceInterface.php</abbr></a></abbr>
  169. :
  170. <span class="phpdocumentor-element-found-in__line">59</span>
  171. </aside>
  172. <p class="phpdocumentor-summary">Creates a LuminanceSource instance from the given data blob</p>
  173. <code class="phpdocumentor-code phpdocumentor-signature ">
  174. <span class="phpdocumentor-signature__visibility">public</span>
  175. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">fromBlob</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$blob</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  176. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  177. <dl class="phpdocumentor-argument-list">
  178. <dt class="phpdocumentor-argument-list__entry">
  179. <span class="phpdocumentor-signature__argument__name">$blob</span>
  180. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  181. </dt>
  182. <dd class="phpdocumentor-argument-list__definition">
  183. <section class="phpdocumentor-description"></section>
  184. </dd>
  185. </dl>
  186. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  187. <span class="phpdocumentor-signature__response_type">self</span>
  188. &mdash;
  189. </article>
  190. <article
  191. class="phpdocumentor-element
  192. -method
  193. -public
  194. -static "
  195. >
  196. <h4 class="phpdocumentor-element__name" id="method_fromFile">
  197. fromFile()
  198. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_fromFile" class="headerlink"><i class="fas fa-link"></i></a>
  199. </h4>
  200. <aside class="phpdocumentor-element-found-in">
  201. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceInterface.php"><a href="files/src-decoder-luminancesourceinterface.html"><abbr title="src/Decoder/LuminanceSourceInterface.php">LuminanceSourceInterface.php</abbr></a></abbr>
  202. :
  203. <span class="phpdocumentor-element-found-in__line">54</span>
  204. </aside>
  205. <p class="phpdocumentor-summary">Creates a LuminanceSource instance from the given file</p>
  206. <code class="phpdocumentor-code phpdocumentor-signature ">
  207. <span class="phpdocumentor-signature__visibility">public</span>
  208. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">fromFile</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$path</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  209. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  210. <dl class="phpdocumentor-argument-list">
  211. <dt class="phpdocumentor-argument-list__entry">
  212. <span class="phpdocumentor-signature__argument__name">$path</span>
  213. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  214. </dt>
  215. <dd class="phpdocumentor-argument-list__definition">
  216. <section class="phpdocumentor-description"></section>
  217. </dd>
  218. </dl>
  219. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  220. <span class="phpdocumentor-signature__response_type">self</span>
  221. &mdash;
  222. </article>
  223. <article
  224. class="phpdocumentor-element
  225. -method
  226. -public
  227. "
  228. >
  229. <h4 class="phpdocumentor-element__name" id="method_getHeight">
  230. getHeight()
  231. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_getHeight" class="headerlink"><i class="fas fa-link"></i></a>
  232. </h4>
  233. <aside class="phpdocumentor-element-found-in">
  234. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceInterface.php"><a href="files/src-decoder-luminancesourceinterface.html"><abbr title="src/Decoder/LuminanceSourceInterface.php">LuminanceSourceInterface.php</abbr></a></abbr>
  235. :
  236. <span class="phpdocumentor-element-found-in__line">35</span>
  237. </aside>
  238. <code class="phpdocumentor-code phpdocumentor-signature ">
  239. <span class="phpdocumentor-signature__visibility">public</span>
  240. <span class="phpdocumentor-signature__name">getHeight</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  241. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  242. <span class="phpdocumentor-signature__response_type">int</span>
  243. &mdash;
  244. <section class="phpdocumentor-description"><p>The height of the bitmap.</p>
  245. </section>
  246. </article>
  247. <article
  248. class="phpdocumentor-element
  249. -method
  250. -public
  251. "
  252. >
  253. <h4 class="phpdocumentor-element__name" id="method_getLuminances">
  254. getLuminances()
  255. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_getLuminances" class="headerlink"><i class="fas fa-link"></i></a>
  256. </h4>
  257. <aside class="phpdocumentor-element-found-in">
  258. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceInterface.php"><a href="files/src-decoder-luminancesourceinterface.html"><abbr title="src/Decoder/LuminanceSourceInterface.php">LuminanceSourceInterface.php</abbr></a></abbr>
  259. :
  260. <span class="phpdocumentor-element-found-in__line">25</span>
  261. </aside>
  262. <p class="phpdocumentor-summary">Fetches luminance data for the underlying bitmap. Values should be fetched using:
  263. `int luminance = array[y * width + x] &amp; 0xff`</p>
  264. <code class="phpdocumentor-code phpdocumentor-signature ">
  265. <span class="phpdocumentor-signature__visibility">public</span>
  266. <span class="phpdocumentor-signature__name">getLuminances</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  267. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  268. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  269. &mdash;
  270. <section class="phpdocumentor-description"><p>A row-major 2D array of luminance values. Do not use result.length as it may be
  271. larger than width * height bytes on some platforms. Do not modify the contents
  272. of the result.</p>
  273. </section>
  274. </article>
  275. <article
  276. class="phpdocumentor-element
  277. -method
  278. -public
  279. "
  280. >
  281. <h4 class="phpdocumentor-element__name" id="method_getRow">
  282. getRow()
  283. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_getRow" class="headerlink"><i class="fas fa-link"></i></a>
  284. </h4>
  285. <aside class="phpdocumentor-element-found-in">
  286. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceInterface.php"><a href="files/src-decoder-luminancesourceinterface.html"><abbr title="src/Decoder/LuminanceSourceInterface.php">LuminanceSourceInterface.php</abbr></a></abbr>
  287. :
  288. <span class="phpdocumentor-element-found-in__line">49</span>
  289. </aside>
  290. <p class="phpdocumentor-summary">Fetches one row of luminance data from the underlying platform&#039;s bitmap. Values range from
  291. 0 (black) to 255 (white). Because Java does not have an unsigned byte type, callers will have
  292. to bitwise and with 0xff for each value. It is preferable for implementations of this method
  293. to only fetch this row rather than the whole image, since no 2D Readers may be installed and
  294. getLuminances() may never be called.</p>
  295. <code class="phpdocumentor-code phpdocumentor-signature ">
  296. <span class="phpdocumentor-signature__visibility">public</span>
  297. <span class="phpdocumentor-signature__name">getRow</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  298. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  299. <dl class="phpdocumentor-argument-list">
  300. <dt class="phpdocumentor-argument-list__entry">
  301. <span class="phpdocumentor-signature__argument__name">$y</span>
  302. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  303. </dt>
  304. <dd class="phpdocumentor-argument-list__definition">
  305. <section class="phpdocumentor-description"><p>The row to fetch, which must be in [0,getHeight())</p>
  306. </section>
  307. </dd>
  308. </dl>
  309. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  310. Tags
  311. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  312. </h5>
  313. <dl class="phpdocumentor-tag-list">
  314. <dt class="phpdocumentor-tag-list__entry">
  315. <span class="phpdocumentor-tag__name">throws</span>
  316. </dt>
  317. <dd class="phpdocumentor-tag-list__definition">
  318. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Decoder-QRCodeDecoderException.html"><abbr title="\chillerlan\QRCode\Decoder\QRCodeDecoderException">QRCodeDecoderException</abbr></a></span>
  319. </dd>
  320. </dl>
  321. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  322. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  323. &mdash;
  324. <section class="phpdocumentor-description"><p>An array containing the luminance data.</p>
  325. </section>
  326. </article>
  327. <article
  328. class="phpdocumentor-element
  329. -method
  330. -public
  331. "
  332. >
  333. <h4 class="phpdocumentor-element__name" id="method_getWidth">
  334. getWidth()
  335. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#method_getWidth" class="headerlink"><i class="fas fa-link"></i></a>
  336. </h4>
  337. <aside class="phpdocumentor-element-found-in">
  338. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceInterface.php"><a href="files/src-decoder-luminancesourceinterface.html"><abbr title="src/Decoder/LuminanceSourceInterface.php">LuminanceSourceInterface.php</abbr></a></abbr>
  339. :
  340. <span class="phpdocumentor-element-found-in__line">30</span>
  341. </aside>
  342. <code class="phpdocumentor-code phpdocumentor-signature ">
  343. <span class="phpdocumentor-signature__visibility">public</span>
  344. <span class="phpdocumentor-signature__name">getWidth</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  345. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  346. <span class="phpdocumentor-signature__response_type">int</span>
  347. &mdash;
  348. <section class="phpdocumentor-description"><p>The width of the bitmap.</p>
  349. </section>
  350. </article>
  351. </section>
  352. <script type="text/javascript">
  353. function loadExternalCodeSnippets(line) {
  354. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  355. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  356. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  357. var language = 'php';
  358. var code = document.createElement('code');
  359. code.className = 'language-' + language;
  360. pre.textContent = '';
  361. pre.setAttribute('data-line', line)
  362. code.textContent = 'Loading…';
  363. pre.appendChild(code);
  364. var xhr = new XMLHttpRequest();
  365. xhr.open('GET', src, true);
  366. xhr.onreadystatechange = function () {
  367. if (xhr.readyState == 4) {
  368. if (xhr.status < 400 && xhr.responseText) {
  369. code.textContent = xhr.responseText;
  370. Prism.highlightElement(code);
  371. }
  372. else if (xhr.status >= 400) {
  373. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  374. }
  375. else {
  376. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  377. }
  378. }
  379. };
  380. xhr.send(null);
  381. });
  382. }
  383. var modals = document.querySelectorAll("[data-modal]");
  384. modals.forEach(function (trigger) {
  385. trigger.addEventListener("click", function (event) {
  386. //event.preventDefault();
  387. const modal = document.getElementById(trigger.dataset.modal);
  388. modal.classList.add("phpdocumentor-modal__open");
  389. loadExternalCodeSnippets(trigger.dataset.line)
  390. const exits = modal.querySelectorAll("[data-exit-button]");
  391. exits.forEach(function (exit) {
  392. exit.addEventListener("click", function (event) {
  393. event.preventDefault();
  394. modal.classList.remove("phpdocumentor-modal__open");
  395. });
  396. });
  397. });
  398. });
  399. </script>
  400. </article>
  401. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  402. <section class="phpdocumentor-search-results__dialog">
  403. <header class="phpdocumentor-search-results__header">
  404. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  405. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  406. </header>
  407. <section class="phpdocumentor-search-results__body">
  408. <ul class="phpdocumentor-search-results__entries"></ul>
  409. </section>
  410. </section>
  411. </section>
  412. </div>
  413. </div>
  414. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceInterface.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  415. </main>
  416. <script>
  417. cssVars({});
  418. </script>
  419. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  420. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  421. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  422. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  423. </body>
  424. </html>