@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,31 @@
|
|
|
1
|
+
import { ImageDownloadOptions } from './image-download-options';
|
|
2
|
+
export declare class VicJpegImageConfig implements ImageDownloadOptions {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
containerNode: HTMLElement;
|
|
5
|
+
fileName: string;
|
|
6
|
+
filter: (domNode: HTMLElement) => boolean;
|
|
7
|
+
fontEmbedCSS: string;
|
|
8
|
+
imageType: string;
|
|
9
|
+
quality: number;
|
|
10
|
+
constructor(options?: Partial<ImageDownloadOptions>);
|
|
11
|
+
}
|
|
12
|
+
export declare class VicPngImageConfig implements ImageDownloadOptions {
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
containerNode: HTMLElement;
|
|
15
|
+
fileName: string;
|
|
16
|
+
filter: (domNode: HTMLElement) => boolean;
|
|
17
|
+
fontEmbedCSS: string;
|
|
18
|
+
imageType: string;
|
|
19
|
+
quality: number;
|
|
20
|
+
constructor(options?: Partial<ImageDownloadOptions>);
|
|
21
|
+
}
|
|
22
|
+
export declare class VicSvgImageConfig implements ImageDownloadOptions {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
containerNode: HTMLElement;
|
|
25
|
+
fileName: string;
|
|
26
|
+
filter: (domNode: HTMLElement) => boolean;
|
|
27
|
+
fontEmbedCSS: string;
|
|
28
|
+
imageType: string;
|
|
29
|
+
quality: number;
|
|
30
|
+
constructor(options?: Partial<ImageDownloadOptions>);
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ImageDownloadOptions {
|
|
2
|
+
backgroundColor: string;
|
|
3
|
+
containerNode: HTMLElement;
|
|
4
|
+
fileName: string;
|
|
5
|
+
filter: (domNode: HTMLElement) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Disables external fonts from being read in
|
|
8
|
+
* Supply with custom css fallback; or set to undefined to read external fonts
|
|
9
|
+
* (will oftentimes get security errors)
|
|
10
|
+
*/
|
|
11
|
+
fontEmbedCSS: string;
|
|
12
|
+
imageType: string;
|
|
13
|
+
quality: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as domToImage from 'html-to-image';
|
|
2
|
+
import { VicJpegImageConfig, VicPngImageConfig, VicSvgImageConfig } from './image-download-config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class VicImageDownloadService {
|
|
5
|
+
domToImage: typeof domToImage;
|
|
6
|
+
/**
|
|
7
|
+
* @param imageConfig
|
|
8
|
+
* @returns fontEmbedCSS -- scans stylesheets for font files and base64 encodes them,
|
|
9
|
+
* reuse this value in imageConfig for subsequent downloads to avoid
|
|
10
|
+
* re-encoding fonts (slight performance boost)
|
|
11
|
+
*/
|
|
12
|
+
downloadImage(imageConfig: VicJpegImageConfig | VicPngImageConfig | VicSvgImageConfig): Promise<string | void>;
|
|
13
|
+
createLinkAndClick(dataUrl: string, fileName: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicImageDownloadService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VicImageDownloadService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FillDefinition } from '../../../data-dimensions';
|
|
2
|
+
import { AreaFills } from './area-fills';
|
|
3
|
+
export declare class AreaFillsBuilder<Datum> {
|
|
4
|
+
private _display;
|
|
5
|
+
private _opacity;
|
|
6
|
+
private _customFills;
|
|
7
|
+
private _color;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
* OPTIONAL. A string which determines color of the fill under line,
|
|
11
|
+
* or a function whose input is the first point in the line and which returns
|
|
12
|
+
* a color string.
|
|
13
|
+
* This string is directly passed to `fill` under the hood.
|
|
14
|
+
*
|
|
15
|
+
* If not set, the color of the line will be used.
|
|
16
|
+
*
|
|
17
|
+
* To unset the color, call with `null`.
|
|
18
|
+
*/
|
|
19
|
+
color(color: null): this;
|
|
20
|
+
color(color: string): this;
|
|
21
|
+
color(color: (d: Datum) => string): this;
|
|
22
|
+
/**
|
|
23
|
+
* OPTIONAL. A boolean to determine if fill under line should be displayed.
|
|
24
|
+
*
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
display(display: boolean): this;
|
|
28
|
+
display(display: (category: string) => boolean): this;
|
|
29
|
+
/**
|
|
30
|
+
* OPTIONAL. A number to determine the opacity of the fill under line.
|
|
31
|
+
*
|
|
32
|
+
* @default 0.2
|
|
33
|
+
*/
|
|
34
|
+
opacity(opacity: number): this;
|
|
35
|
+
/**
|
|
36
|
+
* OPTIONAL. A string to determine the gradient of the fill under line.
|
|
37
|
+
*
|
|
38
|
+
* @default undefined
|
|
39
|
+
*/
|
|
40
|
+
customFills(customFills: FillDefinition<Datum>[]): this;
|
|
41
|
+
/**
|
|
42
|
+
* @internal This function is for internal use only and should never be called by the user.
|
|
43
|
+
*/
|
|
44
|
+
_build(): AreaFills<Datum>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FillDefinition } from '../../../data-dimensions';
|
|
2
|
+
import { AreaFillsOptions } from './area-fills-options';
|
|
3
|
+
export declare class AreaFills<Datum> implements AreaFillsOptions<Datum> {
|
|
4
|
+
readonly display: (category: string) => boolean;
|
|
5
|
+
readonly opacity: number;
|
|
6
|
+
readonly customFills: FillDefinition<Datum>[];
|
|
7
|
+
readonly color: (d: Datum) => string;
|
|
8
|
+
constructor(options: AreaFillsOptions<Datum>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { CurveFactory } from 'd3';
|
|
2
|
+
import { DateChartPositionDimensionBuilder } from '../../data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-builder';
|
|
3
|
+
import { NumberChartPositionDimensionBuilder } from '../../data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-builder';
|
|
4
|
+
import { PrimaryMarksBuilder } from '../../marks/primary-marks/config/primary-marks-builder';
|
|
5
|
+
import { PointMarkersBuilder } from '../../point-markers/point-markers-builder';
|
|
6
|
+
import { LinesStrokeBuilder } from '../config/stroke/lines-stroke-builder';
|
|
7
|
+
import { AreaFillsBuilder } from './area-fills/area-fills-builder';
|
|
8
|
+
import { LinesConfig } from './lines-config';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* Builds a configuration object for a LinesComponent.
|
|
12
|
+
*
|
|
13
|
+
* 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: [VicLinesBuilder]` in the component decorator)
|
|
14
|
+
*
|
|
15
|
+
* The generic parameter, Datum, is the type of the data that will be used to create the lines.
|
|
16
|
+
*/
|
|
17
|
+
export declare class VicLinesConfigBuilder<Datum> extends PrimaryMarksBuilder<Datum> {
|
|
18
|
+
private _curve;
|
|
19
|
+
private _labelLines;
|
|
20
|
+
private _lineLabelsFormat;
|
|
21
|
+
private _pointerDetectionRadius;
|
|
22
|
+
private pointMarkersBuilder;
|
|
23
|
+
private strokeBuilder;
|
|
24
|
+
private xDimensionBuilder;
|
|
25
|
+
private yDimensionBuilder;
|
|
26
|
+
private areaFillsBuilder;
|
|
27
|
+
constructor();
|
|
28
|
+
/**
|
|
29
|
+
* OPTIONAL. A config to set fill underneath lines.
|
|
30
|
+
*
|
|
31
|
+
* If no argument is provided, the default area fills will be created.
|
|
32
|
+
*
|
|
33
|
+
* To unset the area fills, call with `null`.
|
|
34
|
+
*/
|
|
35
|
+
areaFills(): this;
|
|
36
|
+
areaFills(areaFills: null): this;
|
|
37
|
+
areaFills(areaFills: (areaFills: AreaFillsBuilder<Datum>) => void): this;
|
|
38
|
+
private initBelowLinesAreaFillBuilder;
|
|
39
|
+
/**
|
|
40
|
+
* OPTIONAL. A function passed to D3's [line.curve()]{@link https://github.com/d3/d3-shape#line_curve}
|
|
41
|
+
* method.
|
|
42
|
+
*
|
|
43
|
+
* @default [curveLinear]{@link https://github.com/d3/d3-shape#curveLinear}.
|
|
44
|
+
*/
|
|
45
|
+
curve(curve: CurveFactory): this;
|
|
46
|
+
/**
|
|
47
|
+
* OPTIONAL. A boolean to determine if the line will be labeled.
|
|
48
|
+
*/
|
|
49
|
+
labelLines(labelLines: boolean): this;
|
|
50
|
+
/**
|
|
51
|
+
* OPTIONAL. A function that returns a string to be used as the label for a line. Can be used to modify the
|
|
52
|
+
* line label string as needed.
|
|
53
|
+
*
|
|
54
|
+
* @default identity function.
|
|
55
|
+
*/
|
|
56
|
+
lineLabelsFormat(lineLabelsFormat: (d: string) => string): this;
|
|
57
|
+
/**
|
|
58
|
+
* OPTIONAL. The distance from a line in which a hover event will trigger a tooltip, in px.
|
|
59
|
+
*
|
|
60
|
+
* This is used to ensure that a tooltip is triggered only when a user's pointer is close to lines.
|
|
61
|
+
*
|
|
62
|
+
* @default 80
|
|
63
|
+
*/
|
|
64
|
+
pointerDetectionRadius(pointerDetectionRadius: number): this;
|
|
65
|
+
/**
|
|
66
|
+
* OPTIONAL. A config for the behavior of markers for each datum on the line.
|
|
67
|
+
*
|
|
68
|
+
* Creating this config will create markers on lines. If no argument is provided, the default markers will be created.
|
|
69
|
+
*/
|
|
70
|
+
pointMarkers(): this;
|
|
71
|
+
pointMarkers(pointMarkers: null): this;
|
|
72
|
+
pointMarkers(pointMarkers: ((pointMarkers: PointMarkersBuilder<Datum>) => void) | null): this;
|
|
73
|
+
/**
|
|
74
|
+
* OPTIONAL. A config for the behavior of the line stroke.
|
|
75
|
+
*/
|
|
76
|
+
stroke(stroke: null): this;
|
|
77
|
+
stroke(stroke: (stroke: LinesStrokeBuilder<Datum>) => void): this;
|
|
78
|
+
private initStrokeBuilder;
|
|
79
|
+
/**
|
|
80
|
+
* REQUIRED. A config for the behavior of the chart's x dimension when using numeric data.
|
|
81
|
+
*/
|
|
82
|
+
xNumeric(xNumeric: null): this;
|
|
83
|
+
xNumeric(xNumeric: (x: NumberChartPositionDimensionBuilder<Datum>) => void): this;
|
|
84
|
+
/**
|
|
85
|
+
* REQUIRED. A config for the behavior of the chart's x dimension when using Date date.
|
|
86
|
+
*/
|
|
87
|
+
xDate(xDate: null): this;
|
|
88
|
+
xDate(xDate: (x: DateChartPositionDimensionBuilder<Datum>) => void): this;
|
|
89
|
+
/**
|
|
90
|
+
* REQUIRED. A config for the behavior of the chart's y dimension.
|
|
91
|
+
*/
|
|
92
|
+
y(y: null): this;
|
|
93
|
+
y(y: (y: NumberChartPositionDimensionBuilder<Datum>) => void): this;
|
|
94
|
+
/**
|
|
95
|
+
* REQUIRED. Builds the configuration object for the LinesComponent.
|
|
96
|
+
*/
|
|
97
|
+
getConfig(): LinesConfig<Datum>;
|
|
98
|
+
protected validateBuilder(): void;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicLinesConfigBuilder<any>, never>;
|
|
100
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VicLinesConfigBuilder<any>>;
|
|
101
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CurveFactory } from 'd3';
|
|
2
|
+
import { DateChartPositionDimension } from '../../data-dimensions/continuous-quantitative/date-chart-position/date-chart-position';
|
|
3
|
+
import { NumberChartPositionDimension } from '../../data-dimensions/continuous-quantitative/number-chart-position/number-chart-position';
|
|
4
|
+
import { XyPrimaryMarksConfig } from '../../marks/xy-marks/xy-primary-marks/xy-primary-marks-config';
|
|
5
|
+
import { PointMarkers } from '../../point-markers/point-markers';
|
|
6
|
+
import { LinesGroupSelectionDatum } from '../lines.component';
|
|
7
|
+
import { AreaFills } from './area-fills/area-fills';
|
|
8
|
+
import { LinesOptions } from './lines-options';
|
|
9
|
+
import { LinesStroke } from './stroke/lines-stroke';
|
|
10
|
+
export interface LinesMarkerDatum {
|
|
11
|
+
key: string;
|
|
12
|
+
index: number;
|
|
13
|
+
category: string;
|
|
14
|
+
display: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class LinesConfig<Datum> extends XyPrimaryMarksConfig<Datum> implements LinesOptions<Datum> {
|
|
17
|
+
readonly curve: CurveFactory;
|
|
18
|
+
readonly labelLines: boolean;
|
|
19
|
+
readonly lineLabelsFormat: (d: string) => string;
|
|
20
|
+
linesD3Data: any;
|
|
21
|
+
linesKeyFunction: (d: LinesGroupSelectionDatum) => string;
|
|
22
|
+
readonly areaFills: AreaFills<Datum>;
|
|
23
|
+
readonly pointerDetectionRadius: number;
|
|
24
|
+
readonly pointMarkers: PointMarkers<Datum>;
|
|
25
|
+
readonly stroke: LinesStroke<Datum>;
|
|
26
|
+
readonly x: DateChartPositionDimension<Datum> | NumberChartPositionDimension<Datum>;
|
|
27
|
+
readonly y: NumberChartPositionDimension<Datum>;
|
|
28
|
+
constructor(options: LinesOptions<Datum>);
|
|
29
|
+
protected initPropertiesFromData(): void;
|
|
30
|
+
private setDimensionPropertiesFromData;
|
|
31
|
+
private setValueIndices;
|
|
32
|
+
private setLinesD3Data;
|
|
33
|
+
getDataFromCategory(category: string): Datum[];
|
|
34
|
+
private setLinesKeyFunction;
|
|
35
|
+
getPointMarkersData(indices: number[]): LinesMarkerDatum[];
|
|
36
|
+
private getMarkerKey;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CurveFactory } from 'd3';
|
|
2
|
+
import { DateChartPositionDimension } from '../../data-dimensions/continuous-quantitative/date-chart-position/date-chart-position';
|
|
3
|
+
import { NumberChartPositionDimension } from '../../data-dimensions/continuous-quantitative/number-chart-position/number-chart-position';
|
|
4
|
+
import { DataMarksOptions } from '../../marks/config/marks-options';
|
|
5
|
+
import { PointMarkers } from '../../point-markers/point-markers';
|
|
6
|
+
import { AreaFills } from './area-fills/area-fills';
|
|
7
|
+
import { LinesStrokeOptions } from './stroke/lines-stroke-options';
|
|
8
|
+
export interface LinesOptions<Datum> extends DataMarksOptions<Datum> {
|
|
9
|
+
areaFills: AreaFills<Datum>;
|
|
10
|
+
curve: CurveFactory;
|
|
11
|
+
labelLines: boolean;
|
|
12
|
+
lineLabelsFormat: (d: string) => string;
|
|
13
|
+
pointerDetectionRadius: number;
|
|
14
|
+
pointMarkers: PointMarkers<Datum>;
|
|
15
|
+
stroke: LinesStrokeOptions<Datum>;
|
|
16
|
+
x: DateChartPositionDimension<Datum> | NumberChartPositionDimension<Datum>;
|
|
17
|
+
y: NumberChartPositionDimension<Datum>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { OrdinalVisualValueDimensionBuilder } from '../../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder';
|
|
2
|
+
import { LinesStroke } from './lines-stroke';
|
|
3
|
+
export declare class LinesStrokeBuilder<Datum> {
|
|
4
|
+
private colorDimensionBuilder;
|
|
5
|
+
private _dasharray;
|
|
6
|
+
private _linecap;
|
|
7
|
+
private _linejoin;
|
|
8
|
+
private _opacity;
|
|
9
|
+
private _width;
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
* OPTIONAL. Creates a dimension that will control the color of the bars.
|
|
13
|
+
*
|
|
14
|
+
* If not provided, all bars will be colored with the first color in `d3.schemeTableau10`, the default `range` for the dimension.
|
|
15
|
+
*/
|
|
16
|
+
color(color: null): this;
|
|
17
|
+
color(color: (dimension: OrdinalVisualValueDimensionBuilder<Datum, string, string>) => void): this;
|
|
18
|
+
private initColorDimensionBuilder;
|
|
19
|
+
/**
|
|
20
|
+
* OPTIONAL. A value for the line's [stroke-dasharray]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray}
|
|
21
|
+
* attribute.
|
|
22
|
+
*
|
|
23
|
+
* @default 'round'
|
|
24
|
+
*/
|
|
25
|
+
dasharray(dasharray: string): this;
|
|
26
|
+
/**
|
|
27
|
+
* OPTIONAL. A value for the line's [stroke-linecap]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap}
|
|
28
|
+
* attribute.
|
|
29
|
+
*
|
|
30
|
+
* @default 'round'
|
|
31
|
+
*/
|
|
32
|
+
linecap(linecap: string): this;
|
|
33
|
+
/**
|
|
34
|
+
* OPTIONAL. A value for the line's [stroke-linejoin]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin}
|
|
35
|
+
* attribute.
|
|
36
|
+
*
|
|
37
|
+
* @default 'round'
|
|
38
|
+
*/
|
|
39
|
+
linejoin(linejoin: string): this;
|
|
40
|
+
/**
|
|
41
|
+
* OPTIONAL. A value for the line's [stroke-opacity]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-opacity}
|
|
42
|
+
* attribute.
|
|
43
|
+
*
|
|
44
|
+
* @default 1
|
|
45
|
+
*/
|
|
46
|
+
opacity(opacity: number): this;
|
|
47
|
+
/**
|
|
48
|
+
* OPTIONAL. A value for the line's [stroke-width]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width}
|
|
49
|
+
* attribute, in px.
|
|
50
|
+
*
|
|
51
|
+
* @default 2
|
|
52
|
+
*/
|
|
53
|
+
width(width: number): this;
|
|
54
|
+
/**
|
|
55
|
+
* @internal This function is for internal use only and should never be called by the user.
|
|
56
|
+
*/
|
|
57
|
+
_build(): LinesStroke<Datum>;
|
|
58
|
+
validateBuilder(): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OrdinalVisualValueDimension } from '../../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value';
|
|
2
|
+
import { StrokeBase } from '../../../stroke/base/stroke-base';
|
|
3
|
+
export interface LinesStrokeOptions<Datum> extends StrokeBase {
|
|
4
|
+
color: OrdinalVisualValueDimension<Datum, string, string>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OrdinalVisualValueDimension } from '../../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value';
|
|
2
|
+
import { StrokeBase } from '../../../stroke/base/stroke-base';
|
|
3
|
+
import { LinesStrokeOptions } from './lines-stroke-options';
|
|
4
|
+
export declare class LinesStroke<Datum> extends StrokeBase implements LinesStrokeOptions<Datum> {
|
|
5
|
+
color: OrdinalVisualValueDimension<Datum, string, string>;
|
|
6
|
+
constructor(options: Partial<LinesStrokeOptions<Datum>>);
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EventAction } from '../../../events';
|
|
2
|
+
import { LinesHost } from '../lines-events.directive';
|
|
3
|
+
export declare class LinesClickEmitTooltipDataPauseHoverMoveActions<Datum> implements EventAction<LinesHost<Datum>> {
|
|
4
|
+
onStart(host: LinesHost<Datum>): void;
|
|
5
|
+
onEnd(host: LinesHost<Datum>): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HoverMoveAction } from '../../../events';
|
|
2
|
+
import { LinesHost } from '../lines-events.directive';
|
|
3
|
+
/**
|
|
4
|
+
* A suggested default action for the hover and move event on lines.
|
|
5
|
+
*
|
|
6
|
+
* This action changes the color of the non-closest-to-pointer lines
|
|
7
|
+
* to a light gray.
|
|
8
|
+
*/
|
|
9
|
+
export declare class LinesHoverMoveDefaultLinesStyles<Datum> implements HoverMoveAction<LinesHost<Datum>> {
|
|
10
|
+
onStart(host: LinesHost<Datum>): void;
|
|
11
|
+
onEnd(directive: LinesHost<Datum>): void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A suggested default action for the hover and move event on line markers.
|
|
15
|
+
*
|
|
16
|
+
* This action makes line markers on non-closest-to-pointer lines invisible,
|
|
17
|
+
* and at the same time enlarges the marker on the "selected" line that is
|
|
18
|
+
* closest to the pointer by a specified amount.
|
|
19
|
+
*/
|
|
20
|
+
export declare class LinesHoverMoveDefaultMarkersStyles<Datum> implements HoverMoveAction<LinesHost<Datum>> {
|
|
21
|
+
onStart(host: LinesHost<Datum>): void;
|
|
22
|
+
onEnd(host: LinesHost<Datum>): void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A collection of suggested default actions for the hover and move event
|
|
26
|
+
* on lines and line markers.
|
|
27
|
+
*
|
|
28
|
+
* Applies either Line Markers action or a Hover Dot action depending on
|
|
29
|
+
* whether line markers are used.
|
|
30
|
+
*/
|
|
31
|
+
export declare class LinesHoverMoveDefaultStyles<Datum> implements HoverMoveAction<LinesHost<Datum>> {
|
|
32
|
+
linesStyles: HoverMoveAction<LinesHost<Datum>>;
|
|
33
|
+
markersStyles: HoverMoveAction<LinesHost<Datum>>;
|
|
34
|
+
constructor();
|
|
35
|
+
onStart(host: LinesHost<Datum>): void;
|
|
36
|
+
onEnd(host: LinesHost<Datum>): void;
|
|
37
|
+
}
|
|
38
|
+
export declare class LinesHoverMoveEmitTooltipData<Datum> implements HoverMoveAction<LinesHost<Datum>> {
|
|
39
|
+
onStart(host: LinesHost<Datum>): void;
|
|
40
|
+
onEnd(host: LinesHost<Datum>): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EventAction } from '../../../events';
|
|
2
|
+
import { LinesHost } from '../lines-events.directive';
|
|
3
|
+
export declare class LinesMarkerClickEmitTooltipData<Datum> implements EventAction<LinesHost<Datum>> {
|
|
4
|
+
onStart(host: LinesHost<Datum>): void;
|
|
5
|
+
onEnd(host: LinesHost<Datum>): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ContinuousValue } from '../../core/types/values';
|
|
4
|
+
import { EventAction, EventsDirective, EventType, HoverMoveAction, InputEventAction, MarksHost, UnlistenFunction } from '../../events';
|
|
5
|
+
import { LinesComponent, LinesGroupSelection, MarkerSelection } from '../lines.component';
|
|
6
|
+
import { LinesInteractionOutput } from './lines-interaction-output';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export interface LinesHost<Datum, TLinesComponent extends LinesComponent<Datum> = LinesComponent<Datum>> extends MarksHost<LinesInteractionOutput<Datum>, TLinesComponent> {
|
|
9
|
+
getClosestPointIndex(): number;
|
|
10
|
+
getClosestLineGroup(): LinesGroupSelection;
|
|
11
|
+
getOtherLineGroups(): LinesGroupSelection;
|
|
12
|
+
getClosestMarker(): MarkerSelection;
|
|
13
|
+
getOtherMarkers(): MarkerSelection;
|
|
14
|
+
}
|
|
15
|
+
export declare class LinesEventsDirective<Datum, TLinesComponent extends LinesComponent<Datum> = LinesComponent<Datum>> extends EventsDirective<LinesHost<Datum>> implements LinesHost<Datum> {
|
|
16
|
+
lines: TLinesComponent;
|
|
17
|
+
hoverMoveActions: HoverMoveAction<LinesHost<Datum>, LinesInteractionOutput<Datum>>[] | null;
|
|
18
|
+
clickActions: EventAction<LinesHost<Datum>, LinesInteractionOutput<Datum>>[] | null;
|
|
19
|
+
inputEventActions: InputEventAction<LinesHost<Datum>, LinesInteractionOutput<Datum>>[];
|
|
20
|
+
interactionOutput: EventEmitter<LinesInteractionOutput<Datum>>;
|
|
21
|
+
closestPointIndex: number;
|
|
22
|
+
actionActive: boolean;
|
|
23
|
+
constructor(lines: TLinesComponent);
|
|
24
|
+
get marks(): LinesComponent<Datum>;
|
|
25
|
+
getElements(): Observable<Element[]>;
|
|
26
|
+
getClosestPointIndex(): number;
|
|
27
|
+
getClosestLineGroup(): LinesGroupSelection;
|
|
28
|
+
getOtherLineGroups(): LinesGroupSelection;
|
|
29
|
+
getClosestMarker(): MarkerSelection;
|
|
30
|
+
getOtherMarkers(): MarkerSelection;
|
|
31
|
+
setupListeners(elements: Element[]): UnlistenFunction[];
|
|
32
|
+
onEnter(_: PointerEvent, __: Element): void;
|
|
33
|
+
onMove(event: PointerEvent, _: Element): void;
|
|
34
|
+
onLeave(_: PointerEvent, __: Element): void;
|
|
35
|
+
onClick(event: PointerEvent, __: Element): void;
|
|
36
|
+
onClickRemove(): void;
|
|
37
|
+
onInputEvent(inputValue: unknown): void;
|
|
38
|
+
pointerIsInChartArea(): boolean;
|
|
39
|
+
private callPointerEventActions;
|
|
40
|
+
protected _getClosestPointIndex(): number;
|
|
41
|
+
getPointerDistanceFromPoint(xValue: ContinuousValue, yValue: number, pointerX: number, pointerY: number): number;
|
|
42
|
+
pointerIsInsideShowTooltipRadius(closestPointIndex: number, pointerX: number, pointerY: number): boolean;
|
|
43
|
+
setPositionsFromElement(): void;
|
|
44
|
+
getInteractionOutput(type: EventType): LinesInteractionOutput<Datum>;
|
|
45
|
+
emitInteractionOutput(output: LinesInteractionOutput<Datum>): void;
|
|
46
|
+
private resetDirective;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinesEventsDirective<any, any>, never>;
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LinesEventsDirective<any, any>, "[vicLinesEvents]", never, { "hoverMoveActions": { "alias": "hoverMoveActions"; "required": false; }; "clickActions": { "alias": "clickActions"; "required": false; }; "inputEventActions": { "alias": "inputEventActions"; "required": false; }; }, { "interactionOutput": "interactionOutput"; }, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InteractionOutput } from '../../events/interaction-output';
|
|
2
|
+
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
+
import { LinesTooltipDatum } from '../lines.component';
|
|
4
|
+
export interface LinesInteractionOutput<Datum> extends LinesTooltipDatum<Datum>, InteractionOutput {
|
|
5
|
+
/**
|
|
6
|
+
* A method that positions the tooltip with a user specified offset from the tooltip's anchor point.
|
|
7
|
+
*
|
|
8
|
+
* @param offset - Optional offset from the anchor's x and y position.
|
|
9
|
+
* If not provided, defaults to { x: 0, y: 0 }.
|
|
10
|
+
* 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).
|
|
11
|
+
*/
|
|
12
|
+
fromAnchor: (offset?: Partial<{
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
}>) => HtmlTooltipCdkManagedPosition;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TooltipPositioner } from '../../events/tooltip-positioner';
|
|
2
|
+
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
+
export declare class LinesTooltipPositioner extends TooltipPositioner {
|
|
4
|
+
private anchor;
|
|
5
|
+
constructor(anchor: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
});
|
|
9
|
+
fromAnchor(offset: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}): HtmlTooltipCdkManagedPosition;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './config/lines-builder';
|
|
2
|
+
export * from './config/lines-config';
|
|
3
|
+
export * from './config/lines-options';
|
|
4
|
+
export * from './events/actions/lines-click-actions';
|
|
5
|
+
export * from './events/actions/lines-hover-move-actions';
|
|
6
|
+
export * from './events/actions/lines-marker-click-actions';
|
|
7
|
+
export * from './events/lines-events.directive';
|
|
8
|
+
export * from './events/lines-interaction-output';
|
|
9
|
+
export * from './events/lines-tooltip-positioner';
|
|
10
|
+
export * from './lines.component';
|
|
11
|
+
export * from './lines.module';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ElementRef, InjectionToken } from '@angular/core';
|
|
2
|
+
import { Selection } from 'd3-selection';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { XyChartScales } from '../charts/xy-chart/xy-chart.component';
|
|
5
|
+
import { GenericScale } from '../core';
|
|
6
|
+
import { VicXyPrimaryMarks } from '../marks/xy-marks/xy-primary-marks/xy-primary-marks';
|
|
7
|
+
import { LinesConfig, LinesMarkerDatum } from './config/lines-config';
|
|
8
|
+
import { LinesInteractionOutput } from './events/lines-interaction-output';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export type LinesGroupSelection = Selection<SVGGElement, LinesGroupSelectionDatum, SVGGElement, unknown>;
|
|
11
|
+
export type LinesGroupSelectionDatum = [string, number[]];
|
|
12
|
+
export declare const LINES: InjectionToken<LinesComponent<unknown>>;
|
|
13
|
+
export interface LinesTooltipDatum<Datum> {
|
|
14
|
+
datum: Datum;
|
|
15
|
+
color: string;
|
|
16
|
+
values: {
|
|
17
|
+
x: string;
|
|
18
|
+
y: string;
|
|
19
|
+
strokeColor: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
type LinesSvgElements = 'g' | 'line' | 'area' | 'marker' | 'label';
|
|
23
|
+
export type MarkerSelection = Selection<SVGCircleElement, LinesMarkerDatum, SVGGElement, LinesGroupSelectionDatum>;
|
|
24
|
+
export declare class LinesComponent<Datum> extends VicXyPrimaryMarks<Datum, LinesConfig<Datum>> {
|
|
25
|
+
line: (x: any[]) => any;
|
|
26
|
+
lineArea: (x: any[]) => any;
|
|
27
|
+
lineGroups: LinesGroupSelection;
|
|
28
|
+
lineLabelsRef: ElementRef<SVGSVGElement>;
|
|
29
|
+
markerIndexAttr: string;
|
|
30
|
+
markers: BehaviorSubject<MarkerSelection>;
|
|
31
|
+
markers$: import("rxjs").Observable<MarkerSelection>;
|
|
32
|
+
scales: {
|
|
33
|
+
color: GenericScale<any, any>;
|
|
34
|
+
} & XyChartScales;
|
|
35
|
+
private zone;
|
|
36
|
+
private elRef;
|
|
37
|
+
get class(): Record<LinesSvgElements, string>;
|
|
38
|
+
setChartScalesFromRanges(useTransition: boolean): void;
|
|
39
|
+
drawMarks(): void;
|
|
40
|
+
setLine(): void;
|
|
41
|
+
setAreaFunction(): void;
|
|
42
|
+
isValidValue(d: Datum): boolean;
|
|
43
|
+
drawLines(transitionDuration: number): void;
|
|
44
|
+
drawAreaFills(transitionDuration: number): void;
|
|
45
|
+
getAreaFill(category: string, lineDataIndices: number[]): string;
|
|
46
|
+
drawPointMarkers(transitionDuration: number): void;
|
|
47
|
+
drawLineLabels(): void;
|
|
48
|
+
updateMarkerElements(): void;
|
|
49
|
+
getTooltipData(datumIndex: number): Omit<LinesInteractionOutput<Datum>, 'type' | 'fromAnchor' | 'customPosition' | 'defaultPosition'>;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinesComponent<any>, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinesComponent<any>, "[vic-primary-marks-lines]", never, {}, {}, never, never, true, never>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./lines.component";
|
|
3
|
+
import * as i2 from "./events/lines-events.directive";
|
|
4
|
+
export declare class VicLinesModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicLinesModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VicLinesModule, never, [typeof i1.LinesComponent, typeof i2.LinesEventsDirective], [typeof i1.LinesComponent, typeof i2.LinesEventsDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VicLinesModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementRef, OnChanges } from '@angular/core';
|
|
2
|
+
import { NoBinsAttributeDataDimension } from '../../geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins';
|
|
3
|
+
import { MapLegend } from '../map-legend-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare class ContinuousLegendComponent<Datum> extends MapLegend<Datum, NoBinsAttributeDataDimension<Datum>> implements OnChanges {
|
|
9
|
+
canvasRef: ElementRef<HTMLCanvasElement>;
|
|
10
|
+
ngOnChanges(): void;
|
|
11
|
+
getValuesFromScale(): number[];
|
|
12
|
+
getLeftOffset(): number;
|
|
13
|
+
drawLinearGradient(): void;
|
|
14
|
+
drawHorizontalGradient(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D): void;
|
|
15
|
+
drawVerticalGradient(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContinuousLegendComponent<any>, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContinuousLegendComponent<any>, "vic-continuous-legend", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VicAttributeDataDimensionConfig } from '../../geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-types';
|
|
2
|
+
import { NoBinsAttributeDataDimension } from '../../geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins';
|
|
3
|
+
import { MapLegend } from '../map-legend-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type DiscontinuousAttributeDataDimensionConfig<Datum> = Exclude<VicAttributeDataDimensionConfig<Datum>, NoBinsAttributeDataDimension<Datum>>;
|
|
6
|
+
export declare class DiscontinuousLegendComponent<Datum> extends MapLegend<Datum, DiscontinuousAttributeDataDimensionConfig<Datum>> {
|
|
7
|
+
getValuesFromScale(): string[] | number[];
|
|
8
|
+
getQuantitativeValuesFromScale(): number[];
|
|
9
|
+
getLeftOffset(values: string[]): number;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscontinuousLegendComponent<any>, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscontinuousLegendComponent<any>, "vic-discontinuous-legend", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|