blue-chestnut-solar-expert 0.0.69 → 0.0.71

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 (331) hide show
  1. package/dist/{collection/config.js → stencil-library/config-CWfV1nKn.js} +10 -4
  2. package/dist/stencil-library/config-CWfV1nKn.js.map +1 -0
  3. package/dist/stencil-library/constants-hboFofU4.js +1522 -0
  4. package/dist/stencil-library/constants-hboFofU4.js.map +1 -0
  5. package/dist/stencil-library/decoder-DafVsihn.js +39 -0
  6. package/dist/stencil-library/decoder-DafVsihn.js.map +1 -0
  7. package/dist/stencil-library/deflate-BOWpTFAE.js +21 -0
  8. package/dist/{esm/deflate-DHgPf9CO.js.map → stencil-library/deflate-BOWpTFAE.js.map} +1 -1
  9. package/dist/stencil-library/eraser-icon.entry.esm.js.map +1 -0
  10. package/dist/{components/p-CL74Q4VR.js → stencil-library/eraser-icon.entry.js} +9 -27
  11. package/dist/stencil-library/eraser-icon.entry.js.map +1 -0
  12. package/dist/stencil-library/house-icon.entry.esm.js.map +1 -0
  13. package/dist/{components/p-D8w3bTPO.js → stencil-library/house-icon.entry.js} +9 -27
  14. package/dist/stencil-library/house-icon.entry.js.map +1 -0
  15. package/dist/{components/loading-widget.js → stencil-library/icon-selector.entry.esm.js.map} +1 -38
  16. package/dist/stencil-library/icon-selector.entry.js +47 -0
  17. package/dist/stencil-library/icon-selector.entry.js.map +1 -0
  18. package/dist/stencil-library/index-CChkgM3J.js +414 -0
  19. package/dist/stencil-library/index-CChkgM3J.js.map +1 -0
  20. package/dist/stencil-library/index-ICfDNUMe.js +4172 -0
  21. package/dist/stencil-library/index-ICfDNUMe.js.map +1 -0
  22. package/dist/stencil-library/index.esm.js +13 -1
  23. package/dist/stencil-library/index.esm.js.map +1 -1
  24. package/dist/{esm/jpeg-CJLm1GkA.js → stencil-library/jpeg-DWgO3UMT.js} +11 -3
  25. package/dist/stencil-library/jpeg-DWgO3UMT.js.map +1 -0
  26. package/dist/{components/p-DLWzgdrw.js → stencil-library/lerc-BQV9jxbc.js} +27 -1981
  27. package/dist/stencil-library/lerc-BQV9jxbc.js.map +1 -0
  28. package/dist/{esm → stencil-library}/loading-widget.entry.js +3 -3
  29. package/dist/{components/p-P28NBglk.js.map → stencil-library/loading-widget.entry.js.map} +1 -1
  30. package/dist/{esm/lzw-DaOzWJUD.js → stencil-library/lzw-fGokKIJR.js} +10 -4
  31. package/dist/stencil-library/lzw-fGokKIJR.js.map +1 -0
  32. package/dist/stencil-library/map-draw-DHsfxmE8.js +25567 -0
  33. package/dist/stencil-library/map-draw-DHsfxmE8.js.map +1 -0
  34. package/dist/stencil-library/map-draw.entry.esm.js.map +1 -0
  35. package/dist/stencil-library/map-draw.entry.js +12 -0
  36. package/dist/stencil-library/map-draw.entry.js.map +1 -0
  37. package/dist/stencil-library/map-selector.entry.esm.js.map +1 -0
  38. package/dist/{components/p-C5QieOat.js → stencil-library/map-selector.entry.js} +164 -96
  39. package/dist/stencil-library/map-selector.entry.js.map +1 -0
  40. package/dist/{components/loading-widget.js.map → stencil-library/marker-icon.entry.esm.js.map} +1 -1
  41. package/dist/{components/p-Umz6nJIv.js → stencil-library/marker-icon.entry.js} +9 -27
  42. package/dist/stencil-library/marker-icon.entry.js.map +1 -0
  43. package/dist/stencil-library/move-icon.entry.esm.js.map +1 -0
  44. package/dist/{components/p-FdEV2qPo.js → stencil-library/move-icon.entry.js} +9 -27
  45. package/dist/stencil-library/move-icon.entry.js.map +1 -0
  46. package/dist/{components/p-DTXeHbuh.js.map → stencil-library/octagon-minus-icon.entry.esm.js.map} +1 -1
  47. package/dist/{components/p-BJLO76Yi.js → stencil-library/octagon-minus-icon.entry.js} +9 -27
  48. package/dist/stencil-library/octagon-minus-icon.entry.js.map +1 -0
  49. package/dist/{components/p-ByX6QP-E.js → stencil-library/packbits-vWMrdouf.js} +9 -3
  50. package/dist/stencil-library/packbits-vWMrdouf.js.map +1 -0
  51. package/dist/stencil-library/pako.esm-CPorU236.js +6881 -0
  52. package/dist/{esm/pako.esm-B5WTRCh8.js.map → stencil-library/pako.esm-CPorU236.js.map} +1 -1
  53. package/dist/{components/p-Ddk3b30j.js.map → stencil-library/polygon-buttons.entry.esm.js.map} +1 -1
  54. package/dist/{cjs/loading-widget.cjs.entry.js → stencil-library/polygon-buttons.entry.js} +16 -10
  55. package/dist/stencil-library/polygon-buttons.entry.js.map +1 -0
  56. package/dist/{cjs/loading-widget.cjs.entry.js.map → stencil-library/polygon-information.entry.esm.js.map} +1 -1
  57. package/dist/{components/p-OxUYjaAL.js → stencil-library/polygon-information.entry.js} +13 -70
  58. package/dist/stencil-library/polygon-information.entry.js.map +1 -0
  59. package/dist/stencil-library/raw-BZExdvHz.js +20 -0
  60. package/dist/stencil-library/raw-BZExdvHz.js.map +1 -0
  61. package/dist/stencil-library/search-icon.entry.esm.js.map +1 -0
  62. package/dist/{components/p-DBwr8xSB.js → stencil-library/search-icon.entry.js} +9 -27
  63. package/dist/stencil-library/{p-9b4e52c3.entry.js → search-icon.entry.js.map} +1 -2
  64. package/dist/stencil-library/settings-icon.entry.esm.js.map +1 -0
  65. package/dist/{components/p-DTXeHbuh.js → stencil-library/settings-icon.entry.js} +9 -27
  66. package/dist/stencil-library/settings-icon.entry.js.map +1 -0
  67. package/dist/stencil-library/settings-modal.entry.esm.js.map +1 -0
  68. package/dist/{components/p-Ddk3b30j.js → stencil-library/settings-modal.entry.js} +20 -38
  69. package/dist/stencil-library/settings-modal.entry.js.map +1 -0
  70. package/dist/stencil-library/solar-expert.entry.esm.js.map +1 -0
  71. package/dist/{components/solar-expert.js → stencil-library/solar-expert.entry.js} +16 -151
  72. package/dist/stencil-library/solar-expert.entry.js.map +1 -0
  73. package/dist/stencil-library/solar-system-form.entry.esm.js.map +1 -0
  74. package/dist/{components/p-C3ZXE525.js → stencil-library/solar-system-form.entry.js} +183 -549
  75. package/dist/stencil-library/solar-system-form.entry.js.map +1 -0
  76. package/dist/stencil-library/stencil-library.esm.js +52 -1
  77. package/dist/stencil-library/stencil-library.esm.js.map +1 -1
  78. package/dist/{components/p-DfzSejIb.js → stencil-library/store-CcqrFuBK.js} +3 -3
  79. package/dist/stencil-library/store-CcqrFuBK.js.map +1 -0
  80. package/dist/{components/p-D2AHNjbG.js.map → stencil-library/toast-notification.entry.esm.js.map} +1 -1
  81. package/dist/{components/p-P28NBglk.js → stencil-library/toast-notification.entry.js} +9 -30
  82. package/dist/stencil-library/toast-notification.entry.js.map +1 -0
  83. package/dist/stencil-library/tool-box.entry.esm.js.map +1 -0
  84. package/dist/{components/p-26DHwbCE.js → stencil-library/tool-box.entry.js} +27 -35
  85. package/dist/stencil-library/tool-box.entry.js.map +1 -0
  86. package/dist/{collection/utils/render/tools.js → stencil-library/tools-BNYKV5H5.js} +14 -8
  87. package/dist/stencil-library/tools-BNYKV5H5.js.map +1 -0
  88. package/dist/stencil-library/tutorial-component.entry.esm.js.map +1 -0
  89. package/dist/{components/p-D2AHNjbG.js → stencil-library/tutorial-component.entry.js} +13 -38
  90. package/dist/stencil-library/tutorial-component.entry.js.map +1 -0
  91. package/dist/stencil-library/undo-icon.entry.esm.js.map +1 -0
  92. package/dist/{components/p-waOPoUcA.js → stencil-library/undo-icon.entry.js} +9 -27
  93. package/dist/stencil-library/undo-icon.entry.js.map +1 -0
  94. package/dist/{collection/utils/utils.js → stencil-library/utils-BCUZxI9u.js} +9 -3
  95. package/dist/stencil-library/utils-BCUZxI9u.js.map +1 -0
  96. package/dist/{esm/webimage-BiHardhv.js → stencil-library/webimage-DzcyYZ7I.js} +9 -3
  97. package/dist/{esm/webimage-BiHardhv.js.map → stencil-library/webimage-DzcyYZ7I.js.map} +1 -1
  98. package/dist/types/components/map-draw/map-draw.d.ts +1 -0
  99. package/dist/types/components/solar-expert/solar-expert.d.ts +1 -0
  100. package/dist/types/components/solar-system-form/solar-system-form.d.ts +10 -6
  101. package/dist/types/components.d.ts +4 -0
  102. package/package.json +1 -1
  103. package/dist/cjs/app-globals-I24yU8do.js +0 -10
  104. package/dist/cjs/app-globals-I24yU8do.js.map +0 -1
  105. package/dist/cjs/basedecoder-CQuzfSgz.js +0 -116
  106. package/dist/cjs/basedecoder-CQuzfSgz.js.map +0 -1
  107. package/dist/cjs/deflate-AzGzQSW2.js +0 -17
  108. package/dist/cjs/deflate-AzGzQSW2.js.map +0 -1
  109. package/dist/cjs/eraser-icon_19.cjs.entry.js +0 -31
  110. package/dist/cjs/eraser-icon_19.cjs.entry.js.map +0 -1
  111. package/dist/cjs/index-HgRXF6kp.js +0 -1470
  112. package/dist/cjs/index-HgRXF6kp.js.map +0 -1
  113. package/dist/cjs/index.cjs.js +0 -7
  114. package/dist/cjs/index.cjs.js.map +0 -1
  115. package/dist/cjs/jpeg-Bx3bTm32.js +0 -904
  116. package/dist/cjs/jpeg-Bx3bTm32.js.map +0 -1
  117. package/dist/cjs/lerc-Bdx5y-yw.js +0 -4427
  118. package/dist/cjs/lerc-Bdx5y-yw.js.map +0 -1
  119. package/dist/cjs/loader.cjs.js +0 -18
  120. package/dist/cjs/loader.cjs.js.map +0 -1
  121. package/dist/cjs/loading-widget.entry.cjs.js.map +0 -1
  122. package/dist/cjs/lzw-BmFug486.js +0 -140
  123. package/dist/cjs/lzw-BmFug486.js.map +0 -1
  124. package/dist/cjs/packbits-CYx9fB0v.js +0 -35
  125. package/dist/cjs/packbits-CYx9fB0v.js.map +0 -1
  126. package/dist/cjs/pako.esm-0mKI6Jik.js +0 -3243
  127. package/dist/cjs/pako.esm-0mKI6Jik.js.map +0 -1
  128. package/dist/cjs/raw-DC82yoyr.js +0 -16
  129. package/dist/cjs/raw-DC82yoyr.js.map +0 -1
  130. package/dist/cjs/stencil-library.cjs.js +0 -30
  131. package/dist/cjs/stencil-library.cjs.js.map +0 -1
  132. package/dist/cjs/webimage-Dc0t2xAB.js +0 -49
  133. package/dist/cjs/webimage-Dc0t2xAB.js.map +0 -1
  134. package/dist/collection/collection-manifest.json +0 -31
  135. package/dist/collection/components/icons/eraser.js +0 -64
  136. package/dist/collection/components/icons/eraser.js.map +0 -1
  137. package/dist/collection/components/icons/house.js +0 -64
  138. package/dist/collection/components/icons/house.js.map +0 -1
  139. package/dist/collection/components/icons/icon.js +0 -108
  140. package/dist/collection/components/icons/icon.js.map +0 -1
  141. package/dist/collection/components/icons/marker.js +0 -64
  142. package/dist/collection/components/icons/marker.js.map +0 -1
  143. package/dist/collection/components/icons/move.js +0 -64
  144. package/dist/collection/components/icons/move.js.map +0 -1
  145. package/dist/collection/components/icons/octagonMinus.js +0 -64
  146. package/dist/collection/components/icons/octagonMinus.js.map +0 -1
  147. package/dist/collection/components/icons/search.js +0 -64
  148. package/dist/collection/components/icons/search.js.map +0 -1
  149. package/dist/collection/components/icons/settings.js +0 -64
  150. package/dist/collection/components/icons/settings.js.map +0 -1
  151. package/dist/collection/components/icons/undo.js +0 -64
  152. package/dist/collection/components/icons/undo.js.map +0 -1
  153. package/dist/collection/components/map-draw/map-draw.js +0 -824
  154. package/dist/collection/components/map-draw/map-draw.js.map +0 -1
  155. package/dist/collection/components/map-draw/map-selector.js +0 -246
  156. package/dist/collection/components/map-draw/map-selector.js.map +0 -1
  157. package/dist/collection/components/map-draw/polygon-buttons.js +0 -86
  158. package/dist/collection/components/map-draw/polygon-buttons.js.map +0 -1
  159. package/dist/collection/components/map-draw/polygon-information.js +0 -211
  160. package/dist/collection/components/map-draw/polygon-information.js.map +0 -1
  161. package/dist/collection/components/map-draw/tool-box.js +0 -108
  162. package/dist/collection/components/map-draw/tool-box.js.map +0 -1
  163. package/dist/collection/components/map-draw/tutorial-component.js +0 -219
  164. package/dist/collection/components/map-draw/tutorial-component.js.map +0 -1
  165. package/dist/collection/components/settings/settings.js +0 -127
  166. package/dist/collection/components/settings/settings.js.map +0 -1
  167. package/dist/collection/components/solar-expert/solar-expert.js +0 -241
  168. package/dist/collection/components/solar-expert/solar-expert.js.map +0 -1
  169. package/dist/collection/components/solar-system-form/solar-system-form.js +0 -617
  170. package/dist/collection/components/solar-system-form/solar-system-form.js.map +0 -1
  171. package/dist/collection/components/widgets/loading-widget.js +0 -18
  172. package/dist/collection/components/widgets/loading-widget.js.map +0 -1
  173. package/dist/collection/components/widgets/toast-notification.js +0 -133
  174. package/dist/collection/components/widgets/toast-notification.js.map +0 -1
  175. package/dist/collection/config.js.map +0 -1
  176. package/dist/collection/constants.js +0 -90
  177. package/dist/collection/constants.js.map +0 -1
  178. package/dist/collection/index.js +0 -2
  179. package/dist/collection/index.js.map +0 -1
  180. package/dist/collection/output.css +0 -1126
  181. package/dist/collection/store.js +0 -43
  182. package/dist/collection/store.js.map +0 -1
  183. package/dist/collection/types/lang.js +0 -2
  184. package/dist/collection/types/lang.js.map +0 -1
  185. package/dist/collection/types/shapes.js +0 -2
  186. package/dist/collection/types/shapes.js.map +0 -1
  187. package/dist/collection/utils/api.js +0 -94
  188. package/dist/collection/utils/api.js.map +0 -1
  189. package/dist/collection/utils/images.js +0 -2
  190. package/dist/collection/utils/images.js.map +0 -1
  191. package/dist/collection/utils/lang/english.js +0 -164
  192. package/dist/collection/utils/lang/english.js.map +0 -1
  193. package/dist/collection/utils/lang/general.js +0 -30
  194. package/dist/collection/utils/lang/general.js.map +0 -1
  195. package/dist/collection/utils/lang/german.js +0 -164
  196. package/dist/collection/utils/lang/german.js.map +0 -1
  197. package/dist/collection/utils/lang/spanish.js +0 -164
  198. package/dist/collection/utils/lang/spanish.js.map +0 -1
  199. package/dist/collection/utils/render/tools.js.map +0 -1
  200. package/dist/collection/utils/solar.js +0 -135
  201. package/dist/collection/utils/solar.js.map +0 -1
  202. package/dist/collection/utils/theme.js +0 -97
  203. package/dist/collection/utils/theme.js.map +0 -1
  204. package/dist/collection/utils/utils.js.map +0 -1
  205. package/dist/components/eraser-icon.js +0 -11
  206. package/dist/components/eraser-icon.js.map +0 -1
  207. package/dist/components/house-icon.js +0 -11
  208. package/dist/components/house-icon.js.map +0 -1
  209. package/dist/components/icon-selector.js +0 -11
  210. package/dist/components/icon-selector.js.map +0 -1
  211. package/dist/components/index.js +0 -1269
  212. package/dist/components/index.js.map +0 -1
  213. package/dist/components/map-draw.js +0 -11
  214. package/dist/components/map-draw.js.map +0 -1
  215. package/dist/components/map-selector.js +0 -11
  216. package/dist/components/map-selector.js.map +0 -1
  217. package/dist/components/marker-icon.js +0 -11
  218. package/dist/components/marker-icon.js.map +0 -1
  219. package/dist/components/move-icon.js +0 -11
  220. package/dist/components/move-icon.js.map +0 -1
  221. package/dist/components/octagon-minus-icon.js +0 -11
  222. package/dist/components/octagon-minus-icon.js.map +0 -1
  223. package/dist/components/p-26DHwbCE.js.map +0 -1
  224. package/dist/components/p-B54Ul0nf.js +0 -15
  225. package/dist/components/p-B54Ul0nf.js.map +0 -1
  226. package/dist/components/p-B5WTRCh8.js +0 -3241
  227. package/dist/components/p-B5WTRCh8.js.map +0 -1
  228. package/dist/components/p-BGoSj_DR.js +0 -902
  229. package/dist/components/p-BGoSj_DR.js.map +0 -1
  230. package/dist/components/p-BJLO76Yi.js.map +0 -1
  231. package/dist/components/p-BOe-Z8rz.js +0 -16323
  232. package/dist/components/p-BOe-Z8rz.js.map +0 -1
  233. package/dist/components/p-Bduzzygj.js +0 -623
  234. package/dist/components/p-Bduzzygj.js.map +0 -1
  235. package/dist/components/p-ByX6QP-E.js.map +0 -1
  236. package/dist/components/p-C3ZXE525.js.map +0 -1
  237. package/dist/components/p-C5QieOat.js.map +0 -1
  238. package/dist/components/p-CL74Q4VR.js.map +0 -1
  239. package/dist/components/p-Cgchl6bA.js +0 -47
  240. package/dist/components/p-Cgchl6bA.js.map +0 -1
  241. package/dist/components/p-Cx7fffWb.js +0 -163
  242. package/dist/components/p-Cx7fffWb.js.map +0 -1
  243. package/dist/components/p-D8w3bTPO.js.map +0 -1
  244. package/dist/components/p-DBwr8xSB.js.map +0 -1
  245. package/dist/components/p-DLWzgdrw.js.map +0 -1
  246. package/dist/components/p-DfzSejIb.js.map +0 -1
  247. package/dist/components/p-FdEV2qPo.js.map +0 -1
  248. package/dist/components/p-OxUYjaAL.js.map +0 -1
  249. package/dist/components/p-Umz6nJIv.js.map +0 -1
  250. package/dist/components/p-WmcSqXD8.js +0 -14
  251. package/dist/components/p-WmcSqXD8.js.map +0 -1
  252. package/dist/components/p-j-vOrhhh.js +0 -114
  253. package/dist/components/p-j-vOrhhh.js.map +0 -1
  254. package/dist/components/p-q8auDIJ2.js +0 -138
  255. package/dist/components/p-q8auDIJ2.js.map +0 -1
  256. package/dist/components/p-waOPoUcA.js.map +0 -1
  257. package/dist/components/polygon-buttons.js +0 -11
  258. package/dist/components/polygon-buttons.js.map +0 -1
  259. package/dist/components/polygon-information.js +0 -11
  260. package/dist/components/polygon-information.js.map +0 -1
  261. package/dist/components/search-icon.js +0 -11
  262. package/dist/components/search-icon.js.map +0 -1
  263. package/dist/components/settings-icon.js +0 -11
  264. package/dist/components/settings-icon.js.map +0 -1
  265. package/dist/components/settings-modal.js +0 -11
  266. package/dist/components/settings-modal.js.map +0 -1
  267. package/dist/components/solar-expert.js.map +0 -1
  268. package/dist/components/solar-system-form.js +0 -11
  269. package/dist/components/solar-system-form.js.map +0 -1
  270. package/dist/components/toast-notification.js +0 -11
  271. package/dist/components/toast-notification.js.map +0 -1
  272. package/dist/components/tool-box.js +0 -11
  273. package/dist/components/tool-box.js.map +0 -1
  274. package/dist/components/tutorial-component.js +0 -11
  275. package/dist/components/tutorial-component.js.map +0 -1
  276. package/dist/components/undo-icon.js +0 -11
  277. package/dist/components/undo-icon.js.map +0 -1
  278. package/dist/esm/basedecoder-j-vOrhhh.js +0 -114
  279. package/dist/esm/basedecoder-j-vOrhhh.js.map +0 -1
  280. package/dist/esm/deflate-DHgPf9CO.js +0 -15
  281. package/dist/esm/eraser-icon_19.entry.js +0 -7
  282. package/dist/esm/eraser-icon_19.entry.js.map +0 -1
  283. package/dist/esm/index-C2JRBB5c.js +0 -1458
  284. package/dist/esm/index-C2JRBB5c.js.map +0 -1
  285. package/dist/esm/index.js +0 -5
  286. package/dist/esm/index.js.map +0 -1
  287. package/dist/esm/jpeg-CJLm1GkA.js.map +0 -1
  288. package/dist/esm/lerc-DF5Lrv5A.js +0 -4424
  289. package/dist/esm/lerc-DF5Lrv5A.js.map +0 -1
  290. package/dist/esm/loader.js +0 -16
  291. package/dist/esm/loader.js.map +0 -1
  292. package/dist/esm/loading-widget.entry.js.map +0 -1
  293. package/dist/esm/lzw-DaOzWJUD.js.map +0 -1
  294. package/dist/esm/packbits-CZPyx9kx.js +0 -33
  295. package/dist/esm/packbits-CZPyx9kx.js.map +0 -1
  296. package/dist/esm/pako.esm-B5WTRCh8.js +0 -3241
  297. package/dist/esm/raw-pqeeWc2_.js +0 -14
  298. package/dist/esm/raw-pqeeWc2_.js.map +0 -1
  299. package/dist/esm/stencil-library.js +0 -26
  300. package/dist/esm/stencil-library.js.map +0 -1
  301. package/dist/index.cjs.js +0 -1
  302. package/dist/index.js +0 -1
  303. package/dist/stencil-library/p-9b4e52c3.entry.js.map +0 -1
  304. package/dist/stencil-library/p-B54Ul0nf.js +0 -2
  305. package/dist/stencil-library/p-B54Ul0nf.js.map +0 -1
  306. package/dist/stencil-library/p-B5WTRCh8.js +0 -2
  307. package/dist/stencil-library/p-B5WTRCh8.js.map +0 -1
  308. package/dist/stencil-library/p-BGoSj_DR.js +0 -2
  309. package/dist/stencil-library/p-BGoSj_DR.js.map +0 -1
  310. package/dist/stencil-library/p-ByX6QP-E.js +0 -2
  311. package/dist/stencil-library/p-ByX6QP-E.js.map +0 -1
  312. package/dist/stencil-library/p-C2JRBB5c.js +0 -3
  313. package/dist/stencil-library/p-C2JRBB5c.js.map +0 -1
  314. package/dist/stencil-library/p-CX8V3eiN.js +0 -2
  315. package/dist/stencil-library/p-CX8V3eiN.js.map +0 -1
  316. package/dist/stencil-library/p-Cgchl6bA.js +0 -2
  317. package/dist/stencil-library/p-Cgchl6bA.js.map +0 -1
  318. package/dist/stencil-library/p-CymYGBJH.js +0 -2
  319. package/dist/stencil-library/p-CymYGBJH.js.map +0 -1
  320. package/dist/stencil-library/p-DHgjDQwz.js +0 -10
  321. package/dist/stencil-library/p-DHgjDQwz.js.map +0 -1
  322. package/dist/stencil-library/p-WmcSqXD8.js +0 -2
  323. package/dist/stencil-library/p-WmcSqXD8.js.map +0 -1
  324. package/dist/stencil-library/p-ba64c5e4.entry.js +0 -2
  325. package/dist/stencil-library/p-ba64c5e4.entry.js.map +0 -1
  326. package/dist/stencil-library/p-j-vOrhhh.js +0 -2
  327. package/dist/stencil-library/p-j-vOrhhh.js.map +0 -1
  328. package/dist/stencil-library/p-q8auDIJ2.js +0 -2
  329. package/dist/stencil-library/p-q8auDIJ2.js.map +0 -1
  330. /package/dist/{esm → stencil-library}/app-globals-CX8V3eiN.js +0 -0
  331. /package/dist/{esm → stencil-library}/app-globals-CX8V3eiN.js.map +0 -0
@@ -1,135 +0,0 @@
1
- // import { fromArrayBuffer, TypedArray } from "../geotiff";
2
- import { fromArrayBuffer } from "geotiff";
3
- import * as geokeysToProj4 from "geotiff-geokeys-to-proj4";
4
- import proj4 from "proj4";
5
- /**
6
- * Downloads the pixel values for a Data Layer URL from the Solar API.
7
- *
8
- * @param {string} url URL from the Data Layers response.
9
- * @param {string} apiKey Google Cloud API key.
10
- * @return {Promise<GeoTiff>} Pixel values with shape and lat/lon bounds.
11
- */
12
- export async function downloadGeoTIFF(url, apiKey) {
13
- // Include your Google Cloud API key in the Data Layers URL.
14
- const solarUrl = url.includes("solar.googleapis.com")
15
- ? url + `&key=${apiKey}`
16
- : url;
17
- const response = await fetch(solarUrl);
18
- if (response.status != 200) {
19
- const error = await response.json();
20
- console.error(`downloadGeoTIFF failed: ${url}\n`, error);
21
- throw error;
22
- }
23
- // Get the GeoTIFF rasters, which are the pixel values for each band.
24
- const arrayBuffer = await response.arrayBuffer();
25
- const tiff = await fromArrayBuffer(arrayBuffer);
26
- const image = await tiff.getImage();
27
- const rasters = await image.readRasters();
28
- // Reproject the bounding box into lat/lon coordinates.
29
- const geoKeys = image.getGeoKeys();
30
- const projObj = geokeysToProj4.toProj4(geoKeys);
31
- const projection = proj4(projObj.proj4, "WGS84");
32
- const box = image.getBoundingBox();
33
- const sw = projection.forward({
34
- x: box[0] * projObj.coordinatesConversionParameters.x,
35
- y: box[1] * projObj.coordinatesConversionParameters.y,
36
- });
37
- const ne = projection.forward({
38
- x: box[2] * projObj.coordinatesConversionParameters.x,
39
- y: box[3] * projObj.coordinatesConversionParameters.y,
40
- });
41
- return {
42
- // Width and height of the data layer image in pixels.
43
- // Used to know the row and column since Javascript
44
- // stores the values as flat arrays.
45
- width: rasters.width,
46
- height: rasters.height,
47
- // Each raster reprents the pixel values of each band.
48
- // We convert them from `geotiff.TypedArray`s into plain
49
- // Javascript arrays to make them easier to process.
50
- rasters: [...Array(rasters.length).keys()].map((i) => Array.from(rasters[i])),
51
- // The bounding box as a lat/lon rectangle.
52
- bounds: {
53
- north: ne.y,
54
- south: sw.y,
55
- east: ne.x,
56
- west: sw.x,
57
- },
58
- };
59
- }
60
- // [END solar_api_download_geotiff]
61
- export async function getBuildingImages(latitude, longitude, apiKey, radiusMeters = 15) {
62
- if (latitude === 0 || longitude === 0) {
63
- return null;
64
- }
65
- try {
66
- const args = {
67
- "location.latitude": latitude.toFixed(5),
68
- "location.longitude": longitude.toFixed(5),
69
- radius_meters: (radiusMeters + 2).toString(),
70
- required_quality: "LOW",
71
- };
72
- const params = new URLSearchParams({
73
- ...args,
74
- key: apiKey,
75
- });
76
- const response = await fetch(`https://solar.googleapis.com/v1/dataLayers:get?${params}`);
77
- if (!response.ok) {
78
- throw new Error(`HTTP error! status: ${response.status}`);
79
- }
80
- const parsedResponse = await response.json();
81
- const rgbTiff = await downloadGeoTIFF(parsedResponse.rgbUrl, apiKey);
82
- return rgbTiff;
83
- }
84
- catch (error) {
85
- console.error("Error fetching building images:", error);
86
- return null;
87
- }
88
- }
89
- export async function fetchSolarData(latitude, longitude, apiKey) {
90
- if (latitude === 0 || longitude === 0) {
91
- return null;
92
- }
93
- try {
94
- const args = {
95
- "location.latitude": latitude.toFixed(5),
96
- "location.longitude": longitude.toFixed(5),
97
- };
98
- const params = new URLSearchParams({
99
- ...args,
100
- key: apiKey,
101
- });
102
- const response = await fetch(`https://solar.googleapis.com/v1/buildingInsights:findClosest?${params}`);
103
- if (!response.ok) {
104
- const errorText = await response.text();
105
- throw new Error(`HTTP error! status: ${response.status}, body: ${errorText}`);
106
- }
107
- const contentType = response.headers.get("content-type");
108
- if (!contentType || !contentType.includes("application/json")) {
109
- const text = await response.text();
110
- console.error("Unexpected content type:", contentType, "Response:", text);
111
- return null;
112
- }
113
- const rawData = await response.json();
114
- return rawData;
115
- }
116
- catch (error) {
117
- console.error("Error fetching solar data:", error);
118
- if (error instanceof TypeError &&
119
- error.message === "Failed to fetch") {
120
- throw new Error("Unable to connect to the solar data API.");
121
- }
122
- throw error;
123
- }
124
- }
125
- export function getPixelInMeters(rgbTiff) {
126
- const latDiff = rgbTiff.bounds.north - rgbTiff.bounds.south;
127
- // const lngDiff = rgbTiff.bounds.east - rgbTiff.bounds.west;
128
- // const pixelWidth = rgbTiff.width;
129
- const pixelHeight = rgbTiff.height;
130
- const pixelInMeters = latDiff * 111320 / pixelHeight;
131
- // const latAvg = (rgbTiff.bounds.north + rgbTiff.bounds.south) / 2;
132
- // const pixelInMetersLng = lngDiff * 111320 * Math.cos(latAvg * Math.PI / 180) / pixelWidth;
133
- return pixelInMeters;
134
- }
135
- //# sourceMappingURL=solar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solar.js","sourceRoot":"","sources":["../../src/utils/solar.ts"],"names":[],"mappings":"AAMA,4DAA4D;AAC5D,OAAO,EAAE,eAAe,EAAc,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,cAAc,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAW,EAAE,MAAc;IAC/D,4DAA4D;IAC5D,MAAM,QAA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\n} from \"harmonia-types\";\r\n\r\n// import { fromArrayBuffer, TypedArray } from \"../geotiff\";\r\nimport { fromArrayBuffer, TypedArray } from \"geotiff\";\r\nimport * as geokeysToProj4 from \"geotiff-geokeys-to-proj4\";\r\nimport proj4 from \"proj4\";\r\n\r\n/**\r\n * Downloads the pixel values for a Data Layer URL from the Solar API.\r\n *\r\n * @param {string} url URL from the Data Layers response.\r\n * @param {string} apiKey Google Cloud API key.\r\n * @return {Promise<GeoTiff>} Pixel values with shape and lat/lon bounds.\r\n */\r\nexport async function downloadGeoTIFF(url: string, apiKey: string) { //}: Promise<GeoTiff> {\r\n // Include your Google Cloud API key in the Data Layers URL.\r\n const solarUrl = url.includes(\"solar.googleapis.com\")\r\n ? url + `&key=${apiKey}`\r\n : url;\r\n const response = await fetch(solarUrl);\r\n if (response.status != 200) {\r\n const error = await response.json();\r\n console.error(`downloadGeoTIFF failed: ${url}\\n`, error);\r\n throw error;\r\n }\r\n\r\n // Get the GeoTIFF rasters, which are the pixel values for each band.\r\n const arrayBuffer = await response.arrayBuffer();\r\n const tiff = await fromArrayBuffer(arrayBuffer);\r\n const image = await tiff.getImage();\r\n const rasters = await image.readRasters();\r\n\r\n // Reproject the bounding box into lat/lon coordinates.\r\n const geoKeys = image.getGeoKeys();\r\n const projObj = geokeysToProj4.toProj4(geoKeys);\r\n const projection = proj4(projObj.proj4, \"WGS84\");\r\n const box = image.getBoundingBox();\r\n const sw = projection.forward({\r\n x: box[0] * projObj.coordinatesConversionParameters.x,\r\n y: box[1] * projObj.coordinatesConversionParameters.y,\r\n });\r\n const ne = projection.forward({\r\n x: box[2] * projObj.coordinatesConversionParameters.x,\r\n y: box[3] * projObj.coordinatesConversionParameters.y,\r\n });\r\n\r\n return {\r\n // Width and height of the data layer image in pixels.\r\n // Used to know the row and column since Javascript\r\n // stores the values as flat arrays.\r\n width: rasters.width,\r\n height: rasters.height,\r\n // Each raster reprents the pixel values of each band.\r\n // We convert them from `geotiff.TypedArray`s into plain\r\n // Javascript arrays to make them easier to process.\r\n rasters: [...Array(rasters.length).keys()].map((i) =>\r\n Array.from(rasters[i] as TypedArray)\r\n ),\r\n // The bounding box as a lat/lon rectangle.\r\n bounds: {\r\n north: ne.y,\r\n south: sw.y,\r\n east: ne.x,\r\n west: sw.x,\r\n },\r\n };\r\n}\r\n// [END solar_api_download_geotiff]\r\n\r\nexport async function getBuildingImages(\r\n latitude: number,\r\n longitude: number,\r\n apiKey: string,\r\n radiusMeters: number = 15,\r\n) {\r\n if (latitude === 0 || longitude === 0) {\r\n return null;\r\n }\r\n\r\n try {\r\n const args = {\r\n \"location.latitude\": latitude.toFixed(5),\r\n \"location.longitude\": longitude.toFixed(5),\r\n radius_meters: (radiusMeters + 2).toString(),\r\n required_quality: \"LOW\",\r\n };\r\n const params = new URLSearchParams({\r\n ...args,\r\n key: apiKey,\r\n });\r\n const response = await fetch(\r\n `https://solar.googleapis.com/v1/dataLayers:get?${params}`,\r\n );\r\n\r\n if (!response.ok) {\r\n throw new Error(`HTTP error! status: ${response.status}`);\r\n }\r\n const parsedResponse: DataLayersResponse = await response.json();\r\n\r\n const rgbTiff = await downloadGeoTIFF(\r\n parsedResponse.rgbUrl,\r\n apiKey,\r\n );\r\n\r\n return rgbTiff;\r\n } catch (error) {\r\n console.error(\"Error fetching building images:\", error);\r\n return null;\r\n }\r\n}\r\n\r\nexport async function fetchSolarData(\r\n latitude: number,\r\n longitude: number,\r\n apiKey: string,\r\n) {\r\n if (latitude === 0 || longitude === 0) {\r\n return null;\r\n }\r\n try {\r\n const args = {\r\n \"location.latitude\": latitude.toFixed(5),\r\n \"location.longitude\": longitude.toFixed(5),\r\n };\r\n const params = new URLSearchParams({\r\n ...args,\r\n key: apiKey,\r\n });\r\n const response = await fetch(\r\n `https://solar.googleapis.com/v1/buildingInsights:findClosest?${params}`,\r\n );\r\n\r\n if (!response.ok) {\r\n const errorText = await response.text();\r\n throw new Error(\r\n `HTTP error! status: ${response.status}, body: ${errorText}`,\r\n );\r\n }\r\n\r\n const contentType = response.headers.get(\"content-type\");\r\n if (!contentType || !contentType.includes(\"application/json\")) {\r\n const text = await response.text();\r\n console.error(\r\n \"Unexpected content type:\",\r\n contentType,\r\n \"Response:\",\r\n text,\r\n );\r\n return null;\r\n }\r\n\r\n const rawData: BuildingInsightsResponse = await response.json();\r\n return rawData;\r\n } catch (error) {\r\n console.error(\"Error fetching solar data:\", error);\r\n if (\r\n error instanceof TypeError &&\r\n error.message === \"Failed to fetch\"\r\n ) {\r\n throw new Error(\"Unable to connect to the solar data API.\");\r\n }\r\n throw error;\r\n }\r\n}\r\n\r\nexport function getPixelInMeters(rgbTiff: GeoTiff): number {\r\n const latDiff = rgbTiff.bounds.north - rgbTiff.bounds.south;\r\n // const lngDiff = rgbTiff.bounds.east - rgbTiff.bounds.west;\r\n // const pixelWidth = rgbTiff.width;\r\n const pixelHeight = rgbTiff.height;\r\n const pixelInMeters = latDiff * 111320 / pixelHeight;\r\n // const latAvg = (rgbTiff.bounds.north + rgbTiff.bounds.south) / 2;\r\n // const pixelInMetersLng = lngDiff * 111320 * Math.cos(latAvg * Math.PI / 180) / pixelWidth;\r\n return pixelInMeters;\r\n}\r\n"]}
@@ -1,97 +0,0 @@
1
- /**
2
- * Applies a color scheme theme globally to the document root.
3
- * Since all components use global CSS (shadow: false), this will automatically
4
- * update the theme for all components.
5
- *
6
- * @param colorScheme - The color scheme object containing theme colors
7
- */
8
- export function applyThemeGlobally(colorScheme) {
9
- applyThemeToElement(document.documentElement, colorScheme);
10
- }
11
- /**
12
- * Applies a color scheme theme to a specific element (useful for Shadow DOM).
13
- *
14
- * @param element - The element to apply the theme to (e.g., Shadow DOM host)
15
- * @param colorScheme - The color scheme object containing theme colors
16
- */
17
- export function applyThemeToElement(element, colorScheme) {
18
- // Set CSS custom properties on the specified element
19
- if (colorScheme.primary) {
20
- element.style.setProperty('--color-primary', colorScheme.primary);
21
- }
22
- if (colorScheme.primaryForeground) {
23
- element.style.setProperty('--color-primary-foreground', colorScheme.primaryForeground);
24
- }
25
- if (colorScheme.secondary) {
26
- element.style.setProperty('--color-secondary', colorScheme.secondary);
27
- }
28
- if (colorScheme.secondaryForeground) {
29
- element.style.setProperty('--color-secondary-foreground', colorScheme.secondaryForeground);
30
- }
31
- if (colorScheme.tertiary) {
32
- element.style.setProperty('--color-tertiary', colorScheme.tertiary);
33
- }
34
- if (colorScheme.tertiaryForeground) {
35
- element.style.setProperty('--color-tertiary-foreground', colorScheme.tertiaryForeground);
36
- }
37
- if (colorScheme.muted) {
38
- element.style.setProperty('--color-muted', colorScheme.muted);
39
- }
40
- if (colorScheme.mutedForeground) {
41
- element.style.setProperty('--color-muted-foreground', colorScheme.mutedForeground);
42
- }
43
- if (colorScheme.error) {
44
- element.style.setProperty('--color-error', colorScheme.error);
45
- }
46
- if (colorScheme.errorForeground) {
47
- element.style.setProperty('--color-error-foreground', colorScheme.errorForeground);
48
- }
49
- // Surface colors
50
- if (colorScheme.surface) {
51
- element.style.setProperty('--color-surface', colorScheme.surface);
52
- }
53
- if (colorScheme.surfaceHover) {
54
- element.style.setProperty('--color-surface-hover', colorScheme.surfaceHover);
55
- }
56
- if (colorScheme.surfaceActive) {
57
- element.style.setProperty('--color-surface-active', colorScheme.surfaceActive);
58
- }
59
- // Text colors
60
- if (colorScheme.textMuted) {
61
- element.style.setProperty('--color-text-muted', colorScheme.textMuted);
62
- }
63
- if (colorScheme.textSecondary) {
64
- element.style.setProperty('--color-text-secondary', colorScheme.textSecondary);
65
- }
66
- if (colorScheme.textPlaceholder) {
67
- element.style.setProperty('--color-text-placeholder', colorScheme.textPlaceholder);
68
- }
69
- // Border colors
70
- if (colorScheme.border) {
71
- element.style.setProperty('--color-border', colorScheme.border);
72
- }
73
- if (colorScheme.borderLight) {
74
- element.style.setProperty('--color-border-light', colorScheme.borderLight);
75
- }
76
- // Status colors
77
- if (colorScheme.success) {
78
- element.style.setProperty('--color-success', colorScheme.success);
79
- }
80
- if (colorScheme.info) {
81
- element.style.setProperty('--color-info', colorScheme.info);
82
- }
83
- // Interactive colors
84
- if (colorScheme.hover) {
85
- element.style.setProperty('--color-hover', colorScheme.hover);
86
- }
87
- if (colorScheme.hoverDark) {
88
- element.style.setProperty('--color-hover-dark', colorScheme.hoverDark);
89
- }
90
- if (colorScheme.overlay) {
91
- element.style.setProperty('--color-overlay', colorScheme.overlay);
92
- }
93
- if (colorScheme.tooltip) {
94
- element.style.setProperty('--color-tooltip', colorScheme.tooltip);
95
- }
96
- }
97
- //# sourceMappingURL=theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,WAAiC;IAChE,mBAAmB,CAAC,QAAQ,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAoB,EAAE,WAAiC;IACvF,qDAAqD;IACrD,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;IACD,IAAI,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAChC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,4BAA4B,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC3F,CAAC;IACD,IAAI,WAAW,CAAC,SAAS,EAAE,CAAC;QACxB,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,mBAAmB,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;IACD,IAAI,WAAW,CAAC,mBAAmB,EAAE,CAAC;QAClC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,8BAA8B,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC/F,CAAC;IACD,IAAI,WAAW,CAAC,QAAQ,EAAE,C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O,CAAC,KAAK,CAAC,WAAW,CAAC,oBAAoB,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAC3E,CAAC;IACD,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;IACD,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;AACL,CAAC","sourcesContent":["import { ColorScheme } from \"../config\";\r\n\r\n/**\r\n * Applies a color scheme theme globally to the document root.\r\n * Since all components use global CSS (shadow: false), this will automatically \r\n * update the theme for all components.\r\n * \r\n * @param colorScheme - The color scheme object containing theme colors\r\n */\r\nexport function applyThemeGlobally(colorScheme: Partial<ColorScheme>): void {\r\n applyThemeToElement(document.documentElement, colorScheme);\r\n}\r\n\r\n/**\r\n * Applies a color scheme theme to a specific element (useful for Shadow DOM).\r\n * \r\n * @param element - The element to apply the theme to (e.g., Shadow DOM host)\r\n * @param colorScheme - The color scheme object containing theme colors\r\n */\r\nexport function applyThemeToElement(element: HTMLElement, colorScheme: Partial<ColorScheme>): void {\r\n // Set CSS custom properties on the specified element\r\n if (colorScheme.primary) {\r\n element.style.setProperty('--color-primary', colorScheme.primary);\r\n }\r\n if (colorScheme.primaryForeground) {\r\n element.style.setProperty('--color-primary-foreground', colorScheme.primaryForeground);\r\n }\r\n if (colorScheme.secondary) {\r\n element.style.setProperty('--color-secondary', colorScheme.secondary);\r\n }\r\n if (colorScheme.secondaryForeground) {\r\n element.style.setProperty('--color-secondary-foreground', colorScheme.secondaryForeground);\r\n }\r\n if (colorScheme.tertiary) {\r\n element.style.setProperty('--color-tertiary', colorScheme.tertiary);\r\n }\r\n if (colorScheme.tertiaryForeground) {\r\n element.style.setProperty('--color-tertiary-foreground', colorScheme.tertiaryForeground);\r\n }\r\n if (colorScheme.muted) {\r\n element.style.setProperty('--color-muted', colorScheme.muted);\r\n }\r\n if (colorScheme.mutedForeground) { \r\n element.style.setProperty('--color-muted-foreground', colorScheme.mutedForeground);\r\n }\r\n if (colorScheme.error) {\r\n element.style.setProperty('--color-error', colorScheme.error);\r\n }\r\n if (colorScheme.errorForeground) {\r\n element.style.setProperty('--color-error-foreground', colorScheme.errorForeground);\r\n }\r\n \r\n // Surface colors\r\n if (colorScheme.surface) {\r\n element.style.setProperty('--color-surface', colorScheme.surface);\r\n }\r\n if (colorScheme.surfaceHover) {\r\n element.style.setProperty('--color-surface-hover', colorScheme.surfaceHover);\r\n }\r\n if (colorScheme.surfaceActive) {\r\n element.style.setProperty('--color-surface-active', colorScheme.surfaceActive);\r\n }\r\n \r\n // Text colors\r\n if (colorScheme.textMuted) {\r\n element.style.setProperty('--color-text-muted', colorScheme.textMuted);\r\n }\r\n if (colorScheme.textSecondary) {\r\n element.style.setProperty('--color-text-secondary', colorScheme.textSecondary);\r\n }\r\n if (colorScheme.textPlaceholder) {\r\n element.style.setProperty('--color-text-placeholder', colorScheme.textPlaceholder);\r\n }\r\n \r\n // Border colors\r\n if (colorScheme.border) {\r\n element.style.setProperty('--color-border', colorScheme.border);\r\n }\r\n if (colorScheme.borderLight) {\r\n element.style.setProperty('--color-border-light', colorScheme.borderLight);\r\n }\r\n \r\n // Status colors\r\n if (colorScheme.success) {\r\n element.style.setProperty('--color-success', colorScheme.success);\r\n }\r\n if (colorScheme.info) {\r\n element.style.setProperty('--color-info', colorScheme.info);\r\n }\r\n \r\n // Interactive colors\r\n if (colorScheme.hover) {\r\n element.style.setProperty('--color-hover', colorScheme.hover);\r\n }\r\n if (colorScheme.hoverDark) {\r\n element.style.setProperty('--color-hover-dark', colorScheme.hoverDark);\r\n }\r\n if (colorScheme.overlay) {\r\n element.style.setProperty('--color-overlay', colorScheme.overlay);\r\n }\r\n if (colorScheme.tooltip) {\r\n element.style.setProperty('--color-tooltip', colorScheme.tooltip);\r\n }\r\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAC,OAAe;IAC/C,sCAAsC;IACtC,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,GAAG,IAAI;QAAE,OAAO,OAAO,CAAC;IACvD,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,GAAG,IAAI;QAAE,OAAO,WAAW,CAAC;IAC1D,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,GAAG,KAAK;QAAE,OAAO,MAAM,CAAC;IACtD,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,GAAG,KAAK;QAAE,OAAO,WAAW,CAAC;IAC5D,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,GAAG,KAAK;QAAE,OAAO,OAAO,CAAC;IACxD,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,GAAG,KAAK;QAAE,OAAO,WAAW,CAAC;IAC5D,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,GAAG,KAAK;QAAE,OAAO,MAAM,CAAC;IACvD,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB;IAC/C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;IAC5D,6DAA6D;IAC7D,oCAAoC;IACpC,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IACnC,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,CAAC;IACrD,oEAAoE;IACpE,6FAA6F;IAC7F,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import { GeoTiff } from \"harmonia-types\";\r\n\r\nexport function azimuthToCardinal(azimuth: number): string {\r\n // Convert angle to cardinal direction\r\n if (azimuth >= 337.5 || azimuth < 22.5) return \"North\";\r\n if (azimuth >= 22.5 && azimuth < 67.5) return \"Northeast\";\r\n if (azimuth >= 67.5 && azimuth < 112.5) return \"East\";\r\n if (azimuth >= 112.5 && azimuth < 157.5) return \"Southeast\";\r\n if (azimuth >= 157.5 && azimuth < 202.5) return \"South\";\r\n if (azimuth >= 202.5 && azimuth < 247.5) return \"Southwest\";\r\n if (azimuth >= 247.5 && azimuth < 292.5) return \"West\";\r\n return \"Northwest\";\r\n}\r\n\r\nexport function getPixelInMeters(rgbTiff: GeoTiff): number {\r\n const latDiff = rgbTiff.bounds.north - rgbTiff.bounds.south;\r\n // const lngDiff = rgbTiff.bounds.east - rgbTiff.bounds.west;\r\n // const pixelWidth = rgbTiff.width;\r\n const pixelHeight = rgbTiff.height;\r\n const pixelInMeters = latDiff * 111320 / pixelHeight;\r\n // const latAvg = (rgbTiff.bounds.north + rgbTiff.bounds.south) / 2;\r\n // const pixelInMetersLng = lngDiff * 111320 * Math.cos(latAvg * Math.PI / 180) / pixelWidth;\r\n return pixelInMeters;\r\n}\r\n"]}
@@ -1,11 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { E as EraserIcon$1, d as defineCustomElement$1 } from './p-CL74Q4VR.js';
4
-
5
- const EraserIcon = EraserIcon$1;
6
- const defineCustomElement = defineCustomElement$1;
7
-
8
- export { EraserIcon, defineCustomElement };
9
- //# sourceMappingURL=eraser-icon.js.map
10
-
11
- //# sourceMappingURL=eraser-icon.js.map
@@ -1 +0,0 @@
1
- {"file":"eraser-icon.js","mappings":";;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,11 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { H as HouseIcon$1, d as defineCustomElement$1 } from './p-D8w3bTPO.js';
4
-
5
- const HouseIcon = HouseIcon$1;
6
- const defineCustomElement = defineCustomElement$1;
7
-
8
- export { HouseIcon, defineCustomElement };
9
- //# sourceMappingURL=house-icon.js.map
10
-
11
- //# sourceMappingURL=house-icon.js.map
@@ -1 +0,0 @@
1
- {"file":"house-icon.js","mappings":";;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,11 +0,0 @@
1
-
2
- if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { I as Icon, d as defineCustomElement$1 } from './p-C5QieOat.js';
4
-
5
- const IconSelector = Icon;
6
- const defineCustomElement = defineCustomElement$1;
7
-
8
- export { IconSelector, defineCustomElement };
9
- //# sourceMappingURL=icon-selector.js.map
10
-
11
- //# sourceMappingURL=icon-selector.js.map
@@ -1 +0,0 @@
1
- {"file":"icon-selector.js","mappings":";;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}