@mathstack/viz 0.0.1-beta.5 → 0.0.1-beta.7
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/fesm2022/mathstack-viz.mjs +439 -364
- package/fesm2022/mathstack-viz.mjs.map +1 -1
- 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 +6 -6
- package/public-api.d.ts +23 -0
- package/types/mathstack-viz.d.ts +0 -5498
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, InjectionToken, Injectable, inject, DestroyRef,
|
|
2
|
+
import { Directive, Input, InjectionToken, Injectable, inject, DestroyRef, ViewChild, Component, NgZone, ChangeDetectionStrategy, NgModule, ElementRef, ViewEncapsulation, Renderer2, EventEmitter, Output, Inject } from '@angular/core';
|
|
3
3
|
import { NgOnChangesUtilities, safeAssign } from '@mathstack/app-kit';
|
|
4
4
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
5
|
import { BehaviorSubject, filter, distinctUntilChanged, shareReplay, map, switchMap, defer, of, combineLatest, Observable, auditTime, Subject, takeUntil } from 'rxjs';
|
|
@@ -8,8 +8,9 @@ import { CommonModule, DOCUMENT, AsyncPipe } from '@angular/common';
|
|
|
8
8
|
import { isEqual, cloneDeep } from 'lodash-es';
|
|
9
9
|
import { select, utcFormat, format, axisTop, axisBottom, axisLeft, axisRight, pointer, map as map$1, min, max, scaleLinear, scaleBand, scalePoint, InternSet, scaleOrdinal, schemeTableau10, range, scaleUtc, maxIndex, polygonArea, InternMap, scaleThreshold, interpolateLab, extent, scaleQuantile, scaleQuantize, geoAlbersUsa, geoPath, group, curveLinear, line, area, least, rollup, stack, stackOffsetNone, stackOrderNone, stackOffsetDiverging } from 'd3';
|
|
10
10
|
import { color } from 'd3-color';
|
|
11
|
-
import { Overlay, OverlayPositionBuilder, OverlayModule } from '@angular/cdk/overlay';
|
|
12
11
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
12
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
13
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
13
14
|
import { saveAs } from 'file-saver';
|
|
14
15
|
import { unparse } from 'papaparse';
|
|
15
16
|
import polylabel from 'polylabel';
|
|
@@ -21,10 +22,10 @@ class Marks {
|
|
|
21
22
|
this.initFromConfig();
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Marks, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Marks, isStandalone: true, usesOnChanges: true, ngImport: i0 }); }
|
|
26
27
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Marks, decorators: [{
|
|
28
29
|
type: Directive
|
|
29
30
|
}] });
|
|
30
31
|
|
|
@@ -32,10 +33,10 @@ class AuxMarks extends Marks {
|
|
|
32
33
|
initFromConfig() {
|
|
33
34
|
this.drawMarks();
|
|
34
35
|
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AuxMarks, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
37
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: AuxMarks, isStandalone: true, inputs: { config: "config" }, usesInheritance: true, ngImport: i0 }); }
|
|
37
38
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AuxMarks, decorators: [{
|
|
39
40
|
type: Directive
|
|
40
41
|
}], propDecorators: { config: [{
|
|
41
42
|
type: Input
|
|
@@ -229,10 +230,10 @@ class VicChartConfigBuilder {
|
|
|
229
230
|
this._aspectRatio = this._width / this._height;
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
233
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicChartConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
234
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicChartConfigBuilder }); }
|
|
234
235
|
}
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicChartConfigBuilder, decorators: [{
|
|
236
237
|
type: Injectable
|
|
237
238
|
}], ctorParameters: () => [] });
|
|
238
239
|
|
|
@@ -254,7 +255,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
254
255
|
* and scaled svg element in the DOM. USeful for adding elements that require access to chart scales.
|
|
255
256
|
*/
|
|
256
257
|
class ChartComponent {
|
|
257
|
-
constructor() {
|
|
258
|
+
constructor(ngZone) {
|
|
259
|
+
this.ngZone = ngZone;
|
|
258
260
|
this.config = new VicChartConfigBuilder().getConfig();
|
|
259
261
|
this._config = new BehaviorSubject(null);
|
|
260
262
|
this.config$ = this._config.asObservable().pipe(filter((c) => !!c), distinctUntilChanged((a, b) => isEqual(a, b)), shareReplay(1));
|
|
@@ -292,7 +294,6 @@ class ChartComponent {
|
|
|
292
294
|
]).pipe(filter(([w, h]) => w > 0 && h > 0), map(([width, height]) => ({ width, height })), distinctUntilChanged((a, b) => isEqual(a, b)), shareReplay(1));
|
|
293
295
|
this.ranges$ = combineLatest([this.svgDimensions$, this.marginCfg$]).pipe(map(([dimensions, margin]) => this.getRangesFromSvgDimensions(dimensions, margin)), distinctUntilChanged((a, b) => isEqual(a, b)), shareReplay(1));
|
|
294
296
|
this.destroyRef = inject(DestroyRef);
|
|
295
|
-
this.ngZone = inject(NgZone);
|
|
296
297
|
}
|
|
297
298
|
ngOnChanges(changes) {
|
|
298
299
|
if (NgOnChangesUtilities.inputObjectChanged(changes, 'config')) {
|
|
@@ -341,15 +342,15 @@ class ChartComponent {
|
|
|
341
342
|
y: vb.height / rect.height,
|
|
342
343
|
};
|
|
343
344
|
}
|
|
344
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
345
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ChartComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
346
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: ChartComponent, isStandalone: true, selector: "vic-chart", inputs: { config: "config" }, host: { classAttribute: "vic-chart" }, providers: [{ provide: CHART, useExisting: ChartComponent }], viewQueries: [{ propertyName: "divRef", first: true, predicate: ["div"], descendants: true, static: true }, { propertyName: "svgRef", first: true, predicate: ["svg"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<!-- Slot exists so that projected content can have access to scales -->\n<ng-container *ngTemplateOutlet=\"htmlElementsBefore\"></ng-container>\n<div\n #div\n class=\"vic-chart-container\"\n [ngClass]=\"(strategy$ | async)\"\n [style.maxWidth.px]=\"widthCfg$ | async\"\n [style.minWidth.px]=\"minWidthCfg$ | async\"\n [style.maxHeight.px]=\"heightCfg$ | async\"\n [style.aspectRatio]=\"(strategy$ | async) === 'viewbox' ? (config.viewBoxX / config.viewBoxY) : null\"\n [style.width.%]=\"(strategy$ | async) === 'viewbox' ? 100 : null\"\n>\n <svg\n #svg\n class=\"vic-chart-svg\"\n [ngClass]=\"(strategy$ | async)\"\n [style.width.px]=\"(strategy$ | async) !== 'viewbox' ? (svgDimensions$ | async)?.width : null\"\n [style.height.px]=\"(strategy$ | async) !== 'viewbox' ? (svgDimensions$ | async)?.height : null\"\n [attr.viewBox]=\"(strategy$ | async) === 'viewbox' ? '0 0 ' + config.viewBoxX + ' ' + config.viewBoxY : null\"\n >\n <defs>\n <ng-container *ngTemplateOutlet=\"svgDefs\"></ng-container>\n </defs>\n <ng-container *ngTemplateOutlet=\"svgElements\"></ng-container>\n </svg>\n</div>\n\n<!-- Slot exists so that projected content can have access to scales -->\n<ng-container *ngTemplateOutlet=\"htmlElementsAfter\"></ng-container>\n\n<ng-template #htmlElementsBefore>\n <ng-content select=\"[html-elements-before]\"></ng-content>\n</ng-template>\n\n<ng-template #svgDefs>\n <ng-content select=\"[svg-defs]\"></ng-content>\n</ng-template>\n\n<ng-template #svgElements>\n <ng-content select=\"[svg-elements]\"></ng-content>\n</ng-template>\n\n<ng-template #htmlElementsAfter>\n <ng-content select=\"[html-elements-after]\"></ng-content>\n</ng-template>\n", styles: [".vic-chart-container{display:flex;align-items:stretch;box-sizing:border-box;width:100%;min-width:0}.vic-chart-container.responsive-width{contain:inline-size}.vic-chart-container.viewbox{contain:inline-size;overflow:hidden}.vic-chart-container.fixed,.vic-chart-svg{display:block}.vic-chart-svg:not(.viewbox){overflow:visible}.vic-chart-svg.viewbox{width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
346
347
|
}
|
|
347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ChartComponent, decorators: [{
|
|
348
349
|
type: Component,
|
|
349
350
|
args: [{ selector: 'vic-chart', providers: [{ provide: CHART, useExisting: ChartComponent }], host: {
|
|
350
351
|
class: 'vic-chart',
|
|
351
352
|
}, imports: [CommonModule], template: "<!-- Slot exists so that projected content can have access to scales -->\n<ng-container *ngTemplateOutlet=\"htmlElementsBefore\"></ng-container>\n<div\n #div\n class=\"vic-chart-container\"\n [ngClass]=\"(strategy$ | async)\"\n [style.maxWidth.px]=\"widthCfg$ | async\"\n [style.minWidth.px]=\"minWidthCfg$ | async\"\n [style.maxHeight.px]=\"heightCfg$ | async\"\n [style.aspectRatio]=\"(strategy$ | async) === 'viewbox' ? (config.viewBoxX / config.viewBoxY) : null\"\n [style.width.%]=\"(strategy$ | async) === 'viewbox' ? 100 : null\"\n>\n <svg\n #svg\n class=\"vic-chart-svg\"\n [ngClass]=\"(strategy$ | async)\"\n [style.width.px]=\"(strategy$ | async) !== 'viewbox' ? (svgDimensions$ | async)?.width : null\"\n [style.height.px]=\"(strategy$ | async) !== 'viewbox' ? (svgDimensions$ | async)?.height : null\"\n [attr.viewBox]=\"(strategy$ | async) === 'viewbox' ? '0 0 ' + config.viewBoxX + ' ' + config.viewBoxY : null\"\n >\n <defs>\n <ng-container *ngTemplateOutlet=\"svgDefs\"></ng-container>\n </defs>\n <ng-container *ngTemplateOutlet=\"svgElements\"></ng-container>\n </svg>\n</div>\n\n<!-- Slot exists so that projected content can have access to scales -->\n<ng-container *ngTemplateOutlet=\"htmlElementsAfter\"></ng-container>\n\n<ng-template #htmlElementsBefore>\n <ng-content select=\"[html-elements-before]\"></ng-content>\n</ng-template>\n\n<ng-template #svgDefs>\n <ng-content select=\"[svg-defs]\"></ng-content>\n</ng-template>\n\n<ng-template #svgElements>\n <ng-content select=\"[svg-elements]\"></ng-content>\n</ng-template>\n\n<ng-template #htmlElementsAfter>\n <ng-content select=\"[html-elements-after]\"></ng-content>\n</ng-template>\n", styles: [".vic-chart-container{display:flex;align-items:stretch;box-sizing:border-box;width:100%;min-width:0}.vic-chart-container.responsive-width{contain:inline-size}.vic-chart-container.viewbox{contain:inline-size;overflow:hidden}.vic-chart-container.fixed,.vic-chart-svg{display:block}.vic-chart-svg:not(.viewbox){overflow:visible}.vic-chart-svg.viewbox{width:100%;height:100%}\n"] }]
|
|
352
|
-
}], propDecorators: { config: [{
|
|
353
|
+
}], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: { config: [{
|
|
353
354
|
type: Input
|
|
354
355
|
}], divRef: [{
|
|
355
356
|
type: ViewChild,
|
|
@@ -395,10 +396,10 @@ class MapChartComponent extends ChartComponent {
|
|
|
395
396
|
});
|
|
396
397
|
});
|
|
397
398
|
}
|
|
398
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
399
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
399
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
400
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: MapChartComponent, isStandalone: true, selector: "vic-map-chart", host: { classAttribute: "vic-map-chart" }, providers: [{ provide: CHART, useExisting: ChartComponent }], usesInheritance: true, ngImport: i0, template: "<!-- Slot exists so that projected content can have access to scales -->\n<ng-container *ngTemplateOutlet=\"htmlElementsBefore\"></ng-container>\n<div\n #div\n class=\"vic-chart-container\"\n [ngClass]=\"(strategy$ | async)\"\n [style.maxWidth.px]=\"widthCfg$ | async\"\n [style.minWidth.px]=\"minWidthCfg$ | async\"\n [style.maxHeight.px]=\"heightCfg$ | async\"\n [style.aspectRatio]=\"(strategy$ | async) === 'viewbox' ? (config.viewBoxX / config.viewBoxY) : null\"\n [style.width.%]=\"(strategy$ | async) === 'viewbox' ? 100 : null\"\n>\n <svg\n #svg\n class=\"vic-chart-svg\"\n [ngClass]=\"(strategy$ | async)\"\n [style.width.px]=\"(strategy$ | async) !== 'viewbox' ? (svgDimensions$ | async)?.width : null\"\n [style.height.px]=\"(strategy$ | async) !== 'viewbox' ? (svgDimensions$ | async)?.height : null\"\n [attr.viewBox]=\"(strategy$ | async) === 'viewbox' ? '0 0 ' + config.viewBoxX + ' ' + config.viewBoxY : null\"\n >\n <defs>\n <ng-container *ngTemplateOutlet=\"svgDefs\"></ng-container>\n </defs>\n <ng-container *ngTemplateOutlet=\"svgElements\"></ng-container>\n </svg>\n</div>\n\n<!-- Slot exists so that projected content can have access to scales -->\n<ng-container *ngTemplateOutlet=\"htmlElementsAfter\"></ng-container>\n\n<ng-template #htmlElementsBefore>\n <ng-content select=\"[html-elements-before]\"></ng-content>\n</ng-template>\n\n<ng-template #svgDefs>\n <ng-content select=\"[svg-defs]\"></ng-content>\n</ng-template>\n\n<ng-template #svgElements>\n <ng-content select=\"[svg-elements]\"></ng-content>\n</ng-template>\n\n<ng-template #htmlElementsAfter>\n <ng-content select=\"[html-elements-after]\"></ng-content>\n</ng-template>\n", styles: [".vic-chart-container{display:flex;align-items:stretch;box-sizing:border-box;width:100%;min-width:0}.vic-chart-container.responsive-width{contain:inline-size}.vic-chart-container.viewbox{contain:inline-size;overflow:hidden}.vic-chart-container.fixed,.vic-chart-svg{display:block}.vic-chart-svg:not(.viewbox){overflow:visible}.vic-chart-svg.viewbox{width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
400
401
|
}
|
|
401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapChartComponent, decorators: [{
|
|
402
403
|
type: Component,
|
|
403
404
|
args: [{ selector: 'vic-map-chart', providers: [{ provide: CHART, useExisting: ChartComponent }], host: {
|
|
404
405
|
class: 'vic-map-chart',
|
|
@@ -441,10 +442,10 @@ class XyChartComponent extends ChartComponent {
|
|
|
441
442
|
this.scales.next({ ...this.scales.value, ...scales });
|
|
442
443
|
});
|
|
443
444
|
}
|
|
444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
445
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
445
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
446
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: XyChartComponent, isStandalone: true, selector: "vic-xy-chart", host: { classAttribute: "vic-xy-chart" }, providers: [{ provide: CHART, useExisting: ChartComponent }], usesInheritance: true, ngImport: i0, template: "<!-- Slot exists so that projected content can have access to scales -->\n<ng-container *ngTemplateOutlet=\"htmlElementsBefore\"></ng-container>\n<div\n #div\n class=\"vic-chart-container\"\n [ngClass]=\"(strategy$ | async)\"\n [style.maxWidth.px]=\"widthCfg$ | async\"\n [style.minWidth.px]=\"minWidthCfg$ | async\"\n [style.maxHeight.px]=\"heightCfg$ | async\"\n [style.aspectRatio]=\"(strategy$ | async) === 'viewbox' ? (config.viewBoxX / config.viewBoxY) : null\"\n [style.width.%]=\"(strategy$ | async) === 'viewbox' ? 100 : null\"\n>\n <svg\n #svg\n class=\"vic-chart-svg\"\n [ngClass]=\"(strategy$ | async)\"\n [style.width.px]=\"(strategy$ | async) !== 'viewbox' ? (svgDimensions$ | async)?.width : null\"\n [style.height.px]=\"(strategy$ | async) !== 'viewbox' ? (svgDimensions$ | async)?.height : null\"\n [attr.viewBox]=\"(strategy$ | async) === 'viewbox' ? '0 0 ' + config.viewBoxX + ' ' + config.viewBoxY : null\"\n >\n <defs>\n <ng-container *ngTemplateOutlet=\"svgDefs\"></ng-container>\n </defs>\n <ng-container *ngTemplateOutlet=\"svgElements\"></ng-container>\n </svg>\n</div>\n\n<!-- Slot exists so that projected content can have access to scales -->\n<ng-container *ngTemplateOutlet=\"htmlElementsAfter\"></ng-container>\n\n<ng-template #htmlElementsBefore>\n <ng-content select=\"[html-elements-before]\"></ng-content>\n</ng-template>\n\n<ng-template #svgDefs>\n <ng-content select=\"[svg-defs]\"></ng-content>\n</ng-template>\n\n<ng-template #svgElements>\n <ng-content select=\"[svg-elements]\"></ng-content>\n</ng-template>\n\n<ng-template #htmlElementsAfter>\n <ng-content select=\"[html-elements-after]\"></ng-content>\n</ng-template>\n", styles: [".vic-chart-container{display:flex;align-items:stretch;box-sizing:border-box;width:100%;min-width:0}.vic-chart-container.responsive-width{contain:inline-size}.vic-chart-container.viewbox{contain:inline-size;overflow:hidden}.vic-chart-container.fixed,.vic-chart-svg{display:block}.vic-chart-svg:not(.viewbox){overflow:visible}.vic-chart-svg.viewbox{width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
446
447
|
}
|
|
447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyChartComponent, decorators: [{
|
|
448
449
|
type: Component,
|
|
449
450
|
args: [{ selector: 'vic-xy-chart', changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: CHART, useExisting: ChartComponent }], host: {
|
|
450
451
|
class: 'vic-xy-chart',
|
|
@@ -452,11 +453,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
452
453
|
}] });
|
|
453
454
|
|
|
454
455
|
class VicChartModule {
|
|
455
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
456
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
457
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
456
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
457
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicChartModule, imports: [ChartComponent, XyChartComponent, MapChartComponent], exports: [ChartComponent, XyChartComponent, MapChartComponent] }); }
|
|
458
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicChartModule, imports: [ChartComponent, XyChartComponent, MapChartComponent] }); }
|
|
458
459
|
}
|
|
459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicChartModule, decorators: [{
|
|
460
461
|
type: NgModule,
|
|
461
462
|
args: [{
|
|
462
463
|
imports: [ChartComponent, XyChartComponent, MapChartComponent],
|
|
@@ -488,10 +489,10 @@ class VicMapAuxMarks extends AuxMarks {
|
|
|
488
489
|
getTransitionDuration() {
|
|
489
490
|
return this.chart.config.transitionDuration;
|
|
490
491
|
}
|
|
491
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
492
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicMapAuxMarks, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
493
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: VicMapAuxMarks, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
493
494
|
}
|
|
494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicMapAuxMarks, decorators: [{
|
|
495
496
|
type: Directive
|
|
496
497
|
}] });
|
|
497
498
|
|
|
@@ -504,10 +505,10 @@ class PrimaryMarks extends Marks {
|
|
|
504
505
|
initFromConfig() {
|
|
505
506
|
this.setChartScalesFromRanges(true);
|
|
506
507
|
}
|
|
507
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
508
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
508
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: PrimaryMarks, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
509
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: PrimaryMarks, isStandalone: true, inputs: { config: "config" }, usesInheritance: true, ngImport: i0 }); }
|
|
509
510
|
}
|
|
510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: PrimaryMarks, decorators: [{
|
|
511
512
|
type: Directive
|
|
512
513
|
}], propDecorators: { config: [{
|
|
513
514
|
type: Input
|
|
@@ -551,10 +552,10 @@ class MapPrimaryMarks extends PrimaryMarks {
|
|
|
551
552
|
getTransitionDuration() {
|
|
552
553
|
return this.chart.config.transitionDuration;
|
|
553
554
|
}
|
|
554
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
555
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
555
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapPrimaryMarks, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
556
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: MapPrimaryMarks, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
556
557
|
}
|
|
557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapPrimaryMarks, decorators: [{
|
|
558
559
|
type: Directive
|
|
559
560
|
}] });
|
|
560
561
|
|
|
@@ -627,10 +628,10 @@ class XyAuxMarks extends AuxMarks {
|
|
|
627
628
|
getTransitionDuration() {
|
|
628
629
|
return this.scales.useTransition ? this.chart.config.transitionDuration : 0;
|
|
629
630
|
}
|
|
630
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
631
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
631
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyAuxMarks, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
632
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: XyAuxMarks, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
632
633
|
}
|
|
633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyAuxMarks, decorators: [{
|
|
634
635
|
type: Directive
|
|
635
636
|
}] });
|
|
636
637
|
|
|
@@ -680,10 +681,10 @@ class VicXyPrimaryMarks extends PrimaryMarks {
|
|
|
680
681
|
getTransitionDuration() {
|
|
681
682
|
return this.scales.useTransition ? this.chart.config.transitionDuration : 0;
|
|
682
683
|
}
|
|
683
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
684
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
684
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyPrimaryMarks, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
685
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: VicXyPrimaryMarks, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
685
686
|
}
|
|
686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyPrimaryMarks, decorators: [{
|
|
687
688
|
type: Directive
|
|
688
689
|
}] });
|
|
689
690
|
|
|
@@ -1658,7 +1659,12 @@ function mixinOrdinalAxisConfig(Base) {
|
|
|
1658
1659
|
super(...args);
|
|
1659
1660
|
safeAssign(this, args[0]);
|
|
1660
1661
|
}
|
|
1662
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1663
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
1661
1664
|
}
|
|
1665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
1666
|
+
type: Directive
|
|
1667
|
+
}], ctorParameters: () => [{ type: undefined }] });
|
|
1662
1668
|
return Mixin;
|
|
1663
1669
|
}
|
|
1664
1670
|
class VicOrdinalAxisConfig extends mixinOrdinalAxisConfig(XyAxisConfig) {
|
|
@@ -1677,7 +1683,12 @@ function mixinXAxisConfig(Base) {
|
|
|
1677
1683
|
const d3SuggestedDefault = dimensions.width / spacing;
|
|
1678
1684
|
return this.getValidatedNumTicks(d3SuggestedDefault);
|
|
1679
1685
|
}
|
|
1686
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1687
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
1680
1688
|
}
|
|
1689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
1690
|
+
type: Directive
|
|
1691
|
+
}], ctorParameters: () => [{ type: undefined }] });
|
|
1681
1692
|
return Mixin;
|
|
1682
1693
|
}
|
|
1683
1694
|
class XAxisConfig extends mixinXAxisConfig(XyAxisConfig) {
|
|
@@ -1738,10 +1749,10 @@ class VicXOrdinalAxisConfigBuilder extends XyAxisBaseBuilder {
|
|
|
1738
1749
|
ticks: this.ticksBuilder._build('x'),
|
|
1739
1750
|
});
|
|
1740
1751
|
}
|
|
1741
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1742
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1752
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXOrdinalAxisConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1753
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXOrdinalAxisConfigBuilder }); }
|
|
1743
1754
|
}
|
|
1744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXOrdinalAxisConfigBuilder, decorators: [{
|
|
1745
1756
|
type: Injectable
|
|
1746
1757
|
}], ctorParameters: () => [] });
|
|
1747
1758
|
|
|
@@ -1932,6 +1943,8 @@ class XyAxis extends XyAuxMarks {
|
|
|
1932
1943
|
.append('g')
|
|
1933
1944
|
.attr('class', this.class.gridGroup);
|
|
1934
1945
|
}
|
|
1946
|
+
// Avoid odd animations of grid lines when they change between draws
|
|
1947
|
+
this.gridGroup.selectAll('.tick').remove();
|
|
1935
1948
|
this.gridGroup
|
|
1936
1949
|
.transition(this.getTransition(this.gridGroup))
|
|
1937
1950
|
.call(this.axis.tickSizeInner(this.getGridLineLength()))
|
|
@@ -1968,10 +1981,10 @@ class XyAxis extends XyAuxMarks {
|
|
|
1968
1981
|
: this.getTransitionDuration();
|
|
1969
1982
|
return selection.transition().duration(transitionDuration);
|
|
1970
1983
|
}
|
|
1971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1972
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1984
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyAxis, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1985
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: XyAxis, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
1973
1986
|
}
|
|
1974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyAxis, decorators: [{
|
|
1975
1988
|
type: Directive
|
|
1976
1989
|
}] });
|
|
1977
1990
|
|
|
@@ -1985,7 +1998,14 @@ function ordinalAxisMixin(Base) {
|
|
|
1985
1998
|
: formatter(tickFormat)(d);
|
|
1986
1999
|
});
|
|
1987
2000
|
}
|
|
2001
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2002
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, inputs: { config: "config" }, usesInheritance: true, ngImport: i0 }); }
|
|
1988
2003
|
}
|
|
2004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2005
|
+
type: Directive
|
|
2006
|
+
}], propDecorators: { config: [{
|
|
2007
|
+
type: Input
|
|
2008
|
+
}] } });
|
|
1989
2009
|
return Mixin;
|
|
1990
2010
|
}
|
|
1991
2011
|
|
|
@@ -2067,16 +2087,23 @@ function xAxisMixin(Base) {
|
|
|
2067
2087
|
label.attr('x', x);
|
|
2068
2088
|
}
|
|
2069
2089
|
}
|
|
2090
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2091
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, inputs: { config: "config" }, usesInheritance: true, ngImport: i0 }); }
|
|
2070
2092
|
}
|
|
2093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2094
|
+
type: Directive
|
|
2095
|
+
}], propDecorators: { config: [{
|
|
2096
|
+
type: Input
|
|
2097
|
+
}] } });
|
|
2071
2098
|
return Mixin;
|
|
2072
2099
|
}
|
|
2073
2100
|
|
|
2074
2101
|
const XOrdinalAxis = xAxisMixin(ordinalAxisMixin((XyAxis)));
|
|
2075
2102
|
class XOrdinalAxisComponent extends XOrdinalAxis {
|
|
2076
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2077
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XOrdinalAxisComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: XOrdinalAxisComponent, isStandalone: true, selector: "[vic-x-ordinal-axis]", inputs: { config: "config" }, host: { properties: { "class": "config.marksClass", "attr.mix-blend-mode": "config.mixBlendMode", "attr.transform": "translate" }, classAttribute: "vic-axis" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [".vic-axis-x-ordinal .vic-axis-label{fill:currentColor}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2078
2105
|
}
|
|
2079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XOrdinalAxisComponent, decorators: [{
|
|
2080
2107
|
type: Component,
|
|
2081
2108
|
args: [{ selector: '[vic-x-ordinal-axis]', template: '', inputs: ['config'], encapsulation: ViewEncapsulation.None, host: {
|
|
2082
2109
|
'[class]': 'config.marksClass',
|
|
@@ -2095,7 +2122,12 @@ function mixinQuantitativeAxisConfig(Base) {
|
|
|
2095
2122
|
safeAssign(this, args[0]);
|
|
2096
2123
|
}
|
|
2097
2124
|
}
|
|
2125
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2126
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
2098
2127
|
}
|
|
2128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2129
|
+
type: Directive
|
|
2130
|
+
}], ctorParameters: () => [{ type: undefined }] });
|
|
2099
2131
|
return Mixin;
|
|
2100
2132
|
}
|
|
2101
2133
|
class VicQuantitativeAxisConfig extends mixinQuantitativeAxisConfig(XyAxisConfig) {
|
|
@@ -2155,10 +2187,10 @@ class VicXQuantitativeAxisConfigBuilder extends XyAxisBaseBuilder {
|
|
|
2155
2187
|
ticks: this.ticksBuilder._build('x'),
|
|
2156
2188
|
});
|
|
2157
2189
|
}
|
|
2158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2159
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2190
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXQuantitativeAxisConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2191
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXQuantitativeAxisConfigBuilder }); }
|
|
2160
2192
|
}
|
|
2161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXQuantitativeAxisConfigBuilder, decorators: [{
|
|
2162
2194
|
type: Injectable
|
|
2163
2195
|
}], ctorParameters: () => [] });
|
|
2164
2196
|
|
|
@@ -2302,16 +2334,23 @@ function quantitativeAxisMixin(Base) {
|
|
|
2302
2334
|
// For composite formats or unrecognized formats, return null to use default logic
|
|
2303
2335
|
return null;
|
|
2304
2336
|
}
|
|
2337
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2338
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, inputs: { config: "config" }, usesInheritance: true, ngImport: i0 }); }
|
|
2305
2339
|
}
|
|
2340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2341
|
+
type: Directive
|
|
2342
|
+
}], propDecorators: { config: [{
|
|
2343
|
+
type: Input
|
|
2344
|
+
}] } });
|
|
2306
2345
|
return Mixin;
|
|
2307
2346
|
}
|
|
2308
2347
|
|
|
2309
2348
|
const XQuantitativeAxis = xAxisMixin(quantitativeAxisMixin(XyAxis));
|
|
2310
2349
|
class XQuantitativeAxisComponent extends XQuantitativeAxis {
|
|
2311
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2312
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2350
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XQuantitativeAxisComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2351
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: XQuantitativeAxisComponent, isStandalone: true, selector: "[vic-x-quantitative-axis]", inputs: { config: "config" }, host: { properties: { "class": "config.marksClass", "attr.mix-blend-mode": "config.mixBlendMode", "attr.transform": "translate" }, classAttribute: "vic-axis" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [".vic-axis-x-quantitative .vic-axis-label{fill:currentColor}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2313
2352
|
}
|
|
2314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XQuantitativeAxisComponent, decorators: [{
|
|
2315
2354
|
type: Component,
|
|
2316
2355
|
args: [{ selector: '[vic-x-quantitative-axis]', template: '', inputs: ['config'], encapsulation: ViewEncapsulation.None, host: {
|
|
2317
2356
|
'[class]': 'config.marksClass',
|
|
@@ -2449,16 +2488,23 @@ function yAxisMixin(Base) {
|
|
|
2449
2488
|
}
|
|
2450
2489
|
}
|
|
2451
2490
|
}
|
|
2491
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2492
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, inputs: { config: "config" }, usesInheritance: true, ngImport: i0 }); }
|
|
2452
2493
|
}
|
|
2494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2495
|
+
type: Directive
|
|
2496
|
+
}], propDecorators: { config: [{
|
|
2497
|
+
type: Input
|
|
2498
|
+
}] } });
|
|
2453
2499
|
return Mixin;
|
|
2454
2500
|
}
|
|
2455
2501
|
|
|
2456
2502
|
const YOrdinalAxis = yAxisMixin(ordinalAxisMixin((XyAxis)));
|
|
2457
2503
|
class YOrdinalAxisComponent extends YOrdinalAxis {
|
|
2458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2459
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2504
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: YOrdinalAxisComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2505
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: YOrdinalAxisComponent, isStandalone: true, selector: "[vic-y-ordinal-axis]", inputs: { config: "config" }, host: { properties: { "class": "config.marksClass", "attr.mix-blend-mode": "config.mixBlendMode", "attr.transform": "translate" }, classAttribute: "vic-axis" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [".vic-axis-y-ordinal .vic-axis-label{fill:currentColor}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2460
2506
|
}
|
|
2461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: YOrdinalAxisComponent, decorators: [{
|
|
2462
2508
|
type: Component,
|
|
2463
2509
|
args: [{ selector: '[vic-y-ordinal-axis]', template: '', inputs: ['config'], encapsulation: ViewEncapsulation.None, host: {
|
|
2464
2510
|
'[class]': 'config.marksClass',
|
|
@@ -2470,10 +2516,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2470
2516
|
|
|
2471
2517
|
const YQuantitativeAxis = yAxisMixin(quantitativeAxisMixin(XyAxis));
|
|
2472
2518
|
class YQuantitativeAxisComponent extends YQuantitativeAxis {
|
|
2473
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2474
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2519
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: YQuantitativeAxisComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2520
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: YQuantitativeAxisComponent, isStandalone: true, selector: "[vic-y-quantitative-axis]", inputs: { config: "config" }, host: { properties: { "class": "config.marksClass", "attr.mix-blend-mode": "config.mixBlendMode", "attr.transform": "translate" }, classAttribute: "vic-axis" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [".vic-axis-y-quantitative .vic-axis-label{fill:currentColor}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2475
2521
|
}
|
|
2476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: YQuantitativeAxisComponent, decorators: [{
|
|
2477
2523
|
type: Component,
|
|
2478
2524
|
args: [{ selector: '[vic-y-quantitative-axis]', template: '', inputs: ['config'], encapsulation: ViewEncapsulation.None, host: {
|
|
2479
2525
|
'[class]': 'config.marksClass',
|
|
@@ -2484,17 +2530,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2484
2530
|
}] });
|
|
2485
2531
|
|
|
2486
2532
|
class VicXyAxisModule {
|
|
2487
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2488
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2533
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyAxisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2534
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicXyAxisModule, imports: [YQuantitativeAxisComponent,
|
|
2489
2535
|
YOrdinalAxisComponent,
|
|
2490
2536
|
XQuantitativeAxisComponent,
|
|
2491
2537
|
XOrdinalAxisComponent], exports: [YQuantitativeAxisComponent,
|
|
2492
2538
|
YOrdinalAxisComponent,
|
|
2493
2539
|
XQuantitativeAxisComponent,
|
|
2494
2540
|
XOrdinalAxisComponent] }); }
|
|
2495
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2541
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyAxisModule }); }
|
|
2496
2542
|
}
|
|
2497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyAxisModule, decorators: [{
|
|
2498
2544
|
type: NgModule,
|
|
2499
2545
|
args: [{
|
|
2500
2546
|
imports: [
|
|
@@ -2524,7 +2570,12 @@ function mixinYAxisConfig(Base) {
|
|
|
2524
2570
|
const d3SuggestedDefault = dimensions.height / spacing;
|
|
2525
2571
|
return this.getValidatedNumTicks(d3SuggestedDefault);
|
|
2526
2572
|
}
|
|
2573
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2574
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
2527
2575
|
}
|
|
2576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2577
|
+
type: Directive
|
|
2578
|
+
}], ctorParameters: () => [{ type: undefined }] });
|
|
2528
2579
|
return Mixin;
|
|
2529
2580
|
}
|
|
2530
2581
|
class YAxisConfig extends mixinYAxisConfig(XyAxisConfig) {
|
|
@@ -2587,10 +2638,10 @@ class VicYOrdinalAxisConfigBuilder extends XyAxisBaseBuilder {
|
|
|
2587
2638
|
ticks: this.ticksBuilder._build('y'),
|
|
2588
2639
|
});
|
|
2589
2640
|
}
|
|
2590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2591
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2641
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYOrdinalAxisConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2642
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYOrdinalAxisConfigBuilder }); }
|
|
2592
2643
|
}
|
|
2593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYOrdinalAxisConfigBuilder, decorators: [{
|
|
2594
2645
|
type: Injectable
|
|
2595
2646
|
}], ctorParameters: () => [] });
|
|
2596
2647
|
|
|
@@ -2649,10 +2700,10 @@ class VicYQuantitativeAxisConfigBuilder extends XyAxisBaseBuilder {
|
|
|
2649
2700
|
ticks: this.ticksBuilder._build('y'),
|
|
2650
2701
|
});
|
|
2651
2702
|
}
|
|
2652
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2653
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYQuantitativeAxisConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2704
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYQuantitativeAxisConfigBuilder }); }
|
|
2654
2705
|
}
|
|
2655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYQuantitativeAxisConfigBuilder, decorators: [{
|
|
2656
2707
|
type: Injectable
|
|
2657
2708
|
}], ctorParameters: () => [] });
|
|
2658
2709
|
|
|
@@ -3325,14 +3376,14 @@ class BarsComponent extends VicXyPrimaryMarks {
|
|
|
3325
3376
|
this.config.quantitative.values[barDatum.index] ===
|
|
3326
3377
|
this.config.quantitative.valueAccessor(d));
|
|
3327
3378
|
}
|
|
3328
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3329
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3379
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BarsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3380
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: BarsComponent, isStandalone: true, selector: "[vic-primary-marks-bars]", host: { properties: { "class": "config.marksClass", "style.mixBlendMode": "config.mixBlendMode" } }, providers: [
|
|
3330
3381
|
{ provide: VIC_PRIMARY_MARKS, useExisting: BarsComponent },
|
|
3331
3382
|
{ provide: BARS, useExisting: BarsComponent },
|
|
3332
3383
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
3333
3384
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3334
3385
|
}
|
|
3335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BarsComponent, decorators: [{
|
|
3336
3387
|
type: Component,
|
|
3337
3388
|
args: [{ selector: '[vic-primary-marks-bars]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
3338
3389
|
{ provide: VIC_PRIMARY_MARKS, useExisting: BarsComponent },
|
|
@@ -3438,10 +3489,10 @@ class EventsDirective {
|
|
|
3438
3489
|
asHost() {
|
|
3439
3490
|
return this;
|
|
3440
3491
|
}
|
|
3441
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3442
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: EventsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3493
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: EventsDirective, isStandalone: true, inputs: { clickRemoveEvent$: "clickRemoveEvent$", inputEvent$: "inputEvent$" }, ngImport: i0 }); }
|
|
3443
3494
|
}
|
|
3444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: EventsDirective, decorators: [{
|
|
3445
3496
|
type: Directive
|
|
3446
3497
|
}], propDecorators: { clickRemoveEvent$: [{
|
|
3447
3498
|
type: Input
|
|
@@ -3665,10 +3716,10 @@ class VicHtmlTooltipConfigBuilder {
|
|
|
3665
3716
|
}
|
|
3666
3717
|
return panelClasses;
|
|
3667
3718
|
}
|
|
3668
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3669
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3719
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3720
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipConfigBuilder }); }
|
|
3670
3721
|
}
|
|
3671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipConfigBuilder, decorators: [{
|
|
3672
3723
|
type: Injectable
|
|
3673
3724
|
}], ctorParameters: () => [] });
|
|
3674
3725
|
|
|
@@ -3830,7 +3881,11 @@ class TooltipPositionBuilder {
|
|
|
3830
3881
|
}
|
|
3831
3882
|
|
|
3832
3883
|
class HtmlTooltipDirective {
|
|
3833
|
-
constructor() {
|
|
3884
|
+
constructor(viewContainerRef, overlay, overlayPositionBuilder, document) {
|
|
3885
|
+
this.viewContainerRef = viewContainerRef;
|
|
3886
|
+
this.overlay = overlay;
|
|
3887
|
+
this.overlayPositionBuilder = overlayPositionBuilder;
|
|
3888
|
+
this.document = document;
|
|
3834
3889
|
this.backdropClick = new EventEmitter();
|
|
3835
3890
|
this.backdropUnsubscribe = new Subject();
|
|
3836
3891
|
this.portalAttached = false;
|
|
@@ -3839,10 +3894,6 @@ class HtmlTooltipDirective {
|
|
|
3839
3894
|
this.hide();
|
|
3840
3895
|
}
|
|
3841
3896
|
};
|
|
3842
|
-
this.viewContainerRef = inject(ViewContainerRef);
|
|
3843
|
-
this.overlay = inject(Overlay);
|
|
3844
|
-
this.overlayPositionBuilder = inject(OverlayPositionBuilder);
|
|
3845
|
-
this.document = inject(DOCUMENT);
|
|
3846
3897
|
}
|
|
3847
3898
|
init() {
|
|
3848
3899
|
if (!this.overlayRef) {
|
|
@@ -3978,16 +4029,19 @@ class HtmlTooltipDirective {
|
|
|
3978
4029
|
this.overlayRef.dispose();
|
|
3979
4030
|
}
|
|
3980
4031
|
}
|
|
3981
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3982
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4032
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HtmlTooltipDirective, deps: [{ token: i0.ViewContainerRef }, { token: i1$1.Overlay }, { token: i1$1.OverlayPositionBuilder }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4033
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: HtmlTooltipDirective, isStandalone: true, selector: "vic-html-tooltip", inputs: { template: "template", config: "config" }, outputs: { backdropClick: "backdropClick" }, usesOnChanges: true, ngImport: i0 }); }
|
|
3983
4034
|
}
|
|
3984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HtmlTooltipDirective, decorators: [{
|
|
3985
4036
|
type: Directive,
|
|
3986
4037
|
args: [{
|
|
3987
4038
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3988
4039
|
selector: 'vic-html-tooltip',
|
|
3989
4040
|
}]
|
|
3990
|
-
}],
|
|
4041
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i1$1.Overlay }, { type: i1$1.OverlayPositionBuilder }, { type: Document, decorators: [{
|
|
4042
|
+
type: Inject,
|
|
4043
|
+
args: [DOCUMENT]
|
|
4044
|
+
}] }], propDecorators: { template: [{
|
|
3991
4045
|
type: Input
|
|
3992
4046
|
}], config: [{
|
|
3993
4047
|
type: Input
|
|
@@ -4000,10 +4054,10 @@ class TooltipTriangleComponent {
|
|
|
4000
4054
|
this.height = 12;
|
|
4001
4055
|
this.width = 20;
|
|
4002
4056
|
}
|
|
4003
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4004
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4057
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TooltipTriangleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4058
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: TooltipTriangleComponent, isStandalone: true, selector: "vic-tooltip-triangle", inputs: { height: "height", width: "width" }, ngImport: i0, template: "<svg\n width=\"100%\"\n [attr.height]=\"height\"\n [style.--width]=\"width + 'px'\"\n class=\"vic-tooltip-svg-triangle center\"\n>\n <g class=\"svg-g\">\n <path\n class=\"triangle-path\"\n [attr.d]=\"'M 0,0 ' + (width / 2) + ',' + height + ' ' + width + ',0'\"\n ></path>\n </g>\n</svg>\n\n<svg\n width=\"100%\"\n [attr.height]=\"height\"\n [style.--width]=\"width + 'px'\"\n class=\"vic-tooltip-svg-triangle right\"\n>\n <g class=\"svg-g\">\n <path\n class=\"triangle-path\"\n [attr.d]=\"'M 0,0 ' + (width / 2) + ',' + height + ' ' + (width / 2) + ',0'\"\n ></path>\n </g>\n</svg>\n\n<svg\n width=\"100%\"\n [attr.height]=\"height\"\n [style.--width]=\"width + 'px'\"\n class=\"vic-tooltip-svg-triangle left\"\n>\n <g class=\"svg-g\">\n <path\n class=\"triangle-path\"\n [attr.d]=\"'M 0,0 ' + '0,' + height + ' ' + (width / 2) + ',0'\"\n ></path>\n </g>\n</svg>\n", styles: [".cdk-overlay-container .position-bottom-center .vic-tooltip-svg-triangle.center{transform:translate(calc(50% - var(--width) / 2),-2px)}.cdk-overlay-container .position-bottom-center .vic-tooltip-svg-triangle.right,.cdk-overlay-container .position-bottom-center .vic-tooltip-svg-triangle.left,.cdk-overlay-container .position-bottom-left .vic-tooltip-svg-triangle.center,.cdk-overlay-container .position-bottom-left .vic-tooltip-svg-triangle.right{display:none}.cdk-overlay-container .position-bottom-left .vic-tooltip-svg-triangle.left{transform:translateY(-2px)}.cdk-overlay-container .position-bottom-right .vic-tooltip-svg-triangle.center{display:none}.cdk-overlay-container .position-bottom-right .vic-tooltip-svg-triangle.right{transform:translate(calc(100% - var(--width) / 2),-2px)}.cdk-overlay-container .position-bottom-right .vic-tooltip-svg-triangle.left{display:none}.cdk-overlay-container .vic-tooltip-svg-triangle{display:block;transform:translate(calc(50% - var(--width) / 2),-2px)}.cdk-overlay-container .vic-tooltip-svg-triangle .triangle-path{stroke:var(--tooltip-triangle-stroke, gray);fill:var(--tooltip-triangle-fill, white);fill-opacity:var(--tooltip-triangle-fill-opacity, 1)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
4005
4059
|
}
|
|
4006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TooltipTriangleComponent, decorators: [{
|
|
4007
4061
|
type: Component,
|
|
4008
4062
|
args: [{ selector: 'vic-tooltip-triangle', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<svg\n width=\"100%\"\n [attr.height]=\"height\"\n [style.--width]=\"width + 'px'\"\n class=\"vic-tooltip-svg-triangle center\"\n>\n <g class=\"svg-g\">\n <path\n class=\"triangle-path\"\n [attr.d]=\"'M 0,0 ' + (width / 2) + ',' + height + ' ' + width + ',0'\"\n ></path>\n </g>\n</svg>\n\n<svg\n width=\"100%\"\n [attr.height]=\"height\"\n [style.--width]=\"width + 'px'\"\n class=\"vic-tooltip-svg-triangle right\"\n>\n <g class=\"svg-g\">\n <path\n class=\"triangle-path\"\n [attr.d]=\"'M 0,0 ' + (width / 2) + ',' + height + ' ' + (width / 2) + ',0'\"\n ></path>\n </g>\n</svg>\n\n<svg\n width=\"100%\"\n [attr.height]=\"height\"\n [style.--width]=\"width + 'px'\"\n class=\"vic-tooltip-svg-triangle left\"\n>\n <g class=\"svg-g\">\n <path\n class=\"triangle-path\"\n [attr.d]=\"'M 0,0 ' + '0,' + height + ' ' + (width / 2) + ',0'\"\n ></path>\n </g>\n</svg>\n", styles: [".cdk-overlay-container .position-bottom-center .vic-tooltip-svg-triangle.center{transform:translate(calc(50% - var(--width) / 2),-2px)}.cdk-overlay-container .position-bottom-center .vic-tooltip-svg-triangle.right,.cdk-overlay-container .position-bottom-center .vic-tooltip-svg-triangle.left,.cdk-overlay-container .position-bottom-left .vic-tooltip-svg-triangle.center,.cdk-overlay-container .position-bottom-left .vic-tooltip-svg-triangle.right{display:none}.cdk-overlay-container .position-bottom-left .vic-tooltip-svg-triangle.left{transform:translateY(-2px)}.cdk-overlay-container .position-bottom-right .vic-tooltip-svg-triangle.center{display:none}.cdk-overlay-container .position-bottom-right .vic-tooltip-svg-triangle.right{transform:translate(calc(100% - var(--width) / 2),-2px)}.cdk-overlay-container .position-bottom-right .vic-tooltip-svg-triangle.left{display:none}.cdk-overlay-container .vic-tooltip-svg-triangle{display:block;transform:translate(calc(50% - var(--width) / 2),-2px)}.cdk-overlay-container .vic-tooltip-svg-triangle .triangle-path{stroke:var(--tooltip-triangle-stroke, gray);fill:var(--tooltip-triangle-fill, white);fill-opacity:var(--tooltip-triangle-fill-opacity, 1)}\n"] }]
|
|
4009
4063
|
}], propDecorators: { height: [{
|
|
@@ -4013,15 +4067,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4013
4067
|
}] } });
|
|
4014
4068
|
|
|
4015
4069
|
class VicHtmlTooltipModule {
|
|
4016
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4017
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4070
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4071
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipModule, imports: [CommonModule,
|
|
4018
4072
|
OverlayModule,
|
|
4019
4073
|
HtmlTooltipDirective,
|
|
4020
4074
|
TooltipTriangleComponent], exports: [HtmlTooltipDirective, TooltipTriangleComponent] }); }
|
|
4021
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4075
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipModule, imports: [CommonModule,
|
|
4022
4076
|
OverlayModule] }); }
|
|
4023
4077
|
}
|
|
4024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipModule, decorators: [{
|
|
4025
4079
|
type: NgModule,
|
|
4026
4080
|
args: [{
|
|
4027
4081
|
imports: [
|
|
@@ -4051,10 +4105,10 @@ class BarsTooltipPositioner extends TooltipPositioner {
|
|
|
4051
4105
|
}
|
|
4052
4106
|
|
|
4053
4107
|
class BarsEventsDirective extends EventsDirective {
|
|
4054
|
-
constructor() {
|
|
4055
|
-
super(
|
|
4108
|
+
constructor(bars) {
|
|
4109
|
+
super();
|
|
4110
|
+
this.bars = bars;
|
|
4056
4111
|
this.interactionOutput = new EventEmitter();
|
|
4057
|
-
this.bars = inject(BARS);
|
|
4058
4112
|
}
|
|
4059
4113
|
get marks() {
|
|
4060
4114
|
return this.bars;
|
|
@@ -4191,15 +4245,18 @@ class BarsEventsDirective extends EventsDirective {
|
|
|
4191
4245
|
this.positionX = undefined;
|
|
4192
4246
|
this.positionY = undefined;
|
|
4193
4247
|
}
|
|
4194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4195
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4248
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BarsEventsDirective, deps: [{ token: BARS }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4249
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: BarsEventsDirective, isStandalone: true, selector: "[vicBarsEvents]", inputs: { hoverActions: "hoverActions", hoverMoveActions: "hoverMoveActions", clickActions: "clickActions", inputEventActions: "inputEventActions" }, outputs: { interactionOutput: "interactionOutput" }, usesInheritance: true, ngImport: i0 }); }
|
|
4196
4250
|
}
|
|
4197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BarsEventsDirective, decorators: [{
|
|
4198
4252
|
type: Directive,
|
|
4199
4253
|
args: [{
|
|
4200
4254
|
selector: '[vicBarsEvents]',
|
|
4201
4255
|
}]
|
|
4202
|
-
}],
|
|
4256
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4257
|
+
type: Inject,
|
|
4258
|
+
args: [BARS]
|
|
4259
|
+
}] }], propDecorators: { hoverActions: [{
|
|
4203
4260
|
type: Input
|
|
4204
4261
|
}], hoverMoveActions: [{
|
|
4205
4262
|
type: Input
|
|
@@ -4212,11 +4269,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4212
4269
|
}] } });
|
|
4213
4270
|
|
|
4214
4271
|
class VicBarsModule {
|
|
4215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4216
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4217
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4273
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicBarsModule, imports: [BarsComponent, BarsEventsDirective], exports: [BarsComponent, BarsEventsDirective] }); }
|
|
4274
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsModule }); }
|
|
4218
4275
|
}
|
|
4219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsModule, decorators: [{
|
|
4220
4277
|
type: NgModule,
|
|
4221
4278
|
args: [{
|
|
4222
4279
|
imports: [BarsComponent, BarsEventsDirective],
|
|
@@ -5203,10 +5260,10 @@ class VicBarsConfigBuilder extends PrimaryMarksBuilder {
|
|
|
5203
5260
|
getQuantitativeDimensionName() {
|
|
5204
5261
|
return this._orientation === 'horizontal' ? 'X' : 'Y';
|
|
5205
5262
|
}
|
|
5206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5207
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5263
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5264
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsConfigBuilder }); }
|
|
5208
5265
|
}
|
|
5209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsConfigBuilder, decorators: [{
|
|
5210
5267
|
type: Injectable
|
|
5211
5268
|
}], ctorParameters: () => [] });
|
|
5212
5269
|
|
|
@@ -5280,109 +5337,6 @@ const valueFormat = {
|
|
|
5280
5337
|
monthFullYear: '%B %Y',
|
|
5281
5338
|
};
|
|
5282
5339
|
|
|
5283
|
-
/**
|
|
5284
|
-
* A dimension that transforms Date values into a position on a chart.
|
|
5285
|
-
*
|
|
5286
|
-
* This dimension is used for the positional dimensions of a chart, such as x and y. The underlying scale will always be a [D3 time scale](https://d3js.org/d3-scale/time). The range of the scale will be a dimension from the chart.
|
|
5287
|
-
*
|
|
5288
|
-
* The generic is the type of the data that will be passed to the dimension.
|
|
5289
|
-
*
|
|
5290
|
-
* TESTABLE FUNCTIONALITY
|
|
5291
|
-
*
|
|
5292
|
-
* - It extracts values for the dimension from data.
|
|
5293
|
-
* - tested in: lines.cy.ts
|
|
5294
|
-
* - It sets the domain of the dimension.
|
|
5295
|
-
* - tested in: lines.cy.ts
|
|
5296
|
-
* - It creates and returns a scale from a range.
|
|
5297
|
-
* - tested in: lines.cy.ts
|
|
5298
|
-
* - It checks if a value is in valid.
|
|
5299
|
-
* - tested in: lines.cy.ts
|
|
5300
|
-
* - The domain will be unique values from the user-provided domain if the user provides a domain.
|
|
5301
|
-
* - tested in: date-chart-position.spec.ts
|
|
5302
|
-
* - The domain will be unique values from the data if no custom domain is given by the user.
|
|
5303
|
-
* - tested in: date-chart-position.spec.ts
|
|
5304
|
-
* - The domain can be set in reverse order.
|
|
5305
|
-
* - tested in: date-chart-position.spec.ts
|
|
5306
|
-
*/
|
|
5307
|
-
class DateChartPositionDimension extends DataDimension {
|
|
5308
|
-
constructor(options) {
|
|
5309
|
-
super('date');
|
|
5310
|
-
safeAssign(this, options);
|
|
5311
|
-
}
|
|
5312
|
-
setPropertiesFromData(data) {
|
|
5313
|
-
this.setValues(data);
|
|
5314
|
-
this.setDomain();
|
|
5315
|
-
}
|
|
5316
|
-
setDomain() {
|
|
5317
|
-
const extents = this.domain === undefined
|
|
5318
|
-
? [min(this.values), max(this.values)]
|
|
5319
|
-
: this.domain;
|
|
5320
|
-
this.calculatedDomain = extents;
|
|
5321
|
-
}
|
|
5322
|
-
getScaleFromRange(range) {
|
|
5323
|
-
return this.scaleFn().domain(this.calculatedDomain).range(range);
|
|
5324
|
-
}
|
|
5325
|
-
// returns false if data is undefined or null of not a Date
|
|
5326
|
-
// for some charts this may be fine
|
|
5327
|
-
// original intended use case: d3Line can only handle defined values
|
|
5328
|
-
isValidValue(x) {
|
|
5329
|
-
return isDate(x);
|
|
5330
|
-
}
|
|
5331
|
-
}
|
|
5332
|
-
|
|
5333
|
-
const DEFAULT$o = {
|
|
5334
|
-
_scaleFn: scaleUtc,
|
|
5335
|
-
_formatSpecifier: '%Y %m',
|
|
5336
|
-
};
|
|
5337
|
-
class DateChartPositionDimensionBuilder extends DataDimensionBuilder {
|
|
5338
|
-
constructor() {
|
|
5339
|
-
super();
|
|
5340
|
-
safeAssign(this, DEFAULT$o);
|
|
5341
|
-
}
|
|
5342
|
-
domain(domain) {
|
|
5343
|
-
if (domain === null) {
|
|
5344
|
-
this._domain = undefined;
|
|
5345
|
-
return this;
|
|
5346
|
-
}
|
|
5347
|
-
this._domain = domain;
|
|
5348
|
-
return this;
|
|
5349
|
-
}
|
|
5350
|
-
formatSpecifier(formatSpecifier) {
|
|
5351
|
-
if (formatSpecifier === null) {
|
|
5352
|
-
this._formatSpecifier = undefined;
|
|
5353
|
-
return this;
|
|
5354
|
-
}
|
|
5355
|
-
this._formatSpecifier = formatSpecifier;
|
|
5356
|
-
return this;
|
|
5357
|
-
}
|
|
5358
|
-
scaleFn(scaleFn) {
|
|
5359
|
-
if (scaleFn === null) {
|
|
5360
|
-
this._scaleFn = undefined;
|
|
5361
|
-
return this;
|
|
5362
|
-
}
|
|
5363
|
-
this._scaleFn = scaleFn;
|
|
5364
|
-
return this;
|
|
5365
|
-
}
|
|
5366
|
-
/**
|
|
5367
|
-
* @internal This function is for internal use only and should never be called by the user.
|
|
5368
|
-
*
|
|
5369
|
-
* @param dimensionName A user-intelligible name for the dimension being built. Used for error messages. Should be title cased.
|
|
5370
|
-
*/
|
|
5371
|
-
_build(dimensionName) {
|
|
5372
|
-
this.validateBuilder(dimensionName);
|
|
5373
|
-
return new DateChartPositionDimension({
|
|
5374
|
-
domain: this._domain,
|
|
5375
|
-
formatFunction: this._formatFunction,
|
|
5376
|
-
formatSpecifier: this._formatSpecifier,
|
|
5377
|
-
scaleFn: this._scaleFn,
|
|
5378
|
-
valueAccessor: this._valueAccessor,
|
|
5379
|
-
});
|
|
5380
|
-
}
|
|
5381
|
-
validateBuilder(dimensionName) {
|
|
5382
|
-
this.validateValueAccessor(dimensionName);
|
|
5383
|
-
}
|
|
5384
|
-
}
|
|
5385
|
-
|
|
5386
5340
|
class VicDataExport {
|
|
5387
5341
|
saveCSV(name, dataConfigs) {
|
|
5388
5342
|
const blobParts = [];
|
|
@@ -5453,10 +5407,10 @@ class VicDataExport {
|
|
|
5453
5407
|
const blob = new Blob(blobParts, { type: 'text/csv;charset=utf-8' });
|
|
5454
5408
|
saveAs.saveAs(blob, `${name}.csv`);
|
|
5455
5409
|
}
|
|
5456
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5457
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDataExport, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5411
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDataExport, providedIn: 'root' }); }
|
|
5458
5412
|
}
|
|
5459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDataExport, decorators: [{
|
|
5460
5414
|
type: Injectable,
|
|
5461
5415
|
args: [{ providedIn: 'root' }]
|
|
5462
5416
|
}] });
|
|
@@ -5530,6 +5484,109 @@ class VicDataExportConfig {
|
|
|
5530
5484
|
}
|
|
5531
5485
|
}
|
|
5532
5486
|
|
|
5487
|
+
/**
|
|
5488
|
+
* A dimension that transforms Date values into a position on a chart.
|
|
5489
|
+
*
|
|
5490
|
+
* This dimension is used for the positional dimensions of a chart, such as x and y. The underlying scale will always be a [D3 time scale](https://d3js.org/d3-scale/time). The range of the scale will be a dimension from the chart.
|
|
5491
|
+
*
|
|
5492
|
+
* The generic is the type of the data that will be passed to the dimension.
|
|
5493
|
+
*
|
|
5494
|
+
* TESTABLE FUNCTIONALITY
|
|
5495
|
+
*
|
|
5496
|
+
* - It extracts values for the dimension from data.
|
|
5497
|
+
* - tested in: lines.cy.ts
|
|
5498
|
+
* - It sets the domain of the dimension.
|
|
5499
|
+
* - tested in: lines.cy.ts
|
|
5500
|
+
* - It creates and returns a scale from a range.
|
|
5501
|
+
* - tested in: lines.cy.ts
|
|
5502
|
+
* - It checks if a value is in valid.
|
|
5503
|
+
* - tested in: lines.cy.ts
|
|
5504
|
+
* - The domain will be unique values from the user-provided domain if the user provides a domain.
|
|
5505
|
+
* - tested in: date-chart-position.spec.ts
|
|
5506
|
+
* - The domain will be unique values from the data if no custom domain is given by the user.
|
|
5507
|
+
* - tested in: date-chart-position.spec.ts
|
|
5508
|
+
* - The domain can be set in reverse order.
|
|
5509
|
+
* - tested in: date-chart-position.spec.ts
|
|
5510
|
+
*/
|
|
5511
|
+
class DateChartPositionDimension extends DataDimension {
|
|
5512
|
+
constructor(options) {
|
|
5513
|
+
super('date');
|
|
5514
|
+
safeAssign(this, options);
|
|
5515
|
+
}
|
|
5516
|
+
setPropertiesFromData(data) {
|
|
5517
|
+
this.setValues(data);
|
|
5518
|
+
this.setDomain();
|
|
5519
|
+
}
|
|
5520
|
+
setDomain() {
|
|
5521
|
+
const extents = this.domain === undefined
|
|
5522
|
+
? [min(this.values), max(this.values)]
|
|
5523
|
+
: this.domain;
|
|
5524
|
+
this.calculatedDomain = extents;
|
|
5525
|
+
}
|
|
5526
|
+
getScaleFromRange(range) {
|
|
5527
|
+
return this.scaleFn().domain(this.calculatedDomain).range(range);
|
|
5528
|
+
}
|
|
5529
|
+
// returns false if data is undefined or null of not a Date
|
|
5530
|
+
// for some charts this may be fine
|
|
5531
|
+
// original intended use case: d3Line can only handle defined values
|
|
5532
|
+
isValidValue(x) {
|
|
5533
|
+
return isDate(x);
|
|
5534
|
+
}
|
|
5535
|
+
}
|
|
5536
|
+
|
|
5537
|
+
const DEFAULT$o = {
|
|
5538
|
+
_scaleFn: scaleUtc,
|
|
5539
|
+
_formatSpecifier: '%Y %m',
|
|
5540
|
+
};
|
|
5541
|
+
class DateChartPositionDimensionBuilder extends DataDimensionBuilder {
|
|
5542
|
+
constructor() {
|
|
5543
|
+
super();
|
|
5544
|
+
safeAssign(this, DEFAULT$o);
|
|
5545
|
+
}
|
|
5546
|
+
domain(domain) {
|
|
5547
|
+
if (domain === null) {
|
|
5548
|
+
this._domain = undefined;
|
|
5549
|
+
return this;
|
|
5550
|
+
}
|
|
5551
|
+
this._domain = domain;
|
|
5552
|
+
return this;
|
|
5553
|
+
}
|
|
5554
|
+
formatSpecifier(formatSpecifier) {
|
|
5555
|
+
if (formatSpecifier === null) {
|
|
5556
|
+
this._formatSpecifier = undefined;
|
|
5557
|
+
return this;
|
|
5558
|
+
}
|
|
5559
|
+
this._formatSpecifier = formatSpecifier;
|
|
5560
|
+
return this;
|
|
5561
|
+
}
|
|
5562
|
+
scaleFn(scaleFn) {
|
|
5563
|
+
if (scaleFn === null) {
|
|
5564
|
+
this._scaleFn = undefined;
|
|
5565
|
+
return this;
|
|
5566
|
+
}
|
|
5567
|
+
this._scaleFn = scaleFn;
|
|
5568
|
+
return this;
|
|
5569
|
+
}
|
|
5570
|
+
/**
|
|
5571
|
+
* @internal This function is for internal use only and should never be called by the user.
|
|
5572
|
+
*
|
|
5573
|
+
* @param dimensionName A user-intelligible name for the dimension being built. Used for error messages. Should be title cased.
|
|
5574
|
+
*/
|
|
5575
|
+
_build(dimensionName) {
|
|
5576
|
+
this.validateBuilder(dimensionName);
|
|
5577
|
+
return new DateChartPositionDimension({
|
|
5578
|
+
domain: this._domain,
|
|
5579
|
+
formatFunction: this._formatFunction,
|
|
5580
|
+
formatSpecifier: this._formatSpecifier,
|
|
5581
|
+
scaleFn: this._scaleFn,
|
|
5582
|
+
valueAccessor: this._valueAccessor,
|
|
5583
|
+
});
|
|
5584
|
+
}
|
|
5585
|
+
validateBuilder(dimensionName) {
|
|
5586
|
+
this.validateValueAccessor(dimensionName);
|
|
5587
|
+
}
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5533
5590
|
/**
|
|
5534
5591
|
* A dimension that transforms number values into a value of type number or string.
|
|
5535
5592
|
*
|
|
@@ -5908,10 +5965,10 @@ class VicDotsConfigBuilder extends PrimaryMarksBuilder {
|
|
|
5908
5965
|
throw new Error('Dots Builder: Exactly one Y dimension is required. Please use one of `yDate`, `yNumeric`, or `yOrdinal` to set it.');
|
|
5909
5966
|
}
|
|
5910
5967
|
}
|
|
5911
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5912
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5968
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5969
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsConfigBuilder }); }
|
|
5913
5970
|
}
|
|
5914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsConfigBuilder, decorators: [{
|
|
5915
5972
|
type: Injectable
|
|
5916
5973
|
}], ctorParameters: () => [] });
|
|
5917
5974
|
|
|
@@ -6041,14 +6098,14 @@ class DotsComponent extends VicXyPrimaryMarks {
|
|
|
6041
6098
|
return ('formatSpecifier' in dimension &&
|
|
6042
6099
|
typeof dimension.formatSpecifier === 'string');
|
|
6043
6100
|
}
|
|
6044
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6045
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
6101
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DotsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6102
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: DotsComponent, isStandalone: true, selector: "[vic-primary-marks-dots]", host: { properties: { "class": "config.marksClass", "style.mixed-blend-mode": "config.mixBlendMode" } }, providers: [
|
|
6046
6103
|
{ provide: VIC_PRIMARY_MARKS, useExisting: DotsComponent },
|
|
6047
6104
|
{ provide: DOTS, useExisting: DotsComponent },
|
|
6048
6105
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
6049
6106
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6050
6107
|
}
|
|
6051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DotsComponent, decorators: [{
|
|
6052
6109
|
type: Component,
|
|
6053
6110
|
args: [{ selector: '[vic-primary-marks-dots]', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
6054
6111
|
{ provide: VIC_PRIMARY_MARKS, useExisting: DotsComponent },
|
|
@@ -6077,10 +6134,10 @@ class DotsTooltipPositioner extends TooltipPositioner {
|
|
|
6077
6134
|
}
|
|
6078
6135
|
|
|
6079
6136
|
class DotsEventsDirective extends EventsDirective {
|
|
6080
|
-
constructor() {
|
|
6081
|
-
super(
|
|
6137
|
+
constructor(dots) {
|
|
6138
|
+
super();
|
|
6139
|
+
this.dots = dots;
|
|
6082
6140
|
this.interactionOutput = new EventEmitter();
|
|
6083
|
-
this.dots = inject(DOTS);
|
|
6084
6141
|
}
|
|
6085
6142
|
get marks() {
|
|
6086
6143
|
return this.dots;
|
|
@@ -6218,15 +6275,18 @@ class DotsEventsDirective extends EventsDirective {
|
|
|
6218
6275
|
this.positionX = undefined;
|
|
6219
6276
|
this.positionY = undefined;
|
|
6220
6277
|
}
|
|
6221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6222
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
6278
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DotsEventsDirective, deps: [{ token: DOTS }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6279
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: DotsEventsDirective, isStandalone: true, selector: "[vicDotsEvents]", inputs: { hoverActions: "hoverActions", hoverMoveActions: "hoverMoveActions", clickActions: "clickActions", inputEventActions: "inputEventActions" }, outputs: { interactionOutput: "interactionOutput" }, usesInheritance: true, ngImport: i0 }); }
|
|
6223
6280
|
}
|
|
6224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DotsEventsDirective, decorators: [{
|
|
6225
6282
|
type: Directive,
|
|
6226
6283
|
args: [{
|
|
6227
6284
|
selector: '[vicDotsEvents]',
|
|
6228
6285
|
}]
|
|
6229
|
-
}],
|
|
6286
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
6287
|
+
type: Inject,
|
|
6288
|
+
args: [DOTS]
|
|
6289
|
+
}] }], propDecorators: { hoverActions: [{
|
|
6230
6290
|
type: Input
|
|
6231
6291
|
}], hoverMoveActions: [{
|
|
6232
6292
|
type: Input
|
|
@@ -6239,11 +6299,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
6239
6299
|
}] } });
|
|
6240
6300
|
|
|
6241
6301
|
class VicDotsModule {
|
|
6242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6243
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
6244
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6302
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6303
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicDotsModule, imports: [DotsComponent, DotsEventsDirective], exports: [DotsComponent, DotsEventsDirective] }); }
|
|
6304
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsModule }); }
|
|
6245
6305
|
}
|
|
6246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsModule, decorators: [{
|
|
6247
6307
|
type: NgModule,
|
|
6248
6308
|
args: [{
|
|
6249
6309
|
imports: [DotsComponent, DotsEventsDirective],
|
|
@@ -7505,10 +7565,10 @@ class VicGeographiesConfigBuilder {
|
|
|
7505
7565
|
throw new Error('At least one layer is required');
|
|
7506
7566
|
}
|
|
7507
7567
|
}
|
|
7508
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7509
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7568
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7569
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesConfigBuilder }); }
|
|
7510
7570
|
}
|
|
7511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesConfigBuilder, decorators: [{
|
|
7512
7572
|
type: Injectable
|
|
7513
7573
|
}], ctorParameters: () => [] });
|
|
7514
7574
|
|
|
@@ -7688,8 +7748,8 @@ class GeographiesComponent extends MapPrimaryMarks {
|
|
|
7688
7748
|
}, []);
|
|
7689
7749
|
this.pathsByLayer.next(pathsByLayer);
|
|
7690
7750
|
}
|
|
7691
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7692
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
7751
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GeographiesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7752
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: GeographiesComponent, isStandalone: true, selector: "[vic-primary-marks-geographies]", host: { properties: { "class": "config.marksClass", "style.mixed-blend-mode": "config.blendMode" } }, providers: [
|
|
7693
7753
|
{ provide: VIC_PRIMARY_MARKS, useExisting: GeographiesComponent },
|
|
7694
7754
|
{
|
|
7695
7755
|
provide: GEOGRAPHIES,
|
|
@@ -7701,7 +7761,7 @@ class GeographiesComponent extends MapPrimaryMarks {
|
|
|
7701
7761
|
},
|
|
7702
7762
|
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
7703
7763
|
}
|
|
7704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GeographiesComponent, decorators: [{
|
|
7705
7765
|
type: Component,
|
|
7706
7766
|
args: [{ selector: '[vic-primary-marks-geographies]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
7707
7767
|
{ provide: VIC_PRIMARY_MARKS, useExisting: GeographiesComponent },
|
|
@@ -7715,7 +7775,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
7715
7775
|
},
|
|
7716
7776
|
], host: {
|
|
7717
7777
|
'[class]': 'config.marksClass',
|
|
7718
|
-
'[style.mixed-blend-mode]': 'config.
|
|
7778
|
+
'[style.mixed-blend-mode]': 'config.blendMode',
|
|
7719
7779
|
}, template: "<ng-content></ng-content>\n" }]
|
|
7720
7780
|
}] });
|
|
7721
7781
|
|
|
@@ -7736,10 +7796,10 @@ class GeographiesTooltipPositioner extends TooltipPositioner {
|
|
|
7736
7796
|
}
|
|
7737
7797
|
|
|
7738
7798
|
class GeographiesEventsDirective extends EventsDirective {
|
|
7739
|
-
constructor() {
|
|
7740
|
-
super(
|
|
7799
|
+
constructor(geographies) {
|
|
7800
|
+
super();
|
|
7801
|
+
this.geographies = geographies;
|
|
7741
7802
|
this.interactionOutput = new EventEmitter();
|
|
7742
|
-
this.geographies = inject(GEOGRAPHIES);
|
|
7743
7803
|
}
|
|
7744
7804
|
get marks() {
|
|
7745
7805
|
return this.geographies;
|
|
@@ -7878,15 +7938,18 @@ class GeographiesEventsDirective extends EventsDirective {
|
|
|
7878
7938
|
this.positionY = undefined;
|
|
7879
7939
|
this.layer = undefined;
|
|
7880
7940
|
}
|
|
7881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7882
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
7941
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GeographiesEventsDirective, deps: [{ token: GEOGRAPHIES }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7942
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: GeographiesEventsDirective, isStandalone: true, selector: "[vicGeographiesEvents]", inputs: { hoverActions: "hoverActions", hoverMoveActions: "hoverMoveActions", clickActions: "clickActions", inputEventActions: "inputEventActions" }, outputs: { interactionOutput: "interactionOutput" }, usesInheritance: true, ngImport: i0 }); }
|
|
7883
7943
|
}
|
|
7884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GeographiesEventsDirective, decorators: [{
|
|
7885
7945
|
type: Directive,
|
|
7886
7946
|
args: [{
|
|
7887
7947
|
selector: '[vicGeographiesEvents]',
|
|
7888
7948
|
}]
|
|
7889
|
-
}],
|
|
7949
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
7950
|
+
type: Inject,
|
|
7951
|
+
args: [GEOGRAPHIES]
|
|
7952
|
+
}] }], propDecorators: { hoverActions: [{
|
|
7890
7953
|
type: Input
|
|
7891
7954
|
}], hoverMoveActions: [{
|
|
7892
7955
|
type: Input
|
|
@@ -7903,11 +7966,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
7903
7966
|
*/
|
|
7904
7967
|
|
|
7905
7968
|
class VicGeographiesModule {
|
|
7906
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7907
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
7908
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
7969
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7970
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesModule, imports: [GeographiesComponent, GeographiesEventsDirective], exports: [GeographiesComponent, GeographiesEventsDirective] }); }
|
|
7971
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesModule }); }
|
|
7909
7972
|
}
|
|
7910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesModule, decorators: [{
|
|
7911
7974
|
type: NgModule,
|
|
7912
7975
|
args: [{
|
|
7913
7976
|
imports: [GeographiesComponent, GeographiesEventsDirective],
|
|
@@ -7981,18 +8044,18 @@ class VicGroupedBarsConfigBuilder extends VicBarsConfigBuilder {
|
|
|
7981
8044
|
quantitative: this.quantitativeDimensionBuilder._build(this.getQuantitativeDimensionName()),
|
|
7982
8045
|
});
|
|
7983
8046
|
}
|
|
7984
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7985
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8048
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsConfigBuilder }); }
|
|
7986
8049
|
}
|
|
7987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsConfigBuilder, decorators: [{
|
|
7988
8051
|
type: Injectable
|
|
7989
8052
|
}], ctorParameters: () => [] });
|
|
7990
8053
|
|
|
7991
8054
|
class GroupedBarsEventsDirective extends EventsDirective {
|
|
7992
|
-
constructor() {
|
|
7993
|
-
super(
|
|
8055
|
+
constructor(bars) {
|
|
8056
|
+
super();
|
|
8057
|
+
this.bars = bars;
|
|
7994
8058
|
this.interactionOutput = new EventEmitter();
|
|
7995
|
-
this.bars = inject(BARS);
|
|
7996
8059
|
}
|
|
7997
8060
|
get marks() {
|
|
7998
8061
|
return this.bars;
|
|
@@ -8129,15 +8192,18 @@ class GroupedBarsEventsDirective extends EventsDirective {
|
|
|
8129
8192
|
this.positionX = undefined;
|
|
8130
8193
|
this.positionY = undefined;
|
|
8131
8194
|
}
|
|
8132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8133
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
8195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GroupedBarsEventsDirective, deps: [{ token: BARS }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8196
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: GroupedBarsEventsDirective, isStandalone: true, selector: "[vicGroupedBarsEvents]", inputs: { hoverActions: "hoverActions", hoverMoveActions: "hoverMoveActions", clickActions: "clickActions", inputEventActions: "inputEventActions" }, outputs: { interactionOutput: "interactionOutput" }, usesInheritance: true, ngImport: i0 }); }
|
|
8134
8197
|
}
|
|
8135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GroupedBarsEventsDirective, decorators: [{
|
|
8136
8199
|
type: Directive,
|
|
8137
8200
|
args: [{
|
|
8138
8201
|
selector: '[vicGroupedBarsEvents]',
|
|
8139
8202
|
}]
|
|
8140
|
-
}],
|
|
8203
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
8204
|
+
type: Inject,
|
|
8205
|
+
args: [BARS]
|
|
8206
|
+
}] }], propDecorators: { hoverActions: [{
|
|
8141
8207
|
type: Input
|
|
8142
8208
|
}], hoverMoveActions: [{
|
|
8143
8209
|
type: Input
|
|
@@ -8198,14 +8264,14 @@ class GroupedBarsComponent extends BarsComponent {
|
|
|
8198
8264
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8199
8265
|
return this.groupScale.bandwidth();
|
|
8200
8266
|
}
|
|
8201
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8202
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
8267
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GroupedBarsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8268
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: GroupedBarsComponent, isStandalone: true, selector: "[vic-primary-grouped-bars]", inputs: { config: "config" }, host: { properties: { "class": "config.marksClass", "style.mixBlendMode": "config.mixBlendMode" } }, providers: [
|
|
8203
8269
|
{ provide: VIC_PRIMARY_MARKS, useExisting: GroupedBarsComponent },
|
|
8204
8270
|
{ provide: BARS, useExisting: GroupedBarsComponent },
|
|
8205
8271
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
8206
8272
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
8207
8273
|
}
|
|
8208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GroupedBarsComponent, decorators: [{
|
|
8209
8275
|
type: Component,
|
|
8210
8276
|
args: [{ selector: '[vic-primary-grouped-bars]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
8211
8277
|
{ provide: VIC_PRIMARY_MARKS, useExisting: GroupedBarsComponent },
|
|
@@ -8221,11 +8287,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
8221
8287
|
}] } });
|
|
8222
8288
|
|
|
8223
8289
|
class VicGroupedBarsModule {
|
|
8224
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8225
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8226
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
8290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8291
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsModule, imports: [GroupedBarsComponent, GroupedBarsEventsDirective], exports: [GroupedBarsComponent, GroupedBarsEventsDirective] }); }
|
|
8292
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsModule }); }
|
|
8227
8293
|
}
|
|
8228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsModule, decorators: [{
|
|
8229
8295
|
type: NgModule,
|
|
8230
8296
|
args: [{
|
|
8231
8297
|
imports: [GroupedBarsComponent, GroupedBarsEventsDirective],
|
|
@@ -8309,10 +8375,10 @@ class VicImageDownloadService {
|
|
|
8309
8375
|
link.href = dataUrl;
|
|
8310
8376
|
link.click();
|
|
8311
8377
|
}
|
|
8312
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8313
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8378
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicImageDownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8379
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicImageDownloadService, providedIn: 'root' }); }
|
|
8314
8380
|
}
|
|
8315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicImageDownloadService, decorators: [{
|
|
8316
8382
|
type: Injectable,
|
|
8317
8383
|
args: [{ providedIn: 'root' }]
|
|
8318
8384
|
}] });
|
|
@@ -8728,10 +8794,10 @@ class VicLinesConfigBuilder extends PrimaryMarksBuilder {
|
|
|
8728
8794
|
throw new Error('Lines Builder: Y dimension is required. Please use method `createYDimension` to set it.');
|
|
8729
8795
|
}
|
|
8730
8796
|
}
|
|
8731
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8732
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8797
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8798
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesConfigBuilder }); }
|
|
8733
8799
|
}
|
|
8734
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesConfigBuilder, decorators: [{
|
|
8735
8801
|
type: Injectable
|
|
8736
8802
|
}], ctorParameters: () => [] });
|
|
8737
8803
|
|
|
@@ -9089,14 +9155,14 @@ class LinesComponent extends VicXyPrimaryMarks {
|
|
|
9089
9155
|
origin: this.chart.svgRef.nativeElement,
|
|
9090
9156
|
};
|
|
9091
9157
|
}
|
|
9092
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9093
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: LinesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: LinesComponent, isStandalone: true, selector: "[vic-primary-marks-lines]", host: { attributes: { "fill": "none" }, properties: { "class": "config.marksClass", "attr.stroke-linecap": "config.stroke.linecap", "attr.stroke-linejoin": "config.stroke.linejoin", "attr.stroke-width": "config.stroke.width", "attr.stroke-opacity": "config.stroke.opacity", "style.mix-blend-mode": "config.mixBlendMode" } }, providers: [
|
|
9094
9160
|
{ provide: VIC_PRIMARY_MARKS, useExisting: LinesComponent },
|
|
9095
9161
|
{ provide: LINES, useExisting: LinesComponent },
|
|
9096
9162
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
9097
9163
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
9098
9164
|
}
|
|
9099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: LinesComponent, decorators: [{
|
|
9100
9166
|
type: Component,
|
|
9101
9167
|
args: [{ selector: '[vic-primary-marks-lines]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
9102
9168
|
{ provide: VIC_PRIMARY_MARKS, useExisting: LinesComponent },
|
|
@@ -9130,11 +9196,11 @@ class LinesTooltipPositioner extends TooltipPositioner {
|
|
|
9130
9196
|
}
|
|
9131
9197
|
|
|
9132
9198
|
class LinesEventsDirective extends EventsDirective {
|
|
9133
|
-
constructor() {
|
|
9134
|
-
super(
|
|
9199
|
+
constructor(lines) {
|
|
9200
|
+
super();
|
|
9201
|
+
this.lines = lines;
|
|
9135
9202
|
this.interactionOutput = new EventEmitter();
|
|
9136
9203
|
this.actionActive = false;
|
|
9137
|
-
this.lines = inject(LINES);
|
|
9138
9204
|
}
|
|
9139
9205
|
get marks() {
|
|
9140
9206
|
return this.lines;
|
|
@@ -9305,15 +9371,18 @@ class LinesEventsDirective extends EventsDirective {
|
|
|
9305
9371
|
this.positionX = undefined;
|
|
9306
9372
|
this.positionY = undefined;
|
|
9307
9373
|
}
|
|
9308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9309
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
9374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: LinesEventsDirective, deps: [{ token: LINES }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9375
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: LinesEventsDirective, isStandalone: true, selector: "[vicLinesEvents]", inputs: { hoverMoveActions: "hoverMoveActions", clickActions: "clickActions", inputEventActions: "inputEventActions" }, outputs: { interactionOutput: "interactionOutput" }, usesInheritance: true, ngImport: i0 }); }
|
|
9310
9376
|
}
|
|
9311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: LinesEventsDirective, decorators: [{
|
|
9312
9378
|
type: Directive,
|
|
9313
9379
|
args: [{
|
|
9314
9380
|
selector: '[vicLinesEvents]',
|
|
9315
9381
|
}]
|
|
9316
|
-
}],
|
|
9382
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
9383
|
+
type: Inject,
|
|
9384
|
+
args: [LINES]
|
|
9385
|
+
}] }], propDecorators: { hoverMoveActions: [{
|
|
9317
9386
|
type: Input
|
|
9318
9387
|
}], clickActions: [{
|
|
9319
9388
|
type: Input
|
|
@@ -9324,11 +9393,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
9324
9393
|
}] } });
|
|
9325
9394
|
|
|
9326
9395
|
class VicLinesModule {
|
|
9327
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9328
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9329
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9396
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9397
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicLinesModule, imports: [LinesComponent, LinesEventsDirective], exports: [LinesComponent, LinesEventsDirective] }); }
|
|
9398
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesModule }); }
|
|
9330
9399
|
}
|
|
9331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesModule, decorators: [{
|
|
9332
9401
|
type: NgModule,
|
|
9333
9402
|
args: [{
|
|
9334
9403
|
imports: [LinesComponent, LinesEventsDirective],
|
|
@@ -9390,10 +9459,10 @@ class MapLegend {
|
|
|
9390
9459
|
this.largerValueSpace = 0;
|
|
9391
9460
|
this.leftOffset = 0;
|
|
9392
9461
|
}
|
|
9393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9394
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
9462
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9463
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: MapLegend, isStandalone: true, inputs: { width: "width", height: "height", orientation: "orientation", valuesSide: "valuesSide", scale: "scale", config: "config", outlineColor: "outlineColor" }, usesOnChanges: true, ngImport: i0 }); }
|
|
9395
9464
|
}
|
|
9396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapLegend, decorators: [{
|
|
9397
9466
|
type: Directive
|
|
9398
9467
|
}], propDecorators: { width: [{
|
|
9399
9468
|
type: Input
|
|
@@ -9464,12 +9533,12 @@ class ContinuousLegendComponent extends MapLegend {
|
|
|
9464
9533
|
ctx.fillRect(0, i, 1, 1);
|
|
9465
9534
|
}
|
|
9466
9535
|
}
|
|
9467
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9468
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
9536
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ContinuousLegendComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9537
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: ContinuousLegendComponent, isStandalone: true, selector: "vic-continuous-legend", viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"vic-legend-color-scale vic-continuous\"\n [ngClass]=\"['vic-' + orientation, 'vic-' + valuesSide]\"\n [style.--width]=\"width + 'px'\"\n [style.--height]=\"height + 'px'\"\n [style.--border-color]=\"outlineColor\"\n [style.--value-space]=\"largerValueSpace + 'px'\"\n [style.left.px]=\"leftOffset\"\n>\n <ng-container\n *ngIf=\"\n (orientation === 'vertical' && valuesSide === 'left') ||\n (orientation === 'horizontal' && valuesSide === 'top')\n \"\n >\n <ng-container *ngTemplateOutlet=\"valuesDisplay\"></ng-container>\n </ng-container>\n <div class=\"vic-legend-canvas-container\">\n <canvas class=\"vic-legend-canvas\" #canvas></canvas>\n </div>\n <ng-container\n *ngIf=\"\n (orientation === 'vertical' && valuesSide === 'right') ||\n (orientation === 'horizontal' && valuesSide === 'bottom')\n \"\n >\n <ng-container *ngTemplateOutlet=\"valuesDisplay\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #valuesDisplay>\n <div class=\"vic-legend-values-container vic-continuous\">\n <p class=\"vic-value vic-low\">{{ values[0] }}</p>\n <p class=\"vic-value vic-high\">{{ values[values.length - 1] }}</p>\n </div>\n</ng-template>\n", styles: [".vic-legend-canvas{display:block}.vic-legend-color-scale.vic-horizontal{display:flex;flex-direction:column;position:relative;max-width:var(--width)}.vic-legend-color-scale.vic-horizontal .vic-legend-canvas-container{display:flex;flex-direction:column;width:calc(var(--width) - var(--value-space) * 2);height:var(--height);margin-right:var(--value-space);margin-left:var(--value-space)}.vic-legend-color-scale.vic-horizontal .vic-legend-values-container{padding-top:.25rem;display:flex;flex-direction:row;justify-content:space-between}.vic-legend-color-scale.vic-horizontal .vic-value{width:calc(var(--value-space) * 2);text-align:center}.vic-legend-color-scale.vic-horizontal.vic-top .vic-legend-values-container{padding-top:0;padding-bottom:.25rem}.vic-legend-color-scale.vic-vertical{display:flex;max-height:var(--height)}.vic-legend-color-scale.vic-vertical .vic-legend-canvas-container{width:var(--width);height:calc(var(--height) - grid-2 * 2);margin-top:.5rem;margin-bottom:.5rem}.vic-legend-color-scale.vic-vertical .vic-legend-values-container{padding-right:.25rem;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.vic-legend-color-scale.vic-vertical.vic-right .vic-legend-values-container{padding-right:0;padding-left:.25rem;align-items:flex-start}.vic-legend-canvas-container{border:1px solid var(--border-color)}.vic-value{font-size:12px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
9469
9538
|
}
|
|
9470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ContinuousLegendComponent, decorators: [{
|
|
9471
9540
|
type: Component,
|
|
9472
|
-
args: [{ selector: 'vic-continuous-legend', imports: [CommonModule], template: "<div\n class=\"vic-legend-color-scale vic-continuous\"\n [ngClass]=\"['vic-' + orientation, 'vic-' + valuesSide]\"\n [style.--width]=\"width + 'px'\"\n [style.--height]=\"height + 'px'\"\n [style.--border-color]=\"outlineColor\"\n [style.--value-space]=\"largerValueSpace + 'px'\"\n [style.left.px]=\"leftOffset\"\n>\n
|
|
9541
|
+
args: [{ selector: 'vic-continuous-legend', imports: [CommonModule], template: "<div\n class=\"vic-legend-color-scale vic-continuous\"\n [ngClass]=\"['vic-' + orientation, 'vic-' + valuesSide]\"\n [style.--width]=\"width + 'px'\"\n [style.--height]=\"height + 'px'\"\n [style.--border-color]=\"outlineColor\"\n [style.--value-space]=\"largerValueSpace + 'px'\"\n [style.left.px]=\"leftOffset\"\n>\n <ng-container\n *ngIf=\"\n (orientation === 'vertical' && valuesSide === 'left') ||\n (orientation === 'horizontal' && valuesSide === 'top')\n \"\n >\n <ng-container *ngTemplateOutlet=\"valuesDisplay\"></ng-container>\n </ng-container>\n <div class=\"vic-legend-canvas-container\">\n <canvas class=\"vic-legend-canvas\" #canvas></canvas>\n </div>\n <ng-container\n *ngIf=\"\n (orientation === 'vertical' && valuesSide === 'right') ||\n (orientation === 'horizontal' && valuesSide === 'bottom')\n \"\n >\n <ng-container *ngTemplateOutlet=\"valuesDisplay\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #valuesDisplay>\n <div class=\"vic-legend-values-container vic-continuous\">\n <p class=\"vic-value vic-low\">{{ values[0] }}</p>\n <p class=\"vic-value vic-high\">{{ values[values.length - 1] }}</p>\n </div>\n</ng-template>\n", styles: [".vic-legend-canvas{display:block}.vic-legend-color-scale.vic-horizontal{display:flex;flex-direction:column;position:relative;max-width:var(--width)}.vic-legend-color-scale.vic-horizontal .vic-legend-canvas-container{display:flex;flex-direction:column;width:calc(var(--width) - var(--value-space) * 2);height:var(--height);margin-right:var(--value-space);margin-left:var(--value-space)}.vic-legend-color-scale.vic-horizontal .vic-legend-values-container{padding-top:.25rem;display:flex;flex-direction:row;justify-content:space-between}.vic-legend-color-scale.vic-horizontal .vic-value{width:calc(var(--value-space) * 2);text-align:center}.vic-legend-color-scale.vic-horizontal.vic-top .vic-legend-values-container{padding-top:0;padding-bottom:.25rem}.vic-legend-color-scale.vic-vertical{display:flex;max-height:var(--height)}.vic-legend-color-scale.vic-vertical .vic-legend-canvas-container{width:var(--width);height:calc(var(--height) - grid-2 * 2);margin-top:.5rem;margin-bottom:.5rem}.vic-legend-color-scale.vic-vertical .vic-legend-values-container{padding-right:.25rem;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.vic-legend-color-scale.vic-vertical.vic-right .vic-legend-values-container{padding-right:0;padding-left:.25rem;align-items:flex-start}.vic-legend-canvas-container{border:1px solid var(--border-color)}.vic-value{font-size:12px}\n"] }]
|
|
9473
9542
|
}], propDecorators: { canvasRef: [{
|
|
9474
9543
|
type: ViewChild,
|
|
9475
9544
|
args: ['canvas', { static: true }]
|
|
@@ -9507,12 +9576,12 @@ class DiscontinuousLegendComponent extends MapLegend {
|
|
|
9507
9576
|
return 0;
|
|
9508
9577
|
}
|
|
9509
9578
|
}
|
|
9510
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9511
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
9579
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DiscontinuousLegendComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9580
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: DiscontinuousLegendComponent, isStandalone: true, selector: "vic-discontinuous-legend", usesInheritance: true, ngImport: i0, template: "<div\n class=\"vic-legend-color-scale vic-discontinuous\"\n [ngClass]=\"['vic-' + orientation, 'vic-' + valuesSide]\"\n [class.vic-categorical]=\"config.binType === VicValuesBin.categorical\"\n [style.--border-color]=\"outlineColor\"\n [style.--width]=\"width + 'px'\"\n [style.--height]=\"height + 'px'\"\n [style.--num-colors]=\"colors.length\"\n [style.--value-space]=\"largerValueSpace + 'px'\"\n [style.left.px]=\"leftOffset\"\n>\n <ng-container\n *ngIf=\"\n (orientation === 'vertical' && valuesSide === 'left') ||\n (orientation === 'horizontal' && valuesSide === 'top')\n \"\n >\n <ng-container *ngTemplateOutlet=\"valuesDisplay\"></ng-container>\n </ng-container>\n <div class=\"vic-legend-colors-container\">\n <div\n class=\"vic-legend-color-padding\"\n *ngIf=\"config.binType !== VicValuesBin.categorical\"\n ></div>\n <div\n *ngFor=\"let color of colors\"\n class=\"vic-legend-color vic-discontinuous\"\n [style.background-color]=\"color\"\n [style.--border-color]=\"outlineColor\"\n >\n </div>\n </div>\n <ng-container\n *ngIf=\"\n (orientation === 'vertical' && valuesSide === 'right') ||\n (orientation === 'horizontal' && valuesSide === 'bottom')\n \"\n >\n <ng-container *ngTemplateOutlet=\"valuesDisplay\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #valuesDisplay>\n <div class=\"vic-legend-values-container vic-discontinous\">\n <p class=\"vic-value\" *ngFor=\"let value of values; let i = index\">\n {{ value }}\n </p>\n </div>\n</ng-template>\n", styles: [".vic-legend-color-scale.vic-horizontal{display:flex;flex-direction:column;position:relative}.vic-legend-color-scale.vic-horizontal .vic-legend-colors-container{display:grid;grid-template-columns:minmax(var(--value-space),.5fr) repeat(var(--num-colors),minmax(calc(var(--value-space) * 2),1fr)) minmax(var(--value-space),.5fr);max-width:var(--width);height:var(--height)}.vic-legend-color-scale.vic-horizontal .vic-legend-colors-container .vic-legend-color{height:100%;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);border-left:1px solid var(--border-color)}.vic-legend-color-scale.vic-horizontal .vic-legend-colors-container .vic-legend-color:last-child{border-right:1px solid var(--border-color)}.vic-legend-color-scale.vic-horizontal .vic-legend-values-container{padding-top:.25rem;display:grid;grid-template-columns:repeat(calc(var(--num-colors) + 1),minmax(calc(var(--value-space) * 2),1fr));max-width:var(--width);justify-items:center}.vic-legend-color-scale.vic-horizontal.vic-top .vic-legend-values-container{padding-top:0;padding-bottom:.25rem}.vic-legend-color-scale.vic-horizontal.vic-categorical .vic-legend-colors-container,.vic-legend-color-scale.vic-horizontal.vic-categorical .vic-legend-values-container{column-gap:.5rem;grid-template-columns:repeat(calc(var(--num-colors)),1fr)}.vic-legend-color-scale.vic-horizontal.vic-categorical .vic-value{text-align:center}.vic-legend-color-scale.vic-categorical .vic-legend-color{border:1px solid var(--border-color)}.vic-legend-color-scale.vic-vertical{display:flex;height:var(--height)}.vic-legend-color-scale.vic-vertical .vic-legend-colors-container{display:grid;grid-template-columns:var(--width);grid-template-rows:.5fr repeat(var(--num-colors),1fr) .5fr;height:100%}.vic-legend-color-scale.vic-vertical .vic-legend-colors-container .vic-legend-color{width:100%;border-top:1px solid var(--border-color);border-left:1px solid var(--border-color);border-right:1px solid var(--border-color)}.vic-legend-color-scale.vic-vertical .vic-legend-colors-container .vic-legend-color:last-child{border-bottom:1px solid var(--border-color)}.vic-legend-color-scale.vic-vertical .vic-legend-values-container{padding-right:.25rem;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(calc(var(--num-colors) + 1),1fr);align-items:center;justify-items:end;height:100%}.vic-legend-color-scale.vic-vertical.vic-right .vic-legend-values-container{padding-right:0;padding-left:.25rem;justify-items:start}.vic-legend-color-scale.vic-vertical.vic-categorical .vic-legend-colors-container,.vic-legend-color-scale.vic-vertical.vic-categorical .vic-legend-values-container{grid-template-rows:repeat(var(--num-colors),1fr);row-gap:.5rem}.vic-legend-color-scale.vic-vertical.vic-categorical .vic-value{text-align:right}.vic-legend-color-scale.vic-vertical.vic-categorical.vic-right .vic-value{text-align:left}.vic-value{font-size:12px;line-height:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
9512
9581
|
}
|
|
9513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DiscontinuousLegendComponent, decorators: [{
|
|
9514
9583
|
type: Component,
|
|
9515
|
-
args: [{ selector: 'vic-discontinuous-legend', imports: [CommonModule], template: "<div\n class=\"vic-legend-color-scale vic-discontinuous\"\n [ngClass]=\"['vic-' + orientation, 'vic-' + valuesSide]\"\n [class.vic-categorical]=\"config.binType === VicValuesBin.categorical\"\n [style.--border-color]=\"outlineColor\"\n [style.--width]=\"width + 'px'\"\n [style.--height]=\"height + 'px'\"\n [style.--num-colors]=\"colors.length\"\n [style.--value-space]=\"largerValueSpace + 'px'\"\n [style.left.px]=\"leftOffset\"\n>\n
|
|
9584
|
+
args: [{ selector: 'vic-discontinuous-legend', imports: [CommonModule], template: "<div\n class=\"vic-legend-color-scale vic-discontinuous\"\n [ngClass]=\"['vic-' + orientation, 'vic-' + valuesSide]\"\n [class.vic-categorical]=\"config.binType === VicValuesBin.categorical\"\n [style.--border-color]=\"outlineColor\"\n [style.--width]=\"width + 'px'\"\n [style.--height]=\"height + 'px'\"\n [style.--num-colors]=\"colors.length\"\n [style.--value-space]=\"largerValueSpace + 'px'\"\n [style.left.px]=\"leftOffset\"\n>\n <ng-container\n *ngIf=\"\n (orientation === 'vertical' && valuesSide === 'left') ||\n (orientation === 'horizontal' && valuesSide === 'top')\n \"\n >\n <ng-container *ngTemplateOutlet=\"valuesDisplay\"></ng-container>\n </ng-container>\n <div class=\"vic-legend-colors-container\">\n <div\n class=\"vic-legend-color-padding\"\n *ngIf=\"config.binType !== VicValuesBin.categorical\"\n ></div>\n <div\n *ngFor=\"let color of colors\"\n class=\"vic-legend-color vic-discontinuous\"\n [style.background-color]=\"color\"\n [style.--border-color]=\"outlineColor\"\n >\n </div>\n </div>\n <ng-container\n *ngIf=\"\n (orientation === 'vertical' && valuesSide === 'right') ||\n (orientation === 'horizontal' && valuesSide === 'bottom')\n \"\n >\n <ng-container *ngTemplateOutlet=\"valuesDisplay\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #valuesDisplay>\n <div class=\"vic-legend-values-container vic-discontinous\">\n <p class=\"vic-value\" *ngFor=\"let value of values; let i = index\">\n {{ value }}\n </p>\n </div>\n</ng-template>\n", styles: [".vic-legend-color-scale.vic-horizontal{display:flex;flex-direction:column;position:relative}.vic-legend-color-scale.vic-horizontal .vic-legend-colors-container{display:grid;grid-template-columns:minmax(var(--value-space),.5fr) repeat(var(--num-colors),minmax(calc(var(--value-space) * 2),1fr)) minmax(var(--value-space),.5fr);max-width:var(--width);height:var(--height)}.vic-legend-color-scale.vic-horizontal .vic-legend-colors-container .vic-legend-color{height:100%;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);border-left:1px solid var(--border-color)}.vic-legend-color-scale.vic-horizontal .vic-legend-colors-container .vic-legend-color:last-child{border-right:1px solid var(--border-color)}.vic-legend-color-scale.vic-horizontal .vic-legend-values-container{padding-top:.25rem;display:grid;grid-template-columns:repeat(calc(var(--num-colors) + 1),minmax(calc(var(--value-space) * 2),1fr));max-width:var(--width);justify-items:center}.vic-legend-color-scale.vic-horizontal.vic-top .vic-legend-values-container{padding-top:0;padding-bottom:.25rem}.vic-legend-color-scale.vic-horizontal.vic-categorical .vic-legend-colors-container,.vic-legend-color-scale.vic-horizontal.vic-categorical .vic-legend-values-container{column-gap:.5rem;grid-template-columns:repeat(calc(var(--num-colors)),1fr)}.vic-legend-color-scale.vic-horizontal.vic-categorical .vic-value{text-align:center}.vic-legend-color-scale.vic-categorical .vic-legend-color{border:1px solid var(--border-color)}.vic-legend-color-scale.vic-vertical{display:flex;height:var(--height)}.vic-legend-color-scale.vic-vertical .vic-legend-colors-container{display:grid;grid-template-columns:var(--width);grid-template-rows:.5fr repeat(var(--num-colors),1fr) .5fr;height:100%}.vic-legend-color-scale.vic-vertical .vic-legend-colors-container .vic-legend-color{width:100%;border-top:1px solid var(--border-color);border-left:1px solid var(--border-color);border-right:1px solid var(--border-color)}.vic-legend-color-scale.vic-vertical .vic-legend-colors-container .vic-legend-color:last-child{border-bottom:1px solid var(--border-color)}.vic-legend-color-scale.vic-vertical .vic-legend-values-container{padding-right:.25rem;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(calc(var(--num-colors) + 1),1fr);align-items:center;justify-items:end;height:100%}.vic-legend-color-scale.vic-vertical.vic-right .vic-legend-values-container{padding-right:0;padding-left:.25rem;justify-items:start}.vic-legend-color-scale.vic-vertical.vic-categorical .vic-legend-colors-container,.vic-legend-color-scale.vic-vertical.vic-categorical .vic-legend-values-container{grid-template-rows:repeat(var(--num-colors),1fr);row-gap:.5rem}.vic-legend-color-scale.vic-vertical.vic-categorical .vic-value{text-align:right}.vic-legend-color-scale.vic-vertical.vic-categorical.vic-right .vic-value{text-align:left}.vic-value{font-size:12px;line-height:1}\n"] }]
|
|
9516
9585
|
}] });
|
|
9517
9586
|
|
|
9518
9587
|
var VicLegendType;
|
|
@@ -9555,16 +9624,16 @@ class MapLegendComponent {
|
|
|
9555
9624
|
}
|
|
9556
9625
|
}
|
|
9557
9626
|
}
|
|
9558
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9559
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9627
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapLegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9628
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: MapLegendComponent, isStandalone: true, selector: "vic-map-legend", inputs: { width: "width", height: "height", valuesSide: "valuesSide", outlineColor: "outlineColor" }, viewQueries: [{ propertyName: "VicValuesBin", first: true, predicate: ["canvas"], descendants: true, static: true }], ngImport: i0, template: "<ng-content select=\"[title]\"></ng-content>\n@if (chart.attributeProperties$ | async; as attributeProperties) { @if\n(attributeProperties.config) {\n<vic-continuous-legend\n *ngIf=\"attributeProperties.config.binType === VicValuesBin.none\"\n [width]=\"width\"\n [height]=\"height\"\n [valuesSide]=\"valuesSide\"\n [scale]=\"attributeProperties.scale\"\n [config]=\"attributeProperties.config\"\n [outlineColor]=\"outlineColor\"\n [orientation]=\"orientation\"\n></vic-continuous-legend>\n<vic-discontinuous-legend\n *ngIf=\"attributeProperties.config.binType !== VicValuesBin.none\"\n [width]=\"width\"\n [height]=\"height\"\n [valuesSide]=\"valuesSide\"\n [scale]=\"attributeProperties.scale\"\n [config]=\"attributeProperties.config\"\n [outlineColor]=\"outlineColor\"\n [orientation]=\"orientation\"\n></vic-discontinuous-legend>\n} }\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "component", type: ContinuousLegendComponent, selector: "vic-continuous-legend" }, { kind: "component", type: DiscontinuousLegendComponent, selector: "vic-discontinuous-legend" }] }); }
|
|
9560
9629
|
}
|
|
9561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapLegendComponent, decorators: [{
|
|
9562
9631
|
type: Component,
|
|
9563
9632
|
args: [{ selector: 'vic-map-legend', imports: [
|
|
9564
9633
|
CommonModule,
|
|
9565
9634
|
ContinuousLegendComponent,
|
|
9566
9635
|
DiscontinuousLegendComponent,
|
|
9567
|
-
], template: "<ng-content select=\"[title]\"></ng-content>\n@if (chart.attributeProperties$ | async; as attributeProperties) { @if\n(attributeProperties.config) {
|
|
9636
|
+
], template: "<ng-content select=\"[title]\"></ng-content>\n@if (chart.attributeProperties$ | async; as attributeProperties) { @if\n(attributeProperties.config) {\n<vic-continuous-legend\n *ngIf=\"attributeProperties.config.binType === VicValuesBin.none\"\n [width]=\"width\"\n [height]=\"height\"\n [valuesSide]=\"valuesSide\"\n [scale]=\"attributeProperties.scale\"\n [config]=\"attributeProperties.config\"\n [outlineColor]=\"outlineColor\"\n [orientation]=\"orientation\"\n></vic-continuous-legend>\n<vic-discontinuous-legend\n *ngIf=\"attributeProperties.config.binType !== VicValuesBin.none\"\n [width]=\"width\"\n [height]=\"height\"\n [valuesSide]=\"valuesSide\"\n [scale]=\"attributeProperties.scale\"\n [config]=\"attributeProperties.config\"\n [outlineColor]=\"outlineColor\"\n [orientation]=\"orientation\"\n></vic-discontinuous-legend>\n} }\n" }]
|
|
9568
9637
|
}], propDecorators: { width: [{
|
|
9569
9638
|
type: Input
|
|
9570
9639
|
}], height: [{
|
|
@@ -9579,11 +9648,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
9579
9648
|
}] } });
|
|
9580
9649
|
|
|
9581
9650
|
class VicMapLegendModule {
|
|
9582
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9583
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9584
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicMapLegendModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9652
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicMapLegendModule, imports: [MapLegendComponent], exports: [MapLegendComponent] }); }
|
|
9653
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicMapLegendModule, imports: [MapLegendComponent] }); }
|
|
9585
9654
|
}
|
|
9586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicMapLegendModule, decorators: [{
|
|
9587
9656
|
type: NgModule,
|
|
9588
9657
|
args: [{
|
|
9589
9658
|
imports: [MapLegendComponent],
|
|
@@ -9813,10 +9882,10 @@ class VicQuantitativeRulesConfigBuilder extends VicAuxMarksBuilder {
|
|
|
9813
9882
|
this.labelsBuilder.validateBuilder(this._orientation, this._color);
|
|
9814
9883
|
}
|
|
9815
9884
|
}
|
|
9816
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9817
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
9885
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9886
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesConfigBuilder }); }
|
|
9818
9887
|
}
|
|
9819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesConfigBuilder, decorators: [{
|
|
9820
9889
|
type: Injectable
|
|
9821
9890
|
}], ctorParameters: () => [] });
|
|
9822
9891
|
|
|
@@ -9981,10 +10050,10 @@ class QuantitativeRulesComponent extends XyAuxMarks {
|
|
|
9981
10050
|
}
|
|
9982
10051
|
return this.scales.y.range()[1];
|
|
9983
10052
|
}
|
|
9984
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9985
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10053
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: QuantitativeRulesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10054
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: QuantitativeRulesComponent, isStandalone: true, selector: "[vic-quantitative-rules]", host: { properties: { "class": "config.marksClass" } }, providers: [{ provide: ChartComponent, useExisting: XyChartComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9986
10055
|
}
|
|
9987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: QuantitativeRulesComponent, decorators: [{
|
|
9988
10057
|
type: Component,
|
|
9989
10058
|
args: [{ selector: '[vic-quantitative-rules]', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: ChartComponent, useExisting: XyChartComponent }], host: {
|
|
9990
10059
|
'[class]': 'config.marksClass',
|
|
@@ -9992,11 +10061,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
9992
10061
|
}] });
|
|
9993
10062
|
|
|
9994
10063
|
class VicQuantitativeRulesModule {
|
|
9995
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9996
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9997
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
10064
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
10065
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesModule, imports: [QuantitativeRulesComponent], exports: [QuantitativeRulesComponent] }); }
|
|
10066
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesModule }); }
|
|
9998
10067
|
}
|
|
9999
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesModule, decorators: [{
|
|
10000
10069
|
type: NgModule,
|
|
10001
10070
|
args: [{
|
|
10002
10071
|
imports: [QuantitativeRulesComponent],
|
|
@@ -10166,10 +10235,10 @@ class VicStackedAreaConfigBuilder extends PrimaryMarksBuilder {
|
|
|
10166
10235
|
throw new Error('Stacked Area Builder: Y dimension must be created. Please use method `y` to set the y dimension.');
|
|
10167
10236
|
}
|
|
10168
10237
|
}
|
|
10169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10170
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10238
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10239
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaConfigBuilder }); }
|
|
10171
10240
|
}
|
|
10172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaConfigBuilder, decorators: [{
|
|
10173
10242
|
type: Injectable
|
|
10174
10243
|
}], ctorParameters: () => [] });
|
|
10175
10244
|
|
|
@@ -10303,14 +10372,14 @@ class StackedAreaComponent extends VicXyPrimaryMarks {
|
|
|
10303
10372
|
updateStackedAreaElements() {
|
|
10304
10373
|
this.stackedAreas.next(this.areas);
|
|
10305
10374
|
}
|
|
10306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10307
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10375
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10376
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: StackedAreaComponent, isStandalone: true, selector: "[vic-primary-marks-stacked-area]", host: { properties: { "class": "config.marksClass" } }, providers: [
|
|
10308
10377
|
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedAreaComponent },
|
|
10309
10378
|
{ provide: STACKED_AREA, useExisting: StackedAreaComponent },
|
|
10310
10379
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
10311
10380
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10312
10381
|
}
|
|
10313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedAreaComponent, decorators: [{
|
|
10314
10383
|
type: Component,
|
|
10315
10384
|
args: [{ selector: '[vic-primary-marks-stacked-area]', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
10316
10385
|
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedAreaComponent },
|
|
@@ -10340,10 +10409,10 @@ class StackedAreaTooltipPositioner extends TooltipPositioner {
|
|
|
10340
10409
|
}
|
|
10341
10410
|
|
|
10342
10411
|
class StackedAreaEventsDirective extends EventsDirective {
|
|
10343
|
-
constructor() {
|
|
10344
|
-
super(
|
|
10412
|
+
constructor(stackedArea) {
|
|
10413
|
+
super();
|
|
10414
|
+
this.stackedArea = stackedArea;
|
|
10345
10415
|
this.interactionOutput = new EventEmitter();
|
|
10346
|
-
this.stackedArea = inject(STACKED_AREA);
|
|
10347
10416
|
}
|
|
10348
10417
|
get marks() {
|
|
10349
10418
|
return this.stackedArea;
|
|
@@ -10495,15 +10564,18 @@ class StackedAreaEventsDirective extends EventsDirective {
|
|
|
10495
10564
|
this.categoryYMax = undefined;
|
|
10496
10565
|
this.categoryIndex = undefined;
|
|
10497
10566
|
}
|
|
10498
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10499
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
10567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedAreaEventsDirective, deps: [{ token: STACKED_AREA }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10568
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: StackedAreaEventsDirective, isStandalone: true, selector: "[vicStackedAreaEvents]", inputs: { hoverMoveActions: "hoverMoveActions", clickActions: "clickActions", inputEventActions: "inputEventActions" }, outputs: { interactionOutput: "interactionOutput" }, usesInheritance: true, ngImport: i0 }); }
|
|
10500
10569
|
}
|
|
10501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedAreaEventsDirective, decorators: [{
|
|
10502
10571
|
type: Directive,
|
|
10503
10572
|
args: [{
|
|
10504
10573
|
selector: '[vicStackedAreaEvents]',
|
|
10505
10574
|
}]
|
|
10506
|
-
}],
|
|
10575
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
10576
|
+
type: Inject,
|
|
10577
|
+
args: [STACKED_AREA]
|
|
10578
|
+
}] }], propDecorators: { hoverMoveActions: [{
|
|
10507
10579
|
type: Input
|
|
10508
10580
|
}], clickActions: [{
|
|
10509
10581
|
type: Input
|
|
@@ -10514,11 +10586,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10514
10586
|
}] } });
|
|
10515
10587
|
|
|
10516
10588
|
class VicStackedAreaModule {
|
|
10517
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10518
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
10519
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
10589
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
10590
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaModule, imports: [StackedAreaComponent, StackedAreaEventsDirective], exports: [StackedAreaComponent, StackedAreaEventsDirective] }); }
|
|
10591
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaModule }); }
|
|
10520
10592
|
}
|
|
10521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaModule, decorators: [{
|
|
10522
10594
|
type: NgModule,
|
|
10523
10595
|
args: [{
|
|
10524
10596
|
imports: [StackedAreaComponent, StackedAreaEventsDirective],
|
|
@@ -10619,10 +10691,10 @@ class VicStackedBarsConfigBuilder extends VicBarsConfigBuilder {
|
|
|
10619
10691
|
stackOrder: this._stackOrder,
|
|
10620
10692
|
});
|
|
10621
10693
|
}
|
|
10622
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10623
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10694
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10695
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsConfigBuilder }); }
|
|
10624
10696
|
}
|
|
10625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsConfigBuilder, decorators: [{
|
|
10626
10698
|
type: Injectable
|
|
10627
10699
|
}], ctorParameters: () => [] });
|
|
10628
10700
|
|
|
@@ -10740,14 +10812,14 @@ class StackedBarsComponent extends BarsComponent {
|
|
|
10740
10812
|
getSourceDatumFromStackedBarDatum(datum) {
|
|
10741
10813
|
return this.config.data[datum.i];
|
|
10742
10814
|
}
|
|
10743
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10744
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10815
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedBarsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10816
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: StackedBarsComponent, isStandalone: true, selector: "[vic-primary-marks-stacked-bars]", inputs: { config: "config" }, host: { properties: { "class": "config.marksClass", "style.mixBlendMode": "config.mixBlendMode" } }, providers: [
|
|
10745
10817
|
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedBarsComponent },
|
|
10746
10818
|
{ provide: STACKED_BARS, useExisting: StackedBarsComponent },
|
|
10747
10819
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
10748
10820
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
10749
10821
|
}
|
|
10750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedBarsComponent, decorators: [{
|
|
10751
10823
|
type: Component,
|
|
10752
10824
|
args: [{ selector: '[vic-primary-marks-stacked-bars]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
10753
10825
|
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedBarsComponent },
|
|
@@ -10762,11 +10834,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10762
10834
|
}] } });
|
|
10763
10835
|
|
|
10764
10836
|
class StackedBarsEventsDirective extends EventsDirective {
|
|
10765
|
-
constructor() {
|
|
10766
|
-
super(
|
|
10837
|
+
constructor(stackedBars) {
|
|
10838
|
+
super();
|
|
10839
|
+
this.stackedBars = stackedBars;
|
|
10767
10840
|
this.interactionOutput = new EventEmitter();
|
|
10768
10841
|
this.stackDatum = null;
|
|
10769
|
-
this.stackedBars = inject(STACKED_BARS);
|
|
10770
10842
|
}
|
|
10771
10843
|
get marks() {
|
|
10772
10844
|
return this.stackedBars;
|
|
@@ -10910,15 +10982,18 @@ class StackedBarsEventsDirective extends EventsDirective {
|
|
|
10910
10982
|
this.positionX = undefined;
|
|
10911
10983
|
this.positionY = undefined;
|
|
10912
10984
|
}
|
|
10913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10914
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
10985
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedBarsEventsDirective, deps: [{ token: STACKED_BARS }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10986
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: StackedBarsEventsDirective, isStandalone: true, selector: "[vicStackedBarsEvents]", inputs: { hoverActions: "hoverActions", hoverMoveActions: "hoverMoveActions", clickActions: "clickActions", inputEventActions: "inputEventActions" }, outputs: { interactionOutput: "interactionOutput" }, usesInheritance: true, ngImport: i0 }); }
|
|
10915
10987
|
}
|
|
10916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedBarsEventsDirective, decorators: [{
|
|
10917
10989
|
type: Directive,
|
|
10918
10990
|
args: [{
|
|
10919
10991
|
selector: '[vicStackedBarsEvents]',
|
|
10920
10992
|
}]
|
|
10921
|
-
}],
|
|
10993
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
10994
|
+
type: Inject,
|
|
10995
|
+
args: [STACKED_BARS]
|
|
10996
|
+
}] }], propDecorators: { hoverActions: [{
|
|
10922
10997
|
type: Input
|
|
10923
10998
|
}], hoverMoveActions: [{
|
|
10924
10999
|
type: Input
|
|
@@ -10931,11 +11006,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10931
11006
|
}] } });
|
|
10932
11007
|
|
|
10933
11008
|
class VicStackedBarsModule {
|
|
10934
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10935
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
10936
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
11009
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11010
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsModule, imports: [StackedBarsComponent, StackedBarsEventsDirective], exports: [StackedBarsComponent, StackedBarsEventsDirective] }); }
|
|
11011
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsModule }); }
|
|
10937
11012
|
}
|
|
10938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsModule, decorators: [{
|
|
10939
11014
|
type: NgModule,
|
|
10940
11015
|
args: [{
|
|
10941
11016
|
imports: [StackedBarsComponent, StackedBarsEventsDirective],
|
|
@@ -10944,28 +11019,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10944
11019
|
}] });
|
|
10945
11020
|
|
|
10946
11021
|
class XyBackgroundComponent {
|
|
10947
|
-
constructor() {
|
|
11022
|
+
constructor(chart) {
|
|
11023
|
+
this.chart = chart;
|
|
10948
11024
|
this.color = 'whitesmoke';
|
|
10949
|
-
this.chart = inject(XyChartComponent);
|
|
10950
11025
|
}
|
|
10951
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10952
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
11026
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyBackgroundComponent, deps: [{ token: XyChartComponent }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11027
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.2", type: XyBackgroundComponent, isStandalone: true, selector: "[vic-xy-background]", inputs: { color: "color" }, host: { classAttribute: "vic-xy-background" }, ngImport: i0, template: "@if(chart.scales$ | async; as scales) { @if(scales.x && scales.y) {\n<svg:rect\n class=\"vic-xy-background\"\n [attr.x]=\"scales.x.range()[0]\"\n [attr.y]=\"scales.y.range()[1]\"\n [attr.width]=\"scales.x.range()[1] - scales.x.range()[0]\"\n [attr.height]=\"scales.y.range()[0] - scales.y.range()[1]\"\n [attr.fill]=\"color\"\n></svg:rect>\n} }\n", styles: [""], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: CommonModule }] }); }
|
|
10953
11028
|
}
|
|
10954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyBackgroundComponent, decorators: [{
|
|
10955
11030
|
type: Component,
|
|
10956
11031
|
args: [{ selector: '[vic-xy-background]', host: {
|
|
10957
11032
|
class: 'vic-xy-background',
|
|
10958
11033
|
}, imports: [AsyncPipe, CommonModule], template: "@if(chart.scales$ | async; as scales) { @if(scales.x && scales.y) {\n<svg:rect\n class=\"vic-xy-background\"\n [attr.x]=\"scales.x.range()[0]\"\n [attr.y]=\"scales.y.range()[1]\"\n [attr.width]=\"scales.x.range()[1] - scales.x.range()[0]\"\n [attr.height]=\"scales.y.range()[0] - scales.y.range()[1]\"\n [attr.fill]=\"color\"\n></svg:rect>\n} }\n" }]
|
|
10959
|
-
}], propDecorators: { color: [{
|
|
11034
|
+
}], ctorParameters: () => [{ type: XyChartComponent }], propDecorators: { color: [{
|
|
10960
11035
|
type: Input
|
|
10961
11036
|
}] } });
|
|
10962
11037
|
|
|
10963
11038
|
class VicXyBackgroundModule {
|
|
10964
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10965
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
10966
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
11039
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyBackgroundModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11040
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicXyBackgroundModule, imports: [XyBackgroundComponent], exports: [XyBackgroundComponent] }); }
|
|
11041
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyBackgroundModule, imports: [XyBackgroundComponent] }); }
|
|
10967
11042
|
}
|
|
10968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyBackgroundModule, decorators: [{
|
|
10969
11044
|
type: NgModule,
|
|
10970
11045
|
args: [{
|
|
10971
11046
|
imports: [XyBackgroundComponent],
|
|
@@ -10981,5 +11056,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10981
11056
|
* Generated bundle index. Do not edit.
|
|
10982
11057
|
*/
|
|
10983
11058
|
|
|
10984
|
-
export { AuxMarks, AuxMarksConfig, BARS, BarsClickEmitTooltipDataPauseOtherActions, BarsComponent, BarsConfig, BarsEventsDirective, BarsHoverEmitTooltipData, BarsHoverMoveEmitTooltipData, BarsHoverShowLabels, BarsLabels, BinStrategy, CHART, CHART_SIZE, CategoricalBinsAttributeDataDimension, Chart, ChartComponent, ChartConfig, ColorUtilities, CustomBreaksBinsAttributeDataDimension, DEFAULT_TOOLTIP_Y_OFFSET, DOTS, DataMarksConfig,
|
|
11059
|
+
export { AuxMarks, AuxMarksConfig, BARS, BarsClickEmitTooltipDataPauseOtherActions, BarsComponent, BarsConfig, BarsEventsDirective, BarsHoverEmitTooltipData, BarsHoverMoveEmitTooltipData, BarsHoverShowLabels, BarsLabels, BinStrategy, CHART, CHART_SIZE, CategoricalBinsAttributeDataDimension, Chart, ChartComponent, ChartConfig, ColorUtilities, CustomBreaksBinsAttributeDataDimension, DEFAULT_TOOLTIP_Y_OFFSET, DOTS, DataMarksConfig, DotsComponent, DotsConfig, DotsEventsDirective, DotsHoverDefaultStyles, DotsHoverMoveDefaultStyles, DotsHoverMoveEmitTooltipData, EqualFrequenciesAttributeDataDimension, EqualValueRangesAttributeDataDimension, EventType, EventsDirective, GEOGRAPHIES, GeographiesAttributeDataLayer, GeographiesAttributeDataLayerBuilder, GeographiesClickEmitTooltipDataPauseOtherActions, GeographiesComponent, GeographiesConfig, GeographiesEventsDirective, GeographiesGeojsonPropertiesLayer, GeographiesGeojsonPropertiesLayerBuilder, GeographiesHoverEmitTooltipData, GeographiesHoverMoveEmitTooltipData, GeographiesLabels, GeographiesLabelsBuilder, GroupedBarsComponent, GroupedBarsConfig, GroupedBarsEventsDirective, HorizontalBarsDimensionsBuilder, HtmlTooltipCdkManagedPosition, HtmlTooltipConfig, HtmlTooltipDirective, HtmlTooltipSize, HtmlTooltipSizeBuilder, LINES, LinesClickEmitTooltipDataPauseHoverMoveActions, LinesComponent, LinesConfig, LinesEventsDirective, LinesHoverMoveDefaultLinesStyles, LinesHoverMoveDefaultMarkersStyles, LinesHoverMoveDefaultStyles, LinesHoverMoveEmitTooltipData, LinesMarkerClickEmitTooltipData, LinesTooltipPositioner, MapChartComponent, MapLegendComponent, MapPrimaryMarks, MarksConfig, NoBinsAttributeDataDimension, Orientation, PointMarkers, PrimaryMarks, PrimaryMarksBuilder, PrimaryMarksConfig, QuantitativeRulesComponent, QuantitativeRulesConfig, QuantitativeRulesLabels, STACKED_AREA, STACKED_BARS, Side, StackedAreaComponent, StackedAreaConfig, StackedAreaEventsDirective, StackedAreaHoverMoveEmitTooltipData, StackedBarsClickEmitTooltipDataPauseOtherActions, StackedBarsComponent, StackedBarsConfig, StackedBarsEventsDirective, StackedBarsHoverEmitTooltipData, StackedBarsHoverMoveEmitTooltipData, Stroke, SvgTextWrap, TooltipPosition, TooltipPositionBuilder, TooltipPositioner, TooltipTriangleComponent, VIC_PRIMARY_MARKS, ValueExtent, VerticalBarsDimensionsBuilder, VicAuxMarksBuilder, VicBarsConfigBuilder, VicBarsModule, VicChartConfigBuilder, VicChartModule, VicColumnConfig, VicDataExport, VicDataExportConfig, VicDotsConfigBuilder, VicDotsModule, VicGeographiesConfigBuilder, VicGeographiesModule, VicGroupedBarsConfigBuilder, VicGroupedBarsModule, VicHtmlTooltipConfigBuilder, VicHtmlTooltipModule, VicImage, VicImageDownloadService, VicJpegImageConfig, VicLegendType, VicLinesConfigBuilder, VicLinesModule, VicMapAuxMarks, VicMapLegendModule, VicPngImageConfig, VicQuantitativeRulesConfigBuilder, VicQuantitativeRulesModule, VicStackedAreaConfigBuilder, VicStackedAreaModule, VicStackedBarsConfigBuilder, VicStackedBarsModule, VicSvgImageConfig, VicXOrdinalAxisConfig, VicXOrdinalAxisConfigBuilder, VicXQuantitativeAxisConfig, VicXQuantitativeAxisConfigBuilder, VicXyAxisModule, VicXyBackgroundModule, VicXyPrimaryMarks, VicYOrdinalAxisConfig, VicYOrdinalAxisConfigBuilder, VicYQuantitativeAxisConfig, VicYQuantitativeAxisConfigBuilder, XOrdinalAxisComponent, XQuantitativeAxisComponent, XyAuxMarks, XyBackgroundComponent, XyChartComponent, XyContentScale, XyMarksConfig, XyPrimaryMarksConfig, YOrdinalAxisComponent, YQuantitativeAxisComponent, valueFormat };
|
|
10985
11060
|
//# sourceMappingURL=mathstack-viz.mjs.map
|