@holoviz/panel 0.14.4 → 1.0.0-a.2

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 (364) hide show
  1. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.iife.min.js +217 -0
  2. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.js +28286 -0
  3. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.min.js +217 -0
  4. package/dist/bundled/bootstrap/css/bootstrap.css +688 -0
  5. package/dist/bundled/bootstrap5/css/bootstrap-grid.css +4226 -0
  6. package/dist/bundled/bootstrap5/css/bootstrap-grid.min.css +6 -0
  7. package/dist/bundled/bootstrap5/css/bootstrap-grid.rtl.css +4225 -0
  8. package/dist/bundled/bootstrap5/css/bootstrap-grid.rtl.min.css +6 -0
  9. package/dist/bundled/bootstrap5/css/bootstrap-reboot.css +591 -0
  10. package/dist/bundled/bootstrap5/css/bootstrap-reboot.min.css +6 -0
  11. package/dist/bundled/bootstrap5/css/bootstrap-reboot.rtl.css +588 -0
  12. package/dist/bundled/bootstrap5/css/bootstrap-reboot.rtl.min.css +6 -0
  13. package/dist/bundled/bootstrap5/css/bootstrap-utilities.css +5099 -0
  14. package/dist/bundled/bootstrap5/css/bootstrap-utilities.min.css +6 -0
  15. package/dist/bundled/bootstrap5/css/bootstrap-utilities.rtl.css +5090 -0
  16. package/dist/bundled/bootstrap5/css/bootstrap-utilities.rtl.min.css +6 -0
  17. package/dist/bundled/bootstrap5/css/bootstrap.css +11783 -0
  18. package/dist/bundled/bootstrap5/css/bootstrap.min.css +6 -0
  19. package/dist/bundled/bootstrap5/css/bootstrap.rtl.css +11747 -0
  20. package/dist/bundled/bootstrap5/css/bootstrap.rtl.min.css +6 -0
  21. package/dist/bundled/bootstrap5/js/bootstrap.bundle.js +6295 -0
  22. package/dist/bundled/bootstrap5/js/bootstrap.bundle.js.map +1 -0
  23. package/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +7 -0
  24. package/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js.map +1 -0
  25. package/dist/bundled/bootstrap5/js/bootstrap.esm.js +4422 -0
  26. package/dist/bundled/bootstrap5/js/bootstrap.esm.js.map +1 -0
  27. package/dist/bundled/bootstrap5/js/bootstrap.esm.min.js +7 -0
  28. package/dist/bundled/bootstrap5/js/bootstrap.esm.min.js.map +1 -0
  29. package/dist/bundled/bootstrap5/js/bootstrap.js +4468 -0
  30. package/dist/bundled/bootstrap5/js/bootstrap.js.map +1 -0
  31. package/dist/bundled/bootstrap5/js/bootstrap.min.js +7 -0
  32. package/dist/bundled/bootstrap5/js/bootstrap.min.js.map +1 -0
  33. package/dist/bundled/bootstrapdarktheme/bootstrap_dark.css +170 -0
  34. package/dist/bundled/bootstrapdefaulttheme/bootstrap_default.css +120 -0
  35. package/dist/bundled/bootstraptemplate/bootstrap.css +119 -77
  36. package/dist/bundled/darktheme/dark.css +33 -106
  37. package/dist/bundled/datatabulator/luxon/build/global/luxon.min.js.map +1 -1
  38. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator.min.css +2 -0
  39. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_bootstrap3.min.css +2 -0
  40. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_bootstrap4.min.css +2 -0
  41. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_bulma.min.css +2 -0
  42. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_fast.min.css +1 -0
  43. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_materialize.min.css +2 -0
  44. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_midnight.min.css +2 -0
  45. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_modern.min.css +2 -0
  46. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_semanticui.min.css +2 -0
  47. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_simple.min.css +2 -0
  48. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/css/tabulator_site.min.css +2 -0
  49. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/js/tabulator.js +26077 -0
  50. package/dist/bundled/datatabulator/tabulator-tables@5.4.4/dist/js/tabulator.js.map +1 -0
  51. package/dist/bundled/defaulttheme/default.css +33 -2
  52. package/dist/bundled/fast/css/fast.css +919 -0
  53. package/dist/bundled/fast/js/fast_design.js +87 -0
  54. package/dist/bundled/fastbasetemplate/fast.css +335 -0
  55. package/dist/bundled/fastgridtemplate/fast_grid_template.css +256 -232
  56. package/dist/bundled/golden-layout@1.5.9/dist/css/goldenlayout-base.css +1 -0
  57. package/dist/bundled/golden-layout@1.5.9/dist/css/theme/goldenlayout-dark-theme.css +1 -0
  58. package/dist/bundled/goldentemplate/golden.css +2 -22
  59. package/dist/bundled/material/css/material.css +443 -0
  60. package/dist/bundled/materialtemplate/dark.css +2 -20
  61. package/dist/bundled/materialtemplate/default.css +2 -17
  62. package/dist/bundled/materialtemplate/material.css +119 -114
  63. package/dist/bundled/materialthememixin/material_variables.css +19 -0
  64. package/dist/bundled/native/css/native.css +34 -0
  65. package/dist/bundled/notificationarea/panel/1.0.0-a.2/dist/bundled/font-awesome/css/all.min.css +2 -0
  66. package/dist/bundled/panel/1.0.0-a.2/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
  67. package/dist/bundled/panel/1.0.0-a.2/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
  68. package/dist/bundled/panel/1.0.0-a.2/dist/bundled/font-awesome/css/all.min.css +2 -0
  69. package/dist/bundled/panel/1.0.0-a.2/dist/bundled/jquery/jquery.slim.min.js +2 -0
  70. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/fonts.css +1 -0
  71. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/material-dark.css +1 -0
  72. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/material.css +1 -0
  73. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/monokai.css +1 -0
  74. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/solarized-dark.css +1 -0
  75. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/solarized.css +1 -0
  76. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/themes.css +1 -0
  77. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/vaporwave.css +1 -0
  78. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/variables.css +0 -0
  79. package/dist/bundled/plotlyplot/panel/1.0.0-a.2/dist/bundled/jquery/jquery.slim.min.js +2 -0
  80. package/dist/bundled/react-dom@17/umd/react-dom.production.min.js +245 -0
  81. package/dist/bundled/react@17/umd/react.production.min.js +31 -0
  82. package/dist/bundled/reacttemplate/react.css +0 -12
  83. package/dist/bundled/vanillatemplate/vanilla.css +129 -134
  84. package/dist/css/alerts.css +64 -64
  85. package/dist/css/booleanstatus.css +48 -0
  86. package/dist/css/card.css +55 -39
  87. package/dist/css/dataframe.css +7 -2
  88. package/dist/css/debugger.css +16 -10
  89. package/dist/css/divider.css +10 -0
  90. package/dist/css/editable_slider.css +22 -0
  91. package/dist/css/katex.css +3 -0
  92. package/dist/css/loading.css +5 -6
  93. package/dist/css/loadingspinner.css +119 -0
  94. package/dist/css/markdown.css +2 -1
  95. package/dist/css/perspective-datatable.css +504 -0
  96. package/dist/css/plotly.css +246 -0
  97. package/dist/css/progress.css +209 -0
  98. package/dist/css/widgetbox.css +9 -0
  99. package/dist/css/widgets.css +0 -305
  100. package/dist/dts/styles/alerts.css.d.ts +3 -0
  101. package/dist/dts/styles/booleanstatus.css.d.ts +3 -0
  102. package/dist/dts/styles/card.css.d.ts +3 -0
  103. package/dist/dts/styles/dataframe.css.d.ts +3 -0
  104. package/dist/dts/styles/debugger.css.d.ts +3 -0
  105. package/dist/dts/styles/divider.css.d.ts +4 -0
  106. package/dist/dts/styles/editable_slider.css.d.ts +8 -0
  107. package/dist/dts/styles/json.css.d.ts +3 -0
  108. package/dist/dts/styles/katex.css.d.ts +3 -0
  109. package/dist/dts/styles/loading.css.d.ts +3 -0
  110. package/dist/dts/styles/loadingspinner.css.d.ts +3 -0
  111. package/dist/dts/styles/markdown.css.d.ts +3 -0
  112. package/dist/dts/styles/perspective-datatable.css.d.ts +3 -0
  113. package/dist/dts/styles/plotly.css.d.ts +3 -0
  114. package/dist/dts/styles/progress.css.d.ts +3 -0
  115. package/dist/dts/styles/widgetbox.css.d.ts +3 -0
  116. package/dist/dts/styles/widgets.css.d.ts +4 -0
  117. package/dist/lib/models/ace.d.ts +3 -5
  118. package/dist/lib/models/ace.js +24 -23
  119. package/dist/lib/models/ace.js.map +1 -1
  120. package/dist/lib/models/audio.d.ts +2 -4
  121. package/dist/lib/models/audio.js +18 -18
  122. package/dist/lib/models/audio.js.map +1 -1
  123. package/dist/lib/models/card.d.ts +3 -3
  124. package/dist/lib/models/card.js +54 -63
  125. package/dist/lib/models/card.js.map +1 -1
  126. package/dist/lib/models/comm_manager.d.ts +2 -2
  127. package/dist/lib/models/comm_manager.js +20 -19
  128. package/dist/lib/models/comm_manager.js.map +1 -1
  129. package/dist/lib/models/data.js +1 -1
  130. package/dist/lib/models/data.js.map +1 -1
  131. package/dist/lib/models/datetime_picker.d.ts +8 -7
  132. package/dist/lib/models/datetime_picker.js +130 -36
  133. package/dist/lib/models/datetime_picker.js.map +1 -1
  134. package/dist/lib/models/deckgl.d.ts +2 -4
  135. package/dist/lib/models/deckgl.js +24 -25
  136. package/dist/lib/models/deckgl.js.map +1 -1
  137. package/dist/lib/models/echarts.d.ts +3 -2
  138. package/dist/lib/models/echarts.js +22 -12
  139. package/dist/lib/models/echarts.js.map +1 -1
  140. package/dist/lib/models/file_download.d.ts +2 -2
  141. package/dist/lib/models/file_download.js +20 -19
  142. package/dist/lib/models/file_download.js.map +1 -1
  143. package/dist/lib/models/html.d.ts +4 -4
  144. package/dist/lib/models/html.js +23 -17
  145. package/dist/lib/models/html.js.map +1 -1
  146. package/dist/lib/models/index.d.ts +1 -2
  147. package/dist/lib/models/index.js +1 -2
  148. package/dist/lib/models/index.js.map +1 -1
  149. package/dist/lib/models/ipywidget.d.ts +2 -6
  150. package/dist/lib/models/ipywidget.js +14 -24
  151. package/dist/lib/models/ipywidget.js.map +1 -1
  152. package/dist/lib/models/json.d.ts +1 -1
  153. package/dist/lib/models/json.js +14 -12
  154. package/dist/lib/models/json.js.map +1 -1
  155. package/dist/lib/models/jsoneditor.d.ts +8 -7
  156. package/dist/lib/models/jsoneditor.js +30 -19
  157. package/dist/lib/models/jsoneditor.js.map +1 -1
  158. package/dist/lib/models/katex.d.ts +0 -1
  159. package/dist/lib/models/katex.js +7 -6
  160. package/dist/lib/models/katex.js.map +1 -1
  161. package/dist/lib/models/layout.d.ts +25 -22
  162. package/dist/lib/models/layout.js +75 -81
  163. package/dist/lib/models/layout.js.map +1 -1
  164. package/dist/lib/models/location.d.ts +0 -1
  165. package/dist/lib/models/location.js +15 -14
  166. package/dist/lib/models/location.js.map +1 -1
  167. package/dist/lib/models/mathjax.d.ts +0 -3
  168. package/dist/lib/models/mathjax.js +6 -16
  169. package/dist/lib/models/mathjax.js.map +1 -1
  170. package/dist/lib/models/pdf.d.ts +24 -0
  171. package/dist/lib/models/pdf.js +62 -0
  172. package/dist/lib/models/pdf.js.map +1 -0
  173. package/dist/lib/models/perspective.d.ts +5 -10
  174. package/dist/lib/models/perspective.js +75 -87
  175. package/dist/lib/models/perspective.js.map +1 -1
  176. package/dist/lib/models/player.d.ts +0 -1
  177. package/dist/lib/models/player.js +18 -17
  178. package/dist/lib/models/player.js.map +1 -1
  179. package/dist/lib/models/plotly.d.ts +3 -7
  180. package/dist/lib/models/plotly.js +60 -67
  181. package/dist/lib/models/plotly.js.map +1 -1
  182. package/dist/lib/models/progress.d.ts +4 -7
  183. package/dist/lib/models/progress.js +28 -32
  184. package/dist/lib/models/progress.js.map +1 -1
  185. package/dist/lib/models/quill.d.ts +3 -6
  186. package/dist/lib/models/quill.js +25 -24
  187. package/dist/lib/models/quill.js.map +1 -1
  188. package/dist/lib/models/reactive_html.d.ts +6 -12
  189. package/dist/lib/models/reactive_html.js +45 -121
  190. package/dist/lib/models/reactive_html.js.map +1 -1
  191. package/dist/lib/models/singleselect.d.ts +0 -1
  192. package/dist/lib/models/singleselect.js +11 -10
  193. package/dist/lib/models/singleselect.js.map +1 -1
  194. package/dist/lib/models/speech_to_text.d.ts +1 -2
  195. package/dist/lib/models/speech_to_text.js +27 -26
  196. package/dist/lib/models/speech_to_text.js.map +1 -1
  197. package/dist/lib/models/state.d.ts +0 -2
  198. package/dist/lib/models/state.js +12 -13
  199. package/dist/lib/models/state.js.map +1 -1
  200. package/dist/lib/models/tabulator.d.ts +9 -16
  201. package/dist/lib/models/tabulator.js +111 -196
  202. package/dist/lib/models/tabulator.js.map +1 -1
  203. package/dist/lib/models/terminal.d.ts +5 -8
  204. package/dist/lib/models/terminal.js +23 -27
  205. package/dist/lib/models/terminal.js.map +1 -1
  206. package/dist/lib/models/text_to_speech.d.ts +1 -2
  207. package/dist/lib/models/text_to_speech.js +16 -15
  208. package/dist/lib/models/text_to_speech.js.map +1 -1
  209. package/dist/lib/models/trend.d.ts +1 -2
  210. package/dist/lib/models/trend.js +24 -23
  211. package/dist/lib/models/trend.js.map +1 -1
  212. package/dist/lib/models/vega.d.ts +6 -7
  213. package/dist/lib/models/vega.js +34 -37
  214. package/dist/lib/models/vega.js.map +1 -1
  215. package/dist/lib/models/video.d.ts +2 -4
  216. package/dist/lib/models/video.js +18 -18
  217. package/dist/lib/models/video.js.map +1 -1
  218. package/dist/lib/models/videostream.d.ts +2 -4
  219. package/dist/lib/models/videostream.js +19 -19
  220. package/dist/lib/models/videostream.js.map +1 -1
  221. package/dist/lib/models/vtk/util.d.ts +4 -4
  222. package/dist/lib/models/vtk/vtkaxes.d.ts +1 -2
  223. package/dist/lib/models/vtk/vtkaxes.js +15 -14
  224. package/dist/lib/models/vtk/vtkaxes.js.map +1 -1
  225. package/dist/lib/models/vtk/vtkjs.d.ts +0 -1
  226. package/dist/lib/models/vtk/vtkjs.js +9 -8
  227. package/dist/lib/models/vtk/vtkjs.js.map +1 -1
  228. package/dist/lib/models/vtk/vtklayout.d.ts +2 -5
  229. package/dist/lib/models/vtk/vtklayout.js +24 -30
  230. package/dist/lib/models/vtk/vtklayout.js.map +1 -1
  231. package/dist/lib/models/vtk/vtksynchronized.d.ts +0 -1
  232. package/dist/lib/models/vtk/vtksynchronized.js +17 -16
  233. package/dist/lib/models/vtk/vtksynchronized.js.map +1 -1
  234. package/dist/lib/models/vtk/vtkvolume.d.ts +0 -1
  235. package/dist/lib/models/vtk/vtkvolume.js +27 -26
  236. package/dist/lib/models/vtk/vtkvolume.js.map +1 -1
  237. package/dist/lib/styles/alerts.css.d.ts +1 -2
  238. package/dist/lib/styles/alerts.css.js +1 -139
  239. package/dist/lib/styles/booleanstatus.css.d.ts +1 -0
  240. package/dist/lib/styles/booleanstatus.css.js +1 -0
  241. package/dist/lib/styles/card.css.d.ts +1 -2
  242. package/dist/lib/styles/card.css.js +1 -43
  243. package/dist/lib/styles/dataframe.css.d.ts +1 -2
  244. package/dist/lib/styles/dataframe.css.js +1 -44
  245. package/dist/lib/styles/debugger.css.d.ts +1 -2
  246. package/dist/lib/styles/debugger.css.js +1 -68
  247. package/dist/lib/styles/divider.css.d.ts +2 -0
  248. package/dist/lib/styles/divider.css.js +2 -0
  249. package/dist/lib/styles/editable_slider.css.d.ts +6 -0
  250. package/dist/lib/styles/editable_slider.css.js +6 -0
  251. package/dist/lib/styles/json.css.d.ts +1 -2
  252. package/dist/lib/styles/json.css.js +1 -197
  253. package/dist/lib/styles/katex.css.d.ts +1 -0
  254. package/dist/lib/styles/katex.css.js +1 -0
  255. package/dist/lib/styles/loading.css.d.ts +1 -2
  256. package/dist/lib/styles/loading.css.js +1 -31
  257. package/dist/lib/styles/loadingspinner.css.d.ts +1 -0
  258. package/dist/lib/styles/loadingspinner.css.js +17 -0
  259. package/dist/lib/styles/markdown.css.d.ts +1 -2
  260. package/dist/lib/styles/markdown.css.js +1 -91
  261. package/dist/lib/styles/perspective-datatable.css.d.ts +1 -0
  262. package/dist/lib/styles/perspective-datatable.css.js +1 -0
  263. package/dist/lib/styles/plotly.css.d.ts +1 -0
  264. package/dist/lib/styles/plotly.css.js +1 -0
  265. package/dist/lib/styles/progress.css.d.ts +1 -0
  266. package/dist/lib/styles/progress.css.js +22 -0
  267. package/dist/lib/styles/widgetbox.css.d.ts +1 -0
  268. package/dist/lib/styles/widgetbox.css.js +1 -0
  269. package/dist/lib/styles/widgets.css.d.ts +2 -2
  270. package/dist/lib/styles/widgets.css.js +2 -320
  271. package/dist/panel.js +4648 -6067
  272. package/dist/panel.js.map +1 -1
  273. package/dist/panel.json +1 -1
  274. package/dist/panel.min.js +65 -102
  275. package/dist/wheels/bokeh-3.1.0rc1-py3-none-any.whl +0 -0
  276. package/dist/wheels/{panel-0.14.4-py3-none-any.whl → panel-1.0.0a2-py3-none-any.whl} +0 -0
  277. package/package.json +5 -4
  278. package/dist/bundled/bootstraptemplate/dark.css +0 -19
  279. package/dist/bundled/css/golden-layout@1.5.9/src/css/goldenlayout-base.css +0 -1
  280. package/dist/bundled/css/panel/0.14.4/dist/bundled/bootstrap4/css/bootstrap.min.css +0 -2
  281. package/dist/bundled/css/panel/0.14.4/dist/bundled/font-awesome/css/all.min.css +0 -2
  282. package/dist/bundled/datatabulator/@holoviz/panel@0.14.4/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/fast/tabulator_fast.min.css +0 -1
  283. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/fast/tabulator_fast.min.css +0 -1
  284. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator.min.css +0 -2
  285. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_bootstrap3.min.css +0 -2
  286. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_bootstrap4.min.css +0 -2
  287. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_bulma.min.css +0 -2
  288. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_materialize.min.css +0 -2
  289. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_midnight.min.css +0 -2
  290. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_modern.min.css +0 -2
  291. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_semanticui.min.css +0 -2
  292. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_simple.min.css +0 -2
  293. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_site.min.css +0 -2
  294. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/js/tabulator.js +0 -27481
  295. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/js/tabulator.js.map +0 -1
  296. package/dist/bundled/fastbasetemplate/fast_awesome.css +0 -13
  297. package/dist/bundled/fastbasetemplate/fast_bokeh.css +0 -1646
  298. package/dist/bundled/fastbasetemplate/fast_bokeh_slickgrid.css +0 -200
  299. package/dist/bundled/fastbasetemplate/fast_panel.css +0 -53
  300. package/dist/bundled/fastbasetemplate/fast_panel_dataframe.css +0 -14
  301. package/dist/bundled/fastbasetemplate/fast_panel_markdown.css +0 -23
  302. package/dist/bundled/fastbasetemplate/fast_panel_widgets.css +0 -301
  303. package/dist/bundled/fastbasetemplate/fast_root.css +0 -41
  304. package/dist/bundled/fastdarktheme/fast_root_dark.css +0 -4
  305. package/dist/bundled/fastdefaulttheme/fast_root_default.css +0 -4
  306. package/dist/bundled/fastgridtemplate/dark.css +0 -26
  307. package/dist/bundled/fastgridtemplate/default.css +0 -4
  308. package/dist/bundled/fastlisttemplate/dark.css +0 -13
  309. package/dist/bundled/fastlisttemplate/default.css +0 -1
  310. package/dist/bundled/fastlisttemplate/fast_list_template.css +0 -237
  311. package/dist/bundled/goldentemplate/dark.css +0 -26
  312. package/dist/bundled/goldentemplate/default.css +0 -23
  313. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/array-pixel-blob.js +0 -39
  314. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-blending.js +0 -270
  315. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-converters.js +0 -524
  316. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-hsl.js +0 -42
  317. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-hsv.js +0 -42
  318. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-interpolation.js +0 -133
  319. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-lab.js +0 -47
  320. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-lch.js +0 -50
  321. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-palette.js +0 -285
  322. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-quantization.js +0 -135
  323. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-rgba-64.js +0 -95
  324. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-scale.js +0 -176
  325. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-xyz.js +0 -50
  326. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/component-state-color-palette.js +0 -113
  327. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/histogram.js +0 -76
  328. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/index.js +0 -19
  329. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/math-utilities.js +0 -138
  330. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/named-colors.js +0 -743
  331. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/palette-extractor.js +0 -134
  332. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/parse-color.js +0 -219
  333. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/pixel-blob.js +0 -72
  334. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/pixel-box.js +0 -249
  335. package/dist/bundled/js/@microsoft/fast-components@1.21.8/__test__/harness.js +0 -33
  336. package/dist/bundled/js/@microsoft/fast-components@1.21.8/__test__/server.js +0 -36
  337. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.iife.min.js +0 -19
  338. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.js +0 -25813
  339. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.min.js +0 -19
  340. package/dist/bundled/js/panel/0.14.4/dist/bundled/bootstrap4/js/bootstrap.bundle.min.js +0 -2
  341. package/dist/bundled/js/panel/0.14.4/dist/bundled/jquery/jquery.slim.min.js +0 -2
  342. package/dist/bundled/js/react-dom@18/umd/react-dom.production.min.js +0 -267
  343. package/dist/bundled/js/react@18/umd/react.production.min.js +0 -31
  344. package/dist/bundled/notificationarea/panel/0.14.4/dist/bundled/font-awesome/css/all.min.css +0 -2
  345. package/dist/bundled/plotlyplot/panel/0.14.4/dist/bundled/jquery/jquery.slim.min.js +0 -2
  346. package/dist/bundled/reacttemplate/dark.css +0 -18
  347. package/dist/bundled/reacttemplate/default.css +0 -12
  348. package/dist/bundled/theme/dark.css +0 -107
  349. package/dist/bundled/theme/default.css +0 -3
  350. package/dist/bundled/vanillatemplate/default.css +0 -8
  351. package/dist/idom/package.json +0 -38
  352. package/dist/lib/models/idom.d.ts +0 -36
  353. package/dist/lib/models/idom.js +0 -239
  354. package/dist/lib/models/idom.js.map +0 -1
  355. package/dist/lib/models/tabs.d.ts +0 -24
  356. package/dist/lib/models/tabs.js +0 -231
  357. package/dist/lib/models/tabs.js.map +0 -1
  358. package/dist/wheels/bokeh-2.4.3-py3-none-any.whl +0 -0
  359. /package/dist/bundled/{js/babel-standalone@latest → babel-standalone@latest}/babel.min.js +0 -0
  360. /package/dist/bundled/{js/golden-layout@1.5.9 → golden-layout@1.5.9}/dist/goldenlayout.min.js +0 -0
  361. /package/dist/bundled/{css/material-components-web@7.0.0 → material-components-web@7.0.0}/dist/material-components-web.min.css +0 -0
  362. /package/dist/bundled/{js/material-components-web@7.0.0 → material-components-web@7.0.0}/dist/material-components-web.min.js +0 -0
  363. /package/dist/bundled/{js/react-grid-layout@1.3.4 → react-grid-layout@1.3.4}/dist/react-grid-layout.min.js +0 -0
  364. /package/dist/bundled/{js/react-grid-layout@1.3.4 → react-grid-layout@1.3.4}/dist/react-grid-layout.min.js.map +0 -0
@@ -1,237 +0,0 @@
1
- /* fast fast_template.css */
2
- body {
3
- margin: 0px;
4
- overflow: hidden;
5
- }
6
-
7
- #container {
8
- padding:0px;
9
- width: 100vw;
10
- }
11
-
12
- #header{
13
- display: flex;
14
- align-items: center;
15
- padding: 10px;
16
- height: 44px;
17
- }
18
-
19
- #header-items {
20
- overflow: hidden;
21
- width: 100%;
22
- padding-left: 10px;
23
- }
24
-
25
- .theme-toggle-icon {
26
- height: 25px;
27
- width: 25px;
28
- margin-top: 5px;
29
- }
30
-
31
- #sidebar-button {
32
- font-size:30px;
33
- cursor:pointer;
34
- opacity: 0.9;
35
- }
36
- #sidebar-button:hover {
37
- opacity: 1.0;
38
- }
39
-
40
- a.navbar-brand {
41
- padding-left: 10px;
42
- padding-right: 10px;
43
- display: flex;
44
- align-items: center;
45
- font-size: 1.5em;
46
- }
47
- .app-header {
48
- display: contents;
49
- padding-left: 10px;
50
- white-space: nowrap;
51
- }
52
- .title {
53
- text-decoration: none;
54
- text-decoration-line: none;
55
- text-decoration-style: initial;
56
- text-decoration-color: initial;
57
- font-weight: 400;
58
- font-size: var(--type-ramp-plus-3-font-size);
59
- line-height: var(--type-ramp-plus-3-line-height);
60
- white-space: nowrap;
61
- margin-left: 0.5em;
62
- }
63
-
64
- img.app-logo {
65
- font-size: 28px;
66
- height: 30px;
67
- max-width: inherit;
68
- }
69
-
70
- .bk-root .bk.loader.light::after {
71
- background-color: var(--neutral-foreground-rest);
72
- }
73
-
74
- .pn-bar {
75
- width: 20px;
76
- height: 2px;
77
- background-color: var(--neutral-foreground-rest);
78
- margin: 4px 0;
79
- }
80
-
81
- .bk-canvas {
82
- padding-right: 2px !important;
83
- }
84
-
85
- #content {
86
- height: calc(100vh - 76px);
87
- margin: 0px;
88
- width: 100vw;
89
- display: flex;
90
- }
91
-
92
- #sidebar-button {
93
- margin-left: 10px;
94
- margin-right: 10px;
95
- }
96
-
97
- #sidebar {
98
- transition: all 0.2s cubic-bezier(0.945, 0.020, 0.270, 0.665);
99
- transform-origin: center left; /* Set the transformed position of sidebar to center left side. */
100
- height: calc(100vh - 76px);
101
- overflow-y: scroll;
102
- padding-left: 5px;
103
- padding-right: 10px;
104
- margin-right: 12px;
105
- }
106
-
107
- #main {
108
- transition: all 0.2s cubic-bezier(0.945, 0.020, 0.270, 0.665);
109
- width: 100%;
110
- height: calc(100vh - 76px);
111
- padding: 10px;
112
- padding-right: 25px;
113
- overflow-y: scroll;
114
- }
115
-
116
- #sidebarCollapse {
117
- background: none;
118
- border: none;
119
- }
120
-
121
- .sidenav {
122
- padding-top: 15px;
123
- position: absolute;
124
- overflow-y: scroll;
125
- }
126
-
127
- .bk.card-title {
128
- position: absolute !important;
129
- }
130
- .sidenav fast-menu {
131
- width: 100%;
132
- }
133
- .sidenav fast-menu a {
134
- padding: 8px 8px 8px 32px;
135
- text-decoration: none;
136
- color: var(--neutral-foreground-rest);
137
- font-size: var(--type-ramp-base-font-size);
138
- line-height: var(--type-ramp-base-line-height);
139
- display: block;
140
- transition: 0.3s;
141
- }
142
- .sidenav fast-menu a:hover {
143
- color: #f1f1f1;
144
- }
145
- .sidenav fast-menu {
146
- background-color: var(--background-color);
147
- box-shadow: none;
148
- }
149
-
150
- .sidenav .closebtn {
151
- position: absolute;
152
- top: 0;
153
- right: 25px;
154
- font-size: 36px;
155
- margin-left: 50px;
156
- }
157
-
158
- @media screen and (max-height: 450px) {
159
- .sidenav {padding-top: 15px;}
160
- .sidenav a {font-size: 18px;}
161
- }
162
-
163
- .nav.flex-column {
164
- padding-inline-start: 0px;
165
- }
166
-
167
- .pn-modal-close {
168
- position: absolute;
169
- right: 10%;
170
- z-index: 100;
171
- }
172
-
173
- .pn-modal-close:hover,
174
- .pn-modal-close:focus {
175
- text-decoration: none;
176
- cursor: pointer;
177
- }
178
-
179
- .pn-busy-container {
180
- align-items: center;
181
- justify-content: center;
182
- display: flex;
183
- margin-left: auto;
184
- }
185
-
186
- html {
187
- scrollbar-face-color: var( --neutral-fill-rest);
188
- scrollbar-base-color: var( --neutral-fill-rest);
189
- scrollbar-3dlight-color: var( --neutral-fill-rest);
190
- scrollbar-highlight-color: var( --neutral-fill-rest);
191
- scrollbar-track-color: var(--background-color);
192
- scrollbar-arrow-color: var(--background-color);
193
- scrollbar-shadow-color: var( --neutral-fill-rest);
194
- }
195
-
196
- ::-webkit-scrollbar-button { background-color: var( --neutral-fill-rest); }
197
- ::-webkit-scrollbar-track { background-color: var( --neutral-fill-rest);}
198
- ::-webkit-scrollbar-track-piece { background-color: var(--background-color)}
199
- ::-webkit-scrollbar-thumb { height: 50px; background-color: var( --neutral-fill-rest); border-radius: var(--corner-radius);}
200
- ::-webkit-scrollbar-corner { background-color: var();}
201
- ::-webkit-resizer { background-color: var( --neutral-fill-rest);}
202
-
203
- #header-items {
204
- color: var(--neutral-foreground-rest);
205
- }
206
-
207
- #made-with-panel {
208
- padding: .50rem;
209
- text-align: center;
210
- font-size: .75rem;
211
- }
212
-
213
- .fullscreen-button {
214
- position: absolute;
215
- top: 0px;
216
- right: 0px;
217
- width: 24px;
218
- height: 24px;
219
- z-index: 10000;
220
- opacity: 0;
221
- transition-delay: 0.5s;
222
- transition: 0.5s;
223
- cursor: pointer;
224
- }
225
-
226
- .fullscreen-button:hover {
227
- transition: 0.5s;
228
- opacity: 1;
229
- }
230
-
231
- .fullscreen-button:focus {
232
- opacity: 1;
233
- }
234
- div.pn-wrapper {
235
- position: relative;
236
- background: var(--background-color)
237
- }
@@ -1,26 +0,0 @@
1
- @import url("https://golden-layout.com/assets/css/goldenlayout-dark-theme.css");
2
-
3
- .lm_content {
4
- border: 1px solid black;
5
- border-top-color: black;
6
- border-top-style: solid;
7
- border-top-width: 1px;
8
- border-right-color: black;
9
- border-right-style: solid;
10
- border-right-width: 1px;
11
- border-bottom-color: black;
12
- border-bottom-style: solid;
13
- border-bottom-width: 1px;
14
- border-left-color: black;
15
- border-left-style: solid;
16
- border-left-width: 1px;
17
- border-image-source: initial;
18
- border-image-slice: initial;
19
- border-image-width: initial;
20
- border-image-outset: initial;
21
- border-image-repeat: initial;
22
- }
23
-
24
- .lm_header .lm_tab.lm_active {
25
- padding-bottom: 6px;
26
- }
@@ -1,23 +0,0 @@
1
- @import url("https://golden-layout.com/assets/css/goldenlayout-light-theme.css");
2
-
3
- .bk.bk-input-group {
4
- color: black;
5
- }
6
-
7
- .lm_content {
8
- background-color: #ffffff;
9
- }
10
-
11
- .lm_header .lm_tab {
12
- background-color: #efefef;
13
- padding-bottom: 4px !important;
14
- }
15
-
16
- .lm_header .lm_tab.lm_active {
17
- background-color: #ffffff;
18
- padding-bottom: 5px !important;
19
- }
20
-
21
- .lm_header {
22
- background-color: white;
23
- }
@@ -1,39 +0,0 @@
1
- import { ColorRGBA64 } from "./color-rgba-64.js";
2
- /**
3
- * Implements the PixelBlob interfaces using a a massive, ineffecient number array for pixel data. Not recomended for production use but comes in handy in unit tests or environments where creating a canvas drawing context isn't an option.
4
- */
5
- export class ArrayPixelBlob {
6
- /**
7
- * @param image Expects a linear array of pixel data in RGBA format. Each entry should be in the range [0,255]
8
- * @param width width * height * 4 must exactly equal the length of the image array
9
- * @param height width * height * 4 must exactly equal the length of the image array
10
- */
11
- constructor(image, width, height) {
12
- this.getPixel = (x, y) => {
13
- if (x < 0 || x >= this.width || y < 0 || y >= this.height) {
14
- throw new Error("Requested pixel is outside of the image bounds");
15
- }
16
- const offset = (y * this.width + x) * 4;
17
- return new ColorRGBA64(this.image[offset] / 255, this.image[offset + 1] / 255, this.image[offset + 2] / 255, this.image[offset + 3] / 255);
18
- };
19
- this.getPixelRGBA = (x, y) => {
20
- if (x < 0 || x >= this.width || y < 0 || y >= this.height) {
21
- throw new Error("Requested pixel is outside of the image bounds");
22
- }
23
- const offset = (y * this.width + x) * 4;
24
- return [
25
- this.image[offset],
26
- this.image[offset + 1],
27
- this.image[offset + 2],
28
- this.image[offset + 3],
29
- ];
30
- };
31
- if (image.length !== 4 * width * height) {
32
- throw new Error("Invalid image length for supplied width and height");
33
- }
34
- this.image = image;
35
- this.width = width;
36
- this.height = height;
37
- this.totalPixels = this.width * this.height;
38
- }
39
- }
@@ -1,270 +0,0 @@
1
- import { hslToRGB, labToRGB, lchToRGB, rgbToHSL, rgbToLAB, rgbToLCH, } from "./color-converters.js";
2
- import { ColorHSL } from "./color-hsl.js";
3
- import { ColorLAB } from "./color-lab.js";
4
- import { ColorLCH } from "./color-lch.js";
5
- import { ColorRGBA64 } from "./color-rgba-64.js";
6
- import { clamp } from "./math-utilities.js";
7
- /**
8
- * Saturate a color using LCH color space
9
- *
10
- * @remarks
11
- * The alpha channel of the input is ignored
12
- *
13
- * @public
14
- */
15
- export function saturateViaLCH(input, saturation, saturationConstant = 18) {
16
- const lch = rgbToLCH(input);
17
- let sat = lch.c + saturation * saturationConstant;
18
- if (sat < 0) {
19
- sat = 0;
20
- }
21
- return lchToRGB(new ColorLCH(lch.l, sat, lch.h));
22
- }
23
- /**
24
- * De-saturate a color using LCH color space
25
- *
26
- * @remarks
27
- * The alpha channel of the input is ignored
28
- *
29
- * @public
30
- */
31
- export function desaturateViaLCH(input, saturation, saturationConstant = 18) {
32
- return saturateViaLCH(input, -1 * saturation, saturationConstant);
33
- }
34
- /**
35
- * Darken a color using LAB color space
36
- *
37
- * @remarks
38
- * The alpha channel of the input is ignored
39
- *
40
- * @public
41
- */
42
- export function darkenViaLAB(input, amount, darkenConstant = 18) {
43
- const lab = rgbToLAB(input);
44
- const darkened = lab.l - amount * darkenConstant;
45
- return labToRGB(new ColorLAB(darkened, lab.a, lab.b));
46
- }
47
- /**
48
- * Lighten a color using LAB color space
49
- *
50
- * @remarks
51
- * The alpha channel of the input is ignored
52
- *
53
- * @public
54
- */
55
- export function lightenViaLAB(input, amount, darkenConstant = 18) {
56
- return darkenViaLAB(input, -1 * amount, darkenConstant);
57
- }
58
- /**
59
- * @public
60
- */
61
- export function blendBurnChannel(bottom, top) {
62
- if (top === 0.0) {
63
- // Despite the discontinuity, other sources seem to use 0.0 here instead of 1
64
- return 0.0;
65
- }
66
- return 1.0 - (1.0 - bottom) / top;
67
- }
68
- /**
69
- * Blends two colors with the burn mode
70
- *
71
- * @remarks
72
- * The alpha channel of the input is ignored
73
- *
74
- * @public
75
- */
76
- export function blendBurn(bottom, top) {
77
- return new ColorRGBA64(blendBurnChannel(bottom.r, top.r), blendBurnChannel(bottom.g, top.g), blendBurnChannel(bottom.b, top.b), 1);
78
- }
79
- /**
80
- * Blends two colors
81
- *
82
- * @remarks
83
- * The alpha channel of the input is ignored
84
- *
85
- * @public
86
- */
87
- export function blendColor(bottom, top) {
88
- const bottomHSL = rgbToHSL(bottom);
89
- const topHSL = rgbToHSL(top);
90
- if (topHSL.s === 0) {
91
- return new ColorRGBA64(bottomHSL.l, bottomHSL.l, bottomHSL.l, 1);
92
- }
93
- return hslToRGB(new ColorHSL(topHSL.h, topHSL.s, bottomHSL.l));
94
- }
95
- /**
96
- * @public
97
- */
98
- export function blendDarkenChannel(bottom, top) {
99
- return Math.min(bottom, top);
100
- }
101
- /**
102
- * Blends two colors with the darken mode
103
- *
104
- * @remarks
105
- * The alpha channel of the input is ignored
106
- *
107
- * @public
108
- */
109
- export function blendDarken(bottom, top) {
110
- return new ColorRGBA64(blendDarkenChannel(bottom.r, top.r), blendDarkenChannel(bottom.g, top.g), blendDarkenChannel(bottom.b, top.b), 1);
111
- }
112
- /**
113
- * @public
114
- */
115
- export function blendDodgeChannel(bottom, top) {
116
- if (top >= 1.0) {
117
- return 1.0;
118
- }
119
- const retVal = bottom / (1.0 - top);
120
- if (retVal >= 1.0) {
121
- return 1.0;
122
- }
123
- return retVal;
124
- }
125
- /**
126
- * Blends two colors with the dodge mode
127
- *
128
- * @remarks
129
- * The alpha channel of the input is ignored
130
- *
131
- * @public
132
- */
133
- export function blendDodge(bottom, top) {
134
- return new ColorRGBA64(blendDodgeChannel(bottom.r, top.r), blendDodgeChannel(bottom.g, top.g), blendDodgeChannel(bottom.b, top.b), 1);
135
- }
136
- /**
137
- * @public
138
- */
139
- export function blendLightenChannel(bottom, top) {
140
- return Math.max(bottom, top);
141
- }
142
- /**
143
- * Blends two colors with the lighten mode
144
- *
145
- * @remarks
146
- * The alpha channel of the input is ignored
147
- *
148
- * @public
149
- */
150
- export function blendLighten(bottom, top) {
151
- return new ColorRGBA64(blendLightenChannel(bottom.r, top.r), blendLightenChannel(bottom.g, top.g), blendLightenChannel(bottom.b, top.b), 1);
152
- }
153
- /**
154
- * @public
155
- */
156
- export function blendMultiplyChannel(bottom, top) {
157
- return bottom * top;
158
- }
159
- /**
160
- * Blends two colors with the multiply mode
161
- *
162
- * @remarks
163
- * The alpha channel of the input is ignored
164
- *
165
- * @public
166
- */
167
- export function blendMultiply(bottom, top) {
168
- return new ColorRGBA64(blendMultiplyChannel(bottom.r, top.r), blendMultiplyChannel(bottom.g, top.g), blendMultiplyChannel(bottom.b, top.b), 1);
169
- }
170
- /**
171
- * @public
172
- */
173
- export function blendOverlayChannel(bottom, top) {
174
- if (bottom < 0.5) {
175
- return clamp(2.0 * top * bottom, 0, 1);
176
- }
177
- return clamp(1.0 - 2.0 * (1.0 - top) * (1.0 - bottom), 0, 1);
178
- }
179
- /**
180
- * Blends two colors with the overlay mode
181
- *
182
- * @remarks
183
- * The alpha channel of the input is ignored
184
- *
185
- * @public
186
- */
187
- export function blendOverlay(bottom, top) {
188
- return new ColorRGBA64(blendOverlayChannel(bottom.r, top.r), blendOverlayChannel(bottom.g, top.g), blendOverlayChannel(bottom.b, top.b), 1);
189
- }
190
- /**
191
- * @public
192
- */
193
- export function blendScreenChannel(bottom, top) {
194
- return 1.0 - (1.0 - top) * (1.0 - bottom);
195
- }
196
- /**
197
- * Blends two colors with the screen mode
198
- *
199
- * @remarks
200
- * The alpha channel of the input is ignored
201
- *
202
- * @public
203
- */
204
- export function blendScreen(bottom, top) {
205
- return new ColorRGBA64(blendScreenChannel(bottom.r, top.r), blendScreenChannel(bottom.g, top.g), blendScreenChannel(bottom.b, top.b), 1);
206
- }
207
- /**
208
- * Color blend modes.
209
- * @public
210
- */
211
- export var ColorBlendMode;
212
- (function (ColorBlendMode) {
213
- ColorBlendMode[ColorBlendMode["Burn"] = 0] = "Burn";
214
- ColorBlendMode[ColorBlendMode["Color"] = 1] = "Color";
215
- ColorBlendMode[ColorBlendMode["Darken"] = 2] = "Darken";
216
- ColorBlendMode[ColorBlendMode["Dodge"] = 3] = "Dodge";
217
- ColorBlendMode[ColorBlendMode["Lighten"] = 4] = "Lighten";
218
- ColorBlendMode[ColorBlendMode["Multiply"] = 5] = "Multiply";
219
- ColorBlendMode[ColorBlendMode["Overlay"] = 6] = "Overlay";
220
- ColorBlendMode[ColorBlendMode["Screen"] = 7] = "Screen";
221
- })(ColorBlendMode || (ColorBlendMode = {}));
222
- /**
223
- * Blend two colors.
224
- *
225
- * @remarks
226
- * The alpha channel of the input is ignored
227
- *
228
- * @public
229
- */
230
- export function blend(mode, bottom, top) {
231
- switch (mode) {
232
- case ColorBlendMode.Burn:
233
- return blendBurn(bottom, top);
234
- case ColorBlendMode.Color:
235
- return blendColor(bottom, top);
236
- case ColorBlendMode.Darken:
237
- return blendDarken(bottom, top);
238
- case ColorBlendMode.Dodge:
239
- return blendDodge(bottom, top);
240
- case ColorBlendMode.Lighten:
241
- return blendLighten(bottom, top);
242
- case ColorBlendMode.Multiply:
243
- return blendMultiply(bottom, top);
244
- case ColorBlendMode.Overlay:
245
- return blendOverlay(bottom, top);
246
- case ColorBlendMode.Screen:
247
- return blendScreen(bottom, top);
248
- default:
249
- throw new Error("Unknown blend mode");
250
- }
251
- }
252
- /**
253
- * Alpha channel of bottom is ignored
254
- * The returned color always has an alpha channel of 1
255
- * Different programs (eg: paint.net, photoshop) will give different answers than this occasionally but within +/- 1/255 in each channel. Just depends on the details of how they round off decimals
256
- *
257
- * @public
258
- */
259
- export function computeAlphaBlend(bottom, top) {
260
- if (top.a >= 1) {
261
- return top;
262
- }
263
- else if (top.a <= 0) {
264
- return new ColorRGBA64(bottom.r, bottom.g, bottom.b, 1);
265
- }
266
- const r = top.a * top.r + (1 - top.a) * bottom.r;
267
- const g = top.a * top.g + (1 - top.a) * bottom.g;
268
- const b = top.a * top.b + (1 - top.a) * bottom.b;
269
- return new ColorRGBA64(r, g, b, 1);
270
- }