@genome-spy/core 0.37.3 → 0.38.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 (356) 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 +6448 -20571
  13. package/dist/bundle/index.js +93 -112
  14. package/dist/bundle/long-Veu0zKh9.js +2382 -0
  15. package/dist/bundle/remoteFile-Ur-gRKsH.js +96 -0
  16. package/dist/schema.json +492 -108
  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 +40 -40
  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 +52 -35
  179. package/dist/src/gl/arrayBuilder.d.ts.map +1 -1
  180. package/dist/src/gl/dataToVertices.d.ts +18 -18
  181. package/dist/src/gl/dataToVertices.d.ts.map +1 -1
  182. package/dist/src/gl/dataToVertices.js +10 -10
  183. package/dist/src/gl/webGLHelper.d.ts +4 -4
  184. package/dist/src/gl/webGLHelper.d.ts.map +1 -1
  185. package/dist/src/gl/webGLHelper.js +2 -2
  186. package/dist/src/index.d.ts.map +1 -1
  187. package/dist/src/index.js +1 -1
  188. package/dist/src/marks/link.js +5 -5
  189. package/dist/src/marks/mark.d.ts +35 -32
  190. package/dist/src/marks/mark.d.ts.map +1 -1
  191. package/dist/src/marks/mark.js +26 -23
  192. package/dist/src/marks/markUtils.d.ts +10 -10
  193. package/dist/src/marks/markUtils.d.ts.map +1 -1
  194. package/dist/src/marks/markUtils.js +5 -5
  195. package/dist/src/marks/pointMark.d.ts +1 -1
  196. package/dist/src/marks/pointMark.d.ts.map +1 -1
  197. package/dist/src/marks/pointMark.js +7 -7
  198. package/dist/src/marks/rectMark.d.ts +2 -2
  199. package/dist/src/marks/rectMark.d.ts.map +1 -1
  200. package/dist/src/marks/rectMark.js +7 -7
  201. package/dist/src/marks/rule.js +6 -6
  202. package/dist/src/marks/text.d.ts +1 -1
  203. package/dist/src/marks/text.d.ts.map +1 -1
  204. package/dist/src/marks/text.js +6 -6
  205. package/dist/src/scale/colorUtils.d.ts +4 -4
  206. package/dist/src/scale/colorUtils.d.ts.map +1 -1
  207. package/dist/src/scale/colorUtils.js +2 -2
  208. package/dist/src/scale/glslScaleGenerator.d.ts +3 -3
  209. package/dist/src/scale/glslScaleGenerator.d.ts.map +1 -1
  210. package/dist/src/scale/glslScaleGenerator.js +2 -2
  211. package/dist/src/scale/scale.d.ts +3 -3
  212. package/dist/src/scale/scale.d.ts.map +1 -1
  213. package/dist/src/scale/scale.js +2 -2
  214. package/dist/src/scale/ticks.d.ts +4 -4
  215. package/dist/src/scale/ticks.js +4 -4
  216. package/dist/src/spec/axis.d.ts +1 -1
  217. package/dist/src/spec/channel.d.ts +2 -2
  218. package/dist/src/spec/data.d.ts +2 -2
  219. package/dist/src/spec/mark.d.ts +3 -3
  220. package/dist/src/spec/root.d.ts +2 -2
  221. package/dist/src/spec/sampleView.d.ts +5 -5
  222. package/dist/src/spec/scale.d.ts +1 -1
  223. package/dist/src/spec/title.d.ts +1 -1
  224. package/dist/src/spec/view.d.ts +36 -9
  225. package/dist/src/tooltip/dataTooltipHandler.js +1 -1
  226. package/dist/src/tooltip/refseqGeneTooltipHandler.d.ts.map +1 -1
  227. package/dist/src/tooltip/refseqGeneTooltipHandler.js +1 -1
  228. package/dist/src/tooltip/tooltipHandler.d.ts +1 -1
  229. package/dist/src/tooltip/tooltipHandler.d.ts.map +1 -1
  230. package/dist/src/tooltip/tooltipHandler.ts +1 -1
  231. package/dist/src/types/embedApi.d.ts +3 -3
  232. package/dist/src/types/encoder.d.ts +4 -4
  233. package/dist/src/types/flowBatch.d.ts +1 -1
  234. package/dist/src/types/rendering.d.ts +3 -3
  235. package/dist/src/types/scaleResolutionApi.d.ts +2 -2
  236. package/dist/src/types/viewContext.d.ts +41 -12
  237. package/dist/src/utils/animator.d.ts +2 -2
  238. package/dist/src/utils/animator.d.ts.map +1 -1
  239. package/dist/src/utils/animator.js +1 -1
  240. package/dist/src/utils/inertia.d.ts +3 -3
  241. package/dist/src/utils/inertia.d.ts.map +1 -1
  242. package/dist/src/utils/inertia.js +1 -1
  243. package/dist/src/utils/interactionEvent.d.ts +5 -5
  244. package/dist/src/utils/interactionEvent.d.ts.map +1 -1
  245. package/dist/src/utils/interactionEvent.js +2 -2
  246. package/dist/src/utils/trees.js +1 -1
  247. package/dist/src/view/axisGridView.d.ts +17 -16
  248. package/dist/src/view/axisGridView.d.ts.map +1 -1
  249. package/dist/src/view/axisGridView.js +24 -20
  250. package/dist/src/view/axisResolution.d.ts +10 -10
  251. package/dist/src/view/axisResolution.d.ts.map +1 -1
  252. package/dist/src/view/axisResolution.js +6 -6
  253. package/dist/src/view/axisResolution.test.js +1 -1
  254. package/dist/src/view/axisView.d.ts +18 -17
  255. package/dist/src/view/axisView.d.ts.map +1 -1
  256. package/dist/src/view/axisView.js +39 -35
  257. package/dist/src/view/concatView.d.ts +5 -5
  258. package/dist/src/view/concatView.d.ts.map +1 -1
  259. package/dist/src/view/concatView.js +23 -23
  260. package/dist/src/view/containerView.d.ts +10 -8
  261. package/dist/src/view/containerView.d.ts.map +1 -1
  262. package/dist/src/view/containerView.js +18 -13
  263. package/dist/src/view/facetView.d.ts +12 -12
  264. package/dist/src/view/facetView.d.ts.map +1 -1
  265. package/dist/src/view/facetView.js +19 -19
  266. package/dist/src/view/flowBuilder.d.ts +4 -4
  267. package/dist/src/view/flowBuilder.d.ts.map +1 -1
  268. package/dist/src/view/flowBuilder.js +13 -13
  269. package/dist/src/view/flowBuilder.test.js +7 -7
  270. package/dist/src/view/gridView.d.ts +63 -35
  271. package/dist/src/view/gridView.d.ts.map +1 -1
  272. package/dist/src/view/gridView.js +400 -113
  273. package/dist/src/view/layerView.d.ts +12 -14
  274. package/dist/src/view/layerView.d.ts.map +1 -1
  275. package/dist/src/view/layerView.js +55 -26
  276. package/dist/src/{utils → view}/layout/flexLayout.d.ts +6 -6
  277. package/dist/src/view/layout/flexLayout.d.ts.map +1 -0
  278. package/dist/src/{utils → view}/layout/flexLayout.js +4 -4
  279. package/dist/src/view/layout/grid.d.ts.map +1 -0
  280. package/dist/src/{utils → view}/layout/padding.d.ts +4 -4
  281. package/dist/src/view/layout/padding.d.ts.map +1 -0
  282. package/dist/src/{utils → view}/layout/padding.js +2 -2
  283. package/dist/src/view/layout/point.d.ts.map +1 -0
  284. package/dist/src/{utils → view}/layout/rectangle.d.ts +8 -2
  285. package/dist/src/view/layout/rectangle.d.ts.map +1 -0
  286. package/dist/src/{utils → view}/layout/rectangle.js +22 -2
  287. package/dist/src/{utils → view}/layout/rectangle.test.js +8 -0
  288. package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts +10 -10
  289. package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts.map +1 -1
  290. package/dist/src/view/renderingContext/bufferedViewRenderingContext.js +10 -10
  291. package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts +2 -2
  292. package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts.map +1 -1
  293. package/dist/src/view/renderingContext/compositeViewRenderingContext.js +4 -4
  294. package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts +4 -4
  295. package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts.map +1 -1
  296. package/dist/src/view/renderingContext/debuggingViewRenderingContext.js +3 -3
  297. package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts +8 -8
  298. package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts.map +1 -1
  299. package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.js +4 -4
  300. package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts +6 -6
  301. package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts.map +1 -1
  302. package/dist/src/view/renderingContext/simpleViewRenderingContext.js +7 -7
  303. package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts +4 -4
  304. package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts.map +1 -1
  305. package/dist/src/view/renderingContext/svgViewRenderingContext.js +6 -6
  306. package/dist/src/view/renderingContext/viewRenderingContext.d.ts +10 -10
  307. package/dist/src/view/renderingContext/viewRenderingContext.d.ts.map +1 -1
  308. package/dist/src/view/renderingContext/viewRenderingContext.js +5 -5
  309. package/dist/src/view/scaleResolution.d.ts +21 -17
  310. package/dist/src/view/scaleResolution.d.ts.map +1 -1
  311. package/dist/src/view/scaleResolution.js +29 -24
  312. package/dist/src/view/scaleResolution.test.js +57 -72
  313. package/dist/src/view/testUtils.d.ts +6 -15
  314. package/dist/src/view/testUtils.d.ts.map +1 -1
  315. package/dist/src/view/testUtils.js +40 -44
  316. package/dist/src/view/title.d.ts +3 -3
  317. package/dist/src/view/title.d.ts.map +1 -1
  318. package/dist/src/view/title.js +12 -12
  319. package/dist/src/view/unitView.d.ts +31 -30
  320. package/dist/src/view/unitView.d.ts.map +1 -1
  321. package/dist/src/view/unitView.js +30 -22
  322. package/dist/src/view/view.d.ts +86 -57
  323. package/dist/src/view/view.d.ts.map +1 -1
  324. package/dist/src/view/view.js +148 -103
  325. package/dist/src/view/view.test.js +9 -8
  326. package/dist/src/view/viewError.d.ts +9 -0
  327. package/dist/src/view/viewError.d.ts.map +1 -0
  328. package/dist/src/view/viewError.js +11 -0
  329. package/dist/src/view/viewFactory.d.ts +53 -20
  330. package/dist/src/view/viewFactory.d.ts.map +1 -1
  331. package/dist/src/view/viewFactory.js +148 -33
  332. package/dist/src/view/viewFactory.test.js +8 -0
  333. package/dist/src/view/viewUtils.d.ts +14 -12
  334. package/dist/src/view/viewUtils.d.ts.map +1 -1
  335. package/dist/src/view/viewUtils.js +10 -63
  336. package/dist/src/view/zoom.d.ts +4 -4
  337. package/dist/src/view/zoom.d.ts.map +1 -1
  338. package/dist/src/view/zoom.js +3 -3
  339. package/package.json +7 -5
  340. package/dist/src/utils/layout/flexLayout.d.ts.map +0 -1
  341. package/dist/src/utils/layout/grid.d.ts.map +0 -1
  342. package/dist/src/utils/layout/padding.d.ts.map +0 -1
  343. package/dist/src/utils/layout/point.d.ts.map +0 -1
  344. package/dist/src/utils/layout/rectangle.d.ts.map +0 -1
  345. package/dist/src/view/implicitRootView.d.ts +0 -9
  346. package/dist/src/view/implicitRootView.d.ts.map +0 -1
  347. package/dist/src/view/implicitRootView.js +0 -23
  348. package/dist/src/view/importView.d.ts +0 -17
  349. package/dist/src/view/importView.d.ts.map +0 -1
  350. package/dist/src/view/importView.js +0 -22
  351. /package/dist/src/{utils → view}/layout/flexLayout.test.js +0 -0
  352. /package/dist/src/{utils → view}/layout/grid.d.ts +0 -0
  353. /package/dist/src/{utils → view}/layout/grid.js +0 -0
  354. /package/dist/src/{utils → view}/layout/grid.test.js +0 -0
  355. /package/dist/src/{utils → view}/layout/point.d.ts +0 -0
  356. /package/dist/src/{utils → view}/layout/point.js +0 -0
@@ -3,7 +3,7 @@ export const SAMPLE_FACET_UNIFORM: "SAMPLE_FACET_UNIFORM";
3
3
  export const SAMPLE_FACET_TEXTURE: "SAMPLE_FACET_TEXTURE";
4
4
  /**
5
5
  *
6
- * @typedef {import("../types/rendering").RenderingOptions} RenderingOptions
6
+ * @typedef {import("../types/rendering.js").RenderingOptions} RenderingOptions
7
7
  * @typedef {object} _MarkRenderingOptions
8
8
  * @prop {boolean} [skipViewportSetup] Don't configure viewport. Allows for
9
9
  * optimized faceted rendering
@@ -16,18 +16,18 @@ export const SAMPLE_FACET_TEXTURE: "SAMPLE_FACET_TEXTURE";
16
16
  */
17
17
  export default class Mark {
18
18
  /**
19
- * @typedef {import("../spec/mark").MarkConfig} MarkConfig
20
- * @typedef {import("../spec/channel").Channel} Channel
21
- * @typedef {import("../spec/channel").Encoding} Encoding
22
- * @typedef {import("../spec/channel").ValueDef} ValueDef
19
+ * @typedef {import("../spec/mark.js").MarkConfig} MarkConfig
20
+ * @typedef {import("../spec/channel.js").Channel} Channel
21
+ * @typedef {import("../spec/channel.js").Encoding} Encoding
22
+ * @typedef {import("../spec/channel.js").ValueDef} ValueDef
23
23
  */
24
24
  /**
25
- * @param {import("../view/unitView").default} unitView
25
+ * @param {import("../view/unitView.js").default} unitView
26
26
  */
27
- constructor(unitView: import("../view/unitView").default);
28
- unitView: import("../view/unitView").default;
29
- /** @type {Record<string, import("../types/encoder").Encoder>} */
30
- encoders: Record<string, import("../types/encoder").Encoder>;
27
+ constructor(unitView: import("../view/unitView.js").default);
28
+ unitView: import("../view/unitView.js").default;
29
+ /** @type {Record<string, import("../types/encoder.js").Encoder>} */
30
+ encoders: Record<string, import("../types/encoder.js").Encoder>;
31
31
  /** @type {import("twgl.js").BufferInfo & { allocatedVertices?: number }} WebGL buffers */
32
32
  bufferInfo: import("twgl.js").BufferInfo & {
33
33
  allocatedVertices?: number;
@@ -43,7 +43,7 @@ export default class Mark {
43
43
  /** @type {RangeMap<any>} keep track of facet locations within the vertex array */
44
44
  rangeMap: RangeMap<any>;
45
45
  /** @type {MarkConfig} */
46
- defaultProperties: import("../spec/mark").MarkConfig;
46
+ defaultProperties: import("../spec/mark.js").MarkConfig;
47
47
  /**
48
48
  * A properties object that contains the configured mark properties or
49
49
  * default values as fallback.
@@ -53,7 +53,7 @@ export default class Mark {
53
53
  * @type {Partial<MarkConfig>}
54
54
  * @readonly
55
55
  */
56
- readonly properties: Partial<import("../spec/mark").MarkConfig>;
56
+ readonly properties: Partial<import("../spec/mark.js").MarkConfig>;
57
57
  get opaque(): boolean;
58
58
  /**
59
59
  * Returns attribute info for WebGL attributes that match visual channels.
@@ -67,26 +67,26 @@ export default class Mark {
67
67
  /**
68
68
  * @returns {Channel[]}
69
69
  */
70
- getSupportedChannels(): import("../spec/channel").Channel[];
70
+ getSupportedChannels(): import("../spec/channel.js").Channel[];
71
71
  /**
72
72
  * @returns {Encoding}
73
73
  */
74
- getDefaultEncoding(): import("../spec/channel").Encoding<string>;
74
+ getDefaultEncoding(): import("../spec/channel.js").Encoding<string>;
75
75
  /**
76
76
  * Adds intelligent defaults etc to the encoding.
77
77
  *
78
78
  * @param {Encoding} encoding
79
79
  * @returns {Encoding}
80
80
  */
81
- fixEncoding(encoding: import("../spec/channel").Encoding<string>): import("../spec/channel").Encoding<string>;
81
+ fixEncoding(encoding: import("../spec/channel.js").Encoding<string>): import("../spec/channel.js").Encoding<string>;
82
82
  /**
83
83
  * Returns the encoding spec supplemented with mark's default encodings
84
84
  *
85
85
  * @returns {Encoding}
86
86
  */
87
- get encoding(): import("../spec/channel").Encoding<string>;
87
+ get encoding(): import("../spec/channel.js").Encoding<string>;
88
88
  getContext(): import("../types/viewContext.js").default;
89
- getType(): import("../spec/mark").MarkType;
89
+ getType(): import("../spec/mark.js").MarkType;
90
90
  initializeData(): void;
91
91
  /**
92
92
  * Initialize encoders that encode fields of the data (or constants) to
@@ -115,7 +115,10 @@ export default class Mark {
115
115
  program: WebGLProgram;
116
116
  getProgramErrors: () => {
117
117
  message: string;
118
- detail: string;
118
+ detail: string; /**
119
+ *
120
+ * @param {any} vertexData TODO: Extract type from VertexBuilder
121
+ */
119
122
  };
120
123
  };
121
124
  /**
@@ -153,10 +156,10 @@ export default class Mark {
153
156
  * views, i.e., multiple views share the uniforms (such as mark properties
154
157
  * and scales) and buffers.
155
158
  *
156
- * @param {import("../types/rendering").GlobalRenderingOptions} options
159
+ * @param {import("../types/rendering.js").GlobalRenderingOptions} options
157
160
  * @returns {(() => void)[]}
158
161
  */
159
- prepareRender(options: import("../types/rendering").GlobalRenderingOptions): (() => void)[];
162
+ prepareRender(options: import("../types/rendering.js").GlobalRenderingOptions): (() => void)[];
160
163
  /**
161
164
  * Prepares rendering of a single sample facet.
162
165
  *
@@ -176,17 +179,17 @@ export default class Mark {
176
179
  render(options: MarkRenderingOptions): () => void;
177
180
  /**
178
181
  * @param {DrawFunction} draw A function that draws a range of vertices
179
- * @param {import("./mark").MarkRenderingOptions} options
182
+ * @param {import("./mark.js").MarkRenderingOptions} options
180
183
  */
181
- createRenderCallback(draw: DrawFunction, options: import("./mark").MarkRenderingOptions): () => void;
184
+ createRenderCallback(draw: DrawFunction, options: import("./mark.js").MarkRenderingOptions): () => void;
182
185
  /**
183
186
  * Sets viewport, clipping, and uniforms related to scaling and translation
184
187
  *
185
- * @param {import("../utils/layout/rectangle").default} coords
186
- * @param {import("../utils/layout/rectangle").default} [clipRect]
188
+ * @param {import("../view/layout/rectangle.js").default} coords
189
+ * @param {import("../view/layout/rectangle.js").default} [clipRect]
187
190
  * @returns {boolean} true if the viewport is renderable (size > 0)
188
191
  */
189
- setViewport(coords: import("../utils/layout/rectangle").default, clipRect?: import("../utils/layout/rectangle").default): boolean;
192
+ setViewport(coords: import("../view/layout/rectangle.js").default, clipRect?: import("../view/layout/rectangle.js").default): boolean;
190
193
  /**
191
194
  * Finds a datum that overlaps the given value on the x domain.
192
195
  * The result is unspecified if multiple data are found.
@@ -194,12 +197,12 @@ export default class Mark {
194
197
  * This is highly specific to SampleView and its sorting/filtering functionality.
195
198
  *
196
199
  * @param {string} facetId
197
- * @param {import("../spec/channel").Scalar} x value on the x domain
200
+ * @param {import("../spec/channel.js").Scalar} x value on the x domain
198
201
  * @returns {any}
199
202
  */
200
- findDatumAt(facetId: string, x: import("../spec/channel").Scalar): any;
203
+ findDatumAt(facetId: string, x: import("../spec/channel.js").Scalar): any;
201
204
  }
202
- export type RenderingOptions = import("../types/rendering").RenderingOptions;
205
+ export type RenderingOptions = import("../types/rendering.js").RenderingOptions;
203
206
  export type _MarkRenderingOptions = {
204
207
  /**
205
208
  * Don't configure viewport. Allows for
@@ -210,16 +213,16 @@ export type _MarkRenderingOptions = {
210
213
  export type MarkRenderingOptions = RenderingOptions & _MarkRenderingOptions;
211
214
  export type DrawFunction = (offset: number, count: number) => any;
212
215
  /**
213
- * @augments {InternMap<K, import("../gl/dataToVertices").RangeEntry>}
216
+ * @augments {InternMap<K, import("../gl/dataToVertices.js").RangeEntry>}
214
217
  * @template K
215
218
  */
216
- declare class RangeMap<K> extends InternMap<K, import("../gl/dataToVertices").RangeEntry> {
219
+ declare class RangeMap<K> extends InternMap<K, import("../gl/dataToVertices.js").RangeEntry> {
217
220
  constructor();
218
221
  /**
219
222
  *
220
- * @param {Map<K, import("../gl/dataToVertices").RangeEntry>} anotherMap
223
+ * @param {Map<K, import("../gl/dataToVertices.js").RangeEntry>} anotherMap
221
224
  */
222
- migrateEntries(anotherMap: Map<K, import("../gl/dataToVertices").RangeEntry>): void;
225
+ migrateEntries(anotherMap: Map<K, import("../gl/dataToVertices.js").RangeEntry>): void;
223
226
  }
224
227
  import { InternMap } from "internmap";
225
228
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"mark.d.ts","sourceRoot":"","sources":["../../../src/marks/mark.js"],"names":[],"mappings":";AAuCA,0DAA2D;AAC3D,0DAA2D;AAE3D;;;;;;;;;;;;GAYG;AACH;IACI;;;;;OAKG;IAEH;;OAEG;IACH,sBAFW,OAAO,kBAAkB,EAAE,OAAO,EAoE5C;IAjEG,6CAAwB;IAExB,iEAAiE;IACjE,UADW,OAAO,MAAM,EAAE,OAAO,kBAAkB,EAAE,OAAO,CAAC,CACpC;IAIzB,0FAA0F;IAC1F;4BADgE,MAAM;MAC3C;IAE3B,0DAA0D;IAC1D,aADW,OAAO,SAAS,EAAE,WAAW,CACZ;IAE5B,8DAA8D;IAC9D,iBADW,OAAO,SAAS,EAAE,eAAe,CACZ;IAEhC,+DAA+D;IAC/D,mBADW,OAAO,SAAS,EAAE,gBAAgB,CACX;IAElC,+DAA+D;IAC/D,iBADW,OAAO,SAAS,EAAE,gBAAgB,CACb;IAEhC,kFAAkF;IAClF,UADW,SAAS,GAAG,CAAC,CACM;IAG9B,yBAAyB;IACzB,qDAqBC;IAED;;;;;;;;OAQG;IACH,gEAKC;IAGL,sBAEC;IAED;;;;;;;OAOG;IACH,iBAFa,MAAM,EAAE,CAKpB;IAED;;OAEG;IACH,4DAWC;IAED;;OAEG;IACH,iEAcC;IAED;;;;;OAKG;IACH,8GAEC;IAED;;;;OAIG;IACH,2DAyCC;IAED,wDAEC;IAED,2CAEC;IAED,uBAEC;IAED;;;OAGG;IACH,2BAEC;IAED;;OAEG;IACH,oCAEC;IAED;;OAEG;IACH,2BAEC;IAED,sEAeC;IAED;;;;;OAKG;IACH,mCAJW,MAAM,kBACN,MAAM,iBACN,MAAM,EAAE,QA+FlB;IAtFG,uBAAuB;IACvB,gBADW,MAAM,EAAE,CACK;IAgFxB;;;;;;MAIC;IAGL;;;OAGG;IACH,uCA2CC;IAED,mBAgBC;IAED;;OAEG;IACH,2BAiBC;IAED;;;OAGG;IACH,6BAFW,GAAG,QAoCb;IAED,yBAAyB;IACzB,uDAEC;IAED,yBAAyB;IACzB,iCAEC;IAED,gCAEC;IAED,+BAEC;IAED,yCAEC;IAED;;;;;OAKG;IACH,gCAcC;IAED;;;;;;;;OAQG;IAEH,uBAJW,OAAO,oBAAoB,EAAE,sBAAsB,GACjD,CAAC,MAAM,IAAI,CAAC,EAAE,CA+H1B;IAED;;;;;;OAMG;IACH,qCAJW,oBAAoB,GAClB,OAAO,CAqCnB;IAED;;;;;;;OAOG;IACH,gBAJW,oBAAoB,SACP,IAAI,CAM3B;IAED;;;OAGG;IACH,2BAHW,YAAY,WACZ,OAAO,QAAQ,EAAE,oBAAoB,cAmE/C;IAED;;;;;;OAMG;IACH,oBAJW,OAAO,2BAA2B,EAAE,OAAO,aAC3C,OAAO,2BAA2B,EAAE,OAAO,GACzC,OAAO,CAmHnB;IAED;;;;;;;;;OASG;IACH,qBAJW,MAAM,KACN,OAAO,iBAAiB,EAAE,MAAM,GAC9B,GAAG,CAIf;CACJ;+BA35BY,OAAO,oBAAoB,EAAE,gBAAgB;;;;;;wBAEhD,OAAO;;mCAEJ,gBAAgB,GAAG,qBAAqB;oCAG1C,MAAM,SACN,MAAM;AAq5BjB;;;GAGG;AACH;IACI,cAEC;IAkBD;;;OAGG;IACH,2BAFW,IAAI,CAAC,EAAE,OAAO,sBAAsB,EAAE,UAAU,CAAC,QAM3D;CACJ;0BAv8ByB,WAAW"}
1
+ {"version":3,"file":"mark.d.ts","sourceRoot":"","sources":["../../../src/marks/mark.js"],"names":[],"mappings":";AAwCA,0DAA2D;AAC3D,0DAA2D;AAE3D;;;;;;;;;;;;GAYG;AACH;IACI;;;;;OAKG;IAEH;;OAEG;IACH,sBAFW,OAAO,qBAAqB,EAAE,OAAO,EAoE/C;IAjEG,gDAAwB;IAExB,oEAAoE;IACpE,UADW,OAAO,MAAM,EAAE,OAAO,qBAAqB,EAAE,OAAO,CAAC,CACvC;IAIzB,0FAA0F;IAC1F,YADW,OAAO,SAAS,EAAE,UAAU,GAAG;QAAE,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAC7C;IAE3B,0DAA0D;IAC1D,aADW,OAAO,SAAS,EAAE,WAAW,CACZ;IAE5B,8DAA8D;IAC9D,iBADW,OAAO,SAAS,EAAE,eAAe,CACZ;IAEhC,+DAA+D;IAC/D,mBADW,OAAO,SAAS,EAAE,gBAAgB,CACX;IAElC,+DAA+D;IAC/D,iBADW,OAAO,SAAS,EAAE,gBAAgB,CACb;IAEhC,kFAAkF;IAClF,UADW,SAAS,GAAG,CAAC,CACM;IAG9B,yBAAyB;IACzB,wDAqBC;IAED;;;;;;;;OAQG;IACH,mEAKC;IAGL,sBAEC;IAED;;;;;;;OAOG;IACH,iBAFa,MAAM,EAAE,CAKpB;IAED;;OAEG;IACH,+DAWC;IAED;;OAEG;IACH,oEAcC;IAED;;;;;OAKG;IACH,oHAEC;IAED;;;;OAIG;IACH,8DAyCC;IAED,wDAEC;IAED,8CAEC;IAED,uBAEC;IAED;;;OAGG;IACH,2BAEC;IAED;;OAEG;IACH,oCAEC;IAED;;OAEG;IACH,2BAEC;IAED,sEAeC;IAED;;;;;OAKG;IACH,mCAJW,MAAM,kBACN,MAAM,iBACN,MAAM,EAAE,QA+FlB;IAtFG,uBAAuB;IACvB,gBADW,MAAM,EAAE,CACK;IAgFxB;;;;4BAgGJ;;;eAGG;;MA/FE;IAGL;;;OAGG;IACH,uCA2CC;IAED,mBAgBC;IAED;;OAEG;IACH,2BAiBC;IAED;;;OAGG;IACH,6BAFW,GAAG,QAoCb;IAED,yBAAyB;IACzB,uDAEC;IAED,yBAAyB;IACzB,iCAEC;IAED,gCAEC;IAED,+BAEC;IAED,yCAEC;IAED;;;;;OAKG;IACH,gCAcC;IAED;;;;;;;;OAQG;IAEH,uBAJW,OAAO,uBAAuB,EAAE,sBAAsB,GACpD,CAAC,MAAM,IAAI,CAAC,EAAE,CA+H1B;IAED;;;;;;OAMG;IACH,qCAJW,oBAAoB,GAClB,OAAO,CAqCnB;IAED;;;;;;;OAOG;IACH,gBAJW,oBAAoB,SACP,IAAI,CAM3B;IAED;;;OAGG;IACH,2BAHW,YAAY,WACZ,OAAO,WAAW,EAAE,oBAAoB,cAiElD;IAED;;;;;;OAMG;IACH,oBAJW,OAAO,6BAA6B,EAAE,OAAO,aAC7C,OAAO,6BAA6B,EAAE,OAAO,GAC3C,OAAO,CAuHnB;IAED;;;;;;;;;OASG;IACH,qBAJW,MAAM,KACN,OAAO,oBAAoB,EAAE,MAAM,GACjC,GAAG,CAIf;CACJ;+BA75BY,OAAO,uBAAuB,EAAE,gBAAgB;;;;;;wBAEnD,OAAO;;mCAEJ,gBAAgB,GAAG,qBAAqB;oCAG1C,MAAM,SACN,MAAM;AAu5BjB;;;GAGG;AACH;IACI,cAEC;IAkBD;;;OAGG;IACH,2BAFW,IAAI,CAAC,EAAE,OAAO,yBAAyB,EAAE,UAAU,CAAC,QAM9D;CACJ;0BA18ByB,WAAW"}
@@ -36,13 +36,14 @@ import coalesceProperties from "../utils/propertyCoalescer.js";
36
36
  import { isScalar } from "../utils/variableTools.js";
37
37
  import { InternMap } from "internmap";
38
38
  import scaleNull from "../utils/scaleNull.js";
39
+ import ViewError from "../view/viewError.js";
39
40
 
40
41
  export const SAMPLE_FACET_UNIFORM = "SAMPLE_FACET_UNIFORM";
41
42
  export const SAMPLE_FACET_TEXTURE = "SAMPLE_FACET_TEXTURE";
42
43
 
43
44
  /**
44
45
  *
45
- * @typedef {import("../types/rendering").RenderingOptions} RenderingOptions
46
+ * @typedef {import("../types/rendering.js").RenderingOptions} RenderingOptions
46
47
  * @typedef {object} _MarkRenderingOptions
47
48
  * @prop {boolean} [skipViewportSetup] Don't configure viewport. Allows for
48
49
  * optimized faceted rendering
@@ -55,19 +56,19 @@ export const SAMPLE_FACET_TEXTURE = "SAMPLE_FACET_TEXTURE";
55
56
  */
56
57
  export default class Mark {
57
58
  /**
58
- * @typedef {import("../spec/mark").MarkConfig} MarkConfig
59
- * @typedef {import("../spec/channel").Channel} Channel
60
- * @typedef {import("../spec/channel").Encoding} Encoding
61
- * @typedef {import("../spec/channel").ValueDef} ValueDef
59
+ * @typedef {import("../spec/mark.js").MarkConfig} MarkConfig
60
+ * @typedef {import("../spec/channel.js").Channel} Channel
61
+ * @typedef {import("../spec/channel.js").Encoding} Encoding
62
+ * @typedef {import("../spec/channel.js").ValueDef} ValueDef
62
63
  */
63
64
 
64
65
  /**
65
- * @param {import("../view/unitView").default} unitView
66
+ * @param {import("../view/unitView.js").default} unitView
66
67
  */
67
68
  constructor(unitView) {
68
69
  this.unitView = unitView;
69
70
 
70
- /** @type {Record<string, import("../types/encoder").Encoder>} */
71
+ /** @type {Record<string, import("../types/encoder.js").Encoder>} */
71
72
  this.encoders = undefined;
72
73
 
73
74
  // TODO: Consolidate the following webgl stuff into a single object
@@ -97,7 +98,7 @@ export default class Mark {
97
98
  // TODO: Cache once the scales have been resolved
98
99
  // TODO: Only check channels that are used
99
100
  // TODO: provide more fine-grained xClip and yClip props
100
- return /** @type {import("../spec/channel").PositionalChannel[]} */ ([
101
+ return /** @type {import("../spec/channel.js").PositionalChannel[]} */ ([
101
102
  "x",
102
103
  "y",
103
104
  ])
@@ -404,7 +405,7 @@ export default class Mark {
404
405
  if (error.detail) {
405
406
  console.warn(error.detail);
406
407
  }
407
- /** @type {Error & { view?: import("../view/view").default}} */
408
+ /** @type {Error & { view?: import("../view/view.js").default}} */
408
409
  const err = new Error(
409
410
  "Cannot create shader program: " + error.message
410
411
  );
@@ -573,7 +574,7 @@ export default class Mark {
573
574
  * views, i.e., multiple views share the uniforms (such as mark properties
574
575
  * and scales) and buffers.
575
576
  *
576
- * @param {import("../types/rendering").GlobalRenderingOptions} options
577
+ * @param {import("../types/rendering.js").GlobalRenderingOptions} options
577
578
  * @returns {(() => void)[]}
578
579
  */
579
580
  // eslint-disable-next-line complexity
@@ -761,22 +762,20 @@ export default class Mark {
761
762
 
762
763
  /**
763
764
  * @param {DrawFunction} draw A function that draws a range of vertices
764
- * @param {import("./mark").MarkRenderingOptions} options
765
+ * @param {import("./mark.js").MarkRenderingOptions} options
765
766
  */
766
767
  createRenderCallback(draw, options) {
767
768
  if (!this.bufferInfo) {
768
- const e = new Error(
769
- `${this.getType()} mark has no data. This is bug.`
769
+ throw new ViewError(
770
+ `${this.getType()} mark has no data. This is bug.`,
771
+ this.unitView
770
772
  );
771
- // @ts-ignore
772
- e.view = this.unitView;
773
- throw e;
774
773
  }
775
774
 
776
775
  // eslint-disable-next-line consistent-this
777
776
  const self = this;
778
777
 
779
- /** @type {function(import("../gl/dataToVertices").RangeEntry):void} rangeEntry */
778
+ /** @type {function(import("../gl/dataToVertices.js").RangeEntry):void} rangeEntry */
780
779
  let drawWithRangeEntry;
781
780
 
782
781
  const scale = this.unitView.getScaleResolution("x")?.getScale();
@@ -833,8 +832,8 @@ export default class Mark {
833
832
  /**
834
833
  * Sets viewport, clipping, and uniforms related to scaling and translation
835
834
  *
836
- * @param {import("../utils/layout/rectangle").default} coords
837
- * @param {import("../utils/layout/rectangle").default} [clipRect]
835
+ * @param {import("../view/layout/rectangle.js").default} coords
836
+ * @param {import("../view/layout/rectangle.js").default} [clipRect]
838
837
  * @returns {boolean} true if the viewport is renderable (size > 0)
839
838
  */
840
839
  setViewport(coords, clipRect) {
@@ -867,6 +866,10 @@ export default class Mark {
867
866
  let uViewScale;
868
867
 
869
868
  if (clipRect) {
869
+ // The following fails with axes that are handled by a GridView
870
+ // that itself is scrollable. The axes are clipped to the viewport
871
+ // but also to the axis view, resulting in clipped axes where
872
+ // not necessary.
870
873
  clippedCoords = coords.intersect(clipRect).flatten();
871
874
  if (!clippedCoords.isDefined()) {
872
875
  return false;
@@ -878,7 +881,7 @@ export default class Mark {
878
881
  ];
879
882
 
880
883
  yClipOffset = Math.max(0, coords.y2 - clipRect.y2);
881
- xClipOffset = Math.max(0, coords.x2 - clipRect.x2);
884
+ xClipOffset = Math.min(0, coords.x - clipRect.x);
882
885
  } else {
883
886
  uViewScale = [1, 1];
884
887
  }
@@ -959,7 +962,7 @@ export default class Mark {
959
962
  * This is highly specific to SampleView and its sorting/filtering functionality.
960
963
  *
961
964
  * @param {string} facetId
962
- * @param {import("../spec/channel").Scalar} x value on the x domain
965
+ * @param {import("../spec/channel.js").Scalar} x value on the x domain
963
966
  * @returns {any}
964
967
  */
965
968
  findDatumAt(facetId, x) {
@@ -968,7 +971,7 @@ export default class Mark {
968
971
  }
969
972
 
970
973
  /**
971
- * @augments {InternMap<K, import("../gl/dataToVertices").RangeEntry>}
974
+ * @augments {InternMap<K, import("../gl/dataToVertices.js").RangeEntry>}
972
975
  * @template K
973
976
  */
974
977
  class RangeMap extends InternMap {
@@ -994,7 +997,7 @@ class RangeMap extends InternMap {
994
997
 
995
998
  /**
996
999
  *
997
- * @param {Map<K, import("../gl/dataToVertices").RangeEntry>} anotherMap
1000
+ * @param {Map<K, import("../gl/dataToVertices.js").RangeEntry>} anotherMap
998
1001
  */
999
1002
  migrateEntries(anotherMap) {
1000
1003
  for (const [key, value] of anotherMap.entries()) {
@@ -1,23 +1,23 @@
1
1
  /**
2
2
  *
3
- * @typedef {import("../spec/channel").Encoding} Encoding
4
- * @typedef {import("../spec/channel").Channel} Channel
3
+ * @typedef {import("../spec/channel.js").Encoding} Encoding
4
+ * @typedef {import("../spec/channel.js").Channel} Channel
5
5
  */
6
6
  /**
7
7
  * @param {Encoding} encoding
8
- * @param {import("../spec/channel").PrimaryPositionalChannel} channel
8
+ * @param {import("../spec/channel.js").PrimaryPositionalChannel} channel
9
9
  */
10
- export function fixPositional(encoding: Encoding, channel: import("../spec/channel").PrimaryPositionalChannel): void;
10
+ export function fixPositional(encoding: Encoding, channel: import("../spec/channel.js").PrimaryPositionalChannel): void;
11
11
  /**
12
- * @param {import("../spec/channel").Encoding} encoding
12
+ * @param {import("../spec/channel.js").Encoding} encoding
13
13
  * @param {boolean} filled
14
14
  */
15
- export function fixStroke(encoding: import("../spec/channel").Encoding, filled: boolean): void;
15
+ export function fixStroke(encoding: import("../spec/channel.js").Encoding, filled: boolean): void;
16
16
  /**
17
- * @param {import("../spec/channel").Encoding} encoding
17
+ * @param {import("../spec/channel.js").Encoding} encoding
18
18
  * @param {boolean} filled
19
19
  */
20
- export function fixFill(encoding: import("../spec/channel").Encoding, filled: boolean): void;
21
- export type Encoding = import("../spec/channel").Encoding;
22
- export type Channel = import("../spec/channel").Channel;
20
+ export function fixFill(encoding: import("../spec/channel.js").Encoding, filled: boolean): void;
21
+ export type Encoding = import("../spec/channel.js").Encoding;
22
+ export type Channel = import("../spec/channel.js").Channel;
23
23
  //# sourceMappingURL=markUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"markUtils.d.ts","sourceRoot":"","sources":["../../../src/marks/markUtils.js"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH;;;GAGG;AACH,wCAHW,QAAQ,WACR,OAAO,iBAAiB,EAAE,wBAAwB,QAoD5D;AAED;;;GAGG;AACH,oCAHW,OAAO,iBAAiB,EAAE,QAAQ,UAClC,OAAO,QAyBjB;AAED;;;GAGG;AACH,kCAHW,OAAO,iBAAiB,EAAE,QAAQ,UAClC,OAAO,QAyBjB;uBApHY,OAAO,iBAAiB,EAAE,QAAQ;sBAClC,OAAO,iBAAiB,EAAE,OAAO"}
1
+ {"version":3,"file":"markUtils.d.ts","sourceRoot":"","sources":["../../../src/marks/markUtils.js"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH;;;GAGG;AACH,wCAHW,QAAQ,WACR,OAAO,oBAAoB,EAAE,wBAAwB,QAoD/D;AAED;;;GAGG;AACH,oCAHW,OAAO,oBAAoB,EAAE,QAAQ,UACrC,OAAO,QAyBjB;AAED;;;GAGG;AACH,kCAHW,OAAO,oBAAoB,EAAE,QAAQ,UACrC,OAAO,QAyBjB;uBApHY,OAAO,oBAAoB,EAAE,QAAQ;sBACrC,OAAO,oBAAoB,EAAE,OAAO"}
@@ -6,13 +6,13 @@ import {
6
6
 
7
7
  /**
8
8
  *
9
- * @typedef {import("../spec/channel").Encoding} Encoding
10
- * @typedef {import("../spec/channel").Channel} Channel
9
+ * @typedef {import("../spec/channel.js").Encoding} Encoding
10
+ * @typedef {import("../spec/channel.js").Channel} Channel
11
11
  */
12
12
 
13
13
  /**
14
14
  * @param {Encoding} encoding
15
- * @param {import("../spec/channel").PrimaryPositionalChannel} channel
15
+ * @param {import("../spec/channel.js").PrimaryPositionalChannel} channel
16
16
  */
17
17
  export function fixPositional(encoding, channel) {
18
18
  const secondaryChannel = getSecondaryChannel(channel);
@@ -67,7 +67,7 @@ export function fixPositional(encoding, channel) {
67
67
  }
68
68
 
69
69
  /**
70
- * @param {import("../spec/channel").Encoding} encoding
70
+ * @param {import("../spec/channel.js").Encoding} encoding
71
71
  * @param {boolean} filled
72
72
  */
73
73
  export function fixStroke(encoding, filled) {
@@ -96,7 +96,7 @@ export function fixStroke(encoding, filled) {
96
96
  }
97
97
 
98
98
  /**
99
- * @param {import("../spec/channel").Encoding} encoding
99
+ * @param {import("../spec/channel.js").Encoding} encoding
100
100
  * @param {boolean} filled
101
101
  */
102
102
  export function fixFill(encoding, filled) {
@@ -4,7 +4,7 @@ export default class PointMark extends Mark {
4
4
  /**
5
5
  * Returns the maximum size of the points in the data, before any scaling
6
6
  */
7
- _getMaxPointSize(): import("../spec/channel").Scalar;
7
+ _getMaxPointSize(): import("../spec/channel.js").Scalar;
8
8
  getSemanticThreshold(): number;
9
9
  }
10
10
  import Mark from "./mark.js";
@@ -1 +1 @@
1
- {"version":3,"file":"pointMark.d.ts","sourceRoot":"","sources":["../../../src/marks/pointMark.js"],"names":[],"mappings":"AAaA;IAsGY,oCAMC;IAwCT,mCAQC;IAED;;OAEG;IACH,qDASC;IAED,+BAoBC;CA6CJ;iBApPgB,WAAW"}
1
+ {"version":3,"file":"pointMark.d.ts","sourceRoot":"","sources":["../../../src/marks/pointMark.js"],"names":[],"mappings":"AAaA;IAsGY,oCAMC;IAwCT,mCAQC;IAED;;OAEG;IACH,wDASC;IAED,+BAoBC;CA6CJ;iBApPgB,WAAW"}
@@ -8,12 +8,12 @@ import Mark from "./mark.js";
8
8
  import { sampleIterable } from "../data/transforms/sample.js";
9
9
  import { fixFill, fixStroke } from "./markUtils.js";
10
10
 
11
- /** @type {Record<string, import("../spec/channel").ChannelDef>} */
11
+ /** @type {Record<string, import("../spec/channel.js").ChannelDef>} */
12
12
  const defaultEncoding = {};
13
13
 
14
14
  export default class PointMark extends Mark {
15
15
  /**
16
- * @param {import("../view/unitView").default} unitView
16
+ * @param {import("../view/unitView.js").default} unitView
17
17
  */
18
18
  constructor(unitView) {
19
19
  super(unitView);
@@ -65,7 +65,7 @@ export default class PointMark extends Mark {
65
65
  }
66
66
 
67
67
  /**
68
- * @returns {import("../spec/channel").Channel[]}
68
+ * @returns {import("../spec/channel.js").Channel[]}
69
69
  */
70
70
  getSupportedChannels() {
71
71
  return [
@@ -89,8 +89,8 @@ export default class PointMark extends Mark {
89
89
  }
90
90
 
91
91
  /**
92
- * @param {import("../spec/channel").Encoding} encoding
93
- * @returns {import("../spec/channel").Encoding}
92
+ * @param {import("../spec/channel.js").Encoding} encoding
93
+ * @returns {import("../spec/channel.js").Encoding}
94
94
  */
95
95
  fixEncoding(encoding) {
96
96
  fixStroke(encoding, this.properties.filled);
@@ -206,7 +206,7 @@ export default class PointMark extends Mark {
206
206
  }
207
207
 
208
208
  /**
209
- * @param {import("../types/rendering").GlobalRenderingOptions} options
209
+ * @param {import("../types/rendering.js").GlobalRenderingOptions} options
210
210
  */
211
211
  prepareRender(options) {
212
212
  const ops = super.prepareRender(options);
@@ -231,7 +231,7 @@ export default class PointMark extends Mark {
231
231
  }
232
232
 
233
233
  /**
234
- * @param {import("./mark").MarkRenderingOptions} options
234
+ * @param {import("./mark.js").MarkRenderingOptions} options
235
235
  */
236
236
  render(options) {
237
237
  const gl = this.gl;
@@ -8,11 +8,11 @@ export default class RectMark extends Mark {
8
8
  * This is highly specific to SampleView and its sorting/filtering functionality.
9
9
  *
10
10
  * @param {any} facetId
11
- * @param {import("../spec/channel").Scalar} x value on the x domain
11
+ * @param {import("../spec/channel.js").Scalar} x value on the x domain
12
12
  * @returns {any}
13
13
  * @override
14
14
  */
15
- override findDatumAt(facetId: any, x: import("../spec/channel").Scalar): any;
15
+ override findDatumAt(facetId: any, x: import("../spec/channel.js").Scalar): any;
16
16
  }
17
17
  import Mark from "./mark.js";
18
18
  //# sourceMappingURL=rectMark.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rectMark.d.ts","sourceRoot":"","sources":["../../../src/marks/rectMark.js"],"names":[],"mappings":"AAYA;IAsGI,4BASC;IAED,sBAGC;IA4FD;;;;;;;;;;OAUG;IACH,8BALW,GAAG,KACH,OAAO,iBAAiB,EAAE,MAAM,GAC9B,GAAG,CAyBf;CACJ;iBAzPgB,WAAW"}
1
+ {"version":3,"file":"rectMark.d.ts","sourceRoot":"","sources":["../../../src/marks/rectMark.js"],"names":[],"mappings":"AAYA;IAsGI,4BASC;IAED,sBAGC;IA4FD;;;;;;;;;;OAUG;IACH,8BALW,GAAG,KACH,OAAO,oBAAoB,EAAE,MAAM,GACjC,GAAG,CAyBf;CACJ;iBAzPgB,WAAW"}
@@ -12,7 +12,7 @@ import { isDiscrete } from "vega-scale";
12
12
 
13
13
  export default class RectMark extends Mark {
14
14
  /**
15
- * @param {import("../view/unitView").default} unitView
15
+ * @param {import("../view/unitView.js").default} unitView
16
16
  */
17
17
  constructor(unitView) {
18
18
  super(unitView);
@@ -55,7 +55,7 @@ export default class RectMark extends Mark {
55
55
  }
56
56
 
57
57
  /**
58
- * @returns {import("../spec/channel").Channel[]}
58
+ * @returns {import("../spec/channel.js").Channel[]}
59
59
  */
60
60
  getSupportedChannels() {
61
61
  return [
@@ -86,8 +86,8 @@ export default class RectMark extends Mark {
86
86
  }
87
87
 
88
88
  /**
89
- * @param {import("../spec/channel").Encoding} encoding
90
- * @returns {import("../spec/channel").Encoding}
89
+ * @param {import("../spec/channel.js").Encoding} encoding
90
+ * @returns {import("../spec/channel.js").Encoding}
91
91
  */
92
92
  fixEncoding(encoding) {
93
93
  // TODO: Ensure that both the primary and secondary channel are either variables or constants (values)
@@ -185,7 +185,7 @@ export default class RectMark extends Mark {
185
185
  }
186
186
 
187
187
  /**
188
- * @param {import("../types/rendering").GlobalRenderingOptions} options
188
+ * @param {import("../types/rendering.js").GlobalRenderingOptions} options
189
189
  */
190
190
  prepareRender(options) {
191
191
  const ops = super.prepareRender(options);
@@ -202,7 +202,7 @@ export default class RectMark extends Mark {
202
202
  }
203
203
 
204
204
  /**
205
- * @param {import("./mark").MarkRenderingOptions} options
205
+ * @param {import("./mark.js").MarkRenderingOptions} options
206
206
  */
207
207
  render(options) {
208
208
  const gl = this.gl;
@@ -225,7 +225,7 @@ export default class RectMark extends Mark {
225
225
  * This is highly specific to SampleView and its sorting/filtering functionality.
226
226
  *
227
227
  * @param {any} facetId
228
- * @param {import("../spec/channel").Scalar} x value on the x domain
228
+ * @param {import("../spec/channel.js").Scalar} x value on the x domain
229
229
  * @returns {any}
230
230
  * @override
231
231
  */
@@ -12,7 +12,7 @@ import { isChannelDefWithScale } from "../encoder/encoder.js";
12
12
 
13
13
  export default class RuleMark extends Mark {
14
14
  /**
15
- * @param {import("../view/unitView").default} unitView
15
+ * @param {import("../view/unitView.js").default} unitView
16
16
  */
17
17
  constructor(unitView) {
18
18
  super(unitView);
@@ -52,15 +52,15 @@ export default class RuleMark extends Mark {
52
52
  }
53
53
 
54
54
  /**
55
- * @returns {import("../spec/channel").Channel[]}
55
+ * @returns {import("../spec/channel.js").Channel[]}
56
56
  */
57
57
  getSupportedChannels() {
58
58
  return [...super.getSupportedChannels(), "x2", "y2", "size"];
59
59
  }
60
60
 
61
61
  /**
62
- * @param {import("../spec/channel").Encoding} encoding
63
- * @returns {import("../spec/channel").Encoding}
62
+ * @param {import("../spec/channel.js").Encoding} encoding
63
+ * @returns {import("../spec/channel.js").Encoding}
64
64
  */
65
65
  // eslint-disable-next-line complexity
66
66
  fixEncoding(encoding) {
@@ -172,7 +172,7 @@ export default class RuleMark extends Mark {
172
172
  }
173
173
 
174
174
  /**
175
- * @param {import("../types/rendering").GlobalRenderingOptions} options
175
+ * @param {import("../types/rendering.js").GlobalRenderingOptions} options
176
176
  */
177
177
  prepareRender(options) {
178
178
  const ops = super.prepareRender(options);
@@ -198,7 +198,7 @@ export default class RuleMark extends Mark {
198
198
  }
199
199
 
200
200
  /**
201
- * @param {import("./mark").MarkRenderingOptions} options
201
+ * @param {import("./mark.js").MarkRenderingOptions} options
202
202
  */
203
203
  render(options) {
204
204
  const gl = this.gl;
@@ -7,7 +7,7 @@
7
7
  * - Google's web fonts as SDFs: https://github.com/etiennepinchon/aframe-fonts
8
8
  */
9
9
  export default class TextMark extends Mark {
10
- font: import("../fonts/bmFontManager").FontEntry;
10
+ font: import("../fonts/bmFontManager.js").FontEntry;
11
11
  }
12
12
  import Mark from "./mark.js";
13
13
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/marks/text.js"],"names":[],"mappings":"AA0BA;;;;;;;GAOG;AACH;IAsDQ,iDAMmD;CAwL1D;iBA/QgB,WAAW"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/marks/text.js"],"names":[],"mappings":"AA0BA;;;;;;;GAOG;AACH;IAsDQ,oDAMmD;CAwL1D;iBA/QgB,WAAW"}