@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unitView.d.ts","sourceRoot":"","sources":["../../../src/view/unitView.js"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH;QAHkB,MAAM,GAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"unitView.d.ts","sourceRoot":"","sources":["../../../src/view/unitView.js"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH;QAHkB,MAAM,GAAE,cAAc,kBAAkB,EAAE,OAAO;EASjE;AAEF;IACI;;;;;;;OAOG;IACH;;;;;;;;OAQG;IACH,kBAPW,OAAO,iBAAiB,EAAE,QAAQ,WAClC,OAAO,yBAAyB,EAAE,OAAO,gBACzC,OAAO,oBAAoB,EAAE,OAAO,cACpC,OAAO,WAAW,EAAE,OAAO,QAC3B,MAAM,YACN,OAAO,WAAW,EAAE,WAAW,EAyBzC;IApBG,yCAAgB;IAIZ,iDAAiD;IACjD,MADW,OAAO,kBAAkB,EAAE,OAAO,CACnB;IAO9B;;;;OAIG;IACH,QAFU,OAAO,uBAAuB,EAAE,OAAO,CAE1B;IAK3B;;;;OAIG;IACH,gBAJW,OAAO,4CAA4C,EAAE,OAAO,UAC5D,OAAO,uBAAuB,EAAE,OAAO,YACvC,OAAO,uBAAuB,EAAE,gBAAgB,QAY1D;IAED,kDAIC;IAED;;;;;OAKG;IACH,iEAyEC;IAED;;;OAGG;IACH,mGASC;IAkBD;;OAEG;IACH,uDAEC;IAED;;OAEG;IACH,opBAcC;IAED;;;;;OAKG;IACH,6BAHW,OAAO,oBAAoB,EAAE,gBAAgB,iDAkBvD;IAED;;;;;;;;;;;;OAYG;IACH,gHA2CC;IAED,uBAQC;IAgBD;;;;OAIG;IACH,8BAJW,MAAM,+DAEJ,OAAO,iBAAiB,EAAE,kBAAkB,CAKxD;CACJ;0BA1VyB,oBAAoB"}
|
|
@@ -21,7 +21,7 @@ import AxisResolution from "./axisResolution.js";
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {Object.<string, typeof import("../marks/mark").default>}
|
|
24
|
+
* @type {Object.<string, typeof import("../marks/mark.js").default>}
|
|
25
25
|
* TODO: Find a proper place, make extendible
|
|
26
26
|
*/
|
|
27
27
|
export const markTypes = {
|
|
@@ -34,38 +34,41 @@ export const markTypes = {
|
|
|
34
34
|
|
|
35
35
|
export default class UnitView extends ContainerView {
|
|
36
36
|
/**
|
|
37
|
-
* @typedef {import("../spec/channel").Channel} Channel
|
|
38
|
-
* @typedef {import("./view").default} View
|
|
39
|
-
* @typedef {import("./layerView").default} LayerView
|
|
40
|
-
* @typedef {import("../utils/domainArray").DomainArray} DomainArray
|
|
41
|
-
* @typedef {import("../spec/view").ResolutionTarget} ResolutionTarget
|
|
37
|
+
* @typedef {import("../spec/channel.js").Channel} Channel
|
|
38
|
+
* @typedef {import("./view.js").default} View
|
|
39
|
+
* @typedef {import("./layerView.js").default} LayerView
|
|
40
|
+
* @typedef {import("../utils/domainArray.js").DomainArray} DomainArray
|
|
41
|
+
* @typedef {import("../spec/view.js").ResolutionTarget} ResolutionTarget
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @param {import("../spec/view").UnitSpec} spec
|
|
47
|
-
* @param {import("../types/viewContext").default} context
|
|
48
|
-
* @param {import("./containerView").default} layoutParent
|
|
49
|
-
* @param {import("./view").default} dataParent
|
|
46
|
+
* @param {import("../spec/view.js").UnitSpec} spec
|
|
47
|
+
* @param {import("../types/viewContext.js").default} context
|
|
48
|
+
* @param {import("./containerView.js").default} layoutParent
|
|
49
|
+
* @param {import("./view.js").default} dataParent
|
|
50
50
|
* @param {string} name
|
|
51
|
+
* @param {import("./view.js").ViewOptions} [options]
|
|
51
52
|
*/
|
|
52
|
-
constructor(spec, context, layoutParent, dataParent, name) {
|
|
53
|
-
super(spec, context, layoutParent, dataParent, name);
|
|
53
|
+
constructor(spec, context, layoutParent, dataParent, name, options) {
|
|
54
|
+
super(spec, context, layoutParent, dataParent, name, options);
|
|
54
55
|
|
|
55
56
|
this.spec = spec; // Set here again to keep types happy
|
|
56
57
|
|
|
57
58
|
const Mark = markTypes[this.getMarkType()];
|
|
58
59
|
if (Mark) {
|
|
59
|
-
/** @type {import("../marks/mark").default} */
|
|
60
|
+
/** @type {import("../marks/mark.js").default} */
|
|
60
61
|
this.mark = new Mark(this);
|
|
61
62
|
} else {
|
|
62
63
|
throw new Error(`No such mark: ${this.getMarkType()}`);
|
|
63
64
|
}
|
|
64
65
|
|
|
66
|
+
this.resolve();
|
|
67
|
+
|
|
65
68
|
/**
|
|
66
69
|
* Not nice! Inconsistent when faceting!
|
|
67
70
|
* TODO: Something. Maybe store only width/height
|
|
68
|
-
* @type {import("
|
|
71
|
+
* @type {import("./layout/rectangle.js").default}
|
|
69
72
|
*/
|
|
70
73
|
this.coords = undefined;
|
|
71
74
|
|
|
@@ -73,9 +76,9 @@ export default class UnitView extends ContainerView {
|
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
/**
|
|
76
|
-
* @param {import("./renderingContext/viewRenderingContext").default} context
|
|
77
|
-
* @param {import("
|
|
78
|
-
* @param {import("../types/rendering").RenderingOptions} [options]
|
|
79
|
+
* @param {import("./renderingContext/viewRenderingContext.js").default} context
|
|
80
|
+
* @param {import("./layout/rectangle.js").default} coords
|
|
81
|
+
* @param {import("../types/rendering.js").RenderingOptions} [options]
|
|
79
82
|
*/
|
|
80
83
|
render(context, coords, options = {}) {
|
|
81
84
|
if (!this.isConfiguredVisible()) {
|
|
@@ -99,9 +102,14 @@ export default class UnitView extends ContainerView {
|
|
|
99
102
|
* Pulls scales and axes up in the view hierarcy according to the resolution rules, using dataParents.
|
|
100
103
|
* TODO: legends
|
|
101
104
|
*
|
|
102
|
-
* @param {ResolutionTarget} type
|
|
105
|
+
* @param {ResolutionTarget} [type] If not specified, both scales and axes are resolved.
|
|
103
106
|
*/
|
|
104
107
|
resolve(type) {
|
|
108
|
+
if (!type) {
|
|
109
|
+
this.resolve("scale");
|
|
110
|
+
this.resolve("axis");
|
|
111
|
+
}
|
|
112
|
+
|
|
105
113
|
// TODO: Complain about nonsensical configuration, e.g. shared parent has independent children.
|
|
106
114
|
|
|
107
115
|
const encoding = this.mark.encoding;
|
|
@@ -231,7 +239,7 @@ export default class UnitView extends ContainerView {
|
|
|
231
239
|
/**
|
|
232
240
|
* Returns the domain of the specified channel of this domain/mark.
|
|
233
241
|
*
|
|
234
|
-
* @param {import("../spec/channel").ChannelWithScale} channel A primary channel
|
|
242
|
+
* @param {import("../spec/channel.js").ChannelWithScale} channel A primary channel
|
|
235
243
|
* @returns {DomainArray}
|
|
236
244
|
*/
|
|
237
245
|
getConfiguredDomain(channel) {
|
|
@@ -310,7 +318,7 @@ export default class UnitView extends ContainerView {
|
|
|
310
318
|
}
|
|
311
319
|
|
|
312
320
|
getZoomLevel() {
|
|
313
|
-
/** @param {import("../spec/channel").ChannelWithScale} channel */
|
|
321
|
+
/** @param {import("../spec/channel.js").ChannelWithScale} channel */
|
|
314
322
|
const getZoomLevel = (channel) =>
|
|
315
323
|
this.getScaleResolution(channel)?.getZoomLevel() ?? 1.0;
|
|
316
324
|
|
|
@@ -320,7 +328,7 @@ export default class UnitView extends ContainerView {
|
|
|
320
328
|
}
|
|
321
329
|
|
|
322
330
|
/**
|
|
323
|
-
* @param {import("../utils/interactionEvent").default} event
|
|
331
|
+
* @param {import("../utils/interactionEvent.js").default} event
|
|
324
332
|
*/
|
|
325
333
|
propagateInteractionEvent(event) {
|
|
326
334
|
this.handleInteractionEvent(undefined, event, true);
|
|
@@ -336,7 +344,7 @@ export default class UnitView extends ContainerView {
|
|
|
336
344
|
/**
|
|
337
345
|
* @param {string} channel
|
|
338
346
|
* @param {ResolutionTarget} resolutionType
|
|
339
|
-
* @returns {import("../spec/view").ResolutionBehavior}
|
|
347
|
+
* @returns {import("../spec/view.js").ResolutionBehavior}
|
|
340
348
|
*/
|
|
341
349
|
getDefaultResolution(channel, resolutionType) {
|
|
342
350
|
// This affects the sample aggregate views.
|
package/dist/src/view/view.d.ts
CHANGED
|
@@ -16,60 +16,68 @@ export const VISIT_STOP: "VISIT_STOP";
|
|
|
16
16
|
* } Visitor
|
|
17
17
|
*
|
|
18
18
|
* @typedef {object} BroadcastMessage
|
|
19
|
-
* @prop {import("../genomeSpy").BroadcastEventType} type Broadcast type
|
|
19
|
+
* @prop {import("../genomeSpy.js").BroadcastEventType} type Broadcast type
|
|
20
20
|
* @prop {any} [payload] Anything
|
|
21
21
|
*
|
|
22
22
|
* @callback InteractionEventListener
|
|
23
|
-
* @param {import("
|
|
23
|
+
* @param {import("./layout/rectangle.js").default} coords
|
|
24
24
|
* Coordinates of the view
|
|
25
|
-
* @param {import("../utils/interactionEvent").default} event
|
|
25
|
+
* @param {import("../utils/interactionEvent.js").default} event
|
|
26
|
+
*
|
|
27
|
+
* @typedef {object} ViewOptions
|
|
28
|
+
* @prop {boolean} [blockEncodingInheritance]
|
|
29
|
+
* Don't inherit encodings from parent. Default: false.
|
|
30
|
+
* @prop {boolean} [contributesToScaleDomain]
|
|
31
|
+
* Whether ScaleResolution should include this view or its children in the domain. Default: true
|
|
26
32
|
*/
|
|
27
33
|
export default class View {
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
|
-
* @param {import("../spec/view").ViewSpec} spec
|
|
31
|
-
* @param {import("../types/viewContext").default} context
|
|
32
|
-
* @param {import("./containerView").default} layoutParent Parent that handles rendering of this view
|
|
33
|
-
* @param {import("./view").default} dataParent Parent that provides data, encodings, and is used in scale resolution
|
|
36
|
+
* @param {import("../spec/view.js").ViewSpec} spec
|
|
37
|
+
* @param {import("../types/viewContext.js").default} context
|
|
38
|
+
* @param {import("./containerView.js").default} layoutParent Parent that handles rendering of this view
|
|
39
|
+
* @param {import("./view.js").default} dataParent Parent that provides data, encodings, and is used in scale resolution
|
|
34
40
|
* @param {string} name
|
|
41
|
+
* @param {ViewOptions} [options]
|
|
42
|
+
*
|
|
35
43
|
*/
|
|
36
|
-
constructor(spec: import("../spec/view").ViewSpec, context: import("../types/viewContext").default, layoutParent: import("./containerView").default, dataParent: import("./view").default, name: string);
|
|
44
|
+
constructor(spec: import("../spec/view.js").ViewSpec, context: import("../types/viewContext.js").default, layoutParent: import("./containerView.js").default, dataParent: import("./view.js").default, name: string, options?: ViewOptions);
|
|
37
45
|
/**
|
|
38
46
|
* @type {function(number):number}
|
|
39
47
|
*/
|
|
40
48
|
opacityFunction: (arg0: number) => number;
|
|
41
|
-
context: import("../types/viewContext").default;
|
|
42
|
-
layoutParent: import("./containerView").default;
|
|
49
|
+
context: import("../types/viewContext.js").default;
|
|
50
|
+
layoutParent: import("./containerView.js").default;
|
|
43
51
|
dataParent: View;
|
|
44
52
|
name: string;
|
|
45
|
-
spec: import("../spec/view").ViewSpec;
|
|
53
|
+
spec: import("../spec/view.js").ViewSpec;
|
|
46
54
|
resolutions: {
|
|
47
55
|
/**
|
|
48
56
|
* Channel-specific scale resolutions
|
|
49
|
-
* @type {Partial<Record<import("../spec/channel").ChannelWithScale, import("./scaleResolution").default>>}
|
|
57
|
+
* @type {Partial<Record<import("../spec/channel.js").ChannelWithScale, import("./scaleResolution.js").default>>}
|
|
50
58
|
*/
|
|
51
|
-
scale: Partial<Record<import("../spec/channel").ChannelWithScale, import("./scaleResolution").default>>;
|
|
59
|
+
scale: Partial<Record<import("../spec/channel.js").ChannelWithScale, import("./scaleResolution.js").default>>;
|
|
52
60
|
/**
|
|
53
61
|
* Channel-specific axis resolutions
|
|
54
|
-
* @type {Partial<Record<import("../spec/channel").PrimaryPositionalChannel, import("./axisResolution").default>>}
|
|
62
|
+
* @type {Partial<Record<import("../spec/channel.js").PrimaryPositionalChannel, import("./axisResolution.js").default>>}
|
|
55
63
|
*/
|
|
56
|
-
axis: Partial<Record<import("../spec/channel").PrimaryPositionalChannel, import("./axisResolution").default>>;
|
|
64
|
+
axis: Partial<Record<import("../spec/channel.js").PrimaryPositionalChannel, import("./axisResolution.js").default>>;
|
|
65
|
+
};
|
|
66
|
+
options: {
|
|
67
|
+
/**
|
|
68
|
+
* Don't inherit encodings from parent. Default: false.
|
|
69
|
+
*/
|
|
70
|
+
blockEncodingInheritance: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether ScaleResolution should include this view or its children in the domain. Default: true
|
|
73
|
+
*/
|
|
74
|
+
contributesToScaleDomain: boolean;
|
|
57
75
|
};
|
|
58
|
-
/**
|
|
59
|
-
* Don't inherit encodings from parent.
|
|
60
|
-
* TODO: Make configurable through spec. Allow more fine-grained control.
|
|
61
|
-
*/
|
|
62
|
-
blockEncodingInheritance: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether ScaleResolution should include this view or its children in the domain.
|
|
65
|
-
* This is mainly used to block axis views from contributing to the domain.
|
|
66
|
-
*/
|
|
67
|
-
contributesToScaleDomain: boolean;
|
|
68
76
|
/**
|
|
69
77
|
* Whether GridView or equivalent should draw axis and grid lines for this view.
|
|
70
|
-
* @type {Record<import("../spec/channel").PrimaryPositionalChannel, boolean>}
|
|
78
|
+
* @type {Record<import("../spec/channel.js").PrimaryPositionalChannel, boolean>}
|
|
71
79
|
*/
|
|
72
|
-
needsAxes: Record<import("../spec/channel").PrimaryPositionalChannel, boolean>;
|
|
80
|
+
needsAxes: Record<import("../spec/channel.js").PrimaryPositionalChannel, boolean>;
|
|
73
81
|
getPadding(): Padding;
|
|
74
82
|
/**
|
|
75
83
|
* Returns a padding that indicates how much axes and titles extend over the plot area.
|
|
@@ -77,6 +85,13 @@ export default class View {
|
|
|
77
85
|
* @returns {Padding}
|
|
78
86
|
*/
|
|
79
87
|
getOverhang(): Padding;
|
|
88
|
+
/**
|
|
89
|
+
* Returns true if the view has explicit viewport size specified and should be
|
|
90
|
+
* scrollable.
|
|
91
|
+
*
|
|
92
|
+
* @returns {boolean}
|
|
93
|
+
*/
|
|
94
|
+
isScrollable(): boolean;
|
|
80
95
|
/**
|
|
81
96
|
* Returns the configured size, if present. Otherwise a computed or default
|
|
82
97
|
* height is returned.
|
|
@@ -84,6 +99,10 @@ export default class View {
|
|
|
84
99
|
* @returns {FlexDimensions}
|
|
85
100
|
*/
|
|
86
101
|
getSize(): FlexDimensions;
|
|
102
|
+
/**
|
|
103
|
+
* @returns {FlexDimensions}
|
|
104
|
+
*/
|
|
105
|
+
getViewportSize(): FlexDimensions;
|
|
87
106
|
isConfiguredVisible(): boolean;
|
|
88
107
|
isVisibleInSpec(): boolean;
|
|
89
108
|
/**
|
|
@@ -129,12 +148,12 @@ export default class View {
|
|
|
129
148
|
/**
|
|
130
149
|
* Handles an interactionEvent
|
|
131
150
|
*
|
|
132
|
-
* @param {import("
|
|
151
|
+
* @param {import("./layout/rectangle.js").default} coords
|
|
133
152
|
* Coordinates of the view
|
|
134
|
-
* @param {import("../utils/interactionEvent").default} event
|
|
153
|
+
* @param {import("../utils/interactionEvent.js").default} event
|
|
135
154
|
* @param {boolean} capturing
|
|
136
155
|
*/
|
|
137
|
-
handleInteractionEvent(coords: import("
|
|
156
|
+
handleInteractionEvent(coords: import("./layout/rectangle.js").default, event: import("../utils/interactionEvent.js").default, capturing: boolean): void;
|
|
138
157
|
/**
|
|
139
158
|
* Add an "interaction" event listener that mimics DOM's event model inside
|
|
140
159
|
* the view hierarchy.
|
|
@@ -163,21 +182,21 @@ export default class View {
|
|
|
163
182
|
/**
|
|
164
183
|
* Called after all scales in the view hierarchy have been resolved.
|
|
165
184
|
*/
|
|
166
|
-
|
|
185
|
+
configureViewOpacity(): void;
|
|
167
186
|
/**
|
|
168
187
|
* ViewRenderingContext calls this method once for each view during each rendering
|
|
169
188
|
* pass. The order is depth first, pre order.
|
|
170
189
|
*/
|
|
171
190
|
onBeforeRender(): void;
|
|
172
|
-
render(context: ViewRenderingContext, coords: import("
|
|
191
|
+
render(context: ViewRenderingContext, coords: import("./layout/rectangle.js").default, options?: import("../types/rendering.js").RenderingOptions): void;
|
|
173
192
|
/**
|
|
174
193
|
* Returns the encodings specified in this view combined with the inherited
|
|
175
194
|
* encodings. However, this does not contain any defaults or inferred/adjusted/fixed
|
|
176
195
|
* encodings. Those are available in Mark's encoding property.
|
|
177
196
|
*
|
|
178
|
-
* @return {import("../spec/channel").Encoding}
|
|
197
|
+
* @return {import("../spec/channel.js").Encoding}
|
|
179
198
|
*/
|
|
180
|
-
getEncoding(): import("../spec/channel").Encoding;
|
|
199
|
+
getEncoding(): import("../spec/channel.js").Encoding;
|
|
181
200
|
/**
|
|
182
201
|
* @param {View} [whoIsAsking] Passed to the immediate parent. Allows for
|
|
183
202
|
* selectively breaking the inheritance.
|
|
@@ -209,31 +228,31 @@ export default class View {
|
|
|
209
228
|
*/
|
|
210
229
|
getSampleFacetTexture(): WebGLTexture;
|
|
211
230
|
/**
|
|
212
|
-
* @param {import("../spec/channel").ChannelWithScale} channel
|
|
231
|
+
* @param {import("../spec/channel.js").ChannelWithScale} channel
|
|
213
232
|
*/
|
|
214
|
-
getScaleResolution(channel: import("../spec/channel").ChannelWithScale): import("./scaleResolution").default;
|
|
233
|
+
getScaleResolution(channel: import("../spec/channel.js").ChannelWithScale): import("./scaleResolution.js").default;
|
|
215
234
|
/**
|
|
216
|
-
* @param {import("../spec/channel").PositionalChannel} channel
|
|
235
|
+
* @param {import("../spec/channel.js").PositionalChannel} channel
|
|
217
236
|
*/
|
|
218
|
-
getAxisResolution(channel: import("../spec/channel").PositionalChannel): import("./axisResolution").default;
|
|
237
|
+
getAxisResolution(channel: import("../spec/channel.js").PositionalChannel): import("./axisResolution.js").default;
|
|
219
238
|
/**
|
|
220
|
-
* @param {import("../spec/channel").Channel | "default"} channel
|
|
221
|
-
* @param {import("../spec/view").ResolutionTarget} resolutionType
|
|
222
|
-
* @returns {import("../spec/view").ResolutionBehavior}
|
|
239
|
+
* @param {import("../spec/channel.js").Channel | "default"} channel
|
|
240
|
+
* @param {import("../spec/view.js").ResolutionTarget} resolutionType
|
|
241
|
+
* @returns {import("../spec/view.js").ResolutionBehavior}
|
|
223
242
|
*/
|
|
224
|
-
getConfiguredResolution(channel: import("../spec/channel").Channel | "default", resolutionType: import("../spec/view").ResolutionTarget): import("../spec/view").ResolutionBehavior;
|
|
243
|
+
getConfiguredResolution(channel: import("../spec/channel.js").Channel | "default", resolutionType: import("../spec/view.js").ResolutionTarget): import("../spec/view.js").ResolutionBehavior;
|
|
225
244
|
/**
|
|
226
|
-
* @param {import("../spec/channel").Channel} channel
|
|
227
|
-
* @param {import("../spec/view").ResolutionTarget} resolutionType
|
|
228
|
-
* @returns {import("../spec/view").ResolutionBehavior}
|
|
245
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
246
|
+
* @param {import("../spec/view.js").ResolutionTarget} resolutionType
|
|
247
|
+
* @returns {import("../spec/view.js").ResolutionBehavior}
|
|
229
248
|
*/
|
|
230
|
-
getConfiguredOrDefaultResolution(channel: import("../spec/channel").Channel, resolutionType: import("../spec/view").ResolutionTarget): import("../spec/view").ResolutionBehavior;
|
|
249
|
+
getConfiguredOrDefaultResolution(channel: import("../spec/channel.js").Channel, resolutionType: import("../spec/view.js").ResolutionTarget): import("../spec/view.js").ResolutionBehavior;
|
|
231
250
|
/**
|
|
232
|
-
* @param {import("../spec/channel").Channel} channel
|
|
233
|
-
* @param {import("../spec/view").ResolutionTarget} resolutionType
|
|
234
|
-
* @returns {import("../spec/view").ResolutionBehavior}
|
|
251
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
252
|
+
* @param {import("../spec/view.js").ResolutionTarget} resolutionType
|
|
253
|
+
* @returns {import("../spec/view.js").ResolutionBehavior}
|
|
235
254
|
*/
|
|
236
|
-
getDefaultResolution(channel: import("../spec/channel").Channel, resolutionType: import("../spec/view").ResolutionTarget): import("../spec/view").ResolutionBehavior;
|
|
255
|
+
getDefaultResolution(channel: import("../spec/channel.js").Channel, resolutionType: import("../spec/view.js").ResolutionTarget): import("../spec/view.js").ResolutionBehavior;
|
|
237
256
|
/**
|
|
238
257
|
* @returns {string}
|
|
239
258
|
*/
|
|
@@ -262,12 +281,12 @@ export default class View {
|
|
|
262
281
|
* Broadcasts a message to views that include the given (x, y) point.
|
|
263
282
|
* This is mainly intended for mouse events.
|
|
264
283
|
*
|
|
265
|
-
* @param {import("../utils/interactionEvent").default} event
|
|
284
|
+
* @param {import("../utils/interactionEvent.js").default} event
|
|
266
285
|
*/
|
|
267
|
-
propagateInteractionEvent(event: import("../utils/interactionEvent").default): void;
|
|
286
|
+
propagateInteractionEvent(event: import("../utils/interactionEvent.js").default): void;
|
|
268
287
|
#private;
|
|
269
288
|
}
|
|
270
|
-
export function isStepSize(size: any): size is import("../spec/view").Step;
|
|
289
|
+
export function isStepSize(size: any): size is import("../spec/view.js").Step;
|
|
271
290
|
export type VisitResult = "VISIT_SKIP" | "VISIT_STOP" | void;
|
|
272
291
|
export type VisitorCallback = (view: View) => VisitResult;
|
|
273
292
|
export type Visitor = VisitorCallback & {
|
|
@@ -279,13 +298,23 @@ export type BroadcastMessage = {
|
|
|
279
298
|
/**
|
|
280
299
|
* Broadcast type
|
|
281
300
|
*/
|
|
282
|
-
type: import("../genomeSpy").BroadcastEventType;
|
|
301
|
+
type: import("../genomeSpy.js").BroadcastEventType;
|
|
283
302
|
/**
|
|
284
303
|
* Anything
|
|
285
304
|
*/
|
|
286
305
|
payload?: any;
|
|
287
306
|
};
|
|
288
|
-
export type InteractionEventListener = (coords: import("
|
|
289
|
-
|
|
290
|
-
|
|
307
|
+
export type InteractionEventListener = (coords: import("./layout/rectangle.js").default, event: import("../utils/interactionEvent.js").default) => any;
|
|
308
|
+
export type ViewOptions = {
|
|
309
|
+
/**
|
|
310
|
+
* Don't inherit encodings from parent. Default: false.
|
|
311
|
+
*/
|
|
312
|
+
blockEncodingInheritance?: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Whether ScaleResolution should include this view or its children in the domain. Default: true
|
|
315
|
+
*/
|
|
316
|
+
contributesToScaleDomain?: boolean;
|
|
317
|
+
};
|
|
318
|
+
import Padding from "./layout/padding.js";
|
|
319
|
+
import { FlexDimensions } from "./layout/flexLayout.js";
|
|
291
320
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/view/view.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/view/view.js"],"names":[],"mappings":"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"}
|