@genome-spy/core 0.37.4 → 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 +51 -34
- package/dist/src/gl/arrayBuilder.d.ts.map +1 -1
- package/dist/src/gl/dataToVertices.d.ts +18 -18
- package/dist/src/gl/dataToVertices.d.ts.map +1 -1
- package/dist/src/gl/dataToVertices.js +10 -10
- package/dist/src/gl/webGLHelper.d.ts +4 -4
- package/dist/src/gl/webGLHelper.d.ts.map +1 -1
- package/dist/src/gl/webGLHelper.js +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/marks/link.js +5 -5
- package/dist/src/marks/mark.d.ts +35 -32
- package/dist/src/marks/mark.d.ts.map +1 -1
- package/dist/src/marks/mark.js +26 -23
- package/dist/src/marks/markUtils.d.ts +10 -10
- package/dist/src/marks/markUtils.d.ts.map +1 -1
- package/dist/src/marks/markUtils.js +5 -5
- package/dist/src/marks/pointMark.d.ts +1 -1
- package/dist/src/marks/pointMark.d.ts.map +1 -1
- package/dist/src/marks/pointMark.js +7 -7
- package/dist/src/marks/rectMark.d.ts +2 -2
- package/dist/src/marks/rectMark.d.ts.map +1 -1
- package/dist/src/marks/rectMark.js +7 -7
- package/dist/src/marks/rule.js +6 -6
- package/dist/src/marks/text.d.ts +1 -1
- package/dist/src/marks/text.d.ts.map +1 -1
- package/dist/src/marks/text.js +6 -6
- package/dist/src/scale/colorUtils.d.ts +4 -4
- package/dist/src/scale/colorUtils.d.ts.map +1 -1
- package/dist/src/scale/colorUtils.js +2 -2
- package/dist/src/scale/glslScaleGenerator.d.ts +3 -3
- package/dist/src/scale/glslScaleGenerator.d.ts.map +1 -1
- package/dist/src/scale/glslScaleGenerator.js +2 -2
- package/dist/src/scale/scale.d.ts +3 -3
- package/dist/src/scale/scale.d.ts.map +1 -1
- package/dist/src/scale/scale.js +2 -2
- package/dist/src/scale/ticks.d.ts +4 -4
- package/dist/src/scale/ticks.js +4 -4
- package/dist/src/spec/axis.d.ts +1 -1
- package/dist/src/spec/channel.d.ts +2 -2
- package/dist/src/spec/data.d.ts +2 -2
- package/dist/src/spec/mark.d.ts +3 -3
- package/dist/src/spec/root.d.ts +2 -2
- package/dist/src/spec/sampleView.d.ts +5 -5
- package/dist/src/spec/scale.d.ts +1 -1
- package/dist/src/spec/title.d.ts +1 -1
- package/dist/src/spec/view.d.ts +36 -9
- package/dist/src/tooltip/dataTooltipHandler.js +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.d.ts.map +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.js +1 -1
- package/dist/src/tooltip/tooltipHandler.d.ts +1 -1
- package/dist/src/tooltip/tooltipHandler.d.ts.map +1 -1
- package/dist/src/tooltip/tooltipHandler.ts +1 -1
- package/dist/src/types/embedApi.d.ts +3 -3
- package/dist/src/types/encoder.d.ts +4 -4
- package/dist/src/types/flowBatch.d.ts +1 -1
- package/dist/src/types/rendering.d.ts +3 -3
- package/dist/src/types/scaleResolutionApi.d.ts +2 -2
- package/dist/src/types/viewContext.d.ts +41 -12
- package/dist/src/utils/animator.d.ts +2 -2
- package/dist/src/utils/animator.d.ts.map +1 -1
- package/dist/src/utils/animator.js +1 -1
- package/dist/src/utils/inertia.d.ts +3 -3
- package/dist/src/utils/inertia.d.ts.map +1 -1
- package/dist/src/utils/inertia.js +1 -1
- package/dist/src/utils/interactionEvent.d.ts +5 -5
- package/dist/src/utils/interactionEvent.d.ts.map +1 -1
- package/dist/src/utils/interactionEvent.js +2 -2
- package/dist/src/utils/trees.js +1 -1
- package/dist/src/view/axisGridView.d.ts +17 -16
- package/dist/src/view/axisGridView.d.ts.map +1 -1
- package/dist/src/view/axisGridView.js +24 -20
- package/dist/src/view/axisResolution.d.ts +10 -10
- package/dist/src/view/axisResolution.d.ts.map +1 -1
- package/dist/src/view/axisResolution.js +6 -6
- package/dist/src/view/axisResolution.test.js +1 -1
- package/dist/src/view/axisView.d.ts +18 -17
- package/dist/src/view/axisView.d.ts.map +1 -1
- package/dist/src/view/axisView.js +39 -35
- package/dist/src/view/concatView.d.ts +5 -5
- package/dist/src/view/concatView.d.ts.map +1 -1
- package/dist/src/view/concatView.js +23 -23
- package/dist/src/view/containerView.d.ts +10 -8
- package/dist/src/view/containerView.d.ts.map +1 -1
- package/dist/src/view/containerView.js +18 -13
- package/dist/src/view/facetView.d.ts +12 -12
- package/dist/src/view/facetView.d.ts.map +1 -1
- package/dist/src/view/facetView.js +19 -19
- package/dist/src/view/flowBuilder.d.ts +4 -4
- package/dist/src/view/flowBuilder.d.ts.map +1 -1
- package/dist/src/view/flowBuilder.js +13 -13
- package/dist/src/view/flowBuilder.test.js +7 -7
- package/dist/src/view/gridView.d.ts +63 -35
- package/dist/src/view/gridView.d.ts.map +1 -1
- package/dist/src/view/gridView.js +400 -113
- package/dist/src/view/layerView.d.ts +12 -14
- package/dist/src/view/layerView.d.ts.map +1 -1
- package/dist/src/view/layerView.js +55 -26
- package/dist/src/{utils → view}/layout/flexLayout.d.ts +6 -6
- package/dist/src/view/layout/flexLayout.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/flexLayout.js +4 -4
- package/dist/src/view/layout/grid.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/padding.d.ts +4 -4
- package/dist/src/view/layout/padding.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/padding.js +2 -2
- package/dist/src/view/layout/point.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/rectangle.d.ts +8 -2
- package/dist/src/view/layout/rectangle.d.ts.map +1 -0
- package/dist/src/{utils → view}/layout/rectangle.js +22 -2
- package/dist/src/{utils → view}/layout/rectangle.test.js +8 -0
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts +10 -10
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/bufferedViewRenderingContext.js +10 -10
- package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts +2 -2
- package/dist/src/view/renderingContext/compositeViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/compositeViewRenderingContext.js +4 -4
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts +4 -4
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/debuggingViewRenderingContext.js +3 -3
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts +8 -8
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/layoutRecorderViewRenderingContext.js +4 -4
- package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts +6 -6
- package/dist/src/view/renderingContext/simpleViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/simpleViewRenderingContext.js +7 -7
- package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts +4 -4
- package/dist/src/view/renderingContext/svgViewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/svgViewRenderingContext.js +6 -6
- package/dist/src/view/renderingContext/viewRenderingContext.d.ts +10 -10
- package/dist/src/view/renderingContext/viewRenderingContext.d.ts.map +1 -1
- package/dist/src/view/renderingContext/viewRenderingContext.js +5 -5
- package/dist/src/view/scaleResolution.d.ts +21 -17
- package/dist/src/view/scaleResolution.d.ts.map +1 -1
- package/dist/src/view/scaleResolution.js +29 -24
- package/dist/src/view/scaleResolution.test.js +57 -72
- package/dist/src/view/testUtils.d.ts +6 -15
- package/dist/src/view/testUtils.d.ts.map +1 -1
- package/dist/src/view/testUtils.js +40 -44
- package/dist/src/view/title.d.ts +3 -3
- package/dist/src/view/title.d.ts.map +1 -1
- package/dist/src/view/title.js +12 -12
- package/dist/src/view/unitView.d.ts +31 -30
- package/dist/src/view/unitView.d.ts.map +1 -1
- package/dist/src/view/unitView.js +30 -22
- package/dist/src/view/view.d.ts +86 -57
- package/dist/src/view/view.d.ts.map +1 -1
- package/dist/src/view/view.js +148 -103
- package/dist/src/view/view.test.js +9 -8
- package/dist/src/view/viewError.d.ts +9 -0
- package/dist/src/view/viewError.d.ts.map +1 -0
- package/dist/src/view/viewError.js +11 -0
- package/dist/src/view/viewFactory.d.ts +53 -20
- package/dist/src/view/viewFactory.d.ts.map +1 -1
- package/dist/src/view/viewFactory.js +148 -33
- package/dist/src/view/viewFactory.test.js +8 -0
- package/dist/src/view/viewUtils.d.ts +14 -12
- package/dist/src/view/viewUtils.d.ts.map +1 -1
- package/dist/src/view/viewUtils.js +10 -63
- package/dist/src/view/zoom.d.ts +4 -4
- package/dist/src/view/zoom.d.ts.map +1 -1
- package/dist/src/view/zoom.js +3 -3
- package/package.json +7 -5
- package/dist/src/utils/layout/flexLayout.d.ts.map +0 -1
- package/dist/src/utils/layout/grid.d.ts.map +0 -1
- package/dist/src/utils/layout/padding.d.ts.map +0 -1
- package/dist/src/utils/layout/point.d.ts.map +0 -1
- package/dist/src/utils/layout/rectangle.d.ts.map +0 -1
- package/dist/src/view/implicitRootView.d.ts +0 -9
- package/dist/src/view/implicitRootView.d.ts.map +0 -1
- package/dist/src/view/implicitRootView.js +0 -23
- package/dist/src/view/importView.d.ts +0 -17
- package/dist/src/view/importView.d.ts.map +0 -1
- package/dist/src/view/importView.js +0 -22
- /package/dist/src/{utils → view}/layout/flexLayout.test.js +0 -0
- /package/dist/src/{utils → view}/layout/grid.d.ts +0 -0
- /package/dist/src/{utils → view}/layout/grid.js +0 -0
- /package/dist/src/{utils → view}/layout/grid.test.js +0 -0
- /package/dist/src/{utils → view}/layout/point.d.ts +0 -0
- /package/dist/src/{utils → view}/layout/point.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutRecorderViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/layoutRecorderViewRenderingContext.js"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH;IAOQ,yBAAyB;IACzB,MADW,UAAU,CACA;IAErB,2BAA2B;IAC3B,OADW,UAAU,EAAE,CACR;IAEf,yBAAyB;IACzB,cADW,UAAU,CACQ;IAgCjC,wBAEC;CACJ;;;;;;mBArDY,OAAO,
|
|
1
|
+
{"version":3,"file":"layoutRecorderViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/layoutRecorderViewRenderingContext.js"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH;IAOQ,yBAAyB;IACzB,MADW,UAAU,CACA;IAErB,2BAA2B;IAC3B,OADW,UAAU,EAAE,CACR;IAEf,yBAAyB;IACzB,cADW,UAAU,CACQ;IAgCjC,wBAEC;CACJ;;;;;;mBArDY,OAAO,YAAY,EAAE,OAAO;;;;;;wBAC5B,OAAO,wBAAwB,EAAE,OAAO;iCARpB,2BAA2B;AA8D5D;;;GAGG;AACH;IACI;;;OAGG;IACH,kBAHW,IAAI,UACJ,SAAS,EAOnB;IAJG,mCAAgB;IAChB,iDAAoB;IACpB,2BAA2B;IAC3B,UADW,UAAU,EAAE,CACL;IAGtB;;;OAGG;IACH,qBAFW,UAAU,QAcpB;IAED;;;;;OAKG;IACH,gCAFW,OAAO,iCAAiC,EAAE,OAAO,QAyB3D;CACJ"}
|
|
@@ -6,13 +6,13 @@ import ViewRenderingContext from "./viewRenderingContext.js";
|
|
|
6
6
|
* of view coordinates, including faceted views that are repeated multiple times.
|
|
7
7
|
* The coordinates can be used for mouse events / interactions, for example.
|
|
8
8
|
*
|
|
9
|
-
* @typedef {import("../view").default} View
|
|
10
|
-
* @typedef {import("
|
|
9
|
+
* @typedef {import("../view.js").default} View
|
|
10
|
+
* @typedef {import("../layout/rectangle.js").default} Rectangle
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
export default class LayoutRecorderViewRenderingContext extends ViewRenderingContext {
|
|
14
14
|
/**
|
|
15
|
-
* @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
|
|
15
|
+
* @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
|
|
16
16
|
*/
|
|
17
17
|
constructor(globalOptions) {
|
|
18
18
|
super(globalOptions);
|
|
@@ -99,7 +99,7 @@ class ViewCoords {
|
|
|
99
99
|
* Broadcasts a message to views that include the given (x, y) point.
|
|
100
100
|
* This is mainly intended for mouse events.
|
|
101
101
|
*
|
|
102
|
-
* @param {import("../../utils/interactionEvent").default} event
|
|
102
|
+
* @param {import("../../utils/interactionEvent.js").default} event
|
|
103
103
|
*/
|
|
104
104
|
dispatchInteractionEvent(event) {
|
|
105
105
|
if (this.coords.containsPoint(event.point.x, event.point.y)) {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
* This class is mainly for illustrative purpose, i.e., how the rendering
|
|
3
3
|
* would be performed in the most straightforward, unoptimized way.
|
|
4
4
|
*
|
|
5
|
-
* @typedef {import("../view").default} View
|
|
5
|
+
* @typedef {import("../view.js").default} View
|
|
6
6
|
*/
|
|
7
7
|
export default class SimpleViewRenderingContext extends ViewRenderingContext {
|
|
8
|
-
/** @type {import("
|
|
9
|
-
coords: import("
|
|
10
|
-
/** @type {Set<import("../view").default>} */
|
|
11
|
-
views: Set<import("../view").default>;
|
|
8
|
+
/** @type {import("../layout/rectangle.js").default} */
|
|
9
|
+
coords: import("../layout/rectangle.js").default;
|
|
10
|
+
/** @type {Set<import("../view.js").default>} */
|
|
11
|
+
views: Set<import("../view.js").default>;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* This class is mainly for illustrative purpose, i.e., how the rendering
|
|
15
15
|
* would be performed in the most straightforward, unoptimized way.
|
|
16
16
|
*/
|
|
17
|
-
export type View = import("../view").default;
|
|
17
|
+
export type View = import("../view.js").default;
|
|
18
18
|
import ViewRenderingContext from "./viewRenderingContext.js";
|
|
19
19
|
//# sourceMappingURL=simpleViewRenderingContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/simpleViewRenderingContext.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH;IAMQ,
|
|
1
|
+
{"version":3,"file":"simpleViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/simpleViewRenderingContext.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH;IAMQ,uDAAuD;IACvD,QADW,OAAO,wBAAwB,EAAE,OAAO,CAC5B;IAEvB,gDAAgD;IAChD,OADW,IAAI,OAAO,YAAY,EAAE,OAAO,CAAC,CACtB;CA6C7B;;;;;mBAzDY,OAAO,YAAY,EAAE,OAAO;iCANR,2BAA2B"}
|
|
@@ -4,18 +4,18 @@ import ViewRenderingContext from "./viewRenderingContext.js";
|
|
|
4
4
|
* This class is mainly for illustrative purpose, i.e., how the rendering
|
|
5
5
|
* would be performed in the most straightforward, unoptimized way.
|
|
6
6
|
*
|
|
7
|
-
* @typedef {import("../view").default} View
|
|
7
|
+
* @typedef {import("../view.js").default} View
|
|
8
8
|
*/
|
|
9
9
|
export default class SimpleViewRenderingContext extends ViewRenderingContext {
|
|
10
10
|
/**
|
|
11
|
-
* @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
|
|
11
|
+
* @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
|
|
12
12
|
*/
|
|
13
13
|
constructor(globalOptions) {
|
|
14
14
|
super(globalOptions);
|
|
15
|
-
/** @type {import("
|
|
15
|
+
/** @type {import("../layout/rectangle.js").default} */
|
|
16
16
|
this.coords = undefined;
|
|
17
17
|
|
|
18
|
-
/** @type {Set<import("../view").default>} */
|
|
18
|
+
/** @type {Set<import("../view.js").default>} */
|
|
19
19
|
this.views = new Set();
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ export default class SimpleViewRenderingContext extends ViewRenderingContext {
|
|
|
23
23
|
* Must be called when a view's render() method is entered
|
|
24
24
|
*
|
|
25
25
|
* @param {View} view
|
|
26
|
-
* @param {import("
|
|
26
|
+
* @param {import("../layout/rectangle.js").default} coords View coordinates
|
|
27
27
|
* inside the padding.
|
|
28
28
|
*/
|
|
29
29
|
pushView(view, coords) {
|
|
@@ -47,8 +47,8 @@ export default class SimpleViewRenderingContext extends ViewRenderingContext {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @param {import("../../marks/mark").default} mark
|
|
51
|
-
* @param {import("../../types/rendering").RenderingOptions} options
|
|
50
|
+
* @param {import("../../marks/mark.js").default} mark
|
|
51
|
+
* @param {import("../../types/rendering.js").RenderingOptions} options
|
|
52
52
|
*/
|
|
53
53
|
renderMark(mark, options) {
|
|
54
54
|
if (this.globalOptions.picking && !mark.isPickingParticipant()) {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* A trivial proof-of-concept SVG rendering context. Doesn't render any
|
|
3
3
|
* marks at this point, only placeholders.
|
|
4
4
|
*
|
|
5
|
-
* @typedef {import("../view").default} View
|
|
5
|
+
* @typedef {import("../view.js").default} View
|
|
6
6
|
*/
|
|
7
7
|
export default class SvgViewRenderingContext extends ViewRenderingContext {
|
|
8
|
-
/** @type {import("
|
|
9
|
-
coords: import("
|
|
8
|
+
/** @type {import("../layout/rectangle.js").default} */
|
|
9
|
+
coords: import("../layout/rectangle.js").default;
|
|
10
10
|
svg: SVGSVGElement;
|
|
11
11
|
/** @type {SVGElement[]} */
|
|
12
12
|
nodeStack: SVGElement[];
|
|
@@ -17,6 +17,6 @@ export default class SvgViewRenderingContext extends ViewRenderingContext {
|
|
|
17
17
|
* A trivial proof-of-concept SVG rendering context. Doesn't render any
|
|
18
18
|
* marks at this point, only placeholders.
|
|
19
19
|
*/
|
|
20
|
-
export type View = import("../view").default;
|
|
20
|
+
export type View = import("../view.js").default;
|
|
21
21
|
import ViewRenderingContext from "./viewRenderingContext.js";
|
|
22
22
|
//# sourceMappingURL=svgViewRenderingContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svgViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/svgViewRenderingContext.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH;IAQQ,
|
|
1
|
+
{"version":3,"file":"svgViewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/svgViewRenderingContext.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH;IAQQ,uDAAuD;IACvD,QADW,OAAO,wBAAwB,EAAE,OAAO,CAC5B;IAEvB,mBAGC;IAED,2BAA2B;IAC3B,WADW,UAAU,EAAE,CACI;IAwE/B,wBAEC;IAED,+BAEC;CACJ;;;;;mBAlGY,OAAO,YAAY,EAAE,OAAO;iCANR,2BAA2B"}
|
|
@@ -5,17 +5,17 @@ import ViewRenderingContext from "./viewRenderingContext.js";
|
|
|
5
5
|
* A trivial proof-of-concept SVG rendering context. Doesn't render any
|
|
6
6
|
* marks at this point, only placeholders.
|
|
7
7
|
*
|
|
8
|
-
* @typedef {import("../view").default} View
|
|
8
|
+
* @typedef {import("../view.js").default} View
|
|
9
9
|
*/
|
|
10
10
|
export default class SvgViewRenderingContext extends ViewRenderingContext {
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
|
-
* @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
|
|
13
|
+
* @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
|
|
14
14
|
*/
|
|
15
15
|
constructor(globalOptions) {
|
|
16
16
|
super(globalOptions);
|
|
17
17
|
|
|
18
|
-
/** @type {import("
|
|
18
|
+
/** @type {import("../layout/rectangle.js").default} */
|
|
19
19
|
this.coords = undefined;
|
|
20
20
|
|
|
21
21
|
this.svg = document.createElementNS(
|
|
@@ -31,7 +31,7 @@ export default class SvgViewRenderingContext extends ViewRenderingContext {
|
|
|
31
31
|
* Must be called when a view's render() method is entered
|
|
32
32
|
*
|
|
33
33
|
* @param {View} view
|
|
34
|
-
* @param {import("
|
|
34
|
+
* @param {import("../layout/rectangle.js").default} coords View coordinates
|
|
35
35
|
* inside the padding.
|
|
36
36
|
*/
|
|
37
37
|
pushView(view, coords) {
|
|
@@ -67,8 +67,8 @@ export default class SvgViewRenderingContext extends ViewRenderingContext {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
|
-
* @param {import("../../marks/mark").default} mark
|
|
71
|
-
* @param {import("../../types/rendering").RenderingOptions} options
|
|
70
|
+
* @param {import("../../marks/mark.js").default} mark
|
|
71
|
+
* @param {import("../../types/rendering.js").RenderingOptions} options
|
|
72
72
|
*/
|
|
73
73
|
renderMark(mark, options) {
|
|
74
74
|
const current = this._currentNode;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import("../view").default} View
|
|
2
|
+
* @typedef {import("../view.js").default} View
|
|
3
3
|
*/
|
|
4
4
|
export default class ViewRenderingContext {
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
* @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
|
|
7
|
+
* @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
|
|
8
8
|
*/
|
|
9
|
-
constructor(globalOptions: import("../../types/rendering").GlobalRenderingOptions);
|
|
10
|
-
globalOptions: import("../../types/rendering").GlobalRenderingOptions;
|
|
9
|
+
constructor(globalOptions: import("../../types/rendering.js").GlobalRenderingOptions);
|
|
10
|
+
globalOptions: import("../../types/rendering.js").GlobalRenderingOptions;
|
|
11
11
|
/**
|
|
12
12
|
* Must be called when a view's render() method is entered
|
|
13
13
|
*
|
|
14
14
|
* @param {View} view
|
|
15
|
-
* @param {import("
|
|
15
|
+
* @param {import("../layout/rectangle.js").default} coords View coordinates
|
|
16
16
|
* inside the padding.
|
|
17
17
|
*/
|
|
18
|
-
pushView(view: View, coords: import("
|
|
18
|
+
pushView(view: View, coords: import("../layout/rectangle.js").default): void;
|
|
19
19
|
/**
|
|
20
20
|
* Must be called when a view's render() method is being exited
|
|
21
21
|
*
|
|
@@ -24,10 +24,10 @@ export default class ViewRenderingContext {
|
|
|
24
24
|
popView(view: View): void;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @param {import("../../marks/mark").default} mark
|
|
28
|
-
* @param {import("../../types/rendering").RenderingOptions} options
|
|
27
|
+
* @param {import("../../marks/mark.js").default} mark
|
|
28
|
+
* @param {import("../../types/rendering.js").RenderingOptions} options
|
|
29
29
|
*/
|
|
30
|
-
renderMark(mark: import("../../marks/mark").default, options: import("../../types/rendering").RenderingOptions): void;
|
|
30
|
+
renderMark(mark: import("../../marks/mark.js").default, options: import("../../types/rendering.js").RenderingOptions): void;
|
|
31
31
|
}
|
|
32
|
-
export type View = import("../view").default;
|
|
32
|
+
export type View = import("../view.js").default;
|
|
33
33
|
//# sourceMappingURL=viewRenderingContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/viewRenderingContext.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IACI;;;OAGG;IACH,2BAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"viewRenderingContext.d.ts","sourceRoot":"","sources":["../../../../src/view/renderingContext/viewRenderingContext.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IACI;;;OAGG;IACH,2BAFW,OAAO,0BAA0B,EAAE,sBAAsB,EAInE;IADG,yEAAkC;IAGtC;;;;;;OAMG;IACH,eAJW,IAAI,UACJ,OAAO,wBAAwB,EAAE,OAAO,QAKlD;IAED;;;;OAIG;IACH,cAFW,IAAI,QAId;IAED;;;;OAIG;IACH,iBAHW,OAAO,qBAAqB,EAAE,OAAO,WACrC,OAAO,0BAA0B,EAAE,gBAAgB,QAI7D;CACJ;mBAvCY,OAAO,YAAY,EAAE,OAAO"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import("../view").default} View
|
|
2
|
+
* @typedef {import("../view.js").default} View
|
|
3
3
|
*/
|
|
4
4
|
export default class ViewRenderingContext {
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
* @param {import("../../types/rendering").GlobalRenderingOptions} globalOptions
|
|
7
|
+
* @param {import("../../types/rendering.js").GlobalRenderingOptions} globalOptions
|
|
8
8
|
*/
|
|
9
9
|
constructor(globalOptions) {
|
|
10
10
|
this.globalOptions = globalOptions;
|
|
@@ -14,7 +14,7 @@ export default class ViewRenderingContext {
|
|
|
14
14
|
* Must be called when a view's render() method is entered
|
|
15
15
|
*
|
|
16
16
|
* @param {View} view
|
|
17
|
-
* @param {import("
|
|
17
|
+
* @param {import("../layout/rectangle.js").default} coords View coordinates
|
|
18
18
|
* inside the padding.
|
|
19
19
|
*/
|
|
20
20
|
pushView(view, coords) {
|
|
@@ -32,8 +32,8 @@ export default class ViewRenderingContext {
|
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
|
-
* @param {import("../../marks/mark").default} mark
|
|
36
|
-
* @param {import("../../types/rendering").RenderingOptions} options
|
|
35
|
+
* @param {import("../../marks/mark.js").default} mark
|
|
36
|
+
* @param {import("../../types/rendering.js").RenderingOptions} options
|
|
37
37
|
*/
|
|
38
38
|
renderMark(mark, options) {
|
|
39
39
|
//
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* TODO: This may reconfigure channels that are not affected by the change.
|
|
8
8
|
* Causes performance issues with domains that are extracted from data.
|
|
9
9
|
*
|
|
10
|
-
* @param {import("./view").default | import("./view").default[]} fromViews
|
|
10
|
+
* @param {import("./view.js").default | import("./view.js").default[]} fromViews
|
|
11
11
|
*/
|
|
12
|
-
export function reconfigureScales(fromViews: import("./view").default | import("./view").default[]): void;
|
|
12
|
+
export function reconfigureScales(fromViews: import("./view.js").default | import("./view.js").default[]): void;
|
|
13
13
|
export const QUANTITATIVE: "quantitative";
|
|
14
14
|
export const ORDINAL: "ordinal";
|
|
15
15
|
export const NOMINAL: "nominal";
|
|
@@ -17,7 +17,7 @@ export const LOCUS: "locus";
|
|
|
17
17
|
export const INDEX: "index";
|
|
18
18
|
/**
|
|
19
19
|
* @template {ChannelWithScale}[T=ChannelWithScale]
|
|
20
|
-
* @typedef {{view: import("./unitView").default, channel: T}} ResolutionMember
|
|
20
|
+
* @typedef {{view: import("./unitView.js").default, channel: T}} ResolutionMember
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
/**
|
|
@@ -32,10 +32,10 @@ export default class ScaleResolution implements ScaleResolutionApi {
|
|
|
32
32
|
/**
|
|
33
33
|
* @param {Channel} channel
|
|
34
34
|
*/
|
|
35
|
-
constructor(channel: import("../spec/channel").Channel);
|
|
36
|
-
channel: import("../spec/channel").Channel;
|
|
35
|
+
constructor(channel: import("../spec/channel.js").Channel);
|
|
36
|
+
channel: import("../spec/channel.js").Channel;
|
|
37
37
|
/** @type {ResolutionMember[]} The involved views */
|
|
38
|
-
members: ResolutionMember
|
|
38
|
+
members: ResolutionMember[];
|
|
39
39
|
/** @type {string} Data type (quantitative, nominal, etc...) */
|
|
40
40
|
type: string;
|
|
41
41
|
/** @type {string} An optional unique identifier for the scale */
|
|
@@ -48,12 +48,12 @@ export default class ScaleResolution implements ScaleResolutionApi {
|
|
|
48
48
|
* @param {"domain"} type
|
|
49
49
|
* @param {ScaleResolutionListener} listener function
|
|
50
50
|
*/
|
|
51
|
-
addEventListener(type: "domain", listener: import("../types/scaleResolutionApi").ScaleResolutionListener): void;
|
|
51
|
+
addEventListener(type: "domain", listener: import("../types/scaleResolutionApi.js").ScaleResolutionListener): void;
|
|
52
52
|
/**
|
|
53
53
|
* @param {"domain"} type
|
|
54
54
|
* @param {ScaleResolutionListener} listener function
|
|
55
55
|
*/
|
|
56
|
-
removeEventListener(type: "domain", listener: import("../types/scaleResolutionApi").ScaleResolutionListener): void;
|
|
56
|
+
removeEventListener(type: "domain", listener: import("../types/scaleResolutionApi.js").ScaleResolutionListener): void;
|
|
57
57
|
/**
|
|
58
58
|
* Add a view to this resolution.
|
|
59
59
|
* N.B. This is expected to be called in depth-first order
|
|
@@ -61,7 +61,7 @@ export default class ScaleResolution implements ScaleResolutionApi {
|
|
|
61
61
|
* @param {UnitView} view
|
|
62
62
|
* @param {ChannelWithScale} channel
|
|
63
63
|
*/
|
|
64
|
-
pushUnitView(view: import("./unitView").default, channel: import("../spec/channel").ChannelWithScale): void;
|
|
64
|
+
pushUnitView(view: import("./unitView.js").default, channel: import("../spec/channel.js").ChannelWithScale): void;
|
|
65
65
|
/**
|
|
66
66
|
* Returns true if the domain has been defined explicitly, i.e. not extracted from the data.
|
|
67
67
|
*/
|
|
@@ -71,9 +71,9 @@ export default class ScaleResolution implements ScaleResolutionApi {
|
|
|
71
71
|
* Returns the merged scale properties supplemented with inferred properties
|
|
72
72
|
* and domain.
|
|
73
73
|
*
|
|
74
|
-
* @returns {import("../spec/scale").Scale}
|
|
74
|
+
* @returns {import("../spec/scale.js").Scale}
|
|
75
75
|
*/
|
|
76
|
-
getScaleProps(): import("../spec/scale").Scale;
|
|
76
|
+
getScaleProps(): import("../spec/scale.js").Scale;
|
|
77
77
|
/**
|
|
78
78
|
* Unions the configured domains of all participating views.
|
|
79
79
|
*
|
|
@@ -93,12 +93,12 @@ export default class ScaleResolution implements ScaleResolutionApi {
|
|
|
93
93
|
/**
|
|
94
94
|
* @returns {VegaScale}
|
|
95
95
|
*/
|
|
96
|
-
getScale(): import("../types/encoder").VegaScale;
|
|
96
|
+
getScale(): import("../types/encoder.js").VegaScale;
|
|
97
97
|
getDomain(): any[];
|
|
98
98
|
/**
|
|
99
99
|
* @returns {NumericDomain | ComplexDomain}
|
|
100
100
|
*/
|
|
101
|
-
getComplexDomain(): import("../spec/scale").NumericDomain | import("../spec/scale").ComplexDomain;
|
|
101
|
+
getComplexDomain(): import("../spec/scale.js").NumericDomain | import("../spec/scale.js").ComplexDomain;
|
|
102
102
|
/**
|
|
103
103
|
* Return true if the scale is zoomable and the current domain differs from the initial domain.
|
|
104
104
|
*
|
|
@@ -125,7 +125,7 @@ export default class ScaleResolution implements ScaleResolutionApi {
|
|
|
125
125
|
* @param {boolean | number} [duration] an approximate duration for transition.
|
|
126
126
|
* Zero duration zooms immediately. Boolean `true` indicates a default duration.
|
|
127
127
|
*/
|
|
128
|
-
zoomTo(domain: import("../spec/scale").NumericDomain | import("../spec/scale").ComplexDomain, duration?: boolean | number): Promise<void>;
|
|
128
|
+
zoomTo(domain: import("../spec/scale.js").NumericDomain | import("../spec/scale.js").ComplexDomain, duration?: boolean | number): Promise<void>;
|
|
129
129
|
/**
|
|
130
130
|
* Resets the current domain to the initial one
|
|
131
131
|
*
|
|
@@ -139,6 +139,10 @@ export default class ScaleResolution implements ScaleResolutionApi {
|
|
|
139
139
|
* be generalized to other quantitative channels such as color, opacity, size, etc.
|
|
140
140
|
*/
|
|
141
141
|
getZoomLevel(): number;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @returns {import("../genome/genome.js").default}
|
|
145
|
+
*/
|
|
142
146
|
getGenome(): import("../genome/genome.js").default;
|
|
143
147
|
/**
|
|
144
148
|
* Inverts a value in range to a value on domain. Returns an object in
|
|
@@ -160,11 +164,11 @@ export default class ScaleResolution implements ScaleResolutionApi {
|
|
|
160
164
|
* @param {ScalarDomain | ComplexDomain} interval
|
|
161
165
|
* @returns {number[]}
|
|
162
166
|
*/
|
|
163
|
-
fromComplexInterval(interval: import("../spec/scale").ScalarDomain | import("../spec/scale").ComplexDomain): number[];
|
|
167
|
+
fromComplexInterval(interval: import("../spec/scale.js").ScalarDomain | import("../spec/scale.js").ComplexDomain): number[];
|
|
164
168
|
#private;
|
|
165
169
|
}
|
|
166
|
-
export type ResolutionMember<T extends import("../spec/channel").ChannelWithScale = import("../spec/channel").ChannelWithScale> = {
|
|
167
|
-
view: import("./unitView").default;
|
|
170
|
+
export type ResolutionMember<T extends import("../spec/channel.js").ChannelWithScale = import("../spec/channel.js").ChannelWithScale> = {
|
|
171
|
+
view: import("./unitView.js").default;
|
|
168
172
|
channel: T;
|
|
169
173
|
};
|
|
170
174
|
//# sourceMappingURL=scaleResolution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaleResolution.d.ts","sourceRoot":"","sources":["../../../src/view/scaleResolution.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scaleResolution.d.ts","sourceRoot":"","sources":["../../../src/view/scaleResolution.js"],"names":[],"mappings":"AAy0BA;;;;;;;;;;GAUG;AACH,6CAFW,OAAO,WAAW,EAAE,OAAO,GAAG,OAAO,WAAW,EAAE,OAAO,EAAE,QA4BrE;AA/zBD,0CAA2C;AAC3C,gCAAiC;AACjC,gCAAiC;AACjC,4BAA6B;AAC7B,4BAA6B;AAE7B;;;;GAIG;AACH;;;;;;;GAOG;AACH;IAyBI;;OAEG;IACH,2DASC;IARG,8CAAsB;IACtB,oDAAoD;IACpD,SADW,gBAAgB,EAAE,CACZ;IACjB,+DAA+D;IAC/D,MADW,MAAM,CACD;IAEhB,iEAAiE;IACjE,MADW,MAAM,CACI;IAGzB;;;;;;;OAOG;IACH,uBAHW,QAAQ,oFAQlB;IAED;;;OAGG;IACH,0BAHW,QAAQ,oFAQlB;IAWD;;;;;;OAMG;IACH,kHA0BC;IAED;;OAEG;IACH,4BAEC;IAED,+BAiBC;IAuBD;;;;;OAKG;IACH,iBAFa,OAAO,kBAAkB,EAAE,KAAK,CA+D5C;IAYD;;;;OAIG;IACH,qEAMC;IAED;;;;OAIG;IACH,+DAQC;IAED;;OAEG;IACH,oBAkCC;IAED;;OAEG;IACH,oDAmBC;IAED,mBAEC;IAED;;OAEG;IACH,oBAFa,mFAA6B,CAOzC;IAED;;;;OAIG;IACH,oBAKC;IAED;;OAEG;IACH,sBAGC;IAUD;;;;;;;OAOG;IACH,kBALW,MAAM,eACN,MAAM,OACN,MAAM,GACJ,OAAO,CAwEnB;IAED;;;;;;OAMG;IACH,eAJW,mFAA6B,aAC7B,OAAO,GAAG,MAAM,iBAgD1B;IAED;;;;OAIG;IACH,qBAcC;IAED;;;;;OAKG;IACH,uBAOC;IA2DD;;;OAGG;IACH,aAFa,OAAO,qBAAqB,EAAE,OAAO,CAajD;IAID;;;;;OAKG;IACH,uBAFW,MAAM,yDAUhB;IAED;;OAEG;IACH,iBAFW,MAAM,yDAKhB;IAED;;;OAGG;IACH,6EAFa,MAAM,CAQlB;IAED;;;OAGG;IACH,mHAFa,MAAM,EAAE,CAOpB;;CA6BJ;wIA3rBY;IAAC,IAAI,EAAE,OAAO,eAAe,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAC"}
|
|
@@ -53,7 +53,7 @@ export const INDEX = "index";
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* @template {ChannelWithScale}[T=ChannelWithScale]
|
|
56
|
-
* @typedef {{view: import("./unitView").default, channel: T}} ResolutionMember
|
|
56
|
+
* @typedef {{view: import("./unitView.js").default, channel: T}} ResolutionMember
|
|
57
57
|
*
|
|
58
58
|
*/
|
|
59
59
|
/**
|
|
@@ -66,18 +66,18 @@ export const INDEX = "index";
|
|
|
66
66
|
*/
|
|
67
67
|
export default class ScaleResolution {
|
|
68
68
|
/**
|
|
69
|
-
* @typedef {import("../types/scaleResolutionApi").ScaleResolutionApi} ScaleResolutionApi
|
|
70
|
-
* @typedef {import("../spec/channel").Channel} Channel
|
|
71
|
-
* @typedef {import("../spec/channel").ChannelWithScale} ChannelWithScale
|
|
72
|
-
* @typedef {import("../spec/scale").NumericDomain} NumericDomain
|
|
73
|
-
* @typedef {import("../spec/scale").ScalarDomain} ScalarDomain
|
|
74
|
-
* @typedef {import("../spec/scale").ComplexDomain} ComplexDomain
|
|
75
|
-
* @typedef {import("../spec/scale").ZoomParams} ZoomParams
|
|
76
|
-
* @typedef {import("./unitView").default} UnitView
|
|
77
|
-
* @typedef {import("../types/encoder").VegaScale} VegaScale
|
|
78
|
-
* @typedef {import("../utils/domainArray").DomainArray} DomainArray
|
|
79
|
-
* @typedef {import("../genome/genome").ChromosomalLocus} ChromosomalLocus
|
|
80
|
-
* @typedef {import("../types/scaleResolutionApi").ScaleResolutionListener} ScaleResolutionListener
|
|
69
|
+
* @typedef {import("../types/scaleResolutionApi.js").ScaleResolutionApi} ScaleResolutionApi
|
|
70
|
+
* @typedef {import("../spec/channel.js").Channel} Channel
|
|
71
|
+
* @typedef {import("../spec/channel.js").ChannelWithScale} ChannelWithScale
|
|
72
|
+
* @typedef {import("../spec/scale.js").NumericDomain} NumericDomain
|
|
73
|
+
* @typedef {import("../spec/scale.js").ScalarDomain} ScalarDomain
|
|
74
|
+
* @typedef {import("../spec/scale.js").ComplexDomain} ComplexDomain
|
|
75
|
+
* @typedef {import("../spec/scale.js").ZoomParams} ZoomParams
|
|
76
|
+
* @typedef {import("./unitView.js").default} UnitView
|
|
77
|
+
* @typedef {import("../types/encoder.js").VegaScale} VegaScale
|
|
78
|
+
* @typedef {import("../utils/domainArray.js").DomainArray} DomainArray
|
|
79
|
+
* @typedef {import("../genome/genome.js").ChromosomalLocus} ChromosomalLocus
|
|
80
|
+
* @typedef {import("../types/scaleResolutionApi.js").ScaleResolutionListener} ScaleResolutionListener
|
|
81
81
|
*/
|
|
82
82
|
|
|
83
83
|
/** @type {number[]} */
|
|
@@ -203,7 +203,7 @@ export default class ScaleResolution {
|
|
|
203
203
|
* Collects and merges scale properties from the participating views.
|
|
204
204
|
* Does not include inferred default values such as schemes etc.
|
|
205
205
|
*
|
|
206
|
-
* @returns {import("../spec/scale").Scale}
|
|
206
|
+
* @returns {import("../spec/scale.js").Scale}
|
|
207
207
|
*/
|
|
208
208
|
#getMergedScaleProps() {
|
|
209
209
|
return getCachedOrCall(this, "mergedScaleProps", () => {
|
|
@@ -224,7 +224,7 @@ export default class ScaleResolution {
|
|
|
224
224
|
* Returns the merged scale properties supplemented with inferred properties
|
|
225
225
|
* and domain.
|
|
226
226
|
*
|
|
227
|
-
* @returns {import("../spec/scale").Scale}
|
|
227
|
+
* @returns {import("../spec/scale.js").Scale}
|
|
228
228
|
*/
|
|
229
229
|
getScaleProps() {
|
|
230
230
|
// eslint-disable-next-line complexity
|
|
@@ -449,7 +449,8 @@ export default class ScaleResolution {
|
|
|
449
449
|
const oldDomain = scale.domain();
|
|
450
450
|
let newDomain = [...oldDomain];
|
|
451
451
|
|
|
452
|
-
|
|
452
|
+
/** @type {number} */
|
|
453
|
+
// @ts-ignore
|
|
453
454
|
let anchor = scale.invert(scaleAnchor);
|
|
454
455
|
|
|
455
456
|
if (this.getScaleProps().reverse) {
|
|
@@ -658,6 +659,10 @@ export default class ScaleResolution {
|
|
|
658
659
|
return props;
|
|
659
660
|
}
|
|
660
661
|
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @returns {import("../genome/genome.js").default}
|
|
665
|
+
*/
|
|
661
666
|
getGenome() {
|
|
662
667
|
if (this.type !== "locus") {
|
|
663
668
|
return undefined;
|
|
@@ -738,7 +743,7 @@ export default class ScaleResolution {
|
|
|
738
743
|
!member.view
|
|
739
744
|
.getLayoutAncestors()
|
|
740
745
|
// TODO: Should check until the resolved scale resolution
|
|
741
|
-
.some((view) => !view.contributesToScaleDomain)
|
|
746
|
+
.some((view) => !view.options.contributesToScaleDomain)
|
|
742
747
|
)
|
|
743
748
|
.map(domainAccessor)
|
|
744
749
|
.filter((domain) => !!domain);
|
|
@@ -753,7 +758,7 @@ export default class ScaleResolution {
|
|
|
753
758
|
*
|
|
754
759
|
* @param {Channel} channel
|
|
755
760
|
* @param {string} dataType
|
|
756
|
-
* @returns {import("../spec/scale").ScaleType}
|
|
761
|
+
* @returns {import("../spec/scale.js").ScaleType}
|
|
757
762
|
*/
|
|
758
763
|
function getDefaultScaleType(channel, dataType) {
|
|
759
764
|
// TODO: Band scale, Bin-Quantitative
|
|
@@ -770,7 +775,7 @@ function getDefaultScaleType(channel, dataType) {
|
|
|
770
775
|
}
|
|
771
776
|
|
|
772
777
|
/**
|
|
773
|
-
* @type {Partial<Record<Channel, (import("../spec/scale").ScaleType | undefined)[]>>}
|
|
778
|
+
* @type {Partial<Record<Channel, (import("../spec/scale.js").ScaleType | undefined)[]>>}
|
|
774
779
|
* Default types: nominal, ordinal, quantitative.
|
|
775
780
|
* undefined = incompatible, "null" = disabled (pass-thru)
|
|
776
781
|
*/
|
|
@@ -812,8 +817,8 @@ function getDefaultScaleType(channel, dataType) {
|
|
|
812
817
|
}
|
|
813
818
|
|
|
814
819
|
/**
|
|
815
|
-
* @param {import("../spec/scale").Scale} props
|
|
816
|
-
* @param {import("../spec/channel").Channel} channel
|
|
820
|
+
* @param {import("../spec/scale.js").Scale} props
|
|
821
|
+
* @param {import("../spec/channel.js").Channel} channel
|
|
817
822
|
*/
|
|
818
823
|
function applyLockedProperties(props, channel) {
|
|
819
824
|
if (isPositionalChannel(channel) && props.type !== "ordinal") {
|
|
@@ -843,13 +848,13 @@ function isZoomParams(zoom) {
|
|
|
843
848
|
* TODO: This may reconfigure channels that are not affected by the change.
|
|
844
849
|
* Causes performance issues with domains that are extracted from data.
|
|
845
850
|
*
|
|
846
|
-
* @param {import("./view").default | import("./view").default[]} fromViews
|
|
851
|
+
* @param {import("./view.js").default | import("./view.js").default[]} fromViews
|
|
847
852
|
*/
|
|
848
853
|
export function reconfigureScales(fromViews) {
|
|
849
854
|
/** @type {Set<ScaleResolution>} */
|
|
850
855
|
const uniqueResolutions = new Set();
|
|
851
856
|
|
|
852
|
-
/** @param {import("./view").default} view */
|
|
857
|
+
/** @param {import("./view.js").default} view */
|
|
853
858
|
function collectResolutions(view) {
|
|
854
859
|
for (const resolution of Object.values(view.resolutions.scale)) {
|
|
855
860
|
uniqueResolutions.add(resolution);
|
|
@@ -863,7 +868,7 @@ export function reconfigureScales(fromViews) {
|
|
|
863
868
|
// Ancestors
|
|
864
869
|
for (const view of fromView.getDataAncestors()) {
|
|
865
870
|
// Skip axis views etc. They should not mess with the domains.
|
|
866
|
-
if (!view.contributesToScaleDomain) {
|
|
871
|
+
if (!view.options.contributesToScaleDomain) {
|
|
867
872
|
break;
|
|
868
873
|
}
|
|
869
874
|
collectResolutions(view);
|