@mathstack/viz 0.0.1-beta.6 → 0.0.1-beta.8
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 +457 -374
- 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 +50 -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 +44 -0
- package/lib/axes/quantitative/quantitative-axis-config.d.ts +38 -0
- package/lib/axes/quantitative/quantitative-axis.d.ts +52 -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 +48 -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 +90 -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 +54 -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 +54 -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 +91 -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 +55 -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
|
|
|
@@ -1816,11 +1827,28 @@ class XyAxis extends XyAuxMarks {
|
|
|
1816
1827
|
this.processDomain();
|
|
1817
1828
|
this.drawGrid();
|
|
1818
1829
|
});
|
|
1830
|
+
// Hide elements immediately based on config to prevent flash during transition
|
|
1831
|
+
this.hideElementsPerConfig();
|
|
1819
1832
|
this.processTickLabels();
|
|
1820
1833
|
if (this.config.label) {
|
|
1821
1834
|
this.createLabel();
|
|
1822
1835
|
}
|
|
1823
1836
|
}
|
|
1837
|
+
hideElementsPerConfig() {
|
|
1838
|
+
// Remove tick marks immediately if configured to be hidden
|
|
1839
|
+
if (this.config.ticks.marksDisplay === false) {
|
|
1840
|
+
this.axisGroup.selectAll('.tick line').interrupt().remove();
|
|
1841
|
+
}
|
|
1842
|
+
// Remove tick labels immediately if configured to be hidden
|
|
1843
|
+
if (this.config.ticks.labelsDisplay === false) {
|
|
1844
|
+
this.axisGroup.selectAll('.tick text').interrupt().remove();
|
|
1845
|
+
}
|
|
1846
|
+
// Remove baseline immediately if not displayed and no zero baseline exists
|
|
1847
|
+
const zeroAxisTranslate = this.getBaselineTranslate();
|
|
1848
|
+
if (!this.config.baseline.display && zeroAxisTranslate === null) {
|
|
1849
|
+
this.axisGroup.select('.domain').interrupt().remove();
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1824
1852
|
processTicks() {
|
|
1825
1853
|
const tickText = select(this.elRef.nativeElement).selectAll('.tick text');
|
|
1826
1854
|
if (this.config.ticks.class) {
|
|
@@ -1845,10 +1873,7 @@ class XyAxis extends XyAuxMarks {
|
|
|
1845
1873
|
if (this.config.ticks.wrap && this.config.ticks.wrap.width !== undefined) {
|
|
1846
1874
|
this.wrapAxisTickText(tickText);
|
|
1847
1875
|
}
|
|
1848
|
-
|
|
1849
|
-
const marks = select(this.elRef.nativeElement).selectAll(`.${this.class.axisGroup} .tick line`);
|
|
1850
|
-
marks.remove();
|
|
1851
|
-
}
|
|
1876
|
+
// Note: marksDisplay removal is now handled immediately in hideElementsPerConfig()
|
|
1852
1877
|
}
|
|
1853
1878
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1854
1879
|
setTickFontSize(tickTextSelection) {
|
|
@@ -1892,14 +1917,10 @@ class XyAxis extends XyAuxMarks {
|
|
|
1892
1917
|
.attr('transform', null)
|
|
1893
1918
|
.attr('stroke-dasharray', null));
|
|
1894
1919
|
}
|
|
1895
|
-
|
|
1896
|
-
this.axisGroup.call((g) => g.select('.domain').remove());
|
|
1897
|
-
}
|
|
1920
|
+
// Note: baseline removal is now handled immediately in hideElementsPerConfig()
|
|
1898
1921
|
}
|
|
1899
1922
|
processTickLabels() {
|
|
1900
|
-
|
|
1901
|
-
this.axisGroup.call((g) => g.selectAll('.tick text').remove());
|
|
1902
|
-
}
|
|
1923
|
+
// Note: labelsDisplay removal is now handled immediately in hideElementsPerConfig()
|
|
1903
1924
|
if (this.config.ticks.rotate) {
|
|
1904
1925
|
this.axisGroup.call((g) => g
|
|
1905
1926
|
.selectAll('.tick text')
|
|
@@ -1968,10 +1989,10 @@ class XyAxis extends XyAuxMarks {
|
|
|
1968
1989
|
: this.getTransitionDuration();
|
|
1969
1990
|
return selection.transition().duration(transitionDuration);
|
|
1970
1991
|
}
|
|
1971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1972
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1992
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyAxis, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1993
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: XyAxis, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
1973
1994
|
}
|
|
1974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyAxis, decorators: [{
|
|
1975
1996
|
type: Directive
|
|
1976
1997
|
}] });
|
|
1977
1998
|
|
|
@@ -1985,7 +2006,14 @@ function ordinalAxisMixin(Base) {
|
|
|
1985
2006
|
: formatter(tickFormat)(d);
|
|
1986
2007
|
});
|
|
1987
2008
|
}
|
|
2009
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2010
|
+
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
2011
|
}
|
|
2012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2013
|
+
type: Directive
|
|
2014
|
+
}], propDecorators: { config: [{
|
|
2015
|
+
type: Input
|
|
2016
|
+
}] } });
|
|
1989
2017
|
return Mixin;
|
|
1990
2018
|
}
|
|
1991
2019
|
|
|
@@ -2067,16 +2095,23 @@ function xAxisMixin(Base) {
|
|
|
2067
2095
|
label.attr('x', x);
|
|
2068
2096
|
}
|
|
2069
2097
|
}
|
|
2098
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2099
|
+
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
2100
|
}
|
|
2101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2102
|
+
type: Directive
|
|
2103
|
+
}], propDecorators: { config: [{
|
|
2104
|
+
type: Input
|
|
2105
|
+
}] } });
|
|
2071
2106
|
return Mixin;
|
|
2072
2107
|
}
|
|
2073
2108
|
|
|
2074
2109
|
const XOrdinalAxis = xAxisMixin(ordinalAxisMixin((XyAxis)));
|
|
2075
2110
|
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: "
|
|
2111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XOrdinalAxisComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2112
|
+
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
2113
|
}
|
|
2079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XOrdinalAxisComponent, decorators: [{
|
|
2080
2115
|
type: Component,
|
|
2081
2116
|
args: [{ selector: '[vic-x-ordinal-axis]', template: '', inputs: ['config'], encapsulation: ViewEncapsulation.None, host: {
|
|
2082
2117
|
'[class]': 'config.marksClass',
|
|
@@ -2095,7 +2130,12 @@ function mixinQuantitativeAxisConfig(Base) {
|
|
|
2095
2130
|
safeAssign(this, args[0]);
|
|
2096
2131
|
}
|
|
2097
2132
|
}
|
|
2133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2134
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
2098
2135
|
}
|
|
2136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2137
|
+
type: Directive
|
|
2138
|
+
}], ctorParameters: () => [{ type: undefined }] });
|
|
2099
2139
|
return Mixin;
|
|
2100
2140
|
}
|
|
2101
2141
|
class VicQuantitativeAxisConfig extends mixinQuantitativeAxisConfig(XyAxisConfig) {
|
|
@@ -2155,10 +2195,10 @@ class VicXQuantitativeAxisConfigBuilder extends XyAxisBaseBuilder {
|
|
|
2155
2195
|
ticks: this.ticksBuilder._build('x'),
|
|
2156
2196
|
});
|
|
2157
2197
|
}
|
|
2158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2159
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2198
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXQuantitativeAxisConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2199
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXQuantitativeAxisConfigBuilder }); }
|
|
2160
2200
|
}
|
|
2161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXQuantitativeAxisConfigBuilder, decorators: [{
|
|
2162
2202
|
type: Injectable
|
|
2163
2203
|
}], ctorParameters: () => [] });
|
|
2164
2204
|
|
|
@@ -2302,16 +2342,23 @@ function quantitativeAxisMixin(Base) {
|
|
|
2302
2342
|
// For composite formats or unrecognized formats, return null to use default logic
|
|
2303
2343
|
return null;
|
|
2304
2344
|
}
|
|
2345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2346
|
+
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
2347
|
}
|
|
2348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2349
|
+
type: Directive
|
|
2350
|
+
}], propDecorators: { config: [{
|
|
2351
|
+
type: Input
|
|
2352
|
+
}] } });
|
|
2306
2353
|
return Mixin;
|
|
2307
2354
|
}
|
|
2308
2355
|
|
|
2309
2356
|
const XQuantitativeAxis = xAxisMixin(quantitativeAxisMixin(XyAxis));
|
|
2310
2357
|
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: "
|
|
2358
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XQuantitativeAxisComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2359
|
+
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
2360
|
}
|
|
2314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XQuantitativeAxisComponent, decorators: [{
|
|
2315
2362
|
type: Component,
|
|
2316
2363
|
args: [{ selector: '[vic-x-quantitative-axis]', template: '', inputs: ['config'], encapsulation: ViewEncapsulation.None, host: {
|
|
2317
2364
|
'[class]': 'config.marksClass',
|
|
@@ -2449,16 +2496,23 @@ function yAxisMixin(Base) {
|
|
|
2449
2496
|
}
|
|
2450
2497
|
}
|
|
2451
2498
|
}
|
|
2499
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2500
|
+
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
2501
|
}
|
|
2502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2503
|
+
type: Directive
|
|
2504
|
+
}], propDecorators: { config: [{
|
|
2505
|
+
type: Input
|
|
2506
|
+
}] } });
|
|
2453
2507
|
return Mixin;
|
|
2454
2508
|
}
|
|
2455
2509
|
|
|
2456
2510
|
const YOrdinalAxis = yAxisMixin(ordinalAxisMixin((XyAxis)));
|
|
2457
2511
|
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: "
|
|
2512
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: YOrdinalAxisComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2513
|
+
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
2514
|
}
|
|
2461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: YOrdinalAxisComponent, decorators: [{
|
|
2462
2516
|
type: Component,
|
|
2463
2517
|
args: [{ selector: '[vic-y-ordinal-axis]', template: '', inputs: ['config'], encapsulation: ViewEncapsulation.None, host: {
|
|
2464
2518
|
'[class]': 'config.marksClass',
|
|
@@ -2470,10 +2524,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2470
2524
|
|
|
2471
2525
|
const YQuantitativeAxis = yAxisMixin(quantitativeAxisMixin(XyAxis));
|
|
2472
2526
|
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: "
|
|
2527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: YQuantitativeAxisComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2528
|
+
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
2529
|
}
|
|
2476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: YQuantitativeAxisComponent, decorators: [{
|
|
2477
2531
|
type: Component,
|
|
2478
2532
|
args: [{ selector: '[vic-y-quantitative-axis]', template: '', inputs: ['config'], encapsulation: ViewEncapsulation.None, host: {
|
|
2479
2533
|
'[class]': 'config.marksClass',
|
|
@@ -2484,17 +2538,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2484
2538
|
}] });
|
|
2485
2539
|
|
|
2486
2540
|
class VicXyAxisModule {
|
|
2487
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2488
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyAxisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2542
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicXyAxisModule, imports: [YQuantitativeAxisComponent,
|
|
2489
2543
|
YOrdinalAxisComponent,
|
|
2490
2544
|
XQuantitativeAxisComponent,
|
|
2491
2545
|
XOrdinalAxisComponent], exports: [YQuantitativeAxisComponent,
|
|
2492
2546
|
YOrdinalAxisComponent,
|
|
2493
2547
|
XQuantitativeAxisComponent,
|
|
2494
2548
|
XOrdinalAxisComponent] }); }
|
|
2495
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2549
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyAxisModule }); }
|
|
2496
2550
|
}
|
|
2497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyAxisModule, decorators: [{
|
|
2498
2552
|
type: NgModule,
|
|
2499
2553
|
args: [{
|
|
2500
2554
|
imports: [
|
|
@@ -2524,7 +2578,12 @@ function mixinYAxisConfig(Base) {
|
|
|
2524
2578
|
const d3SuggestedDefault = dimensions.height / spacing;
|
|
2525
2579
|
return this.getValidatedNumTicks(d3SuggestedDefault);
|
|
2526
2580
|
}
|
|
2581
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2582
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: Mixin, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
2527
2583
|
}
|
|
2584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: Mixin, decorators: [{
|
|
2585
|
+
type: Directive
|
|
2586
|
+
}], ctorParameters: () => [{ type: undefined }] });
|
|
2528
2587
|
return Mixin;
|
|
2529
2588
|
}
|
|
2530
2589
|
class YAxisConfig extends mixinYAxisConfig(XyAxisConfig) {
|
|
@@ -2587,10 +2646,10 @@ class VicYOrdinalAxisConfigBuilder extends XyAxisBaseBuilder {
|
|
|
2587
2646
|
ticks: this.ticksBuilder._build('y'),
|
|
2588
2647
|
});
|
|
2589
2648
|
}
|
|
2590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2591
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYOrdinalAxisConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2650
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYOrdinalAxisConfigBuilder }); }
|
|
2592
2651
|
}
|
|
2593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYOrdinalAxisConfigBuilder, decorators: [{
|
|
2594
2653
|
type: Injectable
|
|
2595
2654
|
}], ctorParameters: () => [] });
|
|
2596
2655
|
|
|
@@ -2649,10 +2708,10 @@ class VicYQuantitativeAxisConfigBuilder extends XyAxisBaseBuilder {
|
|
|
2649
2708
|
ticks: this.ticksBuilder._build('y'),
|
|
2650
2709
|
});
|
|
2651
2710
|
}
|
|
2652
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2653
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2711
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYQuantitativeAxisConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2712
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYQuantitativeAxisConfigBuilder }); }
|
|
2654
2713
|
}
|
|
2655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicYQuantitativeAxisConfigBuilder, decorators: [{
|
|
2656
2715
|
type: Injectable
|
|
2657
2716
|
}], ctorParameters: () => [] });
|
|
2658
2717
|
|
|
@@ -3325,14 +3384,14 @@ class BarsComponent extends VicXyPrimaryMarks {
|
|
|
3325
3384
|
this.config.quantitative.values[barDatum.index] ===
|
|
3326
3385
|
this.config.quantitative.valueAccessor(d));
|
|
3327
3386
|
}
|
|
3328
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3329
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3387
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BarsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3388
|
+
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
3389
|
{ provide: VIC_PRIMARY_MARKS, useExisting: BarsComponent },
|
|
3331
3390
|
{ provide: BARS, useExisting: BarsComponent },
|
|
3332
3391
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
3333
3392
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3334
3393
|
}
|
|
3335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BarsComponent, decorators: [{
|
|
3336
3395
|
type: Component,
|
|
3337
3396
|
args: [{ selector: '[vic-primary-marks-bars]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
3338
3397
|
{ provide: VIC_PRIMARY_MARKS, useExisting: BarsComponent },
|
|
@@ -3438,10 +3497,10 @@ class EventsDirective {
|
|
|
3438
3497
|
asHost() {
|
|
3439
3498
|
return this;
|
|
3440
3499
|
}
|
|
3441
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3442
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: EventsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3501
|
+
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
3502
|
}
|
|
3444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: EventsDirective, decorators: [{
|
|
3445
3504
|
type: Directive
|
|
3446
3505
|
}], propDecorators: { clickRemoveEvent$: [{
|
|
3447
3506
|
type: Input
|
|
@@ -3665,10 +3724,10 @@ class VicHtmlTooltipConfigBuilder {
|
|
|
3665
3724
|
}
|
|
3666
3725
|
return panelClasses;
|
|
3667
3726
|
}
|
|
3668
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3669
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3727
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3728
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipConfigBuilder }); }
|
|
3670
3729
|
}
|
|
3671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipConfigBuilder, decorators: [{
|
|
3672
3731
|
type: Injectable
|
|
3673
3732
|
}], ctorParameters: () => [] });
|
|
3674
3733
|
|
|
@@ -3830,7 +3889,11 @@ class TooltipPositionBuilder {
|
|
|
3830
3889
|
}
|
|
3831
3890
|
|
|
3832
3891
|
class HtmlTooltipDirective {
|
|
3833
|
-
constructor() {
|
|
3892
|
+
constructor(viewContainerRef, overlay, overlayPositionBuilder, document) {
|
|
3893
|
+
this.viewContainerRef = viewContainerRef;
|
|
3894
|
+
this.overlay = overlay;
|
|
3895
|
+
this.overlayPositionBuilder = overlayPositionBuilder;
|
|
3896
|
+
this.document = document;
|
|
3834
3897
|
this.backdropClick = new EventEmitter();
|
|
3835
3898
|
this.backdropUnsubscribe = new Subject();
|
|
3836
3899
|
this.portalAttached = false;
|
|
@@ -3839,10 +3902,6 @@ class HtmlTooltipDirective {
|
|
|
3839
3902
|
this.hide();
|
|
3840
3903
|
}
|
|
3841
3904
|
};
|
|
3842
|
-
this.viewContainerRef = inject(ViewContainerRef);
|
|
3843
|
-
this.overlay = inject(Overlay);
|
|
3844
|
-
this.overlayPositionBuilder = inject(OverlayPositionBuilder);
|
|
3845
|
-
this.document = inject(DOCUMENT);
|
|
3846
3905
|
}
|
|
3847
3906
|
init() {
|
|
3848
3907
|
if (!this.overlayRef) {
|
|
@@ -3978,16 +4037,19 @@ class HtmlTooltipDirective {
|
|
|
3978
4037
|
this.overlayRef.dispose();
|
|
3979
4038
|
}
|
|
3980
4039
|
}
|
|
3981
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3982
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4040
|
+
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 }); }
|
|
4041
|
+
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
4042
|
}
|
|
3984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: HtmlTooltipDirective, decorators: [{
|
|
3985
4044
|
type: Directive,
|
|
3986
4045
|
args: [{
|
|
3987
4046
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3988
4047
|
selector: 'vic-html-tooltip',
|
|
3989
4048
|
}]
|
|
3990
|
-
}],
|
|
4049
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i1$1.Overlay }, { type: i1$1.OverlayPositionBuilder }, { type: Document, decorators: [{
|
|
4050
|
+
type: Inject,
|
|
4051
|
+
args: [DOCUMENT]
|
|
4052
|
+
}] }], propDecorators: { template: [{
|
|
3991
4053
|
type: Input
|
|
3992
4054
|
}], config: [{
|
|
3993
4055
|
type: Input
|
|
@@ -4000,10 +4062,10 @@ class TooltipTriangleComponent {
|
|
|
4000
4062
|
this.height = 12;
|
|
4001
4063
|
this.width = 20;
|
|
4002
4064
|
}
|
|
4003
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4004
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TooltipTriangleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4066
|
+
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
4067
|
}
|
|
4006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: TooltipTriangleComponent, decorators: [{
|
|
4007
4069
|
type: Component,
|
|
4008
4070
|
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
4071
|
}], propDecorators: { height: [{
|
|
@@ -4013,15 +4075,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4013
4075
|
}] } });
|
|
4014
4076
|
|
|
4015
4077
|
class VicHtmlTooltipModule {
|
|
4016
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4017
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4078
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4079
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipModule, imports: [CommonModule,
|
|
4018
4080
|
OverlayModule,
|
|
4019
4081
|
HtmlTooltipDirective,
|
|
4020
4082
|
TooltipTriangleComponent], exports: [HtmlTooltipDirective, TooltipTriangleComponent] }); }
|
|
4021
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4083
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipModule, imports: [CommonModule,
|
|
4022
4084
|
OverlayModule] }); }
|
|
4023
4085
|
}
|
|
4024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicHtmlTooltipModule, decorators: [{
|
|
4025
4087
|
type: NgModule,
|
|
4026
4088
|
args: [{
|
|
4027
4089
|
imports: [
|
|
@@ -4051,10 +4113,10 @@ class BarsTooltipPositioner extends TooltipPositioner {
|
|
|
4051
4113
|
}
|
|
4052
4114
|
|
|
4053
4115
|
class BarsEventsDirective extends EventsDirective {
|
|
4054
|
-
constructor() {
|
|
4055
|
-
super(
|
|
4116
|
+
constructor(bars) {
|
|
4117
|
+
super();
|
|
4118
|
+
this.bars = bars;
|
|
4056
4119
|
this.interactionOutput = new EventEmitter();
|
|
4057
|
-
this.bars = inject(BARS);
|
|
4058
4120
|
}
|
|
4059
4121
|
get marks() {
|
|
4060
4122
|
return this.bars;
|
|
@@ -4191,15 +4253,18 @@ class BarsEventsDirective extends EventsDirective {
|
|
|
4191
4253
|
this.positionX = undefined;
|
|
4192
4254
|
this.positionY = undefined;
|
|
4193
4255
|
}
|
|
4194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4195
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4256
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BarsEventsDirective, deps: [{ token: BARS }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4257
|
+
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
4258
|
}
|
|
4197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BarsEventsDirective, decorators: [{
|
|
4198
4260
|
type: Directive,
|
|
4199
4261
|
args: [{
|
|
4200
4262
|
selector: '[vicBarsEvents]',
|
|
4201
4263
|
}]
|
|
4202
|
-
}],
|
|
4264
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4265
|
+
type: Inject,
|
|
4266
|
+
args: [BARS]
|
|
4267
|
+
}] }], propDecorators: { hoverActions: [{
|
|
4203
4268
|
type: Input
|
|
4204
4269
|
}], hoverMoveActions: [{
|
|
4205
4270
|
type: Input
|
|
@@ -4212,11 +4277,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4212
4277
|
}] } });
|
|
4213
4278
|
|
|
4214
4279
|
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: "
|
|
4280
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4281
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicBarsModule, imports: [BarsComponent, BarsEventsDirective], exports: [BarsComponent, BarsEventsDirective] }); }
|
|
4282
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsModule }); }
|
|
4218
4283
|
}
|
|
4219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsModule, decorators: [{
|
|
4220
4285
|
type: NgModule,
|
|
4221
4286
|
args: [{
|
|
4222
4287
|
imports: [BarsComponent, BarsEventsDirective],
|
|
@@ -5203,10 +5268,10 @@ class VicBarsConfigBuilder extends PrimaryMarksBuilder {
|
|
|
5203
5268
|
getQuantitativeDimensionName() {
|
|
5204
5269
|
return this._orientation === 'horizontal' ? 'X' : 'Y';
|
|
5205
5270
|
}
|
|
5206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5207
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5271
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5272
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsConfigBuilder }); }
|
|
5208
5273
|
}
|
|
5209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicBarsConfigBuilder, decorators: [{
|
|
5210
5275
|
type: Injectable
|
|
5211
5276
|
}], ctorParameters: () => [] });
|
|
5212
5277
|
|
|
@@ -5280,109 +5345,6 @@ const valueFormat = {
|
|
|
5280
5345
|
monthFullYear: '%B %Y',
|
|
5281
5346
|
};
|
|
5282
5347
|
|
|
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
5348
|
class VicDataExport {
|
|
5387
5349
|
saveCSV(name, dataConfigs) {
|
|
5388
5350
|
const blobParts = [];
|
|
@@ -5453,10 +5415,10 @@ class VicDataExport {
|
|
|
5453
5415
|
const blob = new Blob(blobParts, { type: 'text/csv;charset=utf-8' });
|
|
5454
5416
|
saveAs.saveAs(blob, `${name}.csv`);
|
|
5455
5417
|
}
|
|
5456
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5457
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDataExport, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5419
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDataExport, providedIn: 'root' }); }
|
|
5458
5420
|
}
|
|
5459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDataExport, decorators: [{
|
|
5460
5422
|
type: Injectable,
|
|
5461
5423
|
args: [{ providedIn: 'root' }]
|
|
5462
5424
|
}] });
|
|
@@ -5530,6 +5492,109 @@ class VicDataExportConfig {
|
|
|
5530
5492
|
}
|
|
5531
5493
|
}
|
|
5532
5494
|
|
|
5495
|
+
/**
|
|
5496
|
+
* A dimension that transforms Date values into a position on a chart.
|
|
5497
|
+
*
|
|
5498
|
+
* 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.
|
|
5499
|
+
*
|
|
5500
|
+
* The generic is the type of the data that will be passed to the dimension.
|
|
5501
|
+
*
|
|
5502
|
+
* TESTABLE FUNCTIONALITY
|
|
5503
|
+
*
|
|
5504
|
+
* - It extracts values for the dimension from data.
|
|
5505
|
+
* - tested in: lines.cy.ts
|
|
5506
|
+
* - It sets the domain of the dimension.
|
|
5507
|
+
* - tested in: lines.cy.ts
|
|
5508
|
+
* - It creates and returns a scale from a range.
|
|
5509
|
+
* - tested in: lines.cy.ts
|
|
5510
|
+
* - It checks if a value is in valid.
|
|
5511
|
+
* - tested in: lines.cy.ts
|
|
5512
|
+
* - The domain will be unique values from the user-provided domain if the user provides a domain.
|
|
5513
|
+
* - tested in: date-chart-position.spec.ts
|
|
5514
|
+
* - The domain will be unique values from the data if no custom domain is given by the user.
|
|
5515
|
+
* - tested in: date-chart-position.spec.ts
|
|
5516
|
+
* - The domain can be set in reverse order.
|
|
5517
|
+
* - tested in: date-chart-position.spec.ts
|
|
5518
|
+
*/
|
|
5519
|
+
class DateChartPositionDimension extends DataDimension {
|
|
5520
|
+
constructor(options) {
|
|
5521
|
+
super('date');
|
|
5522
|
+
safeAssign(this, options);
|
|
5523
|
+
}
|
|
5524
|
+
setPropertiesFromData(data) {
|
|
5525
|
+
this.setValues(data);
|
|
5526
|
+
this.setDomain();
|
|
5527
|
+
}
|
|
5528
|
+
setDomain() {
|
|
5529
|
+
const extents = this.domain === undefined
|
|
5530
|
+
? [min(this.values), max(this.values)]
|
|
5531
|
+
: this.domain;
|
|
5532
|
+
this.calculatedDomain = extents;
|
|
5533
|
+
}
|
|
5534
|
+
getScaleFromRange(range) {
|
|
5535
|
+
return this.scaleFn().domain(this.calculatedDomain).range(range);
|
|
5536
|
+
}
|
|
5537
|
+
// returns false if data is undefined or null of not a Date
|
|
5538
|
+
// for some charts this may be fine
|
|
5539
|
+
// original intended use case: d3Line can only handle defined values
|
|
5540
|
+
isValidValue(x) {
|
|
5541
|
+
return isDate(x);
|
|
5542
|
+
}
|
|
5543
|
+
}
|
|
5544
|
+
|
|
5545
|
+
const DEFAULT$o = {
|
|
5546
|
+
_scaleFn: scaleUtc,
|
|
5547
|
+
_formatSpecifier: '%Y %m',
|
|
5548
|
+
};
|
|
5549
|
+
class DateChartPositionDimensionBuilder extends DataDimensionBuilder {
|
|
5550
|
+
constructor() {
|
|
5551
|
+
super();
|
|
5552
|
+
safeAssign(this, DEFAULT$o);
|
|
5553
|
+
}
|
|
5554
|
+
domain(domain) {
|
|
5555
|
+
if (domain === null) {
|
|
5556
|
+
this._domain = undefined;
|
|
5557
|
+
return this;
|
|
5558
|
+
}
|
|
5559
|
+
this._domain = domain;
|
|
5560
|
+
return this;
|
|
5561
|
+
}
|
|
5562
|
+
formatSpecifier(formatSpecifier) {
|
|
5563
|
+
if (formatSpecifier === null) {
|
|
5564
|
+
this._formatSpecifier = undefined;
|
|
5565
|
+
return this;
|
|
5566
|
+
}
|
|
5567
|
+
this._formatSpecifier = formatSpecifier;
|
|
5568
|
+
return this;
|
|
5569
|
+
}
|
|
5570
|
+
scaleFn(scaleFn) {
|
|
5571
|
+
if (scaleFn === null) {
|
|
5572
|
+
this._scaleFn = undefined;
|
|
5573
|
+
return this;
|
|
5574
|
+
}
|
|
5575
|
+
this._scaleFn = scaleFn;
|
|
5576
|
+
return this;
|
|
5577
|
+
}
|
|
5578
|
+
/**
|
|
5579
|
+
* @internal This function is for internal use only and should never be called by the user.
|
|
5580
|
+
*
|
|
5581
|
+
* @param dimensionName A user-intelligible name for the dimension being built. Used for error messages. Should be title cased.
|
|
5582
|
+
*/
|
|
5583
|
+
_build(dimensionName) {
|
|
5584
|
+
this.validateBuilder(dimensionName);
|
|
5585
|
+
return new DateChartPositionDimension({
|
|
5586
|
+
domain: this._domain,
|
|
5587
|
+
formatFunction: this._formatFunction,
|
|
5588
|
+
formatSpecifier: this._formatSpecifier,
|
|
5589
|
+
scaleFn: this._scaleFn,
|
|
5590
|
+
valueAccessor: this._valueAccessor,
|
|
5591
|
+
});
|
|
5592
|
+
}
|
|
5593
|
+
validateBuilder(dimensionName) {
|
|
5594
|
+
this.validateValueAccessor(dimensionName);
|
|
5595
|
+
}
|
|
5596
|
+
}
|
|
5597
|
+
|
|
5533
5598
|
/**
|
|
5534
5599
|
* A dimension that transforms number values into a value of type number or string.
|
|
5535
5600
|
*
|
|
@@ -5908,10 +5973,10 @@ class VicDotsConfigBuilder extends PrimaryMarksBuilder {
|
|
|
5908
5973
|
throw new Error('Dots Builder: Exactly one Y dimension is required. Please use one of `yDate`, `yNumeric`, or `yOrdinal` to set it.');
|
|
5909
5974
|
}
|
|
5910
5975
|
}
|
|
5911
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5912
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5976
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5977
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsConfigBuilder }); }
|
|
5913
5978
|
}
|
|
5914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsConfigBuilder, decorators: [{
|
|
5915
5980
|
type: Injectable
|
|
5916
5981
|
}], ctorParameters: () => [] });
|
|
5917
5982
|
|
|
@@ -6041,14 +6106,14 @@ class DotsComponent extends VicXyPrimaryMarks {
|
|
|
6041
6106
|
return ('formatSpecifier' in dimension &&
|
|
6042
6107
|
typeof dimension.formatSpecifier === 'string');
|
|
6043
6108
|
}
|
|
6044
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6045
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
6109
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DotsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6110
|
+
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
6111
|
{ provide: VIC_PRIMARY_MARKS, useExisting: DotsComponent },
|
|
6047
6112
|
{ provide: DOTS, useExisting: DotsComponent },
|
|
6048
6113
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
6049
6114
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6050
6115
|
}
|
|
6051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DotsComponent, decorators: [{
|
|
6052
6117
|
type: Component,
|
|
6053
6118
|
args: [{ selector: '[vic-primary-marks-dots]', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
6054
6119
|
{ provide: VIC_PRIMARY_MARKS, useExisting: DotsComponent },
|
|
@@ -6077,10 +6142,10 @@ class DotsTooltipPositioner extends TooltipPositioner {
|
|
|
6077
6142
|
}
|
|
6078
6143
|
|
|
6079
6144
|
class DotsEventsDirective extends EventsDirective {
|
|
6080
|
-
constructor() {
|
|
6081
|
-
super(
|
|
6145
|
+
constructor(dots) {
|
|
6146
|
+
super();
|
|
6147
|
+
this.dots = dots;
|
|
6082
6148
|
this.interactionOutput = new EventEmitter();
|
|
6083
|
-
this.dots = inject(DOTS);
|
|
6084
6149
|
}
|
|
6085
6150
|
get marks() {
|
|
6086
6151
|
return this.dots;
|
|
@@ -6218,15 +6283,18 @@ class DotsEventsDirective extends EventsDirective {
|
|
|
6218
6283
|
this.positionX = undefined;
|
|
6219
6284
|
this.positionY = undefined;
|
|
6220
6285
|
}
|
|
6221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6222
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
6286
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DotsEventsDirective, deps: [{ token: DOTS }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6287
|
+
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
6288
|
}
|
|
6224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DotsEventsDirective, decorators: [{
|
|
6225
6290
|
type: Directive,
|
|
6226
6291
|
args: [{
|
|
6227
6292
|
selector: '[vicDotsEvents]',
|
|
6228
6293
|
}]
|
|
6229
|
-
}],
|
|
6294
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
6295
|
+
type: Inject,
|
|
6296
|
+
args: [DOTS]
|
|
6297
|
+
}] }], propDecorators: { hoverActions: [{
|
|
6230
6298
|
type: Input
|
|
6231
6299
|
}], hoverMoveActions: [{
|
|
6232
6300
|
type: Input
|
|
@@ -6239,11 +6307,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
6239
6307
|
}] } });
|
|
6240
6308
|
|
|
6241
6309
|
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: "
|
|
6310
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6311
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicDotsModule, imports: [DotsComponent, DotsEventsDirective], exports: [DotsComponent, DotsEventsDirective] }); }
|
|
6312
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsModule }); }
|
|
6245
6313
|
}
|
|
6246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicDotsModule, decorators: [{
|
|
6247
6315
|
type: NgModule,
|
|
6248
6316
|
args: [{
|
|
6249
6317
|
imports: [DotsComponent, DotsEventsDirective],
|
|
@@ -7505,10 +7573,10 @@ class VicGeographiesConfigBuilder {
|
|
|
7505
7573
|
throw new Error('At least one layer is required');
|
|
7506
7574
|
}
|
|
7507
7575
|
}
|
|
7508
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7509
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7576
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7577
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesConfigBuilder }); }
|
|
7510
7578
|
}
|
|
7511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesConfigBuilder, decorators: [{
|
|
7512
7580
|
type: Injectable
|
|
7513
7581
|
}], ctorParameters: () => [] });
|
|
7514
7582
|
|
|
@@ -7688,8 +7756,8 @@ class GeographiesComponent extends MapPrimaryMarks {
|
|
|
7688
7756
|
}, []);
|
|
7689
7757
|
this.pathsByLayer.next(pathsByLayer);
|
|
7690
7758
|
}
|
|
7691
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7692
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
7759
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GeographiesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7760
|
+
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
7761
|
{ provide: VIC_PRIMARY_MARKS, useExisting: GeographiesComponent },
|
|
7694
7762
|
{
|
|
7695
7763
|
provide: GEOGRAPHIES,
|
|
@@ -7701,7 +7769,7 @@ class GeographiesComponent extends MapPrimaryMarks {
|
|
|
7701
7769
|
},
|
|
7702
7770
|
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
7703
7771
|
}
|
|
7704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GeographiesComponent, decorators: [{
|
|
7705
7773
|
type: Component,
|
|
7706
7774
|
args: [{ selector: '[vic-primary-marks-geographies]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
7707
7775
|
{ provide: VIC_PRIMARY_MARKS, useExisting: GeographiesComponent },
|
|
@@ -7715,7 +7783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
7715
7783
|
},
|
|
7716
7784
|
], host: {
|
|
7717
7785
|
'[class]': 'config.marksClass',
|
|
7718
|
-
'[style.mixed-blend-mode]': 'config.
|
|
7786
|
+
'[style.mixed-blend-mode]': 'config.blendMode',
|
|
7719
7787
|
}, template: "<ng-content></ng-content>\n" }]
|
|
7720
7788
|
}] });
|
|
7721
7789
|
|
|
@@ -7736,10 +7804,10 @@ class GeographiesTooltipPositioner extends TooltipPositioner {
|
|
|
7736
7804
|
}
|
|
7737
7805
|
|
|
7738
7806
|
class GeographiesEventsDirective extends EventsDirective {
|
|
7739
|
-
constructor() {
|
|
7740
|
-
super(
|
|
7807
|
+
constructor(geographies) {
|
|
7808
|
+
super();
|
|
7809
|
+
this.geographies = geographies;
|
|
7741
7810
|
this.interactionOutput = new EventEmitter();
|
|
7742
|
-
this.geographies = inject(GEOGRAPHIES);
|
|
7743
7811
|
}
|
|
7744
7812
|
get marks() {
|
|
7745
7813
|
return this.geographies;
|
|
@@ -7878,15 +7946,18 @@ class GeographiesEventsDirective extends EventsDirective {
|
|
|
7878
7946
|
this.positionY = undefined;
|
|
7879
7947
|
this.layer = undefined;
|
|
7880
7948
|
}
|
|
7881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7882
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
7949
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GeographiesEventsDirective, deps: [{ token: GEOGRAPHIES }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7950
|
+
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
7951
|
}
|
|
7884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GeographiesEventsDirective, decorators: [{
|
|
7885
7953
|
type: Directive,
|
|
7886
7954
|
args: [{
|
|
7887
7955
|
selector: '[vicGeographiesEvents]',
|
|
7888
7956
|
}]
|
|
7889
|
-
}],
|
|
7957
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
7958
|
+
type: Inject,
|
|
7959
|
+
args: [GEOGRAPHIES]
|
|
7960
|
+
}] }], propDecorators: { hoverActions: [{
|
|
7890
7961
|
type: Input
|
|
7891
7962
|
}], hoverMoveActions: [{
|
|
7892
7963
|
type: Input
|
|
@@ -7903,11 +7974,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
7903
7974
|
*/
|
|
7904
7975
|
|
|
7905
7976
|
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: "
|
|
7977
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7978
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesModule, imports: [GeographiesComponent, GeographiesEventsDirective], exports: [GeographiesComponent, GeographiesEventsDirective] }); }
|
|
7979
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesModule }); }
|
|
7909
7980
|
}
|
|
7910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGeographiesModule, decorators: [{
|
|
7911
7982
|
type: NgModule,
|
|
7912
7983
|
args: [{
|
|
7913
7984
|
imports: [GeographiesComponent, GeographiesEventsDirective],
|
|
@@ -7981,18 +8052,18 @@ class VicGroupedBarsConfigBuilder extends VicBarsConfigBuilder {
|
|
|
7981
8052
|
quantitative: this.quantitativeDimensionBuilder._build(this.getQuantitativeDimensionName()),
|
|
7982
8053
|
});
|
|
7983
8054
|
}
|
|
7984
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7985
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8055
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8056
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsConfigBuilder }); }
|
|
7986
8057
|
}
|
|
7987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsConfigBuilder, decorators: [{
|
|
7988
8059
|
type: Injectable
|
|
7989
8060
|
}], ctorParameters: () => [] });
|
|
7990
8061
|
|
|
7991
8062
|
class GroupedBarsEventsDirective extends EventsDirective {
|
|
7992
|
-
constructor() {
|
|
7993
|
-
super(
|
|
8063
|
+
constructor(bars) {
|
|
8064
|
+
super();
|
|
8065
|
+
this.bars = bars;
|
|
7994
8066
|
this.interactionOutput = new EventEmitter();
|
|
7995
|
-
this.bars = inject(BARS);
|
|
7996
8067
|
}
|
|
7997
8068
|
get marks() {
|
|
7998
8069
|
return this.bars;
|
|
@@ -8129,15 +8200,18 @@ class GroupedBarsEventsDirective extends EventsDirective {
|
|
|
8129
8200
|
this.positionX = undefined;
|
|
8130
8201
|
this.positionY = undefined;
|
|
8131
8202
|
}
|
|
8132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8133
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
8203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GroupedBarsEventsDirective, deps: [{ token: BARS }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8204
|
+
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
8205
|
}
|
|
8135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GroupedBarsEventsDirective, decorators: [{
|
|
8136
8207
|
type: Directive,
|
|
8137
8208
|
args: [{
|
|
8138
8209
|
selector: '[vicGroupedBarsEvents]',
|
|
8139
8210
|
}]
|
|
8140
|
-
}],
|
|
8211
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
8212
|
+
type: Inject,
|
|
8213
|
+
args: [BARS]
|
|
8214
|
+
}] }], propDecorators: { hoverActions: [{
|
|
8141
8215
|
type: Input
|
|
8142
8216
|
}], hoverMoveActions: [{
|
|
8143
8217
|
type: Input
|
|
@@ -8198,14 +8272,14 @@ class GroupedBarsComponent extends BarsComponent {
|
|
|
8198
8272
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8199
8273
|
return this.groupScale.bandwidth();
|
|
8200
8274
|
}
|
|
8201
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8202
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
8275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GroupedBarsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8276
|
+
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
8277
|
{ provide: VIC_PRIMARY_MARKS, useExisting: GroupedBarsComponent },
|
|
8204
8278
|
{ provide: BARS, useExisting: GroupedBarsComponent },
|
|
8205
8279
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
8206
8280
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
8207
8281
|
}
|
|
8208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: GroupedBarsComponent, decorators: [{
|
|
8209
8283
|
type: Component,
|
|
8210
8284
|
args: [{ selector: '[vic-primary-grouped-bars]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
8211
8285
|
{ provide: VIC_PRIMARY_MARKS, useExisting: GroupedBarsComponent },
|
|
@@ -8221,11 +8295,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
8221
8295
|
}] } });
|
|
8222
8296
|
|
|
8223
8297
|
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: "
|
|
8298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8299
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsModule, imports: [GroupedBarsComponent, GroupedBarsEventsDirective], exports: [GroupedBarsComponent, GroupedBarsEventsDirective] }); }
|
|
8300
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsModule }); }
|
|
8227
8301
|
}
|
|
8228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicGroupedBarsModule, decorators: [{
|
|
8229
8303
|
type: NgModule,
|
|
8230
8304
|
args: [{
|
|
8231
8305
|
imports: [GroupedBarsComponent, GroupedBarsEventsDirective],
|
|
@@ -8309,10 +8383,10 @@ class VicImageDownloadService {
|
|
|
8309
8383
|
link.href = dataUrl;
|
|
8310
8384
|
link.click();
|
|
8311
8385
|
}
|
|
8312
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8313
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8386
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicImageDownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8387
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicImageDownloadService, providedIn: 'root' }); }
|
|
8314
8388
|
}
|
|
8315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicImageDownloadService, decorators: [{
|
|
8316
8390
|
type: Injectable,
|
|
8317
8391
|
args: [{ providedIn: 'root' }]
|
|
8318
8392
|
}] });
|
|
@@ -8728,10 +8802,10 @@ class VicLinesConfigBuilder extends PrimaryMarksBuilder {
|
|
|
8728
8802
|
throw new Error('Lines Builder: Y dimension is required. Please use method `createYDimension` to set it.');
|
|
8729
8803
|
}
|
|
8730
8804
|
}
|
|
8731
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8732
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8806
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesConfigBuilder }); }
|
|
8733
8807
|
}
|
|
8734
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesConfigBuilder, decorators: [{
|
|
8735
8809
|
type: Injectable
|
|
8736
8810
|
}], ctorParameters: () => [] });
|
|
8737
8811
|
|
|
@@ -9089,14 +9163,14 @@ class LinesComponent extends VicXyPrimaryMarks {
|
|
|
9089
9163
|
origin: this.chart.svgRef.nativeElement,
|
|
9090
9164
|
};
|
|
9091
9165
|
}
|
|
9092
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9093
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: LinesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9167
|
+
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
9168
|
{ provide: VIC_PRIMARY_MARKS, useExisting: LinesComponent },
|
|
9095
9169
|
{ provide: LINES, useExisting: LinesComponent },
|
|
9096
9170
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
9097
9171
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
9098
9172
|
}
|
|
9099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: LinesComponent, decorators: [{
|
|
9100
9174
|
type: Component,
|
|
9101
9175
|
args: [{ selector: '[vic-primary-marks-lines]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
9102
9176
|
{ provide: VIC_PRIMARY_MARKS, useExisting: LinesComponent },
|
|
@@ -9130,11 +9204,11 @@ class LinesTooltipPositioner extends TooltipPositioner {
|
|
|
9130
9204
|
}
|
|
9131
9205
|
|
|
9132
9206
|
class LinesEventsDirective extends EventsDirective {
|
|
9133
|
-
constructor() {
|
|
9134
|
-
super(
|
|
9207
|
+
constructor(lines) {
|
|
9208
|
+
super();
|
|
9209
|
+
this.lines = lines;
|
|
9135
9210
|
this.interactionOutput = new EventEmitter();
|
|
9136
9211
|
this.actionActive = false;
|
|
9137
|
-
this.lines = inject(LINES);
|
|
9138
9212
|
}
|
|
9139
9213
|
get marks() {
|
|
9140
9214
|
return this.lines;
|
|
@@ -9305,15 +9379,18 @@ class LinesEventsDirective extends EventsDirective {
|
|
|
9305
9379
|
this.positionX = undefined;
|
|
9306
9380
|
this.positionY = undefined;
|
|
9307
9381
|
}
|
|
9308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9309
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
9382
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: LinesEventsDirective, deps: [{ token: LINES }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9383
|
+
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
9384
|
}
|
|
9311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: LinesEventsDirective, decorators: [{
|
|
9312
9386
|
type: Directive,
|
|
9313
9387
|
args: [{
|
|
9314
9388
|
selector: '[vicLinesEvents]',
|
|
9315
9389
|
}]
|
|
9316
|
-
}],
|
|
9390
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
9391
|
+
type: Inject,
|
|
9392
|
+
args: [LINES]
|
|
9393
|
+
}] }], propDecorators: { hoverMoveActions: [{
|
|
9317
9394
|
type: Input
|
|
9318
9395
|
}], clickActions: [{
|
|
9319
9396
|
type: Input
|
|
@@ -9324,11 +9401,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
9324
9401
|
}] } });
|
|
9325
9402
|
|
|
9326
9403
|
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: "
|
|
9404
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9405
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicLinesModule, imports: [LinesComponent, LinesEventsDirective], exports: [LinesComponent, LinesEventsDirective] }); }
|
|
9406
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesModule }); }
|
|
9330
9407
|
}
|
|
9331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicLinesModule, decorators: [{
|
|
9332
9409
|
type: NgModule,
|
|
9333
9410
|
args: [{
|
|
9334
9411
|
imports: [LinesComponent, LinesEventsDirective],
|
|
@@ -9390,10 +9467,10 @@ class MapLegend {
|
|
|
9390
9467
|
this.largerValueSpace = 0;
|
|
9391
9468
|
this.leftOffset = 0;
|
|
9392
9469
|
}
|
|
9393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9394
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
9470
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9471
|
+
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
9472
|
}
|
|
9396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapLegend, decorators: [{
|
|
9397
9474
|
type: Directive
|
|
9398
9475
|
}], propDecorators: { width: [{
|
|
9399
9476
|
type: Input
|
|
@@ -9464,12 +9541,12 @@ class ContinuousLegendComponent extends MapLegend {
|
|
|
9464
9541
|
ctx.fillRect(0, i, 1, 1);
|
|
9465
9542
|
}
|
|
9466
9543
|
}
|
|
9467
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9468
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
9544
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ContinuousLegendComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9545
|
+
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
9546
|
}
|
|
9470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ContinuousLegendComponent, decorators: [{
|
|
9471
9548
|
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
|
|
9549
|
+
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
9550
|
}], propDecorators: { canvasRef: [{
|
|
9474
9551
|
type: ViewChild,
|
|
9475
9552
|
args: ['canvas', { static: true }]
|
|
@@ -9507,12 +9584,12 @@ class DiscontinuousLegendComponent extends MapLegend {
|
|
|
9507
9584
|
return 0;
|
|
9508
9585
|
}
|
|
9509
9586
|
}
|
|
9510
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9511
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
9587
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DiscontinuousLegendComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9588
|
+
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
9589
|
}
|
|
9513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: DiscontinuousLegendComponent, decorators: [{
|
|
9514
9591
|
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
|
|
9592
|
+
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
9593
|
}] });
|
|
9517
9594
|
|
|
9518
9595
|
var VicLegendType;
|
|
@@ -9555,16 +9632,16 @@ class MapLegendComponent {
|
|
|
9555
9632
|
}
|
|
9556
9633
|
}
|
|
9557
9634
|
}
|
|
9558
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9559
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
9635
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapLegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9636
|
+
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
9637
|
}
|
|
9561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: MapLegendComponent, decorators: [{
|
|
9562
9639
|
type: Component,
|
|
9563
9640
|
args: [{ selector: 'vic-map-legend', imports: [
|
|
9564
9641
|
CommonModule,
|
|
9565
9642
|
ContinuousLegendComponent,
|
|
9566
9643
|
DiscontinuousLegendComponent,
|
|
9567
|
-
], template: "<ng-content select=\"[title]\"></ng-content>\n@if (chart.attributeProperties$ | async; as attributeProperties) { @if\n(attributeProperties.config) {
|
|
9644
|
+
], 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
9645
|
}], propDecorators: { width: [{
|
|
9569
9646
|
type: Input
|
|
9570
9647
|
}], height: [{
|
|
@@ -9579,11 +9656,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
9579
9656
|
}] } });
|
|
9580
9657
|
|
|
9581
9658
|
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: "
|
|
9659
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicMapLegendModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9660
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicMapLegendModule, imports: [MapLegendComponent], exports: [MapLegendComponent] }); }
|
|
9661
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicMapLegendModule, imports: [MapLegendComponent] }); }
|
|
9585
9662
|
}
|
|
9586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicMapLegendModule, decorators: [{
|
|
9587
9664
|
type: NgModule,
|
|
9588
9665
|
args: [{
|
|
9589
9666
|
imports: [MapLegendComponent],
|
|
@@ -9813,10 +9890,10 @@ class VicQuantitativeRulesConfigBuilder extends VicAuxMarksBuilder {
|
|
|
9813
9890
|
this.labelsBuilder.validateBuilder(this._orientation, this._color);
|
|
9814
9891
|
}
|
|
9815
9892
|
}
|
|
9816
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9817
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
9893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9894
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesConfigBuilder }); }
|
|
9818
9895
|
}
|
|
9819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesConfigBuilder, decorators: [{
|
|
9820
9897
|
type: Injectable
|
|
9821
9898
|
}], ctorParameters: () => [] });
|
|
9822
9899
|
|
|
@@ -9981,10 +10058,10 @@ class QuantitativeRulesComponent extends XyAuxMarks {
|
|
|
9981
10058
|
}
|
|
9982
10059
|
return this.scales.y.range()[1];
|
|
9983
10060
|
}
|
|
9984
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9985
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10061
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: QuantitativeRulesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10062
|
+
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
10063
|
}
|
|
9987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: QuantitativeRulesComponent, decorators: [{
|
|
9988
10065
|
type: Component,
|
|
9989
10066
|
args: [{ selector: '[vic-quantitative-rules]', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: ChartComponent, useExisting: XyChartComponent }], host: {
|
|
9990
10067
|
'[class]': 'config.marksClass',
|
|
@@ -9992,11 +10069,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
9992
10069
|
}] });
|
|
9993
10070
|
|
|
9994
10071
|
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: "
|
|
10072
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
10073
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesModule, imports: [QuantitativeRulesComponent], exports: [QuantitativeRulesComponent] }); }
|
|
10074
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesModule }); }
|
|
9998
10075
|
}
|
|
9999
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicQuantitativeRulesModule, decorators: [{
|
|
10000
10077
|
type: NgModule,
|
|
10001
10078
|
args: [{
|
|
10002
10079
|
imports: [QuantitativeRulesComponent],
|
|
@@ -10166,10 +10243,10 @@ class VicStackedAreaConfigBuilder extends PrimaryMarksBuilder {
|
|
|
10166
10243
|
throw new Error('Stacked Area Builder: Y dimension must be created. Please use method `y` to set the y dimension.');
|
|
10167
10244
|
}
|
|
10168
10245
|
}
|
|
10169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10170
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10247
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaConfigBuilder }); }
|
|
10171
10248
|
}
|
|
10172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaConfigBuilder, decorators: [{
|
|
10173
10250
|
type: Injectable
|
|
10174
10251
|
}], ctorParameters: () => [] });
|
|
10175
10252
|
|
|
@@ -10303,14 +10380,14 @@ class StackedAreaComponent extends VicXyPrimaryMarks {
|
|
|
10303
10380
|
updateStackedAreaElements() {
|
|
10304
10381
|
this.stackedAreas.next(this.areas);
|
|
10305
10382
|
}
|
|
10306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10307
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10383
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10384
|
+
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
10385
|
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedAreaComponent },
|
|
10309
10386
|
{ provide: STACKED_AREA, useExisting: StackedAreaComponent },
|
|
10310
10387
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
10311
10388
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10312
10389
|
}
|
|
10313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedAreaComponent, decorators: [{
|
|
10314
10391
|
type: Component,
|
|
10315
10392
|
args: [{ selector: '[vic-primary-marks-stacked-area]', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
10316
10393
|
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedAreaComponent },
|
|
@@ -10340,10 +10417,10 @@ class StackedAreaTooltipPositioner extends TooltipPositioner {
|
|
|
10340
10417
|
}
|
|
10341
10418
|
|
|
10342
10419
|
class StackedAreaEventsDirective extends EventsDirective {
|
|
10343
|
-
constructor() {
|
|
10344
|
-
super(
|
|
10420
|
+
constructor(stackedArea) {
|
|
10421
|
+
super();
|
|
10422
|
+
this.stackedArea = stackedArea;
|
|
10345
10423
|
this.interactionOutput = new EventEmitter();
|
|
10346
|
-
this.stackedArea = inject(STACKED_AREA);
|
|
10347
10424
|
}
|
|
10348
10425
|
get marks() {
|
|
10349
10426
|
return this.stackedArea;
|
|
@@ -10495,15 +10572,18 @@ class StackedAreaEventsDirective extends EventsDirective {
|
|
|
10495
10572
|
this.categoryYMax = undefined;
|
|
10496
10573
|
this.categoryIndex = undefined;
|
|
10497
10574
|
}
|
|
10498
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10499
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
10575
|
+
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 }); }
|
|
10576
|
+
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
10577
|
}
|
|
10501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedAreaEventsDirective, decorators: [{
|
|
10502
10579
|
type: Directive,
|
|
10503
10580
|
args: [{
|
|
10504
10581
|
selector: '[vicStackedAreaEvents]',
|
|
10505
10582
|
}]
|
|
10506
|
-
}],
|
|
10583
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
10584
|
+
type: Inject,
|
|
10585
|
+
args: [STACKED_AREA]
|
|
10586
|
+
}] }], propDecorators: { hoverMoveActions: [{
|
|
10507
10587
|
type: Input
|
|
10508
10588
|
}], clickActions: [{
|
|
10509
10589
|
type: Input
|
|
@@ -10514,11 +10594,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10514
10594
|
}] } });
|
|
10515
10595
|
|
|
10516
10596
|
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: "
|
|
10597
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
10598
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaModule, imports: [StackedAreaComponent, StackedAreaEventsDirective], exports: [StackedAreaComponent, StackedAreaEventsDirective] }); }
|
|
10599
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaModule }); }
|
|
10520
10600
|
}
|
|
10521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedAreaModule, decorators: [{
|
|
10522
10602
|
type: NgModule,
|
|
10523
10603
|
args: [{
|
|
10524
10604
|
imports: [StackedAreaComponent, StackedAreaEventsDirective],
|
|
@@ -10619,10 +10699,10 @@ class VicStackedBarsConfigBuilder extends VicBarsConfigBuilder {
|
|
|
10619
10699
|
stackOrder: this._stackOrder,
|
|
10620
10700
|
});
|
|
10621
10701
|
}
|
|
10622
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10623
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10702
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsConfigBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10703
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsConfigBuilder }); }
|
|
10624
10704
|
}
|
|
10625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsConfigBuilder, decorators: [{
|
|
10626
10706
|
type: Injectable
|
|
10627
10707
|
}], ctorParameters: () => [] });
|
|
10628
10708
|
|
|
@@ -10740,14 +10820,14 @@ class StackedBarsComponent extends BarsComponent {
|
|
|
10740
10820
|
getSourceDatumFromStackedBarDatum(datum) {
|
|
10741
10821
|
return this.config.data[datum.i];
|
|
10742
10822
|
}
|
|
10743
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10744
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
10823
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedBarsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10824
|
+
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
10825
|
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedBarsComponent },
|
|
10746
10826
|
{ provide: STACKED_BARS, useExisting: StackedBarsComponent },
|
|
10747
10827
|
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
10748
10828
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
10749
10829
|
}
|
|
10750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedBarsComponent, decorators: [{
|
|
10751
10831
|
type: Component,
|
|
10752
10832
|
args: [{ selector: '[vic-primary-marks-stacked-bars]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
10753
10833
|
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedBarsComponent },
|
|
@@ -10762,11 +10842,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10762
10842
|
}] } });
|
|
10763
10843
|
|
|
10764
10844
|
class StackedBarsEventsDirective extends EventsDirective {
|
|
10765
|
-
constructor() {
|
|
10766
|
-
super(
|
|
10845
|
+
constructor(stackedBars) {
|
|
10846
|
+
super();
|
|
10847
|
+
this.stackedBars = stackedBars;
|
|
10767
10848
|
this.interactionOutput = new EventEmitter();
|
|
10768
10849
|
this.stackDatum = null;
|
|
10769
|
-
this.stackedBars = inject(STACKED_BARS);
|
|
10770
10850
|
}
|
|
10771
10851
|
get marks() {
|
|
10772
10852
|
return this.stackedBars;
|
|
@@ -10910,15 +10990,18 @@ class StackedBarsEventsDirective extends EventsDirective {
|
|
|
10910
10990
|
this.positionX = undefined;
|
|
10911
10991
|
this.positionY = undefined;
|
|
10912
10992
|
}
|
|
10913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10914
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
10993
|
+
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 }); }
|
|
10994
|
+
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
10995
|
}
|
|
10916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: StackedBarsEventsDirective, decorators: [{
|
|
10917
10997
|
type: Directive,
|
|
10918
10998
|
args: [{
|
|
10919
10999
|
selector: '[vicStackedBarsEvents]',
|
|
10920
11000
|
}]
|
|
10921
|
-
}],
|
|
11001
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
11002
|
+
type: Inject,
|
|
11003
|
+
args: [STACKED_BARS]
|
|
11004
|
+
}] }], propDecorators: { hoverActions: [{
|
|
10922
11005
|
type: Input
|
|
10923
11006
|
}], hoverMoveActions: [{
|
|
10924
11007
|
type: Input
|
|
@@ -10931,11 +11014,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10931
11014
|
}] } });
|
|
10932
11015
|
|
|
10933
11016
|
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: "
|
|
11017
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11018
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsModule, imports: [StackedBarsComponent, StackedBarsEventsDirective], exports: [StackedBarsComponent, StackedBarsEventsDirective] }); }
|
|
11019
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsModule }); }
|
|
10937
11020
|
}
|
|
10938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicStackedBarsModule, decorators: [{
|
|
10939
11022
|
type: NgModule,
|
|
10940
11023
|
args: [{
|
|
10941
11024
|
imports: [StackedBarsComponent, StackedBarsEventsDirective],
|
|
@@ -10944,28 +11027,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10944
11027
|
}] });
|
|
10945
11028
|
|
|
10946
11029
|
class XyBackgroundComponent {
|
|
10947
|
-
constructor() {
|
|
11030
|
+
constructor(chart) {
|
|
11031
|
+
this.chart = chart;
|
|
10948
11032
|
this.color = 'whitesmoke';
|
|
10949
|
-
this.chart = inject(XyChartComponent);
|
|
10950
11033
|
}
|
|
10951
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10952
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
11034
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyBackgroundComponent, deps: [{ token: XyChartComponent }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11035
|
+
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
11036
|
}
|
|
10954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: XyBackgroundComponent, decorators: [{
|
|
10955
11038
|
type: Component,
|
|
10956
11039
|
args: [{ selector: '[vic-xy-background]', host: {
|
|
10957
11040
|
class: 'vic-xy-background',
|
|
10958
11041
|
}, 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: [{
|
|
11042
|
+
}], ctorParameters: () => [{ type: XyChartComponent }], propDecorators: { color: [{
|
|
10960
11043
|
type: Input
|
|
10961
11044
|
}] } });
|
|
10962
11045
|
|
|
10963
11046
|
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: "
|
|
11047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyBackgroundModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11048
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: VicXyBackgroundModule, imports: [XyBackgroundComponent], exports: [XyBackgroundComponent] }); }
|
|
11049
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyBackgroundModule, imports: [XyBackgroundComponent] }); }
|
|
10967
11050
|
}
|
|
10968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: VicXyBackgroundModule, decorators: [{
|
|
10969
11052
|
type: NgModule,
|
|
10970
11053
|
args: [{
|
|
10971
11054
|
imports: [XyBackgroundComponent],
|
|
@@ -10981,5 +11064,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
10981
11064
|
* Generated bundle index. Do not edit.
|
|
10982
11065
|
*/
|
|
10983
11066
|
|
|
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,
|
|
11067
|
+
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
11068
|
//# sourceMappingURL=mathstack-viz.mjs.map
|