@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,33 @@
|
|
|
1
|
+
import { OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { Orientation, Side } from '../core/types/layout';
|
|
3
|
+
import { BinStrategy } from '../geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-enums';
|
|
4
|
+
import { VicAttributeDataDimensionConfig } from '../geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare abstract class MapLegend<Datum, AttributeDimensionConfig extends VicAttributeDataDimensionConfig<Datum>> implements OnChanges, OnInit {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
orientation: keyof typeof Orientation;
|
|
10
|
+
valuesSide: keyof typeof Side;
|
|
11
|
+
scale: any;
|
|
12
|
+
config: AttributeDimensionConfig;
|
|
13
|
+
outlineColor: string;
|
|
14
|
+
values: any[];
|
|
15
|
+
colors: string[];
|
|
16
|
+
startValueSpace: number;
|
|
17
|
+
endValueSpace: number;
|
|
18
|
+
largerValueSpace: number;
|
|
19
|
+
leftOffset: number;
|
|
20
|
+
VicValuesBin: typeof BinStrategy;
|
|
21
|
+
abstract getValuesFromScale(): string[] | number[];
|
|
22
|
+
abstract getLeftOffset(values?: string[]): number;
|
|
23
|
+
ngOnChanges(): void;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
setValues(): void;
|
|
26
|
+
setQuantitativeValues(): void;
|
|
27
|
+
setCategoricalValues(): void;
|
|
28
|
+
setColors(): void;
|
|
29
|
+
setQuantitativeValueSpaces(values: string[]): void;
|
|
30
|
+
setCategoricalValueSpaces(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapLegend<any, any>, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MapLegend<any, any>, never, never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "valuesSide": { "alias": "valuesSide"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; "config": { "alias": "config"; "required": false; }; "outlineColor": { "alias": "outlineColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MapChartComponent } from '../charts/map-chart/map-chart.component';
|
|
3
|
+
import { Orientation, Side } from '../core/types/layout';
|
|
4
|
+
import { BinStrategy } from '../geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-enums';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare enum VicLegendType {
|
|
7
|
+
categorical = "categorical",
|
|
8
|
+
ordinal = "ordinal",
|
|
9
|
+
quantitative = "quantitative"
|
|
10
|
+
}
|
|
11
|
+
export declare class MapLegendComponent<Datum> implements OnInit {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
valuesSide: keyof typeof Side;
|
|
15
|
+
outlineColor: string;
|
|
16
|
+
VicValuesBin: typeof BinStrategy;
|
|
17
|
+
canvasRef: ElementRef<HTMLCanvasElement>;
|
|
18
|
+
legendType: keyof typeof VicLegendType;
|
|
19
|
+
orientation: keyof typeof Orientation;
|
|
20
|
+
chart: MapChartComponent<Datum>;
|
|
21
|
+
destroyRef: DestroyRef;
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
setOrientation(): void;
|
|
24
|
+
setValuesSide(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapLegendComponent<any>, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapLegendComponent<any>, "vic-map-legend", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "valuesSide": { "alias": "valuesSide"; "required": false; }; "outlineColor": { "alias": "outlineColor"; "required": false; }; }, {}, never, ["[title]"], true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./map-legend.component";
|
|
3
|
+
export declare class VicMapLegendModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicMapLegendModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VicMapLegendModule, never, [typeof i1.MapLegendComponent], [typeof i1.MapLegendComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VicMapLegendModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { DataMarksConfig, MarksConfig } from '../config/marks-config';
|
|
3
|
+
import { Marks } from '../marks';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class AuxMarks<Datum, TMarksConfig extends MarksConfig | DataMarksConfig<Datum>> extends Marks implements Marks, OnChanges {
|
|
6
|
+
config: TMarksConfig;
|
|
7
|
+
initFromConfig(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuxMarks<any, any>, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AuxMarks<any, any>, never, never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare abstract class VicAuxMarksBuilder<Datum> {
|
|
2
|
+
protected _mixBlendMode: string;
|
|
3
|
+
protected _class: (d: Datum) => string;
|
|
4
|
+
constructor();
|
|
5
|
+
/**
|
|
6
|
+
* Sets the mix-blend-mode of the marks.
|
|
7
|
+
*
|
|
8
|
+
* @default 'normal'
|
|
9
|
+
*/
|
|
10
|
+
mixBlendMode(mixBlendMode: string): this;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataMarksOptions, MarksOptions } from './marks-options';
|
|
2
|
+
export declare abstract class MarksConfig implements MarksOptions {
|
|
3
|
+
readonly marksClass: string;
|
|
4
|
+
readonly mixBlendMode: string;
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class DataMarksConfig<Datum> extends MarksConfig implements DataMarksOptions<Datum> {
|
|
7
|
+
readonly data: Datum[];
|
|
8
|
+
readonly datumClass: (d: Datum, i: number) => string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './aux-marks/aux-marks';
|
|
2
|
+
export * from './aux-marks/config/aux-marks-builder';
|
|
3
|
+
export * from './aux-marks/config/aux-marks-config';
|
|
4
|
+
export * from './config/marks-config';
|
|
5
|
+
export * from './config/marks-options';
|
|
6
|
+
export * from './map-marks/map-aux-marks/map-aux-marks';
|
|
7
|
+
export * from './map-marks/map-primary-marks/map-primary-marks';
|
|
8
|
+
export * from './primary-marks/config/primary-marks-builder';
|
|
9
|
+
export * from './primary-marks/config/primary-marks-config';
|
|
10
|
+
export * from './primary-marks/primary-marks';
|
|
11
|
+
export * from './xy-marks/xy-aux-marks/xy-aux-marks';
|
|
12
|
+
export * from './xy-marks/xy-marks';
|
|
13
|
+
export * from './xy-marks/xy-marks-config';
|
|
14
|
+
export * from './xy-marks/xy-primary-marks/xy-primary-marks';
|
|
15
|
+
export * from './xy-marks/xy-primary-marks/xy-primary-marks-config';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MapChartComponent } from '../../../charts';
|
|
3
|
+
import { VicAttributeDataDimensionConfig } from '../../../geographies';
|
|
4
|
+
import { AuxMarks } from '../../aux-marks/aux-marks';
|
|
5
|
+
import { MarksConfig } from '../../config/marks-config';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare abstract class VicMapAuxMarks<Datum, TMarksConfig extends MarksConfig> extends AuxMarks<Datum, TMarksConfig> implements OnInit {
|
|
8
|
+
attributeDataConfig: VicAttributeDataDimensionConfig<Datum>;
|
|
9
|
+
attributeDataScale: any;
|
|
10
|
+
chart: MapChartComponent<any>;
|
|
11
|
+
destroyRef: DestroyRef;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
subscribeToAttributeDataProperties(): void;
|
|
14
|
+
getTransitionDuration(): number;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicMapAuxMarks<any, any>, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VicMapAuxMarks<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MapChartComponent } from '../../../charts/map-chart/map-chart.component';
|
|
3
|
+
import { VicAttributeDataDimensionConfig } from '../../../geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-types';
|
|
4
|
+
import { MarksConfig } from '../../config/marks-config';
|
|
5
|
+
import { PrimaryMarks } from '../../primary-marks/primary-marks';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class MapPrimaryMarks<Datum, TPrimaryMarksConfig extends MarksConfig> extends PrimaryMarks<Datum, TPrimaryMarksConfig> implements OnInit {
|
|
11
|
+
attributeDataConfig: VicAttributeDataDimensionConfig<Datum>;
|
|
12
|
+
attributeDataScale: any;
|
|
13
|
+
chart: MapChartComponent<any>;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
subscribeToRanges(): void;
|
|
16
|
+
subscribeToAttributeDataProperties(): void;
|
|
17
|
+
getTransitionDuration(): number;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapPrimaryMarks<any, any>, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MapPrimaryMarks<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Chart } from '../charts';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IMarks {
|
|
5
|
+
chart: Chart;
|
|
6
|
+
/**
|
|
7
|
+
* drawMarks method
|
|
8
|
+
*
|
|
9
|
+
* All methods that require scales should be called from drawMarks. Methods
|
|
10
|
+
* called from here should use scale.domain() or scale.range() to obtain those values
|
|
11
|
+
* rather than this.config.dimension.domain or this.ranges.dimension.
|
|
12
|
+
*
|
|
13
|
+
* This method is called when scales emit from ChartComponent.
|
|
14
|
+
*/
|
|
15
|
+
drawMarks: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* getTransitionDuration method
|
|
18
|
+
*
|
|
19
|
+
* This method should return the duration of the transition to be used in the marks.
|
|
20
|
+
*/
|
|
21
|
+
getTransitionDuration: () => number;
|
|
22
|
+
}
|
|
23
|
+
export declare abstract class Marks implements IMarks, OnChanges {
|
|
24
|
+
chart: Chart;
|
|
25
|
+
abstract drawMarks(): void;
|
|
26
|
+
abstract getTransitionDuration(): number;
|
|
27
|
+
abstract initFromConfig(): void;
|
|
28
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Marks, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Marks, never, never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare abstract class PrimaryMarksBuilder<Datum> {
|
|
2
|
+
protected _datumClass: (d: Datum) => string;
|
|
3
|
+
protected _data: Datum[];
|
|
4
|
+
protected _mixBlendMode: string;
|
|
5
|
+
constructor();
|
|
6
|
+
/**
|
|
7
|
+
* OPTIONAL. Provides a class on the SVG element that corresponds to a single datum. If a datum creates multiple SVG elements -- for example, a rect and a label, the class will be applied on the parent SVGGElement.
|
|
8
|
+
*
|
|
9
|
+
* IF the chart does not have SVG elements that correspond to a single datum, this class will be placed on the SVG element that represents a collection of data, for example, a area in a stacked area chart, or a line in a line chart. In this case the datum passed to the callback function will be the first datum in the collection.
|
|
10
|
+
*
|
|
11
|
+
* Note that if the resultant string has spaces in the name, multiple classes will be applied. For example, if the class is 'North Carolina', the element will have the classes 'North' and 'Carolina'.
|
|
12
|
+
*/
|
|
13
|
+
datumClass(value: null): this;
|
|
14
|
+
datumClass(value: string): this;
|
|
15
|
+
datumClass(value: (d: Datum) => string): this;
|
|
16
|
+
/**
|
|
17
|
+
* REQUIRED. Sets the data that will be used to render the marks for this component
|
|
18
|
+
*
|
|
19
|
+
* If no dimension domain overrides are provided, **this primary-marks data will also create the domain of the scales used on the entire chart**.
|
|
20
|
+
*
|
|
21
|
+
* The objects in the array can be of an type, and if an array of objects, the objects can contain any number of properties, including properties that are extraneous to the chart at hand.
|
|
22
|
+
*/
|
|
23
|
+
data(data: Datum[]): this;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the mix-blend-mode of the marks.
|
|
26
|
+
*
|
|
27
|
+
* @default 'normal'
|
|
28
|
+
*/
|
|
29
|
+
mixBlendMode(mixBlendMode: null): this;
|
|
30
|
+
mixBlendMode(mixBlendMode: string): this;
|
|
31
|
+
protected validateBuilder(componentName: string): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DataMarksConfig } from '../../config/marks-config';
|
|
2
|
+
import { DataMarksOptions } from '../../config/marks-options';
|
|
3
|
+
export declare abstract class PrimaryMarksConfig<Datum> extends DataMarksConfig<Datum> implements DataMarksOptions<Datum> {
|
|
4
|
+
protected abstract initPropertiesFromData(): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DestroyRef, InjectionToken, OnChanges } from '@angular/core';
|
|
2
|
+
import { Ranges } from '../../charts';
|
|
3
|
+
import { DataMarksConfig, MarksConfig } from '../config/marks-config';
|
|
4
|
+
import { Marks } from '../marks';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const VIC_PRIMARY_MARKS: InjectionToken<PrimaryMarks<unknown, any>>;
|
|
7
|
+
export declare abstract class PrimaryMarks<Datum, TPrimaryMarksConfig extends MarksConfig | DataMarksConfig<Datum>> extends Marks implements Marks, OnChanges {
|
|
8
|
+
config: TPrimaryMarksConfig;
|
|
9
|
+
ranges: Ranges;
|
|
10
|
+
destroyRef: DestroyRef;
|
|
11
|
+
/**
|
|
12
|
+
* This method sets creates and sets scales on ChartComponent. Any methods that require ranges
|
|
13
|
+
* to create the scales should be called from this method. Methods called from here should not
|
|
14
|
+
* require scales.
|
|
15
|
+
*
|
|
16
|
+
* This method is called on init, after config-based properties are set, and also on
|
|
17
|
+
* resize/when ranges change.
|
|
18
|
+
*/
|
|
19
|
+
abstract setChartScalesFromRanges(useTransition: boolean): void;
|
|
20
|
+
initFromConfig(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrimaryMarks<any, any>, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PrimaryMarks<any, any>, never, never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
|
+
import { XyChartComponent, XyChartScales } from '../../../charts';
|
|
3
|
+
import { AuxMarks } from '../../aux-marks/aux-marks';
|
|
4
|
+
import { DataMarksConfig, MarksConfig } from '../../config/marks-config';
|
|
5
|
+
import { XyMarks } from '../xy-marks';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare abstract class XyAuxMarks<Datum, TMarksConfig extends MarksConfig | DataMarksConfig<Datum>> extends AuxMarks<Datum, TMarksConfig> implements OnInit, XyMarks {
|
|
8
|
+
scales: XyChartScales;
|
|
9
|
+
chart: XyChartComponent;
|
|
10
|
+
destroyRef: DestroyRef;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
subscribeToScales(): void;
|
|
13
|
+
getTransitionDuration(): number;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XyAuxMarks<any, any>, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<XyAuxMarks<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { XyChartComponent, XyChartScales, XyContentScale } from '../../../charts/xy-chart/xy-chart.component';
|
|
3
|
+
import { DataMarksOptions } from '../../config/marks-options';
|
|
4
|
+
import { PrimaryMarks } from '../../primary-marks/primary-marks';
|
|
5
|
+
import { XyMarks } from '../xy-marks';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class VicXyPrimaryMarks<Datum, TPrimaryMarksConfig extends DataMarksOptions<Datum>> extends PrimaryMarks<Datum, TPrimaryMarksConfig> implements OnInit, XyMarks {
|
|
11
|
+
scales: XyChartScales;
|
|
12
|
+
requiredScales: (keyof typeof XyContentScale)[];
|
|
13
|
+
chart: XyChartComponent;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
subscribeToRanges(): void;
|
|
16
|
+
subscribeToScales(): void;
|
|
17
|
+
getTransitionDuration(): number;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicXyPrimaryMarks<any, any>, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VicXyPrimaryMarks<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { PointMarkers } from './point-markers';
|
|
2
|
+
export declare class PointMarkersBuilder<Datum> {
|
|
3
|
+
private _display;
|
|
4
|
+
private _class;
|
|
5
|
+
private _growByOnHover;
|
|
6
|
+
private _radius;
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* OPTIONAL. Provides a class on the SVG element that correspends to a single datum. If a datum creates multiple SVG elements -- for example, a rect and a label, the class will be applied on the parent SVGGElement.
|
|
10
|
+
*
|
|
11
|
+
* IF the chart does not have SVG elements that correspond to a single datum, this class will be placed on the SVG element that represents a collection of data, for example, a area in a stacked area chart, or a line in a line chart. In this case the datum passed to the callback function will be the first datum in the collection.
|
|
12
|
+
*
|
|
13
|
+
* Note that if the resultant string has spaces in the name, multiple classes will be applied. For example, if the class is 'North Carolina', the element will have the classes 'North' and 'Carolina'.
|
|
14
|
+
*/
|
|
15
|
+
class(value: null): this;
|
|
16
|
+
class(value: string): this;
|
|
17
|
+
class(value: (d: Datum) => string): this;
|
|
18
|
+
/**
|
|
19
|
+
* OPTIONAL. A boolean to determine if point markers will be _displayed_.
|
|
20
|
+
*
|
|
21
|
+
* This is used to configure the visibilty of markers -- a `true` value will set the `display` of markers to `block`, while a `false` value will set the display of the markers to `none`.
|
|
22
|
+
*
|
|
23
|
+
* One use case is to have markers hidden until a user interaction, such as hover.
|
|
24
|
+
*
|
|
25
|
+
* If a function is provided, markers whose filtering predicate returns `true` will have `display: block` while those whose predicate returns `false` will have `display: none` when the markers are drawn.
|
|
26
|
+
*
|
|
27
|
+
* @default () => true
|
|
28
|
+
*/
|
|
29
|
+
display(display: boolean): this;
|
|
30
|
+
display(display: (d: Datum) => boolean): this;
|
|
31
|
+
/**
|
|
32
|
+
* OPTIONAL. A value by which the point marker will expand on hover, in px.
|
|
33
|
+
*
|
|
34
|
+
* @default 2
|
|
35
|
+
*/
|
|
36
|
+
growByOnHover(growByOnHover: number): this;
|
|
37
|
+
/**
|
|
38
|
+
* OPTIONAL. A value for the radius of the point marker, in px.
|
|
39
|
+
*
|
|
40
|
+
* @default 3
|
|
41
|
+
*/
|
|
42
|
+
radius(radius: number): this;
|
|
43
|
+
/**
|
|
44
|
+
* @internal This function is for internal use only and should never be called by the user.
|
|
45
|
+
*/
|
|
46
|
+
_build(): PointMarkers<Datum>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PointMarkersOptions } from './point-markers-options';
|
|
2
|
+
export declare class PointMarkers<Datum> implements PointMarkersOptions<Datum> {
|
|
3
|
+
readonly datumClass: (d: Datum, i: number) => string;
|
|
4
|
+
readonly display: (d: Datum) => boolean;
|
|
5
|
+
readonly growByOnHover: number;
|
|
6
|
+
readonly radius: number;
|
|
7
|
+
constructor(options: PointMarkersOptions<Datum>);
|
|
8
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { QuantitativeRulesLabels } from './quantitative-rules-labels';
|
|
2
|
+
export declare class RulesLabelsBuilder<Datum> {
|
|
3
|
+
private _color;
|
|
4
|
+
private _display;
|
|
5
|
+
private _dominantBaseline;
|
|
6
|
+
private _value;
|
|
7
|
+
private _offset;
|
|
8
|
+
private _position;
|
|
9
|
+
private _textAnchor;
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
* OPTIONAL. Set the color of the labels.
|
|
13
|
+
*
|
|
14
|
+
* If not provided, the color of the line will be used.
|
|
15
|
+
*
|
|
16
|
+
* To unset the color, pass `null`.
|
|
17
|
+
*/
|
|
18
|
+
color(color: null): this;
|
|
19
|
+
color(color: string): this;
|
|
20
|
+
color(color: (d: Datum) => string): this;
|
|
21
|
+
/**
|
|
22
|
+
* OPTIONAL. Set the display of the labels.
|
|
23
|
+
*
|
|
24
|
+
* If not provided, the labels will be displayed.
|
|
25
|
+
*
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
display(display: boolean): this;
|
|
29
|
+
display(display: (d: Datum) => boolean): this;
|
|
30
|
+
/**
|
|
31
|
+
* OPTIONAL. Set the dominant baseline of the labels.
|
|
32
|
+
*
|
|
33
|
+
* @default 'middle'
|
|
34
|
+
*/
|
|
35
|
+
dominantBaseline(dominantBaseline: 'middle' | 'text-after-edge' | 'text-before-edge' | 'central' | 'auto' | 'hanging' | 'ideographic' | 'alphabetic'): this;
|
|
36
|
+
/**
|
|
37
|
+
* OPTIONAL. Set the offset of the labels.
|
|
38
|
+
*
|
|
39
|
+
* @default -12 for horizontal orientation, 0 for vertical orientation
|
|
40
|
+
*/
|
|
41
|
+
offset(offset: number): this;
|
|
42
|
+
/**
|
|
43
|
+
* OPTIONAL. Set the position of the labels.
|
|
44
|
+
*
|
|
45
|
+
* @default end for horizontal orientation, end for vertical orientation
|
|
46
|
+
*/
|
|
47
|
+
position(position: (start: number, end: number, d: Datum) => number): this;
|
|
48
|
+
/**
|
|
49
|
+
* OPTIONAL. Set the text anchor of the labels.
|
|
50
|
+
*
|
|
51
|
+
* @default 'end' for horizontal orientation, 'middle' for vertical orientation
|
|
52
|
+
*/
|
|
53
|
+
textAnchor(textAnchor: 'start' | 'middle' | 'end'): this;
|
|
54
|
+
/**
|
|
55
|
+
* REQUIRED. Set the value of the labels.
|
|
56
|
+
*/
|
|
57
|
+
value(value: (d: Datum) => string): this;
|
|
58
|
+
_build(): QuantitativeRulesLabels<Datum>;
|
|
59
|
+
validateBuilder(orientation: 'horizontal' | 'vertical', lineColor: (d: Datum) => string): void;
|
|
60
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface QuantitativeRulesLabelsOptions<Datum> {
|
|
2
|
+
color: (d: Datum) => string;
|
|
3
|
+
display: (d: Datum) => boolean;
|
|
4
|
+
dominantBaseline: 'auto' | 'middle' | 'central' | 'text-before-edge' | 'text-after-edge' | 'hanging' | 'ideographic' | 'alphabetic';
|
|
5
|
+
value: (d: Datum) => string;
|
|
6
|
+
offset: number;
|
|
7
|
+
position: (start: number, end: number, d: Datum) => number;
|
|
8
|
+
textAnchor: 'start' | 'middle' | 'end';
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuantitativeRulesLabelsOptions } from './quantitative-rules-labels-options';
|
|
2
|
+
export declare class QuantitativeRulesLabels<Datum> implements QuantitativeRulesLabelsOptions<Datum> {
|
|
3
|
+
color: (d: Datum) => string;
|
|
4
|
+
display: (d: Datum) => boolean;
|
|
5
|
+
dominantBaseline: 'middle' | 'text-after-edge' | 'text-before-edge' | 'central' | 'auto' | 'hanging' | 'ideographic' | 'alphabetic';
|
|
6
|
+
value: (d: Datum) => string;
|
|
7
|
+
offset: number;
|
|
8
|
+
position: (start: number, end: number, d: Datum) => number;
|
|
9
|
+
textAnchor: 'start' | 'middle' | 'end';
|
|
10
|
+
constructor(options: QuantitativeRulesLabelsOptions<Datum>);
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { VicAuxMarksBuilder } from '../../marks/aux-marks/config/aux-marks-builder';
|
|
2
|
+
import { StrokeBuilder } from '../../stroke/stroke-builder';
|
|
3
|
+
import { RulesLabelsBuilder } from './labels/quantitative-rules-labels-builder';
|
|
4
|
+
import { QuantitativeRulesConfig } from './quantitative-rules-config';
|
|
5
|
+
import { QuantitativeRulesDimensions } from './quantitative-rules-dimensions';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class VicQuantitativeRulesConfigBuilder<Datum extends number | Date> extends VicAuxMarksBuilder<Datum> {
|
|
8
|
+
protected _color: (d: Datum) => string;
|
|
9
|
+
protected _data: Datum[];
|
|
10
|
+
protected dimensions: QuantitativeRulesDimensions;
|
|
11
|
+
protected _orientation: 'horizontal' | 'vertical';
|
|
12
|
+
private labelsBuilder;
|
|
13
|
+
private strokeBuilder;
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* OPTIONAL. Sets the color of the rule.
|
|
17
|
+
*
|
|
18
|
+
* @default #cccccc.
|
|
19
|
+
*/
|
|
20
|
+
color(color: string | ((d: Datum) => string)): this;
|
|
21
|
+
/**
|
|
22
|
+
* REQUIRED. Sets the data that will be used to render the quantitative rules.
|
|
23
|
+
*
|
|
24
|
+
* This component is not a Primary Marks component, so this data will not affect chart-level scales.
|
|
25
|
+
*
|
|
26
|
+
* @param data The data to be used to render the quantitative rules. Should be an array of numbers or dates.
|
|
27
|
+
*/
|
|
28
|
+
data(data: Datum[]): this;
|
|
29
|
+
/**
|
|
30
|
+
* OPTIONAL. A config for the behavior of the rule labels.
|
|
31
|
+
*/
|
|
32
|
+
labels(): this;
|
|
33
|
+
labels(labels: null): this;
|
|
34
|
+
labels(labels: (labels: RulesLabelsBuilder<Datum>) => void): this;
|
|
35
|
+
/**
|
|
36
|
+
* REQUIRED. Sets the orientation of the rule.
|
|
37
|
+
*/
|
|
38
|
+
orientation(orientation: 'horizontal' | 'vertical'): this;
|
|
39
|
+
/**
|
|
40
|
+
* OPTIONAL. A config for the behavior of the rule stroke.
|
|
41
|
+
*/
|
|
42
|
+
stroke(stroke: null): this;
|
|
43
|
+
stroke(stroke: (stroke: StrokeBuilder) => void): this;
|
|
44
|
+
private initStrokeBuilder;
|
|
45
|
+
/**
|
|
46
|
+
* REQUIRED. Builds the configuration object for the RuleComponent.
|
|
47
|
+
*/
|
|
48
|
+
getConfig(): QuantitativeRulesConfig<Datum>;
|
|
49
|
+
protected validateBuilder(): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicQuantitativeRulesConfigBuilder<any>, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VicQuantitativeRulesConfigBuilder<any>>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { XyMarksConfig } from '../../marks/xy-marks/xy-marks-config';
|
|
2
|
+
import { Stroke } from '../../stroke/stroke';
|
|
3
|
+
import { QuantitativeRulesLabels } from './labels/quantitative-rules-labels';
|
|
4
|
+
import { QuantitativeRulesDimensions } from './quantitative-rules-dimensions';
|
|
5
|
+
import { QuantitativeRulesOptions } from './quantitative-rules-options';
|
|
6
|
+
export declare class QuantitativeRulesConfig<Datum extends number | Date> extends XyMarksConfig<Datum> implements QuantitativeRulesOptions<Datum> {
|
|
7
|
+
color: (d: Datum) => string;
|
|
8
|
+
readonly dimensions: QuantitativeRulesDimensions;
|
|
9
|
+
labels: QuantitativeRulesLabels<Datum>;
|
|
10
|
+
stroke: Stroke;
|
|
11
|
+
constructor(options: QuantitativeRulesOptions<Datum>);
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface QuantitativeRulesDimensions {
|
|
2
|
+
quantitative: 'x' | 'y';
|
|
3
|
+
quantitativeDimension: 'width' | 'height';
|
|
4
|
+
isHorizontal: boolean;
|
|
5
|
+
isVertical: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const HORIZONTAL_RULE_DIMENSIONS: QuantitativeRulesDimensions;
|
|
8
|
+
export declare const VERTICAL_RULE_DIMENSIONS: QuantitativeRulesDimensions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataMarksOptions } from '../../marks/config/marks-options';
|
|
2
|
+
import { Stroke } from '../../stroke/stroke';
|
|
3
|
+
import { QuantitativeRulesLabels } from './labels/quantitative-rules-labels';
|
|
4
|
+
import { QuantitativeRulesDimensions } from './quantitative-rules-dimensions';
|
|
5
|
+
export interface QuantitativeRulesOptions<Datum extends number | Date> extends DataMarksOptions<Datum> {
|
|
6
|
+
color: (d: Datum) => string;
|
|
7
|
+
stroke: Stroke;
|
|
8
|
+
dimensions: QuantitativeRulesDimensions;
|
|
9
|
+
labels: QuantitativeRulesLabels<Datum>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './config/labels/quantitative-rules-labels';
|
|
2
|
+
export * from './config/labels/quantitative-rules-labels-options';
|
|
3
|
+
export * from './config/quantitative-rules-builder';
|
|
4
|
+
export * from './config/quantitative-rules-config';
|
|
5
|
+
export * from './quantitative-rules.component';
|
|
6
|
+
export * from './quantitative-rules.module';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { Selection } from 'd3';
|
|
3
|
+
import { XyAuxMarks } from '../marks';
|
|
4
|
+
import { QuantitativeRulesConfig } from './config/quantitative-rules-config';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
type RulesSvgElements = 'g' | 'rule' | 'label';
|
|
7
|
+
export declare class QuantitativeRulesComponent<Datum extends number | Date> extends XyAuxMarks<Datum, QuantitativeRulesConfig<Datum>> {
|
|
8
|
+
rulesGroups: Selection<SVGGElement, Datum, SVGGElement, unknown>;
|
|
9
|
+
protected elRef: ElementRef<SVGGElement>;
|
|
10
|
+
get class(): Record<RulesSvgElements, string>;
|
|
11
|
+
drawMarks(): void;
|
|
12
|
+
drawRules(transitionDuration: number): void;
|
|
13
|
+
drawLabels(transitionDuration: number): void;
|
|
14
|
+
chartScalesMatchConfigOrientation(): boolean;
|
|
15
|
+
getRuleTransform(d: Datum): string;
|
|
16
|
+
getXStart(d: Datum): number;
|
|
17
|
+
getYStart(d: Datum): number;
|
|
18
|
+
getWidth(): number;
|
|
19
|
+
getHeight(): number;
|
|
20
|
+
getLabelX(d: Datum): number;
|
|
21
|
+
getLabelY(d: Datum): number;
|
|
22
|
+
getXEnd(d: Datum): number;
|
|
23
|
+
getYEnd(d: Datum): number;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuantitativeRulesComponent<any>, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuantitativeRulesComponent<any>, "[vic-quantitative-rules]", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./quantitative-rules.component";
|
|
3
|
+
export declare class VicQuantitativeRulesModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VicQuantitativeRulesModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VicQuantitativeRulesModule, never, [typeof i1.QuantitativeRulesComponent], [typeof i1.QuantitativeRulesComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VicQuantitativeRulesModule>;
|
|
7
|
+
}
|