@genome-spy/core 0.37.4 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/dist/bundle/__vite-browser-external-ENoMJThg.js +8 -0
  2. package/dist/bundle/_commonjsHelpers-QtkX90xp.js +30 -0
  3. package/dist/bundle/index-1QVesMzU.js +1074 -0
  4. package/dist/bundle/index-Cbz74kpR.js +638 -0
  5. package/dist/bundle/index-LD6yPc3X.js +515 -0
  6. package/dist/bundle/index-Pv3tKJ1W.js +2190 -0
  7. package/dist/bundle/index-UyrC0vvF.js +72 -0
  8. package/dist/bundle/index-Y-LdHNIz.js +501 -0
  9. package/dist/bundle/index-gn8bhQ8w.js +4050 -0
  10. package/dist/bundle/index-lmJu1tfP.js +1372 -0
  11. package/dist/bundle/index-z4Cs62EO.js +279 -0
  12. package/dist/bundle/index.es.js +6467 -20590
  13. package/dist/bundle/index.js +92 -123
  14. package/dist/bundle/long-Veu0zKh9.js +2382 -0
  15. package/dist/bundle/remoteFile-Ur-gRKsH.js +96 -0
  16. package/dist/schema.json +524 -122
  17. package/dist/src/data/collector.d.ts +11 -11
  18. package/dist/src/data/collector.d.ts.map +1 -1
  19. package/dist/src/data/collector.js +8 -8
  20. package/dist/src/data/dataFlow.d.ts +18 -18
  21. package/dist/src/data/dataFlow.d.ts.map +1 -1
  22. package/dist/src/data/dataFlow.js +7 -7
  23. package/dist/src/data/flowNode.d.ts +9 -9
  24. package/dist/src/data/flowNode.d.ts.map +1 -1
  25. package/dist/src/data/flowNode.js +5 -5
  26. package/dist/src/data/flowOptimizer.d.ts +11 -11
  27. package/dist/src/data/flowOptimizer.d.ts.map +1 -1
  28. package/dist/src/data/flowOptimizer.js +7 -7
  29. package/dist/src/data/flowTestUtils.d.ts +2 -2
  30. package/dist/src/data/flowTestUtils.d.ts.map +1 -1
  31. package/dist/src/data/flowTestUtils.js +1 -1
  32. package/dist/src/data/sources/dataSource.js +1 -1
  33. package/dist/src/data/sources/dataSourceFactory.d.ts +3 -3
  34. package/dist/src/data/sources/dataSourceFactory.d.ts.map +1 -1
  35. package/dist/src/data/sources/dataSourceFactory.js +20 -20
  36. package/dist/src/data/sources/dataUtils.d.ts +20 -20
  37. package/dist/src/data/sources/dataUtils.d.ts.map +1 -1
  38. package/dist/src/data/sources/dataUtils.js +11 -11
  39. package/dist/src/data/sources/dynamic/axisGenomeSource.d.ts +3 -3
  40. package/dist/src/data/sources/dynamic/axisGenomeSource.d.ts.map +1 -1
  41. package/dist/src/data/sources/dynamic/axisGenomeSource.js +2 -2
  42. package/dist/src/data/sources/dynamic/axisTickSource.d.ts +6 -6
  43. package/dist/src/data/sources/dynamic/axisTickSource.d.ts.map +1 -1
  44. package/dist/src/data/sources/dynamic/axisTickSource.js +4 -4
  45. package/dist/src/data/sources/dynamic/bamSource.d.ts +7 -13
  46. package/dist/src/data/sources/dynamic/bamSource.d.ts.map +1 -1
  47. package/dist/src/data/sources/dynamic/bamSource.js +35 -27
  48. package/dist/src/data/sources/dynamic/bigBedSource.d.ts +9 -9
  49. package/dist/src/data/sources/dynamic/bigBedSource.d.ts.map +1 -1
  50. package/dist/src/data/sources/dynamic/bigBedSource.js +31 -18
  51. package/dist/src/data/sources/dynamic/bigWigSource.d.ts +7 -7
  52. package/dist/src/data/sources/dynamic/bigWigSource.d.ts.map +1 -1
  53. package/dist/src/data/sources/dynamic/bigWigSource.js +33 -26
  54. package/dist/src/data/sources/dynamic/gff3Source.d.ts +9 -0
  55. package/dist/src/data/sources/dynamic/gff3Source.d.ts.map +1 -1
  56. package/dist/src/data/sources/dynamic/gff3Source.js +17 -2
  57. package/dist/src/data/sources/dynamic/indexedFastaSource.d.ts +6 -9
  58. package/dist/src/data/sources/dynamic/indexedFastaSource.d.ts.map +1 -1
  59. package/dist/src/data/sources/dynamic/indexedFastaSource.js +28 -18
  60. package/dist/src/data/sources/dynamic/singleAxisLazySource.d.ts +10 -10
  61. package/dist/src/data/sources/dynamic/singleAxisLazySource.d.ts.map +1 -1
  62. package/dist/src/data/sources/dynamic/singleAxisLazySource.js +6 -6
  63. package/dist/src/data/sources/dynamic/tabixSource.d.ts +11 -8
  64. package/dist/src/data/sources/dynamic/tabixSource.d.ts.map +1 -1
  65. package/dist/src/data/sources/dynamic/tabixSource.js +31 -17
  66. package/dist/src/data/sources/inlineSource.d.ts +7 -7
  67. package/dist/src/data/sources/inlineSource.d.ts.map +1 -1
  68. package/dist/src/data/sources/inlineSource.js +5 -5
  69. package/dist/src/data/sources/namedSource.d.ts +9 -9
  70. package/dist/src/data/sources/namedSource.d.ts.map +1 -1
  71. package/dist/src/data/sources/namedSource.js +6 -6
  72. package/dist/src/data/sources/sequenceSource.d.ts +7 -7
  73. package/dist/src/data/sources/sequenceSource.d.ts.map +1 -1
  74. package/dist/src/data/sources/sequenceSource.js +4 -4
  75. package/dist/src/data/sources/urlSource.d.ts +7 -7
  76. package/dist/src/data/sources/urlSource.d.ts.map +1 -1
  77. package/dist/src/data/sources/urlSource.js +4 -4
  78. package/dist/src/data/transforms/aggregate.d.ts +3 -3
  79. package/dist/src/data/transforms/aggregate.d.ts.map +1 -1
  80. package/dist/src/data/transforms/aggregate.js +2 -2
  81. package/dist/src/data/transforms/clone.d.ts +2 -2
  82. package/dist/src/data/transforms/clone.d.ts.map +1 -1
  83. package/dist/src/data/transforms/clone.js +1 -1
  84. package/dist/src/data/transforms/coverage.d.ts +3 -3
  85. package/dist/src/data/transforms/coverage.d.ts.map +1 -1
  86. package/dist/src/data/transforms/coverage.js +1 -1
  87. package/dist/src/data/transforms/coverage.test.js +1 -1
  88. package/dist/src/data/transforms/filter.d.ts +3 -3
  89. package/dist/src/data/transforms/filter.d.ts.map +1 -1
  90. package/dist/src/data/transforms/filter.js +2 -2
  91. package/dist/src/data/transforms/filter.test.js +1 -1
  92. package/dist/src/data/transforms/filterScoredLabels.d.ts +4 -4
  93. package/dist/src/data/transforms/filterScoredLabels.d.ts.map +1 -1
  94. package/dist/src/data/transforms/filterScoredLabels.js +3 -3
  95. package/dist/src/data/transforms/flatten.d.ts +2 -2
  96. package/dist/src/data/transforms/flatten.d.ts.map +1 -1
  97. package/dist/src/data/transforms/flatten.js +3 -3
  98. package/dist/src/data/transforms/flatten.test.js +6 -6
  99. package/dist/src/data/transforms/flattenCompressedExons.d.ts +2 -2
  100. package/dist/src/data/transforms/flattenCompressedExons.d.ts.map +1 -1
  101. package/dist/src/data/transforms/flattenCompressedExons.js +1 -1
  102. package/dist/src/data/transforms/flattenDelimited.d.ts +2 -2
  103. package/dist/src/data/transforms/flattenDelimited.d.ts.map +1 -1
  104. package/dist/src/data/transforms/flattenDelimited.js +2 -2
  105. package/dist/src/data/transforms/flattenDelimited.test.js +5 -5
  106. package/dist/src/data/transforms/flattenSequence.d.ts +2 -2
  107. package/dist/src/data/transforms/flattenSequence.d.ts.map +1 -1
  108. package/dist/src/data/transforms/flattenSequence.js +1 -1
  109. package/dist/src/data/transforms/flattenSequence.test.js +1 -1
  110. package/dist/src/data/transforms/formula.d.ts +3 -3
  111. package/dist/src/data/transforms/formula.d.ts.map +1 -1
  112. package/dist/src/data/transforms/formula.js +2 -2
  113. package/dist/src/data/transforms/identifier.d.ts +3 -3
  114. package/dist/src/data/transforms/identifier.d.ts.map +1 -1
  115. package/dist/src/data/transforms/identifier.js +2 -2
  116. package/dist/src/data/transforms/linearizeGenomicCoordinate.d.ts +3 -3
  117. package/dist/src/data/transforms/linearizeGenomicCoordinate.d.ts.map +1 -1
  118. package/dist/src/data/transforms/linearizeGenomicCoordinate.js +2 -2
  119. package/dist/src/data/transforms/measureText.d.ts +2 -2
  120. package/dist/src/data/transforms/measureText.d.ts.map +1 -1
  121. package/dist/src/data/transforms/measureText.js +1 -1
  122. package/dist/src/data/transforms/pileup.d.ts +3 -3
  123. package/dist/src/data/transforms/pileup.d.ts.map +1 -1
  124. package/dist/src/data/transforms/pileup.js +1 -1
  125. package/dist/src/data/transforms/pileup.test.js +1 -1
  126. package/dist/src/data/transforms/project.d.ts +2 -2
  127. package/dist/src/data/transforms/project.d.ts.map +1 -1
  128. package/dist/src/data/transforms/project.js +1 -1
  129. package/dist/src/data/transforms/project.test.js +1 -1
  130. package/dist/src/data/transforms/regexExtract.d.ts +2 -2
  131. package/dist/src/data/transforms/regexExtract.d.ts.map +1 -1
  132. package/dist/src/data/transforms/regexExtract.js +1 -1
  133. package/dist/src/data/transforms/regexExtract.test.js +3 -3
  134. package/dist/src/data/transforms/regexFold.d.ts +2 -2
  135. package/dist/src/data/transforms/regexFold.d.ts.map +1 -1
  136. package/dist/src/data/transforms/regexFold.js +2 -2
  137. package/dist/src/data/transforms/regexFold.test.js +3 -3
  138. package/dist/src/data/transforms/sample.d.ts +2 -2
  139. package/dist/src/data/transforms/sample.d.ts.map +1 -1
  140. package/dist/src/data/transforms/sample.js +2 -2
  141. package/dist/src/data/transforms/stack.d.ts +3 -3
  142. package/dist/src/data/transforms/stack.d.ts.map +1 -1
  143. package/dist/src/data/transforms/stack.js +2 -2
  144. package/dist/src/data/transforms/stack.test.js +2 -2
  145. package/dist/src/data/transforms/transformFactory.d.ts +5 -5
  146. package/dist/src/data/transforms/transformFactory.d.ts.map +1 -1
  147. package/dist/src/data/transforms/transformFactory.js +3 -3
  148. package/dist/src/encoder/accessor.d.ts +6 -6
  149. package/dist/src/encoder/accessor.d.ts.map +1 -1
  150. package/dist/src/encoder/accessor.js +4 -4
  151. package/dist/src/encoder/encoder.d.ts +59 -59
  152. package/dist/src/encoder/encoder.d.ts.map +1 -1
  153. package/dist/src/encoder/encoder.js +47 -42
  154. package/dist/src/encoder/encoder.test.js +4 -4
  155. package/dist/src/fonts/bmFontManager.d.ts +7 -7
  156. package/dist/src/fonts/bmFontManager.d.ts.map +1 -1
  157. package/dist/src/fonts/bmFontManager.js +3 -3
  158. package/dist/src/fonts/bmFontMetrics.d.ts +6 -6
  159. package/dist/src/fonts/bmFontMetrics.d.ts.map +1 -1
  160. package/dist/src/fonts/bmFontMetrics.js +4 -4
  161. package/dist/src/genome/genome.d.ts +7 -7
  162. package/dist/src/genome/genome.d.ts.map +1 -1
  163. package/dist/src/genome/genome.js +2 -2
  164. package/dist/src/genome/genomeStore.d.ts +2 -2
  165. package/dist/src/genome/genomeStore.d.ts.map +1 -1
  166. package/dist/src/genome/genomeStore.js +1 -1
  167. package/dist/src/genome/locusFormat.d.ts +7 -7
  168. package/dist/src/genome/locusFormat.d.ts.map +1 -1
  169. package/dist/src/genome/locusFormat.js +4 -4
  170. package/dist/src/genome/scaleIndex.d.ts +1 -1
  171. package/dist/src/genome/scaleIndex.d.ts.map +1 -1
  172. package/dist/src/genome/scaleIndex.js +1 -1
  173. package/dist/src/genome/scaleLocus.d.ts +2 -2
  174. package/dist/src/genome/scaleLocus.d.ts.map +1 -1
  175. package/dist/src/genome/scaleLocus.js +3 -3
  176. package/dist/src/genomeSpy.d.ts +12 -12
  177. package/dist/src/genomeSpy.d.ts.map +1 -1
  178. package/dist/src/genomeSpy.js +51 -34
  179. package/dist/src/gl/arrayBuilder.d.ts.map +1 -1
  180. package/dist/src/gl/dataToVertices.d.ts +19 -19
  181. package/dist/src/gl/dataToVertices.d.ts.map +1 -1
  182. package/dist/src/gl/dataToVertices.js +11 -11
  183. package/dist/src/gl/link.vertex.glsl.js +1 -1
  184. package/dist/src/gl/point.fragment.glsl.js +1 -1
  185. package/dist/src/gl/point.vertex.glsl.js +1 -1
  186. package/dist/src/gl/webGLHelper.d.ts +4 -4
  187. package/dist/src/gl/webGLHelper.d.ts.map +1 -1
  188. package/dist/src/gl/webGLHelper.js +2 -2
  189. package/dist/src/index.d.ts.map +1 -1
  190. package/dist/src/index.js +1 -1
  191. package/dist/src/marks/link.d.ts.map +1 -1
  192. package/dist/src/marks/link.js +35 -14
  193. package/dist/src/marks/mark.d.ts +35 -32
  194. package/dist/src/marks/mark.d.ts.map +1 -1
  195. package/dist/src/marks/mark.js +26 -23
  196. package/dist/src/marks/markUtils.d.ts +10 -10
  197. package/dist/src/marks/markUtils.d.ts.map +1 -1
  198. package/dist/src/marks/markUtils.js +5 -5
  199. package/dist/src/marks/pointMark.d.ts +1 -1
  200. package/dist/src/marks/pointMark.d.ts.map +1 -1
  201. package/dist/src/marks/pointMark.js +7 -7
  202. package/dist/src/marks/rectMark.d.ts +2 -2
  203. package/dist/src/marks/rectMark.d.ts.map +1 -1
  204. package/dist/src/marks/rectMark.js +7 -7
  205. package/dist/src/marks/rule.js +6 -6
  206. package/dist/src/marks/text.d.ts +1 -1
  207. package/dist/src/marks/text.d.ts.map +1 -1
  208. package/dist/src/marks/text.js +6 -6
  209. package/dist/src/scale/colorUtils.d.ts +4 -4
  210. package/dist/src/scale/colorUtils.d.ts.map +1 -1
  211. package/dist/src/scale/colorUtils.js +2 -2
  212. package/dist/src/scale/glslScaleGenerator.d.ts +3 -3
  213. package/dist/src/scale/glslScaleGenerator.d.ts.map +1 -1
  214. package/dist/src/scale/glslScaleGenerator.js +2 -2
  215. package/dist/src/scale/scale.d.ts +3 -3
  216. package/dist/src/scale/scale.d.ts.map +1 -1
  217. package/dist/src/scale/scale.js +2 -2
  218. package/dist/src/scale/ticks.d.ts +4 -4
  219. package/dist/src/scale/ticks.js +4 -4
  220. package/dist/src/spec/axis.d.ts +1 -1
  221. package/dist/src/spec/channel.d.ts +2 -2
  222. package/dist/src/spec/data.d.ts +2 -2
  223. package/dist/src/spec/mark.d.ts +36 -14
  224. package/dist/src/spec/root.d.ts +2 -2
  225. package/dist/src/spec/sampleView.d.ts +5 -5
  226. package/dist/src/spec/scale.d.ts +1 -1
  227. package/dist/src/spec/title.d.ts +1 -1
  228. package/dist/src/spec/view.d.ts +36 -9
  229. package/dist/src/tooltip/dataTooltipHandler.js +1 -1
  230. package/dist/src/tooltip/refseqGeneTooltipHandler.d.ts.map +1 -1
  231. package/dist/src/tooltip/refseqGeneTooltipHandler.js +1 -1
  232. package/dist/src/tooltip/tooltipHandler.d.ts +1 -1
  233. package/dist/src/tooltip/tooltipHandler.d.ts.map +1 -1
  234. package/dist/src/tooltip/tooltipHandler.ts +1 -1
  235. package/dist/src/types/embedApi.d.ts +3 -3
  236. package/dist/src/types/encoder.d.ts +4 -4
  237. package/dist/src/types/flowBatch.d.ts +1 -1
  238. package/dist/src/types/rendering.d.ts +3 -3
  239. package/dist/src/types/scaleResolutionApi.d.ts +2 -2
  240. package/dist/src/types/viewContext.d.ts +41 -12
  241. package/dist/src/utils/animator.d.ts +2 -2
  242. package/dist/src/utils/animator.d.ts.map +1 -1
  243. package/dist/src/utils/animator.js +1 -1
  244. package/dist/src/utils/inertia.d.ts +3 -3
  245. package/dist/src/utils/inertia.d.ts.map +1 -1
  246. package/dist/src/utils/inertia.js +1 -1
  247. package/dist/src/utils/interactionEvent.d.ts +5 -5
  248. package/dist/src/utils/interactionEvent.d.ts.map +1 -1
  249. package/dist/src/utils/interactionEvent.js +2 -2
  250. package/dist/src/utils/trees.js +1 -1
  251. package/dist/src/view/axisGridView.d.ts +17 -16
  252. package/dist/src/view/axisGridView.d.ts.map +1 -1
  253. package/dist/src/view/axisGridView.js +24 -20
  254. package/dist/src/view/axisResolution.d.ts +10 -10
  255. package/dist/src/view/axisResolution.d.ts.map +1 -1
  256. package/dist/src/view/axisResolution.js +6 -6
  257. package/dist/src/view/axisResolution.test.js +1 -1
  258. package/dist/src/view/axisView.d.ts +18 -17
  259. package/dist/src/view/axisView.d.ts.map +1 -1
  260. package/dist/src/view/axisView.js +39 -35
  261. package/dist/src/view/concatView.d.ts +5 -5
  262. package/dist/src/view/concatView.d.ts.map +1 -1
  263. package/dist/src/view/concatView.js +23 -23
  264. package/dist/src/view/containerView.d.ts +10 -8
  265. package/dist/src/view/containerView.d.ts.map +1 -1
  266. package/dist/src/view/containerView.js +18 -13
  267. package/dist/src/view/facetView.d.ts +12 -12
  268. package/dist/src/view/facetView.d.ts.map +1 -1
  269. package/dist/src/view/facetView.js +19 -19
  270. package/dist/src/view/flowBuilder.d.ts +4 -4
  271. package/dist/src/view/flowBuilder.d.ts.map +1 -1
  272. package/dist/src/view/flowBuilder.js +13 -13
  273. package/dist/src/view/flowBuilder.test.js +7 -7
  274. package/dist/src/view/gridView.d.ts +63 -35
  275. package/dist/src/view/gridView.d.ts.map +1 -1
  276. package/dist/src/view/gridView.js +400 -113
  277. package/dist/src/view/layerView.d.ts +12 -14
  278. package/dist/src/view/layerView.d.ts.map +1 -1
  279. package/dist/src/view/layerView.js +55 -26
  280. package/dist/src/{utils → view}/layout/flexLayout.d.ts +6 -6
  281. package/dist/src/view/layout/flexLayout.d.ts.map +1 -0
  282. package/dist/src/{utils → view}/layout/flexLayout.js +4 -4
  283. package/dist/src/view/layout/grid.d.ts.map +1 -0
  284. package/dist/src/{utils → view}/layout/padding.d.ts +4 -4
  285. package/dist/src/view/layout/padding.d.ts.map +1 -0
  286. package/dist/src/{utils → view}/layout/padding.js +2 -2
  287. package/dist/src/view/layout/point.d.ts.map +1 -0
  288. package/dist/src/{utils → view}/layout/rectangle.d.ts +8 -2
  289. package/dist/src/view/layout/rectangle.d.ts.map +1 -0
  290. package/dist/src/{utils → view}/layout/rectangle.js +22 -2
  291. package/dist/src/{utils → view}/layout/rectangle.test.js +8 -0
  292. package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts +10 -10
  293. package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts.map +1 -1
  294. package/dist/src/view/renderingContext/bufferedViewRenderingContext.js +10 -10
  295. package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts +2 -2
  296. package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts.map +1 -1
  297. package/dist/src/view/renderingContext/compositeViewRenderingContext.js +4 -4
  298. package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts +4 -4
  299. package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts.map +1 -1
  300. package/dist/src/view/renderingContext/debuggingViewRenderingContext.js +3 -3
  301. package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts +8 -8
  302. package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts.map +1 -1
  303. package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.js +4 -4
  304. package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts +6 -6
  305. package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts.map +1 -1
  306. package/dist/src/view/renderingContext/simpleViewRenderingContext.js +7 -7
  307. package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts +4 -4
  308. package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts.map +1 -1
  309. package/dist/src/view/renderingContext/svgViewRenderingContext.js +6 -6
  310. package/dist/src/view/renderingContext/viewRenderingContext.d.ts +10 -10
  311. package/dist/src/view/renderingContext/viewRenderingContext.d.ts.map +1 -1
  312. package/dist/src/view/renderingContext/viewRenderingContext.js +5 -5
  313. package/dist/src/view/scaleResolution.d.ts +21 -17
  314. package/dist/src/view/scaleResolution.d.ts.map +1 -1
  315. package/dist/src/view/scaleResolution.js +33 -26
  316. package/dist/src/view/scaleResolution.test.js +57 -72
  317. package/dist/src/view/testUtils.d.ts +6 -15
  318. package/dist/src/view/testUtils.d.ts.map +1 -1
  319. package/dist/src/view/testUtils.js +40 -44
  320. package/dist/src/view/title.d.ts +3 -3
  321. package/dist/src/view/title.d.ts.map +1 -1
  322. package/dist/src/view/title.js +12 -12
  323. package/dist/src/view/unitView.d.ts +31 -30
  324. package/dist/src/view/unitView.d.ts.map +1 -1
  325. package/dist/src/view/unitView.js +30 -22
  326. package/dist/src/view/view.d.ts +86 -57
  327. package/dist/src/view/view.d.ts.map +1 -1
  328. package/dist/src/view/view.js +148 -103
  329. package/dist/src/view/view.test.js +9 -8
  330. package/dist/src/view/viewError.d.ts +9 -0
  331. package/dist/src/view/viewError.d.ts.map +1 -0
  332. package/dist/src/view/viewError.js +11 -0
  333. package/dist/src/view/viewFactory.d.ts +53 -20
  334. package/dist/src/view/viewFactory.d.ts.map +1 -1
  335. package/dist/src/view/viewFactory.js +148 -33
  336. package/dist/src/view/viewFactory.test.js +8 -0
  337. package/dist/src/view/viewUtils.d.ts +14 -12
  338. package/dist/src/view/viewUtils.d.ts.map +1 -1
  339. package/dist/src/view/viewUtils.js +10 -63
  340. package/dist/src/view/zoom.d.ts +4 -4
  341. package/dist/src/view/zoom.d.ts.map +1 -1
  342. package/dist/src/view/zoom.js +3 -3
  343. package/package.json +7 -5
  344. package/dist/src/utils/layout/flexLayout.d.ts.map +0 -1
  345. package/dist/src/utils/layout/grid.d.ts.map +0 -1
  346. package/dist/src/utils/layout/padding.d.ts.map +0 -1
  347. package/dist/src/utils/layout/point.d.ts.map +0 -1
  348. package/dist/src/utils/layout/rectangle.d.ts.map +0 -1
  349. package/dist/src/view/implicitRootView.d.ts +0 -9
  350. package/dist/src/view/implicitRootView.d.ts.map +0 -1
  351. package/dist/src/view/implicitRootView.js +0 -23
  352. package/dist/src/view/importView.d.ts +0 -17
  353. package/dist/src/view/importView.d.ts.map +0 -1
  354. package/dist/src/view/importView.js +0 -22
  355. /package/dist/src/{utils → view}/layout/flexLayout.test.js +0 -0
  356. /package/dist/src/{utils → view}/layout/grid.d.ts +0 -0
  357. /package/dist/src/{utils → view}/layout/grid.js +0 -0
  358. /package/dist/src/{utils → view}/layout/grid.test.js +0 -0
  359. /package/dist/src/{utils → view}/layout/point.d.ts +0 -0
  360. /package/dist/src/{utils → view}/layout/point.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"layoutRecorderViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/layoutRecorderViewRenderingContext.js"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH;IAOQ,yBAAyB;IACzB,MADW,UAAU,CACA;IAErB,2BAA2B;IAC3B,OADW,UAAU,EAAE,CACR;IAEf,yBAAyB;IACzB,cADW,UAAU,CACQ;IAgCjC,wBAEC;CACJ;;;;;;mBArDY,OAAO,SAAS,EAAE,OAAO;;;;;;wBACzB,OAAO,8BAA8B,EAAE,OAAO;iCAR1B,2BAA2B;AA8D5D;;;GAGG;AACH;IACI;;;OAGG;IACH,kBAHW,IAAI,UACJ,SAAS,EAOnB;IAJG,gCAAgB;IAChB,uDAAoB;IACpB,2BAA2B;IAC3B,UADW,UAAU,EAAE,CACL;IAGtB;;;OAGG;IACH,qBAFW,UAAU,QAcpB;IAED;;;;;OAKG;IACH,gCAFW,OAAO,8BAA8B,EAAE,OAAO,QAyBxD;CACJ"}
1
+ {"version":3,"file":"layoutRecorderViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/layoutRecorderViewRenderingContext.js"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH;IAOQ,yBAAyB;IACzB,MADW,UAAU,CACA;IAErB,2BAA2B;IAC3B,OADW,UAAU,EAAE,CACR;IAEf,yBAAyB;IACzB,cADW,UAAU,CACQ;IAgCjC,wBAEC;CACJ;;;;;;mBArDY,OAAO,YAAY,EAAE,OAAO;;;;;;wBAC5B,OAAO,wBAAwB,EAAE,OAAO;iCARpB,2BAA2B;AA8D5D;;;GAGG;AACH;IACI;;;OAGG;IACH,kBAHW,IAAI,UACJ,SAAS,EAOnB;IAJG,mCAAgB;IAChB,iDAAoB;IACpB,2BAA2B;IAC3B,UADW,UAAU,EAAE,CACL;IAGtB;;;OAGG;IACH,qBAFW,UAAU,QAcpB;IAED;;;;;OAKG;IACH,gCAFW,OAAO,iCAAiC,EAAE,OAAO,QAyB3D;CACJ"}
@@ -6,13 +6,13 @@ import ViewRenderingContext from "./viewRenderingContext.js";
6
6
  * of view coordinates, including faceted views that are repeated multiple times.
7
7
  * The coordinates can be used for mouse events / interactions, for example.
8
8
  *
9
- * @typedef {import("../view").default} View
10
- * @typedef {import("../../utils/layout/rectangle").default} Rectangle
9
+ * @typedef {import("../view.js").default} View
10
+ * @typedef {import("../layout/rectangle.js").default} Rectangle
11
11
  *
12
12
  */
13
13
  export default class LayoutRecorderViewRenderingContext extends ViewRenderingContext {
14
14
  /**
15
- * @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
15
+ * @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
16
16
  */
17
17
  constructor(globalOptions) {
18
18
  super(globalOptions);
@@ -99,7 +99,7 @@ class ViewCoords {
99
99
  * Broadcasts a message to views that include the given (x, y) point.
100
100
  * This is mainly intended for mouse events.
101
101
  *
102
- * @param {import("../../utils/interactionEvent").default} event
102
+ * @param {import("../../utils/interactionEvent.js").default} event
103
103
  */
104
104
  dispatchInteractionEvent(event) {
105
105
  if (this.coords.containsPoint(event.point.x, event.point.y)) {
@@ -2,18 +2,18 @@
2
2
  * This class is mainly for illustrative purpose, i.e., how the rendering
3
3
  * would be performed in the most straightforward, unoptimized way.
4
4
  *
5
- * @typedef {import("../view").default} View
5
+ * @typedef {import("../view.js").default} View
6
6
  */
7
7
  export default class SimpleViewRenderingContext extends ViewRenderingContext {
8
- /** @type {import("../../utils/layout/rectangle").default} */
9
- coords: import("../../utils/layout/rectangle").default;
10
- /** @type {Set<import("../view").default>} */
11
- views: Set<import("../view").default>;
8
+ /** @type {import("../layout/rectangle.js").default} */
9
+ coords: import("../layout/rectangle.js").default;
10
+ /** @type {Set<import("../view.js").default>} */
11
+ views: Set<import("../view.js").default>;
12
12
  }
13
13
  /**
14
14
  * This class is mainly for illustrative purpose, i.e., how the rendering
15
15
  * would be performed in the most straightforward, unoptimized way.
16
16
  */
17
- export type View = import("../view").default;
17
+ export type View = import("../view.js").default;
18
18
  import ViewRenderingContext from "./viewRenderingContext.js";
19
19
  //# sourceMappingURL=simpleViewRenderingContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"simpleViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/simpleViewRenderingContext.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH;IAMQ,6DAA6D;IAC7D,QADW,OAAO,8BAA8B,EAAE,OAAO,CAClC;IAEvB,6CAA6C;IAC7C,OADW,IAAI,OAAO,SAAS,EAAE,OAAO,CAAC,CACnB;CA6C7B;;;;;mBAzDY,OAAO,SAAS,EAAE,OAAO;iCANL,2BAA2B"}
1
+ {"version":3,"file":"simpleViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/simpleViewRenderingContext.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH;IAMQ,uDAAuD;IACvD,QADW,OAAO,wBAAwB,EAAE,OAAO,CAC5B;IAEvB,gDAAgD;IAChD,OADW,IAAI,OAAO,YAAY,EAAE,OAAO,CAAC,CACtB;CA6C7B;;;;;mBAzDY,OAAO,YAAY,EAAE,OAAO;iCANR,2BAA2B"}
@@ -4,18 +4,18 @@ import ViewRenderingContext from "./viewRenderingContext.js";
4
4
  * This class is mainly for illustrative purpose, i.e., how the rendering
5
5
  * would be performed in the most straightforward, unoptimized way.
6
6
  *
7
- * @typedef {import("../view").default} View
7
+ * @typedef {import("../view.js").default} View
8
8
  */
9
9
  export default class SimpleViewRenderingContext extends ViewRenderingContext {
10
10
  /**
11
- * @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
11
+ * @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
12
12
  */
13
13
  constructor(globalOptions) {
14
14
  super(globalOptions);
15
- /** @type {import("../../utils/layout/rectangle").default} */
15
+ /** @type {import("../layout/rectangle.js").default} */
16
16
  this.coords = undefined;
17
17
 
18
- /** @type {Set<import("../view").default>} */
18
+ /** @type {Set<import("../view.js").default>} */
19
19
  this.views = new Set();
20
20
  }
21
21
 
@@ -23,7 +23,7 @@ export default class SimpleViewRenderingContext extends ViewRenderingContext {
23
23
  * Must be called when a view's render() method is entered
24
24
  *
25
25
  * @param {View} view
26
- * @param {import("../../utils/layout/rectangle").default} coords View coordinates
26
+ * @param {import("../layout/rectangle.js").default} coords View coordinates
27
27
  * inside the padding.
28
28
  */
29
29
  pushView(view, coords) {
@@ -47,8 +47,8 @@ export default class SimpleViewRenderingContext extends ViewRenderingContext {
47
47
 
48
48
  /**
49
49
  *
50
- * @param {import("../../marks/mark").default} mark
51
- * @param {import("../../types/rendering").RenderingOptions} options
50
+ * @param {import("../../marks/mark.js").default} mark
51
+ * @param {import("../../types/rendering.js").RenderingOptions} options
52
52
  */
53
53
  renderMark(mark, options) {
54
54
  if (this.globalOptions.picking && !mark.isPickingParticipant()) {
@@ -2,11 +2,11 @@
2
2
  * A trivial proof-of-concept SVG rendering context. Doesn't render any
3
3
  * marks at this point, only placeholders.
4
4
  *
5
- * @typedef {import("../view").default} View
5
+ * @typedef {import("../view.js").default} View
6
6
  */
7
7
  export default class SvgViewRenderingContext extends ViewRenderingContext {
8
- /** @type {import("../../utils/layout/rectangle").default} */
9
- coords: import("../../utils/layout/rectangle").default;
8
+ /** @type {import("../layout/rectangle.js").default} */
9
+ coords: import("../layout/rectangle.js").default;
10
10
  svg: SVGSVGElement;
11
11
  /** @type {SVGElement[]} */
12
12
  nodeStack: SVGElement[];
@@ -17,6 +17,6 @@ export default class SvgViewRenderingContext extends ViewRenderingContext {
17
17
  * A trivial proof-of-concept SVG rendering context. Doesn't render any
18
18
  * marks at this point, only placeholders.
19
19
  */
20
- export type View = import("../view").default;
20
+ export type View = import("../view.js").default;
21
21
  import ViewRenderingContext from "./viewRenderingContext.js";
22
22
  //# sourceMappingURL=svgViewRenderingContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"svgViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/svgViewRenderingContext.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH;IAQQ,6DAA6D;IAC7D,QADW,OAAO,8BAA8B,EAAE,OAAO,CAClC;IAEvB,mBAGC;IAED,2BAA2B;IAC3B,WADW,UAAU,EAAE,CACI;IAwE/B,wBAEC;IAED,+BAEC;CACJ;;;;;mBAlGY,OAAO,SAAS,EAAE,OAAO;iCANL,2BAA2B"}
1
+ {"version":3,"file":"svgViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/svgViewRenderingContext.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH;IAQQ,uDAAuD;IACvD,QADW,OAAO,wBAAwB,EAAE,OAAO,CAC5B;IAEvB,mBAGC;IAED,2BAA2B;IAC3B,WADW,UAAU,EAAE,CACI;IAwE/B,wBAEC;IAED,+BAEC;CACJ;;;;;mBAlGY,OAAO,YAAY,EAAE,OAAO;iCANR,2BAA2B"}
@@ -5,17 +5,17 @@ import ViewRenderingContext from "./viewRenderingContext.js";
5
5
  * A trivial proof-of-concept SVG rendering context. Doesn't render any
6
6
  * marks at this point, only placeholders.
7
7
  *
8
- * @typedef {import("../view").default} View
8
+ * @typedef {import("../view.js").default} View
9
9
  */
10
10
  export default class SvgViewRenderingContext extends ViewRenderingContext {
11
11
  /**
12
12
  *
13
- * @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
13
+ * @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
14
14
  */
15
15
  constructor(globalOptions) {
16
16
  super(globalOptions);
17
17
 
18
- /** @type {import("../../utils/layout/rectangle").default} */
18
+ /** @type {import("../layout/rectangle.js").default} */
19
19
  this.coords = undefined;
20
20
 
21
21
  this.svg = document.createElementNS(
@@ -31,7 +31,7 @@ export default class SvgViewRenderingContext extends ViewRenderingContext {
31
31
  * Must be called when a view's render() method is entered
32
32
  *
33
33
  * @param {View} view
34
- * @param {import("../../utils/layout/rectangle").default} coords View coordinates
34
+ * @param {import("../layout/rectangle.js").default} coords View coordinates
35
35
  * inside the padding.
36
36
  */
37
37
  pushView(view, coords) {
@@ -67,8 +67,8 @@ export default class SvgViewRenderingContext extends ViewRenderingContext {
67
67
 
68
68
  /**
69
69
  *
70
- * @param {import("../../marks/mark").default} mark
71
- * @param {import("../../types/rendering").RenderingOptions} options
70
+ * @param {import("../../marks/mark.js").default} mark
71
+ * @param {import("../../types/rendering.js").RenderingOptions} options
72
72
  */
73
73
  renderMark(mark, options) {
74
74
  const current = this._currentNode;
@@ -1,21 +1,21 @@
1
1
  /**
2
- * @typedef {import("../view").default} View
2
+ * @typedef {import("../view.js").default} View
3
3
  */
4
4
  export default class ViewRenderingContext {
5
5
  /**
6
6
  *
7
- * @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
7
+ * @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
8
8
  */
9
- constructor(globalOptions: import("../../types/rendering").GlobalRenderingOptions);
10
- globalOptions: import("../../types/rendering").GlobalRenderingOptions;
9
+ constructor(globalOptions: import("../../types/rendering.js").GlobalRenderingOptions);
10
+ globalOptions: import("../../types/rendering.js").GlobalRenderingOptions;
11
11
  /**
12
12
  * Must be called when a view's render() method is entered
13
13
  *
14
14
  * @param {View} view
15
- * @param {import("../../utils/layout/rectangle").default} coords View coordinates
15
+ * @param {import("../layout/rectangle.js").default} coords View coordinates
16
16
  * inside the padding.
17
17
  */
18
- pushView(view: View, coords: import("../../utils/layout/rectangle").default): void;
18
+ pushView(view: View, coords: import("../layout/rectangle.js").default): void;
19
19
  /**
20
20
  * Must be called when a view's render() method is being exited
21
21
  *
@@ -24,10 +24,10 @@ export default class ViewRenderingContext {
24
24
  popView(view: View): void;
25
25
  /**
26
26
  *
27
- * @param {import("../../marks/mark").default} mark
28
- * @param {import("../../types/rendering").RenderingOptions} options
27
+ * @param {import("../../marks/mark.js").default} mark
28
+ * @param {import("../../types/rendering.js").RenderingOptions} options
29
29
  */
30
- renderMark(mark: import("../../marks/mark").default, options: import("../../types/rendering").RenderingOptions): void;
30
+ renderMark(mark: import("../../marks/mark.js").default, options: import("../../types/rendering.js").RenderingOptions): void;
31
31
  }
32
- export type View = import("../view").default;
32
+ export type View = import("../view.js").default;
33
33
  //# sourceMappingURL=viewRenderingContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"viewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/viewRenderingContext.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IACI;;;OAGG;IACH,2BAFW,OAAO,uBAAuB,EAAE,sBAAsB,EAIhE;IADG,sEAAkC;IAGtC;;;;;;OAMG;IACH,eAJW,IAAI,UACJ,OAAO,8BAA8B,EAAE,OAAO,QAKxD;IAED;;;;OAIG;IACH,cAFW,IAAI,QAId;IAED;;;;OAIG;IACH,iBAHW,OAAO,kBAAkB,EAAE,OAAO,WAClC,OAAO,uBAAuB,EAAE,gBAAgB,QAI1D;CACJ;mBAvCY,OAAO,SAAS,EAAE,OAAO"}
1
+ {"version":3,"file":"viewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/viewRenderingContext.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IACI;;;OAGG;IACH,2BAFW,OAAO,0BAA0B,EAAE,sBAAsB,EAInE;IADG,yEAAkC;IAGtC;;;;;;OAMG;IACH,eAJW,IAAI,UACJ,OAAO,wBAAwB,EAAE,OAAO,QAKlD;IAED;;;;OAIG;IACH,cAFW,IAAI,QAId;IAED;;;;OAIG;IACH,iBAHW,OAAO,qBAAqB,EAAE,OAAO,WACrC,OAAO,0BAA0B,EAAE,gBAAgB,QAI7D;CACJ;mBAvCY,OAAO,YAAY,EAAE,OAAO"}
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @typedef {import("../view").default} View
2
+ * @typedef {import("../view.js").default} View
3
3
  */
4
4
  export default class ViewRenderingContext {
5
5
  /**
6
6
  *
7
- * @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
7
+ * @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
8
8
  */
9
9
  constructor(globalOptions) {
10
10
  this.globalOptions = globalOptions;
@@ -14,7 +14,7 @@ export default class ViewRenderingContext {
14
14
  * Must be called when a view's render() method is entered
15
15
  *
16
16
  * @param {View} view
17
- * @param {import("../../utils/layout/rectangle").default} coords View coordinates
17
+ * @param {import("../layout/rectangle.js").default} coords View coordinates
18
18
  * inside the padding.
19
19
  */
20
20
  pushView(view, coords) {
@@ -32,8 +32,8 @@ export default class ViewRenderingContext {
32
32
 
33
33
  /**
34
34
  *
35
- * @param {import("../../marks/mark").default} mark
36
- * @param {import("../../types/rendering").RenderingOptions} options
35
+ * @param {import("../../marks/mark.js").default} mark
36
+ * @param {import("../../types/rendering.js").RenderingOptions} options
37
37
  */
38
38
  renderMark(mark, options) {
39
39
  //
@@ -7,9 +7,9 @@
7
7
  * TODO: This may reconfigure channels that are not affected by the change.
8
8
  * Causes performance issues with domains that are extracted from data.
9
9
  *
10
- * @param {import("./view").default | import("./view").default[]} fromViews
10
+ * @param {import("./view.js").default | import("./view.js").default[]} fromViews
11
11
  */
12
- export function reconfigureScales(fromViews: import("./view").default | import("./view").default[]): void;
12
+ export function reconfigureScales(fromViews: import("./view.js").default | import("./view.js").default[]): void;
13
13
  export const QUANTITATIVE: "quantitative";
14
14
  export const ORDINAL: "ordinal";
15
15
  export const NOMINAL: "nominal";
@@ -17,7 +17,7 @@ export const LOCUS: "locus";
17
17
  export const INDEX: "index";
18
18
  /**
19
19
  * @template {ChannelWithScale}[T=ChannelWithScale]
20
- * @typedef {{view: import("./unitView").default, channel: T}} ResolutionMember
20
+ * @typedef {{view: import("./unitView.js").default, channel: T}} ResolutionMember
21
21
  *
22
22
  */
23
23
  /**
@@ -32,10 +32,10 @@ export default class ScaleResolution implements ScaleResolutionApi {
32
32
  /**
33
33
  * @param {Channel} channel
34
34
  */
35
- constructor(channel: import("../spec/channel").Channel);
36
- channel: import("../spec/channel").Channel;
35
+ constructor(channel: import("../spec/channel.js").Channel);
36
+ channel: import("../spec/channel.js").Channel;
37
37
  /** @type {ResolutionMember[]} The involved views */
38
- members: ResolutionMember<import("../spec/channel").ChannelWithScale>[];
38
+ members: ResolutionMember[];
39
39
  /** @type {string} Data type (quantitative, nominal, etc...) */
40
40
  type: string;
41
41
  /** @type {string} An optional unique identifier for the scale */
@@ -48,12 +48,12 @@ export default class ScaleResolution implements ScaleResolutionApi {
48
48
  * @param {"domain"} type
49
49
  * @param {ScaleResolutionListener} listener function
50
50
  */
51
- addEventListener(type: "domain", listener: import("../types/scaleResolutionApi").ScaleResolutionListener): void;
51
+ addEventListener(type: "domain", listener: import("../types/scaleResolutionApi.js").ScaleResolutionListener): void;
52
52
  /**
53
53
  * @param {"domain"} type
54
54
  * @param {ScaleResolutionListener} listener function
55
55
  */
56
- removeEventListener(type: "domain", listener: import("../types/scaleResolutionApi").ScaleResolutionListener): void;
56
+ removeEventListener(type: "domain", listener: import("../types/scaleResolutionApi.js").ScaleResolutionListener): void;
57
57
  /**
58
58
  * Add a view to this resolution.
59
59
  * N.B. This is expected to be called in depth-first order
@@ -61,7 +61,7 @@ export default class ScaleResolution implements ScaleResolutionApi {
61
61
  * @param {UnitView} view
62
62
  * @param {ChannelWithScale} channel
63
63
  */
64
- pushUnitView(view: import("./unitView").default, channel: import("../spec/channel").ChannelWithScale): void;
64
+ pushUnitView(view: import("./unitView.js").default, channel: import("../spec/channel.js").ChannelWithScale): void;
65
65
  /**
66
66
  * Returns true if the domain has been defined explicitly, i.e. not extracted from the data.
67
67
  */
@@ -71,9 +71,9 @@ export default class ScaleResolution implements ScaleResolutionApi {
71
71
  * Returns the merged scale properties supplemented with inferred properties
72
72
  * and domain.
73
73
  *
74
- * @returns {import("../spec/scale").Scale}
74
+ * @returns {import("../spec/scale.js").Scale}
75
75
  */
76
- getScaleProps(): import("../spec/scale").Scale;
76
+ getScaleProps(): import("../spec/scale.js").Scale;
77
77
  /**
78
78
  * Unions the configured domains of all participating views.
79
79
  *
@@ -93,12 +93,12 @@ export default class ScaleResolution implements ScaleResolutionApi {
93
93
  /**
94
94
  * @returns {VegaScale}
95
95
  */
96
- getScale(): import("../types/encoder").VegaScale;
96
+ getScale(): import("../types/encoder.js").VegaScale;
97
97
  getDomain(): any[];
98
98
  /**
99
99
  * @returns {NumericDomain | ComplexDomain}
100
100
  */
101
- getComplexDomain(): import("../spec/scale").NumericDomain | import("../spec/scale").ComplexDomain;
101
+ getComplexDomain(): import("../spec/scale.js").NumericDomain | import("../spec/scale.js").ComplexDomain;
102
102
  /**
103
103
  * Return true if the scale is zoomable and the current domain differs from the initial domain.
104
104
  *
@@ -125,7 +125,7 @@ export default class ScaleResolution implements ScaleResolutionApi {
125
125
  * @param {boolean | number} [duration] an approximate duration for transition.
126
126
  * Zero duration zooms immediately. Boolean `true` indicates a default duration.
127
127
  */
128
- zoomTo(domain: import("../spec/scale").NumericDomain | import("../spec/scale").ComplexDomain, duration?: boolean | number): Promise<void>;
128
+ zoomTo(domain: import("../spec/scale.js").NumericDomain | import("../spec/scale.js").ComplexDomain, duration?: boolean | number): Promise<void>;
129
129
  /**
130
130
  * Resets the current domain to the initial one
131
131
  *
@@ -139,6 +139,10 @@ export default class ScaleResolution implements ScaleResolutionApi {
139
139
  * be generalized to other quantitative channels such as color, opacity, size, etc.
140
140
  */
141
141
  getZoomLevel(): number;
142
+ /**
143
+ *
144
+ * @returns {import("../genome/genome.js").default}
145
+ */
142
146
  getGenome(): import("../genome/genome.js").default;
143
147
  /**
144
148
  * Inverts a value in range to a value on domain. Returns an object in
@@ -160,11 +164,11 @@ export default class ScaleResolution implements ScaleResolutionApi {
160
164
  * @param {ScalarDomain | ComplexDomain} interval
161
165
  * @returns {number[]}
162
166
  */
163
- fromComplexInterval(interval: import("../spec/scale").ScalarDomain | import("../spec/scale").ComplexDomain): number[];
167
+ fromComplexInterval(interval: import("../spec/scale.js").ScalarDomain | import("../spec/scale.js").ComplexDomain): number[];
164
168
  #private;
165
169
  }
166
- export type ResolutionMember<T extends import("../spec/channel").ChannelWithScale = import("../spec/channel").ChannelWithScale> = {
167
- view: import("./unitView").default;
170
+ export type ResolutionMember<T extends import("../spec/channel.js").ChannelWithScale = import("../spec/channel.js").ChannelWithScale> = {
171
+ view: import("./unitView.js").default;
168
172
  channel: T;
169
173
  };
170
174
  //# sourceMappingURL=scaleResolution.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scaleResolution.d.ts","sourceRoot":"","sources":["../../../src/view/scaleResolution.js"],"names":[],"mappings":"AAo0BA;;;;;;;;;;GAUG;AACH,6CAFW,OAAO,QAAQ,EAAE,OAAO,GAAG,OAAO,QAAQ,EAAE,OAAO,EAAE,QA4B/D;AA1zBD,0CAA2C;AAC3C,gCAAiC;AACjC,gCAAiC;AACjC,4BAA6B;AAC7B,4BAA6B;AAE7B;;;;GAIG;AACH;;;;;;;GAOG;AACH;IAyBI;;OAEG;IACH,wDASC;IARG,2CAAsB;IACtB,oDAAoD;IACpD,wEAAiB;IACjB,+DAA+D;IAC/D,MADW,MAAM,CACD;IAEhB,iEAAiE;IACjE,MADW,MAAM,CACI;IAGzB;;;;;;;OAOG;IACH,uBAHW,QAAQ,iFAQlB;IAED;;;OAGG;IACH,0BAHW,QAAQ,iFAQlB;IAWD;;;;;;OAMG;IACH,4GA0BC;IAED;;OAEG;IACH,4BAEC;IAED,+BAiBC;IAuBD;;;;;OAKG;IACH,iBAFa,OAAO,eAAe,EAAE,KAAK,CA+DzC;IAYD;;;;OAIG;IACH,qEAMC;IAED;;;;OAIG;IACH,+DAQC;IAED;;OAEG;IACH,oBAkCC;IAED;;OAEG;IACH,iDAmBC;IAED,mBAEC;IAED;;OAEG;IACH,oBAFa,6EAA6B,CAOzC;IAED;;;;OAIG;IACH,oBAKC;IAED;;OAEG;IACH,sBAGC;IAUD;;;;;;;OAOG;IACH,kBALW,MAAM,eACN,MAAM,OACN,MAAM,GACJ,OAAO,CAuEnB;IAED;;;;;;OAMG;IACH,eAJW,6EAA6B,aAC7B,OAAO,GAAG,MAAM,iBAgD1B;IAED;;;;OAIG;IACH,qBAcC;IAED;;;;;OAKG;IACH,uBAOC;IA2DD,mDAWC;IAID;;;;;OAKG;IACH,uBAFW,MAAM,yDAUhB;IAED;;OAEG;IACH,iBAFW,MAAM,yDAKhB;IAED;;;OAGG;IACH,6EAFa,MAAM,CAQlB;IAED;;;OAGG;IACH,6GAFa,MAAM,EAAE,CAOpB;;CA6BJ;kIAtrBY;IAAC,IAAI,EAAE,OAAO,YAAY,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAC"}
1
+ {"version":3,"file":"scaleResolution.d.ts","sourceRoot":"","sources":["../../../src/view/scaleResolution.js"],"names":[],"mappings":"AA20BA;;;;;;;;;;GAUG;AACH,6CAFW,OAAO,WAAW,EAAE,OAAO,GAAG,OAAO,WAAW,EAAE,OAAO,EAAE,QA4BrE;AAl0BD,0CAA2C;AAC3C,gCAAiC;AACjC,gCAAiC;AACjC,4BAA6B;AAC7B,4BAA6B;AAE7B;;;;GAIG;AACH;;;;;;;GAOG;AACH;IAyBI;;OAEG;IACH,2DASC;IARG,8CAAsB;IACtB,oDAAoD;IACpD,SADW,gBAAgB,EAAE,CACZ;IACjB,+DAA+D;IAC/D,MADW,MAAM,CACD;IAEhB,iEAAiE;IACjE,MADW,MAAM,CACI;IAGzB;;;;;;;OAOG;IACH,uBAHW,QAAQ,oFAQlB;IAED;;;OAGG;IACH,0BAHW,QAAQ,oFAQlB;IAWD;;;;;;OAMG;IACH,kHA0BC;IAED;;OAEG;IACH,4BAEC;IAED,+BAiBC;IAuBD;;;;;OAKG;IACH,iBAFa,OAAO,kBAAkB,EAAE,KAAK,CA+D5C;IAYD;;;;OAIG;IACH,qEAMC;IAED;;;;OAIG;IACH,+DAQC;IAED;;OAEG;IACH,oBAkCC;IAED;;OAEG;IACH,oDAmBC;IAED,mBAEC;IAED;;OAEG;IACH,oBAFa,mFAA6B,CAOzC;IAED;;;;OAIG;IACH,oBAKC;IAED;;OAEG;IACH,sBAGC;IAUD;;;;;;;OAOG;IACH,kBALW,MAAM,eACN,MAAM,OACN,MAAM,GACJ,OAAO,CAwEnB;IAED;;;;;;OAMG;IACH,eAJW,mFAA6B,aAC7B,OAAO,GAAG,MAAM,iBAgD1B;IAED;;;;OAIG;IACH,qBAcC;IAED;;;;;OAKG;IACH,uBAOC;IA8DD;;;OAGG;IACH,aAFa,OAAO,qBAAqB,EAAE,OAAO,CAajD;IAID;;;;;OAKG;IACH,uBAFW,MAAM,yDAUhB;IAED;;OAEG;IACH,iBAFW,MAAM,yDAKhB;IAED;;;OAGG;IACH,6EAFa,MAAM,CAQlB;IAED;;;OAGG;IACH,mHAFa,MAAM,EAAE,CAOpB;;CA6BJ;wIA9rBY;IAAC,IAAI,EAAE,OAAO,eAAe,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAC"}
@@ -23,7 +23,6 @@ import createScale, { configureScale } from "../scale/scale.js";
23
23
  import { invalidate, getCachedOrCall } from "../utils/propertyCacher.js";
24
24
  import {
25
25
  getChannelDefWithScale,
26
- getDiscreteRange,
27
26
  isColorChannel,
28
27
  isDiscreteChannel,
29
28
  isPositionalChannel,
@@ -53,7 +52,7 @@ export const INDEX = "index";
53
52
 
54
53
  /**
55
54
  * @template {ChannelWithScale}[T=ChannelWithScale]
56
- * @typedef {{view: import("./unitView").default, channel: T}} ResolutionMember
55
+ * @typedef {{view: import("./unitView.js").default, channel: T}} ResolutionMember
57
56
  *
58
57
  */
59
58
  /**
@@ -66,18 +65,18 @@ export const INDEX = "index";
66
65
  */
67
66
  export default class ScaleResolution {
68
67
  /**
69
- * @typedef {import("../types/scaleResolutionApi").ScaleResolutionApi} ScaleResolutionApi
70
- * @typedef {import("../spec/channel").Channel} Channel
71
- * @typedef {import("../spec/channel").ChannelWithScale} ChannelWithScale
72
- * @typedef {import("../spec/scale").NumericDomain} NumericDomain
73
- * @typedef {import("../spec/scale").ScalarDomain} ScalarDomain
74
- * @typedef {import("../spec/scale").ComplexDomain} ComplexDomain
75
- * @typedef {import("../spec/scale").ZoomParams} ZoomParams
76
- * @typedef {import("./unitView").default} UnitView
77
- * @typedef {import("../types/encoder").VegaScale} VegaScale
78
- * @typedef {import("../utils/domainArray").DomainArray} DomainArray
79
- * @typedef {import("../genome/genome").ChromosomalLocus} ChromosomalLocus
80
- * @typedef {import("../types/scaleResolutionApi").ScaleResolutionListener} ScaleResolutionListener
68
+ * @typedef {import("../types/scaleResolutionApi.js").ScaleResolutionApi} ScaleResolutionApi
69
+ * @typedef {import("../spec/channel.js").Channel} Channel
70
+ * @typedef {import("../spec/channel.js").ChannelWithScale} ChannelWithScale
71
+ * @typedef {import("../spec/scale.js").NumericDomain} NumericDomain
72
+ * @typedef {import("../spec/scale.js").ScalarDomain} ScalarDomain
73
+ * @typedef {import("../spec/scale.js").ComplexDomain} ComplexDomain
74
+ * @typedef {import("../spec/scale.js").ZoomParams} ZoomParams
75
+ * @typedef {import("./unitView.js").default} UnitView
76
+ * @typedef {import("../types/encoder.js").VegaScale} VegaScale
77
+ * @typedef {import("../utils/domainArray.js").DomainArray} DomainArray
78
+ * @typedef {import("../genome/genome.js").ChromosomalLocus} ChromosomalLocus
79
+ * @typedef {import("../types/scaleResolutionApi.js").ScaleResolutionListener} ScaleResolutionListener
81
80
  */
82
81
 
83
82
  /** @type {number[]} */
@@ -203,7 +202,7 @@ export default class ScaleResolution {
203
202
  * Collects and merges scale properties from the participating views.
204
203
  * Does not include inferred default values such as schemes etc.
205
204
  *
206
- * @returns {import("../spec/scale").Scale}
205
+ * @returns {import("../spec/scale.js").Scale}
207
206
  */
208
207
  #getMergedScaleProps() {
209
208
  return getCachedOrCall(this, "mergedScaleProps", () => {
@@ -224,7 +223,7 @@ export default class ScaleResolution {
224
223
  * Returns the merged scale properties supplemented with inferred properties
225
224
  * and domain.
226
225
  *
227
- * @returns {import("../spec/scale").Scale}
226
+ * @returns {import("../spec/scale.js").Scale}
228
227
  */
229
228
  getScaleProps() {
230
229
  // eslint-disable-next-line complexity
@@ -449,7 +448,8 @@ export default class ScaleResolution {
449
448
  const oldDomain = scale.domain();
450
449
  let newDomain = [...oldDomain];
451
450
 
452
- // @ts-expect-error
451
+ /** @type {number} */
452
+ // @ts-ignore
453
453
  let anchor = scale.invert(scaleAnchor);
454
454
 
455
455
  if (this.getScaleProps().reverse) {
@@ -648,7 +648,10 @@ export default class ScaleResolution {
648
648
  : "viridis";
649
649
  } else if (isDiscreteChannel(channel)) {
650
650
  // Shapes of point mark, for example
651
- props.range = getDiscreteRange(channel);
651
+ props.range =
652
+ channel == "shape"
653
+ ? ["circle", "square", "triangle-up", "cross", "diamond"]
654
+ : [];
652
655
  } else if (channel == "size") {
653
656
  props.range = [0, 400]; // TODO: Configurable default. This is currently optimized for points.
654
657
  } else if (channel == "angle") {
@@ -658,6 +661,10 @@ export default class ScaleResolution {
658
661
  return props;
659
662
  }
660
663
 
664
+ /**
665
+ *
666
+ * @returns {import("../genome/genome.js").default}
667
+ */
661
668
  getGenome() {
662
669
  if (this.type !== "locus") {
663
670
  return undefined;
@@ -738,7 +745,7 @@ export default class ScaleResolution {
738
745
  !member.view
739
746
  .getLayoutAncestors()
740
747
  // TODO: Should check until the resolved scale resolution
741
- .some((view) => !view.contributesToScaleDomain)
748
+ .some((view) => !view.options.contributesToScaleDomain)
742
749
  )
743
750
  .map(domainAccessor)
744
751
  .filter((domain) => !!domain);
@@ -753,7 +760,7 @@ export default class ScaleResolution {
753
760
  *
754
761
  * @param {Channel} channel
755
762
  * @param {string} dataType
756
- * @returns {import("../spec/scale").ScaleType}
763
+ * @returns {import("../spec/scale.js").ScaleType}
757
764
  */
758
765
  function getDefaultScaleType(channel, dataType) {
759
766
  // TODO: Band scale, Bin-Quantitative
@@ -770,7 +777,7 @@ function getDefaultScaleType(channel, dataType) {
770
777
  }
771
778
 
772
779
  /**
773
- * @type {Partial<Record<Channel, (import("../spec/scale").ScaleType | undefined)[]>>}
780
+ * @type {Partial<Record<Channel, (import("../spec/scale.js").ScaleType | undefined)[]>>}
774
781
  * Default types: nominal, ordinal, quantitative.
775
782
  * undefined = incompatible, "null" = disabled (pass-thru)
776
783
  */
@@ -812,8 +819,8 @@ function getDefaultScaleType(channel, dataType) {
812
819
  }
813
820
 
814
821
  /**
815
- * @param {import("../spec/scale").Scale} props
816
- * @param {import("../spec/channel").Channel} channel
822
+ * @param {import("../spec/scale.js").Scale} props
823
+ * @param {import("../spec/channel.js").Channel} channel
817
824
  */
818
825
  function applyLockedProperties(props, channel) {
819
826
  if (isPositionalChannel(channel) && props.type !== "ordinal") {
@@ -843,13 +850,13 @@ function isZoomParams(zoom) {
843
850
  * TODO: This may reconfigure channels that are not affected by the change.
844
851
  * Causes performance issues with domains that are extracted from data.
845
852
  *
846
- * @param {import("./view").default | import("./view").default[]} fromViews
853
+ * @param {import("./view.js").default | import("./view.js").default[]} fromViews
847
854
  */
848
855
  export function reconfigureScales(fromViews) {
849
856
  /** @type {Set<ScaleResolution>} */
850
857
  const uniqueResolutions = new Set();
851
858
 
852
- /** @param {import("./view").default} view */
859
+ /** @param {import("./view.js").default} view */
853
860
  function collectResolutions(view) {
854
861
  for (const resolution of Object.values(view.resolutions.scale)) {
855
862
  uniqueResolutions.add(resolution);
@@ -863,7 +870,7 @@ export function reconfigureScales(fromViews) {
863
870
  // Ancestors
864
871
  for (const view of fromView.getDataAncestors()) {
865
872
  // Skip axis views etc. They should not mess with the domains.
866
- if (!view.contributesToScaleDomain) {
873
+ if (!view.options.contributesToScaleDomain) {
867
874
  break;
868
875
  }
869
876
  collectResolutions(view);