@mathstack/viz 0.0.1-beta.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/LICENSE +21 -0
- package/README.md +0 -0
- package/fesm2022/mathstack-viz.mjs +11049 -0
- package/fesm2022/mathstack-viz.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/axes/base/config/xy-axis-builder.d.ts +38 -0
- package/lib/axes/base/config/xy-axis-config.d.ts +18 -0
- package/lib/axes/base/config/xy-axis-options.d.ts +10 -0
- package/lib/axes/base/xy-axis-base.d.ts +49 -0
- package/lib/axes/baseline/axis-baseline-builder.d.ts +31 -0
- package/lib/axes/baseline/axis-baseline-options.d.ts +7 -0
- package/lib/axes/baseline/axis-baseline.d.ts +9 -0
- package/lib/axes/grid/grid-builder.d.ts +29 -0
- package/lib/axes/grid/grid-config.d.ts +8 -0
- package/lib/axes/grid/grid-options.d.ts +6 -0
- package/lib/axes/index.d.ts +13 -0
- package/lib/axes/label/axis-label-builder.d.ts +63 -0
- package/lib/axes/label/axis-label-options.d.ts +11 -0
- package/lib/axes/label/axis-label.d.ts +13 -0
- package/lib/axes/ordinal/ordinal-axis-config.d.ts +38 -0
- package/lib/axes/ordinal/ordinal-axis.d.ts +43 -0
- package/lib/axes/quantitative/quantitative-axis-config.d.ts +38 -0
- package/lib/axes/quantitative/quantitative-axis.d.ts +51 -0
- package/lib/axes/ticks/tick-wrap/tick-wrap-builder.d.ts +64 -0
- package/lib/axes/ticks/tick-wrap/tick-wrap-options.d.ts +8 -0
- package/lib/axes/ticks/tick-wrap/tick-wrap.d.ts +13 -0
- package/lib/axes/ticks/ticks-builder.d.ts +172 -0
- package/lib/axes/ticks/ticks-options.d.ts +22 -0
- package/lib/axes/ticks/ticks.d.ts +24 -0
- package/lib/axes/x/x-axis-config.d.ts +42 -0
- package/lib/axes/x/x-axis.d.ts +47 -0
- package/lib/axes/x-ordinal/x-ordinal-axis-builder.d.ts +29 -0
- package/lib/axes/x-ordinal/x-ordinal-axis-config.d.ts +25 -0
- package/lib/axes/x-ordinal/x-ordinal-axis.component.d.ts +88 -0
- package/lib/axes/x-quantitative/x-quantitative-axis-builder.d.ts +29 -0
- package/lib/axes/x-quantitative/x-quantitative-axis-config.d.ts +25 -0
- package/lib/axes/x-quantitative/x-quantitative-axis.component.d.ts +53 -0
- package/lib/axes/xy-axis.module.d.ts +10 -0
- package/lib/axes/y/y-axis-config.d.ts +42 -0
- package/lib/axes/y/y-axis.d.ts +53 -0
- package/lib/axes/y-ordinal/y-ordinal-axis-builder.d.ts +29 -0
- package/lib/axes/y-ordinal/y-ordinal-axis-config.d.ts +25 -0
- package/lib/axes/y-ordinal/y-ordinal-axis.component.d.ts +89 -0
- package/lib/axes/y-quantitative-axis/y-quantitative-axis-builder.d.ts +29 -0
- package/lib/axes/y-quantitative-axis/y-quantitative-axis-config.d.ts +25 -0
- package/lib/axes/y-quantitative-axis/y-quantitative-axis.component.d.ts +54 -0
- package/lib/bars/bars.component.d.ts +91 -0
- package/lib/bars/bars.module.d.ts +8 -0
- package/lib/bars/config/backgrounds/bars-backgrounds-builder.d.ts +27 -0
- package/lib/bars/config/backgrounds/bars-backgrounds-options.d.ts +4 -0
- package/lib/bars/config/backgrounds/bars-backgrounds.d.ts +6 -0
- package/lib/bars/config/bars-builder.d.ts +132 -0
- package/lib/bars/config/bars-config.d.ts +27 -0
- package/lib/bars/config/bars-dimensions.d.ts +11 -0
- package/lib/bars/config/bars-options.d.ts +16 -0
- package/lib/bars/config/labels/bars-labels-builder.d.ts +48 -0
- package/lib/bars/config/labels/bars-labels-options.d.ts +9 -0
- package/lib/bars/config/labels/bars-labels.d.ts +11 -0
- package/lib/bars/events/actions/bars-click-actions.d.ts +8 -0
- package/lib/bars/events/actions/bars-hover-actions.d.ts +12 -0
- package/lib/bars/events/actions/bars-hover-move-actions.d.ts +8 -0
- package/lib/bars/events/bars-events.directive.d.ts +38 -0
- package/lib/bars/events/bars-interaction-output.d.ts +16 -0
- package/lib/bars/events/bars-tooltip-positioner.d.ts +13 -0
- package/lib/bars/index.d.ts +12 -0
- package/lib/charts/chart/chart.component.d.ts +73 -0
- package/lib/charts/chart/chart.d.ts +4 -0
- package/lib/charts/chart/chart.token.d.ts +3 -0
- package/lib/charts/chart/config/chart-builder.d.ts +94 -0
- package/lib/charts/chart/config/chart-config.d.ts +16 -0
- package/lib/charts/chart/config/chart-options.d.ts +10 -0
- package/lib/charts/chart.module.d.ts +9 -0
- package/lib/charts/index.d.ts +8 -0
- package/lib/charts/map-chart/map-chart.component.d.ts +40 -0
- package/lib/charts/xy-chart/xy-chart.component.d.ts +40 -0
- package/lib/core/common-behaviors/constructor.d.ts +2 -0
- package/lib/core/index.d.ts +5 -0
- package/lib/core/types/layout.d.ts +24 -0
- package/lib/core/types/scale.d.ts +5 -0
- package/lib/core/types/values.d.ts +7 -0
- package/lib/core/utilities/colors.d.ts +13 -0
- package/lib/core/utilities/fill-utilities.d.ts +7 -0
- package/lib/core/utilities/type-guards.d.ts +6 -0
- package/lib/core/utilities/value-format.d.ts +11 -0
- package/lib/core/utilities/values.d.ts +16 -0
- package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-builder.d.ts +39 -0
- package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-options.d.ts +18 -0
- package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position.d.ts +38 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/concrete-domain-padding.d.ts +5 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/domain-padding.d.ts +20 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over-options.d.ts +3 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over.d.ts +9 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel-options.d.ts +3 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel.d.ts +10 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval-options.d.ts +3 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval.d.ts +8 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig-options.d.ts +3 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig.d.ts +8 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-builder.d.ts +71 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-options.d.ts +5 -0
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position.d.ts +30 -0
- package/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension-options.d.ts +8 -0
- package/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension.d.ts +28 -0
- package/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-builder.d.ts +69 -0
- package/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-options.d.ts +6 -0
- package/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value.d.ts +29 -0
- package/lib/data-dimensions/dimension-builder.d.ts +21 -0
- package/lib/data-dimensions/dimension-options.d.ts +11 -0
- package/lib/data-dimensions/dimension.d.ts +16 -0
- package/lib/data-dimensions/index.d.ts +9 -0
- package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-builder.d.ts +53 -0
- package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-options.d.ts +8 -0
- package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position.d.ts +44 -0
- package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder.d.ts +45 -0
- package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-options.d.ts +7 -0
- package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.d.ts +38 -0
- package/lib/data-export/data-export-config.d.ts +50 -0
- package/lib/data-export/data-export.d.ts +7 -0
- package/lib/data-export/index.d.ts +2 -0
- package/lib/dots/config/dots-builder.d.ts +110 -0
- package/lib/dots/config/dots-config.d.ts +26 -0
- package/lib/dots/config/dots-options.d.ts +17 -0
- package/lib/dots/dots.component.d.ts +55 -0
- package/lib/dots/dots.module.d.ts +8 -0
- package/lib/dots/events/actions/dots-hover-actions.d.ts +6 -0
- package/lib/dots/events/actions/dots-hover-move-actions.d.ts +10 -0
- package/lib/dots/events/dots-events.directive.d.ts +37 -0
- package/lib/dots/events/dots-interaction-output.d.ts +14 -0
- package/lib/dots/events/dots-tooltip-positioner.d.ts +13 -0
- package/lib/dots/index.d.ts +9 -0
- package/lib/events/events.directive.d.ts +43 -0
- package/lib/events/events.types.d.ts +34 -0
- package/lib/events/index.d.ts +4 -0
- package/lib/events/interaction-output.d.ts +33 -0
- package/lib/events/tooltip-positioner.d.ts +6 -0
- package/lib/fill-definitions/fill-definitions.d.ts +4 -0
- package/lib/fill-definitions/index.d.ts +1 -0
- package/lib/geographies/config/geographies-builder.d.ts +80 -0
- package/lib/geographies/config/geographies-config.d.ts +19 -0
- package/lib/geographies/config/geographies-options.d.ts +13 -0
- package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-builder.d.ts +63 -0
- package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-options.d.ts +16 -0
- package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer.d.ts +30 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-builder.d.ts +40 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-options.d.ts +8 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension.d.ts +18 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-enums.d.ts +10 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-types.d.ts +8 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-builder.d.ts +10 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-options.d.ts +4 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins.d.ts +8 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-builder.d.ts +14 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-options.d.ts +4 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.d.ts +20 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-builder.d.ts +29 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-options.d.ts +5 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins.d.ts +23 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-builder.d.ts +16 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-options.d.ts +4 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.d.ts +18 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-builder.d.ts +21 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-options.d.ts +5 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.d.ts +24 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-builder.d.ts +26 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-options.d.ts +5 -0
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.d.ts +12 -0
- package/lib/geographies/config/layers/geographies-layer/geographies-layer-builder.d.ts +52 -0
- package/lib/geographies/config/layers/geographies-layer/geographies-layer-options.d.ts +16 -0
- package/lib/geographies/config/layers/geographies-layer/geographies-layer.d.ts +29 -0
- package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-builder.d.ts +25 -0
- package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-options.d.ts +11 -0
- package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer.d.ts +16 -0
- package/lib/geographies/config/layers/labels/geographies-labels-builder.d.ts +97 -0
- package/lib/geographies/config/layers/labels/geographies-labels-options.d.ts +33 -0
- package/lib/geographies/config/layers/labels/geographies-labels.d.ts +20 -0
- package/lib/geographies/events/actions/geographies-click-actions.d.ts +7 -0
- package/lib/geographies/events/actions/geographies-hover-actions.d.ts +7 -0
- package/lib/geographies/events/actions/geographies-hover-move-actions.d.ts +7 -0
- package/lib/geographies/events/geographies-events.directive.d.ts +38 -0
- package/lib/geographies/events/geographies-interaction-output.d.ts +16 -0
- package/lib/geographies/events/geographies-tooltip-positioner.d.ts +13 -0
- package/lib/geographies/geographies-feature.d.ts +5 -0
- package/lib/geographies/geographies.component.d.ts +36 -0
- package/lib/geographies/geographies.module.d.ts +8 -0
- package/lib/geographies/index.d.ts +32 -0
- package/lib/grouped-bars/config/grouped-bars-builder.d.ts +29 -0
- package/lib/grouped-bars/config/grouped-bars-config.d.ts +10 -0
- package/lib/grouped-bars/config/grouped-bars-options.d.ts +5 -0
- package/lib/grouped-bars/events/grouped-bars-events.directive.d.ts +35 -0
- package/lib/grouped-bars/grouped-bars.component.d.ts +19 -0
- package/lib/grouped-bars/grouped-bars.module.d.ts +8 -0
- package/lib/grouped-bars/index.d.ts +7 -0
- package/lib/image-download/image-download-config.d.ts +31 -0
- package/lib/image-download/image-download-enums.d.ts +6 -0
- package/lib/image-download/image-download-options.d.ts +14 -0
- package/lib/image-download/image-download.service.d.ts +16 -0
- package/lib/image-download/index.d.ts +4 -0
- package/lib/lines/config/area-fills/area-fills-builder.d.ts +45 -0
- package/lib/lines/config/area-fills/area-fills-options.d.ts +7 -0
- package/lib/lines/config/area-fills/area-fills.d.ts +9 -0
- package/lib/lines/config/lines-builder.d.ts +101 -0
- package/lib/lines/config/lines-config.d.ts +37 -0
- package/lib/lines/config/lines-options.d.ts +18 -0
- package/lib/lines/config/stroke/lines-stroke-builder.d.ts +59 -0
- package/lib/lines/config/stroke/lines-stroke-options.d.ts +5 -0
- package/lib/lines/config/stroke/lines-stroke.d.ts +7 -0
- package/lib/lines/events/actions/lines-click-actions.d.ts +6 -0
- package/lib/lines/events/actions/lines-hover-move-actions.d.ts +41 -0
- package/lib/lines/events/actions/lines-marker-click-actions.d.ts +6 -0
- package/lib/lines/events/lines-events.directive.d.ts +49 -0
- package/lib/lines/events/lines-interaction-output.d.ts +16 -0
- package/lib/lines/events/lines-tooltip-positioner.d.ts +13 -0
- package/lib/lines/index.d.ts +11 -0
- package/lib/lines/lines.component.d.ts +53 -0
- package/lib/lines/lines.module.d.ts +8 -0
- package/lib/map-legend/continuous-legend/continuous-legend.component.d.ts +18 -0
- package/lib/map-legend/discontinuous-legend/discontinuous-legend.component.d.ts +12 -0
- package/lib/map-legend/index.d.ts +2 -0
- package/lib/map-legend/map-legend-base.d.ts +33 -0
- package/lib/map-legend/map-legend.component.d.ts +27 -0
- package/lib/map-legend/map-legend.module.d.ts +7 -0
- package/lib/marks/aux-marks/aux-marks.d.ts +10 -0
- package/lib/marks/aux-marks/config/aux-marks-builder.d.ts +11 -0
- package/lib/marks/aux-marks/config/aux-marks-config.d.ts +4 -0
- package/lib/marks/config/marks-config.d.ts +9 -0
- package/lib/marks/config/marks-options.d.ts +8 -0
- package/lib/marks/index.d.ts +15 -0
- package/lib/marks/map-marks/map-aux-marks/map-aux-marks.d.ts +17 -0
- package/lib/marks/map-marks/map-primary-marks/map-primary-marks.d.ts +20 -0
- package/lib/marks/marks.d.ts +31 -0
- package/lib/marks/primary-marks/config/primary-marks-builder.d.ts +32 -0
- package/lib/marks/primary-marks/config/primary-marks-config.d.ts +5 -0
- package/lib/marks/primary-marks/primary-marks.d.ts +23 -0
- package/lib/marks/xy-marks/xy-aux-marks/xy-aux-marks.d.ts +16 -0
- package/lib/marks/xy-marks/xy-marks-config.d.ts +4 -0
- package/lib/marks/xy-marks/xy-marks.d.ts +6 -0
- package/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks-config.d.ts +4 -0
- package/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks.d.ts +20 -0
- package/lib/point-markers/index.d.ts +2 -0
- package/lib/point-markers/point-markers-builder.d.ts +47 -0
- package/lib/point-markers/point-markers-options.d.ts +6 -0
- package/lib/point-markers/point-markers.d.ts +8 -0
- package/lib/quantitative-rules/config/labels/quantitative-rules-labels-builder.d.ts +60 -0
- package/lib/quantitative-rules/config/labels/quantitative-rules-labels-options.d.ts +9 -0
- package/lib/quantitative-rules/config/labels/quantitative-rules-labels.d.ts +11 -0
- package/lib/quantitative-rules/config/quantitative-rules-builder.d.ts +52 -0
- package/lib/quantitative-rules/config/quantitative-rules-config.d.ts +12 -0
- package/lib/quantitative-rules/config/quantitative-rules-dimensions.d.ts +8 -0
- package/lib/quantitative-rules/config/quantitative-rules-options.d.ts +10 -0
- package/lib/quantitative-rules/index.d.ts +6 -0
- package/lib/quantitative-rules/quantitative-rules.component.d.ts +27 -0
- package/lib/quantitative-rules/quantitative-rules.module.d.ts +7 -0
- package/lib/stacked-area/config/stacked-area-builder.d.ts +85 -0
- package/lib/stacked-area/config/stacked-area-config.d.ts +36 -0
- package/lib/stacked-area/config/stacked-area-options.d.ts +21 -0
- package/lib/stacked-area/events/actions/stacked-area-hover-move-actions.d.ts +7 -0
- package/lib/stacked-area/events/stacked-area-events.directive.d.ts +38 -0
- package/lib/stacked-area/events/stacked-area-interaction-output.d.ts +28 -0
- package/lib/stacked-area/events/stacked-area-tooltip-positioner.d.ts +16 -0
- package/lib/stacked-area/index.d.ts +7 -0
- package/lib/stacked-area/stacked-area.component.d.ts +51 -0
- package/lib/stacked-area/stacked-area.module.d.ts +8 -0
- package/lib/stacked-bars/config/stacked-bars-builder.d.ts +26 -0
- package/lib/stacked-bars/config/stacked-bars-config.d.ts +16 -0
- package/lib/stacked-bars/config/stacked-bars-options.d.ts +7 -0
- package/lib/stacked-bars/events/actions/stacked-bars-click-actions.d.ts +8 -0
- package/lib/stacked-bars/events/actions/stacked-bars-hover-actions.d.ts +8 -0
- package/lib/stacked-bars/events/actions/stacked-bars-hover-move-actions.d.ts +8 -0
- package/lib/stacked-bars/events/stacked-bars-events.directive.d.ts +39 -0
- package/lib/stacked-bars/index.d.ts +10 -0
- package/lib/stacked-bars/stacked-bars.component.d.ts +26 -0
- package/lib/stacked-bars/stacked-bars.module.d.ts +8 -0
- package/lib/stroke/base/stroke-base-options.d.ts +7 -0
- package/lib/stroke/base/stroke-base.d.ts +8 -0
- package/lib/stroke/index.d.ts +2 -0
- package/lib/stroke/stroke-builder.d.ts +56 -0
- package/lib/stroke/stroke-options.d.ts +4 -0
- package/lib/stroke/stroke.d.ts +6 -0
- package/lib/svg-text-wrap/index.d.ts +2 -0
- package/lib/svg-text-wrap/svg-text-wrap-builder.d.ts +58 -0
- package/lib/svg-text-wrap/svg-text-wrap-options.d.ts +8 -0
- package/lib/svg-text-wrap/svg-text-wrap.d.ts +13 -0
- package/lib/tooltips/config/tooltip.d.ts +5 -0
- package/lib/tooltips/html-tooltip/config/html-tooltip-builder.d.ts +57 -0
- package/lib/tooltips/html-tooltip/config/html-tooltip-config.d.ts +15 -0
- package/lib/tooltips/html-tooltip/config/html-tooltip-options.d.ts +11 -0
- package/lib/tooltips/html-tooltip/config/position/tooltip-position-builder.d.ts +34 -0
- package/lib/tooltips/html-tooltip/config/position/tooltip-position.d.ts +23 -0
- package/lib/tooltips/html-tooltip/config/size/tooltip-size-builder.d.ts +16 -0
- package/lib/tooltips/html-tooltip/config/size/tooltip-size-options.d.ts +8 -0
- package/lib/tooltips/html-tooltip/config/size/tooltip-size.d.ts +10 -0
- package/lib/tooltips/html-tooltip/html-tooltip.directive.d.ts +43 -0
- package/lib/tooltips/html-tooltip/html-tooltip.module.d.ts +10 -0
- package/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.d.ts +7 -0
- package/lib/tooltips/index.d.ts +11 -0
- package/lib/xy-background/index.d.ts +2 -0
- package/lib/xy-background/xy-background.component.d.ts +9 -0
- package/lib/xy-background/xy-background.module.d.ts +7 -0
- package/package.json +40 -0
- package/public-api.d.ts +23 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { CurveFactory, InternMap, Series } from 'd3';
|
|
2
|
+
import { ContinuousValue, DataValue } from '../../core/types/values';
|
|
3
|
+
import { DateChartPositionDimensionBuilder } from '../../data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-builder';
|
|
4
|
+
import { NumberChartPositionDimensionBuilder } from '../../data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-builder';
|
|
5
|
+
import { OrdinalVisualValueDimensionBuilder } from '../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder';
|
|
6
|
+
import { PrimaryMarksBuilder } from '../../marks/primary-marks/config/primary-marks-builder';
|
|
7
|
+
import { StackedAreaConfig } from './stacked-area-config';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Builds a configuration object for a StackedAreaComponent.
|
|
11
|
+
*
|
|
12
|
+
* Must be added to a providers array in or above the component that consumes it if it is injected via the constructor. (e.g. `providers: [VicStackedAreaBuilder]` in the component decorator)
|
|
13
|
+
*
|
|
14
|
+
* The first generic parameter, Datum, is the type of the data that will be used to create the stacked area chart.
|
|
15
|
+
*
|
|
16
|
+
* The second generic parameter, TCategoricalValue, is the type of the categorical data that will be used to stack the areas.
|
|
17
|
+
*/
|
|
18
|
+
export declare class VicStackedAreaConfigBuilder<Datum, CategoricalDomain extends DataValue> extends PrimaryMarksBuilder<Datum> {
|
|
19
|
+
private colorDimensionBuilder;
|
|
20
|
+
private _categoricalOrder;
|
|
21
|
+
private _curve;
|
|
22
|
+
private _stackOrder;
|
|
23
|
+
private _stackOffset;
|
|
24
|
+
private xDimensionBuilder;
|
|
25
|
+
private yDimensionBuilder;
|
|
26
|
+
constructor();
|
|
27
|
+
/**
|
|
28
|
+
* REQUIRED. Sets the categorical dimension for the stacked area chart.
|
|
29
|
+
*/
|
|
30
|
+
color(color: (color: OrdinalVisualValueDimensionBuilder<Datum, CategoricalDomain, string>) => void): this;
|
|
31
|
+
/**
|
|
32
|
+
* OPTIONAL. Allows user to provide a custom order for the categories of data / the stack.
|
|
33
|
+
*
|
|
34
|
+
* If not provided, the order will be determined by d3.
|
|
35
|
+
*/
|
|
36
|
+
categoricalOrder(value: CategoricalDomain[]): this;
|
|
37
|
+
/**
|
|
38
|
+
* OPTIONAL. Sets the curve factory for the line.
|
|
39
|
+
*
|
|
40
|
+
* @default curveLinear
|
|
41
|
+
*/
|
|
42
|
+
curve(value: null): this;
|
|
43
|
+
curve(value: CurveFactory): this;
|
|
44
|
+
/**
|
|
45
|
+
* OPTIONAL: Sets the order of the stack.
|
|
46
|
+
*
|
|
47
|
+
* @default stackOrderNone
|
|
48
|
+
*/
|
|
49
|
+
stackOrder(stackOrder: null): this;
|
|
50
|
+
stackOrder(stackOrder: (series: Series<[
|
|
51
|
+
ContinuousValue,
|
|
52
|
+
InternMap<CategoricalDomain, number>
|
|
53
|
+
], CategoricalDomain>) => Iterable<number>): this;
|
|
54
|
+
/**
|
|
55
|
+
* OPTIONAL. Sets the offset of the stack.
|
|
56
|
+
*
|
|
57
|
+
* @default stackOffsetNone
|
|
58
|
+
*/
|
|
59
|
+
stackOffset(stackOffset: null): this;
|
|
60
|
+
stackOffset(stackOffset: (series: Series<[
|
|
61
|
+
ContinuousValue,
|
|
62
|
+
InternMap<CategoricalDomain, number>
|
|
63
|
+
], CategoricalDomain>, order: number[]) => void): this;
|
|
64
|
+
/**
|
|
65
|
+
* REQUIRED. Sets the x dimension for the stacked area chart when using Date data.
|
|
66
|
+
*/
|
|
67
|
+
xDate(x: null): this;
|
|
68
|
+
xDate(x: (x: DateChartPositionDimensionBuilder<Datum>) => void): this;
|
|
69
|
+
/**
|
|
70
|
+
* REQUIRED. Sets the x dimension for the stacked area chart when using numeric data.
|
|
71
|
+
*/
|
|
72
|
+
xNumeric(x: null): this;
|
|
73
|
+
xNumeric(x: (x: NumberChartPositionDimensionBuilder<Datum>) => void): this;
|
|
74
|
+
/**
|
|
75
|
+
* REQUIRED. Sets the y dimension for the stacked area chart.
|
|
76
|
+
*/
|
|
77
|
+
y(y: (y: NumberChartPositionDimensionBuilder<Datum>) => void): this;
|
|
78
|
+
/**
|
|
79
|
+
* REQUIRED. Builds the configuration object for the stacked area chart.
|
|
80
|
+
*/
|
|
81
|
+
getConfig(): StackedAreaConfig<Datum, CategoricalDomain>;
|
|
82
|
+
protected validateBuilder(): void;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicStackedAreaConfigBuilder<any, any>, never>;
|
|
84
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VicStackedAreaConfigBuilder<any, any>>;
|
|
85
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CurveFactory, InternMap, Series, SeriesPoint } from 'd3';
|
|
2
|
+
import { ContinuousValue, DataValue } from '../../core/types/values';
|
|
3
|
+
import { DateChartPositionDimension } from '../../data-dimensions/continuous-quantitative/date-chart-position/date-chart-position';
|
|
4
|
+
import { NumberChartPositionDimension } from '../../data-dimensions/continuous-quantitative/number-chart-position/number-chart-position';
|
|
5
|
+
import { OrdinalVisualValueDimension } from '../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value';
|
|
6
|
+
import { DataMarksOptions } from '../../marks/config/marks-options';
|
|
7
|
+
import { XyPrimaryMarksConfig } from '../../marks/xy-marks/xy-primary-marks/xy-primary-marks-config';
|
|
8
|
+
import { StackedAreaOptions } from './stacked-area-options';
|
|
9
|
+
export type StackedAreaDatum<CategoricalDomain> = (SeriesPoint<[
|
|
10
|
+
ContinuousValue,
|
|
11
|
+
InternMap<CategoricalDomain, number>
|
|
12
|
+
]> & {
|
|
13
|
+
i: number;
|
|
14
|
+
})[];
|
|
15
|
+
export declare class StackedAreaConfig<Datum, CategoricalDomain extends DataValue> extends XyPrimaryMarksConfig<Datum> implements DataMarksOptions<Datum> {
|
|
16
|
+
color: OrdinalVisualValueDimension<Datum, CategoricalDomain, string>;
|
|
17
|
+
categoricalOrder: CategoricalDomain[];
|
|
18
|
+
curve: CurveFactory;
|
|
19
|
+
stackOrder: (series: Series<[
|
|
20
|
+
ContinuousValue,
|
|
21
|
+
InternMap<CategoricalDomain, number>
|
|
22
|
+
], CategoricalDomain>) => Iterable<number>;
|
|
23
|
+
stackOffset: (series: Series<[
|
|
24
|
+
ContinuousValue,
|
|
25
|
+
InternMap<CategoricalDomain, number>
|
|
26
|
+
], CategoricalDomain>, order: number[]) => void;
|
|
27
|
+
x: DateChartPositionDimension<Datum> | NumberChartPositionDimension<Datum>;
|
|
28
|
+
y: NumberChartPositionDimension<Datum>;
|
|
29
|
+
series: StackedAreaDatum<CategoricalDomain>[];
|
|
30
|
+
constructor(options: StackedAreaOptions<Datum, CategoricalDomain>);
|
|
31
|
+
protected initPropertiesFromData(): void;
|
|
32
|
+
private setDimensionPropertiesFromData;
|
|
33
|
+
private setValueIndicies;
|
|
34
|
+
private setSeries;
|
|
35
|
+
private initQuantitativeDomainFromStack;
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CurveFactory, InternMap, Series } from 'd3';
|
|
2
|
+
import { ContinuousValue, DataValue } from '../../core/types/values';
|
|
3
|
+
import { DateChartPositionDimension } from '../../data-dimensions/continuous-quantitative/date-chart-position/date-chart-position';
|
|
4
|
+
import { NumberChartPositionDimension } from '../../data-dimensions/continuous-quantitative/number-chart-position/number-chart-position';
|
|
5
|
+
import { OrdinalVisualValueDimension } from '../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value';
|
|
6
|
+
import { DataMarksOptions } from '../../marks/config/marks-options';
|
|
7
|
+
export interface StackedAreaOptions<Datum, CategoricalDomain extends DataValue> extends DataMarksOptions<Datum>, DataMarksOptions<Datum> {
|
|
8
|
+
color: OrdinalVisualValueDimension<Datum, CategoricalDomain, string>;
|
|
9
|
+
categoricalOrder: CategoricalDomain[];
|
|
10
|
+
curve: CurveFactory;
|
|
11
|
+
stackOrder: (series: Series<[
|
|
12
|
+
ContinuousValue,
|
|
13
|
+
InternMap<CategoricalDomain, number>
|
|
14
|
+
], CategoricalDomain>) => Iterable<number>;
|
|
15
|
+
stackOffset: (series: Series<[
|
|
16
|
+
ContinuousValue,
|
|
17
|
+
InternMap<CategoricalDomain, number>
|
|
18
|
+
], CategoricalDomain>, order: number[]) => void;
|
|
19
|
+
x: DateChartPositionDimension<Datum> | NumberChartPositionDimension<Datum>;
|
|
20
|
+
y: NumberChartPositionDimension<Datum>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataValue } from '../../../core/types/values';
|
|
2
|
+
import { HoverMoveAction } from '../../../events';
|
|
3
|
+
import { StackedAreaHost } from '../stacked-area-events.directive';
|
|
4
|
+
export declare class StackedAreaHoverMoveEmitTooltipData<Datum, TCategoricalValue extends DataValue> implements HoverMoveAction<StackedAreaHost<Datum, TCategoricalValue>> {
|
|
5
|
+
onStart(host: StackedAreaHost<Datum, TCategoricalValue>): void;
|
|
6
|
+
onEnd(host: StackedAreaHost<Datum, TCategoricalValue>): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DataValue } from '../../core/types/values';
|
|
4
|
+
import { EventAction, EventType, EventsDirective, HoverMoveAction, InputEventAction, MarksHost, UnlistenFunction } from '../../events';
|
|
5
|
+
import { StackedAreaComponent } from '../stacked-area.component';
|
|
6
|
+
import { StackedAreaInteractionOutput } from './stacked-area-interaction-output';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export type StackedAreaHost<Datum, TCategoricalValue extends DataValue, TStackedAreaComponent extends StackedAreaComponent<Datum, TCategoricalValue> = StackedAreaComponent<Datum, TCategoricalValue>> = MarksHost<StackedAreaInteractionOutput<Datum, TCategoricalValue>, TStackedAreaComponent>;
|
|
9
|
+
export declare class StackedAreaEventsDirective<Datum, TCategoricalValue extends DataValue, TStackedAreaComponent extends StackedAreaComponent<Datum, TCategoricalValue> = StackedAreaComponent<Datum, TCategoricalValue>> extends EventsDirective<StackedAreaHost<Datum, TCategoricalValue>> implements StackedAreaHost<Datum, TCategoricalValue> {
|
|
10
|
+
stackedArea: TStackedAreaComponent;
|
|
11
|
+
hoverMoveActions: HoverMoveAction<StackedAreaHost<Datum, TCategoricalValue>, StackedAreaInteractionOutput<Datum, TCategoricalValue>>[] | null;
|
|
12
|
+
clickActions: EventAction<StackedAreaHost<Datum, TCategoricalValue>, StackedAreaInteractionOutput<Datum, TCategoricalValue>>[] | null;
|
|
13
|
+
inputEventActions: InputEventAction<StackedAreaHost<Datum, TCategoricalValue>, StackedAreaInteractionOutput<Datum, TCategoricalValue>>[];
|
|
14
|
+
interactionOutput: EventEmitter<StackedAreaInteractionOutput<Datum, TCategoricalValue>>;
|
|
15
|
+
closestXIndicies: number[];
|
|
16
|
+
categoryYMin: number;
|
|
17
|
+
categoryYMax: number;
|
|
18
|
+
categoryIndex: number;
|
|
19
|
+
constructor(stackedArea: TStackedAreaComponent);
|
|
20
|
+
get marks(): StackedAreaComponent<Datum, TCategoricalValue>;
|
|
21
|
+
getElements(): Observable<Element[]>;
|
|
22
|
+
setupListeners(elements: Element[]): UnlistenFunction[];
|
|
23
|
+
onEnter(_: PointerEvent, __: Element): void;
|
|
24
|
+
onMove(event: PointerEvent, _: Element): void;
|
|
25
|
+
onLeave(_: PointerEvent, __: Element): void;
|
|
26
|
+
onClick(event: PointerEvent, _: Element): void;
|
|
27
|
+
onInputEvent(inputValue: unknown): void;
|
|
28
|
+
onClickRemove(): void;
|
|
29
|
+
setPositionsFromElement(): void;
|
|
30
|
+
pointerIsInChartArea(): boolean;
|
|
31
|
+
setClosestXIndicies(): void;
|
|
32
|
+
setClosestDatumPosition(): void;
|
|
33
|
+
getInteractionOutput(type: EventType): StackedAreaInteractionOutput<Datum, TCategoricalValue>;
|
|
34
|
+
emitInteractionOutput(output: StackedAreaInteractionOutput<Datum, TCategoricalValue>): void;
|
|
35
|
+
resetDirective(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StackedAreaEventsDirective<any, any, any>, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StackedAreaEventsDirective<any, any, any>, "[vicStackedAreaEvents]", never, { "hoverMoveActions": { "alias": "hoverMoveActions"; "required": false; }; "clickActions": { "alias": "clickActions"; "required": false; }; "inputEventActions": { "alias": "inputEventActions"; "required": false; }; }, { "interactionOutput": "interactionOutput"; }, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DataValue } from '../../core/types/values';
|
|
2
|
+
import { InteractionOutput } from '../../events/interaction-output';
|
|
3
|
+
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
4
|
+
import { StackedAreaTooltipDatum } from '../stacked-area.component';
|
|
5
|
+
export interface StackedAreaInteractionAnchor {
|
|
6
|
+
x: number;
|
|
7
|
+
yAreaTop: number;
|
|
8
|
+
yAreaBottom: number;
|
|
9
|
+
yChartTop: number;
|
|
10
|
+
yChartBottom: number;
|
|
11
|
+
}
|
|
12
|
+
export interface StackedAreaInteractionOutput<Datum, TCategoricalValue extends DataValue> extends InteractionOutput<StackedAreaInteractionAnchor> {
|
|
13
|
+
data: StackedAreaTooltipDatum<Datum, TCategoricalValue>[];
|
|
14
|
+
hoveredAreaDatum: StackedAreaTooltipDatum<Datum, TCategoricalValue>;
|
|
15
|
+
defaultPositionFromArea: HtmlTooltipCdkManagedPosition;
|
|
16
|
+
defaultPositionFromChart: HtmlTooltipCdkManagedPosition;
|
|
17
|
+
/**
|
|
18
|
+
* A method that positions the tooltip with a user specified offset from the tooltip's anchor point.
|
|
19
|
+
*
|
|
20
|
+
* @param offset - Optional offset from the anchor's x and y position.
|
|
21
|
+
* If not provided, defaults to { x: 0, y: 0 }.
|
|
22
|
+
* If provided, the x value is added to the anchor's x position (moves tooltip right) and the y value is subtracted from the anchor's y position (moves tooltip up).
|
|
23
|
+
*/
|
|
24
|
+
fromAnchor: (relativeTo: 'area' | 'chart', offset?: Partial<{
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}>) => HtmlTooltipCdkManagedPosition;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TooltipPositioner } from '../../events/tooltip-positioner';
|
|
2
|
+
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
+
export declare class StackedAreaTooltipPositioner extends TooltipPositioner {
|
|
4
|
+
private anchor;
|
|
5
|
+
constructor(anchor: {
|
|
6
|
+
x: number;
|
|
7
|
+
yAreaTop: number;
|
|
8
|
+
yAreaBottom: number;
|
|
9
|
+
yChartTop: number;
|
|
10
|
+
yChartBottom: number;
|
|
11
|
+
});
|
|
12
|
+
fromAnchor(relativeTo: 'area' | 'chart', offset: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
}): HtmlTooltipCdkManagedPosition;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './config/stacked-area-builder';
|
|
2
|
+
export * from './config/stacked-area-config';
|
|
3
|
+
export * from './config/stacked-area-options';
|
|
4
|
+
export * from './events/actions/stacked-area-hover-move-actions';
|
|
5
|
+
export * from './events/stacked-area-events.directive';
|
|
6
|
+
export * from './stacked-area.component';
|
|
7
|
+
export * from './stacked-area.module';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ElementRef, InjectionToken } from '@angular/core';
|
|
2
|
+
import { Selection } from 'd3';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { XyChartScales } from '../charts';
|
|
5
|
+
import { GenericScale } from '../core';
|
|
6
|
+
import { DataValue } from '../core/types/values';
|
|
7
|
+
import { VicXyPrimaryMarks } from '../marks/xy-marks/xy-primary-marks/xy-primary-marks';
|
|
8
|
+
import { StackedAreaConfig, StackedAreaDatum } from './config/stacked-area-config';
|
|
9
|
+
import { StackedAreaInteractionAnchor } from './events/stacked-area-interaction-output';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare const STACKED_AREA: InjectionToken<StackedAreaComponent<unknown, DataValue>>;
|
|
12
|
+
export interface StackedAreaTooltipDatum<Datum, TCategoricalValue extends DataValue> {
|
|
13
|
+
datum: Datum;
|
|
14
|
+
color: string;
|
|
15
|
+
values: {
|
|
16
|
+
x: string;
|
|
17
|
+
y: string;
|
|
18
|
+
color: TCategoricalValue;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
type StackedAreaSvgElements = 'area';
|
|
22
|
+
export type StackedAreaSelection<CategoricalDomain> = Selection<SVGPathElement, StackedAreaDatum<CategoricalDomain>, SVGGElement, unknown>;
|
|
23
|
+
export declare class StackedAreaComponent<Datum, TCategoricalValue extends DataValue> extends VicXyPrimaryMarks<Datum, StackedAreaConfig<Datum, TCategoricalValue>> {
|
|
24
|
+
area: any;
|
|
25
|
+
areas: any;
|
|
26
|
+
stackedAreas: BehaviorSubject<StackedAreaSelection<TCategoricalValue>>;
|
|
27
|
+
stackedAreas$: import("rxjs").Observable<StackedAreaSelection<TCategoricalValue>>;
|
|
28
|
+
scales: {
|
|
29
|
+
color: GenericScale<any, any>;
|
|
30
|
+
} & XyChartScales;
|
|
31
|
+
protected elRef: ElementRef<SVGSVGElement>;
|
|
32
|
+
private zone;
|
|
33
|
+
get class(): Record<StackedAreaSvgElements, string>;
|
|
34
|
+
setChartScalesFromRanges(useTransition: boolean): void;
|
|
35
|
+
drawMarks(): void;
|
|
36
|
+
setArea(): void;
|
|
37
|
+
drawAreas(transitionDuration: number): void;
|
|
38
|
+
getTooltipData(closestXIndicies: number[], categoryYMin: number, categoryYMax: number, categoryIndex: number): {
|
|
39
|
+
anchor: StackedAreaInteractionAnchor;
|
|
40
|
+
data: StackedAreaTooltipDatum<Datum, TCategoricalValue>[];
|
|
41
|
+
hoveredAreaDatum: StackedAreaTooltipDatum<Datum, TCategoricalValue>;
|
|
42
|
+
origin: SVGGraphicsElement;
|
|
43
|
+
};
|
|
44
|
+
private getDatumFromIndex;
|
|
45
|
+
private getXyDimensionValue;
|
|
46
|
+
private sortTooltipDataByCategoricalSortOrder;
|
|
47
|
+
updateStackedAreaElements(): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StackedAreaComponent<any, any>, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StackedAreaComponent<any, any>, "[vic-primary-marks-stacked-area]", never, {}, {}, never, never, true, never>;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./stacked-area.component";
|
|
3
|
+
import * as i2 from "./events/stacked-area-events.directive";
|
|
4
|
+
export declare class VicStackedAreaModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicStackedAreaModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VicStackedAreaModule, never, [typeof i1.StackedAreaComponent, typeof i2.StackedAreaEventsDirective], [typeof i1.StackedAreaComponent, typeof i2.StackedAreaEventsDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VicStackedAreaModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Series } from 'd3';
|
|
2
|
+
import { VicBarsConfigBuilder } from '../../bars/config/bars-builder';
|
|
3
|
+
import { DataValue } from '../../core/types/values';
|
|
4
|
+
import { StackedBarsConfig } from './stacked-bars-config';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Builds a configuration object for a StackedBarsComponent.
|
|
8
|
+
*
|
|
9
|
+
* Must be added to a providers array in or above the component that consumes it if it is injected via the constructor. (e.g. `providers: [VicStackedBarsBuilder]` in the component decorator)
|
|
10
|
+
*
|
|
11
|
+
* The first generic parameter, Datum, is the type of the data that will be used to create the stacked bars.
|
|
12
|
+
*
|
|
13
|
+
* The second generic parameter, TOrdinalValue, is the type of the ordinal data that will be used to position the bars.
|
|
14
|
+
*/
|
|
15
|
+
export declare class VicStackedBarsConfigBuilder<Datum, TOrdinalValue extends DataValue> extends VicBarsConfigBuilder<Datum, TOrdinalValue> {
|
|
16
|
+
private _stackOffset;
|
|
17
|
+
private _stackOrder;
|
|
18
|
+
constructor();
|
|
19
|
+
stackOffset(stackOffset: null): this;
|
|
20
|
+
stackOffset(stackOffset: (series: Series<any, any>, order: Iterable<number>) => void): this;
|
|
21
|
+
stackOrder(stackOrder: null): this;
|
|
22
|
+
stackOrder(stackOrder: ((series: Series<Datum, TOrdinalValue>) => Iterable<number>) | null): this;
|
|
23
|
+
getConfig(): StackedBarsConfig<Datum, TOrdinalValue>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicStackedBarsConfigBuilder<any, any>, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VicStackedBarsConfigBuilder<any, any>>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Series } from 'd3';
|
|
2
|
+
import { BarsConfig } from '../../bars/config/bars-config';
|
|
3
|
+
import { BarsDimensions } from '../../bars/config/bars-dimensions';
|
|
4
|
+
import { DataValue } from '../../core/types/values';
|
|
5
|
+
import { StackDatum } from '../stacked-bars.component';
|
|
6
|
+
import { StackedBarsOptions } from './stacked-bars-options';
|
|
7
|
+
export declare class StackedBarsConfig<Datum, TOrdinalValue extends DataValue> extends BarsConfig<Datum, TOrdinalValue> implements StackedBarsOptions<Datum, TOrdinalValue> {
|
|
8
|
+
stackOffset: (series: Series<any, any>, order: Iterable<number>) => void;
|
|
9
|
+
stackOrder: (x: any) => any;
|
|
10
|
+
stackedData: StackDatum[][];
|
|
11
|
+
constructor(dimensions: BarsDimensions, options: StackedBarsOptions<Datum, TOrdinalValue>);
|
|
12
|
+
initPropertiesFromData(): void;
|
|
13
|
+
setValueIndices(): void;
|
|
14
|
+
constructStackedData(): void;
|
|
15
|
+
initQuantitativeDomainFromStack(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Series } from 'd3';
|
|
2
|
+
import { BarsOptions } from '../../bars/config/bars-options';
|
|
3
|
+
import { DataValue } from '../../core/types/values';
|
|
4
|
+
export interface StackedBarsOptions<Datum, TOrdinalValue extends DataValue> extends BarsOptions<Datum, TOrdinalValue> {
|
|
5
|
+
stackOffset: (series: Series<any, any>, order: Iterable<number>) => void;
|
|
6
|
+
stackOrder: (x: any) => any;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BarsInteractionOutput } from '../../../bars';
|
|
2
|
+
import { DataValue } from '../../../core/types/values';
|
|
3
|
+
import { EventAction } from '../../../events';
|
|
4
|
+
import { StackedBarsHost } from '../stacked-bars-events.directive';
|
|
5
|
+
export declare class StackedBarsClickEmitTooltipDataPauseOtherActions<Datum, TOrdinalValue extends DataValue> implements EventAction<StackedBarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>> {
|
|
6
|
+
onStart(host: StackedBarsHost<Datum, TOrdinalValue>): void;
|
|
7
|
+
onEnd(host: StackedBarsHost<Datum, TOrdinalValue>): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BarsInteractionOutput } from '../../../bars';
|
|
2
|
+
import { DataValue } from '../../../core/types/values';
|
|
3
|
+
import { EventAction } from '../../../events';
|
|
4
|
+
import { StackedBarsHost } from '../stacked-bars-events.directive';
|
|
5
|
+
export declare class StackedBarsHoverEmitTooltipData<Datum, TOrdinalValue extends DataValue> implements EventAction<StackedBarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>> {
|
|
6
|
+
onStart(host: StackedBarsHost<Datum, TOrdinalValue>): void;
|
|
7
|
+
onEnd(host: StackedBarsHost<Datum, TOrdinalValue>): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BarsInteractionOutput } from '../../../bars';
|
|
2
|
+
import { DataValue } from '../../../core/types/values';
|
|
3
|
+
import { HoverMoveAction } from '../../../events';
|
|
4
|
+
import { StackedBarsHost } from '../stacked-bars-events.directive';
|
|
5
|
+
export declare class StackedBarsHoverMoveEmitTooltipData<Datum, TOrdinalValue extends DataValue> implements HoverMoveAction<StackedBarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>> {
|
|
6
|
+
onStart(host: StackedBarsHost<Datum, TOrdinalValue>): void;
|
|
7
|
+
onEnd(host: StackedBarsHost<Datum, TOrdinalValue>): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { BarsInteractionOutput } from '../../bars';
|
|
4
|
+
import { DataValue } from '../../core/types/values';
|
|
5
|
+
import { EventAction, EventsDirective, EventType, HoverMoveAction, InputEventAction, MarksHost, UnlistenFunction } from '../../events';
|
|
6
|
+
import { StackDatum, StackedBarsComponent } from '../stacked-bars.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export interface StackedBarsHost<Datum, TOrdinalValue extends DataValue, TStackedBarsComponent extends StackedBarsComponent<Datum, TOrdinalValue> = StackedBarsComponent<Datum, TOrdinalValue>> extends MarksHost<BarsInteractionOutput<Datum>, TStackedBarsComponent> {
|
|
9
|
+
getStackDatum(): StackDatum | null;
|
|
10
|
+
}
|
|
11
|
+
export declare class StackedBarsEventsDirective<Datum, TOrdinalValue extends DataValue, TStackedBarsComponent extends StackedBarsComponent<Datum, TOrdinalValue> = StackedBarsComponent<Datum, TOrdinalValue>> extends EventsDirective<StackedBarsHost<Datum, TOrdinalValue>> {
|
|
12
|
+
stackedBars: TStackedBarsComponent;
|
|
13
|
+
hoverActions: EventAction<StackedBarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
|
|
14
|
+
hoverMoveActions: HoverMoveAction<StackedBarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
|
|
15
|
+
clickActions: EventAction<StackedBarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
|
|
16
|
+
inputEventActions: InputEventAction<StackedBarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[];
|
|
17
|
+
interactionOutput: EventEmitter<BarsInteractionOutput<Datum>>;
|
|
18
|
+
stackDatum: StackDatum | null;
|
|
19
|
+
origin: SVGRectElement;
|
|
20
|
+
constructor(stackedBars: TStackedBarsComponent);
|
|
21
|
+
get marks(): TStackedBarsComponent;
|
|
22
|
+
getElements(): Observable<Element[]>;
|
|
23
|
+
getStackDatum(): StackDatum | null;
|
|
24
|
+
setupListeners(elements: Element[]): UnlistenFunction[];
|
|
25
|
+
onEnter(_: PointerEvent, el: Element): void;
|
|
26
|
+
onMove(event: PointerEvent, _: Element): void;
|
|
27
|
+
onLeave(_: PointerEvent, __: Element): void;
|
|
28
|
+
onClick(event: PointerEvent, el: Element): void;
|
|
29
|
+
onClickRemove(): void;
|
|
30
|
+
onInputEvent(inputValue: unknown): void;
|
|
31
|
+
initFromElement(el: Element): void;
|
|
32
|
+
setPositionsFromElement(): void;
|
|
33
|
+
setPositionsFromPointer(event: PointerEvent): void;
|
|
34
|
+
getInteractionOutput(type: EventType): BarsInteractionOutput<Datum>;
|
|
35
|
+
emitInteractionOutput(output: BarsInteractionOutput<Datum> | null): void;
|
|
36
|
+
private resetDirective;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StackedBarsEventsDirective<any, any, any>, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StackedBarsEventsDirective<any, any, any>, "[vicStackedBarsEvents]", never, { "hoverActions": { "alias": "hoverActions"; "required": false; }; "hoverMoveActions": { "alias": "hoverMoveActions"; "required": false; }; "clickActions": { "alias": "clickActions"; "required": false; }; "inputEventActions": { "alias": "inputEventActions"; "required": false; }; }, { "interactionOutput": "interactionOutput"; }, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { BarsInteractionOutput as StackedBarsInteractionOutput } from '../bars';
|
|
2
|
+
export * from './config/stacked-bars-builder';
|
|
3
|
+
export * from './config/stacked-bars-config';
|
|
4
|
+
export * from './config/stacked-bars-options';
|
|
5
|
+
export * from './events/actions/stacked-bars-click-actions';
|
|
6
|
+
export * from './events/actions/stacked-bars-hover-actions';
|
|
7
|
+
export * from './events/actions/stacked-bars-hover-move-actions';
|
|
8
|
+
export * from './events/stacked-bars-events.directive';
|
|
9
|
+
export * from './stacked-bars.component';
|
|
10
|
+
export * from './stacked-bars.module';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { BaseType, SeriesPoint } from 'd3';
|
|
3
|
+
import { Selection } from 'd3-selection';
|
|
4
|
+
import { BarsComponent } from '../bars/bars.component';
|
|
5
|
+
import { DataValue } from '../core/types/values';
|
|
6
|
+
import { StackedBarsConfig } from './config/stacked-bars-config';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export type StackDatum = SeriesPoint<{
|
|
9
|
+
[key: string]: number;
|
|
10
|
+
}> & {
|
|
11
|
+
i: number;
|
|
12
|
+
};
|
|
13
|
+
export type StackedBarGroupSelection = Selection<BaseType | SVGRectElement, StackDatum, SVGGElement | BaseType, StackDatum[]>;
|
|
14
|
+
export declare const STACKED_BARS: InjectionToken<StackedBarsComponent<unknown, DataValue>>;
|
|
15
|
+
export declare class StackedBarsComponent<Datum, TOrdinalValue extends DataValue> extends BarsComponent<Datum, TOrdinalValue> {
|
|
16
|
+
config: StackedBarsConfig<Datum, TOrdinalValue>;
|
|
17
|
+
stackedBarGroups: StackedBarGroupSelection;
|
|
18
|
+
drawBars(transitionDuration: number): void;
|
|
19
|
+
getStackElementX(datum: StackDatum): number;
|
|
20
|
+
getStackElementY(datum: StackDatum): number;
|
|
21
|
+
getStackElementWidth(datum: StackDatum): number;
|
|
22
|
+
getStackElementHeight(datum: StackDatum): number;
|
|
23
|
+
getSourceDatumFromStackedBarDatum(datum: StackDatum): Datum;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StackedBarsComponent<any, any>, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StackedBarsComponent<any, any>, "[vic-primary-marks-stacked-bars]", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./stacked-bars.component";
|
|
3
|
+
import * as i2 from "./events/stacked-bars-events.directive";
|
|
4
|
+
export declare class VicStackedBarsModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicStackedBarsModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VicStackedBarsModule, never, [typeof i1.StackedBarsComponent, typeof i2.StackedBarsEventsDirective], [typeof i1.StackedBarsComponent, typeof i2.StackedBarsEventsDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VicStackedBarsModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StrokeBaseOptions } from './stroke-base-options';
|
|
2
|
+
export declare abstract class StrokeBase implements StrokeBaseOptions {
|
|
3
|
+
readonly linecap: string;
|
|
4
|
+
readonly linejoin: string;
|
|
5
|
+
readonly opacity: number;
|
|
6
|
+
readonly width: number;
|
|
7
|
+
readonly dasharray: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Stroke } from './stroke';
|
|
2
|
+
export declare class StrokeBuilder {
|
|
3
|
+
private _color;
|
|
4
|
+
private _dasharray;
|
|
5
|
+
private _linecap;
|
|
6
|
+
private _linejoin;
|
|
7
|
+
private _opacity;
|
|
8
|
+
private _width;
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* OPTIONAL. A value for the line's [stroke]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke}
|
|
12
|
+
* attribute.
|
|
13
|
+
*
|
|
14
|
+
* @default '#000'
|
|
15
|
+
*/
|
|
16
|
+
color(color: string): this;
|
|
17
|
+
/**
|
|
18
|
+
* OPTIONAL. A value for the line's [stroke-dasharray]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray}
|
|
19
|
+
* attribute.
|
|
20
|
+
*
|
|
21
|
+
* @default 'round'
|
|
22
|
+
*/
|
|
23
|
+
dasharray(dasharray: string): this;
|
|
24
|
+
/**
|
|
25
|
+
* OPTIONAL. A value for the line's [stroke-linecap]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap}
|
|
26
|
+
* attribute.
|
|
27
|
+
*
|
|
28
|
+
* @default 'round'
|
|
29
|
+
*/
|
|
30
|
+
linecap(linecap: string): this;
|
|
31
|
+
/**
|
|
32
|
+
* OPTIONAL. A value for the line's [stroke-linejoin]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin}
|
|
33
|
+
* attribute.
|
|
34
|
+
*
|
|
35
|
+
* @default 'round'
|
|
36
|
+
*/
|
|
37
|
+
linejoin(linejoin: string): this;
|
|
38
|
+
/**
|
|
39
|
+
* OPTIONAL. A value for the line's [stroke-opacity]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-opacity}
|
|
40
|
+
* attribute.
|
|
41
|
+
*
|
|
42
|
+
* @default 1
|
|
43
|
+
*/
|
|
44
|
+
opacity(opacity: number): this;
|
|
45
|
+
/**
|
|
46
|
+
* OPTIONAL. A value for the line's [stroke-width]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width}
|
|
47
|
+
* attribute, in px.
|
|
48
|
+
*
|
|
49
|
+
* @default 2
|
|
50
|
+
*/
|
|
51
|
+
width(width: number): this;
|
|
52
|
+
/**
|
|
53
|
+
* @internal This function is for internal use only and should never be called by the user.
|
|
54
|
+
*/
|
|
55
|
+
_build(): Stroke;
|
|
56
|
+
}
|