@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ScaleResolutionApi } from "./scaleResolutionApi";
|
|
2
|
-
import { TooltipHandler } from "../tooltip/tooltipHandler";
|
|
3
|
-
import { RootSpec } from "../spec/root";
|
|
1
|
+
import { ScaleResolutionApi } from "./scaleResolutionApi.js";
|
|
2
|
+
import { TooltipHandler } from "../tooltip/tooltipHandler.js";
|
|
3
|
+
import { RootSpec } from "../spec/root.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Embeds GenomeSpy into the DOM
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
ScaleDiverging,
|
|
16
16
|
ScaleContinuousNumeric,
|
|
17
17
|
} from "d3-scale";
|
|
18
|
-
import { ChannelDef } from "../spec/channel";
|
|
19
|
-
import { ScaleLocus } from "../genome/scaleLocus";
|
|
20
|
-
import { ScaleIndex } from "../genome/scaleIndex";
|
|
21
|
-
import { Scalar } from "../spec/channel";
|
|
18
|
+
import { ChannelDef } from "../spec/channel.js";
|
|
19
|
+
import { ScaleLocus } from "../genome/scaleLocus.js";
|
|
20
|
+
import { ScaleIndex } from "../genome/scaleIndex.js";
|
|
21
|
+
import { Scalar } from "../spec/channel.js";
|
|
22
22
|
|
|
23
23
|
export interface AccessorMetadata {
|
|
24
24
|
/** True if the accessor returns the same value for all objects */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Mark from "../marks/mark";
|
|
2
|
-
import { LocSize } from "../
|
|
3
|
-
import Rectangle from "../
|
|
1
|
+
import Mark from "../marks/mark.js";
|
|
2
|
+
import { LocSize } from "../view/layout/flexLayout.js";
|
|
3
|
+
import Rectangle from "../view/layout/rectangle.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Describes the location of a sample facet. Left is the primary pos, right is for
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComplexDomain, NumericDomain } from "../spec/scale";
|
|
2
|
-
import ScaleResolution from "../view/scaleResolution";
|
|
1
|
+
import { ComplexDomain, NumericDomain } from "../spec/scale.js";
|
|
2
|
+
import ScaleResolution from "../view/scaleResolution.js";
|
|
3
3
|
|
|
4
4
|
export interface ScaleResolutionEvent {
|
|
5
5
|
type: "domain";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { TemplateResult } from "lit-html";
|
|
2
|
-
import View, { BroadcastMessage } from "../view/view";
|
|
3
|
-
import DataFlow from "../data/dataFlow";
|
|
4
|
-
import AccessorFactory from "../encoder/accessor";
|
|
5
|
-
import WebGLHelper from "../gl/webGLHelper";
|
|
6
|
-
import Animator from "../utils/animator";
|
|
7
|
-
import GenomeStore from "../genome/genomeStore";
|
|
8
|
-
import BmFontManager from "../fonts/bmFontManager";
|
|
9
|
-
import Mark from "../marks/mark";
|
|
10
|
-
import { Datum } from "../data/flowNode";
|
|
11
|
-
import { ViewSpec } from "../spec/view";
|
|
12
|
-
import ContainerView from "./containerView";
|
|
13
|
-
import { BroadcastEventType } from "../genomeSpy";
|
|
2
|
+
import View, { BroadcastMessage } from "../view/view.js";
|
|
3
|
+
import DataFlow from "../data/dataFlow.js";
|
|
4
|
+
import AccessorFactory from "../encoder/accessor.js";
|
|
5
|
+
import WebGLHelper from "../gl/webGLHelper.js";
|
|
6
|
+
import Animator from "../utils/animator.js";
|
|
7
|
+
import GenomeStore from "../genome/genomeStore.js";
|
|
8
|
+
import BmFontManager from "../fonts/bmFontManager.js";
|
|
9
|
+
import Mark from "../marks/mark.js";
|
|
10
|
+
import { Datum } from "../data/flowNode.js";
|
|
11
|
+
import { ImportSpec, ViewSpec } from "../spec/view.js";
|
|
12
|
+
import ContainerView from "./containerView.js";
|
|
13
|
+
import { BroadcastEventType } from "../genomeSpy.js";
|
|
14
14
|
|
|
15
15
|
export interface Hover {
|
|
16
16
|
mark: Mark;
|
|
@@ -76,10 +76,39 @@ export default interface ViewContext {
|
|
|
76
76
|
|
|
77
77
|
isViewSpec: (spec: any) => boolean;
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated Use createOrImportView instead.
|
|
81
|
+
* @param spec
|
|
82
|
+
* @param layoutParent
|
|
83
|
+
* @param dataParent
|
|
84
|
+
* @param defaultName
|
|
85
|
+
* @returns
|
|
86
|
+
*/
|
|
79
87
|
createView: (
|
|
80
88
|
spec: ViewSpec,
|
|
81
89
|
layoutParent?: ContainerView,
|
|
82
90
|
dataParent?: View,
|
|
83
91
|
defaultName?: string
|
|
84
92
|
) => View;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @param spec
|
|
97
|
+
* @param layoutParent
|
|
98
|
+
* @param dataParent
|
|
99
|
+
* @param defaultName
|
|
100
|
+
* @param validator
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
createOrImportView: (
|
|
104
|
+
spec: ViewSpec | ImportSpec,
|
|
105
|
+
layoutParent?: ContainerView,
|
|
106
|
+
dataParent?: View,
|
|
107
|
+
defaultName?: string,
|
|
108
|
+
/**
|
|
109
|
+
* Validates whether the imported spec is acceptable for the importer.
|
|
110
|
+
* The function should throw an Error if the view is not acceptable.
|
|
111
|
+
*/
|
|
112
|
+
validator?: (spec: ViewSpec) => void
|
|
113
|
+
) => Promise<View>;
|
|
85
114
|
}
|
|
@@ -34,8 +34,8 @@ export default class Animator {
|
|
|
34
34
|
* Initiates a transition with a `requestAnimationFrame` that is synced
|
|
35
35
|
* with this Animator instance.
|
|
36
36
|
*
|
|
37
|
-
* @param {import("./transition").TransitionOptions} options
|
|
37
|
+
* @param {import("./transition.js").TransitionOptions} options
|
|
38
38
|
*/
|
|
39
|
-
transition(options: import("./transition").TransitionOptions): Promise<any>;
|
|
39
|
+
transition(options: import("./transition.js").TransitionOptions): Promise<any>;
|
|
40
40
|
}
|
|
41
41
|
//# sourceMappingURL=animator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animator.d.ts","sourceRoot":"","sources":["../../../src/utils/animator.js"],"names":[],"mappings":"AAEA;IACI;;;OAGG;IACH,mCAFoB,MAAM,KAAE,IAAI,EAS/B;IANG,wBAHgB,MAAM,KAAE,IAAI,CAGS;IACrC,0BAA6B;IAC7B,eAAkB;IAElB,wCAAwC;IACxC,
|
|
1
|
+
{"version":3,"file":"animator.d.ts","sourceRoot":"","sources":["../../../src/utils/animator.js"],"names":[],"mappings":"AAEA;IACI;;;OAGG;IACH,mCAFoB,MAAM,KAAE,IAAI,EAS/B;IANG,wBAHgB,MAAM,KAAE,IAAI,CAGS;IACrC,0BAA6B;IAC7B,eAAkB;IAElB,wCAAwC;IACxC,aADW,QAAU,MAAM,KAAE,IAAI,CAAC,EAAE,CACf;IAGzB;;;;;;;;;OASG;IACH,mCAFoB,MAAM,KAAE,IAAI,QAM/B;IAED;;OAEG;IACH,kCAFoB,MAAM,KAAE,IAAI,QAO/B;IAED;;;;OAIG;IACH,sBAoBC;IAED;;;;;OAKG;IACH,oBAFW,OAAO,iBAAiB,EAAE,iBAAiB,gBAQrD;CACJ"}
|
|
@@ -71,7 +71,7 @@ export default class Animator {
|
|
|
71
71
|
* Initiates a transition with a `requestAnimationFrame` that is synced
|
|
72
72
|
* with this Animator instance.
|
|
73
73
|
*
|
|
74
|
-
* @param {import("./transition").TransitionOptions} options
|
|
74
|
+
* @param {import("./transition.js").TransitionOptions} options
|
|
75
75
|
*/
|
|
76
76
|
transition(options) {
|
|
77
77
|
return doTransition({
|
|
@@ -8,11 +8,11 @@ export function makeEventTemplate<T>(event: T): Partial<Record<keyof T, any>>;
|
|
|
8
8
|
*/
|
|
9
9
|
export default class Inertia {
|
|
10
10
|
/**
|
|
11
|
-
* @param {import("./animator").default} animator
|
|
11
|
+
* @param {import("./animator.js").default} animator
|
|
12
12
|
* @param {boolean} [disabled] Just call the callback directly
|
|
13
13
|
*/
|
|
14
|
-
constructor(animator: import("./animator").default, disabled?: boolean);
|
|
15
|
-
animator: import("./animator").default;
|
|
14
|
+
constructor(animator: import("./animator.js").default, disabled?: boolean);
|
|
15
|
+
animator: import("./animator.js").default;
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
damping: number;
|
|
18
18
|
acceleration: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inertia.d.ts","sourceRoot":"","sources":["../../../src/utils/inertia.js"],"names":[],"mappings":"AAsGA;;;GAGG;AACH,8EAiBC;AAzHD;;GAEG;AACH;IACI;;;OAGG;IACH,sBAHW,OAAO,
|
|
1
|
+
{"version":3,"file":"inertia.d.ts","sourceRoot":"","sources":["../../../src/utils/inertia.js"],"names":[],"mappings":"AAsGA;;;GAGG;AACH,8EAiBC;AAzHD;;GAEG;AACH;IACI;;;OAGG;IACH,sBAHW,OAAO,eAAe,EAAE,OAAO,aAC/B,OAAO,EAmBjB;IAhBG,0CAAwB;IACxB,kBAA0B;IAC1B,gBAAoB;IACpB,qBAAuB;IACvB,8DAA8D;IAC9D,8BAAgC;IAChC,mBAAqB;IACrB,cAAiB;IAEjB,UAUW,MAAM,CAVA;IACjB,kBAAkB;IAClB,oCAAoC;IACpC,iBADoB,MAAM,KAAE,IAAI,CACZ;IAEpB,yBAAkD;IAItD,cAMC;IAED,eAKC;IAED;;;;OAIG;IACH,mBAHW,MAAM,mBACG,MAAM,KAAE,IAAI,QAyB/B;IAED;;;OAGG;IACH,oBAFW,MAAM,QAuBhB;CACJ"}
|
|
@@ -5,7 +5,7 @@ import { lerp } from "vega-util";
|
|
|
5
5
|
*/
|
|
6
6
|
export default class Inertia {
|
|
7
7
|
/**
|
|
8
|
-
* @param {import("./animator").default} animator
|
|
8
|
+
* @param {import("./animator.js").default} animator
|
|
9
9
|
* @param {boolean} [disabled] Just call the callback directly
|
|
10
10
|
*/
|
|
11
11
|
constructor(animator, disabled) {
|
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
export default class InteractionEvent {
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
|
-
* @param {import("
|
|
9
|
+
* @param {import("../view/layout/point.js").default} point Event coordinates
|
|
10
10
|
* inside the visualization canvas.
|
|
11
11
|
* @param {UIEvent} uiEvent The event to be wrapped
|
|
12
12
|
*/
|
|
13
|
-
constructor(point: import("
|
|
14
|
-
point: import("
|
|
13
|
+
constructor(point: import("../view/layout/point.js").default, uiEvent: UIEvent);
|
|
14
|
+
point: import("../view/layout/point.js").default;
|
|
15
15
|
uiEvent: UIEvent;
|
|
16
16
|
stopped: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* The target is known only in the bubbling phase
|
|
19
19
|
*
|
|
20
|
-
* @type {import("../view/view").default}
|
|
20
|
+
* @type {import("../view/view.js").default}
|
|
21
21
|
*/
|
|
22
|
-
target: import("../view/view").default;
|
|
22
|
+
target: import("../view/view.js").default;
|
|
23
23
|
stopPropagation(): void;
|
|
24
24
|
get type(): string;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactionEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/interactionEvent.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;IACI;;;;;OAKG;IACH,mBAJW,OAAO,
|
|
1
|
+
{"version":3,"file":"interactionEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/interactionEvent.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;IACI;;;;;OAKG;IACH,mBAJW,OAAO,yBAAyB,EAAE,OAAO,WAEzC,OAAO,EAajB;IAVG,iDAAkB;IAClB,iBAAsB;IACtB,iBAAoB;IAEpB;;;;OAIG;IACH,QAFU,OAAO,iBAAiB,EAAE,OAAO,CAEpB;IAG3B,wBAEC;IAED,mBAEC;CACJ"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
export default class InteractionEvent {
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
|
-
* @param {import("
|
|
9
|
+
* @param {import("../view/layout/point.js").default} point Event coordinates
|
|
10
10
|
* inside the visualization canvas.
|
|
11
11
|
* @param {UIEvent} uiEvent The event to be wrapped
|
|
12
12
|
*/
|
|
@@ -18,7 +18,7 @@ export default class InteractionEvent {
|
|
|
18
18
|
/**
|
|
19
19
|
* The target is known only in the bubbling phase
|
|
20
20
|
*
|
|
21
|
-
* @type {import("../view/view").default}
|
|
21
|
+
* @type {import("../view/view.js").default}
|
|
22
22
|
*/
|
|
23
23
|
this.target = undefined;
|
|
24
24
|
}
|
package/dist/src/utils/trees.js
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export function nodesToTreesWithAccessor(nodes, parentAccessor) {
|
|
12
12
|
/**
|
|
13
|
+
* @template T
|
|
13
14
|
* @typedef {object} NodeWrapper
|
|
14
15
|
* @prop {T} ref
|
|
15
16
|
* @prop {NodeWrapper<T>[]} children
|
|
16
|
-
* @template T
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
/** @type {Map<T, NodeWrapper<T>>} */
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import("../spec/channel").PrimaryPositionalChannel} PositionalChannel
|
|
3
|
-
* @typedef {import("../spec/view").GeometricDimension} GeometricDimension
|
|
2
|
+
* @typedef {import("../spec/channel.js").PrimaryPositionalChannel} PositionalChannel
|
|
3
|
+
* @typedef {import("../spec/view.js").GeometricDimension} GeometricDimension
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* An internal view that renders an axis grid.
|
|
7
7
|
*
|
|
8
|
-
* @typedef {import("./view").default} View
|
|
9
|
-
* @typedef {import("../spec/axis").Axis} Axis
|
|
10
|
-
* @typedef {import("../spec/axis").GenomeAxis} GenomeAxis
|
|
8
|
+
* @typedef {import("./view.js").default} View
|
|
9
|
+
* @typedef {import("../spec/axis.js").Axis} Axis
|
|
10
|
+
* @typedef {import("../spec/axis.js").GenomeAxis} GenomeAxis
|
|
11
11
|
*/
|
|
12
12
|
export default class AxisGridView extends LayerView {
|
|
13
13
|
/**
|
|
14
14
|
* @param {Axis} axisProps
|
|
15
|
-
* @param {import("../types/viewContext").default} context
|
|
15
|
+
* @param {import("../types/viewContext.js").default} context
|
|
16
16
|
* @param {string} type Data type (quantitative, ..., locus)
|
|
17
|
-
* @param {import("./containerView").default} layoutParent
|
|
18
|
-
* @param {import("./view").default} dataParent
|
|
17
|
+
* @param {import("./containerView.js").default} layoutParent
|
|
18
|
+
* @param {import("./view.js").default} dataParent
|
|
19
|
+
* @param {import("./view.js").ViewOptions} [options]
|
|
19
20
|
*/
|
|
20
|
-
constructor(axisProps: Axis, type: string, context: import("../types/viewContext").default, layoutParent: import("./containerView").default, dataParent: import("./view").default);
|
|
21
|
-
axisProps: import("../spec/axis").GenomeAxis | import("../spec/axis").Axis;
|
|
22
|
-
getOrient(): import("../spec/axis").AxisOrient;
|
|
21
|
+
constructor(axisProps: Axis, type: string, context: import("../types/viewContext.js").default, layoutParent: import("./containerView.js").default, dataParent: import("./view.js").default, options?: import("./view.js").ViewOptions);
|
|
22
|
+
axisProps: import("../spec/axis.js").GenomeAxis | import("../spec/axis.js").Axis;
|
|
23
|
+
getOrient(): import("../spec/axis.js").AxisOrient;
|
|
23
24
|
}
|
|
24
|
-
export type PositionalChannel = import("../spec/channel").PrimaryPositionalChannel;
|
|
25
|
-
export type GeometricDimension = import("../spec/view").GeometricDimension;
|
|
25
|
+
export type PositionalChannel = import("../spec/channel.js").PrimaryPositionalChannel;
|
|
26
|
+
export type GeometricDimension = import("../spec/view.js").GeometricDimension;
|
|
26
27
|
/**
|
|
27
28
|
* An internal view that renders an axis grid.
|
|
28
29
|
*/
|
|
29
|
-
export type View = import("./view").default;
|
|
30
|
+
export type View = import("./view.js").default;
|
|
30
31
|
/**
|
|
31
32
|
* An internal view that renders an axis grid.
|
|
32
33
|
*/
|
|
33
|
-
export type Axis = import("../spec/axis").Axis;
|
|
34
|
+
export type Axis = import("../spec/axis.js").Axis;
|
|
34
35
|
/**
|
|
35
36
|
* An internal view that renders an axis grid.
|
|
36
37
|
*/
|
|
37
|
-
export type GenomeAxis = import("../spec/axis").GenomeAxis;
|
|
38
|
+
export type GenomeAxis = import("../spec/axis.js").GenomeAxis;
|
|
38
39
|
import LayerView from "./layerView.js";
|
|
39
40
|
//# sourceMappingURL=axisGridView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axisGridView.d.ts","sourceRoot":"","sources":["../../../src/view/axisGridView.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH;;;;;;GAMG;AACH;IACI
|
|
1
|
+
{"version":3,"file":"axisGridView.d.ts","sourceRoot":"","sources":["../../../src/view/axisGridView.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH;;;;;;GAMG;AACH;IACI;;;;;;;OAOG;IACH,uBAPW,IAAI,QAEJ,MAAM,WADN,OAAO,yBAAyB,EAAE,OAAO,gBAEzC,OAAO,oBAAoB,EAAE,OAAO,cACpC,OAAO,WAAW,EAAE,OAAO,YAC3B,OAAO,WAAW,EAAE,WAAW,EA4BzC;IADG,iFAA8B;IAGlC,kDAEC;CAKJ;gCAvDY,OAAO,oBAAoB,EAAE,wBAAwB;iCACrD,OAAO,iBAAiB,EAAE,kBAAkB;;;;mBAM5C,OAAO,WAAW,EAAE,OAAO;;;;mBAC3B,OAAO,iBAAiB,EAAE,IAAI;;;;yBAC9B,OAAO,iBAAiB,EAAE,UAAU;sBAb3B,gBAAgB"}
|
|
@@ -2,26 +2,27 @@ import LayerView from "./layerView.js";
|
|
|
2
2
|
import { orient2channel } from "./axisView.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @typedef {import("../spec/channel").PrimaryPositionalChannel} PositionalChannel
|
|
6
|
-
* @typedef {import("../spec/view").GeometricDimension} GeometricDimension
|
|
5
|
+
* @typedef {import("../spec/channel.js").PrimaryPositionalChannel} PositionalChannel
|
|
6
|
+
* @typedef {import("../spec/view.js").GeometricDimension} GeometricDimension
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* An internal view that renders an axis grid.
|
|
11
11
|
*
|
|
12
|
-
* @typedef {import("./view").default} View
|
|
13
|
-
* @typedef {import("../spec/axis").Axis} Axis
|
|
14
|
-
* @typedef {import("../spec/axis").GenomeAxis} GenomeAxis
|
|
12
|
+
* @typedef {import("./view.js").default} View
|
|
13
|
+
* @typedef {import("../spec/axis.js").Axis} Axis
|
|
14
|
+
* @typedef {import("../spec/axis.js").GenomeAxis} GenomeAxis
|
|
15
15
|
*/
|
|
16
16
|
export default class AxisGridView extends LayerView {
|
|
17
17
|
/**
|
|
18
18
|
* @param {Axis} axisProps
|
|
19
|
-
* @param {import("../types/viewContext").default} context
|
|
19
|
+
* @param {import("../types/viewContext.js").default} context
|
|
20
20
|
* @param {string} type Data type (quantitative, ..., locus)
|
|
21
|
-
* @param {import("./containerView").default} layoutParent
|
|
22
|
-
* @param {import("./view").default} dataParent
|
|
21
|
+
* @param {import("./containerView.js").default} layoutParent
|
|
22
|
+
* @param {import("./view.js").default} dataParent
|
|
23
|
+
* @param {import("./view.js").ViewOptions} [options]
|
|
23
24
|
*/
|
|
24
|
-
constructor(axisProps, type, context, layoutParent, dataParent) {
|
|
25
|
+
constructor(axisProps, type, context, layoutParent, dataParent, options) {
|
|
25
26
|
// Now the presence of genomeAxis is based on field type, not scale type.
|
|
26
27
|
// TODO: Use scale instead. However, it would make the initialization much more
|
|
27
28
|
// complex because scales are not available before scale resolution.
|
|
@@ -38,12 +39,15 @@ export default class AxisGridView extends LayerView {
|
|
|
38
39
|
context,
|
|
39
40
|
layoutParent,
|
|
40
41
|
dataParent,
|
|
41
|
-
`axisGrid_${axisProps.orient}
|
|
42
|
+
`axisGrid_${axisProps.orient}`,
|
|
43
|
+
{
|
|
44
|
+
blockEncodingInheritance: true,
|
|
45
|
+
contributesToScaleDomain: false,
|
|
46
|
+
...options,
|
|
47
|
+
}
|
|
42
48
|
);
|
|
43
49
|
|
|
44
50
|
this.axisProps = fullAxisProps;
|
|
45
|
-
this.blockEncodingInheritance = true;
|
|
46
|
-
this.contributesToScaleDomain = false;
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
getOrient() {
|
|
@@ -76,7 +80,7 @@ const defaultAxisProps = {
|
|
|
76
80
|
};
|
|
77
81
|
|
|
78
82
|
/**
|
|
79
|
-
* @type {import("../spec/axis").GenomeAxis}
|
|
83
|
+
* @type {import("../spec/axis.js").GenomeAxis}
|
|
80
84
|
*/
|
|
81
85
|
const defaultGenomeAxisProps = {
|
|
82
86
|
...defaultAxisProps,
|
|
@@ -92,7 +96,7 @@ const defaultGenomeAxisProps = {
|
|
|
92
96
|
/**
|
|
93
97
|
* @param {Axis} axisProps
|
|
94
98
|
* @param {string} type
|
|
95
|
-
* @returns {import("../spec/view").UnitSpec}
|
|
99
|
+
* @returns {import("../spec/view.js").UnitSpec}
|
|
96
100
|
*/
|
|
97
101
|
function createRegularAxisGrid(axisProps, type) {
|
|
98
102
|
const ap = axisProps;
|
|
@@ -123,9 +127,9 @@ function createRegularAxisGrid(axisProps, type) {
|
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
/**
|
|
126
|
-
* @param {import("../spec/axis").GenomeAxis} axisProps
|
|
130
|
+
* @param {import("../spec/axis.js").GenomeAxis} axisProps
|
|
127
131
|
* @param {string} type
|
|
128
|
-
* @returns {import("../spec/view").UnitSpec}
|
|
132
|
+
* @returns {import("../spec/view.js").UnitSpec}
|
|
129
133
|
*/
|
|
130
134
|
function createChromAxisGrid(axisProps, type) {
|
|
131
135
|
const ap = axisProps;
|
|
@@ -155,9 +159,9 @@ function createChromAxisGrid(axisProps, type) {
|
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
/**
|
|
158
|
-
* @param {import("../spec/axis").GenomeAxis} axisProps
|
|
162
|
+
* @param {import("../spec/axis.js").GenomeAxis} axisProps
|
|
159
163
|
* @param {string} type
|
|
160
|
-
* @returns {import("../spec/view").UnitSpec}
|
|
164
|
+
* @returns {import("../spec/view.js").UnitSpec}
|
|
161
165
|
*/
|
|
162
166
|
function createChromAxisFill(axisProps, type) {
|
|
163
167
|
const ap = axisProps;
|
|
@@ -209,13 +213,13 @@ function createChromAxisFill(axisProps, type) {
|
|
|
209
213
|
/**
|
|
210
214
|
* @param {GenomeAxis} axisProps
|
|
211
215
|
* @param {string} type
|
|
212
|
-
* @returns {import("../spec/view").LayerSpec}
|
|
216
|
+
* @returns {import("../spec/view.js").LayerSpec}
|
|
213
217
|
*/
|
|
214
218
|
function createAxisGrid(axisProps, type) {
|
|
215
219
|
const ap = { ...axisProps };
|
|
216
220
|
|
|
217
221
|
/**
|
|
218
|
-
* @type {(import("../spec/view").UnitSpec | import("../spec/view").LayerSpec)[]}
|
|
222
|
+
* @type {(import("../spec/view.js").UnitSpec | import("../spec/view.js").LayerSpec)[]}
|
|
219
223
|
*/
|
|
220
224
|
const layers = [];
|
|
221
225
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export default class AxisResolution {
|
|
2
2
|
/**
|
|
3
|
-
* @typedef { import("./unitView").default} UnitView
|
|
3
|
+
* @typedef { import("./unitView.js").default} UnitView
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @param {import("../spec/channel").PrimaryPositionalChannel} channel
|
|
6
|
+
* @param {import("../spec/channel.js").PrimaryPositionalChannel} channel
|
|
7
7
|
*/
|
|
8
|
-
constructor(channel: import("../spec/channel").PrimaryPositionalChannel);
|
|
9
|
-
channel: import("../spec/channel").PrimaryPositionalChannel;
|
|
10
|
-
/** @type {import("./scaleResolution").ResolutionMember<import("../spec/channel").PositionalChannel>[]} The involved views */
|
|
11
|
-
members: import("./scaleResolution").ResolutionMember<import("../spec/channel").PositionalChannel>[];
|
|
12
|
-
get scaleResolution(): import("./scaleResolution").default;
|
|
8
|
+
constructor(channel: import("../spec/channel.js").PrimaryPositionalChannel);
|
|
9
|
+
channel: import("../spec/channel.js").PrimaryPositionalChannel;
|
|
10
|
+
/** @type {import("./scaleResolution.js").ResolutionMember<import("../spec/channel.js").PositionalChannel>[]} The involved views */
|
|
11
|
+
members: import("./scaleResolution.js").ResolutionMember<import("../spec/channel.js").PositionalChannel>[];
|
|
12
|
+
get scaleResolution(): import("./scaleResolution.js").default;
|
|
13
13
|
/**
|
|
14
14
|
* N.B. This is expected to be called in depth-first order, AFTER the
|
|
15
15
|
* scales have been resolved.
|
|
16
16
|
*
|
|
17
17
|
* @param {UnitView} view
|
|
18
|
-
* @param {import("../spec/channel").PositionalChannel} channel TODO: Do something for this
|
|
18
|
+
* @param {import("../spec/channel.js").PositionalChannel} channel TODO: Do something for this
|
|
19
19
|
*/
|
|
20
|
-
pushUnitView(view: import("./unitView").default, channel: import("../spec/channel").PositionalChannel): void;
|
|
21
|
-
getAxisProps(): import("../spec/axis").GenomeAxis;
|
|
20
|
+
pushUnitView(view: import("./unitView.js").default, channel: import("../spec/channel.js").PositionalChannel): void;
|
|
21
|
+
getAxisProps(): import("../spec/axis.js").GenomeAxis;
|
|
22
22
|
getTitle(): string;
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=axisResolution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axisResolution.d.ts","sourceRoot":"","sources":["../../../src/view/axisResolution.js"],"names":[],"mappings":"AAeA;IACI;;OAEG;IAEH;;OAEG;IACH,qBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"axisResolution.d.ts","sourceRoot":"","sources":["../../../src/view/axisResolution.js"],"names":[],"mappings":"AAeA;IACI;;OAEG;IAEH;;OAEG;IACH,qBAFW,OAAO,oBAAoB,EAAE,wBAAwB,EAM/D;IAHG,+DAAsB;IACtB,mIAAmI;IACnI,SADW,OAAO,sBAAsB,EAAE,gBAAgB,CAAC,OAAO,oBAAoB,EAAE,iBAAiB,CAAC,EAAE,CAC3F;IAGrB,8DAEC;IAED;;;;;;OAMG;IACH,6DAFW,OAAO,oBAAoB,EAAE,iBAAiB,QAiBxD;IAED,qDAuBC;IAED,mBAyDC;CACJ"}
|
|
@@ -15,15 +15,15 @@ import { getCachedOrCall } from "../utils/propertyCacher.js";
|
|
|
15
15
|
|
|
16
16
|
export default class AxisResolution {
|
|
17
17
|
/**
|
|
18
|
-
* @typedef { import("./unitView").default} UnitView
|
|
18
|
+
* @typedef { import("./unitView.js").default} UnitView
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* @param {import("../spec/channel").PrimaryPositionalChannel} channel
|
|
22
|
+
* @param {import("../spec/channel.js").PrimaryPositionalChannel} channel
|
|
23
23
|
*/
|
|
24
24
|
constructor(channel) {
|
|
25
25
|
this.channel = channel;
|
|
26
|
-
/** @type {import("./scaleResolution").ResolutionMember<import("../spec/channel").PositionalChannel>[]} The involved views */
|
|
26
|
+
/** @type {import("./scaleResolution.js").ResolutionMember<import("../spec/channel.js").PositionalChannel>[]} The involved views */
|
|
27
27
|
this.members = [];
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -36,7 +36,7 @@ export default class AxisResolution {
|
|
|
36
36
|
* scales have been resolved.
|
|
37
37
|
*
|
|
38
38
|
* @param {UnitView} view
|
|
39
|
-
* @param {import("../spec/channel").PositionalChannel} channel TODO: Do something for this
|
|
39
|
+
* @param {import("../spec/channel.js").PositionalChannel} channel TODO: Do something for this
|
|
40
40
|
*/
|
|
41
41
|
pushUnitView(view, channel) {
|
|
42
42
|
const newScaleResolution = view.getScaleResolution(this.channel);
|
|
@@ -69,7 +69,7 @@ export default class AxisResolution {
|
|
|
69
69
|
// No axis whatsoever is wanted
|
|
70
70
|
return null;
|
|
71
71
|
} else {
|
|
72
|
-
return /** @type { import("../spec/axis").GenomeAxis} */ (
|
|
72
|
+
return /** @type { import("../spec/axis.js").GenomeAxis} */ (
|
|
73
73
|
mergeObjects(
|
|
74
74
|
propArray.filter((props) => props !== undefined),
|
|
75
75
|
"axis",
|
|
@@ -81,7 +81,7 @@ export default class AxisResolution {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
getTitle() {
|
|
84
|
-
/** @param {import("./scaleResolution").ResolutionMember} member} */
|
|
84
|
+
/** @param {import("./scaleResolution.js").ResolutionMember} member} */
|
|
85
85
|
const computeTitle = (member) => {
|
|
86
86
|
const channelDef = getChannelDefWithScale(
|
|
87
87
|
member.view,
|
|
@@ -3,7 +3,7 @@ import { createAndInitialize } from "./testUtils.js";
|
|
|
3
3
|
import UnitView from "./unitView.js";
|
|
4
4
|
import View from "./view.js";
|
|
5
5
|
|
|
6
|
-
/** @type {import("../spec/view").LayerSpec} */
|
|
6
|
+
/** @type {import("../spec/view.js").LayerSpec} */
|
|
7
7
|
const spec = {
|
|
8
8
|
data: { values: [] },
|
|
9
9
|
layer: [
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param {AxisOrient} slot
|
|
3
3
|
*/
|
|
4
|
-
export function orient2channel(slot: import("../spec/axis").AxisOrient): import("../spec/channel").PrimaryPositionalChannel;
|
|
4
|
+
export function orient2channel(slot: import("../spec/axis.js").AxisOrient): import("../spec/channel.js").PrimaryPositionalChannel;
|
|
5
5
|
/**
|
|
6
6
|
* @param {GenomeAxis} axisProps
|
|
7
7
|
* @param {string} type
|
|
8
8
|
* @returns {LayerSpec}
|
|
9
9
|
*/
|
|
10
|
-
export function createGenomeAxis(axisProps: import("../spec/axis").GenomeAxis, type: string): import("../spec/view").LayerSpec;
|
|
10
|
+
export function createGenomeAxis(axisProps: import("../spec/axis.js").GenomeAxis, type: string): import("../spec/view.js").LayerSpec;
|
|
11
11
|
/**
|
|
12
|
-
* @type {Record<import("../spec/channel").PrimaryPositionalChannel, AxisOrient[]>}
|
|
12
|
+
* @type {Record<import("../spec/channel.js").PrimaryPositionalChannel, AxisOrient[]>}
|
|
13
13
|
*/
|
|
14
|
-
export const CHANNEL_ORIENTS: Record<import("../spec/channel").PrimaryPositionalChannel, import("../spec/axis").AxisOrient[]>;
|
|
14
|
+
export const CHANNEL_ORIENTS: Record<import("../spec/channel.js").PrimaryPositionalChannel, import("../spec/axis.js").AxisOrient[]>;
|
|
15
15
|
/**
|
|
16
|
-
* @type {Record<AxisOrient, import("../spec/channel").PrimaryPositionalChannel>}
|
|
16
|
+
* @type {Record<AxisOrient, import("../spec/channel.js").PrimaryPositionalChannel>}
|
|
17
17
|
*/
|
|
18
|
-
export const ORIENT_CHANNELS: Record<import("../spec/axis").AxisOrient, import("../spec/channel").PrimaryPositionalChannel>;
|
|
18
|
+
export const ORIENT_CHANNELS: Record<import("../spec/axis.js").AxisOrient, import("../spec/channel.js").PrimaryPositionalChannel>;
|
|
19
19
|
/**
|
|
20
20
|
* An internal view that renders an axis.
|
|
21
21
|
*
|
|
@@ -25,24 +25,25 @@ export const ORIENT_CHANNELS: Record<import("../spec/axis").AxisOrient, import("
|
|
|
25
25
|
export default class AxisView extends LayerView {
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @typedef {import("../spec/view").LayerSpec} LayerSpec
|
|
29
|
-
* @typedef {import("./view").default} View
|
|
30
|
-
* @typedef {import("../spec/axis").Axis} Axis
|
|
31
|
-
* @typedef {import("../spec/axis").GenomeAxis} GenomeAxis
|
|
32
|
-
* @typedef {import("../spec/axis").AxisOrient} AxisOrient
|
|
33
|
-
* @typedef {import("
|
|
28
|
+
* @typedef {import("../spec/view.js").LayerSpec} LayerSpec
|
|
29
|
+
* @typedef {import("./view.js").default} View
|
|
30
|
+
* @typedef {import("../spec/axis.js").Axis} Axis
|
|
31
|
+
* @typedef {import("../spec/axis.js").GenomeAxis} GenomeAxis
|
|
32
|
+
* @typedef {import("../spec/axis.js").AxisOrient} AxisOrient
|
|
33
|
+
* @typedef {import("./layout/flexLayout.js").SizeDef} SizeDef
|
|
34
34
|
*
|
|
35
35
|
* @typedef {Axis & { extent: number }} AugmentedAxis
|
|
36
36
|
*/
|
|
37
37
|
/**
|
|
38
38
|
* @param {Axis} axisProps
|
|
39
|
-
* @param {import("../types/viewContext").default} context
|
|
39
|
+
* @param {import("../types/viewContext.js").default} context
|
|
40
40
|
* @param {string} type Data type (quantitative, ..., locus)
|
|
41
|
-
* @param {import("./containerView").default} layoutParent
|
|
42
|
-
* @param {import("./view").default} dataParent
|
|
41
|
+
* @param {import("./containerView.js").default} layoutParent
|
|
42
|
+
* @param {import("./view.js").default} dataParent
|
|
43
|
+
* @param {import("./view.js").ViewOptions} [options]
|
|
43
44
|
*/
|
|
44
|
-
constructor(axisProps: import("../spec/axis").Axis, type: string, context: import("../types/viewContext").default, layoutParent: import("./containerView").default, dataParent: import("./view").default);
|
|
45
|
-
axisProps: import("../spec/axis").GenomeAxis | import("../spec/axis").Axis;
|
|
45
|
+
constructor(axisProps: import("../spec/axis.js").Axis, type: string, context: import("../types/viewContext.js").default, layoutParent: import("./containerView.js").default, dataParent: import("./view.js").default, options?: import("./view.js").ViewOptions);
|
|
46
|
+
axisProps: import("../spec/axis.js").GenomeAxis | import("../spec/axis.js").Axis;
|
|
46
47
|
getPerpendicularSize(): number;
|
|
47
48
|
}
|
|
48
49
|
import LayerView from "./layerView.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axisView.d.ts","sourceRoot":"","sources":["../../../src/view/axisView.js"],"names":[],"mappings":"AAoCA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"axisView.d.ts","sourceRoot":"","sources":["../../../src/view/axisView.js"],"names":[],"mappings":"AAoCA;;GAEG;AACH,kIAEC;AAkYD;;;;GAIG;AACH,wFAHW,MAAM,uCA2MhB;AArmBD;;GAEG;AACH,oIAGE;AAEF;;GAEG;AACH,kIAIE;AASF;;;;;GAKG;AACH;IACI;;;;;;;;;;OAUG;IAEH;;;;;;;OAOG;IACH,6DALW,MAAM,WADN,OAAO,yBAAyB,EAAE,OAAO,gBAEzC,OAAO,oBAAoB,EAAE,OAAO,cACpC,OAAO,WAAW,EAAE,OAAO,YAC3B,OAAO,WAAW,EAAE,WAAW,EAiCzC;IADG,iFAA8B;IAiBlC,+BAEC;CAKJ;sBA5HqB,gBAAgB"}
|