@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.
- package/dist/bundle/__vite-browser-external-ENoMJThg.js +8 -0
- package/dist/bundle/_commonjsHelpers-QtkX90xp.js +30 -0
- package/dist/bundle/index-1QVesMzU.js +1074 -0
- package/dist/bundle/index-Cbz74kpR.js +638 -0
- package/dist/bundle/index-LD6yPc3X.js +515 -0
- package/dist/bundle/index-Pv3tKJ1W.js +2190 -0
- package/dist/bundle/index-UyrC0vvF.js +72 -0
- package/dist/bundle/index-Y-LdHNIz.js +501 -0
- package/dist/bundle/index-gn8bhQ8w.js +4050 -0
- package/dist/bundle/index-lmJu1tfP.js +1372 -0
- package/dist/bundle/index-z4Cs62EO.js +279 -0
- package/dist/bundle/index.es.js +6448 -20571
- package/dist/bundle/index.js +93 -112
- package/dist/bundle/long-Veu0zKh9.js +2382 -0
- package/dist/bundle/remoteFile-Ur-gRKsH.js +96 -0
- package/dist/schema.json +492 -108
- package/dist/src/data/collector.d.ts +11 -11
- package/dist/src/data/collector.d.ts.map +1 -1
- package/dist/src/data/collector.js +8 -8
- package/dist/src/data/dataFlow.d.ts +18 -18
- package/dist/src/data/dataFlow.d.ts.map +1 -1
- package/dist/src/data/dataFlow.js +7 -7
- package/dist/src/data/flowNode.d.ts +9 -9
- package/dist/src/data/flowNode.d.ts.map +1 -1
- package/dist/src/data/flowNode.js +5 -5
- package/dist/src/data/flowOptimizer.d.ts +11 -11
- package/dist/src/data/flowOptimizer.d.ts.map +1 -1
- package/dist/src/data/flowOptimizer.js +7 -7
- package/dist/src/data/flowTestUtils.d.ts +2 -2
- package/dist/src/data/flowTestUtils.d.ts.map +1 -1
- package/dist/src/data/flowTestUtils.js +1 -1
- package/dist/src/data/sources/dataSource.js +1 -1
- package/dist/src/data/sources/dataSourceFactory.d.ts +3 -3
- package/dist/src/data/sources/dataSourceFactory.d.ts.map +1 -1
- package/dist/src/data/sources/dataSourceFactory.js +20 -20
- package/dist/src/data/sources/dataUtils.d.ts +20 -20
- package/dist/src/data/sources/dataUtils.d.ts.map +1 -1
- package/dist/src/data/sources/dataUtils.js +11 -11
- package/dist/src/data/sources/dynamic/axisGenomeSource.d.ts +3 -3
- package/dist/src/data/sources/dynamic/axisGenomeSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/axisGenomeSource.js +2 -2
- package/dist/src/data/sources/dynamic/axisTickSource.d.ts +6 -6
- package/dist/src/data/sources/dynamic/axisTickSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/axisTickSource.js +4 -4
- package/dist/src/data/sources/dynamic/bamSource.d.ts +7 -13
- package/dist/src/data/sources/dynamic/bamSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/bamSource.js +35 -27
- package/dist/src/data/sources/dynamic/bigBedSource.d.ts +9 -9
- package/dist/src/data/sources/dynamic/bigBedSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/bigBedSource.js +31 -18
- package/dist/src/data/sources/dynamic/bigWigSource.d.ts +7 -7
- package/dist/src/data/sources/dynamic/bigWigSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/bigWigSource.js +33 -26
- package/dist/src/data/sources/dynamic/gff3Source.d.ts +9 -0
- package/dist/src/data/sources/dynamic/gff3Source.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/gff3Source.js +17 -2
- package/dist/src/data/sources/dynamic/indexedFastaSource.d.ts +6 -9
- package/dist/src/data/sources/dynamic/indexedFastaSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/indexedFastaSource.js +28 -18
- package/dist/src/data/sources/dynamic/singleAxisLazySource.d.ts +10 -10
- package/dist/src/data/sources/dynamic/singleAxisLazySource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/singleAxisLazySource.js +6 -6
- package/dist/src/data/sources/dynamic/tabixSource.d.ts +11 -8
- package/dist/src/data/sources/dynamic/tabixSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/tabixSource.js +31 -17
- package/dist/src/data/sources/inlineSource.d.ts +7 -7
- package/dist/src/data/sources/inlineSource.d.ts.map +1 -1
- package/dist/src/data/sources/inlineSource.js +5 -5
- package/dist/src/data/sources/namedSource.d.ts +9 -9
- package/dist/src/data/sources/namedSource.d.ts.map +1 -1
- package/dist/src/data/sources/namedSource.js +6 -6
- package/dist/src/data/sources/sequenceSource.d.ts +7 -7
- package/dist/src/data/sources/sequenceSource.d.ts.map +1 -1
- package/dist/src/data/sources/sequenceSource.js +4 -4
- package/dist/src/data/sources/urlSource.d.ts +7 -7
- package/dist/src/data/sources/urlSource.d.ts.map +1 -1
- package/dist/src/data/sources/urlSource.js +4 -4
- package/dist/src/data/transforms/aggregate.d.ts +3 -3
- package/dist/src/data/transforms/aggregate.d.ts.map +1 -1
- package/dist/src/data/transforms/aggregate.js +2 -2
- package/dist/src/data/transforms/clone.d.ts +2 -2
- package/dist/src/data/transforms/clone.d.ts.map +1 -1
- package/dist/src/data/transforms/clone.js +1 -1
- package/dist/src/data/transforms/coverage.d.ts +3 -3
- package/dist/src/data/transforms/coverage.d.ts.map +1 -1
- package/dist/src/data/transforms/coverage.js +1 -1
- package/dist/src/data/transforms/coverage.test.js +1 -1
- package/dist/src/data/transforms/filter.d.ts +3 -3
- package/dist/src/data/transforms/filter.d.ts.map +1 -1
- package/dist/src/data/transforms/filter.js +2 -2
- package/dist/src/data/transforms/filter.test.js +1 -1
- package/dist/src/data/transforms/filterScoredLabels.d.ts +4 -4
- package/dist/src/data/transforms/filterScoredLabels.d.ts.map +1 -1
- package/dist/src/data/transforms/filterScoredLabels.js +3 -3
- package/dist/src/data/transforms/flatten.d.ts +2 -2
- package/dist/src/data/transforms/flatten.d.ts.map +1 -1
- package/dist/src/data/transforms/flatten.js +3 -3
- package/dist/src/data/transforms/flatten.test.js +6 -6
- package/dist/src/data/transforms/flattenCompressedExons.d.ts +2 -2
- package/dist/src/data/transforms/flattenCompressedExons.d.ts.map +1 -1
- package/dist/src/data/transforms/flattenCompressedExons.js +1 -1
- package/dist/src/data/transforms/flattenDelimited.d.ts +2 -2
- package/dist/src/data/transforms/flattenDelimited.d.ts.map +1 -1
- package/dist/src/data/transforms/flattenDelimited.js +2 -2
- package/dist/src/data/transforms/flattenDelimited.test.js +5 -5
- package/dist/src/data/transforms/flattenSequence.d.ts +2 -2
- package/dist/src/data/transforms/flattenSequence.d.ts.map +1 -1
- package/dist/src/data/transforms/flattenSequence.js +1 -1
- package/dist/src/data/transforms/flattenSequence.test.js +1 -1
- package/dist/src/data/transforms/formula.d.ts +3 -3
- package/dist/src/data/transforms/formula.d.ts.map +1 -1
- package/dist/src/data/transforms/formula.js +2 -2
- package/dist/src/data/transforms/identifier.d.ts +3 -3
- package/dist/src/data/transforms/identifier.d.ts.map +1 -1
- package/dist/src/data/transforms/identifier.js +2 -2
- package/dist/src/data/transforms/linearizeGenomicCoordinate.d.ts +3 -3
- package/dist/src/data/transforms/linearizeGenomicCoordinate.d.ts.map +1 -1
- package/dist/src/data/transforms/linearizeGenomicCoordinate.js +2 -2
- package/dist/src/data/transforms/measureText.d.ts +2 -2
- package/dist/src/data/transforms/measureText.d.ts.map +1 -1
- package/dist/src/data/transforms/measureText.js +1 -1
- package/dist/src/data/transforms/pileup.d.ts +3 -3
- package/dist/src/data/transforms/pileup.d.ts.map +1 -1
- package/dist/src/data/transforms/pileup.js +1 -1
- package/dist/src/data/transforms/pileup.test.js +1 -1
- package/dist/src/data/transforms/project.d.ts +2 -2
- package/dist/src/data/transforms/project.d.ts.map +1 -1
- package/dist/src/data/transforms/project.js +1 -1
- package/dist/src/data/transforms/project.test.js +1 -1
- package/dist/src/data/transforms/regexExtract.d.ts +2 -2
- package/dist/src/data/transforms/regexExtract.d.ts.map +1 -1
- package/dist/src/data/transforms/regexExtract.js +1 -1
- package/dist/src/data/transforms/regexExtract.test.js +3 -3
- package/dist/src/data/transforms/regexFold.d.ts +2 -2
- package/dist/src/data/transforms/regexFold.d.ts.map +1 -1
- package/dist/src/data/transforms/regexFold.js +2 -2
- package/dist/src/data/transforms/regexFold.test.js +3 -3
- package/dist/src/data/transforms/sample.d.ts +2 -2
- package/dist/src/data/transforms/sample.d.ts.map +1 -1
- package/dist/src/data/transforms/sample.js +2 -2
- package/dist/src/data/transforms/stack.d.ts +3 -3
- package/dist/src/data/transforms/stack.d.ts.map +1 -1
- package/dist/src/data/transforms/stack.js +2 -2
- package/dist/src/data/transforms/stack.test.js +2 -2
- package/dist/src/data/transforms/transformFactory.d.ts +5 -5
- package/dist/src/data/transforms/transformFactory.d.ts.map +1 -1
- package/dist/src/data/transforms/transformFactory.js +3 -3
- package/dist/src/encoder/accessor.d.ts +6 -6
- package/dist/src/encoder/accessor.d.ts.map +1 -1
- package/dist/src/encoder/accessor.js +4 -4
- package/dist/src/encoder/encoder.d.ts +59 -59
- package/dist/src/encoder/encoder.d.ts.map +1 -1
- package/dist/src/encoder/encoder.js +40 -40
- package/dist/src/encoder/encoder.test.js +4 -4
- package/dist/src/fonts/bmFontManager.d.ts +7 -7
- package/dist/src/fonts/bmFontManager.d.ts.map +1 -1
- package/dist/src/fonts/bmFontManager.js +3 -3
- package/dist/src/fonts/bmFontMetrics.d.ts +6 -6
- package/dist/src/fonts/bmFontMetrics.d.ts.map +1 -1
- package/dist/src/fonts/bmFontMetrics.js +4 -4
- package/dist/src/genome/genome.d.ts +7 -7
- package/dist/src/genome/genome.d.ts.map +1 -1
- package/dist/src/genome/genome.js +2 -2
- package/dist/src/genome/genomeStore.d.ts +2 -2
- package/dist/src/genome/genomeStore.d.ts.map +1 -1
- package/dist/src/genome/genomeStore.js +1 -1
- package/dist/src/genome/locusFormat.d.ts +7 -7
- package/dist/src/genome/locusFormat.d.ts.map +1 -1
- package/dist/src/genome/locusFormat.js +4 -4
- package/dist/src/genome/scaleIndex.d.ts +1 -1
- package/dist/src/genome/scaleIndex.d.ts.map +1 -1
- package/dist/src/genome/scaleIndex.js +1 -1
- package/dist/src/genome/scaleLocus.d.ts +2 -2
- package/dist/src/genome/scaleLocus.d.ts.map +1 -1
- package/dist/src/genome/scaleLocus.js +3 -3
- package/dist/src/genomeSpy.d.ts +12 -12
- package/dist/src/genomeSpy.d.ts.map +1 -1
- package/dist/src/genomeSpy.js +52 -35
- package/dist/src/gl/arrayBuilder.d.ts.map +1 -1
- package/dist/src/gl/dataToVertices.d.ts +18 -18
- package/dist/src/gl/dataToVertices.d.ts.map +1 -1
- package/dist/src/gl/dataToVertices.js +10 -10
- package/dist/src/gl/webGLHelper.d.ts +4 -4
- package/dist/src/gl/webGLHelper.d.ts.map +1 -1
- package/dist/src/gl/webGLHelper.js +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/marks/link.js +5 -5
- package/dist/src/marks/mark.d.ts +35 -32
- package/dist/src/marks/mark.d.ts.map +1 -1
- package/dist/src/marks/mark.js +26 -23
- package/dist/src/marks/markUtils.d.ts +10 -10
- package/dist/src/marks/markUtils.d.ts.map +1 -1
- package/dist/src/marks/markUtils.js +5 -5
- package/dist/src/marks/pointMark.d.ts +1 -1
- package/dist/src/marks/pointMark.d.ts.map +1 -1
- package/dist/src/marks/pointMark.js +7 -7
- package/dist/src/marks/rectMark.d.ts +2 -2
- package/dist/src/marks/rectMark.d.ts.map +1 -1
- package/dist/src/marks/rectMark.js +7 -7
- package/dist/src/marks/rule.js +6 -6
- package/dist/src/marks/text.d.ts +1 -1
- package/dist/src/marks/text.d.ts.map +1 -1
- package/dist/src/marks/text.js +6 -6
- package/dist/src/scale/colorUtils.d.ts +4 -4
- package/dist/src/scale/colorUtils.d.ts.map +1 -1
- package/dist/src/scale/colorUtils.js +2 -2
- package/dist/src/scale/glslScaleGenerator.d.ts +3 -3
- package/dist/src/scale/glslScaleGenerator.d.ts.map +1 -1
- package/dist/src/scale/glslScaleGenerator.js +2 -2
- package/dist/src/scale/scale.d.ts +3 -3
- package/dist/src/scale/scale.d.ts.map +1 -1
- package/dist/src/scale/scale.js +2 -2
- package/dist/src/scale/ticks.d.ts +4 -4
- package/dist/src/scale/ticks.js +4 -4
- package/dist/src/spec/axis.d.ts +1 -1
- package/dist/src/spec/channel.d.ts +2 -2
- package/dist/src/spec/data.d.ts +2 -2
- package/dist/src/spec/mark.d.ts +3 -3
- package/dist/src/spec/root.d.ts +2 -2
- package/dist/src/spec/sampleView.d.ts +5 -5
- package/dist/src/spec/scale.d.ts +1 -1
- package/dist/src/spec/title.d.ts +1 -1
- package/dist/src/spec/view.d.ts +36 -9
- package/dist/src/tooltip/dataTooltipHandler.js +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.d.ts.map +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.js +1 -1
- package/dist/src/tooltip/tooltipHandler.d.ts +1 -1
- package/dist/src/tooltip/tooltipHandler.d.ts.map +1 -1
- package/dist/src/tooltip/tooltipHandler.ts +1 -1
- package/dist/src/types/embedApi.d.ts +3 -3
- package/dist/src/types/encoder.d.ts +4 -4
- package/dist/src/types/flowBatch.d.ts +1 -1
- package/dist/src/types/rendering.d.ts +3 -3
- package/dist/src/types/scaleResolutionApi.d.ts +2 -2
- package/dist/src/types/viewContext.d.ts +41 -12
- package/dist/src/utils/animator.d.ts +2 -2
- package/dist/src/utils/animator.d.ts.map +1 -1
- package/dist/src/utils/animator.js +1 -1
- package/dist/src/utils/inertia.d.ts +3 -3
- package/dist/src/utils/inertia.d.ts.map +1 -1
- package/dist/src/utils/inertia.js +1 -1
- package/dist/src/utils/interactionEvent.d.ts +5 -5
- package/dist/src/utils/interactionEvent.d.ts.map +1 -1
- package/dist/src/utils/interactionEvent.js +2 -2
- package/dist/src/utils/trees.js +1 -1
- package/dist/src/view/axisGridView.d.ts +17 -16
- package/dist/src/view/axisGridView.d.ts.map +1 -1
- package/dist/src/view/axisGridView.js +24 -20
- package/dist/src/view/axisResolution.d.ts +10 -10
- package/dist/src/view/axisResolution.d.ts.map +1 -1
- package/dist/src/view/axisResolution.js +6 -6
- package/dist/src/view/axisResolution.test.js +1 -1
- package/dist/src/view/axisView.d.ts +18 -17
- package/dist/src/view/axisView.d.ts.map +1 -1
- package/dist/src/view/axisView.js +39 -35
- package/dist/src/view/concatView.d.ts +5 -5
- package/dist/src/view/concatView.d.ts.map +1 -1
- package/dist/src/view/concatView.js +23 -23
- package/dist/src/view/containerView.d.ts +10 -8
- package/dist/src/view/containerView.d.ts.map +1 -1
- package/dist/src/view/containerView.js +18 -13
- package/dist/src/view/facetView.d.ts +12 -12
- package/dist/src/view/facetView.d.ts.map +1 -1
- package/dist/src/view/facetView.js +19 -19
- package/dist/src/view/flowBuilder.d.ts +4 -4
- package/dist/src/view/flowBuilder.d.ts.map +1 -1
- package/dist/src/view/flowBuilder.js +13 -13
- package/dist/src/view/flowBuilder.test.js +7 -7
- package/dist/src/view/gridView.d.ts +63 -35
- package/dist/src/view/gridView.d.ts.map +1 -1
- package/dist/src/view/gridView.js +400 -113
- package/dist/src/view/layerView.d.ts +12 -14
- package/dist/src/view/layerView.d.ts.map +1 -1
- package/dist/src/view/layerView.js +55 -26
- package/dist/src/{utils → view}/layout/flexLayout.d.ts +6 -6
- package/dist/src/view/layout/flexLayout.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/flexLayout.js +4 -4
- package/dist/src/view/layout/grid.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/padding.d.ts +4 -4
- package/dist/src/view/layout/padding.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/padding.js +2 -2
- package/dist/src/view/layout/point.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/rectangle.d.ts +8 -2
- package/dist/src/view/layout/rectangle.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/rectangle.js +22 -2
- package/dist/src/{utils → view}/layout/rectangle.test.js +8 -0
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts +10 -10
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.js +10 -10
- package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts +2 -2
- package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/compositeViewRenderingContext.js +4 -4
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts +4 -4
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.js +3 -3
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts +8 -8
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.js +4 -4
- package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts +6 -6
- package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/simpleViewRenderingContext.js +7 -7
- package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts +4 -4
- package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/svgViewRenderingContext.js +6 -6
- package/dist/src/view/renderingContext/viewRenderingContext.d.ts +10 -10
- package/dist/src/view/renderingContext/viewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/viewRenderingContext.js +5 -5
- package/dist/src/view/scaleResolution.d.ts +21 -17
- package/dist/src/view/scaleResolution.d.ts.map +1 -1
- package/dist/src/view/scaleResolution.js +29 -24
- package/dist/src/view/scaleResolution.test.js +57 -72
- package/dist/src/view/testUtils.d.ts +6 -15
- package/dist/src/view/testUtils.d.ts.map +1 -1
- package/dist/src/view/testUtils.js +40 -44
- package/dist/src/view/title.d.ts +3 -3
- package/dist/src/view/title.d.ts.map +1 -1
- package/dist/src/view/title.js +12 -12
- package/dist/src/view/unitView.d.ts +31 -30
- package/dist/src/view/unitView.d.ts.map +1 -1
- package/dist/src/view/unitView.js +30 -22
- package/dist/src/view/view.d.ts +86 -57
- package/dist/src/view/view.d.ts.map +1 -1
- package/dist/src/view/view.js +148 -103
- package/dist/src/view/view.test.js +9 -8
- package/dist/src/view/viewError.d.ts +9 -0
- package/dist/src/view/viewError.d.ts.map +1 -0
- package/dist/src/view/viewError.js +11 -0
- package/dist/src/view/viewFactory.d.ts +53 -20
- package/dist/src/view/viewFactory.d.ts.map +1 -1
- package/dist/src/view/viewFactory.js +148 -33
- package/dist/src/view/viewFactory.test.js +8 -0
- package/dist/src/view/viewUtils.d.ts +14 -12
- package/dist/src/view/viewUtils.d.ts.map +1 -1
- package/dist/src/view/viewUtils.js +10 -63
- package/dist/src/view/zoom.d.ts +4 -4
- package/dist/src/view/zoom.d.ts.map +1 -1
- package/dist/src/view/zoom.js +3 -3
- package/package.json +7 -5
- package/dist/src/utils/layout/flexLayout.d.ts.map +0 -1
- package/dist/src/utils/layout/grid.d.ts.map +0 -1
- package/dist/src/utils/layout/padding.d.ts.map +0 -1
- package/dist/src/utils/layout/point.d.ts.map +0 -1
- package/dist/src/utils/layout/rectangle.d.ts.map +0 -1
- package/dist/src/view/implicitRootView.d.ts +0 -9
- package/dist/src/view/implicitRootView.d.ts.map +0 -1
- package/dist/src/view/implicitRootView.js +0 -23
- package/dist/src/view/importView.d.ts +0 -17
- package/dist/src/view/importView.d.ts.map +0 -1
- package/dist/src/view/importView.js +0 -22
- /package/dist/src/{utils → view}/layout/flexLayout.test.js +0 -0
- /package/dist/src/{utils → view}/layout/grid.d.ts +0 -0
- /package/dist/src/{utils → view}/layout/grid.js +0 -0
- /package/dist/src/{utils → view}/layout/grid.test.js +0 -0
- /package/dist/src/{utils → view}/layout/point.d.ts +0 -0
- /package/dist/src/{utils → view}/layout/point.js +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default class PileupTransform extends FlowNode {
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* @param {import("../../spec/transform").PileupParams} params
|
|
4
|
+
* @param {import("../../spec/transform.js").PileupParams} params
|
|
5
5
|
*/
|
|
6
|
-
constructor(params: import("../../spec/transform").PileupParams);
|
|
7
|
-
params: import("../../spec/transform").PileupParams;
|
|
6
|
+
constructor(params: import("../../spec/transform.js").PileupParams);
|
|
7
|
+
params: import("../../spec/transform.js").PileupParams;
|
|
8
8
|
}
|
|
9
9
|
import FlowNode from "../flowNode.js";
|
|
10
10
|
//# sourceMappingURL=pileup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pileup.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/pileup.js"],"names":[],"mappings":"AAQA;IAKI;;;OAGG;IACH,oBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"pileup.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/pileup.js"],"names":[],"mappings":"AAQA;IAKI;;;OAGG;IACH,oBAFW,OAAO,yBAAyB,EAAE,YAAY,EAMxD;IADG,uDAAoB;CAyG3B;qBAzH2C,gBAAgB"}
|
|
@@ -5,7 +5,7 @@ import { processData } from "../flowTestUtils.js";
|
|
|
5
5
|
// TODO: Test for lane preferences
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @typedef {import("../../spec/transform").PileupParams} PileupParams
|
|
8
|
+
* @typedef {import("../../spec/transform.js").PileupParams} PileupParams
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
const reads = [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default class ProjectTransform extends FlowNode {
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* @param {import("../../spec/transform").ProjectParams} params
|
|
4
|
+
* @param {import("../../spec/transform.js").ProjectParams} params
|
|
5
5
|
*/
|
|
6
|
-
constructor(params: import("../../spec/transform").ProjectParams);
|
|
6
|
+
constructor(params: import("../../spec/transform.js").ProjectParams);
|
|
7
7
|
/**
|
|
8
8
|
* @param {any} datum
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/project.js"],"names":[],"mappings":"AAIA;IAKI;;;OAGG;IACH,oBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/project.js"],"names":[],"mappings":"AAIA;IAKI;;;OAGG;IACH,oBAFW,OAAO,yBAAyB,EAAE,aAAa,EAyBzD;IAXG;;OAEG;IACH,gBAFW,GAAG,UASb;CAER;qBAnCyC,gBAAgB"}
|
|
@@ -11,7 +11,7 @@ test("Project", () => {
|
|
|
11
11
|
},
|
|
12
12
|
];
|
|
13
13
|
|
|
14
|
-
/** @param {import("./project").ProjectParams} params */
|
|
14
|
+
/** @param {import("./project.js").ProjectParams} params */
|
|
15
15
|
const p = (params) => processData(new ProjectTransform(params), data);
|
|
16
16
|
|
|
17
17
|
expect(p({ type: "project", fields: ["bar"] })).toEqual([{ bar: "BAR" }]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default class RegexExtractTransform extends FlowNode {
|
|
2
2
|
/**
|
|
3
|
-
* @param {import("../../spec/transform").RegexExtractParams} params
|
|
3
|
+
* @param {import("../../spec/transform.js").RegexExtractParams} params
|
|
4
4
|
*/
|
|
5
|
-
constructor(params: import("../../spec/transform").RegexExtractParams);
|
|
5
|
+
constructor(params: import("../../spec/transform.js").RegexExtractParams);
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* @param {any} datum
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regexExtract.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/regexExtract.js"],"names":[],"mappings":"AAIA;IAKI;;OAEG;IACH,oBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"regexExtract.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/regexExtract.js"],"names":[],"mappings":"AAIA;IAKI;;OAEG;IACH,oBAFW,OAAO,yBAAyB,EAAE,kBAAkB,EA6C9D;IApCG;;;OAGG;IACH,gBAFW,GAAG,UAiCb;CAER;qBAtD2C,gBAAgB"}
|
|
@@ -4,7 +4,7 @@ import { processData } from "../flowTestUtils.js";
|
|
|
4
4
|
import RegexExtractTransform from "./regexExtract.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @param {import("./regexExtract").RegexExtractParams} params
|
|
7
|
+
* @param {import("./regexExtract.js").RegexExtractParams} params
|
|
8
8
|
* @param {any[]} data
|
|
9
9
|
*/
|
|
10
10
|
function transform(params, data) {
|
|
@@ -14,7 +14,7 @@ function transform(params, data) {
|
|
|
14
14
|
describe("RegexExtractTransform", () => {
|
|
15
15
|
const rows = [{ a: "12-34" }, { a: "23-45" }];
|
|
16
16
|
|
|
17
|
-
/** @type {import("./regexExtract").RegexExtractParams} */
|
|
17
|
+
/** @type {import("./regexExtract.js").RegexExtractParams} */
|
|
18
18
|
const params = {
|
|
19
19
|
type: "regexExtract",
|
|
20
20
|
regex: "^(\\d+)-(\\d+)$",
|
|
@@ -30,7 +30,7 @@ describe("RegexExtractTransform", () => {
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
test("Invalid config", () => {
|
|
33
|
-
/** @type {import("./regexExtract").RegexExtractParams} */
|
|
33
|
+
/** @type {import("./regexExtract.js").RegexExtractParams} */
|
|
34
34
|
const config2 = {
|
|
35
35
|
type: "regexExtract",
|
|
36
36
|
regex: "^(\\d+)-(\\d+)$",
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export default class RegexFoldTransform extends FlowNode {
|
|
7
7
|
/**
|
|
8
|
-
* @param {import("../../spec/transform").RegexFoldParams} params
|
|
8
|
+
* @param {import("../../spec/transform.js").RegexFoldParams} params
|
|
9
9
|
*/
|
|
10
|
-
constructor(params: import("../../spec/transform").RegexFoldParams);
|
|
10
|
+
constructor(params: import("../../spec/transform.js").RegexFoldParams);
|
|
11
11
|
handle: (datum: any) => void;
|
|
12
12
|
}
|
|
13
13
|
import FlowNode from "../flowNode.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regexFold.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/regexFold.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH;IAKI;;OAEG;IACH,oBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"regexFold.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/regexFold.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH;IAKI;;OAEG;IACH,oBAFW,OAAO,yBAAyB,EAAE,eAAe,EA2H3D;IAfO,gBALO,GAAG,UAKe;CAgBpC;qBAzIsD,gBAAgB"}
|
|
@@ -12,7 +12,7 @@ export default class RegexFoldTransform extends FlowNode {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @param {import("../../spec/transform").RegexFoldParams} params
|
|
15
|
+
* @param {import("../../spec/transform.js").RegexFoldParams} params
|
|
16
16
|
*/
|
|
17
17
|
constructor(params) {
|
|
18
18
|
super();
|
|
@@ -127,7 +127,7 @@ export default class RegexFoldTransform extends FlowNode {
|
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
*
|
|
130
|
-
* @param {import("../../types/flowBatch").FlowBatch} flowBatch
|
|
130
|
+
* @param {import("../../types/flowBatch.js").FlowBatch} flowBatch
|
|
131
131
|
*/
|
|
132
132
|
this.beginBatch = (flowBatch) => {
|
|
133
133
|
if (isFileBatch(flowBatch)) {
|
|
@@ -17,7 +17,7 @@ describe("RegexFold", () => {
|
|
|
17
17
|
},
|
|
18
18
|
];
|
|
19
19
|
|
|
20
|
-
/** @type { import("../../spec/transform").RegexFoldParams } */
|
|
20
|
+
/** @type { import("../../spec/transform.js").RegexFoldParams } */
|
|
21
21
|
const singleGatherConfig = {
|
|
22
22
|
type: "regexFold",
|
|
23
23
|
columnRegex: "^(.*)_a$",
|
|
@@ -67,7 +67,7 @@ describe("RegexFold", () => {
|
|
|
67
67
|
},
|
|
68
68
|
];
|
|
69
69
|
|
|
70
|
-
/** @type { import("../../spec/transform").RegexFoldParams } */
|
|
70
|
+
/** @type { import("../../spec/transform.js").RegexFoldParams } */
|
|
71
71
|
const singleGatherConfig = {
|
|
72
72
|
type: "regexFold",
|
|
73
73
|
columnRegex: "^(.*)_a$",
|
|
@@ -118,7 +118,7 @@ describe("RegexFold", () => {
|
|
|
118
118
|
},
|
|
119
119
|
];
|
|
120
120
|
|
|
121
|
-
/** @type { import("../../spec/transform").RegexFoldParams } */
|
|
121
|
+
/** @type { import("../../spec/transform.js").RegexFoldParams } */
|
|
122
122
|
const singleGatherConfig = {
|
|
123
123
|
type: "regexFold",
|
|
124
124
|
columnRegex: ["^(.*)_a$", "^(.*)_b$"],
|
|
@@ -15,9 +15,9 @@ export function sampleIterable<T, R>(n: number, iterable: Iterable<T>, accessor:
|
|
|
15
15
|
export default class SampleTransform extends FlowNode {
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
|
-
* @param {import("../../spec/transform").SampleParams} params
|
|
18
|
+
* @param {import("../../spec/transform.js").SampleParams} params
|
|
19
19
|
*/
|
|
20
|
-
constructor(params: import("../../spec/transform").SampleParams);
|
|
20
|
+
constructor(params: import("../../spec/transform.js").SampleParams);
|
|
21
21
|
k: number;
|
|
22
22
|
/** @type {any[]} */
|
|
23
23
|
reservoir: any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sample.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/sample.js"],"names":[],"mappings":"AA6EA;;;;;;;;;GASG;AACH,wCAPW,MAAM,wDAkBhB;AAhGD;;GAEG;AACH;IACI;;;OAGG;IACH,oBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"sample.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/sample.js"],"names":[],"mappings":"AA6EA;;;;;;;;;GASG;AACH,wCAPW,MAAM,wDAkBhB;AAhGD;;GAEG;AACH;IACI;;;OAGG;IACH,oBAFW,OAAO,yBAAyB,EAAE,YAAY,EAOxD;IAFG,UAA2B;IAO3B,oBAAoB;IACpB,WADW,GAAG,EAAE,CACG;IACnB,qBAAqB;IACrB,GADW,MAAM,CACC;IAClB,kBAKO,GAAG,qBAgBH,GAAG,WArB2B;IAGzC;;;OAGG;IACH,uBAFW,GAAG,QAYb;IALO,UAAe;IACf,aAAkB;IAM1B;;;OAGG;IACH,qBAFW,GAAG,QAQb;IAED,qBAGC;CAiBJ;qBA3EoB,gBAAgB"}
|
|
@@ -6,7 +6,7 @@ import FlowNode from "../flowNode.js";
|
|
|
6
6
|
export default class SampleTransform extends FlowNode {
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
|
-
* @param {import("../../spec/transform").SampleParams} params
|
|
9
|
+
* @param {import("../../spec/transform.js").SampleParams} params
|
|
10
10
|
*/
|
|
11
11
|
constructor(params) {
|
|
12
12
|
super();
|
|
@@ -60,7 +60,7 @@ export default class SampleTransform extends FlowNode {
|
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
|
-
* @param {import("../flowNode").Datum} datum
|
|
63
|
+
* @param {import("../flowNode.js").Datum} datum
|
|
64
64
|
*/
|
|
65
65
|
handle(datum) {
|
|
66
66
|
this.ingester(datum);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default class StackTransform extends FlowNode {
|
|
2
2
|
/**
|
|
3
|
-
* @param {import("../../spec/transform").StackParams} params
|
|
3
|
+
* @param {import("../../spec/transform.js").StackParams} params
|
|
4
4
|
*/
|
|
5
|
-
constructor(params: import("../../spec/transform").StackParams);
|
|
6
|
-
params: import("../../spec/transform").StackParams;
|
|
5
|
+
constructor(params: import("../../spec/transform.js").StackParams);
|
|
6
|
+
params: import("../../spec/transform.js").StackParams;
|
|
7
7
|
/** @type {any[]} */
|
|
8
8
|
buffer: any[];
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/stack.js"],"names":[],"mappings":"AAKA;IAKI;;OAEG;IACH,oBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/stack.js"],"names":[],"mappings":"AAKA;IAKI;;OAEG;IACH,oBAFW,OAAO,yBAAyB,EAAE,WAAW,EAQvD;IAJG,sDAAoB;IAEpB,oBAAoB;IACpB,QADW,GAAG,EAAE,CACA;CAmHvB;qBAnI2C,gBAAgB"}
|
|
@@ -9,7 +9,7 @@ export default class StackTransform extends FlowNode {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @param {import("../../spec/transform").StackParams} params
|
|
12
|
+
* @param {import("../../spec/transform.js").StackParams} params
|
|
13
13
|
*/
|
|
14
14
|
constructor(params) {
|
|
15
15
|
super();
|
|
@@ -25,7 +25,7 @@ export default class StackTransform extends FlowNode {
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @param {import("../flowNode").Datum} datum
|
|
28
|
+
* @param {import("../flowNode.js").Datum} datum
|
|
29
29
|
*/
|
|
30
30
|
handle(datum) {
|
|
31
31
|
this.buffer.push(datum);
|
|
@@ -8,7 +8,7 @@ const sampleData = [
|
|
|
8
8
|
{ group: "b", choice: "y", value: 3 },
|
|
9
9
|
];
|
|
10
10
|
|
|
11
|
-
/** @type {import("./stack").StackParams} */
|
|
11
|
+
/** @type {import("./stack.js").StackParams} */
|
|
12
12
|
const baseConf = {
|
|
13
13
|
type: "stack",
|
|
14
14
|
field: "value",
|
|
@@ -23,7 +23,7 @@ const baseConf = {
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @param {import("./stack").StackParams} params
|
|
26
|
+
* @param {import("./stack.js").StackParams} params
|
|
27
27
|
* @param {any[]} data
|
|
28
28
|
*/
|
|
29
29
|
function transform(params, data) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {import("../../spec/transform").TransformParamsBase} params
|
|
3
|
-
* @param {import("../../view/view").default} [view]
|
|
2
|
+
* @param {import("../../spec/transform.js").TransformParamsBase} params
|
|
3
|
+
* @param {import("../../view/view.js").default} [view]
|
|
4
4
|
*/
|
|
5
|
-
export default function createTransform(params: import("../../spec/transform").TransformParamsBase, view?: import("../../view/view").default): import("../flowNode").default;
|
|
5
|
+
export default function createTransform(params: import("../../spec/transform.js").TransformParamsBase, view?: import("../../view/view.js").default): import("../flowNode.js").default;
|
|
6
6
|
/**
|
|
7
7
|
* TODO: Make this dynamic
|
|
8
8
|
*
|
|
9
|
-
* @type {Record<string, new (params: any, view?: import("../../view/view").default) => import("../flowNode").default>}
|
|
9
|
+
* @type {Record<string, new (params: any, view?: import("../../view/view.js").default) => import("../flowNode.js").default>}
|
|
10
10
|
*/
|
|
11
|
-
export const transforms: Record<string, new (params: any, view?: import("../../view/view").default) => import("../flowNode").default>;
|
|
11
|
+
export const transforms: Record<string, new (params: any, view?: import("../../view/view.js").default) => import("../flowNode.js").default>;
|
|
12
12
|
//# sourceMappingURL=transformFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformFactory.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/transformFactory.js"],"names":[],"mappings":"AA+CA;;;GAGG;AACH,gDAHW,OAAO,
|
|
1
|
+
{"version":3,"file":"transformFactory.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/transformFactory.js"],"names":[],"mappings":"AA+CA;;;GAGG;AACH,gDAHW,OAAO,yBAAyB,EAAE,mBAAmB,SACrD,OAAO,oBAAoB,EAAE,OAAO,oCAS9C;AAtCD;;;;GAIG;AACH,qDAFsC,GAAG,SAAS,OAAO,oBAAoB,EAAE,OAAO,KAAK,OAAO,gBAAgB,EAAE,OAAO,EAsBzH"}
|
|
@@ -21,7 +21,7 @@ import IdentifierTransform from "./identifier.js";
|
|
|
21
21
|
/**
|
|
22
22
|
* TODO: Make this dynamic
|
|
23
23
|
*
|
|
24
|
-
* @type {Record<string, new (params: any, view?: import("../../view/view").default) => import("../flowNode").default>}
|
|
24
|
+
* @type {Record<string, new (params: any, view?: import("../../view/view.js").default) => import("../flowNode.js").default>}
|
|
25
25
|
*/
|
|
26
26
|
export const transforms = {
|
|
27
27
|
aggregate: AggregateTransform,
|
|
@@ -46,8 +46,8 @@ export const transforms = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* @param {import("../../spec/transform").TransformParamsBase} params
|
|
50
|
-
* @param {import("../../view/view").default} [view]
|
|
49
|
+
* @param {import("../../spec/transform.js").TransformParamsBase} params
|
|
50
|
+
* @param {import("../../view/view.js").default} [view]
|
|
51
51
|
*/
|
|
52
52
|
export default function createTransform(params, view) {
|
|
53
53
|
const Transform = transforms[params.type];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export default class AccessorFactory {
|
|
2
|
-
/** @type {(function(import("../spec/channel").ChannelDef):Accessor)[]} */
|
|
3
|
-
accessorCreators: ((arg0: import("../spec/channel").ChannelDef) => import("../types/encoder").Accessor)[];
|
|
2
|
+
/** @type {(function(import("../spec/channel.js").ChannelDef):Accessor)[]} */
|
|
3
|
+
accessorCreators: ((arg0: import("../spec/channel.js").ChannelDef) => import("../types/encoder.js").Accessor)[];
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
|
-
* @param {function(import("../spec/channel").ChannelDef):Accessor} creator
|
|
6
|
+
* @param {function(import("../spec/channel.js").ChannelDef):Accessor} creator
|
|
7
7
|
*/
|
|
8
|
-
register(creator: (arg0: import("../spec/channel").ChannelDef) => import("../types/encoder").Accessor): void;
|
|
8
|
+
register(creator: (arg0: import("../spec/channel.js").ChannelDef) => import("../types/encoder.js").Accessor): void;
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
|
-
* @param {import("../spec/channel").ChannelDef} encoding
|
|
11
|
+
* @param {import("../spec/channel.js").ChannelDef} encoding
|
|
12
12
|
*/
|
|
13
|
-
createAccessor(encoding: import("../spec/channel").ChannelDef): import("../types/encoder").Accessor;
|
|
13
|
+
createAccessor(encoding: import("../spec/channel.js").ChannelDef): import("../types/encoder.js").Accessor;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=accessor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessor.d.ts","sourceRoot":"","sources":["../../../src/encoder/accessor.js"],"names":[],"mappings":"AAMA;IAKQ,
|
|
1
|
+
{"version":3,"file":"accessor.d.ts","sourceRoot":"","sources":["../../../src/encoder/accessor.js"],"names":[],"mappings":"AAMA;IAKQ,6EAA6E;IAC7E,0BADqB,OAAO,oBAAoB,EAAE,UAAU,+CAClC;IAkC9B;;;OAGG;IACH,yBAFoB,OAAO,oBAAoB,EAAE,UAAU,mDAI1D;IAED;;;OAGG;IACH,yBAFW,OAAO,oBAAoB,EAAE,UAAU,0CASjD;CACJ"}
|
|
@@ -6,10 +6,10 @@ import { field } from "../utils/field.js";
|
|
|
6
6
|
|
|
7
7
|
export default class AccessorFactory {
|
|
8
8
|
/**
|
|
9
|
-
* @typedef {import("../types/encoder").Accessor} Accessor
|
|
9
|
+
* @typedef {import("../types/encoder.js").Accessor} Accessor
|
|
10
10
|
*/
|
|
11
11
|
constructor() {
|
|
12
|
-
/** @type {(function(import("../spec/channel").ChannelDef):Accessor)[]} */
|
|
12
|
+
/** @type {(function(import("../spec/channel.js").ChannelDef):Accessor)[]} */
|
|
13
13
|
this.accessorCreators = [];
|
|
14
14
|
|
|
15
15
|
this.register((channelDef) => {
|
|
@@ -46,7 +46,7 @@ export default class AccessorFactory {
|
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @param {function(import("../spec/channel").ChannelDef):Accessor} creator
|
|
49
|
+
* @param {function(import("../spec/channel.js").ChannelDef):Accessor} creator
|
|
50
50
|
*/
|
|
51
51
|
register(creator) {
|
|
52
52
|
this.accessorCreators.push(creator);
|
|
@@ -54,7 +54,7 @@ export default class AccessorFactory {
|
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @param {import("../spec/channel").ChannelDef} encoding
|
|
57
|
+
* @param {import("../spec/channel.js").ChannelDef} encoding
|
|
58
58
|
*/
|
|
59
59
|
createAccessor(encoding) {
|
|
60
60
|
for (const creator of this.accessorCreators) {
|
|
@@ -5,67 +5,67 @@
|
|
|
5
5
|
*
|
|
6
6
|
* TODO: This method should have a test. But how to mock Mark...
|
|
7
7
|
*
|
|
8
|
-
* @param {import("../marks/mark").default} mark
|
|
9
|
-
* @param {import("../spec/channel").Encoding} [encoding] Taken from the mark if not provided
|
|
8
|
+
* @param {import("../marks/mark.js").default} mark
|
|
9
|
+
* @param {import("../spec/channel.js").Encoding} [encoding] Taken from the mark if not provided
|
|
10
10
|
* @returns {Partial<Record<Channel, Encoder>>}
|
|
11
11
|
*/
|
|
12
|
-
export default function createEncoders(mark: import("../marks/mark").default, encoding?: import("../spec/channel").Encoding): Partial<Record<import("../spec/channel").Channel, import("../types/encoder").Encoder>>;
|
|
12
|
+
export default function createEncoders(mark: import("../marks/mark.js").default, encoding?: import("../spec/channel.js").Encoding): Partial<Record<import("../spec/channel.js").Channel, import("../types/encoder.js").Encoder>>;
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
15
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
16
16
|
* @param {any} scale
|
|
17
17
|
* @param {Accessor} accessor
|
|
18
18
|
* @param {Channel} channel
|
|
19
19
|
* @returns {Encoder}
|
|
20
20
|
*/
|
|
21
|
-
export function createEncoder(channelDef: import("../spec/channel").ChannelDef, scale: any, accessor: import("../types/encoder").Accessor, channel: import("../spec/channel").Channel): import("../types/encoder").Encoder;
|
|
21
|
+
export function createEncoder(channelDef: import("../spec/channel.js").ChannelDef, scale: any, accessor: import("../types/encoder.js").Accessor, channel: import("../spec/channel.js").Channel): import("../types/encoder.js").Encoder;
|
|
22
22
|
/**
|
|
23
23
|
* TODO: Move to a more generic place
|
|
24
24
|
*
|
|
25
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
26
|
-
* @returns {channelDef is import("../spec/channel").ValueDef}
|
|
25
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
26
|
+
* @returns {channelDef is import("../spec/channel.js").ValueDef}
|
|
27
27
|
*/
|
|
28
|
-
export function isValueDef(channelDef: import("../spec/channel").ChannelDef): channelDef is import("../spec/channel").ValueDef<import("../spec/channel").Scalar>;
|
|
28
|
+
export function isValueDef(channelDef: import("../spec/channel.js").ChannelDef): channelDef is import("../spec/channel.js").ValueDef<import("../spec/channel.js").Scalar>;
|
|
29
29
|
/**
|
|
30
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
31
|
-
* @returns {channelDef is import("../spec/channel").FieldDefBase<string>}
|
|
30
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
31
|
+
* @returns {channelDef is import("../spec/channel.js").FieldDefBase<string>}
|
|
32
32
|
*/
|
|
33
|
-
export function isFieldDef(channelDef: import("../spec/channel").ChannelDef): channelDef is import("../spec/channel").FieldDefBase<string>;
|
|
33
|
+
export function isFieldDef(channelDef: import("../spec/channel.js").ChannelDef): channelDef is import("../spec/channel.js").FieldDefBase<string>;
|
|
34
34
|
/**
|
|
35
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
36
|
-
* @returns {channelDef is import("../spec/channel").DatumDef}
|
|
35
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
36
|
+
* @returns {channelDef is import("../spec/channel.js").DatumDef}
|
|
37
37
|
*/
|
|
38
|
-
export function isDatumDef(channelDef: import("../spec/channel").ChannelDef): channelDef is import("../spec/channel").DatumDef;
|
|
38
|
+
export function isDatumDef(channelDef: import("../spec/channel.js").ChannelDef): channelDef is import("../spec/channel.js").DatumDef;
|
|
39
39
|
/**
|
|
40
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
41
|
-
* @returns {channelDef is import("../spec/channel").ChannelDefWithScale}
|
|
40
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
41
|
+
* @returns {channelDef is import("../spec/channel.js").ChannelDefWithScale}
|
|
42
42
|
*/
|
|
43
|
-
export function isChannelDefWithScale(channelDef: import("../spec/channel").ChannelDef): channelDef is import("../spec/channel").ChannelDefWithScale;
|
|
43
|
+
export function isChannelDefWithScale(channelDef: import("../spec/channel.js").ChannelDef): channelDef is import("../spec/channel.js").ChannelDefWithScale;
|
|
44
44
|
/**
|
|
45
|
-
* @param {import("../view/unitView").default} view
|
|
46
|
-
* @param {import("../spec/channel").Channel} channel
|
|
45
|
+
* @param {import("../view/unitView.js").default} view
|
|
46
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
47
47
|
*/
|
|
48
|
-
export function getChannelDefWithScale(view: import("../view/unitView").default, channel: import("../spec/channel").Channel): import("../spec/channel").ChromPosDef | import("../spec/channel").PositionDatumDef | import("../spec/channel").MarkPropExprDef<import("../spec/channel").Type> | import("../spec/channel").MarkPropDatumDef<import("../spec/channel").Type> | import("../spec/channel").MarkPropDatumDef<import("../spec/channel").TypeForShape> | import("../spec/channel").PositionFieldDef<string> | import("../spec/channel").MarkPropFieldDef<string, import("../spec/channel").Type> | import("../spec/channel").MarkPropFieldDef<string, import("../spec/channel").TypeForShape>;
|
|
48
|
+
export function getChannelDefWithScale(view: import("../view/unitView.js").default, channel: import("../spec/channel.js").Channel): import("../spec/channel.js").ChromPosDef | import("../spec/channel.js").PositionDatumDef | import("../spec/channel.js").MarkPropExprDef<import("../spec/channel.js").Type> | import("../spec/channel.js").MarkPropDatumDef<import("../spec/channel.js").Type> | import("../spec/channel.js").MarkPropDatumDef<import("../spec/channel.js").TypeForShape> | import("../spec/channel.js").PositionFieldDef<string> | import("../spec/channel.js").MarkPropFieldDef<string, import("../spec/channel.js").Type> | import("../spec/channel.js").MarkPropFieldDef<string, import("../spec/channel.js").TypeForShape>;
|
|
49
49
|
/**
|
|
50
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
51
|
-
* @returns {channelDef is import("../spec/channel").ChromPosDef}
|
|
50
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
51
|
+
* @returns {channelDef is import("../spec/channel.js").ChromPosDef}
|
|
52
52
|
*/
|
|
53
|
-
export function isChromPosDef(channelDef: import("../spec/channel").ChannelDef): channelDef is import("../spec/channel").ChromPosDef;
|
|
53
|
+
export function isChromPosDef(channelDef: import("../spec/channel.js").ChannelDef): channelDef is import("../spec/channel.js").ChromPosDef;
|
|
54
54
|
/**
|
|
55
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
56
|
-
* @returns {channelDef is import("../spec/channel").ExprDef}
|
|
55
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
56
|
+
* @returns {channelDef is import("../spec/channel.js").ExprDef}
|
|
57
57
|
*/
|
|
58
|
-
export function isExprDef(channelDef: import("../spec/channel").ChannelDef): channelDef is import("../spec/channel").ExprDef;
|
|
58
|
+
export function isExprDef(channelDef: import("../spec/channel.js").ChannelDef): channelDef is import("../spec/channel.js").ExprDef;
|
|
59
59
|
/**
|
|
60
|
-
* @param {import("../spec/channel").Channel} channel
|
|
61
|
-
* @returns {channel is import("../spec/channel").PrimaryPositionalChannel}
|
|
60
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
61
|
+
* @returns {channel is import("../spec/channel.js").PrimaryPositionalChannel}
|
|
62
62
|
*/
|
|
63
|
-
export function isPrimaryPositionalChannel(channel: import("../spec/channel").Channel): channel is import("../spec/channel").PrimaryPositionalChannel;
|
|
63
|
+
export function isPrimaryPositionalChannel(channel: import("../spec/channel.js").Channel): channel is import("../spec/channel.js").PrimaryPositionalChannel;
|
|
64
64
|
/**
|
|
65
|
-
* @param {import("../spec/channel").Channel} channel
|
|
66
|
-
* @returns {channel is import("../spec/channel").PositionalChannel}
|
|
65
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
66
|
+
* @returns {channel is import("../spec/channel.js").PositionalChannel}
|
|
67
67
|
*/
|
|
68
|
-
export function isPositionalChannel(channel: import("../spec/channel").Channel): channel is import("../spec/channel").PositionalChannel;
|
|
68
|
+
export function isPositionalChannel(channel: import("../spec/channel.js").Channel): channel is import("../spec/channel.js").PositionalChannel;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @param {string} channel
|
|
@@ -74,71 +74,71 @@ export function isSecondaryChannel(channel: string): boolean;
|
|
|
74
74
|
/**
|
|
75
75
|
* Return the matching secondary channel or throws if one does not exist.
|
|
76
76
|
*
|
|
77
|
-
* @param {import("../spec/channel").Channel} primaryChannel
|
|
77
|
+
* @param {import("../spec/channel.js").Channel} primaryChannel
|
|
78
78
|
*/
|
|
79
|
-
export function getSecondaryChannel(primaryChannel: import("../spec/channel").Channel): import("../spec/channel").SecondaryPositionalChannel;
|
|
79
|
+
export function getSecondaryChannel(primaryChannel: import("../spec/channel.js").Channel): import("../spec/channel.js").SecondaryPositionalChannel;
|
|
80
80
|
/**
|
|
81
81
|
* Finds the primary channel for the provided channel, which may be
|
|
82
82
|
* the primary or secondary.
|
|
83
83
|
*
|
|
84
|
-
* @param {import("../spec/channel").Channel} channel
|
|
84
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
85
85
|
*/
|
|
86
|
-
export function getPrimaryChannel(channel: import("../spec/channel").Channel): import("../spec/channel").Channel;
|
|
86
|
+
export function getPrimaryChannel(channel: import("../spec/channel.js").Channel): import("../spec/channel.js").Channel;
|
|
87
87
|
/**
|
|
88
88
|
* Returns an array that contains the given channel and its secondary channel if one exists.
|
|
89
89
|
*
|
|
90
|
-
* @param {import("../spec/channel").Channel} channel
|
|
90
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
91
91
|
*/
|
|
92
|
-
export function getChannelWithSecondarys(channel: import("../spec/channel").Channel): import("../spec/channel").Channel[];
|
|
92
|
+
export function getChannelWithSecondarys(channel: import("../spec/channel.js").Channel): import("../spec/channel.js").Channel[];
|
|
93
93
|
/**
|
|
94
|
-
* @param {import("../spec/channel").Channel} channel
|
|
94
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
95
95
|
*/
|
|
96
|
-
export function isColorChannel(channel: import("../spec/channel").Channel): boolean;
|
|
96
|
+
export function isColorChannel(channel: import("../spec/channel.js").Channel): boolean;
|
|
97
97
|
/**
|
|
98
98
|
* Returns true if the channel has a discrete range.
|
|
99
99
|
*
|
|
100
|
-
* @param {import("../spec/channel").Channel} channel
|
|
100
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
101
101
|
*/
|
|
102
|
-
export function isDiscreteChannel(channel: import("../spec/channel").Channel): boolean;
|
|
102
|
+
export function isDiscreteChannel(channel: import("../spec/channel.js").Channel): boolean;
|
|
103
103
|
/**
|
|
104
|
-
* @param {import("../spec/channel").Channel} channel
|
|
105
|
-
* @returns {channel is import("../spec/channel").ChannelWithScale}
|
|
104
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
105
|
+
* @returns {channel is import("../spec/channel.js").ChannelWithScale}
|
|
106
106
|
*/
|
|
107
|
-
export function isChannelWithScale(channel: import("../spec/channel").Channel): channel is import("../spec/channel").ChannelWithScale;
|
|
107
|
+
export function isChannelWithScale(channel: import("../spec/channel.js").Channel): channel is import("../spec/channel.js").ChannelWithScale;
|
|
108
108
|
/**
|
|
109
109
|
* Returns valid discrete values for a discrete channel.
|
|
110
110
|
*
|
|
111
|
-
* @param {import("../spec/channel").Channel} channel
|
|
111
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
112
112
|
* @returns {any[]}
|
|
113
113
|
*/
|
|
114
|
-
export function getDiscreteRange(channel: import("../spec/channel").Channel): any[];
|
|
114
|
+
export function getDiscreteRange(channel: import("../spec/channel.js").Channel): any[];
|
|
115
115
|
/**
|
|
116
|
-
* @param {import("../spec/channel").Channel} channel
|
|
116
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
117
117
|
* @returns {function(any):number}
|
|
118
118
|
*/
|
|
119
|
-
export function getDiscreteRangeMapper(channel: import("../spec/channel").Channel): (arg0: any) => number;
|
|
119
|
+
export function getDiscreteRangeMapper(channel: import("../spec/channel.js").Channel): (arg0: any) => number;
|
|
120
120
|
/**
|
|
121
|
-
* @type {import("../spec/channel").PrimaryPositionalChannel[]}
|
|
121
|
+
* @type {import("../spec/channel.js").PrimaryPositionalChannel[]}
|
|
122
122
|
*/
|
|
123
|
-
export const primaryPositionalChannels: import("../spec/channel").PrimaryPositionalChannel[];
|
|
123
|
+
export const primaryPositionalChannels: import("../spec/channel.js").PrimaryPositionalChannel[];
|
|
124
124
|
/**
|
|
125
|
-
* @type {import("../spec/channel").SecondaryPositionalChannel[]}
|
|
125
|
+
* @type {import("../spec/channel.js").SecondaryPositionalChannel[]}
|
|
126
126
|
*/
|
|
127
|
-
export const secondaryPositionalChannels: import("../spec/channel").SecondaryPositionalChannel[];
|
|
127
|
+
export const secondaryPositionalChannels: import("../spec/channel.js").SecondaryPositionalChannel[];
|
|
128
128
|
/**
|
|
129
|
-
* @type {import("../spec/channel").PositionalChannel[]}
|
|
129
|
+
* @type {import("../spec/channel.js").PositionalChannel[]}
|
|
130
130
|
*/
|
|
131
|
-
export const positionalChannels: import("../spec/channel").PositionalChannel[];
|
|
131
|
+
export const positionalChannels: import("../spec/channel.js").PositionalChannel[];
|
|
132
132
|
/**
|
|
133
133
|
* Map primary channels to secondarys
|
|
134
134
|
*
|
|
135
|
-
* @type {Partial<Record<import("../spec/channel").Channel, import("../spec/channel").SecondaryPositionalChannel>>}
|
|
135
|
+
* @type {Partial<Record<import("../spec/channel.js").Channel, import("../spec/channel.js").SecondaryPositionalChannel>>}
|
|
136
136
|
*/
|
|
137
|
-
export const secondaryChannels: Partial<Record<import("../spec/channel").Channel, import("../spec/channel").SecondaryPositionalChannel>>;
|
|
137
|
+
export const secondaryChannels: Partial<Record<import("../spec/channel.js").Channel, import("../spec/channel.js").SecondaryPositionalChannel>>;
|
|
138
138
|
/**
|
|
139
139
|
* Map secondary channels to primaries
|
|
140
140
|
*
|
|
141
|
-
* @type {Partial<Record<import("../spec/channel").Channel, import("../spec/channel").Channel>>}
|
|
141
|
+
* @type {Partial<Record<import("../spec/channel.js").Channel, import("../spec/channel.js").Channel>>}
|
|
142
142
|
*/
|
|
143
|
-
export const primaryChannels: Partial<Record<import("../spec/channel").Channel, import("../spec/channel").Channel>>;
|
|
143
|
+
export const primaryChannels: Partial<Record<import("../spec/channel.js").Channel, import("../spec/channel.js").Channel>>;
|
|
144
144
|
//# sourceMappingURL=encoder.d.ts.map
|