@genome-spy/core 0.37.3 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/__vite-browser-external-ENoMJThg.js +8 -0
- package/dist/bundle/_commonjsHelpers-QtkX90xp.js +30 -0
- package/dist/bundle/index-1QVesMzU.js +1074 -0
- package/dist/bundle/index-Cbz74kpR.js +638 -0
- package/dist/bundle/index-LD6yPc3X.js +515 -0
- package/dist/bundle/index-Pv3tKJ1W.js +2190 -0
- package/dist/bundle/index-UyrC0vvF.js +72 -0
- package/dist/bundle/index-Y-LdHNIz.js +501 -0
- package/dist/bundle/index-gn8bhQ8w.js +4050 -0
- package/dist/bundle/index-lmJu1tfP.js +1372 -0
- package/dist/bundle/index-z4Cs62EO.js +279 -0
- package/dist/bundle/index.es.js +6448 -20571
- package/dist/bundle/index.js +93 -112
- package/dist/bundle/long-Veu0zKh9.js +2382 -0
- package/dist/bundle/remoteFile-Ur-gRKsH.js +96 -0
- package/dist/schema.json +492 -108
- package/dist/src/data/collector.d.ts +11 -11
- package/dist/src/data/collector.d.ts.map +1 -1
- package/dist/src/data/collector.js +8 -8
- package/dist/src/data/dataFlow.d.ts +18 -18
- package/dist/src/data/dataFlow.d.ts.map +1 -1
- package/dist/src/data/dataFlow.js +7 -7
- package/dist/src/data/flowNode.d.ts +9 -9
- package/dist/src/data/flowNode.d.ts.map +1 -1
- package/dist/src/data/flowNode.js +5 -5
- package/dist/src/data/flowOptimizer.d.ts +11 -11
- package/dist/src/data/flowOptimizer.d.ts.map +1 -1
- package/dist/src/data/flowOptimizer.js +7 -7
- package/dist/src/data/flowTestUtils.d.ts +2 -2
- package/dist/src/data/flowTestUtils.d.ts.map +1 -1
- package/dist/src/data/flowTestUtils.js +1 -1
- package/dist/src/data/sources/dataSource.js +1 -1
- package/dist/src/data/sources/dataSourceFactory.d.ts +3 -3
- package/dist/src/data/sources/dataSourceFactory.d.ts.map +1 -1
- package/dist/src/data/sources/dataSourceFactory.js +20 -20
- package/dist/src/data/sources/dataUtils.d.ts +20 -20
- package/dist/src/data/sources/dataUtils.d.ts.map +1 -1
- package/dist/src/data/sources/dataUtils.js +11 -11
- package/dist/src/data/sources/dynamic/axisGenomeSource.d.ts +3 -3
- package/dist/src/data/sources/dynamic/axisGenomeSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/axisGenomeSource.js +2 -2
- package/dist/src/data/sources/dynamic/axisTickSource.d.ts +6 -6
- package/dist/src/data/sources/dynamic/axisTickSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/axisTickSource.js +4 -4
- package/dist/src/data/sources/dynamic/bamSource.d.ts +7 -13
- package/dist/src/data/sources/dynamic/bamSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/bamSource.js +35 -27
- package/dist/src/data/sources/dynamic/bigBedSource.d.ts +9 -9
- package/dist/src/data/sources/dynamic/bigBedSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/bigBedSource.js +31 -18
- package/dist/src/data/sources/dynamic/bigWigSource.d.ts +7 -7
- package/dist/src/data/sources/dynamic/bigWigSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/bigWigSource.js +33 -26
- package/dist/src/data/sources/dynamic/gff3Source.d.ts +9 -0
- package/dist/src/data/sources/dynamic/gff3Source.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/gff3Source.js +17 -2
- package/dist/src/data/sources/dynamic/indexedFastaSource.d.ts +6 -9
- package/dist/src/data/sources/dynamic/indexedFastaSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/indexedFastaSource.js +28 -18
- package/dist/src/data/sources/dynamic/singleAxisLazySource.d.ts +10 -10
- package/dist/src/data/sources/dynamic/singleAxisLazySource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/singleAxisLazySource.js +6 -6
- package/dist/src/data/sources/dynamic/tabixSource.d.ts +11 -8
- package/dist/src/data/sources/dynamic/tabixSource.d.ts.map +1 -1
- package/dist/src/data/sources/dynamic/tabixSource.js +31 -17
- package/dist/src/data/sources/inlineSource.d.ts +7 -7
- package/dist/src/data/sources/inlineSource.d.ts.map +1 -1
- package/dist/src/data/sources/inlineSource.js +5 -5
- package/dist/src/data/sources/namedSource.d.ts +9 -9
- package/dist/src/data/sources/namedSource.d.ts.map +1 -1
- package/dist/src/data/sources/namedSource.js +6 -6
- package/dist/src/data/sources/sequenceSource.d.ts +7 -7
- package/dist/src/data/sources/sequenceSource.d.ts.map +1 -1
- package/dist/src/data/sources/sequenceSource.js +4 -4
- package/dist/src/data/sources/urlSource.d.ts +7 -7
- package/dist/src/data/sources/urlSource.d.ts.map +1 -1
- package/dist/src/data/sources/urlSource.js +4 -4
- package/dist/src/data/transforms/aggregate.d.ts +3 -3
- package/dist/src/data/transforms/aggregate.d.ts.map +1 -1
- package/dist/src/data/transforms/aggregate.js +2 -2
- package/dist/src/data/transforms/clone.d.ts +2 -2
- package/dist/src/data/transforms/clone.d.ts.map +1 -1
- package/dist/src/data/transforms/clone.js +1 -1
- package/dist/src/data/transforms/coverage.d.ts +3 -3
- package/dist/src/data/transforms/coverage.d.ts.map +1 -1
- package/dist/src/data/transforms/coverage.js +1 -1
- package/dist/src/data/transforms/coverage.test.js +1 -1
- package/dist/src/data/transforms/filter.d.ts +3 -3
- package/dist/src/data/transforms/filter.d.ts.map +1 -1
- package/dist/src/data/transforms/filter.js +2 -2
- package/dist/src/data/transforms/filter.test.js +1 -1
- package/dist/src/data/transforms/filterScoredLabels.d.ts +4 -4
- package/dist/src/data/transforms/filterScoredLabels.d.ts.map +1 -1
- package/dist/src/data/transforms/filterScoredLabels.js +3 -3
- package/dist/src/data/transforms/flatten.d.ts +2 -2
- package/dist/src/data/transforms/flatten.d.ts.map +1 -1
- package/dist/src/data/transforms/flatten.js +3 -3
- package/dist/src/data/transforms/flatten.test.js +6 -6
- package/dist/src/data/transforms/flattenCompressedExons.d.ts +2 -2
- package/dist/src/data/transforms/flattenCompressedExons.d.ts.map +1 -1
- package/dist/src/data/transforms/flattenCompressedExons.js +1 -1
- package/dist/src/data/transforms/flattenDelimited.d.ts +2 -2
- package/dist/src/data/transforms/flattenDelimited.d.ts.map +1 -1
- package/dist/src/data/transforms/flattenDelimited.js +2 -2
- package/dist/src/data/transforms/flattenDelimited.test.js +5 -5
- package/dist/src/data/transforms/flattenSequence.d.ts +2 -2
- package/dist/src/data/transforms/flattenSequence.d.ts.map +1 -1
- package/dist/src/data/transforms/flattenSequence.js +1 -1
- package/dist/src/data/transforms/flattenSequence.test.js +1 -1
- package/dist/src/data/transforms/formula.d.ts +3 -3
- package/dist/src/data/transforms/formula.d.ts.map +1 -1
- package/dist/src/data/transforms/formula.js +2 -2
- package/dist/src/data/transforms/identifier.d.ts +3 -3
- package/dist/src/data/transforms/identifier.d.ts.map +1 -1
- package/dist/src/data/transforms/identifier.js +2 -2
- package/dist/src/data/transforms/linearizeGenomicCoordinate.d.ts +3 -3
- package/dist/src/data/transforms/linearizeGenomicCoordinate.d.ts.map +1 -1
- package/dist/src/data/transforms/linearizeGenomicCoordinate.js +2 -2
- package/dist/src/data/transforms/measureText.d.ts +2 -2
- package/dist/src/data/transforms/measureText.d.ts.map +1 -1
- package/dist/src/data/transforms/measureText.js +1 -1
- package/dist/src/data/transforms/pileup.d.ts +3 -3
- package/dist/src/data/transforms/pileup.d.ts.map +1 -1
- package/dist/src/data/transforms/pileup.js +1 -1
- package/dist/src/data/transforms/pileup.test.js +1 -1
- package/dist/src/data/transforms/project.d.ts +2 -2
- package/dist/src/data/transforms/project.d.ts.map +1 -1
- package/dist/src/data/transforms/project.js +1 -1
- package/dist/src/data/transforms/project.test.js +1 -1
- package/dist/src/data/transforms/regexExtract.d.ts +2 -2
- package/dist/src/data/transforms/regexExtract.d.ts.map +1 -1
- package/dist/src/data/transforms/regexExtract.js +1 -1
- package/dist/src/data/transforms/regexExtract.test.js +3 -3
- package/dist/src/data/transforms/regexFold.d.ts +2 -2
- package/dist/src/data/transforms/regexFold.d.ts.map +1 -1
- package/dist/src/data/transforms/regexFold.js +2 -2
- package/dist/src/data/transforms/regexFold.test.js +3 -3
- package/dist/src/data/transforms/sample.d.ts +2 -2
- package/dist/src/data/transforms/sample.d.ts.map +1 -1
- package/dist/src/data/transforms/sample.js +2 -2
- package/dist/src/data/transforms/stack.d.ts +3 -3
- package/dist/src/data/transforms/stack.d.ts.map +1 -1
- package/dist/src/data/transforms/stack.js +2 -2
- package/dist/src/data/transforms/stack.test.js +2 -2
- package/dist/src/data/transforms/transformFactory.d.ts +5 -5
- package/dist/src/data/transforms/transformFactory.d.ts.map +1 -1
- package/dist/src/data/transforms/transformFactory.js +3 -3
- package/dist/src/encoder/accessor.d.ts +6 -6
- package/dist/src/encoder/accessor.d.ts.map +1 -1
- package/dist/src/encoder/accessor.js +4 -4
- package/dist/src/encoder/encoder.d.ts +59 -59
- package/dist/src/encoder/encoder.d.ts.map +1 -1
- package/dist/src/encoder/encoder.js +40 -40
- package/dist/src/encoder/encoder.test.js +4 -4
- package/dist/src/fonts/bmFontManager.d.ts +7 -7
- package/dist/src/fonts/bmFontManager.d.ts.map +1 -1
- package/dist/src/fonts/bmFontManager.js +3 -3
- package/dist/src/fonts/bmFontMetrics.d.ts +6 -6
- package/dist/src/fonts/bmFontMetrics.d.ts.map +1 -1
- package/dist/src/fonts/bmFontMetrics.js +4 -4
- package/dist/src/genome/genome.d.ts +7 -7
- package/dist/src/genome/genome.d.ts.map +1 -1
- package/dist/src/genome/genome.js +2 -2
- package/dist/src/genome/genomeStore.d.ts +2 -2
- package/dist/src/genome/genomeStore.d.ts.map +1 -1
- package/dist/src/genome/genomeStore.js +1 -1
- package/dist/src/genome/locusFormat.d.ts +7 -7
- package/dist/src/genome/locusFormat.d.ts.map +1 -1
- package/dist/src/genome/locusFormat.js +4 -4
- package/dist/src/genome/scaleIndex.d.ts +1 -1
- package/dist/src/genome/scaleIndex.d.ts.map +1 -1
- package/dist/src/genome/scaleIndex.js +1 -1
- package/dist/src/genome/scaleLocus.d.ts +2 -2
- package/dist/src/genome/scaleLocus.d.ts.map +1 -1
- package/dist/src/genome/scaleLocus.js +3 -3
- package/dist/src/genomeSpy.d.ts +12 -12
- package/dist/src/genomeSpy.d.ts.map +1 -1
- package/dist/src/genomeSpy.js +52 -35
- package/dist/src/gl/arrayBuilder.d.ts.map +1 -1
- package/dist/src/gl/dataToVertices.d.ts +18 -18
- package/dist/src/gl/dataToVertices.d.ts.map +1 -1
- package/dist/src/gl/dataToVertices.js +10 -10
- package/dist/src/gl/webGLHelper.d.ts +4 -4
- package/dist/src/gl/webGLHelper.d.ts.map +1 -1
- package/dist/src/gl/webGLHelper.js +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/marks/link.js +5 -5
- package/dist/src/marks/mark.d.ts +35 -32
- package/dist/src/marks/mark.d.ts.map +1 -1
- package/dist/src/marks/mark.js +26 -23
- package/dist/src/marks/markUtils.d.ts +10 -10
- package/dist/src/marks/markUtils.d.ts.map +1 -1
- package/dist/src/marks/markUtils.js +5 -5
- package/dist/src/marks/pointMark.d.ts +1 -1
- package/dist/src/marks/pointMark.d.ts.map +1 -1
- package/dist/src/marks/pointMark.js +7 -7
- package/dist/src/marks/rectMark.d.ts +2 -2
- package/dist/src/marks/rectMark.d.ts.map +1 -1
- package/dist/src/marks/rectMark.js +7 -7
- package/dist/src/marks/rule.js +6 -6
- package/dist/src/marks/text.d.ts +1 -1
- package/dist/src/marks/text.d.ts.map +1 -1
- package/dist/src/marks/text.js +6 -6
- package/dist/src/scale/colorUtils.d.ts +4 -4
- package/dist/src/scale/colorUtils.d.ts.map +1 -1
- package/dist/src/scale/colorUtils.js +2 -2
- package/dist/src/scale/glslScaleGenerator.d.ts +3 -3
- package/dist/src/scale/glslScaleGenerator.d.ts.map +1 -1
- package/dist/src/scale/glslScaleGenerator.js +2 -2
- package/dist/src/scale/scale.d.ts +3 -3
- package/dist/src/scale/scale.d.ts.map +1 -1
- package/dist/src/scale/scale.js +2 -2
- package/dist/src/scale/ticks.d.ts +4 -4
- package/dist/src/scale/ticks.js +4 -4
- package/dist/src/spec/axis.d.ts +1 -1
- package/dist/src/spec/channel.d.ts +2 -2
- package/dist/src/spec/data.d.ts +2 -2
- package/dist/src/spec/mark.d.ts +3 -3
- package/dist/src/spec/root.d.ts +2 -2
- package/dist/src/spec/sampleView.d.ts +5 -5
- package/dist/src/spec/scale.d.ts +1 -1
- package/dist/src/spec/title.d.ts +1 -1
- package/dist/src/spec/view.d.ts +36 -9
- package/dist/src/tooltip/dataTooltipHandler.js +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.d.ts.map +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.js +1 -1
- package/dist/src/tooltip/tooltipHandler.d.ts +1 -1
- package/dist/src/tooltip/tooltipHandler.d.ts.map +1 -1
- package/dist/src/tooltip/tooltipHandler.ts +1 -1
- package/dist/src/types/embedApi.d.ts +3 -3
- package/dist/src/types/encoder.d.ts +4 -4
- package/dist/src/types/flowBatch.d.ts +1 -1
- package/dist/src/types/rendering.d.ts +3 -3
- package/dist/src/types/scaleResolutionApi.d.ts +2 -2
- package/dist/src/types/viewContext.d.ts +41 -12
- package/dist/src/utils/animator.d.ts +2 -2
- package/dist/src/utils/animator.d.ts.map +1 -1
- package/dist/src/utils/animator.js +1 -1
- package/dist/src/utils/inertia.d.ts +3 -3
- package/dist/src/utils/inertia.d.ts.map +1 -1
- package/dist/src/utils/inertia.js +1 -1
- package/dist/src/utils/interactionEvent.d.ts +5 -5
- package/dist/src/utils/interactionEvent.d.ts.map +1 -1
- package/dist/src/utils/interactionEvent.js +2 -2
- package/dist/src/utils/trees.js +1 -1
- package/dist/src/view/axisGridView.d.ts +17 -16
- package/dist/src/view/axisGridView.d.ts.map +1 -1
- package/dist/src/view/axisGridView.js +24 -20
- package/dist/src/view/axisResolution.d.ts +10 -10
- package/dist/src/view/axisResolution.d.ts.map +1 -1
- package/dist/src/view/axisResolution.js +6 -6
- package/dist/src/view/axisResolution.test.js +1 -1
- package/dist/src/view/axisView.d.ts +18 -17
- package/dist/src/view/axisView.d.ts.map +1 -1
- package/dist/src/view/axisView.js +39 -35
- package/dist/src/view/concatView.d.ts +5 -5
- package/dist/src/view/concatView.d.ts.map +1 -1
- package/dist/src/view/concatView.js +23 -23
- package/dist/src/view/containerView.d.ts +10 -8
- package/dist/src/view/containerView.d.ts.map +1 -1
- package/dist/src/view/containerView.js +18 -13
- package/dist/src/view/facetView.d.ts +12 -12
- package/dist/src/view/facetView.d.ts.map +1 -1
- package/dist/src/view/facetView.js +19 -19
- package/dist/src/view/flowBuilder.d.ts +4 -4
- package/dist/src/view/flowBuilder.d.ts.map +1 -1
- package/dist/src/view/flowBuilder.js +13 -13
- package/dist/src/view/flowBuilder.test.js +7 -7
- package/dist/src/view/gridView.d.ts +63 -35
- package/dist/src/view/gridView.d.ts.map +1 -1
- package/dist/src/view/gridView.js +400 -113
- package/dist/src/view/layerView.d.ts +12 -14
- package/dist/src/view/layerView.d.ts.map +1 -1
- package/dist/src/view/layerView.js +55 -26
- package/dist/src/{utils → view}/layout/flexLayout.d.ts +6 -6
- package/dist/src/view/layout/flexLayout.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/flexLayout.js +4 -4
- package/dist/src/view/layout/grid.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/padding.d.ts +4 -4
- package/dist/src/view/layout/padding.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/padding.js +2 -2
- package/dist/src/view/layout/point.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/rectangle.d.ts +8 -2
- package/dist/src/view/layout/rectangle.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/rectangle.js +22 -2
- package/dist/src/{utils → view}/layout/rectangle.test.js +8 -0
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts +10 -10
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.js +10 -10
- package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts +2 -2
- package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/compositeViewRenderingContext.js +4 -4
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts +4 -4
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.js +3 -3
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts +8 -8
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.js +4 -4
- package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts +6 -6
- package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/simpleViewRenderingContext.js +7 -7
- package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts +4 -4
- package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/svgViewRenderingContext.js +6 -6
- package/dist/src/view/renderingContext/viewRenderingContext.d.ts +10 -10
- package/dist/src/view/renderingContext/viewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/viewRenderingContext.js +5 -5
- package/dist/src/view/scaleResolution.d.ts +21 -17
- package/dist/src/view/scaleResolution.d.ts.map +1 -1
- package/dist/src/view/scaleResolution.js +29 -24
- package/dist/src/view/scaleResolution.test.js +57 -72
- package/dist/src/view/testUtils.d.ts +6 -15
- package/dist/src/view/testUtils.d.ts.map +1 -1
- package/dist/src/view/testUtils.js +40 -44
- package/dist/src/view/title.d.ts +3 -3
- package/dist/src/view/title.d.ts.map +1 -1
- package/dist/src/view/title.js +12 -12
- package/dist/src/view/unitView.d.ts +31 -30
- package/dist/src/view/unitView.d.ts.map +1 -1
- package/dist/src/view/unitView.js +30 -22
- package/dist/src/view/view.d.ts +86 -57
- package/dist/src/view/view.d.ts.map +1 -1
- package/dist/src/view/view.js +148 -103
- package/dist/src/view/view.test.js +9 -8
- package/dist/src/view/viewError.d.ts +9 -0
- package/dist/src/view/viewError.d.ts.map +1 -0
- package/dist/src/view/viewError.js +11 -0
- package/dist/src/view/viewFactory.d.ts +53 -20
- package/dist/src/view/viewFactory.d.ts.map +1 -1
- package/dist/src/view/viewFactory.js +148 -33
- package/dist/src/view/viewFactory.test.js +8 -0
- package/dist/src/view/viewUtils.d.ts +14 -12
- package/dist/src/view/viewUtils.d.ts.map +1 -1
- package/dist/src/view/viewUtils.js +10 -63
- package/dist/src/view/zoom.d.ts +4 -4
- package/dist/src/view/zoom.d.ts.map +1 -1
- package/dist/src/view/zoom.js +3 -3
- package/package.json +7 -5
- package/dist/src/utils/layout/flexLayout.d.ts.map +0 -1
- package/dist/src/utils/layout/grid.d.ts.map +0 -1
- package/dist/src/utils/layout/padding.d.ts.map +0 -1
- package/dist/src/utils/layout/point.d.ts.map +0 -1
- package/dist/src/utils/layout/rectangle.d.ts.map +0 -1
- package/dist/src/view/implicitRootView.d.ts +0 -9
- package/dist/src/view/implicitRootView.d.ts.map +0 -1
- package/dist/src/view/implicitRootView.js +0 -23
- package/dist/src/view/importView.d.ts +0 -17
- package/dist/src/view/importView.d.ts.map +0 -1
- package/dist/src/view/importView.js +0 -22
- /package/dist/src/{utils → view}/layout/flexLayout.test.js +0 -0
- /package/dist/src/{utils → view}/layout/grid.d.ts +0 -0
- /package/dist/src/{utils → view}/layout/grid.js +0 -0
- /package/dist/src/{utils → view}/layout/grid.test.js +0 -0
- /package/dist/src/{utils → view}/layout/point.d.ts +0 -0
- /package/dist/src/{utils → view}/layout/point.js +0 -0
package/dist/src/marks/text.js
CHANGED
|
@@ -34,7 +34,7 @@ const baselines = {
|
|
|
34
34
|
*/
|
|
35
35
|
export default class TextMark extends Mark {
|
|
36
36
|
/**
|
|
37
|
-
* @param {import("../view/unitView").default} unitView
|
|
37
|
+
* @param {import("../view/unitView.js").default} unitView
|
|
38
38
|
*/
|
|
39
39
|
constructor(unitView) {
|
|
40
40
|
super(unitView);
|
|
@@ -111,7 +111,7 @@ export default class TextMark extends Mark {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* @returns {import("../spec/channel").Channel[]}
|
|
114
|
+
* @returns {import("../spec/channel.js").Channel[]}
|
|
115
115
|
*/
|
|
116
116
|
getSupportedChannels() {
|
|
117
117
|
return [
|
|
@@ -125,8 +125,8 @@ export default class TextMark extends Mark {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
* @param {import("../spec/channel").Encoding} encoding
|
|
129
|
-
* @returns {import("../spec/channel").Encoding}
|
|
128
|
+
* @param {import("../spec/channel.js").Encoding} encoding
|
|
129
|
+
* @returns {import("../spec/channel.js").Encoding}
|
|
130
130
|
*/
|
|
131
131
|
fixEncoding(encoding) {
|
|
132
132
|
// TODO: Ensure that both the primary and secondary channel are either variables or constants (values)
|
|
@@ -224,7 +224,7 @@ export default class TextMark extends Mark {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
|
-
* @param {import("../types/rendering").GlobalRenderingOptions} options
|
|
227
|
+
* @param {import("../types/rendering.js").GlobalRenderingOptions} options
|
|
228
228
|
*/
|
|
229
229
|
prepareRender(options) {
|
|
230
230
|
const ops = super.prepareRender(options);
|
|
@@ -259,7 +259,7 @@ export default class TextMark extends Mark {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
/**
|
|
262
|
-
* @param {import("./mark").MarkRenderingOptions} options
|
|
262
|
+
* @param {import("./mark.js").MarkRenderingOptions} options
|
|
263
263
|
*/
|
|
264
264
|
render(options) {
|
|
265
265
|
const gl = this.gl;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {string | import("../spec/scale").SchemeParams} schemeParams
|
|
2
|
+
* @param {string | import("../spec/scale.js").SchemeParams} schemeParams
|
|
3
3
|
* @param {WebGL2RenderingContext} gl
|
|
4
4
|
* @param {number} [count]
|
|
5
5
|
* @param {WebGLTexture} [existingTexture]
|
|
6
6
|
*/
|
|
7
|
-
export function createSchemeTexture(schemeParams: string | import("../spec/scale").SchemeParams, gl: WebGL2RenderingContext, count?: number, existingTexture?: WebGLTexture): WebGLTexture;
|
|
7
|
+
export function createSchemeTexture(schemeParams: string | import("../spec/scale.js").SchemeParams, gl: WebGL2RenderingContext, count?: number, existingTexture?: WebGLTexture): WebGLTexture;
|
|
8
8
|
/**
|
|
9
9
|
* @param {string[]} colors
|
|
10
|
-
* @param {import("../spec/scale").ScaleInterpolate | import("../spec/scale").ScaleInterpolateParams} interpolateParams
|
|
10
|
+
* @param {import("../spec/scale.js").ScaleInterpolate | import("../spec/scale.js").ScaleInterpolateParams} interpolateParams
|
|
11
11
|
* @param {WebGL2RenderingContext} gl
|
|
12
12
|
* @param {WebGLTexture} [existingTexture]
|
|
13
13
|
*/
|
|
14
|
-
export function createInterpolatedColorTexture(colors: string[], interpolateParams: import("../spec/scale").ScaleInterpolate | import("../spec/scale").ScaleInterpolateParams, gl: WebGL2RenderingContext, existingTexture?: WebGLTexture): WebGLTexture;
|
|
14
|
+
export function createInterpolatedColorTexture(colors: string[], interpolateParams: import("../spec/scale.js").ScaleInterpolate | import("../spec/scale.js").ScaleInterpolateParams, gl: WebGL2RenderingContext, existingTexture?: WebGLTexture): WebGLTexture;
|
|
15
15
|
/**
|
|
16
16
|
* Creates a texture that maps integer indices to discrete 32bit floats.
|
|
17
17
|
* The range may represent point shapes, for example.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorUtils.d.ts","sourceRoot":"","sources":["../../../src/scale/colorUtils.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,kDALW,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"colorUtils.d.ts","sourceRoot":"","sources":["../../../src/scale/colorUtils.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,kDALW,MAAM,GAAG,OAAO,kBAAkB,EAAE,YAAY,MAChD,sBAAsB,UACtB,MAAM,oBACN,YAAY,gBAqCtB;AAED;;;;;GAKG;AACH,uDALW,MAAM,EAAE,qBACR,OAAO,kBAAkB,EAAE,gBAAgB,GAAG,OAAO,kBAAkB,EAAE,sBAAsB,MAC/F,sBAAsB,oBACtB,YAAY,gBA6BtB;AAED;;;;;;;;GAQG;AACH,6CALW,MAAM,EAAE,MACR,sBAAsB,UACtB,MAAM,oBACN,YAAY,gBAqBtB;AAED;;;;;;;GAOG;AACH,mDALW,MAAM,EAAE,MACR,sBAAsB,UACtB,MAAM,oBACN,YAAY,gBActB"}
|
|
@@ -6,7 +6,7 @@ import { peek } from "../utils/arrayUtils.js";
|
|
|
6
6
|
import { createOrUpdateTexture } from "../gl/webGLHelper.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @param {string | import("../spec/scale").SchemeParams} schemeParams
|
|
9
|
+
* @param {string | import("../spec/scale.js").SchemeParams} schemeParams
|
|
10
10
|
* @param {WebGL2RenderingContext} gl
|
|
11
11
|
* @param {number} [count]
|
|
12
12
|
* @param {WebGLTexture} [existingTexture]
|
|
@@ -50,7 +50,7 @@ export function createSchemeTexture(schemeParams, gl, count, existingTexture) {
|
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* @param {string[]} colors
|
|
53
|
-
* @param {import("../spec/scale").ScaleInterpolate | import("../spec/scale").ScaleInterpolateParams} interpolateParams
|
|
53
|
+
* @param {import("../spec/scale.js").ScaleInterpolate | import("../spec/scale.js").ScaleInterpolateParams} interpolateParams
|
|
54
54
|
* @param {WebGL2RenderingContext} gl
|
|
55
55
|
* @param {WebGLTexture} [existingTexture]
|
|
56
56
|
*/
|
|
@@ -8,9 +8,9 @@ export function generateValueGlsl(channel: Channel, value: number | number[] | s
|
|
|
8
8
|
*
|
|
9
9
|
* @param {Channel} channel
|
|
10
10
|
* @param {any} scale TODO: typing
|
|
11
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
11
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
12
12
|
*/
|
|
13
|
-
export function generateScaleGlsl(channel: Channel, scale: any, channelDef: import("../spec/channel").ChannelDef): {
|
|
13
|
+
export function generateScaleGlsl(channel: Channel, scale: any, channelDef: import("../spec/channel.js").ChannelDef): {
|
|
14
14
|
glsl: string;
|
|
15
15
|
domainUniform: string;
|
|
16
16
|
};
|
|
@@ -34,7 +34,7 @@ export const RANGE_PREFIX: "range_";
|
|
|
34
34
|
export const SCALE_FUNCTION_PREFIX: "scale_";
|
|
35
35
|
export const SCALED_FUNCTION_PREFIX: "getScaled_";
|
|
36
36
|
export const RANGE_TEXTURE_PREFIX: "uRangeTexture_";
|
|
37
|
-
export type Channel = import("../spec/channel").Channel;
|
|
37
|
+
export type Channel = import("../spec/channel.js").Channel;
|
|
38
38
|
/**
|
|
39
39
|
* Turns a number or number array to float or vec[234] string.
|
|
40
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glslScaleGenerator.d.ts","sourceRoot":"","sources":["../../../src/scale/glslScaleGenerator.js"],"names":[],"mappings":"AAiDA;;;;GAIG;AACH,2CAHW,OAAO,SACP,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,UAsC9C;AAED;;;;;GAKG;AAEH,2CALW,OAAO,SACP,GAAG,cACH,OAAO,
|
|
1
|
+
{"version":3,"file":"glslScaleGenerator.d.ts","sourceRoot":"","sources":["../../../src/scale/glslScaleGenerator.js"],"names":[],"mappings":"AAiDA;;;;GAIG;AACH,2CAHW,OAAO,SACP,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,UAsC9C;AAED;;;;;GAKG;AAEH,2CALW,OAAO,SACP,GAAG,cACH,OAAO,oBAAoB,EAAE,UAAU;;;EA8QjD;AA+FD;;;GAGG;AACH,2CAFW,MAAM,WAIhB;AAOD;;;GAGG;AACH,sCAHW,MAAM,QACN,MAAM,EAAE,YAYlB;AAYD;;GAEG;AACH,qDAFW,MAAM,EAAE,YAIlB;AAteD,uCAAwC;AACxC,uCAAwC;AACxC,oCAAqC;AACrC,6CAA8C;AAC9C,kDAAmD;AACnD,oDAAqD;sBAMxC,OAAO,oBAAoB,EAAE,OAAO;;;;8BAgXpC,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE"}
|
|
@@ -28,7 +28,7 @@ export const RANGE_TEXTURE_PREFIX = "uRangeTexture_";
|
|
|
28
28
|
const FLT_MAX = 3.402823466e38;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* @typedef {import("../spec/channel").Channel} Channel
|
|
31
|
+
* @typedef {import("../spec/channel.js").Channel} Channel
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
/**
|
|
@@ -94,7 +94,7 @@ ${vec.type} ${SCALED_FUNCTION_PREFIX}${channel}() {
|
|
|
94
94
|
*
|
|
95
95
|
* @param {Channel} channel
|
|
96
96
|
* @param {any} scale TODO: typing
|
|
97
|
-
* @param {import("../spec/channel").ChannelDef} channelDef
|
|
97
|
+
* @param {import("../spec/channel.js").ChannelDef} channelDef
|
|
98
98
|
*/
|
|
99
99
|
// eslint-disable-next-line complexity
|
|
100
100
|
export function generateScaleGlsl(channel, scale, channelDef) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export function configureScale(_: any, scale: any, logger: any): void;
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* @param {import("../spec/scale").Scale} _
|
|
4
|
+
* @param {import("../spec/scale.js").Scale} _
|
|
5
5
|
* @param {*} logger
|
|
6
|
-
* @returns {import("../encoder/encoder").VegaScale}
|
|
6
|
+
* @returns {import("../encoder/encoder.js").VegaScale}
|
|
7
7
|
*/
|
|
8
|
-
export default function createScale(_: import("../spec/scale").Scale, logger: any): any;
|
|
8
|
+
export default function createScale(_: import("../spec/scale.js").Scale, logger: any): any;
|
|
9
9
|
export function configureDomain(scale: any, _: any, logger: any): any;
|
|
10
10
|
//# sourceMappingURL=scale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../src/scale/scale.js"],"names":[],"mappings":"AAoHA,sEAmBC;AAED;;;;;GAKG;AACH,uCAJW,OAAO,
|
|
1
|
+
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../src/scale/scale.js"],"names":[],"mappings":"AAoHA,sEAmBC;AAED;;;;;GAKG;AACH,uCAJW,OAAO,kBAAkB,EAAE,KAAK,oBAsB1C;AAgCD,sEAuEC"}
|
package/dist/src/scale/scale.js
CHANGED
|
@@ -137,9 +137,9 @@ export function configureScale(_, scale, logger) {
|
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
*
|
|
140
|
-
* @param {import("../spec/scale").Scale} _
|
|
140
|
+
* @param {import("../spec/scale.js").Scale} _
|
|
141
141
|
* @param {*} logger
|
|
142
|
-
* @returns {import("../encoder/encoder").VegaScale}
|
|
142
|
+
* @returns {import("../encoder/encoder.js").VegaScale}
|
|
143
143
|
*/
|
|
144
144
|
export default function createScale(_, logger) {
|
|
145
145
|
const key = scaleKey(_);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Determine the tick count or interval function.
|
|
3
3
|
*
|
|
4
|
-
* @param {import("../encoder/encoder").VegaScale} scale - The scale for which to generate tick values.
|
|
4
|
+
* @param {import("../encoder/encoder.js").VegaScale} scale - The scale for which to generate tick values.
|
|
5
5
|
* @param {number | {step: number, interval: number}} count - The desired tick count or interval specifier.
|
|
6
6
|
* @param {number} minStep - The desired minimum step between tick values.
|
|
7
7
|
* @return {*} - The tick count or interval function.
|
|
@@ -13,7 +13,7 @@ export function tickCount(scale: any, count: number | {
|
|
|
13
13
|
/**
|
|
14
14
|
* Filter a set of candidate tick values, ensuring that only tick values
|
|
15
15
|
* that lie within the scale range are included.
|
|
16
|
-
* @param {import("../encoder/encoder").VegaScale} scale - The scale for which to generate tick values.
|
|
16
|
+
* @param {import("../encoder/encoder.js").VegaScale} scale - The scale for which to generate tick values.
|
|
17
17
|
* @param {Array<*>} ticks - The candidate tick values.
|
|
18
18
|
* @param {*} count - The tick count or interval function.
|
|
19
19
|
* @return {Array<*>} - The filtered tick values.
|
|
@@ -24,7 +24,7 @@ export function validTicks(scale: any, ticks: Array<any>, count: any): Array<any
|
|
|
24
24
|
* interval value. If the scale has a 'ticks' method, it will be used to
|
|
25
25
|
* generate the ticks, with the count argument passed as a parameter. If the
|
|
26
26
|
* scale lacks a 'ticks' method, the full scale domain will be returned.
|
|
27
|
-
* @param {import("../encoder/encoder").VegaScale} scale - The scale for which to generate tick values.
|
|
27
|
+
* @param {import("../encoder/encoder.js").VegaScale} scale - The scale for which to generate tick values.
|
|
28
28
|
* @param {*} [count] - The approximate number of desired ticks.
|
|
29
29
|
* @return {any[]} - The generated tick values.
|
|
30
30
|
*/
|
|
@@ -37,7 +37,7 @@ export function tickValues(scale: any, count?: any): any[];
|
|
|
37
37
|
* If the input scale is a logarithmic scale and the format specifier does not
|
|
38
38
|
* indicate a desired decimal precision, a special variable precision formatter
|
|
39
39
|
* that automatically trims trailing zeroes will be generated.
|
|
40
|
-
* @param {import("../encoder/encoder").VegaScale} scale - The scale for which to generate the label formatter.
|
|
40
|
+
* @param {import("../encoder/encoder.js").VegaScale} scale - The scale for which to generate the label formatter.
|
|
41
41
|
* @param {*} [count] - The approximate number of desired ticks.
|
|
42
42
|
* @param {string} [specifier] - The format specifier. Must be a legal d3
|
|
43
43
|
* specifier string (see https://github.com/d3/d3-format#formatSpecifier).
|
package/dist/src/scale/ticks.js
CHANGED
|
@@ -21,7 +21,7 @@ import { format as numberFormat, formatSpecifier } from "d3-format";
|
|
|
21
21
|
/**
|
|
22
22
|
* Determine the tick count or interval function.
|
|
23
23
|
*
|
|
24
|
-
* @param {import("../encoder/encoder").VegaScale} scale - The scale for which to generate tick values.
|
|
24
|
+
* @param {import("../encoder/encoder.js").VegaScale} scale - The scale for which to generate tick values.
|
|
25
25
|
* @param {number | {step: number, interval: number}} count - The desired tick count or interval specifier.
|
|
26
26
|
* @param {number} minStep - The desired minimum step between tick values.
|
|
27
27
|
* @return {*} - The tick count or interval function.
|
|
@@ -44,7 +44,7 @@ export function tickCount(scale, count, minStep) {
|
|
|
44
44
|
/**
|
|
45
45
|
* Filter a set of candidate tick values, ensuring that only tick values
|
|
46
46
|
* that lie within the scale range are included.
|
|
47
|
-
* @param {import("../encoder/encoder").VegaScale} scale - The scale for which to generate tick values.
|
|
47
|
+
* @param {import("../encoder/encoder.js").VegaScale} scale - The scale for which to generate tick values.
|
|
48
48
|
* @param {Array<*>} ticks - The candidate tick values.
|
|
49
49
|
* @param {*} count - The tick count or interval function.
|
|
50
50
|
* @return {Array<*>} - The filtered tick values.
|
|
@@ -85,7 +85,7 @@ export function validTicks(scale, ticks, count) {
|
|
|
85
85
|
* interval value. If the scale has a 'ticks' method, it will be used to
|
|
86
86
|
* generate the ticks, with the count argument passed as a parameter. If the
|
|
87
87
|
* scale lacks a 'ticks' method, the full scale domain will be returned.
|
|
88
|
-
* @param {import("../encoder/encoder").VegaScale} scale - The scale for which to generate tick values.
|
|
88
|
+
* @param {import("../encoder/encoder.js").VegaScale} scale - The scale for which to generate tick values.
|
|
89
89
|
* @param {*} [count] - The approximate number of desired ticks.
|
|
90
90
|
* @return {any[]} - The generated tick values.
|
|
91
91
|
*/
|
|
@@ -122,7 +122,7 @@ function binValues(bins, count) {
|
|
|
122
122
|
* If the input scale is a logarithmic scale and the format specifier does not
|
|
123
123
|
* indicate a desired decimal precision, a special variable precision formatter
|
|
124
124
|
* that automatically trims trailing zeroes will be generated.
|
|
125
|
-
* @param {import("../encoder/encoder").VegaScale} scale - The scale for which to generate the label formatter.
|
|
125
|
+
* @param {import("../encoder/encoder.js").VegaScale} scale - The scale for which to generate the label formatter.
|
|
126
126
|
* @param {*} [count] - The approximate number of desired ticks.
|
|
127
127
|
* @param {string} [specifier] - The format specifier. Must be a legal d3
|
|
128
128
|
* specifier string (see https://github.com/d3/d3-format#formatSpecifier).
|
package/dist/src/spec/axis.d.ts
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { Scale } from "./scale";
|
|
12
|
-
import { GenomeAxis } from "./axis";
|
|
11
|
+
import { Scale } from "./scale.js";
|
|
12
|
+
import { GenomeAxis } from "./axis.js";
|
|
13
13
|
|
|
14
14
|
export type Scalar = string | number | boolean;
|
|
15
15
|
export type Value = Scalar | null;
|
package/dist/src/spec/data.d.ts
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
/*
|
|
12
12
|
* Constants and utilities for data.
|
|
13
13
|
*/
|
|
14
|
-
import { Axis } from "./axis";
|
|
15
|
-
import { FieldName, PrimaryPositionalChannel } from "./channel";
|
|
14
|
+
import { Axis } from "./axis.js";
|
|
15
|
+
import { FieldName, PrimaryPositionalChannel } from "./channel.js";
|
|
16
16
|
|
|
17
17
|
export type ParseValue =
|
|
18
18
|
| null
|
package/dist/src/spec/mark.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Scalar } from "./channel";
|
|
2
|
-
import { Align, Baseline, FontStyle, FontWeight } from "./font";
|
|
3
|
-
import { Tooltip } from "./tooltip";
|
|
1
|
+
import { Scalar } from "./channel.js";
|
|
2
|
+
import { Align, Baseline, FontStyle, FontWeight } from "./font.js";
|
|
3
|
+
import { Tooltip } from "./tooltip.js";
|
|
4
4
|
|
|
5
5
|
export type MarkType = "rect" | "point" | "rule" | "text" | "link";
|
|
6
6
|
|
package/dist/src/spec/root.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Type } from "./channel";
|
|
2
|
-
import { Data } from "./data";
|
|
3
|
-
import { Align, FontStyle, FontWeight } from "./font";
|
|
4
|
-
import { Scale } from "./scale";
|
|
5
|
-
import { LayerSpec, UnitSpec, ViewSpecBase, ViewBackground } from "./view";
|
|
1
|
+
import { Type } from "./channel.js";
|
|
2
|
+
import { Data } from "./data.js";
|
|
3
|
+
import { Align, FontStyle, FontWeight } from "./font.js";
|
|
4
|
+
import { Scale } from "./scale.js";
|
|
5
|
+
import { LayerSpec, UnitSpec, ViewSpecBase, ViewBackground } from "./view.js";
|
|
6
6
|
|
|
7
7
|
// TODO: Figure out how this could be moved to the app package and excluded
|
|
8
8
|
// from the core package.
|
package/dist/src/spec/scale.d.ts
CHANGED
package/dist/src/spec/title.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { Align, Baseline, FontStyle, FontWeight } from "./font";
|
|
11
|
+
import { Align, Baseline, FontStyle, FontWeight } from "./font.js";
|
|
12
12
|
|
|
13
13
|
export type TitleOrient = "none" | "left" | "right" | "top" | "bottom";
|
|
14
14
|
export type TitleAnchor = null | "start" | "middle" | "end";
|
package/dist/src/spec/view.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Data } from "./data";
|
|
2
|
-
import { TransformParams } from "./transform";
|
|
1
|
+
import { Data } from "./data.js";
|
|
2
|
+
import { TransformParams } from "./transform.js";
|
|
3
3
|
import {
|
|
4
4
|
Channel,
|
|
5
5
|
Encoding,
|
|
6
6
|
FacetFieldDef,
|
|
7
7
|
PrimaryPositionalChannel,
|
|
8
|
-
} from "./channel";
|
|
8
|
+
} from "./channel.js";
|
|
9
9
|
import {
|
|
10
10
|
FillAndStrokeProps,
|
|
11
11
|
MarkConfigAndType,
|
|
12
12
|
MarkType,
|
|
13
13
|
RectProps,
|
|
14
|
-
} from "./mark";
|
|
15
|
-
import { Title } from "./title";
|
|
16
|
-
import { SampleSpec } from "./sampleView";
|
|
14
|
+
} from "./mark.js";
|
|
15
|
+
import { Title } from "./title.js";
|
|
16
|
+
import { SampleSpec } from "./sampleView.js";
|
|
17
17
|
|
|
18
18
|
export interface SizeDef {
|
|
19
19
|
/** Size in pixels */
|
|
@@ -70,9 +70,36 @@ export type ViewBackground = Pick<
|
|
|
70
70
|
export interface ViewSpecBase extends ResolveSpec {
|
|
71
71
|
name?: string;
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Height of the view. If a number, it is interpreted as pixels.
|
|
75
|
+
*
|
|
76
|
+
* **Default:** `"container"`
|
|
77
|
+
*/
|
|
73
78
|
height?: SizeDef | number | Step | "container";
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Width of the view. If a number, it is interpreted as pixels.
|
|
82
|
+
*
|
|
83
|
+
* **Default:** `"container"`
|
|
84
|
+
*/
|
|
74
85
|
width?: SizeDef | number | Step | "container";
|
|
75
86
|
|
|
87
|
+
/**
|
|
88
|
+
* Optional viewport height of the view. If the view size exceeds the viewport height,
|
|
89
|
+
* it will be shown with scrollbars. This property implicitly enables clipping.
|
|
90
|
+
*
|
|
91
|
+
* **Default:** `null` (same as `height`)
|
|
92
|
+
*/
|
|
93
|
+
viewportHeight?: SizeDef | number | "container";
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Optional viewport width of the view. If the view size exceeds the viewport width,
|
|
97
|
+
* it will be shown with scrollbars. This property implicitly enables clipping.
|
|
98
|
+
*
|
|
99
|
+
* **Default:** `null` (same as `width`)
|
|
100
|
+
*/
|
|
101
|
+
viewportWidth?: SizeDef | number | "container";
|
|
102
|
+
|
|
76
103
|
/**
|
|
77
104
|
* Padding in pixels.
|
|
78
105
|
*
|
|
@@ -95,7 +122,7 @@ export interface ViewSpecBase extends ResolveSpec {
|
|
|
95
122
|
/**
|
|
96
123
|
* Opacity of the view and all its children.
|
|
97
124
|
*
|
|
98
|
-
* **Default
|
|
125
|
+
* **Default:** `1.0`
|
|
99
126
|
*/
|
|
100
127
|
// TODO: Should be available only in Unit and Layer views.
|
|
101
128
|
opacity?: ViewOpacityDef;
|
|
@@ -179,10 +206,10 @@ export type ViewSpec =
|
|
|
179
206
|
| UnitSpec
|
|
180
207
|
| LayerSpec
|
|
181
208
|
// | FacetSpec
|
|
182
|
-
| SampleSpec
|
|
183
209
|
| VConcatSpec
|
|
184
210
|
| HConcatSpec
|
|
185
|
-
| ConcatSpec
|
|
211
|
+
| ConcatSpec
|
|
212
|
+
| SampleSpec;
|
|
186
213
|
|
|
187
214
|
export interface ImportConfig {
|
|
188
215
|
name?: string;
|
|
@@ -2,7 +2,7 @@ import { html } from "lit-html";
|
|
|
2
2
|
import formatObject from "../utils/formatObject.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @type {import("./tooltipHandler").TooltipHandler}
|
|
5
|
+
* @type {import("./tooltipHandler.js").TooltipHandler}
|
|
6
6
|
*/
|
|
7
7
|
export default async function dataTooltipHandler(datum, mark, params) {
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refseqGeneTooltipHandler.d.ts","sourceRoot":"","sources":["../../../src/tooltip/refseqGeneTooltipHandler.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"refseqGeneTooltipHandler.d.ts","sourceRoot":"","sources":["../../../src/tooltip/refseqGeneTooltipHandler.js"],"names":[],"mappings":"AAOC,wNAQW"}
|
|
@@ -11,7 +11,7 @@ import { html } from "lit-html";
|
|
|
11
11
|
const symbolSummaryCache = new Map();
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* @type {import("./tooltipHandler").TooltipHandler}
|
|
14
|
+
* @type {import("./tooltipHandler.js").TooltipHandler}
|
|
15
15
|
*/
|
|
16
16
|
export default async function refseqGeneTooltipHandler(datum, mark, params) {
|
|
17
17
|
const symbol = datum.symbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltipHandler.d.ts","sourceRoot":"","sources":["../../../src/tooltip/tooltipHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"tooltipHandler.d.ts","sourceRoot":"","sources":["../../../src/tooltip/tooltipHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CACzB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,IAAI,EAAE,IAAI;AACV,sDAAsD;AACtD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC3B,OAAO,CAAC,MAAM,GAAG,cAAc,GAAG,WAAW,CAAC,CAAC"}
|
|
@@ -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;
|