@marimo-team/islands 0.17.2 → 0.17.4

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 (582) hide show
  1. package/dist/{Combination-De9yoNY5.js → Combination-DrSsMSEB.js} +860 -816
  2. package/dist/{ConnectedDataExplorerComponent-DuvpJOKp.js → ConnectedDataExplorerComponent-DY9cADKc.js} +2282 -2232
  3. package/dist/{ImageComparisonComponent--etUl2pp.js → ImageComparisonComponent-CJvR7Qzp.js} +3 -2
  4. package/dist/{_baseIsEqual-BFlyFUxC.js → _baseIsEqual-DbBiwJP8.js} +1 -1
  5. package/dist/{_basePickBy-gCCvtjgp.js → _basePickBy-ChFDiIEt.js} +3 -3
  6. package/dist/{_baseProperty-BuqBC0Ie.js → _baseProperty-Bf09f9Ee.js} +5 -5
  7. package/dist/_baseUniq-D5kohCWB.js +59 -0
  8. package/dist/any-language-editor-Bs2c1bKU.js +156 -0
  9. package/dist/apl-Bp8pgLcx.js +4 -0
  10. package/dist/{arc-C_O2hc-b.js → arc-DM-UhhIs.js} +2 -2
  11. package/dist/architecture-O4VJ6CD3-SVEfQWDz.js +24 -0
  12. package/dist/{architectureDiagram-W76B3OCA-CrK99pJi.js → architectureDiagram-W76B3OCA-GKSiVAlH.js} +41 -38
  13. package/dist/asciiarmor-IoNSjDv9.js +4 -0
  14. package/dist/asn1-B1GnbkOF.js +4 -0
  15. package/dist/{blockDiagram-QIGZ2CNN-BJOEyO6w.js → blockDiagram-QIGZ2CNN-wX8KWoV2.js} +30 -29
  16. package/dist/brainfuck-TRxEs4B5.js +4 -0
  17. package/dist/{button-ADXOb_gX.js → button-B8zS4Mtw.js} +5 -4
  18. package/dist/{c4Diagram-FPNF74CW-7Pz_X9wF.js → c4Diagram-FPNF74CW-Ns4C9pNn.js} +12 -12
  19. package/dist/{channel-X-wRUxX6.js → channel-Dgla_oqe.js} +1 -1
  20. package/dist/{check-COlaG7Ss.js → check-BZnPxXnd.js} +1 -1
  21. package/dist/{chunk-3AY6CYHV-BQH2fFpA.js → chunk-3AY6CYHV-HfZ-8MFM.js} +10 -10
  22. package/dist/{chunk-4BX2VUAB-D-QtDCKM.js → chunk-4BX2VUAB-CV5cUTmw.js} +1 -1
  23. package/dist/{chunk-4KMFLZZN-BirZvvJS.js → chunk-4KMFLZZN-Cbgb64pE.js} +17 -18
  24. package/dist/{chunk-55IACEB6-DjtPYZKs.js → chunk-55IACEB6--aEkhs1O.js} +1 -1
  25. package/dist/{chunk-6OXUPJBA-CTnnqlzw.js → chunk-6OXUPJBA-DQZp24uZ.js} +7 -7
  26. package/dist/{chunk-7GE3RBXV-CT47hCrL.js → chunk-7GE3RBXV-D0K_8mbM.js} +1 -1
  27. package/dist/{chunk-ABZYJK2D-B6ZsU6SR.js → chunk-ABZYJK2D-BwKkjFgF.js} +3 -3
  28. package/dist/{chunk-BN7GFLIU-DYWEsrG4.js → chunk-BN7GFLIU-93ktvOI2.js} +1 -1
  29. package/dist/{chunk-CVBHYZKI-BuzDGXz0.js → chunk-CVBHYZKI-tTpx9vm_.js} +1 -1
  30. package/dist/{chunk-CXMOBAN2-Bas2S5w1.js → chunk-CXMOBAN2-CagHnxl1.js} +6 -6
  31. package/dist/{chunk-EXTU4WIE-DXwNSukz.js → chunk-EXTU4WIE-Ve2vgn5X.js} +2 -2
  32. package/dist/{chunk-FMBD7UC4-CYKEpuPr.js → chunk-FMBD7UC4-CCvcIQpJ.js} +1 -1
  33. package/dist/{chunk-JA3XYJ7Z-DcxfkcDC.js → chunk-JA3XYJ7Z-CrQC4eYr.js} +4 -4
  34. package/dist/{chunk-JEIROHC2-C01ZIcIG.js → chunk-JEIROHC2-tuJLHPKk.js} +1 -1
  35. package/dist/{chunk-K7UQS3LO-CmbT97MV.js → chunk-K7UQS3LO-BzsTVREe.js} +7 -7
  36. package/dist/{chunk-KMC2YHZD-D64m-1E1.js → chunk-KMC2YHZD-CdKOlVi0.js} +1 -1
  37. package/dist/{chunk-QN33PNHL-DjB0j8Dr.js → chunk-QN33PNHL-CbdYySGk.js} +2 -2
  38. package/dist/{chunk-QYVHNE3D-VA4W4oxG.js → chunk-QYVHNE3D-BDj4udRH.js} +2 -2
  39. package/dist/{chunk-QZHKN3VN-KT0fl3Em.js → chunk-QZHKN3VN-E6VBm6ir.js} +1 -1
  40. package/dist/{chunk-S3R3BYOJ-C5zmcMvn.js → chunk-S3R3BYOJ-DuumGJ4u.js} +6 -6
  41. package/dist/{chunk-T44TD3VJ-BMOgu-Hk.js → chunk-T44TD3VJ-Bc-UhG4i.js} +1 -1
  42. package/dist/{chunk-TVAH2DTR-eKm8SKnH.js → chunk-TVAH2DTR-s8skdWqT.js} +6 -6
  43. package/dist/{chunk-TZMSLE5B-CQxFRiI2.js → chunk-TZMSLE5B-CUfRRoFb.js} +3 -3
  44. package/dist/{chunk-WFRQ32O7-Dg51o277.js → chunk-WFRQ32O7-BquRwCCj.js} +1 -1
  45. package/dist/{chunk-WFWHJNB7-DVLO98ge.js → chunk-WFWHJNB7-CHl0gCzu.js} +1 -1
  46. package/dist/{chunk-XRWGC2XP-UNFKdWQh.js → chunk-XRWGC2XP-CoSEoOcO.js} +1 -1
  47. package/dist/{chunk-ZPAFE4SF-DbCSwfLK.js → chunk-ZPAFE4SF-Bf1fn8cY.js} +1 -1
  48. package/dist/classDiagram-KNZD7YFC-ONLi1fgN.js +40 -0
  49. package/dist/classDiagram-v2-RKCZMP56-Ceij_i8m.js +40 -0
  50. package/dist/{clike-CytFO-kN.js → clike-Cbszc5XU.js} +1 -1
  51. package/dist/clojure-BNTL3o8Z.js +4 -0
  52. package/dist/{clone-CCgVUJ6x.js → clone-DE59DFkY.js} +1 -1
  53. package/dist/cmake-Bp6uEjiS.js +4 -0
  54. package/dist/cobol-CtS_R__A.js +4 -0
  55. package/dist/coffeescript-D5u5aYAu.js +4 -0
  56. package/dist/commonlisp-BvLWy9eh.js +4 -0
  57. package/dist/compiler-runtime-5MdCVm0X.js +13 -0
  58. package/dist/{constants-BaCMVd12.js → constants-BlvmN57i.js} +3 -3
  59. package/dist/{copy-GNcK40wy.js → copy-bxQOKABs.js} +2 -2
  60. package/dist/{cose-bilkent-S5V4N54A-BnvuJG6Y.js → cose-bilkent-S5V4N54A-DZE8LVzQ.js} +3 -3
  61. package/dist/crystal-CaTWnt-Z.js +4 -0
  62. package/dist/css-BMUPibQH.js +5 -0
  63. package/dist/cypher-PopjPg_G.js +4 -0
  64. package/dist/d-Ds7bO8W5.js +4 -0
  65. package/dist/{dagre-5GWH7T2D-rn7tZYaQ.js → dagre-5GWH7T2D-g2ShbPGy.js} +39 -37
  66. package/dist/{dagre-Bghq6VKO.js → dagre-TBn9HZB0.js} +14 -13
  67. package/dist/{data-grid-overlay-editor-B4_Caieu.js → data-grid-overlay-editor-BuhjNOgs.js} +4 -4
  68. package/dist/{diagram-N5W7TBWH-lbF94o-g.js → diagram-N5W7TBWH-BYhyeV0B.js} +44 -41
  69. package/dist/{diagram-QEK2KX5R-CKBhSzsO.js → diagram-QEK2KX5R-CiuUIBpl.js} +38 -35
  70. package/dist/{diagram-S2PKOQOG-161_1f53.js → diagram-S2PKOQOG-D0Z2Q5P-.js} +38 -35
  71. package/dist/diff-C_xR-pxD.js +4 -0
  72. package/dist/{dist-BSyYM1Gi.js → dist-7CqcJssH.js} +6 -6
  73. package/dist/{dist-C9-uHBqC.js → dist-8v4BI_h_.js} +1 -1
  74. package/dist/{dist-71jYYbWP.js → dist-B3CNaJau.js} +2 -2
  75. package/dist/dist-B9JCXzyv.js +6 -0
  76. package/dist/{dist-DzJem5xc.js → dist-BMhv6XDi.js} +1 -1
  77. package/dist/{dist-CWh5ZwcC.js → dist-BYS0EtbC.js} +2 -2
  78. package/dist/{dist-BaPjLM6s.js → dist-BgsDu-bU.js} +1 -1
  79. package/dist/{dist-CNAkUyxv.js → dist-BxmsyHv5.js} +1 -1
  80. package/dist/{dist-CWqB4bg8.js → dist-C02gS--y.js} +3 -3
  81. package/dist/{dist-C76MUPD3.js → dist-C5Iu9a3-.js} +2 -2
  82. package/dist/{dist-DxESp2-T.js → dist-C5Ns3q-m.js} +3 -3
  83. package/dist/dist-C6QrJGYr.js +10 -0
  84. package/dist/{dist-BAqp4Vtl.js → dist-CBu8cgzz.js} +8 -4
  85. package/dist/dist-CFZ32udY.js +6 -0
  86. package/dist/{dist-DaTVdKJa.js → dist-CXimnGhI.js} +2 -2
  87. package/dist/{dist-CtOeHDJp.js → dist-CawOxmKh.js} +5 -5
  88. package/dist/dist-CmgxQNWN.js +10 -0
  89. package/dist/dist-Cr6Cu8sC.js +6 -0
  90. package/dist/{dist-BBhmkni2.js → dist-CxRajUZ6.js} +1 -1
  91. package/dist/{dist-CPNnKuPh.js → dist-D08oiinq.js} +12 -10
  92. package/dist/{dist-BNRdMfJH.js → dist-D4LUTYHc.js} +2 -2
  93. package/dist/{dist-C2IEc8og.js → dist-DGKjHTv9.js} +5 -5
  94. package/dist/{dist-4dtbqf8A.js → dist-DGnWQOnS.js} +3 -3
  95. package/dist/{dist-BqdQPWpQ.js → dist-DSDOMDNR.js} +2 -2
  96. package/dist/{dist-_4cudra1.js → dist-DTNqkRGE.js} +3 -3
  97. package/dist/{dist-28HYzERB.js → dist-D_GkrgWD.js} +2 -2
  98. package/dist/{dist-Cw0F6l-7.js → dist-DbHWFmjZ.js} +1 -1
  99. package/dist/{dist-B_wjJqqS.js → dist-Dh7gw0Ay.js} +2 -2
  100. package/dist/{dist-B8Pbw5ln.js → dist-DiO9ni9a.js} +2 -2
  101. package/dist/{dist-BYHiiJB-.js → dist-DlSZED-1.js} +2 -2
  102. package/dist/{dist-Da046MhT.js → dist-DvsjKDQ4.js} +1 -1
  103. package/dist/{dist-O0zVziwn.js → dist-DzKKEoge.js} +3 -3
  104. package/dist/{dist-CwZcC4om.js → dist-HKzG1oF6.js} +1 -1
  105. package/dist/{dist-CJb8EiFO.js → dist-K_AqLCfS.js} +3 -3
  106. package/dist/dist-NxHLuq7w.js +6 -0
  107. package/dist/dist-S2JcqPPB.js +12 -0
  108. package/dist/{dist-CNvMOZu9.js → dist-XkGsOiy0.js} +2 -2
  109. package/dist/{dist-Drf3cyIW.js → dist-_tHnp24J.js} +3 -3
  110. package/dist/{dist-xLN9qCAp.js → dist-eSnWVS11.js} +3 -3
  111. package/dist/dist-hcPlrsR9.js +6 -0
  112. package/dist/{dist-DlK420ke.js → dist-owpR56zn.js} +1 -1
  113. package/dist/dist-poXa8G8m.js +6 -0
  114. package/dist/{dist-CTIyD_KU.js → dist-qGpLTiEi.js} +3 -3
  115. package/dist/{dockerfile-Cmlcqk35.js → dockerfile-CWWeWT3z.js} +1 -1
  116. package/dist/dtd-CGRYzaHQ.js +4 -0
  117. package/dist/dylan-Ctfki5HL.js +4 -0
  118. package/dist/ecl--gmEivzz.js +4 -0
  119. package/dist/eiffel-o31DRAP-.js +4 -0
  120. package/dist/elm-Dqa6TVIh.js +4 -0
  121. package/dist/{erDiagram-AWTI2OKA-BU7Qig7n.js → erDiagram-AWTI2OKA-BeadFjpg.js} +25 -25
  122. package/dist/erlang-BtVO_vQG.js +4 -0
  123. package/dist/error-banner-B7LmpmGT.js +1013 -0
  124. package/dist/{esm-Oo8OvZ6m.js → esm-CQIOyi5v.js} +579 -564
  125. package/dist/{factor-BZnBK3CG.js → factor-7tQNNEWF.js} +1 -1
  126. package/dist/factor-CNLvRc__.js +5 -0
  127. package/dist/{flowDiagram-PVAE7QVJ-JKJebWeY.js → flowDiagram-PVAE7QVJ-GgklUvqn.js} +27 -27
  128. package/dist/{formats-DOEuF6TR.js → formats-kyFd0DPJ.js} +23 -22
  129. package/dist/forth-Bp2zDfH-.js +4 -0
  130. package/dist/fortran-B3A-KieX.js +4 -0
  131. package/dist/{ganttDiagram-OWAHRB6G-BvWRfg05.js → ganttDiagram-OWAHRB6G-D5wYR6WK.js} +17 -17
  132. package/dist/gas-_Xt_kGOG.js +4 -0
  133. package/dist/gherkin-DzZpg8Ls.js +4 -0
  134. package/dist/gitGraph-ZV4HHKMB-DFGD7PPm.js +24 -0
  135. package/dist/{gitGraphDiagram-NY62KEGX-VEJJBf5L.js → gitGraphDiagram-NY62KEGX-DCwA-g9b.js} +38 -35
  136. package/dist/{glide-data-editor-Bne10icG.js → glide-data-editor-1bUl_mRe.js} +515 -515
  137. package/dist/graphlib-R11f1son.js +228 -0
  138. package/dist/groovy-BtD10jRQ.js +4 -0
  139. package/dist/haskell-C-JVWnIV.js +4 -0
  140. package/dist/haxe-Del5TcJQ.js +5 -0
  141. package/dist/idl-BLlRatde.js +4 -0
  142. package/dist/info-63CPKGFF-eZyiEu_4.js +24 -0
  143. package/dist/infoDiagram-STP46IZ2-CUr2vZlE.js +48 -0
  144. package/dist/{isEmpty-Do_v2sls.js → isEmpty-CIFmGKJN.js} +2 -2
  145. package/dist/isString-BsphYkXQ.js +9 -0
  146. package/dist/{isSymbol-CtkA8Y0a.js → isSymbol-BnxbuvDK.js} +1 -1
  147. package/dist/javascript-Bm7QL4E3.js +5 -0
  148. package/dist/jinja2-BxbImxq2.js +4 -0
  149. package/dist/{journeyDiagram-BIP6EPQ6-CsgEQgxh.js → journeyDiagram-BIP6EPQ6-DtjQC_m1.js} +10 -10
  150. package/dist/jsx-runtime-CvL6gNI-.js +22 -0
  151. package/dist/julia-DV1Vz9mw.js +4 -0
  152. package/dist/{kanban-definition-6OIFK2YF-Bi8Ete2P.js → kanban-definition-6OIFK2YF-U3q5gvb8.js} +19 -19
  153. package/dist/{katex-C-g3rKKt.js → katex-BWgzyQrl.js} +1 -1
  154. package/dist/{label-BiVIU_wb.js → label-Wr-xTlW7.js} +463 -453
  155. package/dist/{line-B7-GoF1m.js → line-C7OvOvNm.js} +3 -3
  156. package/dist/{linear-DeGGALuc.js → linear-CgANSWNu.js} +4 -4
  157. package/dist/livescript-9UMSMMrl.js +4 -0
  158. package/dist/{loader-BBqwtZWj.js → loader-Dj9XWZTh.js} +164 -4
  159. package/dist/lua-Bcbc7wWe.js +4 -0
  160. package/dist/main.js +40727 -41561
  161. package/dist/mathematica-DG4QUwYU.js +4 -0
  162. package/dist/mbox--auqAoPc.js +4 -0
  163. package/dist/{memoize-D7eDkf3R.js → memoize-XkDn33QI.js} +1 -1
  164. package/dist/{merge-C_6cGM6o.js → merge-dMlizkC5.js} +1 -1
  165. package/dist/{mermaid-BmtvsZ2m.js → mermaid-DIjoC4T4.js} +67 -66
  166. package/dist/{mermaid-parser.core-geyG_6o0.js → mermaid-parser.core-B433qyUL.js} +8 -8
  167. package/dist/{mhchem-OhAaJ0fA.js → mhchem-1x4KnXMF.js} +1 -1
  168. package/dist/min-WjLsUjBa.js +89 -0
  169. package/dist/{mindmap-definition-Q6HEUPPD-B-wmX1oG.js → mindmap-definition-Q6HEUPPD-LFgV4R8y.js} +24 -24
  170. package/dist/mirc-9dVcMicH.js +4 -0
  171. package/dist/mllike-Di9N4E3Q.js +6 -0
  172. package/dist/modelica-S3adENkL.js +4 -0
  173. package/dist/mscgen-DAG0zH4w.js +6 -0
  174. package/dist/mumps-afzuy08D.js +4 -0
  175. package/dist/{now-DumxsrcX.js → now-8WTe-KKa.js} +1 -1
  176. package/dist/nsis-Bzwy0lPH.js +5 -0
  177. package/dist/{nsis-D4bLR_Y1.js → nsis-CFb2Zrib.js} +1 -1
  178. package/dist/ntriples-D9oM8s3v.js +4 -0
  179. package/dist/{number-overlay-editor-D6r-48ka.js → number-overlay-editor-DYjnpjXo.js} +2 -2
  180. package/dist/octave-BMLCk2qM.js +4 -0
  181. package/dist/{once-3OSMKEsL.js → once-rI5AYku5.js} +1 -1
  182. package/dist/{ordinal-DpEbSVPc.js → ordinal-pQYxWJYN.js} +1 -1
  183. package/dist/oz-CX5JTWTK.js +4 -0
  184. package/dist/packet-HUATNLJX-BvWMmF9U.js +24 -0
  185. package/dist/pascal-BeZmsfFX.js +4 -0
  186. package/dist/perl-CZ_HryPN.js +4 -0
  187. package/dist/pie-WTHONI2E-BCXZJKz0.js +24 -0
  188. package/dist/{pieDiagram-ADFJNKIX-C3GvPNUL.js → pieDiagram-ADFJNKIX-CsZmho0o.js} +43 -40
  189. package/dist/pig-OPEEOu6V.js +4 -0
  190. package/dist/powershell-DyR-5LnA.js +4 -0
  191. package/dist/{precisionRound-7YYJq2rW.js → precisionRound-DMLkFNYv.js} +1 -1
  192. package/dist/properties-Cl4tecfb.js +4 -0
  193. package/dist/protobuf-B8X247vV.js +4 -0
  194. package/dist/pug-Kmpa-Pbv.js +5 -0
  195. package/dist/{pug-Dv3gE36O.js → pug-ZDYeT34w.js} +1 -1
  196. package/dist/puppet-Pl07qkSO.js +4 -0
  197. package/dist/python-DQgTXBpp.js +5 -0
  198. package/dist/q-D7uiP00h.js +4 -0
  199. package/dist/{quadrantDiagram-LMRXKWRM-DPXwGNVa.js → quadrantDiagram-LMRXKWRM-CY6GTOgM.js} +8 -8
  200. package/dist/r-DbUoToEd.js +4 -0
  201. package/dist/radar-NJJJXTRR-8kjOeCwx.js +24 -0
  202. package/dist/{range-CIbLpsrs.js → range-CTMc_Qhu.js} +3 -3
  203. package/dist/{react-plotly-DYyvxcRD.js → react-plotly-Cs07wkly.js} +2 -2
  204. package/dist/react-vega-B9eMrRW1.js +32035 -0
  205. package/dist/react-vega-DM3e8kar.js +25 -0
  206. package/dist/reduce-C-jV7KRY.js +268 -0
  207. package/dist/{requirementDiagram-4UW4RH46-Cs3Hqnm0.js → requirementDiagram-4UW4RH46-CfLWneBF.js} +24 -24
  208. package/dist/rpm-BjQFZZ1e.js +5 -0
  209. package/dist/ruby-BXpop5ZX.js +4 -0
  210. package/dist/{sankeyDiagram-GR3RE2ED-Be1d_Xf7.js → sankeyDiagram-GR3RE2ED-Dkxfzm6f.js} +7 -7
  211. package/dist/sas-CzFr9Hlz.js +4 -0
  212. package/dist/scheme-C6QRPvcm.js +4 -0
  213. package/dist/{sequenceDiagram-C3RYC4MD-lbtovKTa.js → sequenceDiagram-C3RYC4MD-hSi31Kfa.js} +14 -14
  214. package/dist/shell-Bs7FrcsL.js +4 -0
  215. package/dist/sieve-D39XRya9.js +4 -0
  216. package/dist/{slides-component-BoeQU7-s.js → slides-component-Ct11erUn.js} +9 -8
  217. package/dist/smalltalk-CdAwDOFE.js +4 -0
  218. package/dist/sparql-DsDWhEhN.js +4 -0
  219. package/dist/spec-rqRnkIf4.js +1256 -0
  220. package/dist/{src-BTqT1mA1.js → src-CKr0QbVy.js} +1 -1
  221. package/dist/{stateDiagram-KXAO66HF-BmbR-Rol.js → stateDiagram-KXAO66HF-DJsLA_DN.js} +42 -40
  222. package/dist/stateDiagram-v2-UMBNRL4Z-D-p_ngHt.js +39 -0
  223. package/dist/{step-2RJrMSSG.js → step-BsM8YHun.js} +1 -1
  224. package/dist/stex-DvqvBdH8.js +5 -0
  225. package/dist/style.css +1 -1
  226. package/dist/stylus-DxzxWmvV.js +4 -0
  227. package/dist/swift-DTC4Wg4z.js +4 -0
  228. package/dist/tcl-DantlS-i.js +4 -0
  229. package/dist/textile-pOphaahD.js +4 -0
  230. package/dist/{time-BB30r1tK.js → time-U9NHhrDC.js} +4 -4
  231. package/dist/{timeline-definition-XQNQX7LJ-1mv5caPW.js → timeline-definition-XQNQX7LJ-rojWjX6M.js} +7 -7
  232. package/dist/{toNumber-D3Ystr3y.js → toNumber-CUG0Hyhp.js} +2 -2
  233. package/dist/{toString-CbuxCRDG.js → toString-CT4n1k2E.js} +2 -2
  234. package/dist/toml-hgYsPM5p.js +4 -0
  235. package/dist/treemap-75Q7IDZK-Do1WIR9v.js +24 -0
  236. package/dist/troff-BwevrEUZ.js +4 -0
  237. package/dist/{dtd-RplB6hDg.js → ttcn-C5gJcxta.js} +2 -2
  238. package/dist/ttcn-cfg-CPKlfqST.js +4 -0
  239. package/dist/turtle-EH0lMhMf.js +4 -0
  240. package/dist/{types-BPohCsA7.js → types-Bt7p5SYB.js} +1028 -1038
  241. package/dist/uniq-DgSyegN3.js +8 -0
  242. package/dist/{useAsyncData-DHBqeb9a.js → useAsyncData-Dp2V69OV.js} +3 -3
  243. package/dist/{useIframeCapabilities-BEvvwlwt.js → useIframeCapabilities-B9u0SmJ4.js} +2 -2
  244. package/dist/{useTheme-CnMbo-iq.js → useTheme-D7vlj42b.js} +4 -4
  245. package/dist/vb-DNk7gts-.js +4 -0
  246. package/dist/vbscript-znK_5PUS.js +4 -0
  247. package/dist/vega-component-C58Jk3ub.js +633 -0
  248. package/dist/{vega-loader.browser.module-CFMtdrNw.js → vega-loader.browser-BK7-IO9k.js} +91 -99
  249. package/dist/velocity-DmPhlhdp.js +4 -0
  250. package/dist/verilog-CePnwf4S.js +4 -0
  251. package/dist/vhdl-Ckdh8uiO.js +4 -0
  252. package/dist/webidl-8N8qbzRd.js +4 -0
  253. package/dist/xquery-Cocyk-z0.js +4 -0
  254. package/dist/{xychartDiagram-6GGTOJPD-njc-naaw.js → xychartDiagram-6GGTOJPD-CiC1eONZ.js} +23 -23
  255. package/dist/yacas-CPmShRg-.js +4 -0
  256. package/dist/z80-B500UaFh.js +4 -0
  257. package/package.json +12 -9
  258. package/src/components/ai/ai-provider-icon.tsx +2 -1
  259. package/src/components/app-config/constants.ts +25 -1
  260. package/src/components/charts/lazy.tsx +7 -0
  261. package/src/components/charts/tooltip.ts +5 -0
  262. package/src/components/charts/types.ts +8 -0
  263. package/src/components/chat/acp/__tests__/state.test.ts +0 -13
  264. package/src/components/chat/acp/agent-panel.tsx +7 -1
  265. package/src/components/chat/acp/agent-selector.tsx +5 -0
  266. package/src/components/chat/acp/blocks.tsx +51 -8
  267. package/src/components/chat/acp/state.ts +8 -2
  268. package/src/components/chat/acp/thread.tsx +10 -3
  269. package/src/components/chat/chat-panel.tsx +7 -1
  270. package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +473 -184
  271. package/src/components/data-table/__tests__/chart-spec-model.test.ts +32 -28
  272. package/src/components/data-table/charts/__tests__/__snapshots__/spec-snapshot.test.ts.snap +1 -1
  273. package/src/components/data-table/charts/__tests__/altair-generator.test.ts +162 -0
  274. package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +1 -1
  275. package/src/components/data-table/charts/__tests__/spec.test.ts +145 -6
  276. package/src/components/data-table/charts/chart-spec/altair-generator.ts +6 -1
  277. package/src/components/data-table/charts/chart-spec/encodings.ts +11 -7
  278. package/src/components/data-table/charts/chart-spec/spec.ts +9 -8
  279. package/src/components/data-table/charts/chart-spec/tooltips.ts +4 -3
  280. package/src/components/data-table/charts/chart-spec/types.ts +1 -1
  281. package/src/components/data-table/charts/chart-spec/utils.ts +23 -0
  282. package/src/components/data-table/charts/components/form-fields.tsx +2 -2
  283. package/src/components/data-table/charts/constants.ts +7 -3
  284. package/src/components/data-table/charts/lazy-chart.tsx +15 -11
  285. package/src/components/data-table/charts/types.ts +6 -14
  286. package/src/components/data-table/column-summary/chart-spec-model.tsx +112 -269
  287. package/src/components/data-table/column-summary/column-summary.tsx +12 -12
  288. package/src/components/data-table/column-summary/legacy-chart-spec.ts +78 -2
  289. package/src/components/data-table/column-summary/utils.ts +1 -1
  290. package/src/components/datasources/__tests__/utils.test.ts +339 -138
  291. package/src/components/datasources/column-preview.tsx +9 -9
  292. package/src/components/datasources/datasources.tsx +4 -0
  293. package/src/components/datasources/utils.ts +94 -4
  294. package/src/components/editor/Output.tsx +9 -6
  295. package/src/components/editor/ai/ai-completion-editor.tsx +2 -2
  296. package/src/components/editor/code/readonly-diff.tsx +4 -0
  297. package/src/components/editor/output/ConsoleOutput.tsx +14 -11
  298. package/src/components/editor/renderers/slides-layout/types.ts +1 -1
  299. package/src/components/tracing/tracing-spec.ts +2 -2
  300. package/src/components/tracing/tracing.test.tsx +1 -1
  301. package/src/components/tracing/tracing.tsx +57 -74
  302. package/src/components/tracing/utils.ts +22 -0
  303. package/src/components/ui/query-param-preserving-link.tsx +48 -0
  304. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +12 -1
  305. package/src/core/ai/context/providers/cell-output.ts +2 -8
  306. package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +1 -1
  307. package/src/core/ai/tools/edit-notebook-tool.ts +15 -7
  308. package/src/core/ai/tools/run-cells-tool.ts +60 -26
  309. package/src/core/cells/ids.ts +1 -1
  310. package/src/core/codemirror/language/__tests__/extension.test.ts +6 -12
  311. package/src/core/codemirror/language/__tests__/markdown.test.ts +23 -36
  312. package/src/core/codemirror/language/languages/python.ts +40 -6
  313. package/src/core/codemirror/language/languages/sql/completion-store.ts +2 -2
  314. package/src/core/codemirror/language/languages/sql/sql.ts +14 -0
  315. package/src/core/codemirror/language/languages/sql/utils.ts +54 -3
  316. package/src/core/codemirror/lsp/notebook-lsp.ts +52 -4
  317. package/src/core/codemirror/lsp/transports.ts +3 -0
  318. package/src/core/datasets/__tests__/data-source.test.ts +6 -0
  319. package/src/core/datasets/data-source-connections.ts +1 -0
  320. package/src/core/dom/__tests__/outline.test.ts +43 -0
  321. package/src/core/dom/outline.ts +1 -1
  322. package/src/core/islands/main.ts +2 -0
  323. package/src/core/lsp/__tests__/transport.test.ts +57 -0
  324. package/src/core/lsp/transport.ts +16 -0
  325. package/src/css/md.css +6 -0
  326. package/src/plugins/core/RenderHTML.tsx +26 -0
  327. package/src/plugins/core/__test__/sanitize.test.ts +27 -0
  328. package/src/plugins/core/sanitize.ts +9 -2
  329. package/src/plugins/impl/DataTablePlugin.tsx +21 -27
  330. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +26 -22
  331. package/src/plugins/impl/data-explorer/functions/function.ts +1 -2
  332. package/src/plugins/impl/data-explorer/functions/types.ts +65 -14
  333. package/src/plugins/impl/data-explorer/queries/queries.ts +9 -9
  334. package/src/plugins/impl/data-explorer/queries/types.ts +23 -5
  335. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +2 -1
  336. package/src/plugins/impl/vega/__tests__/__snapshots__/make-selectable.test.ts.snap +2309 -0
  337. package/src/plugins/impl/vega/__tests__/encodings.test.ts +93 -0
  338. package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +621 -0
  339. package/src/plugins/impl/vega/__tests__/params.test.ts +121 -1
  340. package/src/plugins/impl/vega/encodings.ts +16 -2
  341. package/src/plugins/impl/vega/make-selectable.ts +339 -10
  342. package/src/plugins/impl/vega/params.ts +76 -14
  343. package/src/plugins/impl/vega/types.ts +32 -13
  344. package/src/plugins/impl/vega/vega-component.tsx +74 -26
  345. package/src/plugins/impl/vega/vega.css +1 -0
  346. package/src/stories/__fixtures__/vega.ts +1 -1
  347. package/src/utils/arrays.ts +16 -0
  348. package/dist/_baseUniq-CKN9mEDq.js +0 -324
  349. package/dist/any-language-editor-Du2Q_6IK.js +0 -156
  350. package/dist/apl-CUm2DGqh.js +0 -4
  351. package/dist/architecture-O4VJ6CD3-PFw3eFBY.js +0 -21
  352. package/dist/asciiarmor-lqJ78U01.js +0 -4
  353. package/dist/asn1-CjwpSTlW.js +0 -4
  354. package/dist/brainfuck-ClvDI1dq.js +0 -4
  355. package/dist/classDiagram-KNZD7YFC-HUFFxNdk.js +0 -40
  356. package/dist/classDiagram-v2-RKCZMP56-Dw7Acmuf.js +0 -40
  357. package/dist/clojure-8GefCgPe.js +0 -4
  358. package/dist/cmake-yAhT9H0F.js +0 -4
  359. package/dist/cobol-BmltueOY.js +0 -4
  360. package/dist/coffeescript-C7KEQBcH.js +0 -4
  361. package/dist/commonlisp-CNbiJRU-.js +0 -4
  362. package/dist/crystal-OdjZZ8bc.js +0 -4
  363. package/dist/css-DhTxMmL_.js +0 -5
  364. package/dist/cypher-CgN8E3YI.js +0 -4
  365. package/dist/d-g41sJcBC.js +0 -4
  366. package/dist/diff-ViRYYhhg.js +0 -4
  367. package/dist/dist-BfJO8Bm9.js +0 -12
  368. package/dist/dist-CLuF3AtO.js +0 -6
  369. package/dist/dist-CU04U4NL.js +0 -10
  370. package/dist/dist-DNUT6b47.js +0 -6
  371. package/dist/dist-DbAb2sY7.js +0 -6
  372. package/dist/dist-DiDFQ2Rk.js +0 -6
  373. package/dist/dist-SNAyAOJ-.js +0 -6
  374. package/dist/dist-cbW5xJNV.js +0 -6
  375. package/dist/dist-h8eGLSbK.js +0 -10
  376. package/dist/dylan-BX8KJufP.js +0 -4
  377. package/dist/ecl-CWtLaNMH.js +0 -4
  378. package/dist/eiffel-C-mlZPMn.js +0 -4
  379. package/dist/elm-CWp06vcb.js +0 -4
  380. package/dist/erlang-pfp22AZM.js +0 -4
  381. package/dist/error-banner-BAWlXn49.js +0 -1012
  382. package/dist/esm-B2pocBPL.js +0 -26
  383. package/dist/esm-YVnxJqkD.js +0 -33066
  384. package/dist/factor-CEn53jua.js +0 -5
  385. package/dist/forth-CL8vu_y8.js +0 -4
  386. package/dist/fortran-DsmXkYtE.js +0 -4
  387. package/dist/gas-mYt9Rtlx.js +0 -4
  388. package/dist/gherkin-DHNCKBNj.js +0 -4
  389. package/dist/gitGraph-ZV4HHKMB-Cpd6k0O8.js +0 -21
  390. package/dist/graphlib-DRS8CrjA.js +0 -227
  391. package/dist/groovy-DzRtOS5a.js +0 -4
  392. package/dist/haskell-Bl9iT_Mp.js +0 -4
  393. package/dist/haxe-DqA0ED6k.js +0 -5
  394. package/dist/idl-WU2hil4i.js +0 -4
  395. package/dist/info-63CPKGFF-CG-xzUJo.js +0 -21
  396. package/dist/infoDiagram-STP46IZ2-zoRBGoup.js +0 -45
  397. package/dist/javascript-QY2BGJeV.js +0 -5
  398. package/dist/jinja2-Czleq7Sk.js +0 -4
  399. package/dist/jsx-runtime-DZyWJV5b.js +0 -31
  400. package/dist/julia-Dru3Qi0y.js +0 -4
  401. package/dist/livescript-Dxqi_HLT.js +0 -4
  402. package/dist/lua-ByH1cUQZ.js +0 -4
  403. package/dist/mathematica-CWJIFuES.js +0 -4
  404. package/dist/mbox-qhPIGaUI.js +0 -4
  405. package/dist/min-Dwa_NbP6.js +0 -93
  406. package/dist/mirc-yYcXhXBY.js +0 -4
  407. package/dist/mllike-BfT_Nl9x.js +0 -6
  408. package/dist/modelica-lVDtz1Rm.js +0 -4
  409. package/dist/mscgen-DvwdD1QJ.js +0 -6
  410. package/dist/mumps-BiY3GwKd.js +0 -4
  411. package/dist/nsis-Dk18Sq_4.js +0 -5
  412. package/dist/ntriples-Cj-8VqKF.js +0 -4
  413. package/dist/octave-BgFAaYjU.js +0 -4
  414. package/dist/oz-IsEG1I1m.js +0 -4
  415. package/dist/packet-HUATNLJX-Cafuo3IG.js +0 -21
  416. package/dist/pascal-BVf7FtIE.js +0 -4
  417. package/dist/perl-BM0-y4mZ.js +0 -4
  418. package/dist/pie-WTHONI2E-BE0pHBwB.js +0 -21
  419. package/dist/pig-CLBjzQmc.js +0 -4
  420. package/dist/powershell-B_qvE33J.js +0 -4
  421. package/dist/properties-CUTpsH2y.js +0 -4
  422. package/dist/protobuf-DqCP8a-0.js +0 -4
  423. package/dist/pug-BvexKkw4.js +0 -5
  424. package/dist/puppet-CoIi0R3f.js +0 -4
  425. package/dist/python-C-11-YMh.js +0 -5
  426. package/dist/q-CCVgEip7.js +0 -4
  427. package/dist/r-CIdR0Sfs.js +0 -4
  428. package/dist/radar-NJJJXTRR-0adgjw0u.js +0 -21
  429. package/dist/rpm-Dwvm039g.js +0 -5
  430. package/dist/ruby-DpTnO5gb.js +0 -4
  431. package/dist/sas-CK9boxgv.js +0 -4
  432. package/dist/scheme-Y1aYL-Qq.js +0 -4
  433. package/dist/shell-D3eXGsHd.js +0 -4
  434. package/dist/sieve-BdwSFdWJ.js +0 -4
  435. package/dist/smalltalk-BTYJquCm.js +0 -4
  436. package/dist/sparql-CYF0g4Cc.js +0 -4
  437. package/dist/stateDiagram-v2-UMBNRL4Z-DdJ7qVWc.js +0 -39
  438. package/dist/stex-CyWhoWHt.js +0 -5
  439. package/dist/stylus-BBiKaI2h.js +0 -4
  440. package/dist/swift-COb15qFR.js +0 -4
  441. package/dist/tcl-Jik1LXu9.js +0 -4
  442. package/dist/textile-BFHPD3wr.js +0 -4
  443. package/dist/toml-Brp9fBXs.js +0 -4
  444. package/dist/treemap-75Q7IDZK-CyBT8_Wh.js +0 -21
  445. package/dist/troff-CcZRW4vg.js +0 -4
  446. package/dist/tslib.es6-3ZL768sZ.js +0 -49
  447. package/dist/ttcn-Bz_6ifRd.js +0 -4
  448. package/dist/ttcn-cfg-v-yi2rKc.js +0 -4
  449. package/dist/turtle-CDOsZYhB.js +0 -4
  450. package/dist/useDateFormatter-BkbjKw83.js +0 -543
  451. package/dist/vb-CL7fRwRw.js +0 -4
  452. package/dist/vbscript-CR2xfxpw.js +0 -4
  453. package/dist/vega-component-BfFcXZxw.js +0 -465
  454. package/dist/velocity-CfuZoxPt.js +0 -4
  455. package/dist/verilog-CySTkzw_.js +0 -4
  456. package/dist/vhdl-Dvcd8KHW.js +0 -4
  457. package/dist/webidl-tbJt7sKk.js +0 -4
  458. package/dist/xquery-DJQVztyc.js +0 -4
  459. package/dist/yacas-BbgBReEH.js +0 -4
  460. package/dist/z80-DPyb8VGz.js +0 -4
  461. /package/dist/{_arrayReduce-Cd9xQjbl.js → _arrayReduce-CmsTTAw1.js} +0 -0
  462. /package/dist/{_baseSlice-CE9WsQZm.js → _baseSlice-CAnpEJwx.js} +0 -0
  463. /package/dist/{_hasUnicode-DkEebvtD.js → _hasUnicode-CbmCTPAa.js} +0 -0
  464. /package/dist/{apl-aGhy11IM.js → apl-Css595_H.js} +0 -0
  465. /package/dist/{array-DYSXIreg.js → array-D3smvOQ_.js} +0 -0
  466. /package/dist/{asciiarmor-DJKJ3Gkn.js → asciiarmor-BTCuJwxh.js} +0 -0
  467. /package/dist/{asn1-C6f5IeNs.js → asn1-DXjhS5QI.js} +0 -0
  468. /package/dist/{asterisk-DB1poX9_.js → asterisk-5HlmsIaw.js} +0 -0
  469. /package/dist/{brainfuck-Ch9vjun0.js → brainfuck--WlEc-iG.js} +0 -0
  470. /package/dist/{chunk-57QY23SG-BpXU7ph4.js → chunk-57QY23SG-D7ymhFFp.js} +0 -0
  471. /package/dist/{click-outside-container-2BH589Bq.js → click-outside-container-DSVM9sZw.js} +0 -0
  472. /package/dist/{clike-Bc2PZzZQ.js → clike-DDIJB_R8.js} +0 -0
  473. /package/dist/{clojure-B_lpr3zt.js → clojure-Z-GPBZyY.js} +0 -0
  474. /package/dist/{cmake-DaocNF4I.js → cmake-DncBqspt.js} +0 -0
  475. /package/dist/{cobol-suTPtt7c.js → cobol-DqUe0gl7.js} +0 -0
  476. /package/dist/{coffeescript-CPLIvtqJ.js → coffeescript-CH5_OO0H.js} +0 -0
  477. /package/dist/{colors-BXlG8Lmz.js → colors-DQmMCNWX.js} +0 -0
  478. /package/dist/{common-keywords-Bhll7O3b.js → common-keywords-CAEsQSF5.js} +0 -0
  479. /package/dist/{commonlisp-BqM3qFK7.js → commonlisp-UmhR9BfE.js} +0 -0
  480. /package/dist/{crystal-AsSFu4ke.js → crystal-5Sqf7MXt.js} +0 -0
  481. /package/dist/{css-Df7Sdeyh.js → css-bDybSxwf.js} +0 -0
  482. /package/dist/{cypher-CaVKL6Gu.js → cypher-PIeAFhrd.js} +0 -0
  483. /package/dist/{cytoscape.esm-BFEMljQI.js → cytoscape.esm-DclyBJ4D.js} +0 -0
  484. /package/dist/{d-DCGWK7NQ.js → d-Bd8EVRQt.js} +0 -0
  485. /package/dist/{defaultLocale-Cto8YOmX.js → defaultLocale-BPzjWfXP.js} +0 -0
  486. /package/dist/{defaultLocale-CYgZlqDF.js → defaultLocale-Om7Wxg5c.js} +0 -0
  487. /package/dist/{diff-CsxOM4Tr.js → diff-CAQdgtD6.js} +0 -0
  488. /package/dist/{dtd-Dwr0Jmks.js → dtd-eKW3pZj_.js} +0 -0
  489. /package/dist/{duckdb-keywords-7wAWf848.js → duckdb-keywords-BC3kWZZM.js} +0 -0
  490. /package/dist/{dylan-A7-ZBSey.js → dylan-CIO7R9Tr.js} +0 -0
  491. /package/dist/{ebnf-9_SaGDUz.js → ebnf-Pr4a9I6n.js} +0 -0
  492. /package/dist/{ecl-BzJVIQDc.js → ecl-BqYW-aOJ.js} +0 -0
  493. /package/dist/{eiffel-CO9eC_Op.js → eiffel-BOKM91eM.js} +0 -0
  494. /package/dist/{elm-CVAWj8SB.js → elm-3sobs3PV.js} +0 -0
  495. /package/dist/{emotion-is-prop-valid.esm-C3Yi5GQt.js → emotion-is-prop-valid.esm-Cm1uulbm.js} +0 -0
  496. /package/dist/{erlang-DWbZP546.js → erlang-C5EBzhP1.js} +0 -0
  497. /package/dist/{esm-AtKNNGYO.js → esm-CopBBL2y.js} +0 -0
  498. /package/dist/{fcl-CM9t2iay.js → fcl-Brh8s8q_.js} +0 -0
  499. /package/dist/{forth-BTYqUuu3.js → forth-DneRHr4K.js} +0 -0
  500. /package/dist/{fortran-DgAjHcCq.js → fortran-DsdmZbwQ.js} +0 -0
  501. /package/dist/{gas-BjDSWPZd.js → gas-DaoJ65Z9.js} +0 -0
  502. /package/dist/{gherkin-ClRqqpKv.js → gherkin-DUP_UlW-.js} +0 -0
  503. /package/dist/{groovy-BzNjnc8x.js → groovy-Rvyan8yX.js} +0 -0
  504. /package/dist/{haskell-DLdk34Jq.js → haskell-DIvpY54L.js} +0 -0
  505. /package/dist/{haxe-l6gaY_IS.js → haxe-Da_5bBNs.js} +0 -0
  506. /package/dist/{http-6Qg7z_h2.js → http-CMvcwl3E.js} +0 -0
  507. /package/dist/{idl-hlWT4D26.js → idl-DvL3aO0N.js} +0 -0
  508. /package/dist/{init-tZ42Torz.js → init-BNp5RczD.js} +0 -0
  509. /package/dist/{invariant-D3JoRb4I.js → invariant-Cl2wkkjN.js} +0 -0
  510. /package/dist/{isArrayLikeObject-DU5MCuQM.js → isArrayLikeObject-1qkWxZbL.js} +0 -0
  511. /package/dist/{javascript-DGukg1sB.js → javascript-DoyAP8vn.js} +0 -0
  512. /package/dist/{jinja2-DI5k_Er3.js → jinja2-Veqp7mFj.js} +0 -0
  513. /package/dist/{julia-BvDZDiIT.js → julia-Gi684CX7.js} +0 -0
  514. /package/dist/{katex-DgfMWJY9.js → katex-U6RPAuWM.js} +0 -0
  515. /package/dist/{livescript-2YMQfkfI.js → livescript-BKj_Zhvo.js} +0 -0
  516. /package/dist/{lua-DIUrQRfA.js → lua-CDA7hreG.js} +0 -0
  517. /package/dist/{main-BMTpe7M0.js → main-63eIj2Yx.js} +0 -0
  518. /package/dist/{marked.esm-DkVwEwtO.js → marked.esm-DE8HU3tw.js} +0 -0
  519. /package/dist/{math-qsHyz2Eo.js → math-C2iLT5gz.js} +0 -0
  520. /package/dist/{mathematica-Dqmg_BwL.js → mathematica-GWfSHReY.js} +0 -0
  521. /package/dist/{mbox-Cng-P-F1.js → mbox-Dwsrc4Ak.js} +0 -0
  522. /package/dist/{mirc-CNDqOVhQ.js → mirc-B2JE5ype.js} +0 -0
  523. /package/dist/{mllike-C1n2UDyX.js → mllike-BkBh4PFX.js} +0 -0
  524. /package/dist/{modelica-QqQC2pFj.js → modelica-C0hNlKgR.js} +0 -0
  525. /package/dist/{mscgen-C3fl8uhp.js → mscgen-DWWpdZnb.js} +0 -0
  526. /package/dist/{mumps-BeCUbMej.js → mumps-CMePAlSe.js} +0 -0
  527. /package/dist/{nginx-ejv7DsBz.js → nginx-GurZbX0E.js} +0 -0
  528. /package/dist/{node-sql-parser-CoPWN4hn.js → node-sql-parser-IKID_dZE.js} +0 -0
  529. /package/dist/{ntriples-CUgUpcma.js → ntriples-BnE6tX0Y.js} +0 -0
  530. /package/dist/{octave-BD652tGl.js → octave-Dfu3PmNP.js} +0 -0
  531. /package/dist/{oz-DrRsFa0K.js → oz-DqNpAjpZ.js} +0 -0
  532. /package/dist/{pascal-hpcx9sVn.js → pascal-GP_8jbNL.js} +0 -0
  533. /package/dist/{path-Bbv2tLY1.js → path-BeMi_1Je.js} +0 -0
  534. /package/dist/{perl-DW8XHeFc.js → perl-DUDEqQOD.js} +0 -0
  535. /package/dist/{pig-Cv7Nxbfo.js → pig-Csr4LnKs.js} +0 -0
  536. /package/dist/{powershell-Dr7WZMDU.js → powershell-Cw4tDKZx.js} +0 -0
  537. /package/dist/{prop-types-Bd16OEUP.js → prop-types-CzOfzj9N.js} +0 -0
  538. /package/dist/{properties-D-qJDXAM.js → properties-CUhUGfHR.js} +0 -0
  539. /package/dist/{protobuf-B48QZbd3.js → protobuf-CPZe957V.js} +0 -0
  540. /package/dist/{puppet-15JDyiY2.js → puppet-BP1AOwo6.js} +0 -0
  541. /package/dist/{purify.es-CrfFzTyi.js → purify.es-CDFkadZl.js} +0 -0
  542. /package/dist/{python-DWkQA94h.js → python-BMcMimC3.js} +0 -0
  543. /package/dist/{q-BzRpKgfd.js → q-BNfSHUci.js} +0 -0
  544. /package/dist/{r-dcNRe_Q8.js → r-DiJzLRZc.js} +0 -0
  545. /package/dist/{range-CQvYp_qE.js → range-sX2tw-Jz.js} +0 -0
  546. /package/dist/{react-dom-CpBooCbY.js → react-dom-BTjywDxo.js} +0 -0
  547. /package/dist/{rpm-Djl3Dsf1.js → rpm-CywAxCKo.js} +0 -0
  548. /package/dist/{ruby-Dd2CZTip.js → ruby-B0a4mSSU.js} +0 -0
  549. /package/dist/{sas-DYF5_Iqu.js → sas-DTh30wZQ.js} +0 -0
  550. /package/dist/{scheme-YtWcji1H.js → scheme-CsOlAIFf.js} +0 -0
  551. /package/dist/{shell-C3uC3Y0Z.js → shell-7w75P-tg.js} +0 -0
  552. /package/dist/{sieve-DHB17sQG.js → sieve-BphUEMa4.js} +0 -0
  553. /package/dist/{simple-mode-BMmwP_vI.js → simple-mode-BcThS5Pa.js} +0 -0
  554. /package/dist/{smalltalk-Y5v1Np3H.js → smalltalk-CHwdNey_.js} +0 -0
  555. /package/dist/{solr-DvRJLlRD.js → solr-CuWbYJLt.js} +0 -0
  556. /package/dist/{sparql-BEt3GJwM.js → sparql-BtwCqUvT.js} +0 -0
  557. /package/dist/{spreadsheet-Dp4B9_rc.js → spreadsheet-C1JzeuKn.js} +0 -0
  558. /package/dist/{sql-DBsUs8nQ.js → sql-wv_2DQzf.js} +0 -0
  559. /package/dist/{stex-C6-x52ei.js → stex-BmcrV7cx.js} +0 -0
  560. /package/dist/{stylus-DroA8via.js → stylus-SVJ7TGPh.js} +0 -0
  561. /package/dist/{swift-DR0x1ESK.js → swift-f7KaABxm.js} +0 -0
  562. /package/dist/{tcl-BeuTFc_c.js → tcl-CbTFkeHJ.js} +0 -0
  563. /package/dist/{textile-C0ikhHN3.js → textile-CFn6QLRy.js} +0 -0
  564. /package/dist/{tiddlywiki-C_2Nvsgu.js → tiddlywiki-DBhMcdVM.js} +0 -0
  565. /package/dist/{tiki-CKQlhmQQ.js → tiki-CqcXr_YN.js} +0 -0
  566. /package/dist/{timer-CcUhugb0.js → timer-ly0jlpkr.js} +0 -0
  567. /package/dist/{toml-BqNUJWRI.js → toml-YgDIoI1n.js} +0 -0
  568. /package/dist/{treemap-BYLUKIzA.js → treemap-D5sUCpbF.js} +0 -0
  569. /package/dist/{troff-DkK0f2ZH.js → troff-CIp_4RXg.js} +0 -0
  570. /package/dist/{ttcn-Bf8vrg-_.js → ttcn-Yn_uOBYK.js} +0 -0
  571. /package/dist/{ttcn-cfg-DjCKzd95.js → ttcn-cfg-BVum2rmM.js} +0 -0
  572. /package/dist/{turtle-SSc84S9m.js → turtle-BeWx-YoQ.js} +0 -0
  573. /package/dist/{vb-CQ6DC3cL.js → vb-DKEmSA_2.js} +0 -0
  574. /package/dist/{vbscript-Dw0gFssg.js → vbscript-BPsxuP0n.js} +0 -0
  575. /package/dist/{velocity-BvJQyBmj.js → velocity-ycm1NvlO.js} +0 -0
  576. /package/dist/{verilog-CKGAvQjj.js → verilog-ogjm0Ytr.js} +0 -0
  577. /package/dist/{vhdl-B40_x6fM.js → vhdl-BvjyOM9y.js} +0 -0
  578. /package/dist/{webidl-Bi9hczCv.js → webidl-QdwcTYEu.js} +0 -0
  579. /package/dist/{xquery-DwWUXvP3.js → xquery-BErHIIc-.js} +0 -0
  580. /package/dist/{yacas-ClUs0mmH.js → yacas-BBBJNs0h.js} +0 -0
  581. /package/dist/{z80-DPC4UGzR.js → z80-nG9RRukG.js} +0 -0
  582. /package/dist/{zod-mAEs2ITo.js → zod-0AbTN3Cg.js} +0 -0
@@ -1,5 +1,2152 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
+ exports[`makeSelectable > should add bin_coloring param for 2D binned histogram 1`] = `
4
+ {
5
+ "encoding": {
6
+ "color": {
7
+ "aggregate": "count",
8
+ "type": "quantitative",
9
+ },
10
+ "opacity": {
11
+ "condition": {
12
+ "test": {
13
+ "and": [
14
+ {
15
+ "param": "bin_coloring",
16
+ },
17
+ ],
18
+ },
19
+ "value": 1,
20
+ },
21
+ "value": 0.2,
22
+ },
23
+ "x": {
24
+ "bin": true,
25
+ "field": "x",
26
+ "type": "quantitative",
27
+ },
28
+ "y": {
29
+ "bin": true,
30
+ "field": "y",
31
+ "type": "quantitative",
32
+ },
33
+ },
34
+ "mark": {
35
+ "cursor": "pointer",
36
+ "tooltip": true,
37
+ "type": "rect",
38
+ },
39
+ "params": [
40
+ {
41
+ "name": "select_point",
42
+ "select": {
43
+ "encodings": [
44
+ "x",
45
+ "y",
46
+ ],
47
+ "on": "click[!event.metaKey]",
48
+ "type": "point",
49
+ },
50
+ },
51
+ {
52
+ "name": "bin_coloring",
53
+ "select": {
54
+ "on": "click[!event.metaKey]",
55
+ "type": "point",
56
+ },
57
+ },
58
+ {
59
+ "bind": "scales",
60
+ "name": "pan_zoom",
61
+ "select": {
62
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
63
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
64
+ "type": "interval",
65
+ "zoom": "wheel![event.metaKey]",
66
+ },
67
+ },
68
+ ],
69
+ }
70
+ `;
71
+
72
+ exports[`makeSelectable > should add bin_coloring param for binned charts 1`] = `
73
+ {
74
+ "encoding": {
75
+ "opacity": {
76
+ "condition": {
77
+ "test": {
78
+ "and": [
79
+ {
80
+ "param": "bin_coloring",
81
+ },
82
+ ],
83
+ },
84
+ "value": 1,
85
+ },
86
+ "value": 0.2,
87
+ },
88
+ "x": {
89
+ "bin": true,
90
+ "field": "x",
91
+ "type": "quantitative",
92
+ },
93
+ "y": {
94
+ "aggregate": "count",
95
+ "type": "quantitative",
96
+ },
97
+ },
98
+ "mark": {
99
+ "cursor": "pointer",
100
+ "tooltip": true,
101
+ "type": "bar",
102
+ },
103
+ "params": [
104
+ {
105
+ "name": "select_point",
106
+ "select": {
107
+ "encodings": [
108
+ "x",
109
+ ],
110
+ "on": "click[!event.metaKey]",
111
+ "type": "point",
112
+ },
113
+ },
114
+ {
115
+ "name": "bin_coloring",
116
+ "select": {
117
+ "on": "click[!event.metaKey]",
118
+ "type": "point",
119
+ },
120
+ },
121
+ {
122
+ "bind": "scales",
123
+ "name": "pan_zoom",
124
+ "select": {
125
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
126
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
127
+ "type": "interval",
128
+ "zoom": "wheel![event.metaKey]",
129
+ },
130
+ },
131
+ ],
132
+ }
133
+ `;
134
+
135
+ exports[`makeSelectable > should add bin_coloring param for layered binned charts 1`] = `
136
+ {
137
+ "layer": [
138
+ {
139
+ "encoding": {
140
+ "opacity": {
141
+ "condition": {
142
+ "test": {
143
+ "and": [
144
+ {
145
+ "param": "bin_coloring_0",
146
+ },
147
+ ],
148
+ },
149
+ "value": 1,
150
+ },
151
+ "value": 0.2,
152
+ },
153
+ "x": {
154
+ "bin": true,
155
+ "field": "x",
156
+ "type": "quantitative",
157
+ },
158
+ "y": {
159
+ "aggregate": "count",
160
+ "type": "quantitative",
161
+ },
162
+ },
163
+ "mark": {
164
+ "cursor": "pointer",
165
+ "tooltip": true,
166
+ "type": "bar",
167
+ },
168
+ "params": [
169
+ {
170
+ "name": "select_point_0",
171
+ "select": {
172
+ "encodings": [
173
+ "x",
174
+ ],
175
+ "on": "click[!event.metaKey]",
176
+ "type": "point",
177
+ },
178
+ },
179
+ {
180
+ "name": "bin_coloring_0",
181
+ "select": {
182
+ "on": "click[!event.metaKey]",
183
+ "type": "point",
184
+ },
185
+ },
186
+ {
187
+ "bind": "scales",
188
+ "name": "pan_zoom",
189
+ "select": {
190
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
191
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
192
+ "type": "interval",
193
+ "zoom": "wheel![event.metaKey]",
194
+ },
195
+ },
196
+ ],
197
+ },
198
+ {
199
+ "encoding": {
200
+ "color": {
201
+ "value": "red",
202
+ },
203
+ "opacity": {
204
+ "condition": {
205
+ "test": {
206
+ "and": [
207
+ {
208
+ "param": "select_point_1",
209
+ },
210
+ {
211
+ "param": "select_interval_1",
212
+ },
213
+ ],
214
+ },
215
+ "value": 1,
216
+ },
217
+ "value": 0.2,
218
+ },
219
+ "x": {
220
+ "aggregate": "mean",
221
+ "field": "x",
222
+ "type": "quantitative",
223
+ },
224
+ },
225
+ "mark": {
226
+ "cursor": "pointer",
227
+ "tooltip": true,
228
+ "type": "rule",
229
+ },
230
+ "params": [
231
+ {
232
+ "name": "select_point_1",
233
+ "select": {
234
+ "encodings": [
235
+ "x",
236
+ "y",
237
+ ],
238
+ "on": "click[!event.metaKey]",
239
+ "type": "point",
240
+ },
241
+ },
242
+ {
243
+ "name": "select_interval_1",
244
+ "select": {
245
+ "encodings": [
246
+ "x",
247
+ "y",
248
+ ],
249
+ "mark": {
250
+ "fill": "#669EFF",
251
+ "fillOpacity": 0.07,
252
+ "stroke": "#669EFF",
253
+ "strokeOpacity": 0.4,
254
+ },
255
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
256
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
257
+ "type": "interval",
258
+ },
259
+ },
260
+ ],
261
+ },
262
+ ],
263
+ }
264
+ `;
265
+
266
+ exports[`makeSelectable > should add legend selection to composite charts (issue #6676) 1`] = `
267
+ {
268
+ "layer": [
269
+ {
270
+ "encoding": {
271
+ "color": {
272
+ "field": "category",
273
+ "type": "nominal",
274
+ },
275
+ "opacity": {
276
+ "condition": {
277
+ "test": {
278
+ "and": [
279
+ {
280
+ "param": "legend_selection_category",
281
+ },
282
+ {
283
+ "param": "select_point_0",
284
+ },
285
+ {
286
+ "param": "select_interval_0",
287
+ },
288
+ ],
289
+ },
290
+ "value": 1,
291
+ },
292
+ "value": 0.2,
293
+ },
294
+ "x": {
295
+ "field": "x_value",
296
+ "type": "quantitative",
297
+ },
298
+ "y": {
299
+ "field": "upper",
300
+ "type": "quantitative",
301
+ },
302
+ "y2": {
303
+ "field": "lower",
304
+ },
305
+ },
306
+ "mark": {
307
+ "cursor": "pointer",
308
+ "tooltip": true,
309
+ "type": "rule",
310
+ },
311
+ "params": [
312
+ {
313
+ "bind": "legend",
314
+ "name": "legend_selection_category",
315
+ "select": {
316
+ "fields": [
317
+ "category",
318
+ ],
319
+ "type": "point",
320
+ },
321
+ },
322
+ {
323
+ "name": "select_point_0",
324
+ "select": {
325
+ "encodings": [
326
+ "x",
327
+ "y",
328
+ ],
329
+ "on": "click[!event.metaKey]",
330
+ "type": "point",
331
+ },
332
+ },
333
+ {
334
+ "name": "select_interval_0",
335
+ "select": {
336
+ "encodings": [
337
+ "x",
338
+ "y",
339
+ ],
340
+ "mark": {
341
+ "fill": "#669EFF",
342
+ "fillOpacity": 0.07,
343
+ "stroke": "#669EFF",
344
+ "strokeOpacity": 0.4,
345
+ },
346
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
347
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
348
+ "type": "interval",
349
+ },
350
+ },
351
+ {
352
+ "bind": "scales",
353
+ "name": "pan_zoom",
354
+ "select": {
355
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
356
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
357
+ "type": "interval",
358
+ "zoom": "wheel![event.metaKey]",
359
+ },
360
+ },
361
+ ],
362
+ },
363
+ {
364
+ "encoding": {
365
+ "color": {
366
+ "field": "category",
367
+ "type": "nominal",
368
+ },
369
+ "opacity": {
370
+ "condition": {
371
+ "test": {
372
+ "and": [
373
+ {
374
+ "param": "select_point_1",
375
+ },
376
+ {
377
+ "param": "select_interval_1",
378
+ },
379
+ ],
380
+ },
381
+ "value": 1,
382
+ },
383
+ "value": 0.2,
384
+ },
385
+ "x": {
386
+ "field": "x_value",
387
+ "type": "quantitative",
388
+ },
389
+ "y": {
390
+ "field": "value",
391
+ "type": "quantitative",
392
+ },
393
+ },
394
+ "mark": {
395
+ "cursor": "pointer",
396
+ "filled": true,
397
+ "size": 60,
398
+ "tooltip": true,
399
+ "type": "point",
400
+ },
401
+ "params": [
402
+ {
403
+ "name": "select_point_1",
404
+ "select": {
405
+ "encodings": [
406
+ "x",
407
+ "y",
408
+ ],
409
+ "on": "click[!event.metaKey]",
410
+ "type": "point",
411
+ },
412
+ },
413
+ {
414
+ "name": "select_interval_1",
415
+ "select": {
416
+ "encodings": [
417
+ "x",
418
+ "y",
419
+ ],
420
+ "mark": {
421
+ "fill": "#669EFF",
422
+ "fillOpacity": 0.07,
423
+ "stroke": "#669EFF",
424
+ "strokeOpacity": 0.4,
425
+ },
426
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
427
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
428
+ "type": "interval",
429
+ },
430
+ },
431
+ ],
432
+ },
433
+ ],
434
+ }
435
+ `;
436
+
437
+ exports[`makeSelectable > should add legend selection to hconcat specs 1`] = `
438
+ {
439
+ "hconcat": [
440
+ {
441
+ "encoding": {
442
+ "color": {
443
+ "field": "series",
444
+ "type": "nominal",
445
+ },
446
+ "opacity": {
447
+ "condition": {
448
+ "test": {
449
+ "and": [
450
+ {
451
+ "param": "legend_selection_series",
452
+ },
453
+ {
454
+ "param": "pan_zoom",
455
+ },
456
+ ],
457
+ },
458
+ "value": 1,
459
+ },
460
+ "value": 0.2,
461
+ },
462
+ "x": {
463
+ "field": "x",
464
+ "type": "quantitative",
465
+ },
466
+ "y": {
467
+ "field": "y",
468
+ "type": "quantitative",
469
+ },
470
+ },
471
+ "mark": {
472
+ "cursor": "pointer",
473
+ "tooltip": true,
474
+ "type": "point",
475
+ },
476
+ "params": [
477
+ {
478
+ "name": "select_point",
479
+ "select": {
480
+ "encodings": [
481
+ "x",
482
+ "y",
483
+ ],
484
+ "on": "click[!event.metaKey]",
485
+ "type": "point",
486
+ },
487
+ },
488
+ {
489
+ "name": "select_interval",
490
+ "select": {
491
+ "encodings": [
492
+ "x",
493
+ "y",
494
+ ],
495
+ "mark": {
496
+ "fill": "#669EFF",
497
+ "fillOpacity": 0.07,
498
+ "stroke": "#669EFF",
499
+ "strokeOpacity": 0.4,
500
+ },
501
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
502
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
503
+ "type": "interval",
504
+ },
505
+ },
506
+ ],
507
+ },
508
+ {
509
+ "encoding": {
510
+ "color": {
511
+ "field": "series",
512
+ "type": "nominal",
513
+ },
514
+ "opacity": {
515
+ "condition": {
516
+ "test": {
517
+ "and": [
518
+ {
519
+ "param": "legend_selection_series",
520
+ },
521
+ {
522
+ "param": "pan_zoom",
523
+ },
524
+ ],
525
+ },
526
+ "value": 1,
527
+ },
528
+ "value": 0.2,
529
+ },
530
+ "x": {
531
+ "field": "x",
532
+ "type": "quantitative",
533
+ },
534
+ "y": {
535
+ "field": "y",
536
+ "type": "quantitative",
537
+ },
538
+ },
539
+ "mark": {
540
+ "cursor": "pointer",
541
+ "tooltip": true,
542
+ "type": "line",
543
+ },
544
+ },
545
+ ],
546
+ "params": [
547
+ {
548
+ "bind": "legend",
549
+ "name": "legend_selection_series",
550
+ "select": {
551
+ "fields": [
552
+ "series",
553
+ ],
554
+ "type": "point",
555
+ },
556
+ },
557
+ {
558
+ "bind": "scales",
559
+ "name": "pan_zoom",
560
+ "select": {
561
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
562
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
563
+ "type": "interval",
564
+ "zoom": "wheel![event.metaKey]",
565
+ },
566
+ },
567
+ ],
568
+ }
569
+ `;
570
+
571
+ exports[`makeSelectable > should add legend selection to nested vconcat(hconcat(...)) specs 1`] = `
572
+ {
573
+ "params": [
574
+ {
575
+ "bind": "legend",
576
+ "name": "legend_selection_category",
577
+ "select": {
578
+ "fields": [
579
+ "category",
580
+ ],
581
+ "type": "point",
582
+ },
583
+ },
584
+ {
585
+ "bind": "scales",
586
+ "name": "pan_zoom",
587
+ "select": {
588
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
589
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
590
+ "type": "interval",
591
+ "zoom": "wheel![event.metaKey]",
592
+ },
593
+ },
594
+ ],
595
+ "vconcat": [
596
+ {
597
+ "hconcat": [
598
+ {
599
+ "encoding": {
600
+ "color": {
601
+ "field": "category",
602
+ "type": "nominal",
603
+ },
604
+ "opacity": {
605
+ "condition": {
606
+ "test": {
607
+ "and": [
608
+ {
609
+ "param": "legend_selection_category",
610
+ },
611
+ {
612
+ "param": "pan_zoom",
613
+ },
614
+ ],
615
+ },
616
+ "value": 1,
617
+ },
618
+ "value": 0.2,
619
+ },
620
+ "x": {
621
+ "field": "x",
622
+ "type": "quantitative",
623
+ },
624
+ "y": {
625
+ "field": "y",
626
+ "type": "quantitative",
627
+ },
628
+ },
629
+ "mark": {
630
+ "cursor": "pointer",
631
+ "tooltip": true,
632
+ "type": "point",
633
+ },
634
+ },
635
+ {
636
+ "encoding": {
637
+ "color": {
638
+ "field": "category",
639
+ "type": "nominal",
640
+ },
641
+ "opacity": {
642
+ "condition": {
643
+ "test": {
644
+ "and": [
645
+ {
646
+ "param": "legend_selection_category",
647
+ },
648
+ {
649
+ "param": "pan_zoom",
650
+ },
651
+ ],
652
+ },
653
+ "value": 1,
654
+ },
655
+ "value": 0.2,
656
+ },
657
+ "x": {
658
+ "field": "x",
659
+ "type": "nominal",
660
+ },
661
+ "y": {
662
+ "field": "y",
663
+ "type": "quantitative",
664
+ },
665
+ },
666
+ "mark": {
667
+ "cursor": "pointer",
668
+ "tooltip": true,
669
+ "type": "bar",
670
+ },
671
+ },
672
+ ],
673
+ },
674
+ {
675
+ "encoding": {
676
+ "color": {
677
+ "field": "category",
678
+ "type": "nominal",
679
+ },
680
+ "opacity": {
681
+ "condition": {
682
+ "test": {
683
+ "and": [
684
+ {
685
+ "param": "legend_selection_category",
686
+ },
687
+ {
688
+ "param": "pan_zoom",
689
+ },
690
+ ],
691
+ },
692
+ "value": 1,
693
+ },
694
+ "value": 0.2,
695
+ },
696
+ "x": {
697
+ "field": "x",
698
+ "type": "quantitative",
699
+ },
700
+ "y": {
701
+ "field": "y",
702
+ "type": "quantitative",
703
+ },
704
+ },
705
+ "mark": {
706
+ "cursor": "pointer",
707
+ "tooltip": true,
708
+ "type": "line",
709
+ },
710
+ },
711
+ ],
712
+ }
713
+ `;
714
+
715
+ exports[`makeSelectable > should add legend selection to vconcat specs 1`] = `
716
+ {
717
+ "params": [
718
+ {
719
+ "bind": "legend",
720
+ "name": "legend_selection_category",
721
+ "select": {
722
+ "fields": [
723
+ "category",
724
+ ],
725
+ "type": "point",
726
+ },
727
+ },
728
+ {
729
+ "bind": "scales",
730
+ "name": "pan_zoom",
731
+ "select": {
732
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
733
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
734
+ "type": "interval",
735
+ "zoom": "wheel![event.metaKey]",
736
+ },
737
+ },
738
+ ],
739
+ "vconcat": [
740
+ {
741
+ "encoding": {
742
+ "color": {
743
+ "field": "category",
744
+ "type": "nominal",
745
+ },
746
+ "opacity": {
747
+ "condition": {
748
+ "test": {
749
+ "and": [
750
+ {
751
+ "param": "legend_selection_category",
752
+ },
753
+ {
754
+ "param": "pan_zoom",
755
+ },
756
+ ],
757
+ },
758
+ "value": 1,
759
+ },
760
+ "value": 0.2,
761
+ },
762
+ "x": {
763
+ "field": "x",
764
+ "type": "quantitative",
765
+ },
766
+ "y": {
767
+ "field": "y",
768
+ "type": "quantitative",
769
+ },
770
+ },
771
+ "mark": {
772
+ "cursor": "pointer",
773
+ "tooltip": true,
774
+ "type": "point",
775
+ },
776
+ "params": [
777
+ {
778
+ "name": "select_point",
779
+ "select": {
780
+ "encodings": [
781
+ "x",
782
+ "y",
783
+ ],
784
+ "on": "click[!event.metaKey]",
785
+ "type": "point",
786
+ },
787
+ },
788
+ {
789
+ "name": "select_interval",
790
+ "select": {
791
+ "encodings": [
792
+ "x",
793
+ "y",
794
+ ],
795
+ "mark": {
796
+ "fill": "#669EFF",
797
+ "fillOpacity": 0.07,
798
+ "stroke": "#669EFF",
799
+ "strokeOpacity": 0.4,
800
+ },
801
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
802
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
803
+ "type": "interval",
804
+ },
805
+ },
806
+ ],
807
+ },
808
+ {
809
+ "encoding": {
810
+ "color": {
811
+ "field": "category",
812
+ "type": "nominal",
813
+ },
814
+ "opacity": {
815
+ "condition": {
816
+ "test": {
817
+ "and": [
818
+ {
819
+ "param": "legend_selection_category",
820
+ },
821
+ {
822
+ "param": "pan_zoom",
823
+ },
824
+ ],
825
+ },
826
+ "value": 1,
827
+ },
828
+ "value": 0.2,
829
+ },
830
+ "x": {
831
+ "field": "x",
832
+ "type": "nominal",
833
+ },
834
+ "y": {
835
+ "field": "y",
836
+ "type": "quantitative",
837
+ },
838
+ },
839
+ "mark": {
840
+ "cursor": "pointer",
841
+ "tooltip": true,
842
+ "type": "bar",
843
+ },
844
+ "params": [
845
+ {
846
+ "name": "select_point",
847
+ "select": {
848
+ "encodings": [
849
+ "x",
850
+ ],
851
+ "on": "click[!event.metaKey]",
852
+ "type": "point",
853
+ },
854
+ },
855
+ {
856
+ "name": "select_interval",
857
+ "select": {
858
+ "encodings": [
859
+ "x",
860
+ ],
861
+ "mark": {
862
+ "fill": "#669EFF",
863
+ "fillOpacity": 0.07,
864
+ "stroke": "#669EFF",
865
+ "strokeOpacity": 0.4,
866
+ },
867
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
868
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
869
+ "type": "interval",
870
+ },
871
+ },
872
+ ],
873
+ },
874
+ ],
875
+ }
876
+ `;
877
+
878
+ exports[`makeSelectable > should collect legend fields from multiple layers with different fields 1`] = `
879
+ {
880
+ "layer": [
881
+ {
882
+ "encoding": {
883
+ "color": {
884
+ "field": "category",
885
+ "type": "nominal",
886
+ },
887
+ "opacity": {
888
+ "condition": {
889
+ "test": {
890
+ "and": [
891
+ {
892
+ "param": "legend_selection_category",
893
+ },
894
+ {
895
+ "param": "legend_selection_size_field",
896
+ },
897
+ {
898
+ "param": "select_point_0",
899
+ },
900
+ {
901
+ "param": "select_interval_0",
902
+ },
903
+ ],
904
+ },
905
+ "value": 1,
906
+ },
907
+ "value": 0.2,
908
+ },
909
+ "x": {
910
+ "field": "x",
911
+ "type": "quantitative",
912
+ },
913
+ "y": {
914
+ "field": "y",
915
+ "type": "quantitative",
916
+ },
917
+ },
918
+ "mark": {
919
+ "cursor": "pointer",
920
+ "tooltip": true,
921
+ "type": "point",
922
+ },
923
+ "params": [
924
+ {
925
+ "bind": "legend",
926
+ "name": "legend_selection_category",
927
+ "select": {
928
+ "fields": [
929
+ "category",
930
+ ],
931
+ "type": "point",
932
+ },
933
+ },
934
+ {
935
+ "bind": "legend",
936
+ "name": "legend_selection_size_field",
937
+ "select": {
938
+ "fields": [
939
+ "size_field",
940
+ ],
941
+ "type": "point",
942
+ },
943
+ },
944
+ {
945
+ "name": "select_point_0",
946
+ "select": {
947
+ "encodings": [
948
+ "x",
949
+ "y",
950
+ ],
951
+ "on": "click[!event.metaKey]",
952
+ "type": "point",
953
+ },
954
+ },
955
+ {
956
+ "name": "select_interval_0",
957
+ "select": {
958
+ "encodings": [
959
+ "x",
960
+ "y",
961
+ ],
962
+ "mark": {
963
+ "fill": "#669EFF",
964
+ "fillOpacity": 0.07,
965
+ "stroke": "#669EFF",
966
+ "strokeOpacity": 0.4,
967
+ },
968
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
969
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
970
+ "type": "interval",
971
+ },
972
+ },
973
+ {
974
+ "bind": "scales",
975
+ "name": "pan_zoom",
976
+ "select": {
977
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
978
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
979
+ "type": "interval",
980
+ "zoom": "wheel![event.metaKey]",
981
+ },
982
+ },
983
+ ],
984
+ },
985
+ {
986
+ "encoding": {
987
+ "opacity": {
988
+ "condition": {
989
+ "test": {
990
+ "and": [
991
+ {
992
+ "param": "select_point_1",
993
+ },
994
+ {
995
+ "param": "select_interval_1",
996
+ },
997
+ ],
998
+ },
999
+ "value": 1,
1000
+ },
1001
+ "value": 0.2,
1002
+ },
1003
+ "size": {
1004
+ "field": "size_field",
1005
+ "type": "quantitative",
1006
+ },
1007
+ "x": {
1008
+ "field": "x",
1009
+ "type": "quantitative",
1010
+ },
1011
+ "y": {
1012
+ "field": "y",
1013
+ "type": "quantitative",
1014
+ },
1015
+ },
1016
+ "mark": {
1017
+ "cursor": "pointer",
1018
+ "tooltip": true,
1019
+ "type": "point",
1020
+ },
1021
+ "params": [
1022
+ {
1023
+ "name": "select_point_1",
1024
+ "select": {
1025
+ "encodings": [
1026
+ "x",
1027
+ "y",
1028
+ ],
1029
+ "on": "click[!event.metaKey]",
1030
+ "type": "point",
1031
+ },
1032
+ },
1033
+ {
1034
+ "name": "select_interval_1",
1035
+ "select": {
1036
+ "encodings": [
1037
+ "x",
1038
+ "y",
1039
+ ],
1040
+ "mark": {
1041
+ "fill": "#669EFF",
1042
+ "fillOpacity": 0.07,
1043
+ "stroke": "#669EFF",
1044
+ "strokeOpacity": 0.4,
1045
+ },
1046
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1047
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1048
+ "type": "interval",
1049
+ },
1050
+ },
1051
+ ],
1052
+ },
1053
+ ],
1054
+ }
1055
+ `;
1056
+
1057
+ exports[`makeSelectable > should handle concat with only one subspec 1`] = `
1058
+ {
1059
+ "hconcat": [
1060
+ {
1061
+ "encoding": {
1062
+ "opacity": {
1063
+ "condition": {
1064
+ "test": {
1065
+ "and": [
1066
+ {
1067
+ "param": "select_point",
1068
+ },
1069
+ {
1070
+ "param": "select_interval",
1071
+ },
1072
+ {
1073
+ "param": "pan_zoom",
1074
+ },
1075
+ ],
1076
+ },
1077
+ "value": 1,
1078
+ },
1079
+ "value": 0.2,
1080
+ },
1081
+ "x": {
1082
+ "field": "x",
1083
+ "type": "quantitative",
1084
+ },
1085
+ "y": {
1086
+ "field": "y",
1087
+ "type": "quantitative",
1088
+ },
1089
+ },
1090
+ "mark": {
1091
+ "cursor": "pointer",
1092
+ "tooltip": true,
1093
+ "type": "point",
1094
+ },
1095
+ },
1096
+ ],
1097
+ "params": [
1098
+ {
1099
+ "name": "select_point",
1100
+ "select": {
1101
+ "encodings": [
1102
+ "x",
1103
+ "y",
1104
+ ],
1105
+ "on": "click[!event.metaKey]",
1106
+ "type": "point",
1107
+ },
1108
+ },
1109
+ {
1110
+ "name": "select_interval",
1111
+ "select": {
1112
+ "encodings": [
1113
+ "x",
1114
+ "y",
1115
+ ],
1116
+ "mark": {
1117
+ "fill": "#669EFF",
1118
+ "fillOpacity": 0.07,
1119
+ "stroke": "#669EFF",
1120
+ "strokeOpacity": 0.4,
1121
+ },
1122
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1123
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1124
+ "type": "interval",
1125
+ },
1126
+ },
1127
+ {
1128
+ "bind": "scales",
1129
+ "name": "pan_zoom",
1130
+ "select": {
1131
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1132
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1133
+ "type": "interval",
1134
+ "zoom": "wheel![event.metaKey]",
1135
+ },
1136
+ },
1137
+ ],
1138
+ }
1139
+ `;
1140
+
1141
+ exports[`makeSelectable > should handle empty concat specs gracefully 1`] = `
1142
+ {
1143
+ "hconcat": [],
1144
+ }
1145
+ `;
1146
+
1147
+ exports[`makeSelectable > should hoist only common legend params when chart selections differ 1`] = `
1148
+ {
1149
+ "hconcat": [
1150
+ {
1151
+ "encoding": {
1152
+ "color": {
1153
+ "field": "category",
1154
+ "type": "nominal",
1155
+ },
1156
+ "opacity": {
1157
+ "condition": {
1158
+ "test": {
1159
+ "and": [
1160
+ {
1161
+ "param": "legend_selection_category",
1162
+ },
1163
+ {
1164
+ "param": "pan_zoom",
1165
+ },
1166
+ ],
1167
+ },
1168
+ "value": 1,
1169
+ },
1170
+ "value": 0.2,
1171
+ },
1172
+ "x": {
1173
+ "field": "x",
1174
+ "type": "quantitative",
1175
+ },
1176
+ "y": {
1177
+ "field": "y",
1178
+ "type": "quantitative",
1179
+ },
1180
+ },
1181
+ "mark": {
1182
+ "cursor": "pointer",
1183
+ "tooltip": true,
1184
+ "type": "point",
1185
+ },
1186
+ "params": [
1187
+ {
1188
+ "name": "select_point",
1189
+ "select": {
1190
+ "encodings": [
1191
+ "x",
1192
+ "y",
1193
+ ],
1194
+ "on": "click[!event.metaKey]",
1195
+ "type": "point",
1196
+ },
1197
+ },
1198
+ {
1199
+ "name": "select_interval",
1200
+ "select": {
1201
+ "encodings": [
1202
+ "x",
1203
+ "y",
1204
+ ],
1205
+ "mark": {
1206
+ "fill": "#669EFF",
1207
+ "fillOpacity": 0.07,
1208
+ "stroke": "#669EFF",
1209
+ "strokeOpacity": 0.4,
1210
+ },
1211
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1212
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1213
+ "type": "interval",
1214
+ },
1215
+ },
1216
+ ],
1217
+ },
1218
+ {
1219
+ "encoding": {
1220
+ "color": {
1221
+ "field": "category",
1222
+ "type": "nominal",
1223
+ },
1224
+ "opacity": {
1225
+ "condition": {
1226
+ "test": {
1227
+ "and": [
1228
+ {
1229
+ "param": "legend_selection_category",
1230
+ },
1231
+ {
1232
+ "param": "pan_zoom",
1233
+ },
1234
+ ],
1235
+ },
1236
+ "value": 1,
1237
+ },
1238
+ "value": 0.2,
1239
+ },
1240
+ "x": {
1241
+ "field": "x",
1242
+ "type": "nominal",
1243
+ },
1244
+ "y": {
1245
+ "field": "y",
1246
+ "type": "quantitative",
1247
+ },
1248
+ },
1249
+ "mark": {
1250
+ "cursor": "pointer",
1251
+ "tooltip": true,
1252
+ "type": "bar",
1253
+ },
1254
+ "params": [
1255
+ {
1256
+ "name": "select_point",
1257
+ "select": {
1258
+ "encodings": [
1259
+ "x",
1260
+ ],
1261
+ "on": "click[!event.metaKey]",
1262
+ "type": "point",
1263
+ },
1264
+ },
1265
+ {
1266
+ "name": "select_interval",
1267
+ "select": {
1268
+ "encodings": [
1269
+ "x",
1270
+ ],
1271
+ "mark": {
1272
+ "fill": "#669EFF",
1273
+ "fillOpacity": 0.07,
1274
+ "stroke": "#669EFF",
1275
+ "strokeOpacity": 0.4,
1276
+ },
1277
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1278
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1279
+ "type": "interval",
1280
+ },
1281
+ },
1282
+ ],
1283
+ },
1284
+ ],
1285
+ "params": [
1286
+ {
1287
+ "bind": "legend",
1288
+ "name": "legend_selection_category",
1289
+ "select": {
1290
+ "fields": [
1291
+ "category",
1292
+ ],
1293
+ "type": "point",
1294
+ },
1295
+ },
1296
+ {
1297
+ "bind": "scales",
1298
+ "name": "pan_zoom",
1299
+ "select": {
1300
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1301
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1302
+ "type": "interval",
1303
+ "zoom": "wheel![event.metaKey]",
1304
+ },
1305
+ },
1306
+ ],
1307
+ }
1308
+ `;
1309
+
1310
+ exports[`makeSelectable > should hoist params to top level in hconcat(vconcat(...)) and apply opacity to nested specs 1`] = `
1311
+ {
1312
+ "hconcat": [
1313
+ {
1314
+ "vconcat": [
1315
+ {
1316
+ "encoding": {
1317
+ "color": {
1318
+ "field": "Origin",
1319
+ "type": "nominal",
1320
+ },
1321
+ "opacity": {
1322
+ "condition": {
1323
+ "test": {
1324
+ "and": [
1325
+ {
1326
+ "param": "legend_selection_Origin",
1327
+ },
1328
+ {
1329
+ "param": "select_point",
1330
+ },
1331
+ {
1332
+ "param": "select_interval",
1333
+ },
1334
+ {
1335
+ "param": "pan_zoom",
1336
+ },
1337
+ ],
1338
+ },
1339
+ "value": 1,
1340
+ },
1341
+ "value": 0.2,
1342
+ },
1343
+ "x": {
1344
+ "field": "Horsepower",
1345
+ "type": "quantitative",
1346
+ },
1347
+ "y": {
1348
+ "field": "Miles_per_Gallon",
1349
+ "type": "quantitative",
1350
+ },
1351
+ },
1352
+ "height": 100,
1353
+ "mark": {
1354
+ "cursor": "pointer",
1355
+ "tooltip": true,
1356
+ "type": "point",
1357
+ },
1358
+ },
1359
+ {
1360
+ "encoding": {
1361
+ "color": {
1362
+ "field": "Origin",
1363
+ "type": "nominal",
1364
+ },
1365
+ "opacity": {
1366
+ "condition": {
1367
+ "test": {
1368
+ "and": [
1369
+ {
1370
+ "param": "legend_selection_Origin",
1371
+ },
1372
+ {
1373
+ "param": "select_point",
1374
+ },
1375
+ {
1376
+ "param": "select_interval",
1377
+ },
1378
+ {
1379
+ "param": "pan_zoom",
1380
+ },
1381
+ ],
1382
+ },
1383
+ "value": 1,
1384
+ },
1385
+ "value": 0.2,
1386
+ },
1387
+ "x": {
1388
+ "field": "Horsepower",
1389
+ "type": "quantitative",
1390
+ },
1391
+ "y": {
1392
+ "field": "Miles_per_Gallon",
1393
+ "type": "quantitative",
1394
+ },
1395
+ },
1396
+ "height": 100,
1397
+ "mark": {
1398
+ "cursor": "pointer",
1399
+ "tooltip": true,
1400
+ "type": "point",
1401
+ },
1402
+ },
1403
+ ],
1404
+ },
1405
+ {
1406
+ "encoding": {
1407
+ "color": {
1408
+ "field": "Origin",
1409
+ "type": "nominal",
1410
+ },
1411
+ "opacity": {
1412
+ "condition": {
1413
+ "test": {
1414
+ "and": [
1415
+ {
1416
+ "param": "legend_selection_Origin",
1417
+ },
1418
+ {
1419
+ "param": "select_point",
1420
+ },
1421
+ {
1422
+ "param": "select_interval",
1423
+ },
1424
+ {
1425
+ "param": "pan_zoom",
1426
+ },
1427
+ ],
1428
+ },
1429
+ "value": 1,
1430
+ },
1431
+ "value": 0.2,
1432
+ },
1433
+ "x": {
1434
+ "field": "Horsepower",
1435
+ "type": "quantitative",
1436
+ },
1437
+ "y": {
1438
+ "field": "Miles_per_Gallon",
1439
+ "type": "quantitative",
1440
+ },
1441
+ },
1442
+ "height": 100,
1443
+ "mark": {
1444
+ "cursor": "pointer",
1445
+ "tooltip": true,
1446
+ "type": "point",
1447
+ },
1448
+ },
1449
+ ],
1450
+ "params": [
1451
+ {
1452
+ "bind": "legend",
1453
+ "name": "legend_selection_Origin",
1454
+ "select": {
1455
+ "fields": [
1456
+ "Origin",
1457
+ ],
1458
+ "type": "point",
1459
+ },
1460
+ },
1461
+ {
1462
+ "name": "select_point",
1463
+ "select": {
1464
+ "encodings": [
1465
+ "x",
1466
+ "y",
1467
+ ],
1468
+ "on": "click[!event.metaKey]",
1469
+ "type": "point",
1470
+ },
1471
+ },
1472
+ {
1473
+ "name": "select_interval",
1474
+ "select": {
1475
+ "encodings": [
1476
+ "x",
1477
+ "y",
1478
+ ],
1479
+ "mark": {
1480
+ "fill": "#669EFF",
1481
+ "fillOpacity": 0.07,
1482
+ "stroke": "#669EFF",
1483
+ "strokeOpacity": 0.4,
1484
+ },
1485
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1486
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1487
+ "type": "interval",
1488
+ },
1489
+ },
1490
+ {
1491
+ "bind": "scales",
1492
+ "name": "pan_zoom",
1493
+ "select": {
1494
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1495
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1496
+ "type": "interval",
1497
+ "zoom": "wheel![event.metaKey]",
1498
+ },
1499
+ },
1500
+ ],
1501
+ }
1502
+ `;
1503
+
1504
+ exports[`makeSelectable > should not add bin_coloring when chartSelection is false 1`] = `
1505
+ {
1506
+ "encoding": {
1507
+ "x": {
1508
+ "bin": true,
1509
+ "field": "x",
1510
+ "type": "quantitative",
1511
+ },
1512
+ "y": {
1513
+ "aggregate": "count",
1514
+ "type": "quantitative",
1515
+ },
1516
+ },
1517
+ "mark": "bar",
1518
+ "params": [
1519
+ {
1520
+ "bind": "scales",
1521
+ "name": "pan_zoom",
1522
+ "select": {
1523
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1524
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1525
+ "type": "interval",
1526
+ "zoom": "wheel![event.metaKey]",
1527
+ },
1528
+ },
1529
+ ],
1530
+ }
1531
+ `;
1532
+
1533
+ exports[`makeSelectable > should not duplicate legend params when multiple layers have same color field 1`] = `
1534
+ {
1535
+ "layer": [
1536
+ {
1537
+ "encoding": {
1538
+ "color": {
1539
+ "field": "category",
1540
+ "type": "nominal",
1541
+ },
1542
+ "opacity": {
1543
+ "condition": {
1544
+ "test": {
1545
+ "and": [
1546
+ {
1547
+ "param": "legend_selection_category",
1548
+ },
1549
+ ],
1550
+ },
1551
+ "value": 1,
1552
+ },
1553
+ "value": 0.2,
1554
+ },
1555
+ "x": {
1556
+ "field": "x",
1557
+ "type": "quantitative",
1558
+ },
1559
+ "y": {
1560
+ "field": "y",
1561
+ "type": "quantitative",
1562
+ },
1563
+ },
1564
+ "mark": {
1565
+ "cursor": "pointer",
1566
+ "tooltip": true,
1567
+ "type": "line",
1568
+ },
1569
+ "params": [
1570
+ {
1571
+ "bind": "legend",
1572
+ "name": "legend_selection_category",
1573
+ "select": {
1574
+ "fields": [
1575
+ "category",
1576
+ ],
1577
+ "type": "point",
1578
+ },
1579
+ },
1580
+ {
1581
+ "bind": "scales",
1582
+ "name": "pan_zoom",
1583
+ "select": {
1584
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1585
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1586
+ "type": "interval",
1587
+ "zoom": "wheel![event.metaKey]",
1588
+ },
1589
+ },
1590
+ ],
1591
+ },
1592
+ {
1593
+ "encoding": {
1594
+ "color": {
1595
+ "field": "category",
1596
+ "type": "nominal",
1597
+ },
1598
+ "opacity": {
1599
+ "condition": {
1600
+ "test": {
1601
+ "and": [
1602
+ {
1603
+ "param": "select_point_1",
1604
+ },
1605
+ {
1606
+ "param": "select_interval_1",
1607
+ },
1608
+ ],
1609
+ },
1610
+ "value": 1,
1611
+ },
1612
+ "value": 0.2,
1613
+ },
1614
+ "x": {
1615
+ "field": "x",
1616
+ "type": "quantitative",
1617
+ },
1618
+ "y": {
1619
+ "field": "y",
1620
+ "type": "quantitative",
1621
+ },
1622
+ },
1623
+ "mark": {
1624
+ "cursor": "pointer",
1625
+ "size": 100,
1626
+ "tooltip": true,
1627
+ "type": "point",
1628
+ },
1629
+ "params": [
1630
+ {
1631
+ "name": "select_point_1",
1632
+ "select": {
1633
+ "encodings": [
1634
+ "x",
1635
+ "y",
1636
+ ],
1637
+ "on": "click[!event.metaKey]",
1638
+ "type": "point",
1639
+ },
1640
+ },
1641
+ {
1642
+ "name": "select_interval_1",
1643
+ "select": {
1644
+ "encodings": [
1645
+ "x",
1646
+ "y",
1647
+ ],
1648
+ "mark": {
1649
+ "fill": "#669EFF",
1650
+ "fillOpacity": 0.07,
1651
+ "stroke": "#669EFF",
1652
+ "strokeOpacity": 0.4,
1653
+ },
1654
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1655
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1656
+ "type": "interval",
1657
+ },
1658
+ },
1659
+ ],
1660
+ },
1661
+ ],
1662
+ }
1663
+ `;
1664
+
1665
+ exports[`makeSelectable > should not hoist params when specs have different encodings 1`] = `
1666
+ {
1667
+ "hconcat": [
1668
+ {
1669
+ "encoding": {
1670
+ "opacity": {
1671
+ "condition": {
1672
+ "test": {
1673
+ "and": [
1674
+ {
1675
+ "param": "pan_zoom",
1676
+ },
1677
+ ],
1678
+ },
1679
+ "value": 1,
1680
+ },
1681
+ "value": 0.2,
1682
+ },
1683
+ "x": {
1684
+ "field": "x",
1685
+ "type": "quantitative",
1686
+ },
1687
+ "y": {
1688
+ "field": "y",
1689
+ "type": "quantitative",
1690
+ },
1691
+ },
1692
+ "mark": {
1693
+ "cursor": "pointer",
1694
+ "tooltip": true,
1695
+ "type": "point",
1696
+ },
1697
+ "params": [
1698
+ {
1699
+ "name": "select_point",
1700
+ "select": {
1701
+ "encodings": [
1702
+ "x",
1703
+ "y",
1704
+ ],
1705
+ "on": "click[!event.metaKey]",
1706
+ "type": "point",
1707
+ },
1708
+ },
1709
+ {
1710
+ "name": "select_interval",
1711
+ "select": {
1712
+ "encodings": [
1713
+ "x",
1714
+ "y",
1715
+ ],
1716
+ "mark": {
1717
+ "fill": "#669EFF",
1718
+ "fillOpacity": 0.07,
1719
+ "stroke": "#669EFF",
1720
+ "strokeOpacity": 0.4,
1721
+ },
1722
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1723
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1724
+ "type": "interval",
1725
+ },
1726
+ },
1727
+ ],
1728
+ },
1729
+ {
1730
+ "encoding": {
1731
+ "color": {
1732
+ "field": "category",
1733
+ "type": "nominal",
1734
+ },
1735
+ "opacity": {
1736
+ "condition": {
1737
+ "test": {
1738
+ "and": [
1739
+ {
1740
+ "param": "pan_zoom",
1741
+ },
1742
+ ],
1743
+ },
1744
+ "value": 1,
1745
+ },
1746
+ "value": 0.2,
1747
+ },
1748
+ "theta": {
1749
+ "field": "value",
1750
+ "type": "quantitative",
1751
+ },
1752
+ },
1753
+ "mark": {
1754
+ "cursor": "pointer",
1755
+ "tooltip": true,
1756
+ "type": "arc",
1757
+ },
1758
+ "params": [
1759
+ {
1760
+ "bind": "legend",
1761
+ "name": "legend_selection_category",
1762
+ "select": {
1763
+ "fields": [
1764
+ "category",
1765
+ ],
1766
+ "type": "point",
1767
+ },
1768
+ },
1769
+ {
1770
+ "name": "select_point",
1771
+ "select": {
1772
+ "encodings": [
1773
+ "color",
1774
+ ],
1775
+ "on": "click[!event.metaKey]",
1776
+ "type": "point",
1777
+ },
1778
+ },
1779
+ ],
1780
+ },
1781
+ ],
1782
+ "params": [
1783
+ {
1784
+ "bind": "scales",
1785
+ "name": "pan_zoom",
1786
+ "select": {
1787
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1788
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1789
+ "type": "interval",
1790
+ "zoom": "wheel![event.metaKey]",
1791
+ },
1792
+ },
1793
+ ],
1794
+ }
1795
+ `;
1796
+
1797
+ exports[`makeSelectable > should not hoist params when specs have different selection types 1`] = `
1798
+ {
1799
+ "hconcat": [
1800
+ {
1801
+ "encoding": {
1802
+ "color": {
1803
+ "field": "category",
1804
+ "type": "nominal",
1805
+ },
1806
+ "opacity": {
1807
+ "condition": {
1808
+ "test": {
1809
+ "and": [
1810
+ {
1811
+ "param": "legend_selection_category",
1812
+ },
1813
+ {
1814
+ "param": "pan_zoom",
1815
+ },
1816
+ ],
1817
+ },
1818
+ "value": 1,
1819
+ },
1820
+ "value": 0.2,
1821
+ },
1822
+ "x": {
1823
+ "field": "x",
1824
+ "type": "nominal",
1825
+ },
1826
+ "y": {
1827
+ "field": "y",
1828
+ "type": "quantitative",
1829
+ },
1830
+ },
1831
+ "mark": {
1832
+ "cursor": "pointer",
1833
+ "tooltip": true,
1834
+ "type": "bar",
1835
+ },
1836
+ "params": [
1837
+ {
1838
+ "name": "select_point",
1839
+ "select": {
1840
+ "encodings": [
1841
+ "x",
1842
+ ],
1843
+ "on": "click[!event.metaKey]",
1844
+ "type": "point",
1845
+ },
1846
+ },
1847
+ {
1848
+ "name": "select_interval",
1849
+ "select": {
1850
+ "encodings": [
1851
+ "x",
1852
+ ],
1853
+ "mark": {
1854
+ "fill": "#669EFF",
1855
+ "fillOpacity": 0.07,
1856
+ "stroke": "#669EFF",
1857
+ "strokeOpacity": 0.4,
1858
+ },
1859
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1860
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
1861
+ "type": "interval",
1862
+ },
1863
+ },
1864
+ ],
1865
+ },
1866
+ {
1867
+ "encoding": {
1868
+ "color": {
1869
+ "field": "category",
1870
+ "type": "nominal",
1871
+ },
1872
+ "opacity": {
1873
+ "condition": {
1874
+ "test": {
1875
+ "and": [
1876
+ {
1877
+ "param": "legend_selection_category",
1878
+ },
1879
+ {
1880
+ "param": "pan_zoom",
1881
+ },
1882
+ ],
1883
+ },
1884
+ "value": 1,
1885
+ },
1886
+ "value": 0.2,
1887
+ },
1888
+ "x": {
1889
+ "field": "x",
1890
+ "type": "quantitative",
1891
+ },
1892
+ "y": {
1893
+ "field": "y",
1894
+ "type": "quantitative",
1895
+ },
1896
+ },
1897
+ "mark": {
1898
+ "cursor": "pointer",
1899
+ "tooltip": true,
1900
+ "type": "area",
1901
+ },
1902
+ "params": [
1903
+ {
1904
+ "name": "select_point",
1905
+ "select": {
1906
+ "encodings": [
1907
+ "color",
1908
+ ],
1909
+ "on": "click[!event.metaKey]",
1910
+ "type": "point",
1911
+ },
1912
+ },
1913
+ ],
1914
+ },
1915
+ ],
1916
+ "params": [
1917
+ {
1918
+ "bind": "legend",
1919
+ "name": "legend_selection_category",
1920
+ "select": {
1921
+ "fields": [
1922
+ "category",
1923
+ ],
1924
+ "type": "point",
1925
+ },
1926
+ },
1927
+ {
1928
+ "bind": "scales",
1929
+ "name": "pan_zoom",
1930
+ "select": {
1931
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1932
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
1933
+ "type": "interval",
1934
+ "zoom": "wheel![event.metaKey]",
1935
+ },
1936
+ },
1937
+ ],
1938
+ }
1939
+ `;
1940
+
1941
+ exports[`makeSelectable > should only hoist common params with same select.type and select.encodings 1`] = `
1942
+ {
1943
+ "hconcat": [
1944
+ {
1945
+ "encoding": {
1946
+ "color": {
1947
+ "field": "category",
1948
+ "type": "nominal",
1949
+ },
1950
+ "opacity": {
1951
+ "condition": {
1952
+ "test": {
1953
+ "and": [
1954
+ {
1955
+ "param": "legend_selection_category",
1956
+ },
1957
+ {
1958
+ "param": "select_point",
1959
+ },
1960
+ {
1961
+ "param": "select_interval",
1962
+ },
1963
+ {
1964
+ "param": "pan_zoom",
1965
+ },
1966
+ ],
1967
+ },
1968
+ "value": 1,
1969
+ },
1970
+ "value": 0.2,
1971
+ },
1972
+ "x": {
1973
+ "field": "x",
1974
+ "type": "quantitative",
1975
+ },
1976
+ "y": {
1977
+ "field": "y",
1978
+ "type": "quantitative",
1979
+ },
1980
+ },
1981
+ "mark": {
1982
+ "cursor": "pointer",
1983
+ "tooltip": true,
1984
+ "type": "point",
1985
+ },
1986
+ },
1987
+ {
1988
+ "encoding": {
1989
+ "color": {
1990
+ "field": "category",
1991
+ "type": "nominal",
1992
+ },
1993
+ "opacity": {
1994
+ "condition": {
1995
+ "test": {
1996
+ "and": [
1997
+ {
1998
+ "param": "legend_selection_category",
1999
+ },
2000
+ {
2001
+ "param": "select_point",
2002
+ },
2003
+ {
2004
+ "param": "select_interval",
2005
+ },
2006
+ {
2007
+ "param": "pan_zoom",
2008
+ },
2009
+ ],
2010
+ },
2011
+ "value": 1,
2012
+ },
2013
+ "value": 0.2,
2014
+ },
2015
+ "x": {
2016
+ "field": "x",
2017
+ "type": "quantitative",
2018
+ },
2019
+ "y": {
2020
+ "field": "y",
2021
+ "type": "quantitative",
2022
+ },
2023
+ },
2024
+ "mark": {
2025
+ "cursor": "pointer",
2026
+ "tooltip": true,
2027
+ "type": "point",
2028
+ },
2029
+ },
2030
+ ],
2031
+ "params": [
2032
+ {
2033
+ "bind": "legend",
2034
+ "name": "legend_selection_category",
2035
+ "select": {
2036
+ "fields": [
2037
+ "category",
2038
+ ],
2039
+ "type": "point",
2040
+ },
2041
+ },
2042
+ {
2043
+ "name": "select_point",
2044
+ "select": {
2045
+ "encodings": [
2046
+ "x",
2047
+ "y",
2048
+ ],
2049
+ "on": "click[!event.metaKey]",
2050
+ "type": "point",
2051
+ },
2052
+ },
2053
+ {
2054
+ "name": "select_interval",
2055
+ "select": {
2056
+ "encodings": [
2057
+ "x",
2058
+ "y",
2059
+ ],
2060
+ "mark": {
2061
+ "fill": "#669EFF",
2062
+ "fillOpacity": 0.07,
2063
+ "stroke": "#669EFF",
2064
+ "strokeOpacity": 0.4,
2065
+ },
2066
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
2067
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
2068
+ "type": "interval",
2069
+ },
2070
+ },
2071
+ {
2072
+ "bind": "scales",
2073
+ "name": "pan_zoom",
2074
+ "select": {
2075
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
2076
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
2077
+ "type": "interval",
2078
+ "zoom": "wheel![event.metaKey]",
2079
+ },
2080
+ },
2081
+ ],
2082
+ }
2083
+ `;
2084
+
2085
+ exports[`makeSelectable > should prefer point selection for binned charts even when chartSelection is true 1`] = `
2086
+ {
2087
+ "encoding": {
2088
+ "opacity": {
2089
+ "condition": {
2090
+ "test": {
2091
+ "and": [
2092
+ {
2093
+ "param": "bin_coloring",
2094
+ },
2095
+ ],
2096
+ },
2097
+ "value": 1,
2098
+ },
2099
+ "value": 0.2,
2100
+ },
2101
+ "x": {
2102
+ "bin": {
2103
+ "maxbins": 20,
2104
+ },
2105
+ "field": "x",
2106
+ "type": "quantitative",
2107
+ },
2108
+ "y": {
2109
+ "aggregate": "count",
2110
+ "type": "quantitative",
2111
+ },
2112
+ },
2113
+ "mark": {
2114
+ "cursor": "pointer",
2115
+ "tooltip": true,
2116
+ "type": "bar",
2117
+ },
2118
+ "params": [
2119
+ {
2120
+ "name": "select_point",
2121
+ "select": {
2122
+ "encodings": [
2123
+ "x",
2124
+ ],
2125
+ "on": "click[!event.metaKey]",
2126
+ "type": "point",
2127
+ },
2128
+ },
2129
+ {
2130
+ "name": "bin_coloring",
2131
+ "select": {
2132
+ "on": "click[!event.metaKey]",
2133
+ "type": "point",
2134
+ },
2135
+ },
2136
+ {
2137
+ "bind": "scales",
2138
+ "name": "pan_zoom",
2139
+ "select": {
2140
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
2141
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
2142
+ "type": "interval",
2143
+ "zoom": "wheel![event.metaKey]",
2144
+ },
2145
+ },
2146
+ ],
2147
+ }
2148
+ `;
2149
+
3
2150
  exports[`makeSelectable > should return correctly if existing legend selection 1`] = `
4
2151
  {
5
2152
  "config": {
@@ -435,6 +2582,168 @@ exports[`makeSelectable > should return correctly with multiple encodings 1`] =
435
2582
  }
436
2583
  `;
437
2584
 
2585
+ exports[`makeSelectable > should return the same spec for not-defined and true 1`] = `
2586
+ {
2587
+ "encoding": {
2588
+ "opacity": {
2589
+ "condition": {
2590
+ "test": {
2591
+ "and": [
2592
+ {
2593
+ "param": "select_point",
2594
+ },
2595
+ {
2596
+ "param": "select_interval",
2597
+ },
2598
+ ],
2599
+ },
2600
+ "value": 1,
2601
+ },
2602
+ "value": 0.2,
2603
+ },
2604
+ },
2605
+ "mark": {
2606
+ "cursor": "pointer",
2607
+ "tooltip": true,
2608
+ "type": "point",
2609
+ },
2610
+ "params": [
2611
+ {
2612
+ "name": "select_point",
2613
+ "select": {
2614
+ "encodings": [
2615
+ "x",
2616
+ "y",
2617
+ ],
2618
+ "on": "click[!event.metaKey]",
2619
+ "type": "point",
2620
+ },
2621
+ },
2622
+ {
2623
+ "name": "select_interval",
2624
+ "select": {
2625
+ "encodings": [
2626
+ "x",
2627
+ "y",
2628
+ ],
2629
+ "mark": {
2630
+ "fill": "#669EFF",
2631
+ "fillOpacity": 0.07,
2632
+ "stroke": "#669EFF",
2633
+ "strokeOpacity": 0.4,
2634
+ },
2635
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
2636
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
2637
+ "type": "interval",
2638
+ },
2639
+ },
2640
+ {
2641
+ "bind": "scales",
2642
+ "name": "pan_zoom",
2643
+ "select": {
2644
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
2645
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
2646
+ "type": "interval",
2647
+ "zoom": "wheel![event.metaKey]",
2648
+ },
2649
+ },
2650
+ ],
2651
+ }
2652
+ `;
2653
+
2654
+ exports[`makeSelectable > should return the same spec if mark is boxplot 1`] = `
2655
+ {
2656
+ "mark": "boxplot",
2657
+ }
2658
+ `;
2659
+
2660
+ exports[`makeSelectable > should return the same spec if mark is errorband 1`] = `
2661
+ {
2662
+ "mark": "errorband",
2663
+ }
2664
+ `;
2665
+
2666
+ exports[`makeSelectable > should return the same spec if mark is errorbar 1`] = `
2667
+ {
2668
+ "mark": "errorbar",
2669
+ }
2670
+ `;
2671
+
2672
+ exports[`makeSelectable > should return the same spec if mark is not in spec 1`] = `
2673
+ {
2674
+ "encoding": {
2675
+ "opacity": {
2676
+ "condition": {
2677
+ "test": {
2678
+ "and": [
2679
+ {
2680
+ "param": "select_point",
2681
+ },
2682
+ {
2683
+ "param": "select_interval",
2684
+ },
2685
+ ],
2686
+ },
2687
+ "value": 1,
2688
+ },
2689
+ "value": 0.2,
2690
+ },
2691
+ },
2692
+ "mark": {
2693
+ "cursor": "pointer",
2694
+ "tooltip": true,
2695
+ "type": "point",
2696
+ },
2697
+ "params": [
2698
+ {
2699
+ "name": "select_point",
2700
+ "select": {
2701
+ "encodings": [
2702
+ "x",
2703
+ "y",
2704
+ ],
2705
+ "on": "click[!event.metaKey]",
2706
+ "type": "point",
2707
+ },
2708
+ },
2709
+ {
2710
+ "name": "select_interval",
2711
+ "select": {
2712
+ "encodings": [
2713
+ "x",
2714
+ "y",
2715
+ ],
2716
+ "mark": {
2717
+ "fill": "#669EFF",
2718
+ "fillOpacity": 0.07,
2719
+ "stroke": "#669EFF",
2720
+ "strokeOpacity": 0.4,
2721
+ },
2722
+ "on": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
2723
+ "translate": "[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",
2724
+ "type": "interval",
2725
+ },
2726
+ },
2727
+ {
2728
+ "bind": "scales",
2729
+ "name": "pan_zoom",
2730
+ "select": {
2731
+ "on": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
2732
+ "translate": "[mousedown[event.metaKey], window:mouseup] > window:mousemove!",
2733
+ "type": "interval",
2734
+ "zoom": "wheel![event.metaKey]",
2735
+ },
2736
+ },
2737
+ ],
2738
+ }
2739
+ `;
2740
+
2741
+ exports[`makeSelectable > should return the same spec if selection is false 1`] = `
2742
+ {
2743
+ "mark": "point",
2744
+ }
2745
+ `;
2746
+
438
2747
  exports[`makeSelectable > should skip field selection if empty or false 1`] = `
439
2748
  {
440
2749
  "config": {