@genome-spy/core 0.37.4 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +6467 -20590
- package/dist/bundle/index.js +92 -123
- package/dist/bundle/long-Veu0zKh9.js +2382 -0
- package/dist/bundle/remoteFile-Ur-gRKsH.js +96 -0
- package/dist/schema.json +524 -122
- 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 +47 -42
- 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 +51 -34
- package/dist/src/gl/arrayBuilder.d.ts.map +1 -1
- package/dist/src/gl/dataToVertices.d.ts +19 -19
- package/dist/src/gl/dataToVertices.d.ts.map +1 -1
- package/dist/src/gl/dataToVertices.js +11 -11
- package/dist/src/gl/link.vertex.glsl.js +1 -1
- package/dist/src/gl/point.fragment.glsl.js +1 -1
- package/dist/src/gl/point.vertex.glsl.js +1 -1
- 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.d.ts.map +1 -1
- package/dist/src/marks/link.js +35 -14
- 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 +36 -14
- 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 +33 -26
- 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
|
@@ -6,26 +6,26 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export default class Collector extends FlowNode {
|
|
8
8
|
/**
|
|
9
|
-
* @param {import("../spec/transform").CollectParams} [params]
|
|
9
|
+
* @param {import("../spec/transform.js").CollectParams} [params]
|
|
10
10
|
*/
|
|
11
|
-
constructor(params?: import("../spec/transform").CollectParams);
|
|
12
|
-
params: import("../spec/transform").CollectParams;
|
|
11
|
+
constructor(params?: import("../spec/transform.js").CollectParams);
|
|
12
|
+
params: import("../spec/transform.js").CollectParams;
|
|
13
13
|
/** @type {(function(Collector):void)[]} */
|
|
14
14
|
observers: ((arg0: Collector) => void)[];
|
|
15
|
-
/** @type {Map<any | any[], import("./flowNode").Data>} TODO: proper type for key */
|
|
16
|
-
facetBatches: Map<any | any[], import("./flowNode").Data>;
|
|
15
|
+
/** @type {Map<any | any[], import("./flowNode.js").Data>} TODO: proper type for key */
|
|
16
|
+
facetBatches: Map<any | any[], import("./flowNode.js").Data>;
|
|
17
17
|
_init(): void;
|
|
18
|
-
/** @type {import("./flowNode").Data} */
|
|
19
|
-
_data: import("./flowNode").Data;
|
|
18
|
+
/** @type {import("./flowNode.js").Data} */
|
|
19
|
+
_data: import("./flowNode.js").Data;
|
|
20
20
|
/**
|
|
21
|
-
* @returns {Iterable<import("./flowNode").Datum>}
|
|
21
|
+
* @returns {Iterable<import("./flowNode.js").Datum>}
|
|
22
22
|
*/
|
|
23
|
-
getData(): Iterable<import("./flowNode").Datum>;
|
|
23
|
+
getData(): Iterable<import("./flowNode.js").Datum>;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @param {(datum: import("./flowNode").Datum) => void} visitor
|
|
26
|
+
* @param {(datum: import("./flowNode.js").Datum) => void} visitor
|
|
27
27
|
*/
|
|
28
|
-
visitData(visitor: (datum: import("./flowNode").Datum) => void): void;
|
|
28
|
+
visitData(visitor: (datum: import("./flowNode.js").Datum) => void): void;
|
|
29
29
|
/**
|
|
30
30
|
* Returns the total number of data items collected.
|
|
31
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/data/collector.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH;IAKI;;OAEG;IACH,qBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/data/collector.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH;IAKI;;OAEG;IACH,qBAFW,OAAO,sBAAsB,EAAE,aAAa,EActD;IATG,qDAA2C;IAE3C,2CAA2C;IAC3C,WADW,QAAU,SAAS,KAAE,IAAI,CAAC,EAAE,CACpB;IAEnB,uFAAuF;IACvF,cADW,IAAI,GAAG,GAAG,GAAG,EAAE,EAAE,OAAO,eAAe,EAAE,IAAI,CAAC,CAC5B;IAKjC,cAOC;IANG,2CAA2C;IAC3C,OADW,OAAO,eAAe,EAAE,IAAI,CACxB;IAuFnB;;OAEG;IACH,WAFa,SAAS,OAAO,eAAe,EAAE,KAAK,CAAC,CAuBnD;IAED;;;OAGG;IACH,2BAFmB,OAAO,eAAe,EAAE,KAAK,KAAK,IAAI,QAUxD;IAED;;OAEG;IACH,uBAMC;IAED,qBAMC;CACJ;qBAnLyD,eAAe"}
|
|
@@ -18,7 +18,7 @@ export default class Collector extends FlowNode {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @param {import("../spec/transform").CollectParams} [params]
|
|
21
|
+
* @param {import("../spec/transform.js").CollectParams} [params]
|
|
22
22
|
*/
|
|
23
23
|
constructor(params) {
|
|
24
24
|
super();
|
|
@@ -28,14 +28,14 @@ export default class Collector extends FlowNode {
|
|
|
28
28
|
/** @type {(function(Collector):void)[]} */
|
|
29
29
|
this.observers = [];
|
|
30
30
|
|
|
31
|
-
/** @type {Map<any | any[], import("./flowNode").Data>} TODO: proper type for key */
|
|
31
|
+
/** @type {Map<any | any[], import("./flowNode.js").Data>} TODO: proper type for key */
|
|
32
32
|
this.facetBatches = undefined;
|
|
33
33
|
|
|
34
34
|
this._init();
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
_init() {
|
|
38
|
-
/** @type {import("./flowNode").Data} */
|
|
38
|
+
/** @type {import("./flowNode.js").Data} */
|
|
39
39
|
this._data = [];
|
|
40
40
|
|
|
41
41
|
// TODO: Consider nested maps
|
|
@@ -50,14 +50,14 @@ export default class Collector extends FlowNode {
|
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
|
-
* @param {import("./flowNode").Datum} datum
|
|
53
|
+
* @param {import("./flowNode.js").Datum} datum
|
|
54
54
|
*/
|
|
55
55
|
handle(datum) {
|
|
56
56
|
this._data.push(datum);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* @param {import("../types/flowBatch").FlowBatch} flowBatch
|
|
60
|
+
* @param {import("../types/flowBatch.js").FlowBatch} flowBatch
|
|
61
61
|
*/
|
|
62
62
|
beginBatch(flowBatch) {
|
|
63
63
|
if (isFacetBatch(flowBatch)) {
|
|
@@ -104,7 +104,7 @@ export default class Collector extends FlowNode {
|
|
|
104
104
|
if (this.children.length) {
|
|
105
105
|
for (const [key, data] of this.facetBatches.entries()) {
|
|
106
106
|
if (key) {
|
|
107
|
-
/** @type {import("../types/flowBatch").FacetBatch} */
|
|
107
|
+
/** @type {import("../types/flowBatch.js").FacetBatch} */
|
|
108
108
|
const facetBatch = { type: "facet", facetId: key };
|
|
109
109
|
for (const child of this.children) {
|
|
110
110
|
child.beginBatch(facetBatch);
|
|
@@ -124,7 +124,7 @@ export default class Collector extends FlowNode {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
* @returns {Iterable<import("./flowNode").Datum>}
|
|
127
|
+
* @returns {Iterable<import("./flowNode.js").Datum>}
|
|
128
128
|
*/
|
|
129
129
|
getData() {
|
|
130
130
|
this._checkStatus();
|
|
@@ -151,7 +151,7 @@ export default class Collector extends FlowNode {
|
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
|
-
* @param {(datum: import("./flowNode").Datum) => void} visitor
|
|
154
|
+
* @param {(datum: import("./flowNode.js").Datum) => void} visitor
|
|
155
155
|
*/
|
|
156
156
|
visitData(visitor) {
|
|
157
157
|
this._checkStatus();
|
|
@@ -3,38 +3,38 @@
|
|
|
3
3
|
* data sources and collectors.
|
|
4
4
|
*/
|
|
5
5
|
export default class DataFlow<H> {
|
|
6
|
-
/** @type {Map<H, import("./sources/dataSource").default>} */
|
|
7
|
-
_dataSourcesByHost: Map<H, import("./sources/dataSource").default>;
|
|
8
|
-
/** @type {Map<H, import("./collector").default>} */
|
|
9
|
-
_collectorsByHost: Map<H, import("./collector").default>;
|
|
10
|
-
/** @type {Map<H, (function(import("./collector").default):void)[]>} */
|
|
11
|
-
_observers: Map<H, ((arg0: import("./collector").default) => void)[]>;
|
|
12
|
-
get dataSources(): import("./sources/dataSource").default[];
|
|
13
|
-
get collectors(): import("./collector").default[];
|
|
6
|
+
/** @type {Map<H, import("./sources/dataSource.js").default>} */
|
|
7
|
+
_dataSourcesByHost: Map<H, import("./sources/dataSource.js").default>;
|
|
8
|
+
/** @type {Map<H, import("./collector.js").default>} */
|
|
9
|
+
_collectorsByHost: Map<H, import("./collector.js").default>;
|
|
10
|
+
/** @type {Map<H, (function(import("./collector.js").default):void)[]>} */
|
|
11
|
+
_observers: Map<H, ((arg0: import("./collector.js").default) => void)[]>;
|
|
12
|
+
get dataSources(): import("./sources/dataSource.js").default[];
|
|
13
|
+
get collectors(): import("./collector.js").default[];
|
|
14
14
|
/**
|
|
15
15
|
* Adds a callback function that will be called when a collector has completed.
|
|
16
16
|
*
|
|
17
|
-
* @param {function(import("./collector").default):void} callback
|
|
17
|
+
* @param {function(import("./collector.js").default):void} callback
|
|
18
18
|
* @param {H} key
|
|
19
19
|
*/
|
|
20
|
-
addObserver(callback: (arg0: import("./collector").default) => void, key: H): void;
|
|
20
|
+
addObserver(callback: (arg0: import("./collector.js").default) => void, key: H): void;
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @param {import("./collector").default} collector
|
|
23
|
+
* @param {import("./collector.js").default} collector
|
|
24
24
|
* @param {H} key
|
|
25
25
|
*/
|
|
26
|
-
_relayObserverCallback(collector: import("./collector").default, key: H): void;
|
|
26
|
+
_relayObserverCallback(collector: import("./collector.js").default, key: H): void;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
|
-
* @param {import("./sources/dataSource").default} dataSource
|
|
29
|
+
* @param {import("./sources/dataSource.js").default} dataSource
|
|
30
30
|
* @param {H} key
|
|
31
31
|
*/
|
|
32
|
-
addDataSource(dataSource: import("./sources/dataSource").default, key: H): void;
|
|
32
|
+
addDataSource(dataSource: import("./sources/dataSource.js").default, key: H): void;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @param {H} key
|
|
36
36
|
*/
|
|
37
|
-
findDataSourceByKey(key: H): import("./sources/dataSource").default;
|
|
37
|
+
findDataSourceByKey(key: H): import("./sources/dataSource.js").default;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @param {string} name
|
|
@@ -45,15 +45,15 @@ export default class DataFlow<H> {
|
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
|
-
* @param {import("./collector").default} collector
|
|
48
|
+
* @param {import("./collector.js").default} collector
|
|
49
49
|
* @param {H} key
|
|
50
50
|
*/
|
|
51
|
-
addCollector(collector: import("./collector").default, key: H): void;
|
|
51
|
+
addCollector(collector: import("./collector.js").default, key: H): void;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @param {H} key
|
|
55
55
|
*/
|
|
56
|
-
findCollectorByKey(key: H): import("./collector").default;
|
|
56
|
+
findCollectorByKey(key: H): import("./collector.js").default;
|
|
57
57
|
/**
|
|
58
58
|
* Allows the flow nodes to perform final initialization after the flow
|
|
59
59
|
* structure has been built and optimized.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataFlow.d.ts","sourceRoot":"","sources":["../../../src/data/dataFlow.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IAEQ,
|
|
1
|
+
{"version":3,"file":"dataFlow.d.ts","sourceRoot":"","sources":["../../../src/data/dataFlow.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IAEQ,gEAAgE;IAChE,oBADW,IAAI,CAAC,EAAE,OAAO,yBAAyB,EAAE,OAAO,CAAC,CACzB;IAEnC,uDAAuD;IACvD,mBADW,IAAI,CAAC,EAAE,OAAO,gBAAgB,EAAE,OAAO,CAAC,CACjB;IAElC,0EAA0E;IAC1E,YADW,IAAI,CAAC,EAAE,QAAU,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI,CAAC,EAAE,CAAC,CAC3C;IAG/B,+DAEC;IAED,qDAEC;IAED;;;;;OAKG;IACH,6BAHoB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI,OAC/C,CAAC,QAUX;IAED;;;;OAIG;IACH,kCAHW,OAAO,gBAAgB,EAAE,OAAO,OAChC,CAAC,QAUX;IAED;;;;OAIG;IACH,0BAHW,OAAO,yBAAyB,EAAE,OAAO,OACzC,CAAC,QAIX;IAED;;;OAGG;IACH,yBAFW,CAAC,6CAIX;IAED;;;OAGG;IACH,0BAFW,MAAM;;;MAiChB;IAED;;;;OAIG;IACH,wBAHW,OAAO,gBAAgB,EAAE,OAAO,OAChC,CAAC,QAOX;IAED;;;OAGG;IACH,wBAFW,CAAC,oCAIX;IAED;;;;OAIG;IACH,mBAIC;CACJ;wBA7IuB,0BAA0B"}
|
|
@@ -6,13 +6,13 @@ import NamedSource from "./sources/namedSource.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export default class DataFlow {
|
|
8
8
|
constructor() {
|
|
9
|
-
/** @type {Map<H, import("./sources/dataSource").default>} */
|
|
9
|
+
/** @type {Map<H, import("./sources/dataSource.js").default>} */
|
|
10
10
|
this._dataSourcesByHost = new Map();
|
|
11
11
|
|
|
12
|
-
/** @type {Map<H, import("./collector").default>} */
|
|
12
|
+
/** @type {Map<H, import("./collector.js").default>} */
|
|
13
13
|
this._collectorsByHost = new Map();
|
|
14
14
|
|
|
15
|
-
/** @type {Map<H, (function(import("./collector").default):void)[]>} */
|
|
15
|
+
/** @type {Map<H, (function(import("./collector.js").default):void)[]>} */
|
|
16
16
|
this._observers = new Map();
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ export default class DataFlow {
|
|
|
27
27
|
/**
|
|
28
28
|
* Adds a callback function that will be called when a collector has completed.
|
|
29
29
|
*
|
|
30
|
-
* @param {function(import("./collector").default):void} callback
|
|
30
|
+
* @param {function(import("./collector.js").default):void} callback
|
|
31
31
|
* @param {H} key
|
|
32
32
|
*/
|
|
33
33
|
addObserver(callback, key) {
|
|
@@ -42,7 +42,7 @@ export default class DataFlow {
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @param {import("./collector").default} collector
|
|
45
|
+
* @param {import("./collector.js").default} collector
|
|
46
46
|
* @param {H} key
|
|
47
47
|
*/
|
|
48
48
|
_relayObserverCallback(collector, key) {
|
|
@@ -57,7 +57,7 @@ export default class DataFlow {
|
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
|
-
* @param {import("./sources/dataSource").default} dataSource
|
|
60
|
+
* @param {import("./sources/dataSource.js").default} dataSource
|
|
61
61
|
* @param {H} key
|
|
62
62
|
*/
|
|
63
63
|
addDataSource(dataSource, key) {
|
|
@@ -111,7 +111,7 @@ export default class DataFlow {
|
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
|
-
* @param {import("./collector").default} collector
|
|
114
|
+
* @param {import("./collector.js").default} collector
|
|
115
115
|
* @param {H} key
|
|
116
116
|
*/
|
|
117
117
|
addCollector(collector, key) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {import("../types/flowBatch").FlowBatch} flowBatch
|
|
3
|
-
* @returns {flowBatch is import("../types/flowBatch").FileBatch}
|
|
2
|
+
* @param {import("../types/flowBatch.js").FlowBatch} flowBatch
|
|
3
|
+
* @returns {flowBatch is import("../types/flowBatch.js").FileBatch}
|
|
4
4
|
*/
|
|
5
|
-
export function isFileBatch(flowBatch: import("../types/flowBatch").FlowBatch): flowBatch is import("../types/flowBatch").FileBatch;
|
|
5
|
+
export function isFileBatch(flowBatch: import("../types/flowBatch.js").FlowBatch): flowBatch is import("../types/flowBatch.js").FileBatch;
|
|
6
6
|
/**
|
|
7
|
-
* @param {import("../types/flowBatch").FlowBatch} flowBatch
|
|
8
|
-
* @returns {flowBatch is import("../types/flowBatch").FacetBatch}
|
|
7
|
+
* @param {import("../types/flowBatch.js").FlowBatch} flowBatch
|
|
8
|
+
* @returns {flowBatch is import("../types/flowBatch.js").FacetBatch}
|
|
9
9
|
*/
|
|
10
|
-
export function isFacetBatch(flowBatch: import("../types/flowBatch").FlowBatch): flowBatch is import("../types/flowBatch").FacetBatch;
|
|
10
|
+
export function isFacetBatch(flowBatch: import("../types/flowBatch.js").FlowBatch): flowBatch is import("../types/flowBatch.js").FacetBatch;
|
|
11
11
|
/**
|
|
12
12
|
* The FlowNode clones the data objects passing through or creates entirely
|
|
13
13
|
* new objects.
|
|
@@ -66,7 +66,7 @@ export default class FlowNode {
|
|
|
66
66
|
*
|
|
67
67
|
* @param {FlowNode} child
|
|
68
68
|
*/
|
|
69
|
-
addChild(child: FlowNode):
|
|
69
|
+
addChild(child: FlowNode): this;
|
|
70
70
|
/**
|
|
71
71
|
* @param {FlowNode} node
|
|
72
72
|
*/
|
|
@@ -121,9 +121,9 @@ export default class FlowNode {
|
|
|
121
121
|
/**
|
|
122
122
|
* Signals that a new batch of data will be propagated.
|
|
123
123
|
*
|
|
124
|
-
* @param {import("../types/flowBatch").FlowBatch} flowBatch
|
|
124
|
+
* @param {import("../types/flowBatch.js").FlowBatch} flowBatch
|
|
125
125
|
*/
|
|
126
|
-
beginBatch(flowBatch: import("../types/flowBatch").FlowBatch): void;
|
|
126
|
+
beginBatch(flowBatch: import("../types/flowBatch.js").FlowBatch): void;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* This is heavily inspired by Vega's and Vega-Lite's data flow system.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowNode.d.ts","sourceRoot":"","sources":["../../../src/data/flowNode.js"],"names":[],"mappings":"AA+QA;;;GAGG;AACH,uCAHW,OAAO,
|
|
1
|
+
{"version":3,"file":"flowNode.d.ts","sourceRoot":"","sources":["../../../src/data/flowNode.js"],"names":[],"mappings":"AA+QA;;;GAGG;AACH,uCAHW,OAAO,uBAAuB,EAAE,SAAS,0DAKnD;AAED;;;GAGG;AACH,wCAHW,OAAO,uBAAuB,EAAE,SAAS,2DAKnD;AA3RD;;;GAGG;AACH,qCAAsC;AAEtC;;;GAGG;AACH,uCAAwC;AAExC;;;GAGG;AACH,uCAAwC;AAIxC;;;;;GAKG;AACH;IACI,uBAEC;IAGG,yBAAyB;IACzB,UADW,QAAQ,EAAE,CACH;IAElB,uBAAuB;IACvB,QADW,QAAQ,CACI;IAEvB,2CAA2C;IAC3C,mBAAsB;IAG1B;;;OAGG;IACH,cAMC;IAED;;;OAGG;IACH,mBAEC;IAED;;;OAGG;IACH,0BAUC;IAwLD;;;OAGG;IACH,kBAFW,GAAG,QAIb;IA5LD;;;OAGG;IACH,kBAFW,QAAQ,QAIlB;IAED;;;OAGG;IACH,gBAFW,QAAQ,QAUlB;IAED;;OAEG;IACH,YAFW,QAAQ,QAQlB;IAED;;OAEG;IACH,6BAFW,QAAQ,QAMlB;IAED;;OAEG;IACH,0BAFW,QAAQ,QAalB;IAED;;;OAGG;IACH,mBAFW,QAAQ,QAWlB;IAED;;OAEG;IACH,eAiBC;IAED,kBAEC;IAED,uBAEC;IAED,sBAEC;IAED;;;;OAIG;IACH,eAFW,QAAU,QAAQ,KAAE,IAAI,CAAC,GAAG;QAAE,aAAa,CAAC,SAAW,QAAQ,KAAE,IAAI,CAAA;KAAC,QAchF;IAED;;;OAGG;IACH,wBAHW,MAAM,GACJ,MAAM,CAWlB;IAED;;;;;;OAMG;IACH,mBAFa,OAAO,MAAM,EAAE,GAAG,CAAC,CAM/B;IAED;;;OAGG;IACH,cAFW,KAAK,QAKf;IAED,iBAMC;IAED;;;;OAIG;IACH,sBAFW,OAAO,uBAAuB,EAAE,SAAS,QAMnD;CASJ;;;;oBApPY,OAAO,MAAM,EAAE,GAAG,CAAC;;;;mBACnB,KAAK,EAAE"}
|
|
@@ -252,7 +252,7 @@ export default class FlowNode {
|
|
|
252
252
|
/**
|
|
253
253
|
* Signals that a new batch of data will be propagated.
|
|
254
254
|
*
|
|
255
|
-
* @param {import("../types/flowBatch").FlowBatch} flowBatch
|
|
255
|
+
* @param {import("../types/flowBatch.js").FlowBatch} flowBatch
|
|
256
256
|
*/
|
|
257
257
|
beginBatch(flowBatch) {
|
|
258
258
|
for (const child of this.children) {
|
|
@@ -270,16 +270,16 @@ export default class FlowNode {
|
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
|
-
* @param {import("../types/flowBatch").FlowBatch} flowBatch
|
|
274
|
-
* @returns {flowBatch is import("../types/flowBatch").FileBatch}
|
|
273
|
+
* @param {import("../types/flowBatch.js").FlowBatch} flowBatch
|
|
274
|
+
* @returns {flowBatch is import("../types/flowBatch.js").FileBatch}
|
|
275
275
|
*/
|
|
276
276
|
export function isFileBatch(flowBatch) {
|
|
277
277
|
return flowBatch.type == "file";
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* @param {import("../types/flowBatch").FlowBatch} flowBatch
|
|
282
|
-
* @returns {flowBatch is import("../types/flowBatch").FacetBatch}
|
|
281
|
+
* @param {import("../types/flowBatch.js").FlowBatch} flowBatch
|
|
282
|
+
* @returns {flowBatch is import("../types/flowBatch.js").FacetBatch}
|
|
283
283
|
*/
|
|
284
284
|
export function isFacetBatch(flowBatch) {
|
|
285
285
|
return flowBatch.type == "facet";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {import("./flowNode").default} node
|
|
3
|
-
* @param {import("./flowNode").default} [parent]
|
|
2
|
+
* @param {import("./flowNode.js").default} node
|
|
3
|
+
* @param {import("./flowNode.js").default} [parent]
|
|
4
4
|
*/
|
|
5
|
-
export function validateLinks(node: import("./flowNode").default, parent?: import("./flowNode").default): boolean;
|
|
5
|
+
export function validateLinks(node: import("./flowNode.js").default, parent?: import("./flowNode.js").default): boolean;
|
|
6
6
|
/**
|
|
7
7
|
* Removes possible redundant CloneTransforms that were added during graph construction.
|
|
8
8
|
*
|
|
9
|
-
* @param {import("./flowNode").default} node
|
|
9
|
+
* @param {import("./flowNode.js").default} node
|
|
10
10
|
*/
|
|
11
|
-
export function removeRedundantCloneTransforms(node: import("./flowNode").default, cloneRequired?: boolean): void;
|
|
11
|
+
export function removeRedundantCloneTransforms(node: import("./flowNode.js").default, cloneRequired?: boolean): void;
|
|
12
12
|
export function removeRedundantCollectors(): void;
|
|
13
13
|
export function combineAndPullCollectorsUp(): void;
|
|
14
14
|
/**
|
|
15
|
-
* @param {import("./dataFlow").default<any>} dataFlow
|
|
15
|
+
* @param {import("./dataFlow.js").default<any>} dataFlow
|
|
16
16
|
*/
|
|
17
|
-
export function combineIdenticalDataSources(dataFlow: import("./dataFlow").default<any>): void;
|
|
17
|
+
export function combineIdenticalDataSources(dataFlow: import("./dataFlow.js").default<any>): void;
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @param {import("./flowNode").default} root
|
|
20
|
+
* @param {import("./flowNode.js").default} root
|
|
21
21
|
*/
|
|
22
|
-
export function optimizeFlowGraph(root: import("./flowNode").default): void;
|
|
22
|
+
export function optimizeFlowGraph(root: import("./flowNode.js").default): void;
|
|
23
23
|
/**
|
|
24
|
-
* @param {import("./dataFlow").default<any>} dataFlow
|
|
24
|
+
* @param {import("./dataFlow.js").default<any>} dataFlow
|
|
25
25
|
*/
|
|
26
|
-
export function optimizeDataFlow(dataFlow: import("./dataFlow").default<any>): void;
|
|
26
|
+
export function optimizeDataFlow(dataFlow: import("./dataFlow.js").default<any>): void;
|
|
27
27
|
//# sourceMappingURL=flowOptimizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowOptimizer.d.ts","sourceRoot":"","sources":["../../../src/data/flowOptimizer.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,oCAHW,OAAO,
|
|
1
|
+
{"version":3,"file":"flowOptimizer.d.ts","sourceRoot":"","sources":["../../../src/data/flowOptimizer.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,oCAHW,OAAO,eAAe,EAAE,OAAO,WAC/B,OAAO,eAAe,EAAE,OAAO,WAczC;AAED;;;;GAIG;AACH,qDAFW,OAAO,eAAe,EAAE,OAAO,iCAgCzC;AAED,kDAEC;AAED,mDAEC;AAmBD;;GAEG;AACH,sDAFW,OAAO,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,QAwB9C;AAED;;;GAGG;AACH,wCAFW,OAAO,eAAe,EAAE,OAAO,QASzC;AAED;;GAEG;AACH,2CAFW,OAAO,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,QAQ9C"}
|
|
@@ -2,8 +2,8 @@ import { BEHAVIOR_CLONES, BEHAVIOR_COLLECTS } from "./flowNode.js";
|
|
|
2
2
|
import CloneTransform from "./transforms/clone.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @param {import("./flowNode").default} node
|
|
6
|
-
* @param {import("./flowNode").default} [parent]
|
|
5
|
+
* @param {import("./flowNode.js").default} node
|
|
6
|
+
* @param {import("./flowNode.js").default} [parent]
|
|
7
7
|
*/
|
|
8
8
|
export function validateLinks(node, parent = undefined) {
|
|
9
9
|
if (node.parent !== parent) {
|
|
@@ -22,7 +22,7 @@ export function validateLinks(node, parent = undefined) {
|
|
|
22
22
|
/**
|
|
23
23
|
* Removes possible redundant CloneTransforms that were added during graph construction.
|
|
24
24
|
*
|
|
25
|
-
* @param {import("./flowNode").default} node
|
|
25
|
+
* @param {import("./flowNode.js").default} node
|
|
26
26
|
*/
|
|
27
27
|
export function removeRedundantCloneTransforms(node, cloneRequired = false) {
|
|
28
28
|
if (node.behavior & BEHAVIOR_COLLECTS) {
|
|
@@ -82,12 +82,12 @@ export function combineAndPullCollectorsUp() {
|
|
|
82
82
|
// --F--G
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* @param {import("./dataFlow").default<any>} dataFlow
|
|
85
|
+
* @param {import("./dataFlow.js").default<any>} dataFlow
|
|
86
86
|
*/
|
|
87
87
|
export function combineIdenticalDataSources(dataFlow) {
|
|
88
88
|
const dataSourceEntries = [...dataFlow._dataSourcesByHost.entries()];
|
|
89
89
|
|
|
90
|
-
/** @type {Map<string, import("./sources/dataSource").default>} */
|
|
90
|
+
/** @type {Map<string, import("./sources/dataSource.js").default>} */
|
|
91
91
|
const sourcesByIdentifiers = new Map();
|
|
92
92
|
for (const e of dataSourceEntries) {
|
|
93
93
|
const ds = e[1];
|
|
@@ -110,7 +110,7 @@ export function combineIdenticalDataSources(dataFlow) {
|
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
|
-
* @param {import("./flowNode").default} root
|
|
113
|
+
* @param {import("./flowNode.js").default} root
|
|
114
114
|
*/
|
|
115
115
|
export function optimizeFlowGraph(root) {
|
|
116
116
|
removeRedundantCloneTransforms(root);
|
|
@@ -122,7 +122,7 @@ export function optimizeFlowGraph(root) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* @param {import("./dataFlow").default<any>} dataFlow
|
|
125
|
+
* @param {import("./dataFlow.js").default<any>} dataFlow
|
|
126
126
|
*/
|
|
127
127
|
export function optimizeDataFlow(dataFlow) {
|
|
128
128
|
for (const dataSource of dataFlow.dataSources) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
|
-
* @param {import("./flowNode").default} flowNode
|
|
3
|
+
* @param {import("./flowNode.js").default} flowNode
|
|
4
4
|
* @param {any[]} data
|
|
5
5
|
*/
|
|
6
|
-
export function processData(flowNode: import("./flowNode").default, data: any[]): import("./flowNode.js").Datum[];
|
|
6
|
+
export function processData(flowNode: import("./flowNode.js").default, data: any[]): import("./flowNode.js").Datum[];
|
|
7
7
|
/**
|
|
8
8
|
* For testing
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowTestUtils.d.ts","sourceRoot":"","sources":["../../../src/data/flowTestUtils.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,sCAHW,OAAO,
|
|
1
|
+
{"version":3,"file":"flowTestUtils.d.ts","sourceRoot":"","sources":["../../../src/data/flowTestUtils.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,sCAHW,OAAO,eAAe,EAAE,OAAO,QAC/B,GAAG,EAAE,mCAcf;AAED;;GAEG;AACH;IACI;;;OAGG;IACH,kBAFW,GAAG,EAAE,EAKf;IADG,YAAgB;IAGpB,iBAMC;CACJ;AAED;;GAEG;AACH;IACI;;;OAGG;IACH,eAFW,MAAM,EAWhB;CACJ;qBA7DoB,eAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {Partial<import("../../spec/data").Data>} params
|
|
3
|
-
* @param {import("../../view/view").default} view
|
|
2
|
+
* @param {Partial<import("../../spec/data.js").Data>} params
|
|
3
|
+
* @param {import("../../view/view.js").default} view
|
|
4
4
|
*/
|
|
5
|
-
export default function createDataSource(params: Partial<import("../../spec/data").Data>, view: import("../../view/view").default): InlineSource | UrlSource | SequenceSource | AxisTickSource | AxisGenomeSource | IndexedFastaSource | BigWigSource | BigBedSource | BamSource | Gff3Source;
|
|
5
|
+
export default function createDataSource(params: Partial<import("../../spec/data.js").Data>, view: import("../../view/view.js").default): InlineSource | UrlSource | SequenceSource | AxisTickSource | AxisGenomeSource | IndexedFastaSource | BigWigSource | BigBedSource | BamSource | Gff3Source;
|
|
6
6
|
import InlineSource from "./inlineSource.js";
|
|
7
7
|
import UrlSource from "./urlSource.js";
|
|
8
8
|
import SequenceSource from "./sequenceSource.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSourceFactory.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/dataSourceFactory.js"],"names":[],"mappings":"AAWA;;;GAGG;AACH,iDAHW,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"dataSourceFactory.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/dataSourceFactory.js"],"names":[],"mappings":"AAWA;;;GAGG;AACH,iDAHW,QAAQ,OAAO,oBAAoB,EAAE,IAAI,CAAC,QAC1C,OAAO,oBAAoB,EAAE,OAAO,6JAgB9C;yBA7B0C,mBAAmB;sBACzB,gBAAgB;2BACD,qBAAqB;2BAC9C,6BAA6B;6BAC3B,+BAA+B;+BAC7B,iCAAiC;yBACvC,2BAA2B;yBAC3B,2BAA2B;sBAC9B,wBAAwB;uBACvB,yBAAyB"}
|
|
@@ -10,8 +10,8 @@ import BamSource from "./dynamic/bamSource.js";
|
|
|
10
10
|
import Gff3Source from "./dynamic/gff3Source.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* @param {Partial<import("../../spec/data").Data>} params
|
|
14
|
-
* @param {import("../../view/view").default} view
|
|
13
|
+
* @param {Partial<import("../../spec/data.js").Data>} params
|
|
14
|
+
* @param {import("../../view/view.js").default} view
|
|
15
15
|
*/
|
|
16
16
|
export default function createDataSource(params, view) {
|
|
17
17
|
if (isInlineData(params)) {
|
|
@@ -31,8 +31,8 @@ export default function createDataSource(params, view) {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @param {Partial<import("../../spec/data").Data>} params
|
|
35
|
-
* @returns {params is import("../../spec/data").LazyData}
|
|
34
|
+
* @param {Partial<import("../../spec/data.js").Data>} params
|
|
35
|
+
* @returns {params is import("../../spec/data.js").LazyData}
|
|
36
36
|
*/
|
|
37
37
|
function isLazyData(params) {
|
|
38
38
|
return "lazy" in params;
|
|
@@ -40,8 +40,8 @@ function isLazyData(params) {
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @param {import("../../spec/data").LazyDataParams} params
|
|
44
|
-
* @returns {params is import("../../spec/data").AxisTicksData}
|
|
43
|
+
* @param {import("../../spec/data.js").LazyDataParams} params
|
|
44
|
+
* @returns {params is import("../../spec/data.js").AxisTicksData}
|
|
45
45
|
*/
|
|
46
46
|
function isAxisTickSource(params) {
|
|
47
47
|
return params?.type == "axisTicks";
|
|
@@ -49,8 +49,8 @@ function isAxisTickSource(params) {
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @param {import("../../spec/data").LazyDataParams} params
|
|
53
|
-
* @returns {params is import("../../spec/data").AxisGenomeData}
|
|
52
|
+
* @param {import("../../spec/data.js").LazyDataParams} params
|
|
53
|
+
* @returns {params is import("../../spec/data.js").AxisGenomeData}
|
|
54
54
|
*/
|
|
55
55
|
function isAxisGenomeSource(params) {
|
|
56
56
|
return params?.type == "axisGenome";
|
|
@@ -58,8 +58,8 @@ function isAxisGenomeSource(params) {
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
|
-
* @param {import("../../spec/data").LazyDataParams} params
|
|
62
|
-
* @returns {params is import("../../spec/data").IndexedFastaData}
|
|
61
|
+
* @param {import("../../spec/data.js").LazyDataParams} params
|
|
62
|
+
* @returns {params is import("../../spec/data.js").IndexedFastaData}
|
|
63
63
|
*/
|
|
64
64
|
function isIndexedFastaSource(params) {
|
|
65
65
|
return params?.type == "indexedFasta";
|
|
@@ -67,8 +67,8 @@ function isIndexedFastaSource(params) {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
|
-
* @param {import("../../spec/data").LazyDataParams} params
|
|
71
|
-
* @returns {params is import("../../spec/data").BigWigData}
|
|
70
|
+
* @param {import("../../spec/data.js").LazyDataParams} params
|
|
71
|
+
* @returns {params is import("../../spec/data.js").BigWigData}
|
|
72
72
|
*/
|
|
73
73
|
function isBigWigSource(params) {
|
|
74
74
|
return params?.type == "bigwig";
|
|
@@ -76,8 +76,8 @@ function isBigWigSource(params) {
|
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
|
-
* @param {import("../../spec/data").LazyDataParams} params
|
|
80
|
-
* @returns {params is import("../../spec/data").BigBedData}
|
|
79
|
+
* @param {import("../../spec/data.js").LazyDataParams} params
|
|
80
|
+
* @returns {params is import("../../spec/data.js").BigBedData}
|
|
81
81
|
*/
|
|
82
82
|
function isBigBedSource(params) {
|
|
83
83
|
return params?.type == "bigbed";
|
|
@@ -85,24 +85,24 @@ function isBigBedSource(params) {
|
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
|
-
* @param {import("../../spec/data").LazyDataParams} params
|
|
89
|
-
* @returns {params is import("../../spec/data").BamData}
|
|
88
|
+
* @param {import("../../spec/data.js").LazyDataParams} params
|
|
89
|
+
* @returns {params is import("../../spec/data.js").BamData}
|
|
90
90
|
*/
|
|
91
91
|
function isBamSource(params) {
|
|
92
92
|
return params?.type == "bam";
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
* @param {import("../../spec/data").LazyDataParams} params
|
|
97
|
-
* @returns {params is import("../../spec/data").Gff3Data}
|
|
96
|
+
* @param {import("../../spec/data.js").LazyDataParams} params
|
|
97
|
+
* @returns {params is import("../../spec/data.js").Gff3Data}
|
|
98
98
|
*/
|
|
99
99
|
function isGff3Source(params) {
|
|
100
100
|
return params?.type == "gff3";
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* @param {import("../../spec/data").LazyDataParams} params
|
|
105
|
-
* @param {import("../../view/view").default} view
|
|
104
|
+
* @param {import("../../spec/data.js").LazyDataParams} params
|
|
105
|
+
* @param {import("../../view/view.js").default} view
|
|
106
106
|
*/
|
|
107
107
|
function createDynamicDataSource(params, view) {
|
|
108
108
|
if (isAxisTickSource(params)) {
|