chillerlan-QRCode-Decoder-LuminanceSourceInterface.html 25 KB

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