@spectrum-charts/vega-spec-builder-s2 0.1.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/@types/index.d.ts +2 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/@types/src/area/areaSpecBuilder.d.ts +20 -0
- package/dist/@types/src/area/areaSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/area/areaSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/area/areaSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/area/areaUtils.d.ts +25 -0
- package/dist/@types/src/area/areaUtils.d.ts.map +1 -0
- package/dist/@types/src/area/areaUtils.test.d.ts +2 -0
- package/dist/@types/src/area/areaUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisLabelUtils.d.ts +109 -0
- package/dist/@types/src/axis/axisLabelUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisLabelUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisLabelUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisReferenceLineUtils.d.ts +50 -0
- package/dist/@types/src/axis/axisReferenceLineUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisSpecBuilder.d.ts +69 -0
- package/dist/@types/src/axis/axisSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/axis/axisSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/axis/axisSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisTestUtils.d.ts +6 -0
- package/dist/@types/src/axis/axisTestUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisThumbnailUtils.d.ts +80 -0
- package/dist/@types/src/axis/axisThumbnailUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisThumbnailUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisThumbnailUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisTrellisUtils.d.ts +34 -0
- package/dist/@types/src/axis/axisTrellisUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisTrellisUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisTrellisUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisUtils.d.ts +85 -0
- package/dist/@types/src/axis/axisUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts +57 -0
- package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts.map +1 -0
- package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts +2 -0
- package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/barAnnotationUtils.d.ts +46 -0
- package/dist/@types/src/bar/barAnnotationUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/barAnnotationUtils.test.d.ts +2 -0
- package/dist/@types/src/bar/barAnnotationUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/barSpecBuilder.d.ts +35 -0
- package/dist/@types/src/bar/barSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/bar/barSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/bar/barSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/bar/barTestUtils.d.ts +760 -0
- package/dist/@types/src/bar/barTestUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/barUtils.d.ts +56 -0
- package/dist/@types/src/bar/barUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/barUtils.test.d.ts +2 -0
- package/dist/@types/src/bar/barUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/dodgedBarUtils.d.ts +4 -0
- package/dist/@types/src/bar/dodgedBarUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/dodgedBarUtils.test.d.ts +151 -0
- package/dist/@types/src/bar/dodgedBarUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/stackedBarUtils.d.ts +8 -0
- package/dist/@types/src/bar/stackedBarUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/stackedBarUtils.test.d.ts +2 -0
- package/dist/@types/src/bar/stackedBarUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/trellisedBarUtils.d.ts +23 -0
- package/dist/@types/src/bar/trellisedBarUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/trellisedBarUtils.test.d.ts +2 -0
- package/dist/@types/src/bar/trellisedBarUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bullet/bulletDataUtils.d.ts +27 -0
- package/dist/@types/src/bullet/bulletDataUtils.d.ts.map +1 -0
- package/dist/@types/src/bullet/bulletDataUtils.test.d.ts +2 -0
- package/dist/@types/src/bullet/bulletDataUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bullet/bulletMarkUtils.d.ts +22 -0
- package/dist/@types/src/bullet/bulletMarkUtils.d.ts.map +1 -0
- package/dist/@types/src/bullet/bulletMarkUtils.test.d.ts +2 -0
- package/dist/@types/src/bullet/bulletMarkUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bullet/bulletSpecBuilder.d.ts +11 -0
- package/dist/@types/src/bullet/bulletSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/bullet/bulletSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/bullet/bulletSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/bullet/bulletTestUtils.d.ts +4 -0
- package/dist/@types/src/bullet/bulletTestUtils.d.ts.map +1 -0
- package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts +32 -0
- package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts.map +1 -0
- package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts +2 -0
- package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts.map +1 -0
- package/dist/@types/src/chartSpecBuilder.d.ts +39 -0
- package/dist/@types/src/chartSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/chartSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/chartSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/chartTooltip/chartTooltipUtils.d.ts +54 -0
- package/dist/@types/src/chartTooltip/chartTooltipUtils.d.ts.map +1 -0
- package/dist/@types/src/chartTooltip/chartTooltipUtils.test.d.ts +2 -0
- package/dist/@types/src/chartTooltip/chartTooltipUtils.test.d.ts.map +1 -0
- package/dist/@types/src/combo/comboSpecBuilder.d.ts +9 -0
- package/dist/@types/src/combo/comboSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/combo/comboSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/combo/comboSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/data/dataUtils.d.ts +30 -0
- package/dist/@types/src/data/dataUtils.d.ts.map +1 -0
- package/dist/@types/src/data/dataUtils.test.d.ts +2 -0
- package/dist/@types/src/data/dataUtils.test.d.ts.map +1 -0
- package/dist/@types/src/donut/donutSpecBuilder.d.ts +13 -0
- package/dist/@types/src/donut/donutSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/donut/donutSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/donut/donutSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/donut/donutSummaryUtils.d.ts +71 -0
- package/dist/@types/src/donut/donutSummaryUtils.d.ts.map +1 -0
- package/dist/@types/src/donut/donutSummaryUtils.test.d.ts +2 -0
- package/dist/@types/src/donut/donutSummaryUtils.test.d.ts.map +1 -0
- package/dist/@types/src/donut/donutTestUtils.d.ts +3 -0
- package/dist/@types/src/donut/donutTestUtils.d.ts.map +1 -0
- package/dist/@types/src/donut/donutUtils.d.ts +4 -0
- package/dist/@types/src/donut/donutUtils.d.ts.map +1 -0
- package/dist/@types/src/donut/segmentLabelUtils.d.ts +27 -0
- package/dist/@types/src/donut/segmentLabelUtils.d.ts.map +1 -0
- package/dist/@types/src/donut/segmentLabelUtils.test.d.ts +2 -0
- package/dist/@types/src/donut/segmentLabelUtils.test.d.ts.map +1 -0
- package/dist/@types/src/expressionFunctions/expressionFunctions.d.ts +60 -0
- package/dist/@types/src/expressionFunctions/expressionFunctions.d.ts.map +1 -0
- package/dist/@types/src/expressionFunctions/expressionFunctions.test.d.ts +2 -0
- package/dist/@types/src/expressionFunctions/expressionFunctions.test.d.ts.map +1 -0
- package/dist/@types/src/expressionFunctions/index.d.ts +2 -0
- package/dist/@types/src/expressionFunctions/index.d.ts.map +1 -0
- package/dist/@types/src/index.d.ts +6 -0
- package/dist/@types/src/index.d.ts.map +1 -0
- package/dist/@types/src/legend/legendFacetUtils.d.ts +25 -0
- package/dist/@types/src/legend/legendFacetUtils.d.ts.map +1 -0
- package/dist/@types/src/legend/legendFacetUtils.test.d.ts +2 -0
- package/dist/@types/src/legend/legendFacetUtils.test.d.ts.map +1 -0
- package/dist/@types/src/legend/legendHighlightUtils.d.ts +28 -0
- package/dist/@types/src/legend/legendHighlightUtils.d.ts.map +1 -0
- package/dist/@types/src/legend/legendHighlightUtils.test.d.ts +2 -0
- package/dist/@types/src/legend/legendHighlightUtils.test.d.ts.map +1 -0
- package/dist/@types/src/legend/legendSpecBuilder.d.ts +42 -0
- package/dist/@types/src/legend/legendSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/legend/legendSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/legend/legendSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/legend/legendTestUtils.d.ts +11 -0
- package/dist/@types/src/legend/legendTestUtils.d.ts.map +1 -0
- package/dist/@types/src/legend/legendUtils.d.ts +61 -0
- package/dist/@types/src/legend/legendUtils.d.ts.map +1 -0
- package/dist/@types/src/legend/legendUtils.test.d.ts +2 -0
- package/dist/@types/src/legend/legendUtils.test.d.ts.map +1 -0
- package/dist/@types/src/line/lineDataUtils.d.ts +20 -0
- package/dist/@types/src/line/lineDataUtils.d.ts.map +1 -0
- package/dist/@types/src/line/lineDataUtils.test.d.ts +2 -0
- package/dist/@types/src/line/lineDataUtils.test.d.ts.map +1 -0
- package/dist/@types/src/line/lineMarkUtils.d.ts +26 -0
- package/dist/@types/src/line/lineMarkUtils.d.ts.map +1 -0
- package/dist/@types/src/line/lineMarkUtils.test.d.ts +2 -0
- package/dist/@types/src/line/lineMarkUtils.test.d.ts.map +1 -0
- package/dist/@types/src/line/linePointUtils.d.ts +71 -0
- package/dist/@types/src/line/linePointUtils.d.ts.map +1 -0
- package/dist/@types/src/line/linePointUtils.test.d.ts +2 -0
- package/dist/@types/src/line/linePointUtils.test.d.ts.map +1 -0
- package/dist/@types/src/line/lineSpecBuilder.d.ts +19 -0
- package/dist/@types/src/line/lineSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/line/lineSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/line/lineSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/line/lineTestUtils.d.ts +5 -0
- package/dist/@types/src/line/lineTestUtils.d.ts.map +1 -0
- package/dist/@types/src/line/lineUtils.d.ts +43 -0
- package/dist/@types/src/line/lineUtils.d.ts.map +1 -0
- package/dist/@types/src/line/lineUtils.test.d.ts +2 -0
- package/dist/@types/src/line/lineUtils.test.d.ts.map +1 -0
- package/dist/@types/src/marks/markUtils.d.ts +129 -0
- package/dist/@types/src/marks/markUtils.d.ts.map +1 -0
- package/dist/@types/src/marks/markUtils.test.d.ts +2 -0
- package/dist/@types/src/marks/markUtils.test.d.ts.map +1 -0
- package/dist/@types/src/metricRange/metricRangeUtils.d.ts +22 -0
- package/dist/@types/src/metricRange/metricRangeUtils.d.ts.map +1 -0
- package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts +2 -0
- package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts.map +1 -0
- package/dist/@types/src/scale/scaleSpecBuilder.d.ts +91 -0
- package/dist/@types/src/scale/scaleSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/scale/scaleUtils.d.ts +15 -0
- package/dist/@types/src/scale/scaleUtils.d.ts.map +1 -0
- package/dist/@types/src/scale/scaleUtils.test.d.ts +2 -0
- package/dist/@types/src/scale/scaleUtils.test.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterAnnotation/index.d.ts +2 -0
- package/dist/@types/src/scatter/scatterAnnotation/index.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.d.ts +6 -0
- package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.test.d.ts +2 -0
- package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.test.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterMarkUtils.d.ts +31 -0
- package/dist/@types/src/scatter/scatterMarkUtils.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts +2 -0
- package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterSpecBuilder.d.ts +27 -0
- package/dist/@types/src/scatter/scatterSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterTestUtils.d.ts +3 -0
- package/dist/@types/src/scatter/scatterTestUtils.d.ts.map +1 -0
- package/dist/@types/src/scatterPath/index.d.ts +2 -0
- package/dist/@types/src/scatterPath/index.d.ts.map +1 -0
- package/dist/@types/src/scatterPath/scatterPathUtils.d.ts +37 -0
- package/dist/@types/src/scatterPath/scatterPathUtils.d.ts.map +1 -0
- package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts +2 -0
- package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts.map +1 -0
- package/dist/@types/src/signal/signalSpecBuilder.d.ts +42 -0
- package/dist/@types/src/signal/signalSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/signal/signalSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/signal/signalSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/specTestUtils.d.ts +9 -0
- package/dist/@types/src/specTestUtils.d.ts.map +1 -0
- package/dist/@types/src/specUtils.d.ts +110 -0
- package/dist/@types/src/specUtils.d.ts.map +1 -0
- package/dist/@types/src/specUtils.test.d.ts +2 -0
- package/dist/@types/src/specUtils.test.d.ts.map +1 -0
- package/dist/@types/src/textUtils.d.ts +11 -0
- package/dist/@types/src/textUtils.d.ts.map +1 -0
- package/dist/@types/src/textUtils.test.d.ts +2 -0
- package/dist/@types/src/textUtils.test.d.ts.map +1 -0
- package/dist/@types/src/title/titleSpecBuilder.d.ts +4 -0
- package/dist/@types/src/title/titleSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/title/titleSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/title/titleSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/index.d.ts +5 -0
- package/dist/@types/src/trendline/index.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts +72 -0
- package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineDataUtils.d.ts +54 -0
- package/dist/@types/src/trendline/trendlineDataUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineMarkUtils.d.ts +70 -0
- package/dist/@types/src/trendline/trendlineMarkUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineScaleUtils.d.ts +9 -0
- package/dist/@types/src/trendline/trendlineScaleUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineSignalUtils.d.ts +4 -0
- package/dist/@types/src/trendline/trendlineSignalUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineTestUtils.d.ts +4 -0
- package/dist/@types/src/trendline/trendlineTestUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineUtils.d.ts +106 -0
- package/dist/@types/src/trendline/trendlineUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendlineAnnotation/index.d.ts +2 -0
- package/dist/@types/src/trendlineAnnotation/index.d.ts.map +1 -0
- package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts +60 -0
- package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts.map +1 -0
- package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts +2 -0
- package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts.map +1 -0
- package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts +35 -0
- package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/axis/axisSpec.types.d.ts +148 -0
- package/dist/@types/src/types/axis/axisSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/axis/axisThumbnailSpec.types.d.ts +9 -0
- package/dist/@types/src/types/axis/axisThumbnailSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/axis/index.d.ts +5 -0
- package/dist/@types/src/types/axis/index.d.ts.map +1 -0
- package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts +34 -0
- package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/chartSpec.types.d.ts +72 -0
- package/dist/@types/src/types/chartSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts +31 -0
- package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/dialogs/chartTooltipSpec.types.d.ts +14 -0
- package/dist/@types/src/types/dialogs/chartTooltipSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/dialogs/index.d.ts +3 -0
- package/dist/@types/src/types/dialogs/index.d.ts.map +1 -0
- package/dist/@types/src/types/index.d.ts +9 -0
- package/dist/@types/src/types/index.d.ts.map +1 -0
- package/dist/@types/src/types/legendSpec.types.d.ts +68 -0
- package/dist/@types/src/types/legendSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/areaSpec.types.d.ts +41 -0
- package/dist/@types/src/types/marks/areaSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/barSpec.types.d.ts +69 -0
- package/dist/@types/src/types/marks/barSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts +15 -0
- package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/bulletSpec.types.d.ts +75 -0
- package/dist/@types/src/types/marks/bulletSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/comboSpec.types.d.ts +11 -0
- package/dist/@types/src/types/marks/comboSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/donutSpec.types.d.ts +36 -0
- package/dist/@types/src/types/marks/donutSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/index.d.ts +11 -0
- package/dist/@types/src/types/marks/index.d.ts.map +1 -0
- package/dist/@types/src/types/marks/lineSpec.types.d.ts +61 -0
- package/dist/@types/src/types/marks/lineSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/scatterSpec.types.d.ts +83 -0
- package/dist/@types/src/types/marks/scatterSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts +22 -0
- package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts +18 -0
- package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/index.d.ts +9 -0
- package/dist/@types/src/types/marks/supplemental/index.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts +30 -0
- package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/scatterAnnotationSpec.types.d.ts +17 -0
- package/dist/@types/src/types/marks/supplemental/scatterAnnotationSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts +24 -0
- package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts +24 -0
- package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts +32 -0
- package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts +62 -0
- package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/vennSpec.types.d.ts +30 -0
- package/dist/@types/src/types/marks/vennSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/specUtil.types.d.ts +97 -0
- package/dist/@types/src/types/specUtil.types.d.ts.map +1 -0
- package/dist/@types/src/types/spectrumVizColor.types.d.ts +9 -0
- package/dist/@types/src/types/spectrumVizColor.types.d.ts.map +1 -0
- package/dist/@types/src/types/titleSpec.types.d.ts +16 -0
- package/dist/@types/src/types/titleSpec.types.d.ts.map +1 -0
- package/dist/@types/src/vegaEmbedUtils.d.ts +35 -0
- package/dist/@types/src/vegaEmbedUtils.d.ts.map +1 -0
- package/dist/@types/src/vegaEmbedUtils.test.d.ts +2 -0
- package/dist/@types/src/vegaEmbedUtils.test.d.ts.map +1 -0
- package/dist/@types/src/venn/vennSpecBuilder.d.ts +19 -0
- package/dist/@types/src/venn/vennSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/venn/vennSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/venn/vennSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/venn/vennTestUtils.d.ts +8 -0
- package/dist/@types/src/venn/vennTestUtils.d.ts.map +1 -0
- package/dist/@types/src/venn/vennUtils.d.ts +35 -0
- package/dist/@types/src/venn/vennUtils.d.ts.map +1 -0
- package/dist/@types/src/venn/vennUtils.test.d.ts +2 -0
- package/dist/@types/src/venn/vennUtils.test.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.LICENSE.txt +3 -0
- package/dist/index.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ColorScheme, HighlightedItem } from './chartSpec.types';
|
|
2
|
+
import { ChartPopoverOptions } from './dialogs/chartPopoverSpec.types';
|
|
3
|
+
import { ColorFacet, FacetRef, LineTypeFacet, LineWidthFacet, OpacityFacet, PartiallyRequired, Position, SymbolShapeFacet } from './specUtil.types';
|
|
4
|
+
export type LegendDescription = {
|
|
5
|
+
seriesName: string;
|
|
6
|
+
description: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
};
|
|
9
|
+
export type LegendLabel = {
|
|
10
|
+
seriesName: string | number;
|
|
11
|
+
label: string;
|
|
12
|
+
maxLength?: number;
|
|
13
|
+
};
|
|
14
|
+
export interface LegendOptions {
|
|
15
|
+
/** color or key in the data that is used as the color facet for the symbols */
|
|
16
|
+
color?: ColorFacet;
|
|
17
|
+
/** series that should be hidden by default (uncontrolled) */
|
|
18
|
+
defaultHiddenSeries?: string[];
|
|
19
|
+
/** descriptions for each of the series */
|
|
20
|
+
descriptions?: LegendDescription[];
|
|
21
|
+
/** `true` if there is a onMouseOut of onMouseOver on the LegendProps. */
|
|
22
|
+
hasMouseInteraction?: boolean;
|
|
23
|
+
/** `true` if there is an onClick on the LegendProps */
|
|
24
|
+
hasOnClick?: boolean;
|
|
25
|
+
/** series names to hide from the legend */
|
|
26
|
+
hiddenEntries?: string[];
|
|
27
|
+
/** whether or not to include highlight interactions (controlled) */
|
|
28
|
+
highlight?: boolean;
|
|
29
|
+
/** allows the user to hide/show series by clicking on the legend entry (uncontrolled) */
|
|
30
|
+
isToggleable?: boolean;
|
|
31
|
+
/** keys from the data to generate the legend for. Defaults to all keys used to facet the data. */
|
|
32
|
+
keys?: string[];
|
|
33
|
+
/** labels for each of the series */
|
|
34
|
+
legendLabels?: LegendLabel[];
|
|
35
|
+
/** max width in pixels before truncating a legend label. Influences legend column layout by calculating how many legend items can fit horizontally based on the label width. */
|
|
36
|
+
labelLimit?: number;
|
|
37
|
+
/** line type or key in the data that is used as the line type facet for the symbols */
|
|
38
|
+
lineType?: LineTypeFacet;
|
|
39
|
+
/** line type or key in the data that is used as the line type facet for the symbols */
|
|
40
|
+
lineWidth?: LineWidthFacet;
|
|
41
|
+
/** Sets the name of the component. */
|
|
42
|
+
name?: string;
|
|
43
|
+
/** opacity or key in the data that is used as the opacity facet for the symbols */
|
|
44
|
+
opacity?: OpacityFacet;
|
|
45
|
+
/** where the legend should be displayed */
|
|
46
|
+
position?: Position;
|
|
47
|
+
/** customize the legend symbol shape */
|
|
48
|
+
symbolShape?: SymbolShapeFacet;
|
|
49
|
+
/** legend title */
|
|
50
|
+
title?: string;
|
|
51
|
+
/** The maximum allowed length in pixels of the legend title. */
|
|
52
|
+
titleLimit?: number;
|
|
53
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
54
|
+
}
|
|
55
|
+
type LegendOptionsWithDefaults = 'hasMouseInteraction' | 'hasOnClick' | 'hiddenEntries' | 'highlight' | 'isToggleable' | 'position' | 'name';
|
|
56
|
+
export interface LegendSpecOptions extends PartiallyRequired<LegendOptions, LegendOptionsWithDefaults> {
|
|
57
|
+
color?: FacetRef<string>;
|
|
58
|
+
colorScheme: ColorScheme;
|
|
59
|
+
hiddenSeries: string[];
|
|
60
|
+
highlightedItem?: HighlightedItem;
|
|
61
|
+
highlightedSeries?: string | number;
|
|
62
|
+
index: number;
|
|
63
|
+
lineType?: FacetRef<number[]>;
|
|
64
|
+
lineWidth?: FacetRef<number>;
|
|
65
|
+
symbolShape?: FacetRef<string>;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=legendSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legendSpec.types.d.ts","sourceRoot":"","sources":["../../../../src/types/legendSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,iBAAiB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5F,MAAM,MAAM,WAAW,GAA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,GAC1B,qBAAqB,GACrB,YAAY,GACZ,eAAe,GACf,WAAW,GACX,cAAc,GACd,UAAU,GACV,MAAM,CAAC;AAEX,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,CAAC,aAAa,EAAE,yBAAyB,CAAC;IACpG,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
2
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
3
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
4
|
+
import { PartiallyRequired, ScaleType } from '../specUtil.types';
|
|
5
|
+
export interface AreaOptions {
|
|
6
|
+
markType: 'area';
|
|
7
|
+
/** Sets the name of the component. */
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Key in the data that is used as the color facet */
|
|
10
|
+
color?: string;
|
|
11
|
+
/** Key in the data that is used as the metric */
|
|
12
|
+
metric?: string;
|
|
13
|
+
/** Data field that the metric is trended against (x-axis for horizontal orientation) */
|
|
14
|
+
dimension?: string;
|
|
15
|
+
/** Optional field used to set the stack order of the area (higher order = stacked on top/right) */
|
|
16
|
+
order?: string;
|
|
17
|
+
/** Optional field used to set the area opacity */
|
|
18
|
+
opacity?: number;
|
|
19
|
+
/** Sets the horizontal padding, this is a ratio from 0 to 1 for categorical scales (point) and a pixel value for continuous scales (time, linear) */
|
|
20
|
+
padding?: number;
|
|
21
|
+
/** Sets the type of scale that should be used for the trend */
|
|
22
|
+
scaleType?: ScaleType;
|
|
23
|
+
/** Data field for the start of the area */
|
|
24
|
+
metricStart?: string;
|
|
25
|
+
/** Data field for the end of the area */
|
|
26
|
+
metricEnd?: string;
|
|
27
|
+
/** Popover that is shown when hovering over the area */
|
|
28
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
29
|
+
/** Tooltip that is shown when hovering over the area */
|
|
30
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
31
|
+
}
|
|
32
|
+
type AreaOptionsWithDefaults = 'chartTooltips' | 'chartPopovers' | 'color' | 'dimension' | 'metric' | 'name' | 'opacity' | 'scaleType';
|
|
33
|
+
export interface AreaSpecOptions extends PartiallyRequired<AreaOptions, AreaOptionsWithDefaults> {
|
|
34
|
+
colorScheme: ColorScheme;
|
|
35
|
+
highlightedItem?: HighlightedItem;
|
|
36
|
+
idKey: string;
|
|
37
|
+
interactiveMarkName?: string;
|
|
38
|
+
index: number;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=areaSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areaSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/areaSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEjE,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IAEjB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qJAAqJ;IACrJ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,SAAS,CAAC;IAGtB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,wDAAwD;IACxD,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,wDAAwD;IACxD,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACvC;AAED,KAAK,uBAAuB,GACxB,eAAe,GACf,eAAe,GACf,OAAO,GACP,WAAW,GACX,QAAQ,GACR,MAAM,GACN,SAAS,GACT,WAAW,CAAC;AAEhB,MAAM,WAAW,eAAgB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC9F,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
2
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
3
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
4
|
+
import { ColorFacet, LineTypeFacet, LineWidth, OpacityFacet, Orientation, PartiallyRequired } from '../specUtil.types';
|
|
5
|
+
import { BarAnnotationOptions } from './supplemental/barAnnotationSpec.types';
|
|
6
|
+
import { TrendlineOptions } from './supplemental/trendlineSpec.types';
|
|
7
|
+
export type DualFacet = [string, string];
|
|
8
|
+
export type BarType = 'dodged' | 'stacked';
|
|
9
|
+
export interface BarOptions {
|
|
10
|
+
markType: 'bar';
|
|
11
|
+
/** Key in the data that is used as the metric */
|
|
12
|
+
metric?: string;
|
|
13
|
+
/** Bar color or key in the data that is used as the color facet */
|
|
14
|
+
color?: ColorFacet | DualFacet;
|
|
15
|
+
/** Data field used for the bar categories (x-axis for a vertical bar) */
|
|
16
|
+
dimension?: string;
|
|
17
|
+
/** Data type field used for the bar categories (x-axis for a vertical bar) */
|
|
18
|
+
dimensionDataType?: string;
|
|
19
|
+
/** Whether to scale the last series in the data separately using the secondary metric axis */
|
|
20
|
+
dualMetricAxis?: boolean;
|
|
21
|
+
/** Sets the inner padding between bars in a group */
|
|
22
|
+
groupedPadding?: number;
|
|
23
|
+
/** `true` if BarProps has an onClick callback. Will add the mouse pointer to the bar on hover. */
|
|
24
|
+
hasOnClick?: boolean;
|
|
25
|
+
/** Should the top-left and top-right corners of the bars be square? Round by default */
|
|
26
|
+
hasSquareCorners?: boolean;
|
|
27
|
+
/** Line type or key in the data that is used as the line type facet */
|
|
28
|
+
lineType?: LineTypeFacet | DualFacet;
|
|
29
|
+
/** Border width of the bar */
|
|
30
|
+
lineWidth?: LineWidth;
|
|
31
|
+
/** Sets the name of the component. */
|
|
32
|
+
name?: string;
|
|
33
|
+
/** Optional field used to set the stack order of the bar (higher order = higher on bar) */
|
|
34
|
+
order?: string;
|
|
35
|
+
/** The direction of the bars. Defaults to "vertical". */
|
|
36
|
+
orientation?: Orientation;
|
|
37
|
+
/** Opacity or key in the data that is used as the opacity facet */
|
|
38
|
+
opacity?: OpacityFacet | DualFacet;
|
|
39
|
+
/** Sets inner padding (https://vega.github.io/vega/docs/scales/#band) */
|
|
40
|
+
paddingRatio?: number;
|
|
41
|
+
/** Sets the chart area padding, this is a ratio between 0 and 1 (https://vega.github.io/vega/docs/scales/#band) */
|
|
42
|
+
paddingOuter?: number;
|
|
43
|
+
/** The data field used for the trellis categories */
|
|
44
|
+
trellis?: string;
|
|
45
|
+
/** Orientation of the trellis. Only applicable if `trellis` is also defined. Defaults to "horizontal". */
|
|
46
|
+
trellisOrientation?: Orientation;
|
|
47
|
+
/** Padding between trellis groups; ratio between 0 and 1 (https://vega.github.io/vega/docs/scales/#band). Only applicable if `trellis` is also defined. Defaults to 0.2. */
|
|
48
|
+
trellisPadding?: number;
|
|
49
|
+
/** Bar type. */
|
|
50
|
+
type?: BarType;
|
|
51
|
+
/** Axis that the metric is trended against (y-axis for a vertical bar) */
|
|
52
|
+
metricAxis?: string;
|
|
53
|
+
barAnnotations?: BarAnnotationOptions[];
|
|
54
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
55
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
56
|
+
trendlines?: TrendlineOptions[];
|
|
57
|
+
}
|
|
58
|
+
type BarOptionsWithDefaults = 'barAnnotations' | 'color' | 'chartPopovers' | 'chartTooltips' | 'dimension' | 'hasOnClick' | 'hasSquareCorners' | 'lineType' | 'lineWidth' | 'metric' | 'name' | 'opacity' | 'paddingRatio' | 'orientation' | 'trellisOrientation' | 'trellisPadding' | 'trendlines' | 'type';
|
|
59
|
+
export interface BarSpecOptions extends PartiallyRequired<BarOptions, BarOptionsWithDefaults> {
|
|
60
|
+
colorScheme: ColorScheme;
|
|
61
|
+
comboSiblingNames?: string[];
|
|
62
|
+
dimensionScaleType: 'band';
|
|
63
|
+
highlightedItem?: HighlightedItem;
|
|
64
|
+
idKey: string;
|
|
65
|
+
index: number;
|
|
66
|
+
interactiveMarkName: string | undefined;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=barSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"barSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/barSpec.types.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-0,0 +1,15 @@
|
|
|
1
|
+
import { Orientation } from '../specUtil.types';
|
|
2
|
+
import { LineOptions } from './lineSpec.types';
|
|
3
|
+
export type BigNumberNumberType = 'linear' | 'percentage';
|
|
4
|
+
export type BigNumberMethod = 'sum' | 'avg' | 'last';
|
|
5
|
+
export interface BigNumberOptions {
|
|
6
|
+
markType: 'bigNumber';
|
|
7
|
+
orientation: Orientation;
|
|
8
|
+
label: string;
|
|
9
|
+
dataKey: string;
|
|
10
|
+
numberFormat?: string;
|
|
11
|
+
numberType?: BigNumberNumberType;
|
|
12
|
+
method?: BigNumberMethod;
|
|
13
|
+
lines?: LineOptions[];
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=bigNumberSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigNumberSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/bigNumberSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,YAAY,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,WAAW,CAAC;IAEtB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,MAAM,CAAC,EAAE,eAAe,CAAC;IAGzB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;CACvB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ColorScheme } from '../chartSpec.types';
|
|
2
|
+
import { NumberFormat, PartiallyRequired } from '../specUtil.types';
|
|
3
|
+
export type ThresholdBackground = {
|
|
4
|
+
thresholdMin?: number;
|
|
5
|
+
thresholdMax?: number;
|
|
6
|
+
fill?: string;
|
|
7
|
+
};
|
|
8
|
+
export interface BulletOptions {
|
|
9
|
+
markType: 'bullet';
|
|
10
|
+
/** Key in the data that is used as the color facet */
|
|
11
|
+
color?: string;
|
|
12
|
+
/** Data field that the metric is trended against (x-axis for horizontal orientation) */
|
|
13
|
+
dimension?: string;
|
|
14
|
+
/** Specifies the direction the bars should be ordered (row/column) */
|
|
15
|
+
direction?: 'row' | 'column';
|
|
16
|
+
/** Specifies if the labels should be in top of the bullet chart or to the side. Side labels are not supported in row mode. */
|
|
17
|
+
labelPosition?: 'side' | 'top';
|
|
18
|
+
/** Maximum value for the scale. This value must be greater than zero. */
|
|
19
|
+
maxScaleValue?: number;
|
|
20
|
+
/** Key in the data that is used as the metric */
|
|
21
|
+
metric?: string;
|
|
22
|
+
/** Key in the data that contains a custom label for the metric value. When provided, this label will be displayed instead of the metric value. */
|
|
23
|
+
metricLabel?: string;
|
|
24
|
+
/** Adds an axis that follows the max target in basic mode */
|
|
25
|
+
metricAxis?: boolean;
|
|
26
|
+
/** Sets the name of the component. */
|
|
27
|
+
name?: string;
|
|
28
|
+
/** d3 number format specifier.
|
|
29
|
+
* Sets the number format for the summary value.
|
|
30
|
+
*
|
|
31
|
+
* see {@link https://d3js.org/d3-format#locale_format}
|
|
32
|
+
*/
|
|
33
|
+
numberFormat?: NumberFormat;
|
|
34
|
+
/** Specifies if the scale should be normal, fixed, or flexible.
|
|
35
|
+
*
|
|
36
|
+
* In normal mode the maximum scale value will be calculated using the maximum value of the metric and target data fields.
|
|
37
|
+
*
|
|
38
|
+
* In fixed mode the maximum scale value will be set as the maxScaleValue prop.
|
|
39
|
+
*
|
|
40
|
+
* In flexible mode the maximum scale value will be calculated using the maximum value of either the maxScaleValue prop or maximum value of the metric and target data fields.
|
|
41
|
+
* This means that the scale max will be set to be the maxScaleValue prop until the data values overtake it.
|
|
42
|
+
*/
|
|
43
|
+
scaleType?: 'normal' | 'fixed' | 'flexible';
|
|
44
|
+
/** Flag to control whether the target is shown */
|
|
45
|
+
showTarget?: boolean;
|
|
46
|
+
/** Flag to control whether the target value is shown. */
|
|
47
|
+
showTargetValue?: boolean;
|
|
48
|
+
/** Target line */
|
|
49
|
+
target?: string;
|
|
50
|
+
/** Key in the data that contains a label for the target value. When provided, this label will be displayed instead of the target value. */
|
|
51
|
+
targetLabel?: string;
|
|
52
|
+
/** changes color based on threshold */
|
|
53
|
+
/** If true, the metric bar will be colored according to the thresholds. */
|
|
54
|
+
thresholdBarColor?: boolean;
|
|
55
|
+
/** Array of threshold definitions to be rendered as background bands on the bullet chart.
|
|
56
|
+
*
|
|
57
|
+
* Each threshold object supports:
|
|
58
|
+
* `thresholdMin` (optional): The lower bound of the threshold. If undefined, the threshold starts from the beginning of the x-scale.
|
|
59
|
+
*
|
|
60
|
+
* `thresholdMax` (optional): The upper bound of the threshold. If undefined, the threshold extends to the end of the x-scale.
|
|
61
|
+
*
|
|
62
|
+
* `fill` : The fill color to use for the threshold background.
|
|
63
|
+
*/
|
|
64
|
+
thresholds?: ThresholdBackground[];
|
|
65
|
+
/** Color regions that sit behind the bullet bar */
|
|
66
|
+
track?: boolean;
|
|
67
|
+
}
|
|
68
|
+
type BulletOptionsWithDefaults = 'name' | 'metric' | 'dimension' | 'target' | 'color' | 'direction' | 'showTarget' | 'showTargetValue' | 'labelPosition' | 'scaleType' | 'maxScaleValue' | 'track' | 'metricAxis' | 'thresholdBarColor';
|
|
69
|
+
export interface BulletSpecOptions extends PartiallyRequired<BulletOptions, BulletOptionsWithDefaults> {
|
|
70
|
+
colorScheme: ColorScheme;
|
|
71
|
+
idKey: string;
|
|
72
|
+
index: number;
|
|
73
|
+
}
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=bulletSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bul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CAAuC;IACvC,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACnC,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,KAAK,yBAAyB,GAC1B,MAAM,GACN,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,OAAO,GACP,WAAW,GACX,YAAY,GACZ,iBAAiB,GACjB,eAAe,GACf,WAAW,GACX,eAAe,GACf,OAAO,GACP,YAAY,GACZ,mBAAmB,CAAC;AAExB,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,CAAC,aAAa,EAAE,yBAAyB,CAAC;IACpG,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BarOptions } from './barSpec.types';
|
|
2
|
+
import { LineOptions } from './lineSpec.types';
|
|
3
|
+
export interface ComboOptions {
|
|
4
|
+
markType: 'combo';
|
|
5
|
+
/** Data field that the metrics are trended against (x-axis for horizontal orientation) */
|
|
6
|
+
dimension?: string;
|
|
7
|
+
/** Sets the name of the component. */
|
|
8
|
+
name?: string;
|
|
9
|
+
marks?: (BarOptions | LineOptions)[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=comboSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comboSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/comboSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAElB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,CAAC,UAAU,GAAG,WAAW,CAAC,EAAE,CAAC;CACtC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
2
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
3
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
4
|
+
import { PartiallyRequired } from '../specUtil.types';
|
|
5
|
+
import { DonutSummaryOptions } from './supplemental/dountSummarySpec.types';
|
|
6
|
+
import { SegmentLabelOptions } from './supplemental/segmentLabelSpec.types';
|
|
7
|
+
export interface DonutOptions {
|
|
8
|
+
markType: 'donut';
|
|
9
|
+
/** Key in the data that is used as the color facet */
|
|
10
|
+
color?: string;
|
|
11
|
+
/** Ratio of the donut inner radius / donut outer radius. 0 is a pie chart. 0.85 is the default. */
|
|
12
|
+
holeRatio?: number;
|
|
13
|
+
/** Determines if the center metric should be displayed as a percent. if true, data should only be two data points, which sum to 1
|
|
14
|
+
* Also, if true, will display the first datapoint as a percent */
|
|
15
|
+
isBoolean?: boolean;
|
|
16
|
+
/** Key in the data that is used as the metric */
|
|
17
|
+
metric?: string;
|
|
18
|
+
/** Sets the name of the component. */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** Start angle of the donut in radians (0 is top dead center, and default) */
|
|
21
|
+
startAngle?: number;
|
|
22
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
23
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
24
|
+
donutSummaries?: DonutSummaryOptions[];
|
|
25
|
+
segmentLabels?: SegmentLabelOptions[];
|
|
26
|
+
}
|
|
27
|
+
type DonutOptionsWithDefaults = 'chartPopovers' | 'chartTooltips' | 'color' | 'donutSummaries' | 'holeRatio' | 'isBoolean' | 'metric' | 'name' | 'segmentLabels' | 'startAngle';
|
|
28
|
+
export interface DonutSpecOptions extends PartiallyRequired<DonutOptions, DonutOptionsWithDefaults> {
|
|
29
|
+
colorScheme: ColorScheme;
|
|
30
|
+
highlightedItem?: HighlightedItem;
|
|
31
|
+
idKey: string;
|
|
32
|
+
index: number;
|
|
33
|
+
markType: 'donut';
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=donutSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"donutSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/donutSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAE5E,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAElB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mGAAmG;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;sEACkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACvC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACvC;AAED,KAAK,wBAAwB,GACzB,eAAe,GACf,eAAe,GACf,OAAO,GACP,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,QAAQ,GACR,MAAM,GACN,eAAe,GACf,YAAY,CAAC;AAEjB,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB,CAAC,YAAY,EAAE,wBAAwB,CAAC;IACjG,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './areaSpec.types';
|
|
2
|
+
export * from './barSpec.types';
|
|
3
|
+
export * from './bigNumberSpec.types';
|
|
4
|
+
export * from './bulletSpec.types';
|
|
5
|
+
export * from './comboSpec.types';
|
|
6
|
+
export * from './donutSpec.types';
|
|
7
|
+
export * from './lineSpec.types';
|
|
8
|
+
export * from './scatterSpec.types';
|
|
9
|
+
export * from './vennSpec.types';
|
|
10
|
+
export * from './supplemental';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/index.ts"],"names":[],"mappings":"AAYA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { INTERACTION_MODE } from '@spectrum-charts/constants';
|
|
2
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
3
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
4
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
5
|
+
import { ColorFacet, FacetRef, LineTypeFacet, LineWidth, OpacityFacet, PartiallyRequired, ScaleType } from '../specUtil.types';
|
|
6
|
+
import { MetricRangeOptions } from './supplemental/metricRangeSpec.types';
|
|
7
|
+
import { TrendlineOptions } from './supplemental/trendlineSpec.types';
|
|
8
|
+
export type InteractionMode = `${INTERACTION_MODE}`;
|
|
9
|
+
export interface LineOptions {
|
|
10
|
+
markType: 'line';
|
|
11
|
+
/** Sets the name of the component. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Key in the data that is used as the metric */
|
|
14
|
+
metric?: string;
|
|
15
|
+
/** Line color or key in the data that is used as the color facet */
|
|
16
|
+
color?: ColorFacet;
|
|
17
|
+
/** Data field that the value is trended against (x-axis) */
|
|
18
|
+
dimension?: string;
|
|
19
|
+
/** `true` if BarProps has an onClick callback. Will add the mouse pointer to the bar on hover. */
|
|
20
|
+
hasOnClick?: boolean;
|
|
21
|
+
/** Line type or key in the data that is used as the line type facet */
|
|
22
|
+
lineType?: LineTypeFacet;
|
|
23
|
+
/** Opacity or key in the data that is used as the opacity facet */
|
|
24
|
+
opacity?: OpacityFacet;
|
|
25
|
+
/** Sets the chart area padding, this is a ratio from 0 to 1 for categorical scales (point) and a pixel value for continuous scales (time, linear) */
|
|
26
|
+
padding?: number;
|
|
27
|
+
pointSize?: number;
|
|
28
|
+
/** Line to be interpreted and rendered as a sparkline. For example, Changes the fill of static points. */
|
|
29
|
+
isSparkline?: boolean;
|
|
30
|
+
/** Sparkline's method is last - meaning that last element of data has the static point */
|
|
31
|
+
isMethodLast?: boolean;
|
|
32
|
+
/** Sets the type of scale that should be used for the trend */
|
|
33
|
+
scaleType?: ScaleType;
|
|
34
|
+
/** Key in the data that if it exists and the value resolves to true for each data object, a point will be drawn for that data point on the line. */
|
|
35
|
+
staticPoint?: string;
|
|
36
|
+
/** Sets the interaction mode for the line */
|
|
37
|
+
interactionMode?: InteractionMode;
|
|
38
|
+
/** Axis that the metric is trended against (y-axis) */
|
|
39
|
+
metricAxis?: string;
|
|
40
|
+
/** Enables dual metric axis mode where the last series uses a secondary axis with independent scale */
|
|
41
|
+
dualMetricAxis?: boolean;
|
|
42
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
43
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
44
|
+
metricRanges?: MetricRangeOptions[];
|
|
45
|
+
trendlines?: TrendlineOptions[];
|
|
46
|
+
}
|
|
47
|
+
type LineOptionsWithDefaults = 'chartPopovers' | 'chartTooltips' | 'color' | 'dimension' | 'hasOnClick' | 'lineType' | 'metric' | 'metricRanges' | 'name' | 'opacity' | 'scaleType' | 'trendlines';
|
|
48
|
+
export interface LineSpecOptions extends PartiallyRequired<LineOptions, LineOptionsWithDefaults> {
|
|
49
|
+
colorScheme: ColorScheme;
|
|
50
|
+
comboSiblingNames?: string[];
|
|
51
|
+
highlightedItem?: HighlightedItem;
|
|
52
|
+
idKey: string;
|
|
53
|
+
index: number;
|
|
54
|
+
interactiveMarkName: string | undefined;
|
|
55
|
+
isHighlightedByGroup?: boolean;
|
|
56
|
+
lineWidth?: FacetRef<LineWidth>;
|
|
57
|
+
popoverMarkName: string | undefined;
|
|
58
|
+
interactionMode?: InteractionMode;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=lineSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lineSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/lineSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EA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;IACtC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACjC;AAED,KAAK,uBAAuB,GACxB,eAAe,GACf,eAAe,GACf,OAAO,GACP,WAAW,GACX,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,cAAc,GACd,MAAM,GACN,SAAS,GACT,WAAW,GACX,YAAY,CAAC;AAEjB,MAAM,WAAW,eAAgB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC9F,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAChC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Blend } from 'vega';
|
|
2
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
3
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
4
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
5
|
+
import { ColorFacet, LineTypeFacet, LineWidthFacet, OpacityFacet, PartiallyRequired, ScaleType, SymbolSizeFacet } from '../specUtil.types';
|
|
6
|
+
import { ScatterAnnotationOptions } from './supplemental';
|
|
7
|
+
import { ScatterPathOptions } from './supplemental/scatterPathSpec.types';
|
|
8
|
+
import { TrendlineOptions } from './supplemental/trendlineSpec.types';
|
|
9
|
+
export interface ScatterOptions {
|
|
10
|
+
markType: 'scatter';
|
|
11
|
+
/** Sets the name of the component. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Key in the data that is used as the metric */
|
|
14
|
+
metric?: string;
|
|
15
|
+
/** Restricts scatter plot contents to the plot boundaries.*/
|
|
16
|
+
clip?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* point fill color (and stroke color if `stroke` is not provided)
|
|
19
|
+
* uses a key in the data that will map to the color scale or a static color value
|
|
20
|
+
*/
|
|
21
|
+
color?: ColorFacet;
|
|
22
|
+
/**
|
|
23
|
+
* type of color scale that should be used for the points
|
|
24
|
+
* use ordinal if the key used for `color` maps to string values ('UT', 'CA', 'NY', etc.)
|
|
25
|
+
* use linear if the key used for `color` maps to numeric values (0, 1, 2, etc.)
|
|
26
|
+
*/
|
|
27
|
+
colorScaleType?: 'linear' | 'ordinal';
|
|
28
|
+
/** data key for the x-axis */
|
|
29
|
+
dimension?: string;
|
|
30
|
+
/** scale type of the x-axis
|
|
31
|
+
* see https://vega.github.io/vega/docs/scales/#types for more information
|
|
32
|
+
*/
|
|
33
|
+
dimensionScaleType?: ScaleType;
|
|
34
|
+
/**
|
|
35
|
+
* line type of the point border
|
|
36
|
+
* uses a key in the data that will map to the line type scale or a static line type value
|
|
37
|
+
*/
|
|
38
|
+
lineType?: LineTypeFacet;
|
|
39
|
+
/**
|
|
40
|
+
* line width of the point border
|
|
41
|
+
* uses a key in the data that will map to the line width scale or a static line width value
|
|
42
|
+
*/
|
|
43
|
+
lineWidth?: LineWidthFacet;
|
|
44
|
+
/**
|
|
45
|
+
* point fill and stroke opacity
|
|
46
|
+
* uses a key in the data that will map to the opacity scale or a opacity value
|
|
47
|
+
*/
|
|
48
|
+
opacity?: OpacityFacet;
|
|
49
|
+
/**
|
|
50
|
+
* point size
|
|
51
|
+
* uses a key in the data that will map to the size scale (linear) or a static size value
|
|
52
|
+
*/
|
|
53
|
+
size?: SymbolSizeFacet;
|
|
54
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
55
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
56
|
+
scatterAnnotations?: ScatterAnnotationOptions[];
|
|
57
|
+
scatterPaths?: ScatterPathOptions[];
|
|
58
|
+
trendlines?: TrendlineOptions[];
|
|
59
|
+
/**
|
|
60
|
+
* point border/stroke color
|
|
61
|
+
* uses a key in the data that will map to the color scale or a static color value
|
|
62
|
+
* defaults to `color` if not provided
|
|
63
|
+
*/
|
|
64
|
+
stroke?: ColorFacet;
|
|
65
|
+
/**
|
|
66
|
+
* CSS blend mode for overlapping points
|
|
67
|
+
* - 'normal': disables blending (points fully cover each other)
|
|
68
|
+
* - other values: applies the specified blend mode
|
|
69
|
+
* - undefined: uses default behavior (multiply in light mode, screen in dark mode)
|
|
70
|
+
* @see https://vega.github.io/vega/docs/marks/symbol/
|
|
71
|
+
*/
|
|
72
|
+
blend?: 'normal' | Blend;
|
|
73
|
+
}
|
|
74
|
+
type ScatterOptionsWithDefaults = 'chartPopovers' | 'chartTooltips' | 'color' | 'colorScaleType' | 'dimension' | 'dimensionScaleType' | 'lineType' | 'lineWidth' | 'metric' | 'name' | 'opacity' | 'size' | 'scatterAnnotations' | 'scatterPaths' | 'trendlines';
|
|
75
|
+
export interface ScatterSpecOptions extends PartiallyRequired<ScatterOptions, ScatterOptionsWithDefaults> {
|
|
76
|
+
colorScheme: ColorScheme;
|
|
77
|
+
highlightedItem?: HighlightedItem;
|
|
78
|
+
idKey: string;
|
|
79
|
+
index: number;
|
|
80
|
+
interactiveMarkName: string | undefined;
|
|
81
|
+
}
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=scatterSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scatterSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/scatterSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,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,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CAC1B;AAED,KAAK,0BAA0B,GAC3B,eAAe,GACf,eAAe,GACf,OAAO,GACP,gBAAgB,GAChB,WAAW,GACX,oBAAoB,GACpB,UAAU,GACV,WAAW,GACX,QAAQ,GACR,MAAM,GACN,SAAS,GACT,MAAM,GACN,oBAAoB,GACpB,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,CAAC,cAAc,EAAE,0BAA0B,CAAC;IACvG,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PartiallyRequired } from '../../specUtil.types';
|
|
2
|
+
import { BarSpecOptions } from '../barSpec.types';
|
|
3
|
+
export interface BarAnnotationStyleOptions {
|
|
4
|
+
width?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface BarAnnotationOptions {
|
|
7
|
+
/** Padding around annotation text. A small amount of padding is always applied based on content */
|
|
8
|
+
padding?: number;
|
|
9
|
+
/** The key in the data that has the text to display */
|
|
10
|
+
textKey?: string;
|
|
11
|
+
/** @deprecated */
|
|
12
|
+
style?: BarAnnotationStyleOptions;
|
|
13
|
+
}
|
|
14
|
+
type BarAnnotationOptionsWithDefaults = 'textKey' | 'padding';
|
|
15
|
+
export interface BarAnnotationSpecOptions extends PartiallyRequired<BarAnnotationOptions, BarAnnotationOptionsWithDefaults> {
|
|
16
|
+
barOptions: BarSpecOptions;
|
|
17
|
+
dataName: string;
|
|
18
|
+
dimensionField: string;
|
|
19
|
+
dimensionScaleName: string;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=barAnnotationSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"barAnnotationSpec.types.d.ts","sourceRoot":"","sources":["../../../../../../src/types/marks/supplemental/barAnnotationSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,mGAAmG;IACnG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB;IAClB,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACnC;AAED,KAAK,gCAAgC,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,wBACf,SAAQ,iBAAiB,CAAC,oBAAoB,EAAE,gCAAgC,CAAC;IACjF,UAAU,EAAE,cAAc,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NumberFormat, PartiallyRequired } from '../../specUtil.types';
|
|
2
|
+
import { DonutSpecOptions } from '../donutSpec.types';
|
|
3
|
+
export interface DonutSummaryOptions {
|
|
4
|
+
/** d3 number format specifier.
|
|
5
|
+
* Sets the number format for the summary value.
|
|
6
|
+
*
|
|
7
|
+
* see {@link https://d3js.org/d3-format#locale_format}
|
|
8
|
+
*/
|
|
9
|
+
numberFormat?: NumberFormat;
|
|
10
|
+
/** Label for the metric summary */
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
type DonutSummaryOptionsWithDefaults = 'numberFormat';
|
|
14
|
+
export interface DonutSummarySpecOptions extends PartiallyRequired<DonutSummaryOptions, DonutSummaryOptionsWithDefaults> {
|
|
15
|
+
donutOptions: DonutSpecOptions;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=dountSummarySpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dountSummarySpec.types.d.ts","sourceRoot":"","sources":["../../../../../../src/types/marks/supplemental/dountSummarySpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,+BAA+B,GAAG,cAAc,CAAC;AAEtD,MAAM,WAAW,uBACf,SAAQ,iBAAiB,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;IAC/E,YAAY,EAAE,gBAAgB,CAAC;CAChC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './barAnnotationSpec.types';
|
|
2
|
+
export * from './dountSummarySpec.types';
|
|
3
|
+
export * from './metricRangeSpec.types';
|
|
4
|
+
export * from './scatterAnnotationSpec.types';
|
|
5
|
+
export * from './scatterPathSpec.types';
|
|
6
|
+
export * from './segmentLabelSpec.types';
|
|
7
|
+
export * from './trendlineSpec.types';
|
|
8
|
+
export * from './trendlineAnnotationSpec.types';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/types/marks/supplemental/index.ts"],"names":[],"mappings":"AAYA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChartTooltipOptions } from '../../dialogs/chartTooltipSpec.types';
|
|
2
|
+
import { LineType, LineWidth, PartiallyRequired } from '../../specUtil.types';
|
|
3
|
+
import { SpectrumColor } from '../../spectrumVizColor.types';
|
|
4
|
+
export interface MetricRangeOptions {
|
|
5
|
+
/** The color of the metric line and range. If undefined, will default to the color of the series that it represents. */
|
|
6
|
+
color?: SpectrumColor | string;
|
|
7
|
+
/** The line type of the metric line. (dashed, solid, etc..) */
|
|
8
|
+
lineType?: LineType;
|
|
9
|
+
/** The line width of the metric line. */
|
|
10
|
+
lineWidth?: LineWidth;
|
|
11
|
+
/** The opacity of the area around the metric */
|
|
12
|
+
rangeOpacity?: number;
|
|
13
|
+
/** The key for the upper range in the data */
|
|
14
|
+
metricEnd: string;
|
|
15
|
+
/** The key for the lower range in the data */
|
|
16
|
+
metricStart: string;
|
|
17
|
+
/** The key for the metric value in the data */
|
|
18
|
+
metric?: string;
|
|
19
|
+
/** Whether the metric range should only be visible when hovering over the parent line */
|
|
20
|
+
displayOnHover?: boolean;
|
|
21
|
+
/** Boolean indicating whether or not the y-axis should expand to include the entire metric range (if necessary). */
|
|
22
|
+
scaleAxisToFit?: boolean;
|
|
23
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
24
|
+
}
|
|
25
|
+
type MetricRangeOptionsWithDefaults = 'chartTooltips' | 'lineType' | 'lineWidth' | 'metric' | 'metricEnd' | 'metricStart' | 'rangeOpacity';
|
|
26
|
+
export interface MetricRangeSpecOptions extends PartiallyRequired<MetricRangeOptions, MetricRangeOptionsWithDefaults> {
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=metricRangeSpec.types.d.ts.map
|