react-native-wagmi-charts 1.7.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (601) hide show
  1. package/.DS_Store +0 -0
  2. package/README.md +365 -193
  3. package/example/.DS_Store +0 -0
  4. package/example/.expo/web/cache/development/babel-loader/0048eab7a1937596c83f7a0a8669a057.json +1 -0
  5. package/example/.expo/web/cache/development/babel-loader/00e78539c92f01b2990b35cc56404077.json +1 -0
  6. package/example/.expo/web/cache/development/babel-loader/01548be34380766518c44d302f0da833.json +1 -0
  7. package/example/.expo/web/cache/development/babel-loader/01dc8e11259412b46f72a16b6f6f989a.json +1 -0
  8. package/example/.expo/web/cache/development/babel-loader/022bc27c62f111b60de1d9cf31798db5.json +1 -0
  9. package/example/.expo/web/cache/development/babel-loader/02341c3581c9b4661b5deec14d244183.json +1 -0
  10. package/example/.expo/web/cache/development/babel-loader/029e21747cfcaf8be0db65a531a13e45.json +1 -0
  11. package/example/.expo/web/cache/development/babel-loader/02cacb7980022332144135d930ecea11.json +1 -0
  12. package/example/.expo/web/cache/development/babel-loader/030b07a0a05e98460988fcc5b21543fd.json +1 -0
  13. package/example/.expo/web/cache/development/babel-loader/03e0f78352a5cc290e9a694dfa0457b2.json +1 -0
  14. package/example/.expo/web/cache/development/babel-loader/03f273e96dda522f2f1ffb0c11d9cb41.json +1 -0
  15. package/example/.expo/web/cache/development/babel-loader/040ef89e9083432c9c572aecfb055253.json +1 -0
  16. package/example/.expo/web/cache/development/babel-loader/053109a5af2f50846dbff99c9ddaa08b.json +1 -0
  17. package/example/.expo/web/cache/development/babel-loader/05c8ee51599e49b8df4c2aea1c61f9bd.json +1 -0
  18. package/example/.expo/web/cache/development/babel-loader/061e5f7ad7d0922480d8aa5ec61bb646.json +1 -0
  19. package/example/.expo/web/cache/development/babel-loader/062a149ffbda2b47d4a754da17f0ed89.json +1 -0
  20. package/example/.expo/web/cache/development/babel-loader/06c9aabc7c8dc32a774403b9acd1d9e3.json +1 -0
  21. package/example/.expo/web/cache/development/babel-loader/06de2f6698410c68adcc5a227728a923.json +1 -0
  22. package/example/.expo/web/cache/development/babel-loader/078d39387ece388cb409a9de98417dd7.json +1 -0
  23. package/example/.expo/web/cache/development/babel-loader/08ae8c107c10803a4fd1dcd9bb77631b.json +1 -0
  24. package/example/.expo/web/cache/development/babel-loader/0b71299ddceefa8034f07d7bd25f7132.json +1 -0
  25. package/example/.expo/web/cache/development/babel-loader/0ba484ac7ba0d1abe8d566757740b901.json +1 -0
  26. package/example/.expo/web/cache/development/babel-loader/0bdbd4da7c535a6cfa3d301a2e03cdb3.json +1 -0
  27. package/example/.expo/web/cache/development/babel-loader/0ca19fcabd7879d8a09389c265186c73.json +1 -0
  28. package/example/.expo/web/cache/development/babel-loader/0dba3b74d1f9e83e7e1be547f59f9b0d.json +1 -0
  29. package/example/.expo/web/cache/development/babel-loader/0dda8bfcef9ddb34113838e01d884c94.json +1 -0
  30. package/example/.expo/web/cache/development/babel-loader/0fed877538eec4c0fe6fc59a7fba1884.json +1 -0
  31. package/example/.expo/web/cache/development/babel-loader/10c42328cedbca0b7c02e292cbf7e819.json +1 -0
  32. package/example/.expo/web/cache/development/babel-loader/11e5e2a288b722ed1a72951da903668f.json +1 -0
  33. package/example/.expo/web/cache/development/babel-loader/124b86bda7fafdb400a04e42fb06d241.json +1 -0
  34. package/example/.expo/web/cache/development/babel-loader/12ddb38f86b223c6168a22c3c441d23c.json +1 -0
  35. package/example/.expo/web/cache/development/babel-loader/12f8b90d6b32fd8d434f74ec0a1cc5de.json +1 -0
  36. package/example/.expo/web/cache/development/babel-loader/14896ac3a706173aa66f99f5ac81de25.json +1 -0
  37. package/example/.expo/web/cache/development/babel-loader/155b2897eaa205c153dc174759391596.json +1 -0
  38. package/example/.expo/web/cache/development/babel-loader/159bcfbc06914dc0fa53d932ecdeb3a8.json +1 -0
  39. package/example/.expo/web/cache/development/babel-loader/15adfc2176211fd1b1f1e26ffac54860.json +1 -0
  40. package/example/.expo/web/cache/development/babel-loader/16bf97aa1df29d051e75cdcfe30258ca.json +1 -0
  41. package/example/.expo/web/cache/development/babel-loader/173757cc1e741e39f50c821a347ca6a7.json +1 -0
  42. package/example/.expo/web/cache/development/babel-loader/17539008e1af521bbd4be8772219d502.json +1 -0
  43. package/example/.expo/web/cache/development/babel-loader/178a06574c91fc5f7d66bb5c1087d694.json +1 -0
  44. package/example/.expo/web/cache/development/babel-loader/17f33cd1288f2d81431bd2cc3594a889.json +1 -0
  45. package/example/.expo/web/cache/development/babel-loader/1ae598529609953300b8831809806773.json +1 -0
  46. package/example/.expo/web/cache/development/babel-loader/1bf72c5e82adfae4cd9fb7d062f43c7b.json +1 -0
  47. package/example/.expo/web/cache/development/babel-loader/1e954e44cae79871d604d778ed2b019b.json +1 -0
  48. package/example/.expo/web/cache/development/babel-loader/1f3db19af6a4daad8ac653aef9a17b3e.json +1 -0
  49. package/example/.expo/web/cache/development/babel-loader/1fa8d4f7956d15e5d2301b5bc0ea5cda.json +1 -0
  50. package/example/.expo/web/cache/development/babel-loader/20143c2ba144a977d78c7b106120350d.json +1 -0
  51. package/example/.expo/web/cache/development/babel-loader/201eb696584a8e8ed6ccc7f1c94bea83.json +1 -0
  52. package/example/.expo/web/cache/development/babel-loader/208778a4ee646ee0555ed1e67b562757.json +1 -0
  53. package/example/.expo/web/cache/development/babel-loader/219c2137c40f30853f1c0da86e6195ae.json +1 -0
  54. package/example/.expo/web/cache/development/babel-loader/224ade2bbe8e0b2388eb1c55bff3f264.json +1 -0
  55. package/example/.expo/web/cache/development/babel-loader/22eb55b287473e3a78908381441cfcb4.json +1 -0
  56. package/example/.expo/web/cache/development/babel-loader/240cb3678995c4254ed6e5c7582952ba.json +1 -0
  57. package/example/.expo/web/cache/development/babel-loader/2530791779144ffab597cad5be52c226.json +1 -0
  58. package/example/.expo/web/cache/development/babel-loader/2596af2ade89538878b6d544100f3399.json +1 -0
  59. package/example/.expo/web/cache/development/babel-loader/25ba14deb6adaac77b56e2c781b4f065.json +1 -0
  60. package/example/.expo/web/cache/development/babel-loader/26d2d37f205cec86abab8af6ff0ebc64.json +1 -0
  61. package/example/.expo/web/cache/development/babel-loader/283e292d5ceb581a50e9755ac42601a2.json +1 -0
  62. package/example/.expo/web/cache/development/babel-loader/28d1872152a5070e160a78864dac71c9.json +1 -0
  63. package/example/.expo/web/cache/development/babel-loader/29518ab58c8aacdb2e5e164fc13d872b.json +1 -0
  64. package/example/.expo/web/cache/development/babel-loader/29d79f626f6ad6bfe79bbbf010acedf3.json +1 -0
  65. package/example/.expo/web/cache/development/babel-loader/2aa749a94f4df8b760e8acfdb25028ff.json +1 -0
  66. package/example/.expo/web/cache/development/babel-loader/2b64d55ee11f0015681db4ce68a395d2.json +1 -0
  67. package/example/.expo/web/cache/development/babel-loader/2cccd0ecb5914d7b91a0e2a0fbd995c9.json +1 -0
  68. package/example/.expo/web/cache/development/babel-loader/2dbbd507ae02c5249d7088f625312a95.json +1 -0
  69. package/example/.expo/web/cache/development/babel-loader/2dce9894a2affe7bfe287cd3e27b4efd.json +1 -0
  70. package/example/.expo/web/cache/development/babel-loader/2e27f8a130af009b492bc9f13a3bb578.json +1 -0
  71. package/example/.expo/web/cache/development/babel-loader/2f57f3c72b3b460c5d299bcf081b429b.json +1 -0
  72. package/example/.expo/web/cache/development/babel-loader/2f63db06dec4ae0f934cbe269ca78b7c.json +1 -0
  73. package/example/.expo/web/cache/development/babel-loader/3146ea18d415deb6177ac03e1355688e.json +1 -0
  74. package/example/.expo/web/cache/development/babel-loader/319feb766afa0b6ef1fd0f61a79d8306.json +1 -0
  75. package/example/.expo/web/cache/development/babel-loader/35c0fe0f3af5e5bb30c862ab2f0352fe.json +1 -0
  76. package/example/.expo/web/cache/development/babel-loader/35e42e8dca6b3242a869b68dd19c9320.json +1 -0
  77. package/example/.expo/web/cache/development/babel-loader/3683ce1bd7ea848ec955de2738873cfb.json +1 -0
  78. package/example/.expo/web/cache/development/babel-loader/368688165f40c4cfc59238bacf69d131.json +1 -0
  79. package/example/.expo/web/cache/development/babel-loader/36e75d47020ead36881558873b7ed051.json +1 -0
  80. package/example/.expo/web/cache/development/babel-loader/38146d6afeec03b463523c4710274e9a.json +1 -0
  81. package/example/.expo/web/cache/development/babel-loader/394f45d48a9648d70c4b5b64076be031.json +1 -0
  82. package/example/.expo/web/cache/development/babel-loader/3972208eae9b5b632b17b21baa8bf208.json +1 -0
  83. package/example/.expo/web/cache/development/babel-loader/39f743b81b60417ab847556a7179e22a.json +1 -0
  84. package/example/.expo/web/cache/development/babel-loader/3b7135501e404451314cdcc9fe0600b8.json +1 -0
  85. package/example/.expo/web/cache/development/babel-loader/3c20b6d457837e0ac87f3e648e6eca00.json +1 -0
  86. package/example/.expo/web/cache/development/babel-loader/3c5f38af9e2ec3a91de4f1b4fec17b0a.json +1 -0
  87. package/example/.expo/web/cache/development/babel-loader/3e1698f99f9fc08d49f7b34982fa5ff9.json +1 -0
  88. package/example/.expo/web/cache/development/babel-loader/3e2d35c9bbfe5423a7d98376bcd56e6b.json +1 -0
  89. package/example/.expo/web/cache/development/babel-loader/3e7a2e7fe4f726704b568371689534ae.json +1 -0
  90. package/example/.expo/web/cache/development/babel-loader/3f86d59727c3e03e54652149a8f8d3b6.json +1 -0
  91. package/example/.expo/web/cache/development/babel-loader/40402ff33d7840c2ef429fb4b123038d.json +1 -0
  92. package/example/.expo/web/cache/development/babel-loader/4088615ef9d57b3f7fe4190660ba6ddc.json +1 -0
  93. package/example/.expo/web/cache/development/babel-loader/40c4fde14ef2e0ea53a7432cd848ff2b.json +1 -0
  94. package/example/.expo/web/cache/development/babel-loader/42c2f18b8307bc0d3ea5d84373a5d67f.json +1 -0
  95. package/example/.expo/web/cache/development/babel-loader/437dd685561b93a81742ac2ecbeb7d41.json +1 -0
  96. package/example/.expo/web/cache/development/babel-loader/44dc1996d592f2e6f37bad3a90765f47.json +1 -0
  97. package/example/.expo/web/cache/development/babel-loader/45873f55ae22e035954bc06cc50b2173.json +1 -0
  98. package/example/.expo/web/cache/development/babel-loader/46679e2a6fceee1389fc81e63b21348f.json +1 -0
  99. package/example/.expo/web/cache/development/babel-loader/4861470a02020675a1ee3db81cf82013.json +1 -0
  100. package/example/.expo/web/cache/development/babel-loader/4864be71b0d3193e0c759b91a9548cce.json +1 -0
  101. package/example/.expo/web/cache/development/babel-loader/487488e8e5ae8ef9217e3c56a43ad05a.json +1 -0
  102. package/example/.expo/web/cache/development/babel-loader/49f4c364b909987eb06dde9e5e191155.json +1 -0
  103. package/example/.expo/web/cache/development/babel-loader/4b81b318c8d202092e5f11c893ba60ca.json +1 -0
  104. package/example/.expo/web/cache/development/babel-loader/4b929b061248038485fe18a4000f0dc7.json +1 -0
  105. package/example/.expo/web/cache/development/babel-loader/4bb899e66458fe70451b960feb748cca.json +1 -0
  106. package/example/.expo/web/cache/development/babel-loader/4bf2841cd4d191e4fcd069fc2defa95d.json +1 -0
  107. package/example/.expo/web/cache/development/babel-loader/4bfdf05b16115a8f6be82091518c35be.json +1 -0
  108. package/example/.expo/web/cache/development/babel-loader/4c14d7bff7de294fd991c68522f97ee4.json +1 -0
  109. package/example/.expo/web/cache/development/babel-loader/4c723644cc0a1300f119db91b3a4e1d8.json +1 -0
  110. package/example/.expo/web/cache/development/babel-loader/4c912e44b450dfff1f0d609c6fcf770c.json +1 -0
  111. package/example/.expo/web/cache/development/babel-loader/4c91a10b38720099ce4af9a3b12902e3.json +1 -0
  112. package/example/.expo/web/cache/development/babel-loader/4d466fa65871bcbc64956934ceb7b82f.json +1 -0
  113. package/example/.expo/web/cache/development/babel-loader/4e225e240a0c5e5724f9d92ab2c2a5c7.json +1 -0
  114. package/example/.expo/web/cache/development/babel-loader/4e741f92fbbd92b96334530f6ad10846.json +1 -0
  115. package/example/.expo/web/cache/development/babel-loader/4f17a38ef723d2f2f88ab36229447848.json +1 -0
  116. package/example/.expo/web/cache/development/babel-loader/5126e93c01ee93124a5e74d11303b9c8.json +1 -0
  117. package/example/.expo/web/cache/development/babel-loader/519238552f7ca486b938192b9cbcceae.json +1 -0
  118. package/example/.expo/web/cache/development/babel-loader/523038c6dc8ac0e76ef7a23d3eed51ec.json +1 -0
  119. package/example/.expo/web/cache/development/babel-loader/532fa6c08d38d3c6de9df3cbc1e6a903.json +1 -0
  120. package/example/.expo/web/cache/development/babel-loader/53bf8f177165c6b0e75a631aa4519d41.json +1 -0
  121. package/example/.expo/web/cache/development/babel-loader/53ea8a26aeb6e2759a7f1f5f4f56b6fb.json +1 -0
  122. package/example/.expo/web/cache/development/babel-loader/542e618262a94895f81236112129bd3e.json +1 -0
  123. package/example/.expo/web/cache/development/babel-loader/546891698aff03b72ed2f6ceb6e7fa89.json +1 -0
  124. package/example/.expo/web/cache/development/babel-loader/5471a749a6e8af27964d87af251c688a.json +1 -0
  125. package/example/.expo/web/cache/development/babel-loader/547a11a6bdd8bda252dfd4614f815fbb.json +1 -0
  126. package/example/.expo/web/cache/development/babel-loader/549d7a1c3d15fdb39d9bffcf267e3f56.json +1 -0
  127. package/example/.expo/web/cache/development/babel-loader/55add2461e97c93eb8aac04bb6999d6f.json +1 -0
  128. package/example/.expo/web/cache/development/babel-loader/566edd7dfdc185ef467beb97fcd9e08c.json +1 -0
  129. package/example/.expo/web/cache/development/babel-loader/567acdadac00f4c65b037849683131b6.json +1 -0
  130. package/example/.expo/web/cache/development/babel-loader/57892340c5b232df0a75f1339c9e68ce.json +1 -0
  131. package/example/.expo/web/cache/development/babel-loader/586d05cc2c149bd7435298a982b57d60.json +1 -0
  132. package/example/.expo/web/cache/development/babel-loader/5954d33f838e7e341ebe043096ac7fe5.json +1 -0
  133. package/example/.expo/web/cache/development/babel-loader/5a07d6d40bd575c25f45538b187acd8a.json +1 -0
  134. package/example/.expo/web/cache/development/babel-loader/5a27a1760bd4f6407b1fea26715a87bc.json +1 -0
  135. package/example/.expo/web/cache/development/babel-loader/5b36330631e46bbf63f870970b2122f7.json +1 -0
  136. package/example/.expo/web/cache/development/babel-loader/5b9bc4b234aa59e34135748fd93507b6.json +1 -0
  137. package/example/.expo/web/cache/development/babel-loader/5c0087a9595888025264a9904d1b8eef.json +1 -0
  138. package/example/.expo/web/cache/development/babel-loader/5d16233202c82021ddec174b9bb58863.json +1 -0
  139. package/example/.expo/web/cache/development/babel-loader/5d569557de3b7d5fa8afc576ac512a04.json +1 -0
  140. package/example/.expo/web/cache/development/babel-loader/5d646ca9aa7f759e829259ce504269e2.json +1 -0
  141. package/example/.expo/web/cache/development/babel-loader/5eef44eed8ccb290fe3456e2fe6bf8ed.json +1 -0
  142. package/example/.expo/web/cache/development/babel-loader/6024b3f768564aaeb1361263b0202a14.json +1 -0
  143. package/example/.expo/web/cache/development/babel-loader/61cfc5a0e7335e0b9a219b1cbe277614.json +1 -0
  144. package/example/.expo/web/cache/development/babel-loader/620f55f17382101002e5e9426ce3e366.json +1 -0
  145. package/example/.expo/web/cache/development/babel-loader/62676c7e580c2e05b3597d53b1cec852.json +1 -0
  146. package/example/.expo/web/cache/development/babel-loader/62f012bfa58863dc3ea69f00f9b90a77.json +1 -0
  147. package/example/.expo/web/cache/development/babel-loader/6320f4e69400d39312489472d7f26d50.json +1 -0
  148. package/example/.expo/web/cache/development/babel-loader/63a9473d63154c31603b1ec1c728c8ab.json +1 -0
  149. package/example/.expo/web/cache/development/babel-loader/63bae7aa325e3c82ba555ac19c0912fa.json +1 -0
  150. package/example/.expo/web/cache/development/babel-loader/63c7331c32b247560f7318cb076a7c40.json +1 -0
  151. package/example/.expo/web/cache/development/babel-loader/645eaa3c12cea785d12fed54225c1bad.json +1 -0
  152. package/example/.expo/web/cache/development/babel-loader/64f7c8f31e295eee69738bfe05c5bff5.json +1 -0
  153. package/example/.expo/web/cache/development/babel-loader/68189da0029a30976a2484255a17ce79.json +1 -0
  154. package/example/.expo/web/cache/development/babel-loader/696a6f2f23efafc28fc3c6d5b5ffaeac.json +1 -0
  155. package/example/.expo/web/cache/development/babel-loader/6991b1cd9f19326a94f92ef5b1b842a8.json +1 -0
  156. package/example/.expo/web/cache/development/babel-loader/6b97a59c5465397dba921f389acaafdd.json +1 -0
  157. package/example/.expo/web/cache/development/babel-loader/6c2f82c0db7403ccd4f19071f91173e4.json +1 -0
  158. package/example/.expo/web/cache/development/babel-loader/6c8a2848fe0f787148c2fb6de4264155.json +1 -0
  159. package/example/.expo/web/cache/development/babel-loader/6d6f8b41da6a4ba792c39f671105e620.json +1 -0
  160. package/example/.expo/web/cache/development/babel-loader/6e1b109f621c0d54775303f058483115.json +1 -0
  161. package/example/.expo/web/cache/development/babel-loader/6f12c17d739331ecffc1403342ba41da.json +1 -0
  162. package/example/.expo/web/cache/development/babel-loader/6fd1661af13dedb5e44522d491a1caf6.json +1 -0
  163. package/example/.expo/web/cache/development/babel-loader/70011f5e5361437bcf72ec2b53fad9f0.json +1 -0
  164. package/example/.expo/web/cache/development/babel-loader/71c89114f87eec2560a35accc6fb21d7.json +1 -0
  165. package/example/.expo/web/cache/development/babel-loader/71f17bedd745f584f7abc4f4d51c7ad4.json +1 -0
  166. package/example/.expo/web/cache/development/babel-loader/72b944856e68e4a8a0ed8e4c2413070a.json +1 -0
  167. package/example/.expo/web/cache/development/babel-loader/740b2f1ab937b3d8fae7d547e9118390.json +1 -0
  168. package/example/.expo/web/cache/development/babel-loader/748a994e95eb1d1311d08dae70ff213a.json +1 -0
  169. package/example/.expo/web/cache/development/babel-loader/74b3b0d02f286a48fe045bb68c2a4650.json +1 -0
  170. package/example/.expo/web/cache/development/babel-loader/74d8aca04393d958004db6c2ef850b15.json +1 -0
  171. package/example/.expo/web/cache/development/babel-loader/765c63eb89770f11615c740460d8a605.json +1 -0
  172. package/example/.expo/web/cache/development/babel-loader/7695443a011b53044155a45950f64551.json +1 -0
  173. package/example/.expo/web/cache/development/babel-loader/77348d41c4a630ac871ec1662d753572.json +1 -0
  174. package/example/.expo/web/cache/development/babel-loader/77a4283c1f4aa52a3ec7489dfcb4fd3c.json +1 -0
  175. package/example/.expo/web/cache/development/babel-loader/77c1d4c9c2134086a760c84c8dbb0767.json +1 -0
  176. package/example/.expo/web/cache/development/babel-loader/7856391ec0a27839d3fa6acbeb9aadda.json +1 -0
  177. package/example/.expo/web/cache/development/babel-loader/78d3d5bbf14c6f41859897e37d770fcf.json +1 -0
  178. package/example/.expo/web/cache/development/babel-loader/79c9840acdf1d5058d1dd9a3ee4c26a1.json +1 -0
  179. package/example/.expo/web/cache/development/babel-loader/79d14c794bf695a8710614f2650caadc.json +1 -0
  180. package/example/.expo/web/cache/development/babel-loader/79d484d4cd279cefd19f3ae34fbabc47.json +1 -0
  181. package/example/.expo/web/cache/development/babel-loader/7ac59aadbbeb87bbaa689455f49462e7.json +1 -0
  182. package/example/.expo/web/cache/development/babel-loader/7addb7eb6bdec7308191a341bbe4f418.json +1 -0
  183. package/example/.expo/web/cache/development/babel-loader/7c6b46cf1a8d27fbf10098fc7b3147d4.json +1 -0
  184. package/example/.expo/web/cache/development/babel-loader/7e073695c8dd0edfff43941d69ed768f.json +1 -0
  185. package/example/.expo/web/cache/development/babel-loader/7ea547e52608eb3d07287f91483f92d0.json +1 -0
  186. package/example/.expo/web/cache/development/babel-loader/80b2a7b63d2968f55ad413f37a77625e.json +1 -0
  187. package/example/.expo/web/cache/development/babel-loader/81da8afb512f1fe3dc5283eed7693dc3.json +1 -0
  188. package/example/.expo/web/cache/development/babel-loader/83ce5beb699584197b95c23e16070359.json +1 -0
  189. package/example/.expo/web/cache/development/babel-loader/84cbca54aad0ba7ad9155efbe50994e6.json +1 -0
  190. package/example/.expo/web/cache/development/babel-loader/86aa7c8020aadae1b6047e779a070006.json +1 -0
  191. package/example/.expo/web/cache/development/babel-loader/873f17ead5c8a3a89f8c307d3fc3d749.json +1 -0
  192. package/example/.expo/web/cache/development/babel-loader/88fd90442a3cd6528e4248e448007e21.json +1 -0
  193. package/example/.expo/web/cache/development/babel-loader/8947ed6ed81ae1ed2f0d1a5f7a21d4bd.json +1 -0
  194. package/example/.expo/web/cache/development/babel-loader/8b0fa6466bfbb43efbc8a796bb0a058f.json +1 -0
  195. package/example/.expo/web/cache/development/babel-loader/8bcdd0d74f6bf06c96dc636553f1ada8.json +1 -0
  196. package/example/.expo/web/cache/development/babel-loader/8bfd7063b443cb17646e674300dd862b.json +1 -0
  197. package/example/.expo/web/cache/development/babel-loader/8d06501d3b127619583bc480630ad389.json +1 -0
  198. package/example/.expo/web/cache/development/babel-loader/8d9e770602734e0d230feafb37171ca8.json +1 -0
  199. package/example/.expo/web/cache/development/babel-loader/8dbfb280c88ee5948b0a3cc84074bd43.json +1 -0
  200. package/example/.expo/web/cache/development/babel-loader/8df99953a7fe26875c55c9bc1e71ca29.json +1 -0
  201. package/example/.expo/web/cache/development/babel-loader/8e7ea386f4f497f8c5e0a4a9b80b093a.json +1 -0
  202. package/example/.expo/web/cache/development/babel-loader/8efad0218d4db05da11e8e21002ac55e.json +1 -0
  203. package/example/.expo/web/cache/development/babel-loader/8f6e1de5d12755c13e6c50a07e2d0778.json +1 -0
  204. package/example/.expo/web/cache/development/babel-loader/91ed31500f942f97aec1be73e89a7af8.json +1 -0
  205. package/example/.expo/web/cache/development/babel-loader/9252abf85af8c03f427a2e2117a1ad62.json +1 -0
  206. package/example/.expo/web/cache/development/babel-loader/92b72e3964caccd73a132a988edcfae7.json +1 -0
  207. package/example/.expo/web/cache/development/babel-loader/93945109a64716fc3d15a12d81598ef8.json +1 -0
  208. package/example/.expo/web/cache/development/babel-loader/93ee4950a9326c046f9fa65c13dac411.json +1 -0
  209. package/example/.expo/web/cache/development/babel-loader/93fe9632bb5db4ded992478e2af27d5f.json +1 -0
  210. package/example/.expo/web/cache/development/babel-loader/942ff966d1b2f375164a20370f75739c.json +1 -0
  211. package/example/.expo/web/cache/development/babel-loader/954ad5b7f72730fad3a93e8333b0da09.json +1 -0
  212. package/example/.expo/web/cache/development/babel-loader/957bea32dcc83e0fc7f2fd8795a8f818.json +1 -0
  213. package/example/.expo/web/cache/development/babel-loader/964cb097c867a1ded7eb7446f5548c22.json +1 -0
  214. package/example/.expo/web/cache/development/babel-loader/98e4f7e158718137c26f2fe60b84369d.json +1 -0
  215. package/example/.expo/web/cache/development/babel-loader/9ae989e87da92329c1f285a30c2be6f5.json +1 -0
  216. package/example/.expo/web/cache/development/babel-loader/9ba4ab6ad62c186c10cc4440ed5f54a7.json +1 -0
  217. package/example/.expo/web/cache/development/babel-loader/9ce0ea8540198d071a57d36dae227cbc.json +1 -0
  218. package/example/.expo/web/cache/development/babel-loader/9d2bab4aa3187dee265f1d9c8ce6f0f6.json +1 -0
  219. package/example/.expo/web/cache/development/babel-loader/9e653ee142610f0516609ca3fb386739.json +1 -0
  220. package/example/.expo/web/cache/development/babel-loader/9e75ea79fea0209053c68ef4989b4a3a.json +1 -0
  221. package/example/.expo/web/cache/development/babel-loader/9f2f6a11de269026061831c947435758.json +1 -0
  222. package/example/.expo/web/cache/development/babel-loader/9f3fd9ca3231e3002df99db9d9616aa0.json +1 -0
  223. package/example/.expo/web/cache/development/babel-loader/a076afeae19d4e15321e5d81cf41364a.json +1 -0
  224. package/example/.expo/web/cache/development/babel-loader/a261d7c057c570a5d74c5c84cc08e7f9.json +1 -0
  225. package/example/.expo/web/cache/development/babel-loader/a3611e076e067e7397bd47a9ebe95cf1.json +1 -0
  226. package/example/.expo/web/cache/development/babel-loader/a375a3eadad6ab2ce64ed38759b31415.json +1 -0
  227. package/example/.expo/web/cache/development/babel-loader/a3b99e0ec7f17e098c6b02a04282d805.json +1 -0
  228. package/example/.expo/web/cache/development/babel-loader/a3bde08c6c572203f93bcfa1170d4790.json +1 -0
  229. package/example/.expo/web/cache/development/babel-loader/a3bf51a1af912c42396b784cf9851941.json +1 -0
  230. package/example/.expo/web/cache/development/babel-loader/a48b6217b860aab3e81b366a7306ee03.json +1 -0
  231. package/example/.expo/web/cache/development/babel-loader/a4d591b829ddddd57e666af1737b9d34.json +1 -0
  232. package/example/.expo/web/cache/development/babel-loader/a5439975918b87c11694b33af83dab36.json +1 -0
  233. package/example/.expo/web/cache/development/babel-loader/a5813eb247e0c87dcc99934f4b49ae48.json +1 -0
  234. package/example/.expo/web/cache/development/babel-loader/a584b9a0fe744b07e9054b7aa6e79f77.json +1 -0
  235. package/example/.expo/web/cache/development/babel-loader/a689718c369fcd0f651d9089f15f507e.json +1 -0
  236. package/example/.expo/web/cache/development/babel-loader/a78dc48e202b1f3be61ef3bc64699d14.json +1 -0
  237. package/example/.expo/web/cache/development/babel-loader/a79a096843947a83012402bb34b93567.json +1 -0
  238. package/example/.expo/web/cache/development/babel-loader/aa0e6e0aa152ebcb49584ecc82533c72.json +1 -0
  239. package/example/.expo/web/cache/development/babel-loader/abfc16406c69f7727d3e40be1f492f11.json +1 -0
  240. package/example/.expo/web/cache/development/babel-loader/ac5ac27f40cd535964ff8a0f4a7ee169.json +1 -0
  241. package/example/.expo/web/cache/development/babel-loader/ac5c7f32acb8bbc71777904317929782.json +1 -0
  242. package/example/.expo/web/cache/development/babel-loader/acc343298b9d93f37fea5d0160a6e4ba.json +1 -0
  243. package/example/.expo/web/cache/development/babel-loader/b0a4e8cf7a76d3009a62200ed32812d9.json +1 -0
  244. package/example/.expo/web/cache/development/babel-loader/b1661b3c840f0f1de996ba1d52a39764.json +1 -0
  245. package/example/.expo/web/cache/development/babel-loader/b18b69c1c5e4f8cf7c4ded4ea78be1b5.json +1 -0
  246. package/example/.expo/web/cache/development/babel-loader/b265f89f5ab4c2ac5fe0a4efeb01770f.json +1 -0
  247. package/example/.expo/web/cache/development/babel-loader/b32b03cd1b812594924db2f0dadb2f56.json +1 -0
  248. package/example/.expo/web/cache/development/babel-loader/b36ad3720ed8bc69cd40bacd30394013.json +1 -0
  249. package/example/.expo/web/cache/development/babel-loader/b5d4cbb6bcdc394e0d5535f5bbf695e3.json +1 -0
  250. package/example/.expo/web/cache/development/babel-loader/b64b0b9559bbba155f24caa6cf08f433.json +1 -0
  251. package/example/.expo/web/cache/development/babel-loader/bbfb771df3000d27f236c2f6538e6d31.json +1 -0
  252. package/example/.expo/web/cache/development/babel-loader/bcd08666cb6eeb4d7141e38e753e5e5c.json +1 -0
  253. package/example/.expo/web/cache/development/babel-loader/beef69cc65e73363978524809c84094f.json +1 -0
  254. package/example/.expo/web/cache/development/babel-loader/bf018174df7cdbed5ae77cf03c266fee.json +1 -0
  255. package/example/.expo/web/cache/development/babel-loader/bf53ba81ac3956a07f41a09fa6c4fa7e.json +1 -0
  256. package/example/.expo/web/cache/development/babel-loader/c15cb7604e78e9a4f0cc5e4b79a227c2.json +1 -0
  257. package/example/.expo/web/cache/development/babel-loader/c20807f969171763f83e5286ffb7183c.json +1 -0
  258. package/example/.expo/web/cache/development/babel-loader/c309e4999a3ca5404709ed911ec9fdda.json +1 -0
  259. package/example/.expo/web/cache/development/babel-loader/c37b2427c54ed0b731d9413ea475f338.json +1 -0
  260. package/example/.expo/web/cache/development/babel-loader/c43017273abd7760afa188cb903bfa5d.json +1 -0
  261. package/example/.expo/web/cache/development/babel-loader/c5134c3fb7b800b1c9b34655b8e97e4f.json +1 -0
  262. package/example/.expo/web/cache/development/babel-loader/c62552ef04c76cdb7a94ba2f041360ac.json +1 -0
  263. package/example/.expo/web/cache/development/babel-loader/c69144c50f8f0d981b66c62204aaae74.json +1 -0
  264. package/example/.expo/web/cache/development/babel-loader/c733b561ef63b80564242d9b6f4954ec.json +1 -0
  265. package/example/.expo/web/cache/development/babel-loader/c78a01224ddb57513f9dc1603e721184.json +1 -0
  266. package/example/.expo/web/cache/development/babel-loader/c800cb1a4eccf4cc18e1408cf178b86d.json +1 -0
  267. package/example/.expo/web/cache/development/babel-loader/c8c61768113386918420fa8baaa34704.json +1 -0
  268. package/example/.expo/web/cache/development/babel-loader/ca0c207f9e3ba434db8f3775513736e6.json +1 -0
  269. package/example/.expo/web/cache/development/babel-loader/ca4498d52ea6fed7e01c9ed5c26fcf95.json +1 -0
  270. package/example/.expo/web/cache/development/babel-loader/cba71c3eea31dc8ca85b9ced8f7b1720.json +1 -0
  271. package/example/.expo/web/cache/development/babel-loader/cc2ae312a6441a2fedd76ee22ac87d51.json +1 -0
  272. package/example/.expo/web/cache/development/babel-loader/cc37b4c4f23da7c9d04d8693a5bbaaab.json +1 -0
  273. package/example/.expo/web/cache/development/babel-loader/cced66a0b48653e5bfa98910a88f9fba.json +1 -0
  274. package/example/.expo/web/cache/development/babel-loader/cd0e23910d814598adda82d05396be53.json +1 -0
  275. package/example/.expo/web/cache/development/babel-loader/cd55e478acd924f5c082f02840ed8bbb.json +1 -0
  276. package/example/.expo/web/cache/development/babel-loader/cd8b6c6cd6a24fa61739c4d22dda95f8.json +1 -0
  277. package/example/.expo/web/cache/development/babel-loader/cdf6fa5dcab6f3a13fa07e89fe985423.json +1 -0
  278. package/example/.expo/web/cache/development/babel-loader/ceccb76ea280ae97ededa88718ed0c3b.json +1 -0
  279. package/example/.expo/web/cache/development/babel-loader/cfc467109de81a77ce3d683966f4b354.json +1 -0
  280. package/example/.expo/web/cache/development/babel-loader/d0c3cb818782b9a81bfc30385f72b89b.json +1 -0
  281. package/example/.expo/web/cache/development/babel-loader/d0fcdc8e889d972bbb4337e548164f40.json +1 -0
  282. package/example/.expo/web/cache/development/babel-loader/d168cd3939b990979e911bb032f8577b.json +1 -0
  283. package/example/.expo/web/cache/development/babel-loader/d2fc7ecda4f6641f8d52e406be776196.json +1 -0
  284. package/example/.expo/web/cache/development/babel-loader/d358f00c23a45360cbb79dabdb721cd1.json +1 -0
  285. package/example/.expo/web/cache/development/babel-loader/d45d41c244dad2c3ea03ba49a46a0423.json +1 -0
  286. package/example/.expo/web/cache/development/babel-loader/d4f6275737ee0b15864d1784084ec4e9.json +1 -0
  287. package/example/.expo/web/cache/development/babel-loader/d5420905583aa27006ceaa13da6b662a.json +1 -0
  288. package/example/.expo/web/cache/development/babel-loader/d5552d7ee552fec6e21e0b398feb3ddb.json +1 -0
  289. package/example/.expo/web/cache/development/babel-loader/d5cec4c149045421487b8541b94a68b3.json +1 -0
  290. package/example/.expo/web/cache/development/babel-loader/d72ee3cf688a67b27f18b05bef74d879.json +1 -0
  291. package/example/.expo/web/cache/development/babel-loader/d797775538f909e9de0d644bcf0389e4.json +1 -0
  292. package/example/.expo/web/cache/development/babel-loader/d7cfda25d1654f23b9938352b3e5f0fd.json +1 -0
  293. package/example/.expo/web/cache/development/babel-loader/d7f22047db03832a0314db9bb7c9e4e8.json +1 -0
  294. package/example/.expo/web/cache/development/babel-loader/d92da9ccd71edac1d6d7f1b72554205f.json +1 -0
  295. package/example/.expo/web/cache/development/babel-loader/dae925659703faa3496df0985e30eb46.json +1 -0
  296. package/example/.expo/web/cache/development/babel-loader/db2362a80925087fd6dfea2ecf5d1527.json +1 -0
  297. package/example/.expo/web/cache/development/babel-loader/db44721b3956bd3b7617e773f566987b.json +1 -0
  298. package/example/.expo/web/cache/development/babel-loader/dd2e7e9f0700b6295764b0357f97fbd1.json +1 -0
  299. package/example/.expo/web/cache/development/babel-loader/dee3d7eeaa9d088adee455787ecfdbba.json +1 -0
  300. package/example/.expo/web/cache/development/babel-loader/df177e28e870b3f9ed04286275590e05.json +1 -0
  301. package/example/.expo/web/cache/development/babel-loader/df8cca84735630b31c89ab8c4525d586.json +1 -0
  302. package/example/.expo/web/cache/development/babel-loader/dffc3d3b5387634869406f7b262b0334.json +1 -0
  303. package/example/.expo/web/cache/development/babel-loader/e00a687de4af483a065036c6b80fa9f9.json +1 -0
  304. package/example/.expo/web/cache/development/babel-loader/e0bc2b67f28f7d20625141635fb72278.json +1 -0
  305. package/example/.expo/web/cache/development/babel-loader/e12513c015e82fb05ce94ecc8be7102a.json +1 -0
  306. package/example/.expo/web/cache/development/babel-loader/e13d64c5b0cbfdf147e8b47baa112969.json +1 -0
  307. package/example/.expo/web/cache/development/babel-loader/e1630fcfbaff568bf2f669a3e388c026.json +1 -0
  308. package/example/.expo/web/cache/development/babel-loader/e1962858e3fc18c71d271c6eaa3a943d.json +1 -0
  309. package/example/.expo/web/cache/development/babel-loader/e1a0963978b2cb66dec1b5d8a5a2c753.json +1 -0
  310. package/example/.expo/web/cache/development/babel-loader/e21dcee29960dda3812a8e73f9b0fcbc.json +1 -0
  311. package/example/.expo/web/cache/development/babel-loader/e2faafd77df6c4f281c0c99a9e458e54.json +1 -0
  312. package/example/.expo/web/cache/development/babel-loader/e30c76c9a2d4f8d448441c1cb652eb01.json +1 -0
  313. package/example/.expo/web/cache/development/babel-loader/e3e477529ed5548f8e901ee83d7395ef.json +1 -0
  314. package/example/.expo/web/cache/development/babel-loader/e40e88a5ee7080ae8c27b8b8b14fbe3b.json +1 -0
  315. package/example/.expo/web/cache/development/babel-loader/e4815f1b8edf5002fdece1b55fbc36bb.json +1 -0
  316. package/example/.expo/web/cache/development/babel-loader/e656bc77be79a05f8054e227f7f79d12.json +1 -0
  317. package/example/.expo/web/cache/development/babel-loader/e6f55b8bb2f55bff9c7239707407e38b.json +1 -0
  318. package/example/.expo/web/cache/development/babel-loader/e71b020cacbbe302bb14d7910742ec2d.json +1 -0
  319. package/example/.expo/web/cache/development/babel-loader/e7472dd2c104082f95c6920e14b1ebf1.json +1 -0
  320. package/example/.expo/web/cache/development/babel-loader/e7b42d4997a3a0970f307de97b93e04a.json +1 -0
  321. package/example/.expo/web/cache/development/babel-loader/e958dca390e4e96d3ffd3fd3e668de5a.json +1 -0
  322. package/example/.expo/web/cache/development/babel-loader/e9ee1fc9a9a662fdf210526a05895585.json +1 -0
  323. package/example/.expo/web/cache/development/babel-loader/ea69e12059df73da64e057bade5f4ba1.json +1 -0
  324. package/example/.expo/web/cache/development/babel-loader/eae09ceb3f4483977f405539fff299a4.json +1 -0
  325. package/example/.expo/web/cache/development/babel-loader/eaffd3d95bf68dd8a7419e53498b4640.json +1 -0
  326. package/example/.expo/web/cache/development/babel-loader/ec22a1721004d1dffd715720d5c2bda5.json +1 -0
  327. package/example/.expo/web/cache/development/babel-loader/ee15d7496b6f14edc02d2cd58a7353f9.json +1 -0
  328. package/example/.expo/web/cache/development/babel-loader/ee8e3abcff9f49ec89705c0e083bc14e.json +1 -0
  329. package/example/.expo/web/cache/development/babel-loader/ef79cc0b13fea249ac3b074f0a0de8eb.json +1 -0
  330. package/example/.expo/web/cache/development/babel-loader/efdf5fb16bfb6755d38d6afaec705dcc.json +1 -0
  331. package/example/.expo/web/cache/development/babel-loader/f114b6650124f4aa114c8641a8fb2e95.json +1 -0
  332. package/example/.expo/web/cache/development/babel-loader/f26a2ea3fe78d43644601e71fefe7a1e.json +1 -0
  333. package/example/.expo/web/cache/development/babel-loader/f2df4e0da01cdba6223f5bbe6b36ff68.json +1 -0
  334. package/example/.expo/web/cache/development/babel-loader/f3060f14259d3179812abd59791780a5.json +1 -0
  335. package/example/.expo/web/cache/development/babel-loader/f3beb518b54ed38f03ac6db8f54e60ff.json +1 -0
  336. package/example/.expo/web/cache/development/babel-loader/f3c616fbd126299d1e806d6ecc1ec318.json +1 -0
  337. package/example/.expo/web/cache/development/babel-loader/f42e9bcb2c70b941d26c869beae57ebd.json +1 -0
  338. package/example/.expo/web/cache/development/babel-loader/f4a9921d6e837efff4d9a9df358e594f.json +1 -0
  339. package/example/.expo/web/cache/development/babel-loader/f4c95c91f375005a143433586f729253.json +1 -0
  340. package/example/.expo/web/cache/development/babel-loader/f557735276807fa1f2857d869fcf3f24.json +1 -0
  341. package/example/.expo/web/cache/development/babel-loader/f7747a8774208f97feee323659c8fd9c.json +1 -0
  342. package/example/.expo/web/cache/development/babel-loader/f78eccb875790b4d905e542a961bf15d.json +1 -0
  343. package/example/.expo/web/cache/development/babel-loader/f79a20eb5fe07a41699a4082250176ee.json +1 -0
  344. package/example/.expo/web/cache/development/babel-loader/f8161007e70676aff950dd230d92b913.json +1 -0
  345. package/example/.expo/web/cache/development/babel-loader/f89bed9b99073eb34bdcfe509a9eef7b.json +1 -0
  346. package/example/.expo/web/cache/development/babel-loader/f8da7cfcc868c4561939eb69b187852b.json +1 -0
  347. package/example/.expo/web/cache/development/babel-loader/f9a453849a2adca3c8d16c288ee63674.json +1 -0
  348. package/example/.expo/web/cache/development/babel-loader/f9c8751528f50853c93bccaef3665cb2.json +1 -0
  349. package/example/.expo/web/cache/development/babel-loader/fa1cac776862e25b801ccd74fe04dedb.json +1 -0
  350. package/example/.expo/web/cache/development/babel-loader/fa7135f62c5758217dd521fe11e4f3be.json +1 -0
  351. package/example/.expo/web/cache/development/babel-loader/fb1afe2167ecb0e405e51371bc59a75e.json +1 -0
  352. package/example/.expo/web/cache/development/babel-loader/fc02f1af2a9db4facfa4f4fc290432fe.json +1 -0
  353. package/example/.expo/web/cache/development/babel-loader/fc62eb1057700a3ed46569b3ca6ae7b8.json +1 -0
  354. package/example/.expo/web/cache/development/babel-loader/fc941b53721fd7910cde57ec192fe407.json +1 -0
  355. package/example/.expo/web/cache/development/babel-loader/fd143c0566e976f3b69413de3ca79ebf.json +1 -0
  356. package/example/.expo/web/cache/development/babel-loader/fd655c3e164d6c50e7affcee01046566.json +1 -0
  357. package/example/.expo/web/cache/development/babel-loader/fdada169c1988ef70eea3e2b77f7b727.json +1 -0
  358. package/example/.expo/web/cache/development/babel-loader/fe0a5f0e6f28f358efb1ed12c10b3240.json +1 -0
  359. package/example/.expo/web/cache/development/babel-loader/ff9a6e20e331b715609602c9bca399e9.json +1 -0
  360. package/example/package.json +11 -13
  361. package/example/src/App.tsx +39 -34
  362. package/example/src/CandlestickChart.tsx +4 -1
  363. package/example/src/LineChart.tsx +20 -4
  364. package/example/src/data/line-data.json +20 -20
  365. package/example/yarn.lock +1819 -8871
  366. package/lib/commonjs/charts/candle/HoverTrap/index.web.js +120 -0
  367. package/lib/commonjs/charts/candle/HoverTrap/index.web.js.map +1 -0
  368. package/lib/commonjs/charts/candle/utils/getDomain.js +19 -0
  369. package/lib/commonjs/charts/candle/utils/getDomain.js.map +1 -0
  370. package/lib/commonjs/charts/candle/utils/getHeight.js +19 -0
  371. package/lib/commonjs/charts/candle/utils/getHeight.js.map +1 -0
  372. package/lib/commonjs/charts/candle/utils/getPrice.js +20 -0
  373. package/lib/commonjs/charts/candle/utils/getPrice.js.map +1 -0
  374. package/lib/commonjs/charts/candle/utils/getY.js +19 -0
  375. package/lib/commonjs/charts/candle/utils/getY.js.map +1 -0
  376. package/lib/commonjs/charts/candle/utils/index.js +58 -0
  377. package/lib/commonjs/charts/candle/utils/index.js.map +1 -0
  378. package/lib/commonjs/charts/line/Chart.js +27 -9
  379. package/lib/commonjs/charts/line/Chart.js.map +1 -1
  380. package/lib/commonjs/charts/line/ChartPath.js +83 -21
  381. package/lib/commonjs/charts/line/ChartPath.js.map +1 -1
  382. package/lib/commonjs/charts/line/Context.js +8 -4
  383. package/lib/commonjs/charts/line/Context.js.map +1 -1
  384. package/lib/commonjs/charts/line/Cursor.js +2 -1
  385. package/lib/commonjs/charts/line/Cursor.js.map +1 -1
  386. package/lib/commonjs/charts/line/CursorCrosshair.js +12 -3
  387. package/lib/commonjs/charts/line/CursorCrosshair.js.map +1 -1
  388. package/lib/commonjs/charts/line/CursorLine.js +6 -6
  389. package/lib/commonjs/charts/line/CursorLine.js.map +1 -1
  390. package/lib/commonjs/charts/line/DatetimeText.js +2 -0
  391. package/lib/commonjs/charts/line/DatetimeText.js.map +1 -1
  392. package/lib/commonjs/charts/line/Dot.js +126 -0
  393. package/lib/commonjs/charts/line/Dot.js.map +1 -0
  394. package/lib/commonjs/charts/line/Gradient.js +8 -25
  395. package/lib/commonjs/charts/line/Gradient.js.map +1 -1
  396. package/lib/commonjs/charts/line/Group.js +5 -24
  397. package/lib/commonjs/charts/line/Group.js.map +1 -1
  398. package/lib/commonjs/charts/line/Highlight.js +92 -0
  399. package/lib/commonjs/charts/line/Highlight.js.map +1 -0
  400. package/lib/commonjs/charts/line/HorizontalLine.js +6 -6
  401. package/lib/commonjs/charts/line/HorizontalLine.js.map +1 -1
  402. package/lib/commonjs/charts/line/HoverTrap/index.js +15 -0
  403. package/lib/commonjs/charts/line/HoverTrap/index.js.map +1 -0
  404. package/lib/commonjs/charts/line/HoverTrap/index.web.js +120 -0
  405. package/lib/commonjs/charts/line/HoverTrap/index.web.js.map +1 -0
  406. package/lib/commonjs/charts/line/Path.js +19 -30
  407. package/lib/commonjs/charts/line/Path.js.map +1 -1
  408. package/lib/commonjs/charts/line/PriceText.js +2 -0
  409. package/lib/commonjs/charts/line/PriceText.js.map +1 -1
  410. package/lib/commonjs/charts/line/Tooltip.js +2 -0
  411. package/lib/commonjs/charts/line/Tooltip.js.map +1 -1
  412. package/lib/commonjs/charts/line/index.js +48 -15
  413. package/lib/commonjs/charts/line/index.js.map +1 -1
  414. package/lib/commonjs/charts/line/useAnimatedPath.js +44 -0
  415. package/lib/commonjs/charts/line/useAnimatedPath.js.map +1 -0
  416. package/lib/commonjs/charts/line/{utils.js → utils/getArea.js} +2 -49
  417. package/lib/commonjs/charts/line/utils/getArea.js.map +1 -0
  418. package/lib/commonjs/charts/line/utils/getDomain.js +16 -0
  419. package/lib/commonjs/charts/line/utils/getDomain.js.map +1 -0
  420. package/lib/commonjs/charts/line/utils/getPath.js +34 -0
  421. package/lib/commonjs/charts/line/utils/getPath.js.map +1 -0
  422. package/lib/commonjs/charts/line/utils/index.js +71 -0
  423. package/lib/commonjs/charts/line/utils/index.js.map +1 -0
  424. package/lib/commonjs/charts/line/{interpolatePath.js → utils/interpolatePath.js} +1 -1
  425. package/lib/commonjs/charts/line/{interpolatePath.js.map → utils/interpolatePath.js.map} +1 -1
  426. package/lib/commonjs/charts/line/utils/lineChartDataPropToArray.js +27 -0
  427. package/lib/commonjs/charts/line/utils/lineChartDataPropToArray.js.map +1 -0
  428. package/lib/commonjs/components/AnimatedText.js +25 -13
  429. package/lib/commonjs/components/AnimatedText.js.map +1 -1
  430. package/lib/commonjs/index.js +8 -8
  431. package/lib/commonjs/index.js.map +1 -1
  432. package/lib/commonjs/utils/formatDatetime.js +21 -0
  433. package/lib/commonjs/utils/formatDatetime.js.map +1 -0
  434. package/lib/commonjs/utils/formatPrice.js +46 -0
  435. package/lib/commonjs/utils/formatPrice.js.map +1 -0
  436. package/lib/commonjs/utils/index.js +45 -0
  437. package/lib/commonjs/utils/index.js.map +1 -0
  438. package/lib/commonjs/{utils.js → utils/usePrevious.js} +1 -57
  439. package/lib/commonjs/utils/usePrevious.js.map +1 -0
  440. package/lib/module/charts/candle/HoverTrap/index.web.js +101 -0
  441. package/lib/module/charts/candle/HoverTrap/index.web.js.map +1 -0
  442. package/lib/module/charts/candle/utils/getDomain.js +12 -0
  443. package/lib/module/charts/candle/utils/getDomain.js.map +1 -0
  444. package/lib/module/charts/candle/utils/getHeight.js +11 -0
  445. package/lib/module/charts/candle/utils/getHeight.js.map +1 -0
  446. package/lib/module/charts/candle/utils/getPrice.js +12 -0
  447. package/lib/module/charts/candle/utils/getPrice.js.map +1 -0
  448. package/lib/module/charts/candle/utils/getY.js +11 -0
  449. package/lib/module/charts/candle/utils/getY.js.map +1 -0
  450. package/lib/module/charts/candle/utils/index.js +5 -0
  451. package/lib/module/charts/candle/utils/index.js.map +1 -0
  452. package/lib/module/charts/line/Chart.js +27 -10
  453. package/lib/module/charts/line/Chart.js.map +1 -1
  454. package/lib/module/charts/line/ChartPath.js +79 -21
  455. package/lib/module/charts/line/ChartPath.js.map +1 -1
  456. package/lib/module/charts/line/Context.js +8 -4
  457. package/lib/module/charts/line/Context.js.map +1 -1
  458. package/lib/module/charts/line/Cursor.js +2 -1
  459. package/lib/module/charts/line/Cursor.js.map +1 -1
  460. package/lib/module/charts/line/CursorCrosshair.js +12 -4
  461. package/lib/module/charts/line/CursorCrosshair.js.map +1 -1
  462. package/lib/module/charts/line/CursorLine.js +4 -3
  463. package/lib/module/charts/line/CursorLine.js.map +1 -1
  464. package/lib/module/charts/line/DatetimeText.js +1 -0
  465. package/lib/module/charts/line/DatetimeText.js.map +1 -1
  466. package/lib/module/charts/line/Dot.js +105 -0
  467. package/lib/module/charts/line/Dot.js.map +1 -0
  468. package/lib/module/charts/line/Gradient.js +8 -24
  469. package/lib/module/charts/line/Gradient.js.map +1 -1
  470. package/lib/module/charts/line/Group.js +2 -23
  471. package/lib/module/charts/line/Group.js.map +1 -1
  472. package/lib/module/charts/line/Highlight.js +69 -0
  473. package/lib/module/charts/line/Highlight.js.map +1 -0
  474. package/lib/module/charts/line/HorizontalLine.js +4 -3
  475. package/lib/module/charts/line/HorizontalLine.js.map +1 -1
  476. package/lib/module/charts/line/HoverTrap/index.js +3 -0
  477. package/lib/module/charts/line/HoverTrap/index.js.map +1 -0
  478. package/lib/module/charts/line/HoverTrap/index.web.js +101 -0
  479. package/lib/module/charts/line/HoverTrap/index.web.js.map +1 -0
  480. package/lib/module/charts/line/Path.js +17 -29
  481. package/lib/module/charts/line/Path.js.map +1 -1
  482. package/lib/module/charts/line/PriceText.js +1 -0
  483. package/lib/module/charts/line/PriceText.js.map +1 -1
  484. package/lib/module/charts/line/Tooltip.js +1 -0
  485. package/lib/module/charts/line/Tooltip.js.map +1 -1
  486. package/lib/module/charts/line/index.js +13 -5
  487. package/lib/module/charts/line/index.js.map +1 -1
  488. package/lib/module/charts/line/useAnimatedPath.js +34 -0
  489. package/lib/module/charts/line/useAnimatedPath.js.map +1 -0
  490. package/lib/module/charts/line/utils/getArea.js +19 -0
  491. package/lib/module/charts/line/utils/getArea.js.map +1 -0
  492. package/lib/module/charts/line/utils/getDomain.js +9 -0
  493. package/lib/module/charts/line/utils/getDomain.js.map +1 -0
  494. package/lib/module/charts/line/utils/getPath.js +21 -0
  495. package/lib/module/charts/line/utils/getPath.js.map +1 -0
  496. package/lib/module/charts/line/utils/index.js +6 -0
  497. package/lib/module/charts/line/utils/index.js.map +1 -0
  498. package/lib/module/charts/line/{interpolatePath.js → utils/interpolatePath.js} +1 -1
  499. package/lib/module/charts/line/{interpolatePath.js.map → utils/interpolatePath.js.map} +1 -1
  500. package/lib/module/charts/line/utils/lineChartDataPropToArray.js +20 -0
  501. package/lib/module/charts/line/utils/lineChartDataPropToArray.js.map +1 -0
  502. package/lib/module/components/AnimatedText.js +24 -13
  503. package/lib/module/components/AnimatedText.js.map +1 -1
  504. package/lib/module/index.js +1 -1
  505. package/lib/module/index.js.map +1 -1
  506. package/lib/module/utils/formatDatetime.js +14 -0
  507. package/lib/module/utils/formatDatetime.js.map +1 -0
  508. package/lib/module/{utils.js → utils/formatPrice.js} +1 -29
  509. package/lib/module/utils/formatPrice.js.map +1 -0
  510. package/lib/module/utils/index.js +4 -0
  511. package/lib/module/utils/index.js.map +1 -0
  512. package/lib/module/utils/usePrevious.js +14 -0
  513. package/lib/module/utils/usePrevious.js.map +1 -0
  514. package/lib/typescript/src/charts/candle/HoverTrap/index.web.d.ts +2 -0
  515. package/lib/typescript/src/charts/candle/utils/getDomain.d.ts +2 -0
  516. package/lib/typescript/src/charts/candle/utils/getHeight.d.ts +6 -0
  517. package/lib/typescript/src/charts/candle/utils/getPrice.d.ts +6 -0
  518. package/lib/typescript/src/charts/candle/utils/getY.d.ts +6 -0
  519. package/lib/typescript/src/charts/candle/utils/index.d.ts +4 -0
  520. package/lib/typescript/src/charts/line/Chart.d.ts +6 -1
  521. package/lib/typescript/src/charts/line/ChartPath.d.ts +12 -3
  522. package/lib/typescript/src/charts/line/Context.d.ts +5 -1
  523. package/lib/typescript/src/charts/line/Cursor.d.ts +3 -0
  524. package/lib/typescript/src/charts/line/CursorCrosshair.d.ts +4 -1
  525. package/lib/typescript/src/charts/line/CursorLine.d.ts +4 -1
  526. package/lib/typescript/src/charts/line/DatetimeText.d.ts +3 -0
  527. package/lib/typescript/src/charts/line/Dot.d.ts +31 -0
  528. package/lib/typescript/src/charts/line/Gradient.d.ts +3 -0
  529. package/lib/typescript/src/charts/line/Group.d.ts +1 -2
  530. package/lib/typescript/src/charts/line/Highlight.d.ts +15 -0
  531. package/lib/typescript/src/charts/line/HorizontalLine.d.ts +4 -1
  532. package/lib/typescript/src/charts/line/HoverTrap/index.d.ts +2 -0
  533. package/lib/typescript/src/charts/line/HoverTrap/index.web.d.ts +2 -0
  534. package/lib/typescript/src/charts/line/Path.d.ts +5 -1
  535. package/lib/typescript/src/charts/line/PriceText.d.ts +3 -0
  536. package/lib/typescript/src/charts/line/Tooltip.d.ts +3 -0
  537. package/lib/typescript/src/charts/line/index.d.ts +16 -22
  538. package/lib/typescript/src/charts/line/types.d.ts +1 -0
  539. package/lib/typescript/src/charts/line/useAnimatedPath.d.ts +8 -0
  540. package/lib/typescript/src/charts/line/useLineChart.d.ts +1 -0
  541. package/lib/typescript/src/charts/line/utils/getArea.d.ts +9 -0
  542. package/lib/typescript/src/charts/line/utils/getDomain.d.ts +2 -0
  543. package/lib/typescript/src/charts/line/utils/getPath.d.ts +11 -0
  544. package/lib/typescript/src/charts/line/utils/index.d.ts +5 -0
  545. package/lib/typescript/src/charts/line/{interpolatePath.d.ts → utils/interpolatePath.d.ts} +1 -1
  546. package/lib/typescript/src/charts/line/utils/lineChartDataPropToArray.d.ts +2 -0
  547. package/lib/typescript/src/index.d.ts +1 -1
  548. package/lib/typescript/src/utils/formatDatetime.d.ts +8 -0
  549. package/lib/typescript/src/utils/formatPrice.d.ts +8 -0
  550. package/lib/typescript/src/utils/index.d.ts +3 -0
  551. package/lib/typescript/src/utils/usePrevious.d.ts +1 -0
  552. package/package.json +8 -6
  553. package/src/charts/candle/HoverTrap/index.web.tsx +110 -0
  554. package/src/charts/candle/utils/getDomain.ts +9 -0
  555. package/src/charts/candle/utils/getHeight.ts +21 -0
  556. package/src/charts/candle/utils/getPrice.ts +17 -0
  557. package/src/charts/candle/utils/getY.ts +16 -0
  558. package/src/charts/candle/utils/index.ts +4 -0
  559. package/src/charts/line/Chart.tsx +24 -8
  560. package/src/charts/line/ChartPath.tsx +119 -36
  561. package/src/charts/line/Context.tsx +8 -0
  562. package/src/charts/line/Cursor.tsx +5 -1
  563. package/src/charts/line/CursorCrosshair.tsx +22 -5
  564. package/src/charts/line/CursorLine.tsx +5 -3
  565. package/src/charts/line/DatetimeText.tsx +2 -0
  566. package/src/charts/line/Dot.tsx +175 -0
  567. package/src/charts/line/Gradient.tsx +7 -34
  568. package/src/charts/line/Group.tsx +4 -45
  569. package/src/charts/line/Highlight.tsx +78 -0
  570. package/src/charts/line/HorizontalLine.tsx +5 -3
  571. package/src/charts/line/HoverTrap/index.tsx +3 -0
  572. package/src/charts/line/HoverTrap/index.web.tsx +110 -0
  573. package/src/charts/line/Path.tsx +14 -38
  574. package/src/charts/line/PriceText.tsx +2 -0
  575. package/src/charts/line/Tooltip.tsx +2 -0
  576. package/src/charts/line/index.ts +13 -5
  577. package/src/charts/line/types.ts +1 -0
  578. package/src/charts/line/useAnimatedPath.ts +47 -0
  579. package/src/charts/line/utils/getArea.ts +38 -0
  580. package/src/charts/line/utils/getDomain.ts +7 -0
  581. package/src/charts/line/utils/getPath.ts +48 -0
  582. package/src/charts/line/utils/index.ts +5 -0
  583. package/src/charts/line/{interpolatePath.ts → utils/interpolatePath.ts} +1 -1
  584. package/src/charts/line/utils/lineChartDataPropToArray.ts +25 -0
  585. package/src/components/AnimatedText.tsx +27 -16
  586. package/src/index.ts +1 -1
  587. package/src/utils/formatDatetime.ts +16 -0
  588. package/src/{utils.ts → utils/formatPrice.ts} +0 -31
  589. package/src/utils/index.ts +3 -0
  590. package/src/utils/usePrevious.ts +13 -0
  591. package/tsconfig.json +1 -1
  592. package/yarn.lock +1847 -796
  593. package/example/patches/react-native-reanimated+2.2.2.patch +0 -28
  594. package/lib/commonjs/charts/line/utils.js.map +0 -1
  595. package/lib/commonjs/utils.js.map +0 -1
  596. package/lib/module/charts/line/utils.js +0 -60
  597. package/lib/module/charts/line/utils.js.map +0 -1
  598. package/lib/module/utils.js.map +0 -1
  599. package/lib/typescript/src/charts/line/utils.d.ts +0 -20
  600. package/lib/typescript/src/utils.d.ts +0 -17
  601. package/src/charts/line/utils.ts +0 -100
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import ReactNativePropRegistry from \"./ReactNativePropRegistry\";\nimport flattenStyle from \"./flattenStyle\";\nvar absoluteFillObject = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n};\nvar absoluteFill = ReactNativePropRegistry.register(absoluteFillObject);\nvar StyleSheet = {\n absoluteFill: absoluteFill,\n absoluteFillObject: absoluteFillObject,\n compose: function compose(style1, style2) {\n if (process.env.NODE_ENV !== 'production') {\n var len = arguments.length;\n\n if (len > 2) {\n var readableStyles = Array.prototype.slice.call(arguments).map(function (a) {\n return flattenStyle(a);\n });\n throw new Error(\"StyleSheet.compose() only accepts 2 arguments, received \" + len + \": \" + JSON.stringify(readableStyles));\n }\n }\n\n if (style1 && style2) {\n return [style1, style2];\n } else {\n return style1 || style2;\n }\n },\n create: function create(styles) {\n var result = {};\n Object.keys(styles).forEach(function (key) {\n if (process.env.NODE_ENV !== 'production') {\n var validate = require(\"./validate\");\n\n var interopValidate = validate.default ? validate.default : validate;\n interopValidate(key, styles);\n }\n\n var id = styles[key] && ReactNativePropRegistry.register(styles[key]);\n result[key] = id;\n });\n return result;\n },\n flatten: flattenStyle,\n hairlineWidth: 1\n};\nexport default StyleSheet;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/exports/StyleSheet/StyleSheet.js"],"names":["ReactNativePropRegistry","flattenStyle","absoluteFillObject","position","left","right","top","bottom","absoluteFill","register","StyleSheet","compose","style1","style2","process","env","NODE_ENV","len","arguments","length","readableStyles","Array","prototype","slice","call","map","a","Error","JSON","stringify","create","styles","result","Object","keys","forEach","key","validate","require","interopValidate","default","id","flatten","hairlineWidth"],"mappings":"AAQA,OAAOA,uBAAP;AACA,OAAOC,YAAP;AACA,IAAIC,kBAAkB,GAAG;AACvBC,EAAAA,QAAQ,EAAE,UADa;AAEvBC,EAAAA,IAAI,EAAE,CAFiB;AAGvBC,EAAAA,KAAK,EAAE,CAHgB;AAIvBC,EAAAA,GAAG,EAAE,CAJkB;AAKvBC,EAAAA,MAAM,EAAE;AALe,CAAzB;AAOA,IAAIC,YAAY,GAAGR,uBAAuB,CAACS,QAAxB,CAAiCP,kBAAjC,CAAnB;AACA,IAAIQ,UAAU,GAAG;AACfF,EAAAA,YAAY,EAAEA,YADC;AAEfN,EAAAA,kBAAkB,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iCsB,MAAM,CAACK,GAAD,CAAvC,CAAxB;AACAJ,MAAAA,MAAM,CAACI,GAAD,CAAN,GAAcK,EAAd;AACD,KAVD;AAWA,WAAOT,MAAP;AACD,GAtCc;AAuCfU,EAAAA,OAAO,EAAEzC,YAvCM;AA0Cf0C,EAAAA,aAAa,EAAE;AA1CA,CAAjB;AA4CA,eAAejC,UAAf","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport ReactNativePropRegistry from './ReactNativePropRegistry';\nimport flattenStyle from './flattenStyle';\nvar absoluteFillObject = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n};\nvar absoluteFill = ReactNativePropRegistry.register(absoluteFillObject);\nvar StyleSheet = {\n absoluteFill: absoluteFill,\n absoluteFillObject: absoluteFillObject,\n compose: function compose(style1, style2) {\n if (process.env.NODE_ENV !== 'production') {\n /* eslint-disable prefer-rest-params */\n var len = arguments.length;\n\n if (len > 2) {\n var readableStyles = Array.prototype.slice.call(arguments).map(function (a) {\n return flattenStyle(a);\n });\n throw new Error(\"StyleSheet.compose() only accepts 2 arguments, received \" + len + \": \" + JSON.stringify(readableStyles));\n }\n /* eslint-enable prefer-rest-params */\n\n }\n\n if (style1 && style2) {\n return [style1, style2];\n } else {\n return style1 || style2;\n }\n },\n create: function create(styles) {\n var result = {};\n Object.keys(styles).forEach(function (key) {\n if (process.env.NODE_ENV !== 'production') {\n var validate = require('./validate');\n\n var interopValidate = validate.default ? validate.default : validate;\n interopValidate(key, styles);\n }\n\n var id = styles[key] && ReactNativePropRegistry.register(styles[key]);\n result[key] = id;\n });\n return result;\n },\n flatten: flattenStyle,\n // `hairlineWidth` is not implemented using screen density as browsers may\n // round sub-pixel values down to `0`, causing the line not to be rendered.\n hairlineWidth: 1\n};\nexport default StyleSheet;"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import LayoutAnimation from \"../../vendor/react-native/LayoutAnimation\";\nexport default LayoutAnimation;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/exports/LayoutAnimation/index.js"],"names":["LayoutAnimation"],"mappings":"AASA,OAAOA,eAAP;AACA,eAAeA,eAAf","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport LayoutAnimation from '../../vendor/react-native/LayoutAnimation';\nexport default LayoutAnimation;"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nimport invariant from 'fbjs/lib/invariant';\n\nvar Share = function () {\n function Share() {}\n\n Share.share = function share(content, options) {\n if (options === void 0) {\n options = {};\n }\n\n invariant(typeof content === 'object' && content !== null, 'Content to share must be a valid object');\n invariant(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required');\n invariant(typeof options === 'object' && options !== null, 'Options must be a valid object');\n invariant(!content.title || typeof content.title === 'string', 'Invalid title: title should be a string.');\n\n if (window.navigator.share !== undefined) {\n return window.navigator.share({\n title: content.title,\n text: content.message,\n url: content.url\n });\n } else {\n return Promise.reject(new Error('Share is not supported in this browser'));\n }\n };\n\n _createClass(Share, null, [{\n key: \"sharedAction\",\n get: function get() {\n return 'sharedAction';\n }\n }, {\n key: \"dismissedAction\",\n get: function get() {\n return 'dismissedAction';\n }\n }]);\n\n return Share;\n}();\n\nexport default Share;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/exports/Share/index.js"],"names":["_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","Constructor","protoProps","staticProps","prototype","invariant","Share","share","content","options","url","message","title","window","navigator","undefined","text","Promise","reject","Error","get"],"mappings":"AAAA,SAASA,iBAAT,CAA2BC,MAA3B,EAAmCC,KAAnC,EAA0C;AAAE,OAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGD,KAAK,CAACE,MAA1B,EAAkCD,CAAC,EAAnC,EAAuC;AAAE,QAAIE,UAAU,GAAGH,KAAK,CAACC,CAAD,CAAtB;AAA2BE,IAAAA,UAAU,CAACC,UAAX,GAAwBD,UAAU,CAACC,UAAX,IAAyB,KAAjD;AAAwDD,IAAAA,UAAU,CAACE,YAAX,GAA0B,IAA1B;AAAgC,QAAI,WAAWF,UAAf,EAA2BA,UAAU,CAACG,QAAX,GAAsB,IAAtB;AAA4BC,IAAAA,MAAM,CAACC,cAAP,CAAsBT,MAAtB,EAA8BI,UAAU,CAACM,GAAzC,EAA8CN,UAA9C;AAA4D;AAAE;;AAE7T,SAASO,YAAT,CAAsBC,WAAtB,EAAmCC,UAAnC,EAA+CC,WAA/C,EAA4D;AAAE,MAAID,UAAJ,EAAgBd,iBAAiB,CAACa,WAAW,CAACG,SAAb,EAAwBF,UAAxB,CAAjB;AAAsD,MAAIC,WAAJ,EAAiBf,iBAAiB,CAACa,WAAD,EAAcE,WAAd,CAAjB;AAA6C,SAAOF,WAAP;AAAqB;;AAWvN,OAAOI,SAAP,MAAsB,oBAAtB;;AAEA,IAAIC,KAAK,GAET,YAAY;AACV,WAASA,KAAT,GAAiB,CAAE;;AAEnBA,EAAAA,KAAK,CAACC,KAAN,GAAc,SAASA,KAAT,CAAeC,OAAf,EAAwBC,OAAxB,EAAiC;AAC7C,QAAIA,OAAO,KAAK,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AOd,KAAP;AACD,CA9CD,EAFA;;AAkDA,eAAeA,KAAf","sourcesContent":["function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport invariant from 'fbjs/lib/invariant';\n\nvar Share =\n/*#__PURE__*/\nfunction () {\n function Share() {}\n\n Share.share = function share(content, options) {\n if (options === void 0) {\n options = {};\n }\n\n invariant(typeof content === 'object' && content !== null, 'Content to share must be a valid object');\n invariant(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required');\n invariant(typeof options === 'object' && options !== null, 'Options must be a valid object');\n invariant(!content.title || typeof content.title === 'string', 'Invalid title: title should be a string.');\n\n if (window.navigator.share !== undefined) {\n return window.navigator.share({\n title: content.title,\n text: content.message,\n url: content.url\n });\n } else {\n return Promise.reject(new Error('Share is not supported in this browser'));\n }\n }\n /**\n * The content was successfully shared.\n */\n ;\n\n _createClass(Share, null, [{\n key: \"sharedAction\",\n get: function get() {\n return 'sharedAction';\n }\n /**\n * The dialog has been dismissed.\n * @platform ios\n */\n\n }, {\n key: \"dismissedAction\",\n get: function get() {\n return 'dismissedAction';\n }\n }]);\n\n return Share;\n}();\n\nexport default Share;"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import Animated, { interpolate } from \"react-native-reanimated\";\nimport parseSVG from \"parse-svg-path\";\nimport absSVG from \"abs-svg-path\";\nimport normalizeSVG from \"normalize-svg-path\";\nimport { cartesian2Polar } from \"./Coordinates\";\nimport { cubicBezierYForX } from \"./Math\";\nexport var serialize = function () {\n var _f = function _f(path) {\n return \"M\" + path.move.x + \",\" + path.move.y + \" \" + path.curves.map(function (c) {\n return \"C\" + c.c1.x + \",\" + c.c1.y + \" \" + c.c2.x + \",\" + c.c2.y + \" \" + c.to.x + \",\" + c.to.y;\n }).join(\" \") + (path.close ? \"Z\" : \"\");\n };\n\n _f._closure = {};\n _f.asString = \"function serialize(path){return\\\"M\\\"+path.move.x+\\\",\\\"+path.move.y+\\\" \\\"+path.curves.map(function(c){return\\\"C\\\"+c.c1.x+\\\",\\\"+c.c1.y+\\\" \\\"+c.c2.x+\\\",\\\"+c.c2.y+\\\" \\\"+c.to.x+\\\",\\\"+c.to.y;}).join(\\\" \\\")+(path.close?\\\"Z\\\":\\\"\\\");}\";\n _f.__workletHash = 6511175714632;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:275)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var parse = function parse(d) {\n var segments = normalizeSVG(absSVG(parseSVG(d)));\n var path = createPath({\n x: segments[0][1],\n y: segments[0][2]\n });\n segments.forEach(function (segment) {\n if (segment[0] === \"Z\") {\n close(path);\n } else if (segment[0] === \"C\") {\n addCurve(path, {\n c1: {\n x: segment[1],\n y: segment[2]\n },\n c2: {\n x: segment[3],\n y: segment[4]\n },\n to: {\n x: segment[5],\n y: segment[6]\n }\n });\n }\n });\n return path;\n};\nexport var interpolatePath = function () {\n var _f = function _f(value, inputRange, outputRange) {\n var extrapolate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Animated.Extrapolate.CLAMP;\n var path = {\n move: {\n x: interpolate(value, inputRange, outputRange.map(function (p) {\n return p.move.x;\n }), extrapolate),\n y: interpolate(value, inputRange, outputRange.map(function (p) {\n return p.move.y;\n }), extrapolate)\n },\n curves: outputRange[0].curves.map(function (_, index) {\n return {\n c1: {\n x: interpolate(value, inputRange, outputRange.map(function (p) {\n return p.curves[index].c1.x;\n }), extrapolate),\n y: interpolate(value, inputRange, outputRange.map(function (p) {\n return p.curves[index].c1.y;\n }), extrapolate)\n },\n c2: {\n x: interpolate(value, inputRange, outputRange.map(function (p) {\n return p.curves[index].c2.x;\n }), extrapolate),\n y: interpolate(value, inputRange, outputRange.map(function (p) {\n return p.curves[index].c2.y;\n }), extrapolate)\n },\n to: {\n x: interpolate(value, inputRange, outputRange.map(function (p) {\n return p.curves[index].to.x;\n }), extrapolate),\n y: interpolate(value, inputRange, outputRange.map(function (p) {\n return p.curves[index].to.y;\n }), extrapolate)\n }\n };\n }),\n close: outputRange[0].close\n };\n return serialize(path);\n };\n\n _f._closure = {\n Animated: {\n Extrapolate: {\n CLAMP: Animated.Extrapolate.CLAMP\n }\n },\n interpolate: interpolate,\n serialize: serialize\n };\n _f.asString = \"function interpolatePath(value,inputRange,outputRange){const{Animated,interpolate,serialize}=jsThis._closure;{var extrapolate=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Animated.Extrapolate.CLAMP;var path={move:{x:interpolate(value,inputRange,outputRange.map(function(p){return p.move.x;}),extrapolate),y:interpolate(value,inputRange,outputRange.map(function(p){return p.move.y;}),extrapolate)},curves:outputRange[0].curves.map(function(_,index){return{c1:{x:interpolate(value,inputRange,outputRange.map(function(p){return p.curves[index].c1.x;}),extrapolate),y:interpolate(value,inputRange,outputRange.map(function(p){return p.curves[index].c1.y;}),extrapolate)},c2:{x:interpolate(value,inputRange,outputRange.map(function(p){return p.curves[index].c2.x;}),extrapolate),y:interpolate(value,inputRange,outputRange.map(function(p){return p.curves[index].c2.y;}),extrapolate)},to:{x:interpolate(value,inputRange,outputRange.map(function(p){return p.curves[index].to.x;}),extrapolate),y:interpolate(value,inputRange,outputRange.map(function(p){return p.curves[index].to.y;}),extrapolate)}};}),close:outputRange[0].close};return serialize(path);}}\";\n _f.__workletHash = 2067999254256;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:876)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var mixPath = function () {\n var _f = function _f(value, p1, p2) {\n var extrapolate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Animated.Extrapolate.CLAMP;\n return interpolatePath(value, [0, 1], [p1, p2], extrapolate);\n };\n\n _f._closure = {\n Animated: {\n Extrapolate: {\n CLAMP: Animated.Extrapolate.CLAMP\n }\n },\n interpolatePath: interpolatePath\n };\n _f.asString = \"function mixPath(value,p1,p2){const{Animated,interpolatePath}=jsThis._closure;{var extrapolate=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Animated.Extrapolate.CLAMP;return interpolatePath(value,[0,1],[p1,p2],extrapolate);}}\";\n _f.__workletHash = 1615030869398;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:2008)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var createPath = function () {\n var _f = function _f(move) {\n return {\n move: move,\n curves: [],\n close: false\n };\n };\n\n _f._closure = {};\n _f.asString = \"function createPath(move){return{move:move,curves:[],close:false};}\";\n _f.__workletHash = 14928498416510;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:2229)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var addArc = function () {\n var _f = function _f(path, corner, to) {\n var last = path.curves[path.curves.length - 1];\n var from = last ? last.to : path.move;\n var arc = 9 / 16;\n path.curves.push({\n c1: {\n x: (corner.x - from.x) * arc + from.x,\n y: (corner.y - from.y) * arc + from.y\n },\n c2: {\n x: (corner.x - to.x) * arc + to.x,\n y: (corner.y - to.y) * arc + to.y\n },\n to: to\n });\n };\n\n _f._closure = {};\n _f.asString = \"function addArc(path,corner,to){var last=path.curves[path.curves.length-1];var from=last?last.to:path.move;var arc=9/16;path.curves.push({c1:{x:(corner.x-from.x)*arc+from.x,y:(corner.y-from.y)*arc+from.y},c2:{x:(corner.x-to.x)*arc+to.x,y:(corner.y-to.y)*arc+to.y},to:to});}\";\n _f.__workletHash = 7717658052260;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:2325)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var addCurve = function () {\n var _f = function _f(path, c) {\n path.curves.push({\n c1: c.c1,\n c2: c.c2,\n to: c.to\n });\n };\n\n _f._closure = {};\n _f.asString = \"function addCurve(path,c){path.curves.push({c1:c.c1,c2:c.c2,to:c.to});}\";\n _f.__workletHash = 12524308058506;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:2629)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var addLine = function () {\n var _f = function _f(path, to) {\n var last = path.curves[path.curves.length - 1];\n var from = last ? last.to : path.move;\n path.curves.push({\n c1: from,\n c2: to,\n to: to\n });\n };\n\n _f._closure = {};\n _f.asString = \"function addLine(path,to){var last=path.curves[path.curves.length-1];var from=last?last.to:path.move;path.curves.push({c1:from,c2:to,to:to});}\";\n _f.__workletHash = 4466488744766;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:2730)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var addQuadraticCurve = function () {\n var _f = function _f(path, cp, to) {\n var last = path.curves[path.curves.length - 1];\n var from = last ? last.to : path.move;\n path.curves.push({\n c1: {\n x: from.x / 3 + 2 / 3 * cp.x,\n y: from.y / 3 + 2 / 3 * cp.y\n },\n c2: {\n x: to.x / 3 + 2 / 3 * cp.x,\n y: to.y / 3 + 2 / 3 * cp.y\n },\n to: to\n });\n };\n\n _f._closure = {};\n _f.asString = \"function addQuadraticCurve(path,cp,to){var last=path.curves[path.curves.length-1];var from=last?last.to:path.move;path.curves.push({c1:{x:from.x/3+2/3*cp.x,y:from.y/3+2/3*cp.y},c2:{x:to.x/3+2/3*cp.x,y:to.y/3+2/3*cp.y},to:to});}\";\n _f.__workletHash = 15214855098425;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:2912)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var close = function () {\n var _f = function _f(path) {\n path.close = true;\n };\n\n _f._closure = {};\n _f.asString = \"function close(path){path.close=true;}\";\n _f.__workletHash = 6388902332060;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:3167)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\n\nvar curveIsFound = function () {\n var _f = function _f(c) {\n return c.curve !== null;\n };\n\n _f._closure = {};\n _f.asString = \"function curveIsFound(c){return c.curve!==null;}\";\n _f.__workletHash = 16087677445003;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:3233)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\n\nexport var selectCurve = function () {\n var _f = function _f(path, x) {\n var result = {\n from: path.move,\n curve: null\n };\n\n for (var i = 0; i < path.curves.length; i++) {\n var c = path.curves[i];\n var contains = result.from.x > c.to.x ? x >= c.to.x && x <= result.from.x : x >= result.from.x && x <= c.to.x;\n\n if (contains) {\n result.curve = c;\n break;\n }\n\n result.from = c.to;\n }\n\n if (!curveIsFound(result)) {\n return null;\n }\n\n return result;\n };\n\n _f._closure = {\n curveIsFound: curveIsFound\n };\n _f.asString = \"function selectCurve(path,x){const{curveIsFound}=jsThis._closure;{var result={from:path.move,curve:null};for(var i=0;i<path.curves.length;i++){var c=path.curves[i];var contains=result.from.x>c.to.x?x>=c.to.x&&x<=result.from.x:x>=result.from.x&&x<=c.to.x;if(contains){result.curve=c;break;}result.from=c.to;}if(!curveIsFound(result)){return null;}return result;}}\";\n _f.__workletHash = 9727387309432;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:3315)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var getYForX = function () {\n var _f = function _f(path, x) {\n var precision = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2;\n var c = selectCurve(path, x);\n\n if (c === null) {\n return null;\n }\n\n return cubicBezierYForX(x, c.from, c.curve.c1, c.curve.c2, c.curve.to, precision);\n };\n\n _f._closure = {\n selectCurve: selectCurve,\n cubicBezierYForX: cubicBezierYForX\n };\n _f.asString = \"function getYForX(path,x){const{selectCurve,cubicBezierYForX}=jsThis._closure;{var precision=arguments.length>2&&arguments[2]!==undefined?arguments[2]:2;var c=selectCurve(path,x);if(c===null){return null;}return cubicBezierYForX(x,c.from,c.curve.c1,c.curve.c2,c.curve.to,precision);}}\";\n _f.__workletHash = 13044703911450;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:3670)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\n\nvar controlPoint = function () {\n var _f = function _f(current, previous, next, reverse, smoothing) {\n var p = previous || current;\n var n = next || current;\n var lengthX = n.x - p.x;\n var lengthY = n.y - p.y;\n var o = cartesian2Polar({\n x: lengthX,\n y: lengthY\n });\n var angle = o.theta + (reverse ? Math.PI : 0);\n var length = o.radius * smoothing;\n var x = current.x + Math.cos(angle) * length;\n var y = current.y + Math.sin(angle) * length;\n return {\n x: x,\n y: y\n };\n };\n\n _f._closure = {\n cartesian2Polar: cartesian2Polar\n };\n _f.asString = \"function controlPoint(current,previous,next,reverse,smoothing){const{cartesian2Polar}=jsThis._closure;{var p=previous||current;var n=next||current;var lengthX=n.x-p.x;var lengthY=n.y-p.y;var o=cartesian2Polar({x:lengthX,y:lengthY});var angle=o.theta+(reverse?Math.PI:0);var length=o.radius*smoothing;var x=current.x+Math.cos(angle)*length;var y=current.y+Math.sin(angle)*length;return{x:x,y:y};}}\";\n _f.__workletHash = 6183874827311;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:3928)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\n\nvar exhaustiveCheck = function exhaustiveCheck(a) {\n throw new Error(\"Unexhaustive handling for \" + a);\n};\n\nexport var curveLines = function () {\n var _f = function _f(points, smoothing, strategy) {\n var path = createPath(points[0]);\n\n for (var i = 0; i < points.length; i++) {\n if (i === 0) {\n continue;\n }\n\n var point = points[i];\n var next = points[i + 1];\n var prev = points[i - 1];\n var cps = controlPoint(prev, points[i - 2], point, false, smoothing);\n var cpe = controlPoint(point, prev, next, true, smoothing);\n\n switch (strategy) {\n case \"simple\":\n var cp = {\n x: (cps.x + cpe.x) / 2,\n y: (cps.y + cpe.y) / 2\n };\n addQuadraticCurve(path, cp, point);\n break;\n\n case \"bezier\":\n var p0 = points[i - 2] || prev;\n var p1 = points[i - 1];\n var cp1x = (2 * p0.x + p1.x) / 3;\n var cp1y = (2 * p0.y + p1.y) / 3;\n var cp2x = (p0.x + 2 * p1.x) / 3;\n var cp2y = (p0.y + 2 * p1.y) / 3;\n var cp3x = (p0.x + 4 * p1.x + point.x) / 6;\n var cp3y = (p0.y + 4 * p1.y + point.y) / 6;\n path.curves.push({\n c1: {\n x: cp1x,\n y: cp1y\n },\n c2: {\n x: cp2x,\n y: cp2y\n },\n to: {\n x: cp3x,\n y: cp3y\n }\n });\n\n if (i === points.length - 1) {\n path.curves.push({\n to: points[points.length - 1],\n c1: points[points.length - 1],\n c2: points[points.length - 1]\n });\n }\n\n break;\n\n case \"complex\":\n path.curves.push({\n to: point,\n c1: cps,\n c2: cpe\n });\n break;\n\n default:\n exhaustiveCheck(strategy);\n }\n }\n\n return path;\n };\n\n _f._closure = {\n createPath: createPath,\n controlPoint: controlPoint,\n addQuadraticCurve: addQuadraticCurve,\n exhaustiveCheck: exhaustiveCheck\n };\n _f.asString = \"function curveLines(points,smoothing,strategy){const{createPath,controlPoint,addQuadraticCurve,exhaustiveCheck}=jsThis._closure;{var path=createPath(points[0]);for(var i=0;i<points.length;i++){if(i===0){continue;}var point=points[i];var next=points[i+1];var prev=points[i-1];var cps=controlPoint(prev,points[i-2],point,false,smoothing);var cpe=controlPoint(point,prev,next,true,smoothing);switch(strategy){case\\\"simple\\\":var cp={x:(cps.x+cpe.x)/2,y:(cps.y+cpe.y)/2};addQuadraticCurve(path,cp,point);break;case\\\"bezier\\\":var p0=points[i-2]||prev;var p1=points[i-1];var cp1x=(2*p0.x+p1.x)/3;var cp1y=(2*p0.y+p1.y)/3;var cp2x=(p0.x+2*p1.x)/3;var cp2y=(p0.y+2*p1.y)/3;var cp3x=(p0.x+4*p1.x+point.x)/6;var cp3y=(p0.y+4*p1.y+point.y)/6;path.curves.push({c1:{x:cp1x,y:cp1y},c2:{x:cp2x,y:cp2y},to:{x:cp3x,y:cp3y}});if(i===points.length-1){path.curves.push({to:points[points.length-1],c1:points[points.length-1],c2:points[points.length-1]});}break;case\\\"complex\\\":path.curves.push({to:point,c1:cps,c2:cpe});break;default:exhaustiveCheck(strategy);}}return path;}}\";\n _f.__workletHash = 4521352181802;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Paths.js (1:4414)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();","map":{"version":3,"sources":["Paths.ts"],"names":["serialize","path","c","parse","segments","normalizeSVG","absSVG","parseSVG","createPath","x","y","segment","close","addCurve","c1","c2","to","interpolatePath","extrapolate","Animated","CLAMP","move","interpolate","outputRange","p","curves","mixPath","addArc","last","from","arc","corner","addLine","addQuadraticCurve","cp","curveIsFound","selectCurve","result","curve","i","contains","getYForX","precision","cubicBezierYForX","controlPoint","previous","n","next","lengthX","lengthY","o","cartesian2Polar","angle","reverse","Math","length","current","exhaustiveCheck","curveLines","points","point","prev","cps","cpe","p0","p1","cp1x","cp1y","cp2x","cp2y","cp3x","cp3y"],"mappings":"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W,WAAjBA;;AAKA,cAAIsC,CAAC,KAAKoB,MAAM,CAANA,MAAAA,GAAV,CAAA,EAA6B;AAC3B1D,YAAAA,IAAI,CAAJA,MAAAA,CAAAA,IAAAA,CAAiB;AACfe,cAAAA,EAAE,EAAE2C,MAAM,CAACA,MAAM,CAANA,MAAAA,GADI,CACL,CADK;AAEf7C,cAAAA,EAAE,EAAE6C,MAAM,CAACA,MAAM,CAANA,MAAAA,GAFI,CAEL,CAFK;AAGf5C,cAAAA,EAAE,EAAE4C,MAAM,CAACA,MAAM,CAANA,MAAAA,GAHb1D,CAGY;AAHK,aAAjBA;AAMF;;AAAA;;AACF,aAAA,SAAA;AACEA,UAAAA,IAAI,CAAJA,MAAAA,CAAAA,IAAAA,CAAiB;AACfe,YAAAA,EAAE,EADa,KAAA;AAEfF,YAAAA,EAAE,EAFa,GAAA;AAGfC,YAAAA,EAAE,EAHJd;AAAiB,WAAjBA;AAKA;;AACF;AACEwD,UAAAA,eAAe,CAtCnB,QAsCmB,CAAfA;AAtCJ;AAyCF;;AAAA,WAAA,IAAA;AA1DK,GAAMC;;AAAAA;AAAAA,gB,UAAAA;AAAAA,kB,YAAAA;AAAAA,uB,iBAAAA;AAAAA,qB;AAAAA;AAAAA;AAAAA;AAAAA;;AAAAA;;AAAAA;AAAAA,GAAN","sourcesContent":["import Animated, { interpolate } from \"react-native-reanimated\";\nimport parseSVG from \"parse-svg-path\";\nimport absSVG from \"abs-svg-path\";\nimport normalizeSVG from \"normalize-svg-path\";\n\nimport { Vector } from \"./Vectors\";\nimport { cartesian2Polar } from \"./Coordinates\";\nimport { cubicBezierYForX } from \"./Math\";\n\ntype SVGCloseCommand = [\"Z\"];\ntype SVGMoveCommand = [\"M\", number, number];\ntype SVGCurveCommand = [\"C\", number, number, number, number, number, number];\ntype SVGNormalizedCommands = [\n SVGMoveCommand,\n ...(SVGCurveCommand | SVGCloseCommand)[]\n];\n\ninterface Curve {\n to: Vector;\n c1: Vector;\n c2: Vector;\n}\n\nexport type Path = {\n move: Vector;\n curves: Curve[];\n close: boolean;\n};\n\n/**\n * @summary Serialize a path into an SVG path string\n * @worklet\n */\nexport const serialize = (path: Path) => {\n \"worklet\";\n return `M${path.move.x},${path.move.y} ${path.curves\n .map((c) => `C${c.c1.x},${c.c1.y} ${c.c2.x},${c.c2.y} ${c.to.x},${c.to.y}`)\n .join(\" \")}${path.close ? \"Z\" : \"\"}`;\n};\n\n/**\n * @description ⚠️ this function cannot run on the UI thread. It must be executed on the JS thread\n * @summary Parse an SVG path into a sequence of Bèzier curves.\n * The SVG is normalized to have absolute values and to be approximated to a sequence of Bèzier curves.\n */\nexport const parse = (d: string): Path => {\n const segments: SVGNormalizedCommands = normalizeSVG(absSVG(parseSVG(d)));\n const path = createPath({ x: segments[0][1], y: segments[0][2] });\n segments.forEach((segment) => {\n if (segment[0] === \"Z\") {\n close(path);\n } else if (segment[0] === \"C\") {\n addCurve(path, {\n c1: {\n x: segment[1],\n y: segment[2],\n },\n c2: {\n x: segment[3],\n y: segment[4],\n },\n to: {\n x: segment[5],\n y: segment[6],\n },\n });\n }\n });\n return path;\n};\n\n/**\n * @summary Interpolate between paths.\n * @worklet\n */\nexport const interpolatePath = (\n value: number,\n inputRange: number[],\n outputRange: Path[],\n extrapolate = Animated.Extrapolate.CLAMP\n) => {\n \"worklet\";\n const path = {\n move: {\n x: interpolate(\n value,\n inputRange,\n outputRange.map((p) => p.move.x),\n extrapolate\n ),\n y: interpolate(\n value,\n inputRange,\n outputRange.map((p) => p.move.y),\n extrapolate\n ),\n },\n curves: outputRange[0].curves.map((_, index) => ({\n c1: {\n x: interpolate(\n value,\n inputRange,\n outputRange.map((p) => p.curves[index].c1.x),\n extrapolate\n ),\n y: interpolate(\n value,\n inputRange,\n outputRange.map((p) => p.curves[index].c1.y),\n extrapolate\n ),\n },\n c2: {\n x: interpolate(\n value,\n inputRange,\n outputRange.map((p) => p.curves[index].c2.x),\n extrapolate\n ),\n y: interpolate(\n value,\n inputRange,\n outputRange.map((p) => p.curves[index].c2.y),\n extrapolate\n ),\n },\n to: {\n x: interpolate(\n value,\n inputRange,\n outputRange.map((p) => p.curves[index].to.x),\n extrapolate\n ),\n y: interpolate(\n value,\n inputRange,\n outputRange.map((p) => p.curves[index].to.y),\n extrapolate\n ),\n },\n })),\n close: outputRange[0].close,\n };\n return serialize(path);\n};\n\n/**\n * @summary Interpolate two paths with an animation value that goes from 0 to 1\n * @worklet\n */\nexport const mixPath = (\n value: number,\n p1: Path,\n p2: Path,\n extrapolate = Animated.Extrapolate.CLAMP\n) => {\n \"worklet\";\n return interpolatePath(value, [0, 1], [p1, p2], extrapolate);\n};\n\n/**\n * @summary Create a new path\n * @worklet\n */\nexport const createPath = (move: Vector): Path => {\n \"worklet\";\n return {\n move,\n curves: [],\n close: false,\n };\n};\n\n/**\n * @summary Add an arc command to a path\n * @worklet\n */\nexport const addArc = (path: Path, corner: Vector, to: Vector) => {\n \"worklet\";\n const last = path.curves[path.curves.length - 1];\n const from = last ? last.to : path.move;\n const arc = 9 / 16;\n path.curves.push({\n c1: {\n x: (corner.x - from.x) * arc + from.x,\n y: (corner.y - from.y) * arc + from.y,\n },\n c2: {\n x: (corner.x - to.x) * arc + to.x,\n y: (corner.y - to.y) * arc + to.y,\n },\n to,\n });\n};\n\n/**\n * @summary Add a cubic Bèzier curve command to a path.\n * @worklet\n */\nexport const addCurve = (path: Path, c: Curve) => {\n \"worklet\";\n path.curves.push({\n c1: c.c1,\n c2: c.c2,\n to: c.to,\n });\n};\n\n/**\n * @summary Add a line command to a path.\n * @worklet\n */\nexport const addLine = (path: Path, to: Vector) => {\n \"worklet\";\n const last = path.curves[path.curves.length - 1];\n const from = last ? last.to : path.move;\n path.curves.push({\n c1: from,\n c2: to,\n to,\n });\n};\n\n/**\n * @summary Add a quadratic Bèzier curve command to a path.\n * @worklet\n */\nexport const addQuadraticCurve = (path: Path, cp: Vector, to: Vector) => {\n \"worklet\";\n const last = path.curves[path.curves.length - 1];\n const from = last ? last.to : path.move;\n path.curves.push({\n c1: {\n x: from.x / 3 + (2 / 3) * cp.x,\n y: from.y / 3 + (2 / 3) * cp.y,\n },\n c2: {\n x: to.x / 3 + (2 / 3) * cp.x,\n y: to.y / 3 + (2 / 3) * cp.y,\n },\n to,\n });\n};\n\n/**\n * @summary Add a close command to a path.\n * @worklet\n */\nexport const close = (path: Path) => {\n \"worklet\";\n path.close = true;\n};\n\ninterface SelectedCurve {\n from: Vector;\n curve: Curve;\n}\n\ninterface NullableSelectedCurve {\n from: Vector;\n curve: Curve | null;\n}\n\n/**\n * @worklet\n */\nconst curveIsFound = (c: NullableSelectedCurve): c is SelectedCurve => {\n \"worklet\";\n return c.curve !== null;\n};\n\n/**\n * @summary Return the curves at x. This function assumes that only one curve is available at x\n * @worklet\n */\nexport const selectCurve = (path: Path, x: number): SelectedCurve | null => {\n \"worklet\";\n const result: NullableSelectedCurve = {\n from: path.move,\n curve: null,\n };\n for (let i = 0; i < path.curves.length; i++) {\n const c = path.curves[i];\n const contains =\n result.from.x > c.to.x\n ? x >= c.to.x && x <= result.from.x\n : x >= result.from.x && x <= c.to.x;\n if (contains) {\n result.curve = c;\n break;\n }\n result.from = c.to;\n }\n if (!curveIsFound(result)) {\n return null;\n }\n return result;\n};\n\n/**\n * @summary Return the y value of a path given its x coordinate\n * @example\n const p1 = parse(\n \"M150,0 C150,0 0,75 200,75 C75,200 200,225 200,225 C225,200 200,150 0,150\"\n );\n // 75\n getYForX(p1, 200))\n // ~151\n getYForX(p1, 50)\n * @worklet\n */\nexport const getYForX = (path: Path, x: number, precision = 2) => {\n \"worklet\";\n const c = selectCurve(path, x);\n if (c === null) {\n return null;\n }\n return cubicBezierYForX(\n x,\n c.from,\n c.curve.c1,\n c.curve.c2,\n c.curve.to,\n precision\n );\n};\n\nconst controlPoint = (\n current: Vector,\n previous: Vector,\n next: Vector,\n reverse: boolean,\n smoothing: number\n) => {\n \"worklet\";\n const p = previous || current;\n const n = next || current;\n // Properties of the opposed-line\n const lengthX = n.x - p.x;\n const lengthY = n.y - p.y;\n\n const o = cartesian2Polar({ x: lengthX, y: lengthY });\n // If is end-control-point, add PI to the angle to go backward\n const angle = o.theta + (reverse ? Math.PI : 0);\n const length = o.radius * smoothing;\n // The control point position is relative to the current point\n const x = current.x + Math.cos(angle) * length;\n const y = current.y + Math.sin(angle) * length;\n return { x, y };\n};\n\nconst exhaustiveCheck = (a: never): never => {\n throw new Error(`Unexhaustive handling for ${a}`);\n};\n\n/**\n * @summary Link points via a smooth cubic Bézier curves\n * from https://github.com/rainbow-me/rainbow\n * @worklet\n */\nexport const curveLines = (\n points: Vector<number>[],\n smoothing: number,\n strategy: \"complex\" | \"bezier\" | \"simple\"\n) => {\n \"worklet\";\n const path = createPath(points[0]);\n // build the d attributes by looping over the points\n for (let i = 0; i < points.length; i++) {\n if (i === 0) {\n continue;\n }\n const point = points[i];\n const next = points[i + 1];\n const prev = points[i - 1];\n const cps = controlPoint(prev, points[i - 2], point, false, smoothing);\n const cpe = controlPoint(point, prev, next, true, smoothing);\n switch (strategy) {\n case \"simple\":\n const cp = {\n x: (cps.x + cpe.x) / 2,\n y: (cps.y + cpe.y) / 2,\n };\n addQuadraticCurve(path, cp, point);\n break;\n case \"bezier\":\n const p0 = points[i - 2] || prev;\n const p1 = points[i - 1];\n const cp1x = (2 * p0.x + p1.x) / 3;\n const cp1y = (2 * p0.y + p1.y) / 3;\n const cp2x = (p0.x + 2 * p1.x) / 3;\n const cp2y = (p0.y + 2 * p1.y) / 3;\n const cp3x = (p0.x + 4 * p1.x + point.x) / 6;\n const cp3y = (p0.y + 4 * p1.y + point.y) / 6;\n path.curves.push({\n c1: { x: cp1x, y: cp1y },\n c2: { x: cp2x, y: cp2y },\n to: { x: cp3x, y: cp3y },\n });\n if (i === points.length - 1) {\n path.curves.push({\n to: points[points.length - 1],\n c1: points[points.length - 1],\n c2: points[points.length - 1],\n });\n }\n break;\n case \"complex\":\n path.curves.push({\n to: point,\n c1: cps,\n c2: cpe,\n });\n break;\n default:\n exhaustiveCheck(strategy);\n }\n }\n return path;\n};\n"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import 'expo/build/Expo.fx';\nimport AppRegistry from \"react-native-web/dist/exports/AppRegistry\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport withExpoRoot from \"./withExpoRoot\";\nexport default function registerRootComponent(component) {\n AppRegistry.registerComponent('main', function () {\n return withExpoRoot(component);\n });\n\n if (Platform.OS === 'web') {\n var _document$getElementB;\n\n var rootTag = (_document$getElementB = document.getElementById('root')) != null ? _document$getElementB : document.getElementById('main');\n AppRegistry.runApplication('main', {\n rootTag: rootTag\n });\n }\n}","map":{"version":3,"sources":["../../src/launch/registerRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAP;;;AAIA,OAAO,YAAP;AAGA,eAAc,SAAU,qBAAV,CACZ,SADY,EACqB;AAEjC,EAAA,WAAW,CAAC,iBAAZ,CAA8B,MAA9B,EAAsC;AAAA,WAAM,YAAY,CAAC,SAAD,CAAlB;AAAA,GAAtC;;AACA,MAAI,QAAQ,CAAC,EAAT,KAAgB,KAApB,EAA2B;AAAA;;AACzB,QAAM,OAAO,4BAAG,QAAQ,CAAC,cAAT,CAAwB,MAAxB,CAAH,oCAAsC,QAAQ,CAAC,cAAT,CAAwB,MAAxB,CAAnD;AACA,IAAA,WAAW,CAAC,cAAZ,CAA2B,MAA3B,EAAmC;AAAE,MAAA,OAAO,EAAP;AAAF,KAAnC;AACD;AACF","sourcesContent":["import 'expo/build/Expo.fx';\nimport * as React from 'react';\nimport { AppRegistry, Platform } from 'react-native';\n\nimport withExpoRoot from './withExpoRoot';\nimport { InitialProps } from './withExpoRoot.types';\n\nexport default function registerRootComponent<P extends InitialProps>(\n component: React.ComponentType<P>\n): void {\n AppRegistry.registerComponent('main', () => withExpoRoot(component));\n if (Platform.OS === 'web') {\n const rootTag = document.getElementById('root') ?? document.getElementById('main');\n AppRegistry.runApplication('main', { rootTag });\n }\n}\n"],"sourceRoot":""},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"'use strict';\n\nimport PressResponder from \"./PressResponder\";\nimport { useDebugValue, useEffect, useRef } from 'react';\nexport default function usePressEvents(hostRef, config) {\n var pressResponderRef = useRef(null);\n\n if (pressResponderRef.current == null) {\n pressResponderRef.current = new PressResponder(config);\n }\n\n var pressResponder = pressResponderRef.current;\n useEffect(function () {\n pressResponder.configure(config);\n }, [config, pressResponder]);\n useEffect(function () {\n return function () {\n pressResponder.reset();\n };\n }, [pressResponder]);\n useDebugValue(config);\n return pressResponder.getEventHandlers();\n}","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/hooks/usePressEvents/index.js"],"names":["PressResponder","useDebugValue","useEffect","useRef","usePressEvents","hostRef","config","pressResponderRef","current","pressResponder","configure","reset","getEventHandlers"],"mappings":"AASA;;AAEA,OAAOA,cAAP;AACA,SAASC,aAAT,EAAwBC,SAAxB,EAAmCC,MAAnC,QAAiD,OAAjD;AACA,eAAe,SAASC,cAAT,CAAwBC,OAAxB,EAAiCC,MAAjC,EAAyC;AACtD,MAAIC,iBAAiB,GAAGJ,MAAM,CAAC,IAAD,CAA9B;;AAEA,MAAII,iBAAiB,CAACC,OAAlB,IAA6B,IAAjC,EAAuC;AACrCD,IAAAA,iBAAiB,CAACC,OAAlB,GAA4B,IAAIR,cAAJ,CAAmBM,MAAnB,CAA5B;AACD;;AAED,MAAIG,cAAc,GAAGF,iBAAiB,CAACC,OAAvC;AAEAN,EAAAA,SAAS,CAAC,YAAY;AACpBO,IAAAA,cAAc,CAACC,SAAf,CAAyBJ,MAAzB;AACD,GAFQ,EAEN,CAACA,MAAD,EAASG,cAAT,CAFM,CAAT;AAKAP,EAAAA,SAAS,CAAC,YAAY;AACpB,WAAO,YAAY;AACjBO,MAAAA,cAAc,CAACE,KAAf;AACD,KAFD;AAGD,GAJQ,EAIN,CAACF,cAAD,CAJM,CAAT;AAKAR,EAAAA,aAAa,CAACK,MAAD,CAAb;AACA,SAAOG,cAAc,CAACG,gBAAf,EAAP;AACD","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n'use strict';\n\nimport PressResponder from './PressResponder';\nimport { useDebugValue, useEffect, useRef } from 'react';\nexport default function usePressEvents(hostRef, config) {\n var pressResponderRef = useRef(null);\n\n if (pressResponderRef.current == null) {\n pressResponderRef.current = new PressResponder(config);\n }\n\n var pressResponder = pressResponderRef.current; // Re-configure to use the current node and configuration.\n\n useEffect(function () {\n pressResponder.configure(config);\n }, [config, pressResponder]); // Reset the `pressResponder` when cleanup needs to occur. This is\n // a separate effect because we do not want to rest the responder when `config` changes.\n\n useEffect(function () {\n return function () {\n pressResponder.reset();\n };\n }, [pressResponder]);\n useDebugValue(config);\n return pressResponder.getEventHandlers();\n}"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"var assets = [];\nexport function registerAsset(asset) {\n return assets.push(asset);\n}\nexport function getAssetByID(assetId) {\n return assets[assetId - 1];\n}","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/modules/AssetRegistry/index.js"],"names":["assets","registerAsset","asset","push","getAssetByID","assetId"],"mappings":"AAQA,IAAIA,MAAM,GAAG,EAAb;AACA,OAAO,SAASC,aAAT,CAAuBC,KAAvB,EAA8B;AAGnC,SAAOF,MAAM,CAACG,IAAP,CAAYD,KAAZ,CAAP;AACD;AACD,OAAO,SAASE,YAAT,CAAsBC,OAAtB,EAA+B;AACpC,SAAOL,MAAM,CAACK,OAAO,GAAG,CAAX,CAAb;AACD","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nvar assets = [];\nexport function registerAsset(asset) {\n // `push` returns new array length, so the first asset will\n // get id 1 (not 0) to make the value truthy\n return assets.push(asset);\n}\nexport function getAssetByID(assetId) {\n return assets[assetId - 1];\n}"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"export var animationParameter = function () {\n var _f = function _f(animationParam) {\n if (typeof animationParam === \"number\") {\n throw new Error(\"Expected Animation as parameter\");\n }\n\n return typeof animationParam === \"function\" ? animationParam() : animationParam;\n };\n\n _f._closure = {};\n _f.asString = \"function animationParameter(animationParam){if(typeof animationParam===\\\"number\\\"){throw new Error(\\\"Expected Animation as parameter\\\");}return typeof animationParam===\\\"function\\\"?animationParam():animationParam;}\";\n _f.__workletHash = 16964105267043;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Animations.js (1:30)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var defineAnimation = function () {\n var _f = function _f(factory) {\n if (_WORKLET) {\n return factory();\n }\n\n return factory;\n };\n\n _f._closure = {};\n _f.asString = \"function defineAnimation(factory){if(_WORKLET){return factory();}return factory;}\";\n _f.__workletHash = 2039129594575;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Animations.js (1:276)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var withPause = function () {\n var _f = function _f(animationParam, paused) {\n return defineAnimation(function () {\n var _f = function _f() {\n var nextAnimation = animationParameter(animationParam);\n\n var onFrame = function onFrame(state, now) {\n var lastTimestamp = state.lastTimestamp,\n elapsed = state.elapsed;\n\n if (paused.value) {\n state.elapsed = now - lastTimestamp;\n return false;\n }\n\n var dt = now - elapsed;\n var finished = nextAnimation.onFrame(nextAnimation, dt);\n state.current = nextAnimation.current;\n state.lastTimestamp = dt;\n return finished;\n };\n\n var onStart = function onStart(state, value, now, previousState) {\n state.lastTimestamp = now;\n state.elapsed = 0;\n nextAnimation.onStart(nextAnimation, value, now, previousState);\n };\n\n return {\n onFrame: onFrame,\n onStart: onStart,\n callback: nextAnimation.callback\n };\n };\n\n _f._closure = {\n animationParameter: animationParameter,\n animationParam: animationParam,\n paused: paused\n };\n _f.asString = \"function _f(){const{animationParameter,animationParam,paused}=jsThis._closure;{var nextAnimation=animationParameter(animationParam);var onFrame=function onFrame(state,now){var lastTimestamp=state.lastTimestamp,elapsed=state.elapsed;if(paused.value){state.elapsed=now-lastTimestamp;return false;}var dt=now-elapsed;var finished=nextAnimation.onFrame(nextAnimation,dt);state.current=nextAnimation.current;state.lastTimestamp=dt;return finished;};var onStart=function onStart(state,value,now,previousState){state.lastTimestamp=now;state.elapsed=0;nextAnimation.onStart(nextAnimation,value,now,previousState);};return{onFrame:onFrame,onStart:onStart,callback:nextAnimation.callback};}}\";\n _f.__workletHash = 17191968177356;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Animations.js (1:464)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n }());\n };\n\n _f._closure = {\n defineAnimation: defineAnimation,\n animationParameter: animationParameter\n };\n _f.asString = \"function withPause(animationParam,paused){const{defineAnimation,animationParameter}=jsThis._closure;{return defineAnimation(function(){var _f=function _f(){var nextAnimation=animationParameter(animationParam);var onFrame=function onFrame(state,now){var lastTimestamp=state.lastTimestamp,elapsed=state.elapsed;if(paused.value){state.elapsed=now-lastTimestamp;return false;}var dt=now-elapsed;var finished=nextAnimation.onFrame(nextAnimation,dt);state.current=nextAnimation.current;state.lastTimestamp=dt;return finished;};var onStart=function onStart(state,value,now,previousState){state.lastTimestamp=now;state.elapsed=0;nextAnimation.onStart(nextAnimation,value,now,previousState);};return{onFrame:onFrame,onStart:onStart,callback:nextAnimation.callback};};_f._closure={animationParameter:animationParameter,animationParam:animationParam,paused:paused};_f.asString=\\\"function _f(){const{animationParameter,animationParam,paused}=jsThis._closure;{var nextAnimation=animationParameter(animationParam);var onFrame=function onFrame(state,now){var lastTimestamp=state.lastTimestamp,elapsed=state.elapsed;if(paused.value){state.elapsed=now-lastTimestamp;return false;}var dt=now-elapsed;var finished=nextAnimation.onFrame(nextAnimation,dt);state.current=nextAnimation.current;state.lastTimestamp=dt;return finished;};var onStart=function onStart(state,value,now,previousState){state.lastTimestamp=now;state.elapsed=0;nextAnimation.onStart(nextAnimation,value,now,previousState);};return{onFrame:onFrame,onStart:onStart,callback:nextAnimation.callback};}}\\\";_f.__workletHash=17191968177356;_f.__location=\\\"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Animations.js (1:464)\\\";global.__reanimatedWorkletInit(_f);return _f;}());}}\";\n _f.__workletHash = 9159397830315;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Animations.js (1:389)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();\nexport var withBouncing = function () {\n var _f = function _f(animationParam, lowerBound, upperBound) {\n return defineAnimation(function () {\n var _f = function _f() {\n var nextAnimation = animationParameter(animationParam);\n\n var onFrame = function onFrame(state, now) {\n var finished = nextAnimation.onFrame(nextAnimation, now);\n var velocity = nextAnimation.velocity,\n current = nextAnimation.current;\n state.current = current;\n\n if (velocity < 0 && state.current <= lowerBound || velocity > 0 && state.current >= upperBound) {\n state.current = velocity < 0 ? lowerBound : upperBound;\n nextAnimation.velocity *= -0.5;\n }\n\n return finished;\n };\n\n var onStart = function onStart(_state, value, now, previousState) {\n nextAnimation.onStart(nextAnimation, value, now, previousState);\n };\n\n return {\n onFrame: onFrame,\n onStart: onStart,\n callback: nextAnimation.callback\n };\n };\n\n _f._closure = {\n animationParameter: animationParameter,\n animationParam: animationParam,\n lowerBound: lowerBound,\n upperBound: upperBound\n };\n _f.asString = \"function _f(){const{animationParameter,animationParam,lowerBound,upperBound}=jsThis._closure;{var nextAnimation=animationParameter(animationParam);var onFrame=function onFrame(state,now){var finished=nextAnimation.onFrame(nextAnimation,now);var velocity=nextAnimation.velocity,current=nextAnimation.current;state.current=current;if(velocity<0&&state.current<=lowerBound||velocity>0&&state.current>=upperBound){state.current=velocity<0?lowerBound:upperBound;nextAnimation.velocity*=-0.5;}return finished;};var onStart=function onStart(_state,value,now,previousState){nextAnimation.onStart(nextAnimation,value,now,previousState);};return{onFrame:onFrame,onStart:onStart,callback:nextAnimation.callback};}}\";\n _f.__workletHash = 11962071797711;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Animations.js (1:1207)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n }());\n };\n\n _f._closure = {\n defineAnimation: defineAnimation,\n animationParameter: animationParameter\n };\n _f.asString = \"function withBouncing(animationParam,lowerBound,upperBound){const{defineAnimation,animationParameter}=jsThis._closure;{return defineAnimation(function(){var _f=function _f(){var nextAnimation=animationParameter(animationParam);var onFrame=function onFrame(state,now){var finished=nextAnimation.onFrame(nextAnimation,now);var velocity=nextAnimation.velocity,current=nextAnimation.current;state.current=current;if(velocity<0&&state.current<=lowerBound||velocity>0&&state.current>=upperBound){state.current=velocity<0?lowerBound:upperBound;nextAnimation.velocity*=-0.5;}return finished;};var onStart=function onStart(_state,value,now,previousState){nextAnimation.onStart(nextAnimation,value,now,previousState);};return{onFrame:onFrame,onStart:onStart,callback:nextAnimation.callback};};_f._closure={animationParameter:animationParameter,animationParam:animationParam,lowerBound:lowerBound,upperBound:upperBound};_f.asString=\\\"function _f(){const{animationParameter,animationParam,lowerBound,upperBound}=jsThis._closure;{var nextAnimation=animationParameter(animationParam);var onFrame=function onFrame(state,now){var finished=nextAnimation.onFrame(nextAnimation,now);var velocity=nextAnimation.velocity,current=nextAnimation.current;state.current=current;if(velocity<0&&state.current<=lowerBound||velocity>0&&state.current>=upperBound){state.current=velocity<0?lowerBound:upperBound;nextAnimation.velocity*=-0.5;}return finished;};var onStart=function onStart(_state,value,now,previousState){nextAnimation.onStart(nextAnimation,value,now,previousState);};return{onFrame:onFrame,onStart:onStart,callback:nextAnimation.callback};}}\\\";_f.__workletHash=11962071797711;_f.__location=\\\"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Animations.js (1:1207)\\\";global.__reanimatedWorkletInit(_f);return _f;}());}}\";\n _f.__workletHash = 11248864109860;\n _f.__location = \"/Users/jake/git/react-native-candlestick-chart/node_modules/react-native-redash/lib/module/Animations.js (1:1114)\";\n\n global.__reanimatedWorkletInit(_f);\n\n return _f;\n}();","map":{"version":3,"sources":["Animations.ts"],"names":["animationParameter","animationParam","defineAnimation","factory","withPause","nextAnimation","onFrame","lastTimestamp","elapsed","state","paused","now","dt","finished","onStart","callback","withBouncing","velocity","current"],"mappings":"AAmCA,OAAO,IAAMA,kBAAAA;AAAAA,uBAAqB,cAArBA,EAIR;AAEH,QAAI,OAAA,cAAA,KAAJ,QAAA,EAAwC;AACtC,YAAM,IAAA,KAAA,CAAN,iCAAM,CAAN;AAEF;;AAAA,WAAO,OAAA,cAAA,KAAA,UAAA,GACHC,cADG,EAAA,GAAP,cAAA;AATK,GAAMD;;AAAAA;AAAAA;AAAAA;AAAAA;;AAAAA;;AAAAA;AAAAA,GAAN;AA2BP,OAAO,IAAME,eAAAA;AAAAA,uBAAkB,OAAlBA,EAKR;AAEH,QAAA,QAAA,EAAc;AACZ,aAAQC,OAAR,EAAA;AAEF;;AAAA,WAAA,OAAA;AAVK,GAAMD;;AAAAA;AAAAA;AAAAA;AAAAA;;AAAAA;;AAAAA;AAAAA,GAAN;AA6BP,OAAO,IAAME,SAAAA;AAAAA,uBAAY,cAAZA,EAAY,MAAZA,EAGR;AAEH,WAAOF,eAAe;AAAA,6BAA0B;AAE9C,YAAMG,aAAa,GAAGL,kBAAkB,CAAxC,cAAwC,CAAxC;;AACA,YAAMM,OAAO,GAAPA,SAAAA,OAAAA,CAAU,KAAVA,EAAU,GAAVA,EAAqD;AAAA,cACjDC,aADiD,GACtBE,KADsB,CAAA,aAAA;AAAA,cAClCD,OADkC,GACtBC,KADsB,CAAA,OAAA;;AAEzD,cAAIC,MAAM,CAAV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ORKLET: boolean;\n\nexport interface AnimationState {\n current: number;\n}\n\nexport interface PhysicsAnimationState extends AnimationState {\n velocity: number;\n}\n\nexport type Animation<\n State extends AnimationState = AnimationState,\n PrevState = State\n> = {\n onFrame: (animation: State, now: number) => boolean;\n onStart: (\n animation: State,\n value: number,\n now: number,\n lastAnimation: PrevState\n ) => void;\n callback?: () => void;\n} & State;\n\nexport type AnimationParameter<State extends AnimationState = AnimationState> =\n | Animation<State>\n | (() => Animation<State>)\n | number;\n\n/**\n * @summary Access animations passed as parameters safely on both the UI and JS thread with the proper static types.\n * Animations can receive other animations as parameter.\n */\nexport const animationParameter = <\n State extends AnimationState = AnimationState\n>(\n animationParam: AnimationParameter<State>\n) => {\n \"worklet\";\n if (typeof animationParam === \"number\") {\n throw new Error(\"Expected Animation as parameter\");\n }\n return typeof animationParam === \"function\"\n ? animationParam()\n : animationParam;\n};\n\n/**\n * @summary Declare custom animations that can be invoked on both the JS and UI thread.\n * @example\n * defineAnimation(() => {\n \"worklet\";\n // ...animation code\n return {\n animation,\n start\n }\n });\n * @worklet\n */\nexport const defineAnimation = <\n S extends AnimationState = AnimationState,\n Prev extends AnimationState = AnimationState\n>(\n factory: () => Omit<Animation<S, Prev>, keyof S>\n) => {\n \"worklet\";\n if (_WORKLET) {\n return (factory() as unknown) as number;\n }\n return (factory as unknown) as number;\n};\n\ninterface PausableAnimation extends AnimationState {\n lastTimestamp: number;\n elapsed: number;\n}\n\n/**\n * @summary Make an animation pausable. The state of the animation (paused or not)\n * is controlled by a boolean shared value.\n * @example\n const progress = useSharedValue(0);\n const paused = useSharedValue(false);\n useEffect(() => {\n progress.value = withPause(withLoop(withTiming(1)), paused);\n }, []);\n * @worklet\n */\nexport const withPause = (\n animationParam: AnimationParameter,\n paused: Animated.SharedValue<boolean>\n) => {\n \"worklet\";\n return defineAnimation<PausableAnimation>(() => {\n \"worklet\";\n const nextAnimation = animationParameter(animationParam);\n const onFrame = (state: PausableAnimation, now: number) => {\n const { lastTimestamp, elapsed } = state;\n if (paused.value) {\n state.elapsed = now - lastTimestamp;\n return false;\n }\n const dt = now - elapsed;\n const finished = nextAnimation.onFrame(nextAnimation, dt);\n state.current = nextAnimation.current;\n state.lastTimestamp = dt;\n return finished;\n };\n const onStart = (\n state: PausableAnimation,\n value: number,\n now: number,\n previousState: AnimationState\n ) => {\n state.lastTimestamp = now;\n state.elapsed = 0;\n nextAnimation.onStart(nextAnimation, value, now, previousState);\n };\n return {\n onFrame,\n onStart,\n callback: nextAnimation.callback,\n };\n });\n};\n\n/**\n * @summary Add a bouncing behavior to a physics-based animation.\n * An animation is defined as being physics-based if it contains a velocity in its state.\n * @example\n // will bounce if the animations hits the position 0 or 100\n withBouncing(withDecay({ velocity }), 0, 100)\n * @worklet\n */\nexport const withBouncing = (\n animationParam: AnimationParameter<PhysicsAnimationState>,\n lowerBound: number,\n upperBound: number\n): number => {\n \"worklet\";\n return defineAnimation<PhysicsAnimationState, PhysicsAnimationState>(() => {\n \"worklet\";\n const nextAnimation = animationParameter(animationParam);\n const onFrame = (state: PhysicsAnimationState, now: number) => {\n const finished = nextAnimation.onFrame(nextAnimation, now);\n const { velocity, current } = nextAnimation;\n state.current = current;\n if (\n (velocity < 0 && state.current <= lowerBound) ||\n (velocity > 0 && state.current >= upperBound)\n ) {\n state.current = velocity < 0 ? lowerBound : upperBound;\n nextAnimation.velocity *= -0.5;\n }\n return finished;\n };\n const onStart = (\n _state: PhysicsAnimationState,\n value: number,\n now: number,\n previousState: PhysicsAnimationState\n ) => {\n nextAnimation.onStart(nextAnimation, value, now, previousState);\n };\n return {\n onFrame,\n onStart,\n callback: nextAnimation.callback,\n };\n });\n};\n"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import { isStartish, isMoveish, isEndish } from \"./ResponderEventTypes\";\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar MAX_TOUCH_BANK = 20;\nvar touchBank = [];\nvar touchHistory = {\n touchBank: touchBank,\n numberActiveTouches: 0,\n indexOfSingleActiveTouch: -1,\n mostRecentTimeStamp: 0\n};\n\nfunction timestampForTouch(touch) {\n return touch.timeStamp || touch.timestamp;\n}\n\nfunction createTouchRecord(touch) {\n return {\n touchActive: true,\n startPageX: touch.pageX,\n startPageY: touch.pageY,\n startTimeStamp: timestampForTouch(touch),\n currentPageX: touch.pageX,\n currentPageY: touch.pageY,\n currentTimeStamp: timestampForTouch(touch),\n previousPageX: touch.pageX,\n previousPageY: touch.pageY,\n previousTimeStamp: timestampForTouch(touch)\n };\n}\n\nfunction resetTouchRecord(touchRecord, touch) {\n touchRecord.touchActive = true;\n touchRecord.startPageX = touch.pageX;\n touchRecord.startPageY = touch.pageY;\n touchRecord.startTimeStamp = timestampForTouch(touch);\n touchRecord.currentPageX = touch.pageX;\n touchRecord.currentPageY = touch.pageY;\n touchRecord.currentTimeStamp = timestampForTouch(touch);\n touchRecord.previousPageX = touch.pageX;\n touchRecord.previousPageY = touch.pageY;\n touchRecord.previousTimeStamp = timestampForTouch(touch);\n}\n\nfunction getTouchIdentifier(_ref) {\n var identifier = _ref.identifier;\n\n if (identifier == null) {\n console.error('Touch object is missing identifier.');\n }\n\n if (__DEV__) {\n if (identifier > MAX_TOUCH_BANK) {\n console.error('Touch identifier %s is greater than maximum supported %s which causes ' + 'performance issues backfilling array locations for all of the indices.', identifier, MAX_TOUCH_BANK);\n }\n }\n\n return identifier;\n}\n\nfunction recordTouchStart(touch) {\n var identifier = getTouchIdentifier(touch);\n var touchRecord = touchBank[identifier];\n\n if (touchRecord) {\n resetTouchRecord(touchRecord, touch);\n } else {\n touchBank[identifier] = createTouchRecord(touch);\n }\n\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n}\n\nfunction recordTouchMove(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n\n if (touchRecord) {\n touchRecord.touchActive = true;\n touchRecord.previousPageX = touchRecord.currentPageX;\n touchRecord.previousPageY = touchRecord.currentPageY;\n touchRecord.previousTimeStamp = touchRecord.currentTimeStamp;\n touchRecord.currentPageX = touch.pageX;\n touchRecord.currentPageY = touch.pageY;\n touchRecord.currentTimeStamp = timestampForTouch(touch);\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n } else {\n console.warn('Cannot record touch move without a touch start.\\n', \"Touch Move: \" + printTouch(touch) + \"\\n\", \"Touch Bank: \" + printTouchBank());\n }\n}\n\nfunction recordTouchEnd(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n\n if (touchRecord) {\n touchRecord.touchActive = false;\n touchRecord.previousPageX = touchRecord.currentPageX;\n touchRecord.previousPageY = touchRecord.currentPageY;\n touchRecord.previousTimeStamp = touchRecord.currentTimeStamp;\n touchRecord.currentPageX = touch.pageX;\n touchRecord.currentPageY = touch.pageY;\n touchRecord.currentTimeStamp = timestampForTouch(touch);\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n } else {\n console.warn('Cannot record touch end without a touch start.\\n', \"Touch End: \" + printTouch(touch) + \"\\n\", \"Touch Bank: \" + printTouchBank());\n }\n}\n\nfunction printTouch(touch) {\n return JSON.stringify({\n identifier: touch.identifier,\n pageX: touch.pageX,\n pageY: touch.pageY,\n timestamp: timestampForTouch(touch)\n });\n}\n\nfunction printTouchBank() {\n var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK));\n\n if (touchBank.length > MAX_TOUCH_BANK) {\n printed += ' (original size: ' + touchBank.length + ')';\n }\n\n return printed;\n}\n\nvar ResponderTouchHistoryStore = {\n recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) {\n if (isMoveish(topLevelType)) {\n nativeEvent.changedTouches.forEach(recordTouchMove);\n } else if (isStartish(topLevelType)) {\n nativeEvent.changedTouches.forEach(recordTouchStart);\n touchHistory.numberActiveTouches = nativeEvent.touches.length;\n\n if (touchHistory.numberActiveTouches === 1) {\n touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier;\n }\n } else if (isEndish(topLevelType)) {\n nativeEvent.changedTouches.forEach(recordTouchEnd);\n touchHistory.numberActiveTouches = nativeEvent.touches.length;\n\n if (touchHistory.numberActiveTouches === 1) {\n for (var i = 0; i < touchBank.length; i++) {\n var touchTrackToCheck = touchBank[i];\n\n if (touchTrackToCheck != null && touchTrackToCheck.touchActive) {\n touchHistory.indexOfSingleActiveTouch = i;\n break;\n }\n }\n\n if (__DEV__) {\n var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch];\n\n if (!(activeRecord != null && activeRecord.touchActive)) {\n console.error('Cannot find single active touch.');\n }\n }\n }\n }\n },\n touchHistory: touchHistory\n};\nexport default ResponderTouchHistoryStore;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/hooks/useResponderEvents/ResponderTouchHistoryStore.js"],"names":["isStartish","isMoveish","isEndish","__DEV__","process","env","NODE_ENV","MAX_TOUCH_BANK","touchBank","touchHistory","numberActiveTouches","indexOfSingleActiveTouch","mostRecentTimeStamp","timestampForTouch","touch","timeStamp","timestamp","createTouchRecord","touchActive","startPageX","pageX","startPageY","pageY","startTimeStamp","currentPageX","currentPageY","currentTimeStamp","previousPageX","previousPageY","previousTimeStamp","resetTouchRecord","touchRecord","getTouchIdentifier","_ref","identifier","console","error","recordTouchStart","recordTouchMove","warn","printTouch","printTouchBank","recordTouchEnd","JSON","stringify","printed","slice","length","ResponderTouchHistoryStore","recordTouchTrack","topLevelType","nativeEvent","changedTouches","forEach","touches","i","touchTrackToCheck","activeRecord"],"mappings":"AAQA,SAASA,UAAT,EAAqBC,SAArB,EAAgCC,QAAhC;;AAOA,IAAIC,OAAO,GAAGC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAvC;;AAEA,IAAIC,cAAc,GAAG,EAArB;AACA,IAAIC,SAAS,GAAG,EAAhB;AACA,IAAIC,YAAY,GAAG;AACjBD,EAAAA,SAAS,EAAEA,SADM;AAEjBE,EAAAA,mBAAmB,EAAE,CAFJ;AAMjBC,EAAAA,w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AAW,CAACG,OAAZ,CAAoB,CAApB,EAAuBpB,UAA/D;AACD;AACF,KAPM,MAOA,IAAIhC,QAAQ,CAACgD,YAAD,CAAZ,EAA4B;AACjCC,MAAAA,WAAW,CAACC,cAAZ,CAA2BC,OAA3B,CAAmCX,cAAnC;AACAjC,MAAAA,YAAY,CAACC,mBAAb,GAAmCyC,WAAW,CAACG,OAAZ,CAAoBP,MAAvD;;AAEA,UAAItC,YAAY,CAACC,mBAAb,KAAqC,CAAzC,EAA4C;AAC1C,aAAK,IAAI6C,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAG/C,SAAS,CAACuC,MAA9B,EAAsCQ,CAAC,EAAvC,EAA2C;AACzC,cAAIC,iBAAiB,GAAGhD,SAAS,CAAC+C,CAAD,CAAjC;;AAEA,cAAIC,iBAAiB,IAAI,IAArB,IAA6BA,iBAAiB,CAACtC,WAAnD,EAAgE;AAC9DT,YAAAA,YAAY,CAACE,wBAAb,GAAwC4C,CAAxC;AACA;AACD;AACF;;AAED,YAAIpD,OAAJ,EAAa;AACX,cAAIsD,YAAY,GAAGjD,SAAS,CAACC,YAAY,CAACE,wBAAd,CAA5B;;AAEA,cAAI,EAAE8C,YAAY,IAAI,IAAhB,IAAwBA,YAAY,CAACvC,WAAvC,CAAJ,EAAyD;AACvDiB,YAAAA,OAAO,CAACC,KAAR,CAAc,kCAAd;AACD;AACF;AACF;AACF;AACF,GAlC8B;AAmC/B3B,EAAAA,YAAY,EAAEA;AAnCiB,CAAjC;AAqCA,eAAeuC,0BAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport { isStartish, isMoveish, isEndish } from './ResponderEventTypes';\n\n/**\n * Tracks the position and time of each active touch by `touch.identifier`. We\n * should typically only see IDs in the range of 1-20 because IDs get recycled\n * when touches end and start again.\n */\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar MAX_TOUCH_BANK = 20;\nvar touchBank = [];\nvar touchHistory = {\n touchBank: touchBank,\n numberActiveTouches: 0,\n // If there is only one active touch, we remember its location. This prevents\n // us having to loop through all of the touches all the time in the most\n // common case.\n indexOfSingleActiveTouch: -1,\n mostRecentTimeStamp: 0\n};\n\nfunction timestampForTouch(touch) {\n // The legacy internal implementation provides \"timeStamp\", which has been\n // renamed to \"timestamp\".\n return touch.timeStamp || touch.timestamp;\n}\n/**\n * TODO: Instead of making gestures recompute filtered velocity, we could\n * include a built in velocity computation that can be reused globally.\n */\n\n\nfunction createTouchRecord(touch) {\n return {\n touchActive: true,\n startPageX: touch.pageX,\n startPageY: touch.pageY,\n startTimeStamp: timestampForTouch(touch),\n currentPageX: touch.pageX,\n currentPageY: touch.pageY,\n currentTimeStamp: timestampForTouch(touch),\n previousPageX: touch.pageX,\n previousPageY: touch.pageY,\n previousTimeStamp: timestampForTouch(touch)\n };\n}\n\nfunction resetTouchRecord(touchRecord, touch) {\n touchRecord.touchActive = true;\n touchRecord.startPageX = touch.pageX;\n touchRecord.startPageY = touch.pageY;\n touchRecord.startTimeStamp = timestampForTouch(touch);\n touchRecord.currentPageX = touch.pageX;\n touchRecord.currentPageY = touch.pageY;\n touchRecord.currentTimeStamp = timestampForTouch(touch);\n touchRecord.previousPageX = touch.pageX;\n touchRecord.previousPageY = touch.pageY;\n touchRecord.previousTimeStamp = timestampForTouch(touch);\n}\n\nfunction getTouchIdentifier(_ref) {\n var identifier = _ref.identifier;\n\n if (identifier == null) {\n console.error('Touch object is missing identifier.');\n }\n\n if (__DEV__) {\n if (identifier > MAX_TOUCH_BANK) {\n console.error('Touch identifier %s is greater than maximum supported %s which causes ' + 'performance issues backfilling array locations for all of the indices.', identifier, MAX_TOUCH_BANK);\n }\n }\n\n return identifier;\n}\n\nfunction recordTouchStart(touch) {\n var identifier = getTouchIdentifier(touch);\n var touchRecord = touchBank[identifier];\n\n if (touchRecord) {\n resetTouchRecord(touchRecord, touch);\n } else {\n touchBank[identifier] = createTouchRecord(touch);\n }\n\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n}\n\nfunction recordTouchMove(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n\n if (touchRecord) {\n touchRecord.touchActive = true;\n touchRecord.previousPageX = touchRecord.currentPageX;\n touchRecord.previousPageY = touchRecord.currentPageY;\n touchRecord.previousTimeStamp = touchRecord.currentTimeStamp;\n touchRecord.currentPageX = touch.pageX;\n touchRecord.currentPageY = touch.pageY;\n touchRecord.currentTimeStamp = timestampForTouch(touch);\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n } else {\n console.warn('Cannot record touch move without a touch start.\\n', \"Touch Move: \" + printTouch(touch) + \"\\n\", \"Touch Bank: \" + printTouchBank());\n }\n}\n\nfunction recordTouchEnd(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n\n if (touchRecord) {\n touchRecord.touchActive = false;\n touchRecord.previousPageX = touchRecord.currentPageX;\n touchRecord.previousPageY = touchRecord.currentPageY;\n touchRecord.previousTimeStamp = touchRecord.currentTimeStamp;\n touchRecord.currentPageX = touch.pageX;\n touchRecord.currentPageY = touch.pageY;\n touchRecord.currentTimeStamp = timestampForTouch(touch);\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n } else {\n console.warn('Cannot record touch end without a touch start.\\n', \"Touch End: \" + printTouch(touch) + \"\\n\", \"Touch Bank: \" + printTouchBank());\n }\n}\n\nfunction printTouch(touch) {\n return JSON.stringify({\n identifier: touch.identifier,\n pageX: touch.pageX,\n pageY: touch.pageY,\n timestamp: timestampForTouch(touch)\n });\n}\n\nfunction printTouchBank() {\n var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK));\n\n if (touchBank.length > MAX_TOUCH_BANK) {\n printed += ' (original size: ' + touchBank.length + ')';\n }\n\n return printed;\n}\n\nvar ResponderTouchHistoryStore = {\n recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) {\n if (isMoveish(topLevelType)) {\n nativeEvent.changedTouches.forEach(recordTouchMove);\n } else if (isStartish(topLevelType)) {\n nativeEvent.changedTouches.forEach(recordTouchStart);\n touchHistory.numberActiveTouches = nativeEvent.touches.length;\n\n if (touchHistory.numberActiveTouches === 1) {\n touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier;\n }\n } else if (isEndish(topLevelType)) {\n nativeEvent.changedTouches.forEach(recordTouchEnd);\n touchHistory.numberActiveTouches = nativeEvent.touches.length;\n\n if (touchHistory.numberActiveTouches === 1) {\n for (var i = 0; i < touchBank.length; i++) {\n var touchTrackToCheck = touchBank[i];\n\n if (touchTrackToCheck != null && touchTrackToCheck.touchActive) {\n touchHistory.indexOfSingleActiveTouch = i;\n break;\n }\n }\n\n if (__DEV__) {\n var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch];\n\n if (!(activeRecord != null && activeRecord.touchActive)) {\n console.error('Cannot find single active touch.');\n }\n }\n }\n }\n },\n touchHistory: touchHistory\n};\nexport default ResponderTouchHistoryStore;"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport JSReanimated from \"./JSReanimated\";\nvar reanimatedJS = new JSReanimated();\nglobal._frameTimestamp = null;\nexport var _updatePropsJS = function _updatePropsJS(_viewTag, _viewName, updates, viewRef) {\n if (viewRef.current && viewRef.current._component) {\n var _Object$keys$reduce = Object.keys(updates).reduce(function (acc, key) {\n var value = updates[key];\n var index = typeof value === 'function' ? 1 : 0;\n acc[index][key] = value;\n return acc;\n }, [{}, {}]),\n _Object$keys$reduce2 = _slicedToArray(_Object$keys$reduce, 1),\n rawStyles = _Object$keys$reduce2[0];\n\n if (typeof viewRef.current._component.setNativeProps === 'function') {\n viewRef.current._component.setNativeProps({\n style: rawStyles\n });\n } else if (Object.keys(viewRef.current._component.props).length > 0) {\n Object.keys(viewRef.current._component.props).forEach(function (key) {\n if (!rawStyles[key]) {\n return;\n }\n\n var dashedKey = key.replace(/[A-Z]/g, function (m) {\n return '-' + m.toLowerCase();\n });\n\n viewRef.current._component._touchableNode.setAttribute(dashedKey, rawStyles[key]);\n });\n } else {\n console.warn('It is not possible to manipulate component');\n }\n }\n};\n\nglobal._setGlobalConsole = function (_val) {};\n\nexport default reanimatedJS;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-reanimated/lib/reanimated2/js-reanimated/index.web.js"],"names":["JSReanimated","reanimatedJS","global","_frameTimestamp","_updatePropsJS","_viewTag","_viewName","updates","viewRef","current","_component","Object","keys","reduce","acc","key","value","index","rawStyles","setNativeProps","style","props","length","forEach","dashedKey","replace","m","toLowerCase","_touchableNode","setAttribute","console","warn","_setGlobalConsole","_val"],"mappings":";AAEA,OAAOA,YAAP;AACA,IAAMC,YAAY,GAAG,IAAID,YAAJ,EAArB;AACAE,MAAM,CAACC,eAAP,GAAyB,IAAzB;AACA,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,QAAD,EAAWC,SAAX,EAAsBC,OAAtB,EAA+BC,OAA/B,EAA2C;AACrE,MAAIA,OAAO,CAACC,OAAR,IAAmBD,OAAO,CAACC,OAAR,CAAgBC,UAAvC,EAAmD;AAC/C,8BAAoBC,MAAM,CAACC,IAAP,CAAYL,OAAZ,EAAqBM,MAArB,CAA4B,UAACC,GAAD,EAAMC,GAAN,EAAc;AAC1D,UAAMC,KAAK,GAAGT,OAAO,CAACQ,GAAD,CAArB;AACA,UAAME,KAAK,GAAG,OAAOD,KAAP,KAAiB,UAAjB,GAA8B,CAA9B,GAAkC,CAAhD;AACAF,MAAAA,GAAG,CAACG,KAAD,CAAH,CAAWF,GAAX,IAAkBC,KAAlB;AACA,aAAOF,GAAP;AACH,KALmB,EAKjB,CAAC,EAAD,EAAK,EAAL,CALiB,CAApB;AAAA;AAAA,QAAOI,SAAP;;AAMA,QAAI,OAAOV,OAAO,CAACC,OAAR,CAAgBC,UAAhB,CAA2BS,cAAlC,KAAqD,UAAzD,EAAqE;AACnEX,MAAAA,OAAO,CAACC,OAAR,CAAgBC,UAAhB,CAA2BS,cAA3B,CAA0C;AAAEC,QAAAA,KAAK,EAAEF;AAAT,OAA1C;AACD,KAFD,MAEO,IAAIP,MAAM,CAACC,IAAP,CAAYJ,OAAO,CAACC,OAAR,CAAgBC,UAAhB,CAA2BW,KAAvC,EAA8CC,MAA9C,GAAuD,CAA3D,EAA8D;AACnEX,MAAAA,MAAM,CAACC,IAAP,CAAYJ,OAAO,CAACC,OAAR,CAAgBC,UAAhB,CAA2BW,KAAvC,EAA8CE,OAA9C,CAAsD,UAACR,GAAD,EAAS;AAC7D,YAAI,CAACG,SAAS,CAACH,GAAD,CAAd,EAAqB;AACnB;AACD;;AACD,YAAMS,SAAS,GAAGT,GAAG,CAACU,OAAJ,CAAY,QAAZ,EAAsB,UAACC,CAAD;AAAA,iBAAO,MAAMA,CAAC,CAACC,WAAF,EAAb;AAAA,SAAtB,CAAlB;;AACAnB,QAAAA,OAAO,CAACC,OAAR,CAAgBC,UAAhB,CAA2BkB,cAA3B,CAA0CC,YAA1C,CACEL,SADF,EAEEN,SAAS,CAACH,GAAD,CAFX;AAID,OATD;AAUD,KAXM,MAWA;AACLe,MAAAA,OAAO,CAACC,IAAR,CAAa,4CAAb;AACD;AACJ;AACJ,CAzBM;;AA0BP7B,MAAM,CAAC8B,iBAAP,GAA2B,UAACC,IAAD,EAAU,CAEpC,CAFD;;AAGA,eAAehC,YAAf","sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport JSReanimated from './JSReanimated';\nconst reanimatedJS = new JSReanimated();\nglobal._frameTimestamp = null;\nexport const _updatePropsJS = (_viewTag, _viewName, updates, viewRef) => {\n if (viewRef.current && viewRef.current._component) {\n const [rawStyles] = Object.keys(updates).reduce((acc, key) => {\n const value = updates[key];\n const index = typeof value === 'function' ? 1 : 0;\n acc[index][key] = value;\n return acc;\n }, [{}, {}]);\n if (typeof viewRef.current._component.setNativeProps === 'function') {\n viewRef.current._component.setNativeProps({ style: rawStyles });\n } else if (Object.keys(viewRef.current._component.props).length > 0) {\n Object.keys(viewRef.current._component.props).forEach((key) => {\n if (!rawStyles[key]) {\n return;\n }\n const dashedKey = key.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase());\n viewRef.current._component._touchableNode.setAttribute(\n dashedKey,\n rawStyles[key]\n );\n });\n } else {\n console.warn('It is not possible to manipulate component');\n }\n }\n};\nglobal._setGlobalConsole = (_val) => {\n // noop\n};\nexport default reanimatedJS;\n"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nimport AnimatedNode from \"./AnimatedNode\";\nimport { val } from \"../val\";\nimport invariant from 'fbjs/lib/invariant';\nimport { adapt } from \"../core/AnimatedBlock\";\n\nfunction reduce(fn) {\n return function (input) {\n return input.reduce(function (a, b) {\n return fn(val(a), val(b));\n });\n };\n}\n\nfunction reduceFrom(fn, initialValue) {\n return function (input) {\n return input.reduce(function (a, b) {\n return fn(val(a), val(b));\n }, initialValue);\n };\n}\n\nfunction infix(fn) {\n return function (input) {\n return fn(val(input[0]), val(input[1]));\n };\n}\n\nfunction single(fn) {\n return function (input) {\n return fn(val(input[0]));\n };\n}\n\nvar OPERATIONS = {\n add: reduce(function (a, b) {\n return a + b;\n }),\n sub: reduce(function (a, b) {\n return a - b;\n }),\n multiply: reduce(function (a, b) {\n return a * b;\n }),\n divide: reduce(function (a, b) {\n return a / b;\n }),\n pow: reduce(function (a, b) {\n return Math.pow(a, b);\n }),\n modulo: reduce(function (a, b) {\n return (a % b + b) % b;\n }),\n sqrt: single(function (a) {\n return Math.sqrt(a);\n }),\n log: single(function (a) {\n return Math.log(a);\n }),\n sin: single(function (a) {\n return Math.sin(a);\n }),\n cos: single(function (a) {\n return Math.cos(a);\n }),\n tan: single(function (a) {\n return Math.tan(a);\n }),\n acos: single(function (a) {\n return Math.acos(a);\n }),\n asin: single(function (a) {\n return Math.asin(a);\n }),\n atan: single(function (a) {\n return Math.atan(a);\n }),\n exp: single(function (a) {\n return Math.exp(a);\n }),\n round: single(function (a) {\n return Math.round(a);\n }),\n abs: single(function (a) {\n return Math.abs(a);\n }),\n ceil: single(function (a) {\n return Math.ceil(a);\n }),\n floor: single(function (a) {\n return Math.floor(a);\n }),\n max: reduce(function (a, b) {\n return Math.max(a, b);\n }),\n min: reduce(function (a, b) {\n return Math.min(a, b);\n }),\n and: reduceFrom(function (a, b) {\n return a && b;\n }, true),\n or: reduceFrom(function (a, b) {\n return a || b;\n }, false),\n not: single(function (a) {\n return !a;\n }),\n defined: single(function (a) {\n return a !== null && a !== undefined && !isNaN(a);\n }),\n lessThan: infix(function (a, b) {\n return a < b;\n }),\n eq: infix(function (a, b) {\n return a == b;\n }),\n greaterThan: infix(function (a, b) {\n return a > b;\n }),\n lessOrEq: infix(function (a, b) {\n return a <= b;\n }),\n greaterOrEq: infix(function (a, b) {\n return a >= b;\n }),\n neq: infix(function (a, b) {\n return a != b;\n })\n};\n\nvar AnimatedOperator = function (_AnimatedNode) {\n _inherits(AnimatedOperator, _AnimatedNode);\n\n var _super = _createSuper(AnimatedOperator);\n\n function AnimatedOperator(operator, input) {\n var _this;\n\n _classCallCheck(this, AnimatedOperator);\n\n invariant(typeof operator === 'string', \"Reanimated: Animated.operator node first argument should be of type String, but got: \" + operator);\n invariant(input.every(function (el) {\n return el instanceof AnimatedNode || typeof el === 'string' || typeof el === 'number';\n }), \"Reanimated: Animated.operator node second argument should be one or more of type AnimatedNode, String or Number but got \" + input);\n _this = _super.call(this, {\n type: 'op',\n op: operator,\n input: input\n }, input);\n _this._op = operator;\n _this._input = input;\n return _this;\n }\n\n _createClass(AnimatedOperator, [{\n key: \"toString\",\n value: function toString() {\n return \"AnimatedOperator, id: \" + this.__nodeID;\n }\n }, {\n key: \"__onEvaluate\",\n value: function __onEvaluate() {\n if (!this._operation) {\n this._operation = OPERATIONS[this._op];\n invariant(this._operation, \"Illegal operator '%s'\", this._op);\n }\n\n return this._operation(this._input);\n }\n }]);\n\n return AnimatedOperator;\n}(AnimatedNode);\n\nexport function createAnimatedOperator(name) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return new AnimatedOperator(name, args.map(adapt));\n };\n}","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-reanimated/lib/reanimated1/core/AnimatedOperator.js"],"names":["AnimatedNode","val","invariant","adapt","reduce","fn","input","a","b","reduceFrom","initialValue","infix","single","OPERATIONS","add","sub","multiply","divide","pow","Math","modulo","sqrt","log","sin","cos","tan","acos","asin","atan","exp","round","abs","ceil","floor","max","min","and","or","not","defined","undefined","isNaN","lessThan","eq","greaterThan","lessOrEq","greaterOrEq","neq","AnimatedOperator","operator","every","el","type","op","_op","_input","__nodeID","_operation","createAnimatedOperator","name","args","map"],"mappings":";;;;;;;;;;AAAA,OAAOA,YAAP;AACA,SAASC,GAAT;AAEA,OAAOC,SAAP,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port { adapt } from '../core/AnimatedBlock';\n\nfunction reduce(fn) {\n return (input) => input.reduce((a, b) => fn(val(a), val(b)));\n}\n\nfunction reduceFrom(fn, initialValue) {\n return (input) => input.reduce((a, b) => fn(val(a), val(b)), initialValue);\n}\n\nfunction infix(fn) {\n return (input) => fn(val(input[0]), val(input[1]));\n}\n\nfunction single(fn) {\n return (input) => fn(val(input[0]));\n}\n\nconst OPERATIONS = {\n // arithmetic\n add: reduce((a, b) => a + b),\n sub: reduce((a, b) => a - b),\n multiply: reduce((a, b) => a * b),\n divide: reduce((a, b) => a / b),\n pow: reduce((a, b) => Math.pow(a, b)),\n modulo: reduce((a, b) => ((a % b) + b) % b),\n sqrt: single((a) => Math.sqrt(a)),\n log: single((a) => Math.log(a)),\n sin: single((a) => Math.sin(a)),\n cos: single((a) => Math.cos(a)),\n tan: single((a) => Math.tan(a)),\n acos: single((a) => Math.acos(a)),\n asin: single((a) => Math.asin(a)),\n atan: single((a) => Math.atan(a)),\n exp: single((a) => Math.exp(a)),\n round: single((a) => Math.round(a)),\n abs: single((a) => Math.abs(a)),\n ceil: single((a) => Math.ceil(a)),\n floor: single((a) => Math.floor(a)),\n max: reduce((a, b) => Math.max(a, b)),\n min: reduce((a, b) => Math.min(a, b)),\n\n // logical\n and: reduceFrom((a, b) => a && b, true),\n or: reduceFrom((a, b) => a || b, false),\n not: single((a) => !a),\n defined: single((a) => a !== null && a !== undefined && !isNaN(a)),\n\n // comparing\n lessThan: infix((a, b) => a < b),\n /* eslint-disable-next-line eqeqeq */\n eq: infix((a, b) => a == b),\n greaterThan: infix((a, b) => a > b),\n lessOrEq: infix((a, b) => a <= b),\n greaterOrEq: infix((a, b) => a >= b),\n /* eslint-disable-next-line eqeqeq */\n neq: infix((a, b) => a != b),\n};\n\nclass AnimatedOperator extends AnimatedNode {\n _input;\n _op;\n _operation;\n\n constructor(operator, input) {\n invariant(\n typeof operator === 'string',\n `Reanimated: Animated.operator node first argument should be of type String, but got: ${operator}`\n );\n invariant(\n input.every(\n (el) =>\n el instanceof AnimatedNode ||\n typeof el === 'string' ||\n typeof el === 'number'\n ),\n `Reanimated: Animated.operator node second argument should be one or more of type AnimatedNode, String or Number but got ${input}`\n );\n super({ type: 'op', op: operator, input }, input);\n this._op = operator;\n this._input = input;\n }\n\n toString() {\n return `AnimatedOperator, id: ${this.__nodeID}`;\n }\n\n __onEvaluate() {\n if (!this._operation) {\n this._operation = OPERATIONS[this._op];\n invariant(this._operation, `Illegal operator '%s'`, this._op);\n }\n return this._operation(this._input);\n }\n}\n\nexport function createAnimatedOperator(name) {\n return (...args) => new AnimatedOperator(name, args.map(adapt));\n}\n"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import AppRegistry from \"react-native-web/dist/exports/AppRegistry\";\nAppRegistry;\nvar originalWarn = console.warn;\n\nconsole.warn = function warn() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (args.length > 0 && typeof args[0] === 'string' && (/^Require cycle: .*node_modules/.test(args[0]) || /Use UIManager\\.getViewManagerConfig\\('LottieAnimationView'\\) instead\\./.test(args[0]) || /ReactNative\\.NativeModules\\.LottieAnimationView\\.getConstants/.test(args[0]))) {\n return;\n }\n\n originalWarn.apply(console, args);\n};\n\nvar originalError = console.error;\n\nconsole.error = function error() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (args.length > 0 && typeof args[0] === 'string' && /^Warning: .* has been extracted/.test(args[0])) {\n return;\n }\n\n originalError.apply(console, args);\n};","map":{"version":3,"sources":["../../src/environment/react-native-logs.fx.ts"],"names":[],"mappings":";AAIA,WAAW;AAMX,IAAM,YAAY,GAAG,OAAO,CAAC,IAA7B;;AACA,OAAO,CAAC,IAAR,GAAe,SAAS,IAAT,GAAqB;AAAA,oCAAJ,IAAI;AAAJ,IAAA,IAAI;AAAA;;AAClC,MACE,IAAI,CAAC,MAAL,GAAc,CAAd,IACA,OAAO,IAAI,CAAC,CAAD,CAAX,KAAmB,QADnB,KAEC,iCAAiC,IAAjC,CAAsC,IAAI,CAAC,CAAD,CAA1C,KACC,yEAAyE,IAAzE,CAA8E,IAAI,CAAC,CAAD,CAAlF,CADD,IAEC,gEAAgE,IAAhE,CAAqE,IAAI,CAAC,CAAD,CAAzE,CAJF,CADF,EAME;AACA;AACD;;AACD,EAAA,YAAY,CAAC,KAAb,CAAmB,OAAnB,EAA4B,IAA5B;AACD,CAXD;;AAaA,IAAM,aAAa,GAAG,OAAO,CAAC,KAA9B;;AACA,OAAO,CAAC,KAAR,GAAgB,SAAS,KAAT,GAAsB;AAAA,qCAAJ,IAAI;AAAJ,IAAA,IAAI;AAAA;;AACpC,MACE,IAAI,CAAC,MAAL,GAAc,CAAd,IACA,OAAO,IAAI,CAAC,CAAD,CAAX,KAAmB,QADnB,IAEA,kCAAkC,IAAlC,CAAuC,IAAI,CAAC,CAAD,CAA3C,CAHF,EAIE;AACA;AACD;;AACD,EAAA,aAAa,CAAC,KAAd,CAAoB,OAApB,EAA6B,IAA7B;AACD,CATD","sourcesContent":["// AppRegistry transitively installs YellowBox as a side effect, which overrides various console\n// methods that we need to set up before we override them\nimport { AppRegistry } from 'react-native';\n\nAppRegistry; // eslint-disable-line @babel/no-unused-expressions\n\n// NOTE(2018-10-29): temporarily filter out cyclic dependency warnings here since they are noisy and\n// each warning symbolicates a stack trace, which is slow when there are many warnings\n// NOTE(2019-05-27): temporarily filter out LottieAnimationView warnings triggered by\n// unmaintained react-native-safe-module dependency.\nconst originalWarn = console.warn;\nconsole.warn = function warn(...args) {\n if (\n args.length > 0 &&\n typeof args[0] === 'string' &&\n (/^Require cycle: .*node_modules/.test(args[0]) ||\n /Use UIManager\\.getViewManagerConfig\\('LottieAnimationView'\\) instead\\./.test(args[0]) ||\n /ReactNative\\.NativeModules\\.LottieAnimationView\\.getConstants/.test(args[0]))\n ) {\n return;\n }\n originalWarn.apply(console, args);\n};\n\nconst originalError = console.error;\nconsole.error = function error(...args) {\n if (\n args.length > 0 &&\n typeof args[0] === 'string' &&\n /^Warning: .* has been extracted/.test(args[0])\n ) {\n return;\n }\n originalError.apply(console, args);\n};\n"],"sourceRoot":""},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nimport * as React from 'react';\nimport { useImperativeHandle, useRef } from 'react';\nimport { NativeViewGestureHandler, nativeViewProps } from \"./NativeViewGestureHandler\";\nvar NATIVE_WRAPPER_PROPS_FILTER = [].concat(_toConsumableArray(nativeViewProps), ['onGestureHandlerEvent', 'onGestureHandlerStateChange']);\nexport default function createNativeWrapper(Component) {\n var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var ComponentWrapper = React.forwardRef(function (props, ref) {\n var gestureHandlerProps = Object.keys(props).reduce(function (res, key) {\n var allowedKeys = NATIVE_WRAPPER_PROPS_FILTER;\n\n if (allowedKeys.includes(key)) {\n res[key] = props[key];\n }\n\n return res;\n }, _objectSpread({}, config));\n\n var _ref = useRef();\n\n var _gestureHandlerRef = useRef();\n\n useImperativeHandle(ref, function () {\n var node = _gestureHandlerRef.current;\n\n if (_ref.current && node) {\n _ref.current.handlerTag = node.handlerTag;\n return _ref.current;\n }\n\n return null;\n }, [_ref, _gestureHandlerRef]);\n return React.createElement(NativeViewGestureHandler, _extends({}, gestureHandlerProps, {\n ref: _gestureHandlerRef\n }), React.createElement(Component, _extends({}, props, {\n ref: _ref\n })));\n });\n ComponentWrapper.displayName = Component.displayName || 'ComponentWrapper';\n return ComponentWrapper;\n}","map":{"version":3,"sources":["createNativeWrapper.tsx"],"names":["NATIVE_WRAPPER_PROPS_FILTER","config","ComponentWrapper","gestureHandlerProps","allowedKeys","res","props","_ref","useRef","_gestureHandlerRef","useImperativeHandle","node","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAP,KAAA,MAAA,OAAA;AACA,SAAA,mBAAA,EAAA,MAAA,QAAA,OAAA;AAEA,SAAA,wBAAA,EAAA,eAAA;AAaA,IAAMA,2BAA2B,gCAAG,eAAH,IAAG,uBAAH,EAAjC,6BAAiC,EAAjC;AAMA,eAAe,SAAA,mBAAA,CAAA,SAAA,EAGb;AAAA,MADAC,MACA,uEAHa,EAGb;AACA,MAAMC,gBAAgB,GAAG,KAAK,CAAL,UAAA,CAGvB,UAAA,KAAA,EAAA,GAAA,EAAgB;AAEhB,QAAMC,mBAAmB,GAAG,MAAM,CAAN,IAAA,CAAA,KAAA,EAAA,MAAA,CAC1B,UAAA,GAAA,EAAA,GAAA,EAAc;AAEZ,UAAMC,WAA8B,GAApC,2BAAA;;AACA,UAAIA,WAAW,CAAXA,QAAAA,CAAJ,GAAIA,CAAJ,EAA+B;AAE7BC,QAAAA,GAAG,CAAHA,GAAG,CAAHA,GAAWC,KAAK,CAAhBD,GAAgB,CAAhBA;AACD;;AACD,aAAA,GAAA;AARwB,KAAA,oBAUrBJ,MAVqB,EAA5B;;AAYA,QAAMM,IAAI,GAAGC,MAAb,EAAA;;AACA,QAAMC,kBAAkB,GAAGD,MAA3B,EAAA;;AACAE,IAAAA,mBAAmB,CAAA,GAAA,EAGjB,YAAM;AACJ,UAAMC,IAAI,GAAGF,kBAAkB,CAD3B,OACJ;;AAEA,UAAIF,IAAI,CAAJA,OAAAA,IAAJ,IAAA,EAA0B;AAExBA,QAAAA,IAAI,CAAJA,OAAAA,CAAAA,UAAAA,GAA0BI,IAAI,CAA9BJ,UAAAA;AACA,eAAOA,IAAI,CAAX,OAAA;AACD;;AACD,aAAA,IAAA;AAXe,KAAA,EAajB,CAAA,IAAA,EAbFG,kBAaE,CAbiB,CAAnBA;AAeA,WACE,KAAA,CAAA,aAAA,CAAA,wBAAA,EAAA,QAAA,CAAA,EAAA,EAAA,mBAAA,EAAA;AAGE,MAAA,GAAG,EAAED;AAHP,KAAA,CAAA,EAIE,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,QAAA,CAAA,EAAA,EAAA,KAAA,EAAA;AAAsB,MAAA,GAAG,EAAEF;AAA3B,KAAA,CAAA,CAJF,CADF;AAlCF,GAAyB,CAAzB;AA4CAL,EAAAA,gBAAgB,CAAhBA,WAAAA,GAA+BU,SAAS,CAATA,WAAAA,IAA/BV,kBAAAA;AAEA,SAAA,gBAAA;AACD","sourcesContent":["import * as React from 'react';\nimport { useImperativeHandle, useRef } from 'react';\n\nimport {\n NativeViewGestureHandler,\n NativeViewGestureHandlerProps,\n nativeViewProps,\n} from './NativeViewGestureHandler';\n\n/*\n * This array should consist of:\n * - All keys in propTypes from NativeGestureHandler\n * (and all keys in GestureHandlerPropTypes)\n * - 'onGestureHandlerEvent'\n * - 'onGestureHandlerStateChange'\n */\nconst NATIVE_WRAPPER_PROPS_FILTER = [\n ...nativeViewProps,\n 'onGestureHandlerEvent',\n 'onGestureHandlerStateChange',\n] as const;\n\nexport default function createNativeWrapper<P>(\n Component: React.ComponentType<P>,\n config: Readonly<NativeViewGestureHandlerProps> = {}\n) {\n const ComponentWrapper = React.forwardRef<\n React.ComponentType<any>,\n P & NativeViewGestureHandlerProps\n >((props, ref) => {\n // filter out props that should be passed to gesture handler wrapper\n const gestureHandlerProps = Object.keys(props).reduce(\n (res, key) => {\n // TS being overly protective with it's types, see https://github.com/microsoft/TypeScript/issues/26255#issuecomment-458013731 for more info\n const allowedKeys: readonly string[] = NATIVE_WRAPPER_PROPS_FILTER;\n if (allowedKeys.includes(key)) {\n // @ts-ignore FIXME(TS)\n res[key] = props[key];\n }\n return res;\n },\n { ...config } // watch out not to modify config\n );\n const _ref = useRef<React.ComponentType<P>>();\n const _gestureHandlerRef = useRef<React.ComponentType<P>>();\n useImperativeHandle(\n ref,\n // @ts-ignore TODO(TS) decide how nulls work in this context\n () => {\n const node = _gestureHandlerRef.current;\n // add handlerTag for relations config\n if (_ref.current && node) {\n // @ts-ignore FIXME(TS) think about createHandler return type\n _ref.current.handlerTag = node.handlerTag;\n return _ref.current;\n }\n return null;\n },\n [_ref, _gestureHandlerRef]\n );\n return (\n <NativeViewGestureHandler\n {...gestureHandlerProps}\n // @ts-ignore TODO(TS)\n ref={_gestureHandlerRef}>\n <Component {...props} ref={_ref} />\n </NativeViewGestureHandler>\n );\n });\n\n ComponentWrapper.displayName = Component.displayName || 'ComponentWrapper';\n\n return ComponentWrapper;\n}\n"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nvar gestures = {};\nexport function getHandler(tag) {\n if (tag in gestures) return gestures[tag];\n throw new Error(\"No handler for tag \".concat(tag));\n}\nexport function createGestureHandler(handlerTag, handler) {\n if (handlerTag in gestures) {\n throw new Error(\"Handler with tag \".concat(handlerTag, \" already exists\"));\n }\n\n gestures[handlerTag] = handler;\n gestures[handlerTag].handlerTag = handlerTag;\n}\nexport function dropGestureHandler(handlerTag) {\n getHandler(handlerTag).destroy();\n delete gestures[handlerTag];\n}\nexport function getNodes() {\n return _objectSpread({}, gestures);\n}","map":{"version":3,"sources":["NodeManager.ts"],"names":["gestures","tag","handlerTag","getHandler"],"mappings":";;;;;;AAGA,IAAMA,QAAgE,GAAtE,EAAA;AAEA,OAAO,SAAA,UAAA,CAAA,GAAA,EAAiC;AACtC,MAAIC,GAAG,IAAP,QAAA,EAAqB,OAAOD,QAAQ,CAAf,GAAe,CAAf;AAErB,QAAM,IAAA,KAAA,CAAA,sBAAA,MAAA,CAAN,GAAM,CAAA,CAAN;AACD;AAED,OAAO,SAAA,oBAAA,CAAA,UAAA,EAAA,OAAA,EAGL;AACA,MAAIE,UAAU,IAAd,QAAA,EAA4B;AAC1B,UAAM,IAAA,KAAA,CAAA,oBAAA,MAAA,CAAA,UAAA,EAAN,iBAAM,CAAA,CAAN;AACD;;AACDF,EAAAA,QAAQ,CAARA,UAAQ,CAARA,GAJA,OAIAA;AAEAA,EAAAA,QAAQ,CAARA,UAAQ,CAARA,CAAAA,UAAAA,GAAAA,UAAAA;AACD;AAED,OAAO,SAAA,kBAAA,CAAA,UAAA,EAAgD;AACrDG,EAAAA,UAAU,CAAVA,UAAU,CAAVA,CADqD,OACrDA;AAEA,SAAOH,QAAQ,CAAf,UAAe,CAAf;AACD;AAED,OAAO,SAAA,QAAA,GAAoB;AACzB,2BAAYA,QAAZ;AACD","sourcesContent":["import { ValueOf } from '../typeUtils';\nimport { Gestures } from '../RNGestureHandlerModule.web';\n\nconst gestures: Record<number, InstanceType<ValueOf<typeof Gestures>>> = {};\n\nexport function getHandler(tag: number) {\n if (tag in gestures) return gestures[tag];\n\n throw new Error(`No handler for tag ${tag}`);\n}\n\nexport function createGestureHandler(\n handlerTag: number,\n handler: InstanceType<ValueOf<typeof Gestures>>\n) {\n if (handlerTag in gestures) {\n throw new Error(`Handler with tag ${handlerTag} already exists`);\n }\n gestures[handlerTag] = handler;\n // @ts-ignore no types for web handlers yet\n gestures[handlerTag].handlerTag = handlerTag;\n}\n\nexport function dropGestureHandler(handlerTag: number) {\n getHandler(handlerTag).destroy();\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete gestures[handlerTag];\n}\n\nexport function getNodes() {\n return { ...gestures };\n}\n"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"'use strict';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nimport * as React from 'react';\nimport { useCallback, useMemo, useState, useRef } from 'react';\nimport useMergeRefs from \"../../modules/useMergeRefs\";\nimport usePressEvents from \"../../hooks/usePressEvents\";\nimport StyleSheet from \"../StyleSheet\";\nimport View from \"../View\";\n\nfunction TouchableOpacity(props, forwardedRef) {\n var accessible = props.accessible,\n activeOpacity = props.activeOpacity,\n delayPressIn = props.delayPressIn,\n delayPressOut = props.delayPressOut,\n delayLongPress = props.delayLongPress,\n disabled = props.disabled,\n focusable = props.focusable,\n onLongPress = props.onLongPress,\n onPress = props.onPress,\n onPressIn = props.onPressIn,\n onPressOut = props.onPressOut,\n rejectResponderTermination = props.rejectResponderTermination,\n style = props.style,\n rest = _objectWithoutPropertiesLoose(props, [\"accessible\", \"activeOpacity\", \"delayPressIn\", \"delayPressOut\", \"delayLongPress\", \"disabled\", \"focusable\", \"onLongPress\", \"onPress\", \"onPressIn\", \"onPressOut\", \"rejectResponderTermination\", \"style\"]);\n\n var hostRef = useRef(null);\n var setRef = useMergeRefs(forwardedRef, hostRef);\n\n var _useState = useState('0s'),\n duration = _useState[0],\n setDuration = _useState[1];\n\n var _useState2 = useState(null),\n opacityOverride = _useState2[0],\n setOpacityOverride = _useState2[1];\n\n var setOpacityTo = useCallback(function (value, duration) {\n setOpacityOverride(value);\n setDuration(duration ? duration / 1000 + \"s\" : '0s');\n }, [setOpacityOverride, setDuration]);\n var setOpacityActive = useCallback(function (duration) {\n setOpacityTo(activeOpacity !== null && activeOpacity !== void 0 ? activeOpacity : 0.2, duration);\n }, [activeOpacity, setOpacityTo]);\n var setOpacityInactive = useCallback(function (duration) {\n setOpacityTo(null, duration);\n }, [setOpacityTo]);\n var pressConfig = useMemo(function () {\n return {\n cancelable: !rejectResponderTermination,\n disabled: disabled,\n delayLongPress: delayLongPress,\n delayPressStart: delayPressIn,\n delayPressEnd: delayPressOut,\n onLongPress: onLongPress,\n onPress: onPress,\n onPressStart: function onPressStart(event) {\n setOpacityActive(event.dispatchConfig.registrationName === 'onResponderGrant' ? 0 : 150);\n\n if (onPressIn != null) {\n onPressIn(event);\n }\n },\n onPressEnd: function onPressEnd(event) {\n setOpacityInactive(250);\n\n if (onPressOut != null) {\n onPressOut(event);\n }\n }\n };\n }, [delayLongPress, delayPressIn, delayPressOut, disabled, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, setOpacityActive, setOpacityInactive]);\n var pressEventHandlers = usePressEvents(hostRef, pressConfig);\n return React.createElement(View, _extends({}, rest, pressEventHandlers, {\n accessibilityState: _objectSpread({\n disabled: disabled\n }, props.accessibilityState),\n accessible: accessible !== false,\n focusable: focusable !== false && onPress !== undefined,\n ref: setRef,\n style: [styles.root, !disabled && styles.actionable, style, opacityOverride != null && {\n opacity: opacityOverride\n }, {\n transitionDuration: duration\n }]\n }));\n}\n\nvar styles = StyleSheet.create({\n root: {\n transitionProperty: 'opacity',\n transitionDuration: '0.15s',\n userSelect: 'none'\n },\n actionable: {\n cursor: 'pointer',\n touchAction: 'manipulation'\n }\n});\nvar MemoedTouchableOpacity = React.memo(React.forwardRef(TouchableOpacity));\nMemoedTouchableOpacity.displayName = 'TouchableOpacity';\nexport default MemoedTouchableOpacity;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/exports/TouchableOpacity/index.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","configurable","writable","_objectWithoutPropertiesLoose","excluded","sourceKeys","indexOf","React","useCallback","useMemo","useState","useRef","useMergeRefs","usePressEvents","StyleSheet","View","TouchableOpacity","props","forwardedRef","accessible","activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style","rest","hostRef","setRef","_useState","duration","setDuration","_useState2","opacityOverride","setOpacityOverride","setOpacityTo","setOpacityActive","setOpacityInactive","pressConfig","cancelable","delayPressStart","delayPressEnd","onPressStart","event","dispatchConfig","registrationName","onPressEnd","pressEventHandlers","createElement","accessibilityState","undefined","ref","styles","root","actionable","opacity","transitionDuration","create","transitionProperty","userSelect","cursor","touchAction","MemoedTouchableOpacity","memo","forwardRef","displayName"],"mappings":"AASA;;AAEA,SAASA,QAAT,GAAoB;AAAEA,EAAAA,QAAQ,GAAGC,MAAM,CAACC,MAAP,IAAiB,UAAUC,MAAV,EAAkB;AAAE,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGC,SAAS,CAACC,MAA9B,EAAsCF,CAAC,EAAvC,EAA2C;AAAE,UAAIG,MAAM,GAAGF,SAAS,CAACD,CAAD,CAAtB;;AAA2B,WAAK,IAAII,GAAT,IAAgBD,MAAhB,EAAwB;AAAE,YAAIN,MAAM,CAACQ,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCJ,MAArC,EAA6CC,GA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AQ,CAAC,EAAD,EAAK+D,IAAL,EAAWqB,kBAAX,EAA+B;AACtEE,IAAAA,kBAAkB,EAAE9D,aAAa,CAAC;AAChC+B,MAAAA,QAAQ,EAAEA;AADsB,KAAD,EAE9BP,KAAK,CAACsC,kBAFwB,CADqC;AAItEpC,IAAAA,UAAU,EAAEA,UAAU,KAAK,KAJ2C;AAKtEM,IAAAA,SAAS,EAAEA,SAAS,KAAK,KAAd,IAAuBE,OAAO,KAAK6B,SALwB;AAMtEC,IAAAA,GAAG,EAAEvB,MANiE;AAOtEH,IAAAA,KAAK,EAAE,CAAC2B,MAAM,CAACC,IAAR,EAAc,CAACnC,QAAD,IAAakC,MAAM,CAACE,UAAlC,EAA8C7B,KAA9C,EAAqDQ,eAAe,IAAI,IAAnB,IAA2B;AACrFsB,MAAAA,OAAO,EAAEtB;AAD4E,KAAhF,EAEJ;AACDuB,MAAAA,kBAAkB,EAAE1B;AADnB,KAFI;AAP+D,GAA/B,CAAlC,CAAP;AAaD;;AAED,IAAIsB,MAAM,GAAG5C,UAAU,CAACiD,MAAX,CAAkB;AAC7BJ,EAAAA,IAAI,EAAE;AACJK,IAAAA,kBAAkB,EAAE,SADhB;AAEJF,IAAAA,kBAAkB,EAAE,OAFhB;AAGJG,IAAAA,UAAU,EAAE;AAHR,GADuB;AAM7BL,EAAAA,UAAU,EAAE;AACVM,IAAAA,MAAM,EAAE,SADE;AAEVC,IAAAA,WAAW,EAAE;AAFH;AANiB,CAAlB,CAAb;AAWA,IAAIC,sBAAsB,GAAG7D,KAAK,CAAC8D,IAAN,CAAW9D,KAAK,CAAC+D,UAAN,CAAiBtD,gBAAjB,CAAX,CAA7B;AACAoD,sBAAsB,CAACG,WAAvB,GAAqC,kBAArC;AACA,eAAeH,sBAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n'use strict';\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from 'react';\nimport { useCallback, useMemo, useState, useRef } from 'react';\nimport useMergeRefs from '../../modules/useMergeRefs';\nimport usePressEvents from '../../hooks/usePressEvents';\nimport StyleSheet from '../StyleSheet';\nimport View from '../View';\n\n/**\n * A wrapper for making views respond properly to touches.\n * On press down, the opacity of the wrapped view is decreased, dimming it.\n */\nfunction TouchableOpacity(props, forwardedRef) {\n var accessible = props.accessible,\n activeOpacity = props.activeOpacity,\n delayPressIn = props.delayPressIn,\n delayPressOut = props.delayPressOut,\n delayLongPress = props.delayLongPress,\n disabled = props.disabled,\n focusable = props.focusable,\n onLongPress = props.onLongPress,\n onPress = props.onPress,\n onPressIn = props.onPressIn,\n onPressOut = props.onPressOut,\n rejectResponderTermination = props.rejectResponderTermination,\n style = props.style,\n rest = _objectWithoutPropertiesLoose(props, [\"accessible\", \"activeOpacity\", \"delayPressIn\", \"delayPressOut\", \"delayLongPress\", \"disabled\", \"focusable\", \"onLongPress\", \"onPress\", \"onPressIn\", \"onPressOut\", \"rejectResponderTermination\", \"style\"]);\n\n var hostRef = useRef(null);\n var setRef = useMergeRefs(forwardedRef, hostRef);\n\n var _useState = useState('0s'),\n duration = _useState[0],\n setDuration = _useState[1];\n\n var _useState2 = useState(null),\n opacityOverride = _useState2[0],\n setOpacityOverride = _useState2[1];\n\n var setOpacityTo = useCallback(function (value, duration) {\n setOpacityOverride(value);\n setDuration(duration ? duration / 1000 + \"s\" : '0s');\n }, [setOpacityOverride, setDuration]);\n var setOpacityActive = useCallback(function (duration) {\n setOpacityTo(activeOpacity !== null && activeOpacity !== void 0 ? activeOpacity : 0.2, duration);\n }, [activeOpacity, setOpacityTo]);\n var setOpacityInactive = useCallback(function (duration) {\n setOpacityTo(null, duration);\n }, [setOpacityTo]);\n var pressConfig = useMemo(function () {\n return {\n cancelable: !rejectResponderTermination,\n disabled: disabled,\n delayLongPress: delayLongPress,\n delayPressStart: delayPressIn,\n delayPressEnd: delayPressOut,\n onLongPress: onLongPress,\n onPress: onPress,\n onPressStart: function onPressStart(event) {\n setOpacityActive(event.dispatchConfig.registrationName === 'onResponderGrant' ? 0 : 150);\n\n if (onPressIn != null) {\n onPressIn(event);\n }\n },\n onPressEnd: function onPressEnd(event) {\n setOpacityInactive(250);\n\n if (onPressOut != null) {\n onPressOut(event);\n }\n }\n };\n }, [delayLongPress, delayPressIn, delayPressOut, disabled, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, setOpacityActive, setOpacityInactive]);\n var pressEventHandlers = usePressEvents(hostRef, pressConfig);\n return React.createElement(View, _extends({}, rest, pressEventHandlers, {\n accessibilityState: _objectSpread({\n disabled: disabled\n }, props.accessibilityState),\n accessible: accessible !== false,\n focusable: focusable !== false && onPress !== undefined,\n ref: setRef,\n style: [styles.root, !disabled && styles.actionable, style, opacityOverride != null && {\n opacity: opacityOverride\n }, {\n transitionDuration: duration\n }]\n }));\n}\n\nvar styles = StyleSheet.create({\n root: {\n transitionProperty: 'opacity',\n transitionDuration: '0.15s',\n userSelect: 'none'\n },\n actionable: {\n cursor: 'pointer',\n touchAction: 'manipulation'\n }\n});\nvar MemoedTouchableOpacity = React.memo(React.forwardRef(TouchableOpacity));\nMemoedTouchableOpacity.displayName = 'TouchableOpacity';\nexport default MemoedTouchableOpacity;"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nimport AccessibilityUtil from \"../AccessibilityUtil\";\nimport css from \"../../exports/StyleSheet/css\";\nimport StyleSheet from \"../../exports/StyleSheet\";\nimport styleResolver from \"../../exports/StyleSheet/styleResolver\";\nimport { STYLE_GROUPS } from \"../../exports/StyleSheet/constants\";\nvar emptyObject = {};\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar classes = css.create({\n reset: {\n backgroundColor: 'transparent',\n color: 'inherit',\n font: 'inherit',\n listStyle: 'none',\n margin: 0,\n textAlign: 'inherit',\n textDecoration: 'none'\n },\n cursor: {\n cursor: 'pointer'\n }\n}, STYLE_GROUPS.classicReset);\nvar pointerEventsStyles = StyleSheet.create({\n auto: {\n pointerEvents: 'auto'\n },\n 'box-none': {\n pointerEvents: 'box-none'\n },\n 'box-only': {\n pointerEvents: 'box-only'\n },\n none: {\n pointerEvents: 'none'\n }\n});\n\nvar createDOMProps = function createDOMProps(component, props) {\n if (!props) {\n props = emptyObject;\n }\n\n var _props = props,\n accessibilityLabel = _props.accessibilityLabel,\n accessibilityLiveRegion = _props.accessibilityLiveRegion,\n accessibilityState = _props.accessibilityState,\n accessibilityValue = _props.accessibilityValue,\n accessible = _props.accessible,\n classList = _props.classList,\n dataSet = _props.dataSet,\n providedDisabled = _props.disabled,\n importantForAccessibility = _props.importantForAccessibility,\n nativeID = _props.nativeID,\n pointerEvents = _props.pointerEvents,\n providedStyle = _props.style,\n testID = _props.testID,\n accessibilityRole = _props.accessibilityRole,\n domProps = _objectWithoutPropertiesLoose(_props, [\"accessibilityLabel\", \"accessibilityLiveRegion\", \"accessibilityState\", \"accessibilityValue\", \"accessible\", \"classList\", \"dataSet\", \"disabled\", \"importantForAccessibility\", \"nativeID\", \"pointerEvents\", \"style\", \"testID\", \"accessibilityRole\"]);\n\n var disabled = accessibilityState != null && accessibilityState.disabled === true || providedDisabled;\n var role = AccessibilityUtil.propsToAriaRole(props);\n var isNativeInteractiveElement = role === 'link' || component === 'a' || component === 'button' || component === 'input' || component === 'select' || component === 'textarea' || domProps.contentEditable != null;\n\n if (dataSet != null) {\n for (var prop in dataSet) {\n if (hasOwnProperty.call(dataSet, prop)) {\n var value = dataSet[prop];\n\n if (value != null) {\n domProps[\"data-\" + prop] = value;\n }\n }\n }\n }\n\n if (accessibilityLabel != null) {\n domProps['aria-label'] = accessibilityLabel;\n }\n\n if (accessibilityLiveRegion != null) {\n domProps['aria-live'] = accessibilityLiveRegion === 'none' ? 'off' : accessibilityLiveRegion;\n }\n\n if (role != null) {\n domProps.role = role;\n }\n\n if (accessibilityState != null) {\n for (var _prop in accessibilityState) {\n var _value = accessibilityState[_prop];\n\n if (_value != null) {\n if (_prop === 'disabled' || _prop === 'hidden') {\n if (_value === true) {\n domProps[\"aria-\" + _prop] = _value;\n domProps[_prop] = _value;\n }\n } else {\n domProps[\"aria-\" + _prop] = _value;\n }\n }\n }\n }\n\n if (accessibilityValue != null) {\n for (var _prop2 in accessibilityValue) {\n var _value2 = accessibilityValue[_prop2];\n\n if (_value2 != null) {\n domProps[\"aria-value\" + _prop2] = _value2;\n }\n }\n }\n\n if (importantForAccessibility === 'no-hide-descendants') {\n domProps['aria-hidden'] = true;\n }\n\n if (disabled === true) {\n domProps['aria-disabled'] = true;\n domProps.disabled = true;\n }\n\n var focusable = !disabled && importantForAccessibility !== 'no' && importantForAccessibility !== 'no-hide-descendants';\n\n if (isNativeInteractiveElement) {\n if (accessible === false || !focusable) {\n domProps.tabIndex = '-1';\n } else {\n domProps['data-focusable'] = true;\n }\n } else if (role === 'button' || role === 'menuitem' || role === 'textbox') {\n if (accessible !== false && focusable) {\n domProps['data-focusable'] = true;\n domProps.tabIndex = '0';\n }\n } else {\n if (accessible === true && focusable) {\n domProps['data-focusable'] = true;\n domProps.tabIndex = '0';\n }\n }\n\n var reactNativeStyle = StyleSheet.compose(pointerEvents && pointerEventsStyles[pointerEvents], providedStyle);\n var needsCursor = (role === 'button' || role === 'link') && !disabled;\n var needsReset = component === 'a' || component === 'button' || component === 'li' || component === 'ul' || role === 'heading';\n var finalClassList = [needsReset && classes.reset, needsCursor && classes.cursor, classList];\n\n var _styleResolver$resolv = styleResolver.resolve(reactNativeStyle, finalClassList),\n className = _styleResolver$resolv.className,\n style = _styleResolver$resolv.style;\n\n if (className != null && className !== '') {\n domProps.className = className;\n }\n\n if (style) {\n domProps.style = style;\n }\n\n if (nativeID != null) {\n domProps.id = nativeID;\n }\n\n if (component === 'a' && domProps.target === '_blank') {\n domProps.rel = (domProps.rel || '') + \" noopener noreferrer\";\n }\n\n if (testID != null) {\n domProps['data-testid'] = testID;\n }\n\n if (domProps['data-focusable']) {\n var onClick = domProps.onClick;\n\n if (onClick != null) {\n if (disabled) {\n domProps.onClick = function (e) {\n e.stopPropagation();\n };\n } else if (!isNativeInteractiveElement) {\n var onKeyDown = domProps.onKeyDown;\n\n domProps.onKeyDown = function (e) {\n var key = e.key,\n repeat = e.repeat;\n var isSpacebarKey = key === ' ' || key === 'Spacebar';\n var isButtonRole = role === 'button' || role === 'menuitem';\n\n if (onKeyDown != null) {\n onKeyDown(e);\n }\n\n if (!repeat && key === 'Enter') {\n onClick(e);\n } else if (isSpacebarKey && isButtonRole) {\n if (!repeat) {\n onClick(e);\n }\n\n e.preventDefault();\n }\n };\n }\n }\n }\n\n return domProps;\n};\n\nexport default createDOMProps;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/modules/createDOMProps/index.js"],"names":["_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","key","i","length","indexOf","AccessibilityUtil","css","StyleSheet","styleResolver","STYLE_GROUPS","emptyObject","hasOwnProperty","prototype","classes","create","reset","backgroundColor","color","font","listStyle","margin","textAlign","textDecoration","cursor","classicReset","pointerEventsStyles","auto","pointerEvents","none","createDOMProps","component","props","_props","accessibilityLabel","accessibilityLiveRegion","accessibilityState","accessibilityValue","accessible","classList","dataSet","providedDisabled","disabled","importantForAccessibility","nativeID","providedStyle","style","testID","accessibilityRole","domProps","role","propsToAriaRole","isNativeInteractiveElement","contentEditable","prop","call","value","_prop","_value","_prop2","_value2","focusable","tabIndex","reactNativeStyle","compose","needsCursor","needsReset","finalClassList","_styleResolver$resolv","resolve","className","id","rel","onClick","e","stopPropagation","onKeyDown","repeat","isSpacebarKey","isButtonRole","preventDefault"],"mappings":"AAAA,SAASA,6BAAT,CAAuCC,MAAvC,EAA+CC,QAA/C,EAAyD;AAAE,MAAID,MAAM,IAAI,IAAd,EAAoB,OAAO,EAAP;AAAW,MAAIE,MAAM,GAAG,EAAb;AAAiB,MAAIC,UAAU,GAAGC,MAAM,CAACC,IAAP,CAAYL,MAAZ,CAAjB;AAAsC,MAAIM,GAAJ,EAASC,CAAT;;AAAY,OAAKA,CAAC,GAAG,CAAT,EAAYA,CAAC,GAAGJ,UAAU,CAACK,MAA3B,EAAmCD,CAAC,EAApC,EAAwC;AAAED,IAAAA,GAAG,GAAGH,UAAU,CAACI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D;;AAGDA,YAAAA,CAAC,CAACM,cAAF;AACD;AACF,SApBD;AAqBD;AACF;AACF;;AAED,SAAO/B,QAAP;AACD,CAtMD;;AAwMA,eAAenB,cAAf","sourcesContent":["function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport AccessibilityUtil from '../AccessibilityUtil';\nimport css from '../../exports/StyleSheet/css';\nimport StyleSheet from '../../exports/StyleSheet';\nimport styleResolver from '../../exports/StyleSheet/styleResolver';\nimport { STYLE_GROUPS } from '../../exports/StyleSheet/constants';\nvar emptyObject = {};\nvar hasOwnProperty = Object.prototype.hasOwnProperty; // Reset styles for heading, link, and list DOM elements\n\nvar classes = css.create({\n reset: {\n backgroundColor: 'transparent',\n color: 'inherit',\n font: 'inherit',\n listStyle: 'none',\n margin: 0,\n textAlign: 'inherit',\n textDecoration: 'none'\n },\n cursor: {\n cursor: 'pointer'\n }\n}, STYLE_GROUPS.classicReset);\nvar pointerEventsStyles = StyleSheet.create({\n auto: {\n pointerEvents: 'auto'\n },\n 'box-none': {\n pointerEvents: 'box-none'\n },\n 'box-only': {\n pointerEvents: 'box-only'\n },\n none: {\n pointerEvents: 'none'\n }\n});\n\nvar createDOMProps = function createDOMProps(component, props) {\n if (!props) {\n props = emptyObject;\n }\n\n var _props = props,\n accessibilityLabel = _props.accessibilityLabel,\n accessibilityLiveRegion = _props.accessibilityLiveRegion,\n accessibilityState = _props.accessibilityState,\n accessibilityValue = _props.accessibilityValue,\n accessible = _props.accessible,\n classList = _props.classList,\n dataSet = _props.dataSet,\n providedDisabled = _props.disabled,\n importantForAccessibility = _props.importantForAccessibility,\n nativeID = _props.nativeID,\n pointerEvents = _props.pointerEvents,\n providedStyle = _props.style,\n testID = _props.testID,\n accessibilityRole = _props.accessibilityRole,\n domProps = _objectWithoutPropertiesLoose(_props, [\"accessibilityLabel\", \"accessibilityLiveRegion\", \"accessibilityState\", \"accessibilityValue\", \"accessible\", \"classList\", \"dataSet\", \"disabled\", \"importantForAccessibility\", \"nativeID\", \"pointerEvents\", \"style\", \"testID\", \"accessibilityRole\"]);\n\n var disabled = accessibilityState != null && accessibilityState.disabled === true || providedDisabled;\n var role = AccessibilityUtil.propsToAriaRole(props);\n var isNativeInteractiveElement = role === 'link' || component === 'a' || component === 'button' || component === 'input' || component === 'select' || component === 'textarea' || domProps.contentEditable != null; // dataSet\n\n if (dataSet != null) {\n for (var prop in dataSet) {\n if (hasOwnProperty.call(dataSet, prop)) {\n var value = dataSet[prop];\n\n if (value != null) {\n domProps[\"data-\" + prop] = value;\n }\n }\n }\n } // accessibilityLabel\n\n\n if (accessibilityLabel != null) {\n domProps['aria-label'] = accessibilityLabel;\n } // accessibilityLiveRegion\n\n\n if (accessibilityLiveRegion != null) {\n domProps['aria-live'] = accessibilityLiveRegion === 'none' ? 'off' : accessibilityLiveRegion;\n } // accessibilityRole\n\n\n if (role != null) {\n domProps.role = role;\n } // accessibilityState\n\n\n if (accessibilityState != null) {\n for (var _prop in accessibilityState) {\n var _value = accessibilityState[_prop];\n\n if (_value != null) {\n if (_prop === 'disabled' || _prop === 'hidden') {\n if (_value === true) {\n domProps[\"aria-\" + _prop] = _value; // also set prop directly to pick up host component behaviour\n\n domProps[_prop] = _value;\n }\n } else {\n domProps[\"aria-\" + _prop] = _value;\n }\n }\n }\n } // accessibilityValue\n\n\n if (accessibilityValue != null) {\n for (var _prop2 in accessibilityValue) {\n var _value2 = accessibilityValue[_prop2];\n\n if (_value2 != null) {\n domProps[\"aria-value\" + _prop2] = _value2;\n }\n }\n } // legacy fallbacks\n\n\n if (importantForAccessibility === 'no-hide-descendants') {\n domProps['aria-hidden'] = true;\n }\n\n if (disabled === true) {\n domProps['aria-disabled'] = true;\n domProps.disabled = true;\n } // FOCUS\n // Assume that 'link' is focusable by default (uses <a>).\n // Assume that 'button' is not (uses <div role='button'>) but must be treated as such.\n\n\n var focusable = !disabled && importantForAccessibility !== 'no' && importantForAccessibility !== 'no-hide-descendants';\n\n if (isNativeInteractiveElement) {\n if (accessible === false || !focusable) {\n domProps.tabIndex = '-1';\n } else {\n domProps['data-focusable'] = true;\n }\n } else if (role === 'button' || role === 'menuitem' || role === 'textbox') {\n if (accessible !== false && focusable) {\n domProps['data-focusable'] = true;\n domProps.tabIndex = '0';\n }\n } else {\n if (accessible === true && focusable) {\n domProps['data-focusable'] = true;\n domProps.tabIndex = '0';\n }\n } // STYLE\n\n\n var reactNativeStyle = StyleSheet.compose(pointerEvents && pointerEventsStyles[pointerEvents], providedStyle); // Additional style resets for interactive elements\n\n var needsCursor = (role === 'button' || role === 'link') && !disabled;\n var needsReset = component === 'a' || component === 'button' || component === 'li' || component === 'ul' || role === 'heading'; // Classic CSS styles\n\n var finalClassList = [needsReset && classes.reset, needsCursor && classes.cursor, classList]; // Resolve styles\n\n var _styleResolver$resolv = styleResolver.resolve(reactNativeStyle, finalClassList),\n className = _styleResolver$resolv.className,\n style = _styleResolver$resolv.style;\n\n if (className != null && className !== '') {\n domProps.className = className;\n }\n\n if (style) {\n domProps.style = style;\n } // OTHER\n // Native element ID\n\n\n if (nativeID != null) {\n domProps.id = nativeID;\n } // Link security\n // https://mathiasbynens.github.io/rel-noopener/\n // Note: using \"noreferrer\" doesn't impact referrer tracking for https\n // transfers (i.e., from https to https).\n\n\n if (component === 'a' && domProps.target === '_blank') {\n domProps.rel = (domProps.rel || '') + \" noopener noreferrer\";\n } // Automated test IDs\n\n\n if (testID != null) {\n domProps['data-testid'] = testID;\n } // Keyboard accessibility\n // Button-like roles should trigger 'onClick' if SPACE key is pressed.\n // Button-like roles should not trigger 'onClick' if they are disabled.\n\n\n if (domProps['data-focusable']) {\n var onClick = domProps.onClick;\n\n if (onClick != null) {\n if (disabled) {\n // Prevent click propagating if the element is disabled. See #1757\n domProps.onClick = function (e) {\n e.stopPropagation();\n };\n } else if (!isNativeInteractiveElement) {\n // For native elements that are focusable but don't dispatch 'click' events\n // for keyboards.\n var onKeyDown = domProps.onKeyDown;\n\n domProps.onKeyDown = function (e) {\n var key = e.key,\n repeat = e.repeat;\n var isSpacebarKey = key === ' ' || key === 'Spacebar';\n var isButtonRole = role === 'button' || role === 'menuitem';\n\n if (onKeyDown != null) {\n onKeyDown(e);\n }\n\n if (!repeat && key === 'Enter') {\n onClick(e);\n } else if (isSpacebarKey && isButtonRole) {\n if (!repeat) {\n onClick(e);\n } // Prevent spacebar scrolling the window\n\n\n e.preventDefault();\n }\n };\n }\n }\n }\n\n return domProps;\n};\n\nexport default createDOMProps;"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"function ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nimport UIManager from \"../exports/UIManager\";\nimport createDOMProps from \"../modules/createDOMProps\";\nimport { useMemo, useRef } from 'react';\n\nfunction setNativeProps(node, nativeProps, classList, pointerEvents, style, previousStyleRef) {\n if (node != null && nativeProps) {\n var domProps = createDOMProps(null, _objectSpread({\n pointerEvents: pointerEvents\n }, nativeProps, {\n classList: [classList, nativeProps.className],\n style: [style, nativeProps.style]\n }));\n var nextDomStyle = domProps.style;\n\n if (previousStyleRef.current != null) {\n if (domProps.style == null) {\n domProps.style = {};\n }\n\n for (var styleName in previousStyleRef.current) {\n if (domProps.style[styleName] == null) {\n domProps.style[styleName] = '';\n }\n }\n }\n\n previousStyleRef.current = nextDomStyle;\n UIManager.updateView(node, domProps);\n }\n}\n\nexport default function usePlatformMethods(props) {\n var previousStyleRef = useRef(null);\n var classList = props.classList,\n style = props.style,\n pointerEvents = props.pointerEvents;\n return useMemo(function () {\n return function (hostNode) {\n if (hostNode != null) {\n hostNode.measure = function (callback) {\n return UIManager.measure(hostNode, callback);\n };\n\n hostNode.measureLayout = function (relativeToNode, success, failure) {\n return UIManager.measureLayout(hostNode, relativeToNode, failure, success);\n };\n\n hostNode.measureInWindow = function (callback) {\n return UIManager.measureInWindow(hostNode, callback);\n };\n\n hostNode.setNativeProps = function (nativeProps) {\n return setNativeProps(hostNode, nativeProps, classList, pointerEvents, style, previousStyleRef);\n };\n }\n\n return hostNode;\n };\n }, [classList, pointerEvents, style]);\n}","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/hooks/usePlatformMethods.js"],"names":["ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","configurable","writable","UIManager","createDOMProps","useMemo","useRef","setNativeProps","node","nativeProps","classList","pointerEvents","style","previousStyleRef","domProps","className","nextDomStyle","current","styleName","updateView","usePlatformMethods","props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S,CAACsB,aAAV,CAAwBH,QAAxB,EAAkCI,cAAlC,EAAkDE,OAAlD,EAA2DD,OAA3D,CAAP;AACD,SAFD;;AAIAL,QAAAA,QAAQ,CAACO,eAAT,GAA2B,UAAUL,QAAV,EAAoB;AAC7C,iBAAOrB,SAAS,CAAC0B,eAAV,CAA0BP,QAA1B,EAAoCE,QAApC,CAAP;AACD,SAFD;;AAIAF,QAAAA,QAAQ,CAACf,cAAT,GAA0B,UAAUE,WAAV,EAAuB;AAC/C,iBAAOF,cAAc,CAACe,QAAD,EAAWb,WAAX,EAAwBC,SAAxB,EAAmCC,aAAnC,EAAkDC,KAAlD,EAAyDC,gBAAzD,CAArB;AACD,SAFD;AAGD;;AAED,aAAOS,QAAP;AACD,KApBD;AAqBD,GAtBa,EAsBX,CAACZ,SAAD,EAAYC,aAAZ,EAA2BC,KAA3B,CAtBW,CAAd;AAuBD","sourcesContent":["function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport UIManager from '../exports/UIManager';\nimport createDOMProps from '../modules/createDOMProps';\nimport { useMemo, useRef } from 'react';\n\nfunction setNativeProps(node, nativeProps, classList, pointerEvents, style, previousStyleRef) {\n if (node != null && nativeProps) {\n var domProps = createDOMProps(null, _objectSpread({\n pointerEvents: pointerEvents\n }, nativeProps, {\n classList: [classList, nativeProps.className],\n style: [style, nativeProps.style]\n }));\n var nextDomStyle = domProps.style;\n\n if (previousStyleRef.current != null) {\n if (domProps.style == null) {\n domProps.style = {};\n }\n\n for (var styleName in previousStyleRef.current) {\n if (domProps.style[styleName] == null) {\n domProps.style[styleName] = '';\n }\n }\n }\n\n previousStyleRef.current = nextDomStyle;\n UIManager.updateView(node, domProps);\n }\n}\n/**\n * Adds non-standard methods to the hode element. This is temporarily until an\n * API like `ReactNative.measure(hostRef, callback)` is added to React Native.\n */\n\n\nexport default function usePlatformMethods(props) {\n var previousStyleRef = useRef(null);\n var classList = props.classList,\n style = props.style,\n pointerEvents = props.pointerEvents;\n return useMemo(function () {\n return function (hostNode) {\n if (hostNode != null) {\n hostNode.measure = function (callback) {\n return UIManager.measure(hostNode, callback);\n };\n\n hostNode.measureLayout = function (relativeToNode, success, failure) {\n return UIManager.measureLayout(hostNode, relativeToNode, failure, success);\n };\n\n hostNode.measureInWindow = function (callback) {\n return UIManager.measureInWindow(hostNode, callback);\n };\n\n hostNode.setNativeProps = function (nativeProps) {\n return setNativeProps(hostNode, nativeProps, classList, pointerEvents, style, previousStyleRef);\n };\n }\n\n return hostNode;\n };\n }, [classList, pointerEvents, style]);\n}"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';\n\nfunction isScreenReaderEnabled() {\n return new Promise(function (resolve, reject) {\n resolve(true);\n });\n}\n\nvar prefersReducedMotionMedia = canUseDOM ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;\n\nfunction isReduceMotionEnabled() {\n return new Promise(function (resolve, reject) {\n resolve(prefersReducedMotionMedia ? prefersReducedMotionMedia.matches : true);\n });\n}\n\nvar handlers = {};\nvar AccessibilityInfo = {\n isScreenReaderEnabled: isScreenReaderEnabled,\n isReduceMotionEnabled: isReduceMotionEnabled,\n fetch: isScreenReaderEnabled,\n addEventListener: function addEventListener(eventName, handler) {\n if (eventName === 'reduceMotionChanged') {\n if (!prefersReducedMotionMedia) {\n return;\n }\n\n var listener = function listener(event) {\n handler(event.matches);\n };\n\n prefersReducedMotionMedia.addEventListener('change', listener);\n handlers[handler] = listener;\n }\n\n return {\n remove: function remove() {\n return AccessibilityInfo.removeEventListener(eventName, handler);\n }\n };\n },\n setAccessibilityFocus: function setAccessibilityFocus(reactTag) {},\n announceForAccessibility: function announceForAccessibility(announcement) {},\n removeEventListener: function removeEventListener(eventName, handler) {\n if (eventName === 'reduceMotionChanged') {\n var listener = handlers[handler];\n\n if (!listener || !prefersReducedMotionMedia) {\n return;\n }\n\n prefersReducedMotionMedia.removeEventListener('change', listener);\n }\n\n return;\n }\n};\nexport default AccessibilityInfo;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/exports/AccessibilityInfo/index.js"],"names":["canUseDOM","isScreenReaderEnabled","Promise","resolve","reject","prefersReducedMotionMedia","window","matchMedia","isReduceMotionEnabled","matches","handlers","AccessibilityInfo","fetch","addEventListener","eventName","handler","listener","event","remove","removeEventListener","setAccessibilityFocus","reactTag","announceForAccessibility","announcement"],"mappings":"AAQA,SAASA,SAAT,QAA0B,+BAA1B;;AAEA,SAASC,qBAAT,GAAiC;AAC/B,SAAO,IAAIC,OAAJ,CAAY,UAAUC,OAAV,EAAmBC,MAAnB,EAA2B;AAC5CD,IAAAA,OAAO,CAAC,IAAD,CAAP;AACD,GAFM,CAAP;AAGD;;AAED,IAAIE,yBAAyB,GAAGL,SAAS,GAAGM,MAAM,CAACC,UAAP,CAAkB,kCAAlB,CAAH,GAA2D,IAApG;;AAEA,SAASC,qBAAT,GAAiC;AAC/B,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AAGN,QAAQ,CAACK,OAAD,CAAvB;;AAEA,UAAI,CAACC,QAAD,IAAa,CAACX,yBAAlB,EAA6C;AAC3C;AACD;;AAEDA,MAAAA,yBAAyB,CAACc,mBAA1B,CAA8C,QAA9C,EAAwDH,QAAxD;AACD;;AAED;AACD;AAvEqB,CAAxB;AAyEA,eAAeL,iBAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';\n\nfunction isScreenReaderEnabled() {\n return new Promise(function (resolve, reject) {\n resolve(true);\n });\n}\n\nvar prefersReducedMotionMedia = canUseDOM ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;\n\nfunction isReduceMotionEnabled() {\n return new Promise(function (resolve, reject) {\n resolve(prefersReducedMotionMedia ? prefersReducedMotionMedia.matches : true);\n });\n}\n\nvar handlers = {};\nvar AccessibilityInfo = {\n /**\n * Query whether a screen reader is currently enabled.\n *\n * Returns a promise which resolves to a boolean.\n * The result is `true` when a screen reader is enabled and `false` otherwise.\n */\n isScreenReaderEnabled: isScreenReaderEnabled,\n\n /**\n * Query whether the user prefers reduced motion.\n *\n * Returns a promise which resolves to a boolean.\n * The result is `true` when a screen reader is enabled and `false` otherwise.\n */\n isReduceMotionEnabled: isReduceMotionEnabled,\n\n /**\n * Deprecated\n */\n fetch: isScreenReaderEnabled,\n\n /**\n * Add an event handler. Supported events: reduceMotionChanged\n */\n addEventListener: function addEventListener(eventName, handler) {\n if (eventName === 'reduceMotionChanged') {\n if (!prefersReducedMotionMedia) {\n return;\n }\n\n var listener = function listener(event) {\n handler(event.matches);\n };\n\n prefersReducedMotionMedia.addEventListener('change', listener);\n handlers[handler] = listener;\n }\n\n return {\n remove: function remove() {\n return AccessibilityInfo.removeEventListener(eventName, handler);\n }\n };\n },\n\n /**\n * Set accessibility focus to a react component.\n */\n setAccessibilityFocus: function setAccessibilityFocus(reactTag) {},\n\n /**\n * Post a string to be announced by the screen reader.\n */\n announceForAccessibility: function announceForAccessibility(announcement) {},\n\n /**\n * Remove an event handler.\n */\n removeEventListener: function removeEventListener(eventName, handler) {\n if (eventName === 'reduceMotionChanged') {\n var listener = handlers[handler];\n\n if (!listener || !prefersReducedMotionMedia) {\n return;\n }\n\n prefersReducedMotionMedia.removeEventListener('change', listener);\n }\n\n return;\n }\n};\nexport default AccessibilityInfo;"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"export { default as TouchableNativeFeedback } from \"./TouchableNativeFeedback\";\nexport { default as TouchableWithoutFeedback } from \"./TouchableWithoutFeedback\";\nexport { default as TouchableOpacity } from \"./TouchableOpacity\";\nexport { default as TouchableHighlight } from \"./TouchableHighlight\";","map":{"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,IAAhB,uBAAA;AACA,SAASA,OAAO,IAAhB,wBAAA;AACA,SAASA,OAAO,IAAhB,gBAAA;AACA,SAASA,OAAO,IAAhB,kBAAA","sourcesContent":["export { default as TouchableNativeFeedback } from './TouchableNativeFeedback';\nexport { default as TouchableWithoutFeedback } from './TouchableWithoutFeedback';\nexport { default as TouchableOpacity } from './TouchableOpacity';\nexport { default as TouchableHighlight } from './TouchableHighlight';\n"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';\nimport Dimensions from \"../Dimensions\";\nvar DeviceInfo = {\n Dimensions: {\n get windowPhysicalPixels() {\n var _Dimensions$get = Dimensions.get('window'),\n width = _Dimensions$get.width,\n height = _Dimensions$get.height,\n fontScale = _Dimensions$get.fontScale,\n scale = _Dimensions$get.scale;\n\n return {\n width: width * scale,\n height: height * scale,\n scale: scale,\n fontScale: fontScale\n };\n },\n\n get screenPhysicalPixels() {\n var _Dimensions$get2 = Dimensions.get('screen'),\n width = _Dimensions$get2.width,\n height = _Dimensions$get2.height,\n fontScale = _Dimensions$get2.fontScale,\n scale = _Dimensions$get2.scale;\n\n return {\n width: width * scale,\n height: height * scale,\n scale: scale,\n fontScale: fontScale\n };\n }\n\n },\n\n get locale() {\n if (canUseDOM) {\n if (window.navigator.languages) {\n return window.navigator.languages[0];\n } else {\n return window.navigator.language;\n }\n }\n },\n\n get totalMemory() {\n return canUseDOM ? window.navigator.deviceMemory : undefined;\n },\n\n get userAgent() {\n return canUseDOM ? window.navigator.userAgent : '';\n }\n\n};\nexport default DeviceInfo;","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/exports/DeviceInfo/index.js"],"names":["canUseDOM","Dimensions","DeviceInfo","windowPhysicalPixels","_Dimensions$get","get","width","height","fontScale","scale","screenPhysicalPixels","_Dimensions$get2","locale","window","navigator","languages","language","totalMemory","deviceMemory","undefined","userAgent"],"mappings":"AAQA,SAASA,SAAT,QAA0B,+BAA1B;AACA,OAAOC,UAAP;AACA,IAAIC,UAAU,GAAG;AACfD,EAAAA,UAAU,EAAE;AACV,QAAIE,oBAAJ,GAA2B;AACzB,UAAIC,eAAe,GAAGH,UAAU,CAACI,GAAX,CAAe,QAAf,CAAtB;AAAA,UACIC,KAAK,GAAGF,eAAe,CAACE,KAD5B;AAAA,UAEIC,MAAM,GAAGH,eAAe,CAACG,MAF7B;AAAA,UAGIC,SAAS,GAAGJ,eAAe,CAACI,SAHhC;AAAA,UAIIC,KAAK,GAAGL,eAAe,CAACK,KAJ5B;;AAMA,aAAO;AACLH,QAAAA,KAAK,EAAEA,KAAK,GAAGG,KADV;AAELF,QAAAA,MAAM,EAAEA,MAAM,GAAGE,KAFZ;AAGLA,QAAAA,KAAK,EAAEA,KAHF;AAILD,QAAAA,SAAS,EAAEA;AAJN,OAAP;AAMD,KAdS;;AAgBV,QAAIE,oBAAJ,GAA2B;AACzB,UAAIC,gBAAgB,GAAGV,UAAU,CAACI,GAAX,CAAe,QAAf,CAAvB;AAAA,UACIC,KAAK,GAAGK,gBAAgB,CAACL,KAD7B;AAAA,UAEIC,MAAM,GAAGI,gBAAgB,CAACJ,MAF9B;AAAA,UAGIC,SAAS,GAAGG,gBAAgB,CAACH,SAHjC;AAAA,UAIIC,KAAK,GAAGE,gBAAgB,CAACF,KAJ7B;;AAMA,aAAO;AACLH,QAAAA,KAAK,EAAEA,KAAK,GAAGG,KADV;AAELF,QAAAA,MAAM,EAAEA,MAAM,GAAGE,KAFZ;AAGLA,QAAAA,KAAK,EAAEA,KAHF;AAILD,QAAAA,SAAS,EAAEA;AAJN,OAAP;AAMD;;AA7BS,GADG;;AAkCf,MAAII,MAAJ,GAAa;AACX,QAAIZ,SAAJ,EAAe;AACb,UAAIa,MAAM,CAACC,SAAP,CAAiBC,SAArB,EAAgC;AAC9B,eAAOF,MAAM,CAACC,SAAP,CAAiBC,SAAjB,CAA2B,CAA3B,CAAP;AACD,OAFD,MAEO;AACL,eAAOF,MAAM,CAACC,SAAP,CAAiBE,QAAxB;AACD;AACF;AACF,GA1Cc;;AA4Cf,MAAIC,WAAJ,GAAkB;AAChB,WAAOjB,SAAS,GAAGa,MAAM,CAACC,SAAP,CAAiBI,YAApB,GAAmCC,SAAnD;AACD,GA9Cc;;AAgDf,MAAIC,SAAJ,GAAgB;AACd,WAAOpB,SAAS,GAAGa,MAAM,CAACC,SAAP,CAAiBM,SAApB,GAAgC,EAAhD;AACD;;AAlDc,CAAjB;AAqDA,eAAelB,UAAf","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';\nimport Dimensions from '../Dimensions';\nvar DeviceInfo = {\n Dimensions: {\n get windowPhysicalPixels() {\n var _Dimensions$get = Dimensions.get('window'),\n width = _Dimensions$get.width,\n height = _Dimensions$get.height,\n fontScale = _Dimensions$get.fontScale,\n scale = _Dimensions$get.scale;\n\n return {\n width: width * scale,\n height: height * scale,\n scale: scale,\n fontScale: fontScale\n };\n },\n\n get screenPhysicalPixels() {\n var _Dimensions$get2 = Dimensions.get('screen'),\n width = _Dimensions$get2.width,\n height = _Dimensions$get2.height,\n fontScale = _Dimensions$get2.fontScale,\n scale = _Dimensions$get2.scale;\n\n return {\n width: width * scale,\n height: height * scale,\n scale: scale,\n fontScale: fontScale\n };\n }\n\n },\n\n get locale() {\n if (canUseDOM) {\n if (window.navigator.languages) {\n return window.navigator.languages[0];\n } else {\n return window.navigator.language;\n }\n }\n },\n\n get totalMemory() {\n return canUseDOM ? window.navigator.deviceMemory : undefined;\n },\n\n get userAgent() {\n return canUseDOM ? window.navigator.userAgent : '';\n }\n\n};\nexport default DeviceInfo;"]},"metadata":{},"sourceType":"module"}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';\nexport default function createCSSStyleSheet(id) {\n if (canUseDOM) {\n var element = document.getElementById(id);\n\n if (element != null) {\n return element.sheet;\n } else {\n var _element = document.createElement('style');\n\n _element.setAttribute('id', id);\n\n var head = document.head;\n\n if (head) {\n head.insertBefore(_element, head.firstChild);\n }\n\n return _element.sheet;\n }\n } else {\n return null;\n }\n}","map":{"version":3,"sources":["/Users/jake/git/react-native-candlestick-chart/example/node_modules/react-native-web/dist/exports/StyleSheet/createCSSStyleSheet.js"],"names":["canUseDOM","createCSSStyleSheet","id","element","document","getElementById","sheet","_element","createElement","setAttribute","head","insertBefore","firstChild"],"mappings":"AAQA,SAASA,SAAT,QAA0B,+BAA1B;AAEA,eAAe,SAASC,mBAAT,CAA6BC,EAA7B,EAAiC;AAC9C,MAAIF,SAAJ,EAAe;AACb,QAAIG,OAAO,GAAGC,QAAQ,CAACC,cAAT,CAAwBH,EAAxB,CAAd;;AAEA,QAAIC,OAAO,IAAI,IAAf,EAAqB;AAEnB,aAAOA,OAAO,CAACG,KAAf;AACD,KAHD,MAGO;AACL,UAAIC,QAAQ,GAAGH,QAAQ,CAACI,aAAT,CAAuB,OAAvB,CAAf;;AAEAD,MAAAA,QAAQ,CAACE,YAAT,CAAsB,IAAtB,EAA4BP,EAA5B;;AAEA,UAAIQ,IAAI,GAAGN,QAAQ,CAACM,IAApB;;AAEA,UAAIA,IAAJ,EAAU;AACRA,QAAAA,IAAI,CAACC,YAAL,CAAkBJ,QAAlB,EAA4BG,IAAI,CAACE,UAAjC;AACD;;AAED,aAAOL,QAAQ,CAACD,KAAhB;AACD;AACF,GAnBD,MAmBO;AACL,WAAO,IAAP;AACD;AACF","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; // $FlowFixMe: HTMLStyleElement is incorrectly typed - https://github.com/facebook/flow/issues/2696\n\nexport default function createCSSStyleSheet(id) {\n if (canUseDOM) {\n var element = document.getElementById(id);\n\n if (element != null) {\n // $FlowFixMe: HTMLElement is incorrectly typed\n return element.sheet;\n } else {\n var _element = document.createElement('style');\n\n _element.setAttribute('id', id);\n\n var head = document.head;\n\n if (head) {\n head.insertBefore(_element, head.firstChild);\n }\n\n return _element.sheet;\n }\n } else {\n return null;\n }\n}"]},"metadata":{},"sourceType":"module"}