@mathstack/viz 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +11 -11
- package/fesm2022/mathstack-viz.mjs +11024 -0
- package/fesm2022/mathstack-viz.mjs.map +1 -0
- package/package.json +18 -6
- package/types/mathstack-viz.d.ts +5830 -0
- package/CHANGELOG.md +0 -0
- package/cypress/fixtures/example.json +0 -5
- package/cypress/fixtures/usMap.json +0 -13511
- package/cypress/support/commands.ts +0 -104
- package/cypress/support/component-index.html +0 -12
- package/cypress/support/component.ts +0 -33
- package/cypress.config.ts +0 -9
- package/karma.conf.js +0 -62
- package/ng-package.json +0 -8
- package/project.json +0 -97
- package/src/.eslintrc.json +0 -35
- package/src/.prettierrc +0 -31
- package/src/lib/axes/base/config/xy-axis-builder.ts +0 -68
- package/src/lib/axes/base/config/xy-axis-config.ts +0 -35
- package/src/lib/axes/base/config/xy-axis-options.ts +0 -11
- package/src/lib/axes/base/xy-axis-base.spec.ts +0 -114
- package/src/lib/axes/base/xy-axis-base.ts +0 -305
- package/src/lib/axes/base/xy-axis-domain-lines.cy.ts +0 -511
- package/src/lib/axes/baseline/axis-baseline-builder.ts +0 -77
- package/src/lib/axes/baseline/axis-baseline-options.ts +0 -4
- package/src/lib/axes/baseline/axis-baseline.ts +0 -11
- package/src/lib/axes/grid/grid-builder.ts +0 -74
- package/src/lib/axes/grid/grid-config.ts +0 -13
- package/src/lib/axes/grid/grid-options.ts +0 -7
- package/src/lib/axes/index.ts +0 -40
- package/src/lib/axes/label/axis-label-builder.ts +0 -140
- package/src/lib/axes/label/axis-label-options.ts +0 -12
- package/src/lib/axes/label/axis-label.ts +0 -18
- package/src/lib/axes/label/axis-labels.cy.ts +0 -303
- package/src/lib/axes/ordinal/ordinal-axis-config.ts +0 -31
- package/src/lib/axes/ordinal/ordinal-axis.spec.ts +0 -30
- package/src/lib/axes/ordinal/ordinal-axis.ts +0 -26
- package/src/lib/axes/quantitative/quantitative-axis-config.ts +0 -39
- package/src/lib/axes/quantitative/quantitative-axis-ticks.cy.ts +0 -748
- package/src/lib/axes/quantitative/quantitative-axis.spec.ts +0 -537
- package/src/lib/axes/quantitative/quantitative-axis.ts +0 -191
- package/src/lib/axes/ticks/tick-wrap/tick-wrap-builder.ts +0 -141
- package/src/lib/axes/ticks/tick-wrap/tick-wrap-options.ts +0 -11
- package/src/lib/axes/ticks/tick-wrap/tick-wrap.cy.ts +0 -360
- package/src/lib/axes/ticks/tick-wrap/tick-wrap.ts +0 -21
- package/src/lib/axes/ticks/ticks-builder.ts +0 -370
- package/src/lib/axes/ticks/ticks-options.ts +0 -24
- package/src/lib/axes/ticks/ticks.ts +0 -33
- package/src/lib/axes/x/x-axis-config.ts +0 -48
- package/src/lib/axes/x/x-axis.spec.ts +0 -90
- package/src/lib/axes/x/x-axis.ts +0 -109
- package/src/lib/axes/x-ordinal/x-ordinal-axis-builder.ts +0 -75
- package/src/lib/axes/x-ordinal/x-ordinal-axis-config.ts +0 -27
- package/src/lib/axes/x-ordinal/x-ordinal-axis.component.ts +0 -33
- package/src/lib/axes/x-quantitative/x-quantitative-axis-builder.ts +0 -74
- package/src/lib/axes/x-quantitative/x-quantitative-axis-config.ts +0 -32
- package/src/lib/axes/x-quantitative/x-quantitative-axis.component.ts +0 -40
- package/src/lib/axes/xy-axis.module.ts +0 -20
- package/src/lib/axes/y/y-axis-config.ts +0 -47
- package/src/lib/axes/y/y-axis.spec.ts +0 -92
- package/src/lib/axes/y/y-axis.ts +0 -161
- package/src/lib/axes/y-ordinal/y-ordinal-axis-builder.ts +0 -76
- package/src/lib/axes/y-ordinal/y-ordinal-axis-config.ts +0 -29
- package/src/lib/axes/y-ordinal/y-ordinal-axis.component.ts +0 -33
- package/src/lib/axes/y-quantitative-axis/y-quantitative-axis-builder.ts +0 -74
- package/src/lib/axes/y-quantitative-axis/y-quantitative-axis-config.ts +0 -34
- package/src/lib/axes/y-quantitative-axis/y-quantitative-axis.component.ts +0 -40
- package/src/lib/bars/bars.component.scss +0 -0
- package/src/lib/bars/bars.component.spec.ts +0 -1470
- package/src/lib/bars/bars.component.ts +0 -717
- package/src/lib/bars/bars.cy.ts +0 -829
- package/src/lib/bars/bars.module.ts +0 -9
- package/src/lib/bars/config/backgrounds/bars-backgrounds-builder.ts +0 -51
- package/src/lib/bars/config/backgrounds/bars-backgrounds-options.ts +0 -4
- package/src/lib/bars/config/backgrounds/bars-backgrounds.ts +0 -11
- package/src/lib/bars/config/bars-builder.ts +0 -340
- package/src/lib/bars/config/bars-config.spec.ts +0 -132
- package/src/lib/bars/config/bars-config.ts +0 -70
- package/src/lib/bars/config/bars-dimensions.ts +0 -29
- package/src/lib/bars/config/bars-options.ts +0 -20
- package/src/lib/bars/config/labels/bars-labels-builder.ts +0 -89
- package/src/lib/bars/config/labels/bars-labels-options.ts +0 -6
- package/src/lib/bars/config/labels/bars-labels.cy.ts +0 -781
- package/src/lib/bars/config/labels/bars-labels.ts +0 -13
- package/src/lib/bars/events/actions/bars-click-actions.ts +0 -23
- package/src/lib/bars/events/actions/bars-hover-actions.ts +0 -43
- package/src/lib/bars/events/actions/bars-hover-move-actions.ts +0 -21
- package/src/lib/bars/events/bars-events.directive.spec.ts +0 -186
- package/src/lib/bars/events/bars-events.directive.ts +0 -235
- package/src/lib/bars/events/bars-interaction-output.ts +0 -17
- package/src/lib/bars/events/bars-tooltip-positioner.ts +0 -24
- package/src/lib/bars/index.ts +0 -18
- package/src/lib/charts/chart/chart-scaling.cy.ts +0 -323
- package/src/lib/charts/chart/chart.component.html +0 -45
- package/src/lib/charts/chart/chart.component.scss +0 -37
- package/src/lib/charts/chart/chart.component.ts +0 -243
- package/src/lib/charts/chart/chart.token.ts +0 -4
- package/src/lib/charts/chart/chart.ts +0 -5
- package/src/lib/charts/chart/config/chart-builder.ts +0 -194
- package/src/lib/charts/chart/config/chart-config.ts +0 -21
- package/src/lib/charts/chart/config/chart-options.ts +0 -11
- package/src/lib/charts/chart.module.ts +0 -10
- package/src/lib/charts/index.ts +0 -9
- package/src/lib/charts/map-chart/map-chart.component.scss +0 -0
- package/src/lib/charts/map-chart/map-chart.component.spec.ts +0 -35
- package/src/lib/charts/map-chart/map-chart.component.ts +0 -61
- package/src/lib/charts/xy-chart/xy-chart.component.spec.ts +0 -34
- package/src/lib/charts/xy-chart/xy-chart.component.ts +0 -65
- package/src/lib/core/common-behaviors/constructor.ts +0 -7
- package/src/lib/core/index.ts +0 -11
- package/src/lib/core/pipes/resize-chart-height.pipe.spec.ts +0 -23
- package/src/lib/core/pipes/resize-chart-height.pipe.ts +0 -20
- package/src/lib/core/styles/_spacing.scss +0 -4
- package/src/lib/core/types/layout.ts +0 -28
- package/src/lib/core/types/scale.ts +0 -6
- package/src/lib/core/types/utility.ts +0 -11
- package/src/lib/core/types/values.ts +0 -10
- package/src/lib/core/utilities/colors.spec.ts +0 -57
- package/src/lib/core/utilities/colors.ts +0 -42
- package/src/lib/core/utilities/fill-utilities.spec.ts +0 -25
- package/src/lib/core/utilities/fill-utilities.ts +0 -21
- package/src/lib/core/utilities/type-guards.spec.ts +0 -55
- package/src/lib/core/utilities/type-guards.ts +0 -33
- package/src/lib/core/utilities/value-format.ts +0 -21
- package/src/lib/core/utilities/values.spec.ts +0 -954
- package/src/lib/core/utilities/values.ts +0 -189
- package/src/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-builder.ts +0 -105
- package/src/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-options.ts +0 -24
- package/src/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position.spec.ts +0 -66
- package/src/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position.ts +0 -72
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/concrete-domain-padding.ts +0 -10
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/domain-padding.ts +0 -76
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/domain-test-utility.ts +0 -130
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over-options.ts +0 -3
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over.ts +0 -37
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel-options.ts +0 -3
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel.ts +0 -73
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/quantitative-domain-padding.cy.ts +0 -978
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval-options.ts +0 -3
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval.ts +0 -27
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig-options.ts +0 -3
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig.ts +0 -30
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-builder.ts +0 -183
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-options.ts +0 -8
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position.spec.ts +0 -28
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position.ts +0 -62
- package/src/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension-options.ts +0 -15
- package/src/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension.spec.ts +0 -155
- package/src/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension.ts +0 -57
- package/src/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-builder.ts +0 -166
- package/src/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-options.ts +0 -10
- package/src/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value.spec.ts +0 -34
- package/src/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value.ts +0 -57
- package/src/lib/data-dimensions/dimension-builder.ts +0 -45
- package/src/lib/data-dimensions/dimension-options.ts +0 -12
- package/src/lib/data-dimensions/dimension.ts +0 -30
- package/src/lib/data-dimensions/index.ts +0 -31
- package/src/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-builder.ts +0 -122
- package/src/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-options.ts +0 -12
- package/src/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position.spec.ts +0 -83
- package/src/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position.ts +0 -101
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder.ts +0 -108
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-options.ts +0 -12
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.cy.ts +0 -384
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.spec.ts +0 -63
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.ts +0 -79
- package/src/lib/data-export/data-export-config.ts +0 -98
- package/src/lib/data-export/data-export.spec.ts +0 -33
- package/src/lib/data-export/data-export.ts +0 -87
- package/src/lib/data-export/index.ts +0 -2
- package/src/lib/dots/config/dots-builder.ts +0 -442
- package/src/lib/dots/config/dots-config.spec.ts +0 -123
- package/src/lib/dots/config/dots-config.ts +0 -81
- package/src/lib/dots/config/dots-options.ts +0 -32
- package/src/lib/dots/dots.component.scss +0 -0
- package/src/lib/dots/dots.component.spec.ts +0 -143
- package/src/lib/dots/dots.component.ts +0 -291
- package/src/lib/dots/dots.cy.ts +0 -594
- package/src/lib/dots/dots.module.ts +0 -9
- package/src/lib/dots/events/actions/dots-hover-actions.ts +0 -19
- package/src/lib/dots/events/actions/dots-hover-move-actions.ts +0 -38
- package/src/lib/dots/events/dots-events.directive.ts +0 -214
- package/src/lib/dots/events/dots-interaction-output.ts +0 -15
- package/src/lib/dots/events/dots-tooltip-positioner.ts +0 -24
- package/src/lib/dots/index.ts +0 -10
- package/src/lib/events/events.directive.ts +0 -184
- package/src/lib/events/events.types.ts +0 -57
- package/src/lib/events/index.ts +0 -4
- package/src/lib/events/interaction-output.ts +0 -34
- package/src/lib/events/tooltip-positioner.ts +0 -15
- package/src/lib/fill-definitions/fill-definitions.ts +0 -4
- package/src/lib/fill-definitions/index.ts +0 -1
- package/src/lib/geographies/config/geographies-builder.ts +0 -224
- package/src/lib/geographies/config/geographies-config.spec.ts +0 -100
- package/src/lib/geographies/config/geographies-config.ts +0 -81
- package/src/lib/geographies/config/geographies-options.ts +0 -37
- package/src/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-builder.ts +0 -212
- package/src/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-options.ts +0 -26
- package/src/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer.spec.ts +0 -119
- package/src/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer.ts +0 -148
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-builder.ts +0 -65
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-options.ts +0 -15
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension.ts +0 -32
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-enums.ts +0 -10
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-types.ts +0 -15
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-builder.ts +0 -18
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-options.ts +0 -8
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins.spec.ts +0 -60
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins.ts +0 -34
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-builder.ts +0 -46
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-options.ts +0 -8
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.cy.ts +0 -437
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.spec.ts +0 -105
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.ts +0 -54
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-builder.ts +0 -65
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-options.ts +0 -9
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins.spec.ts +0 -82
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins.ts +0 -81
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks.cy.ts +0 -378
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-builder.ts +0 -50
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-options.ts +0 -8
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.cy.ts +0 -362
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.spec.ts +0 -72
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.ts +0 -56
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-builder.ts +0 -60
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-options.ts +0 -9
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.cy.ts +0 -307
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.spec.ts +0 -104
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.ts +0 -89
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-builder.ts +0 -62
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-options.ts +0 -8
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.cy.ts +0 -265
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.spec.ts +0 -42
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.ts +0 -42
- package/src/lib/geographies/config/layers/geographies-layer/geographies-layer-builder.ts +0 -116
- package/src/lib/geographies/config/layers/geographies-layer/geographies-layer-options.ts +0 -20
- package/src/lib/geographies/config/layers/geographies-layer/geographies-layer.ts +0 -104
- package/src/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-builder.ts +0 -111
- package/src/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-options.ts +0 -19
- package/src/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer.spec.ts +0 -41
- package/src/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer.ts +0 -67
- package/src/lib/geographies/config/layers/labels/geographies-labels-builder.ts +0 -269
- package/src/lib/geographies/config/layers/labels/geographies-labels-options.ts +0 -45
- package/src/lib/geographies/config/layers/labels/geographies-labels.ts +0 -38
- package/src/lib/geographies/events/actions/geographies-click-actions.ts +0 -21
- package/src/lib/geographies/events/actions/geographies-hover-actions.ts +0 -17
- package/src/lib/geographies/events/actions/geographies-hover-move-actions.ts +0 -19
- package/src/lib/geographies/events/geographies-events.directive.spec.ts +0 -225
- package/src/lib/geographies/events/geographies-events.directive.ts +0 -235
- package/src/lib/geographies/events/geographies-interaction-output.ts +0 -17
- package/src/lib/geographies/events/geographies-tooltip-positioner.ts +0 -23
- package/src/lib/geographies/geographies-feature.ts +0 -16
- package/src/lib/geographies/geographies.component.html +0 -1
- package/src/lib/geographies/geographies.component.scss +0 -0
- package/src/lib/geographies/geographies.component.spec.ts +0 -148
- package/src/lib/geographies/geographies.component.ts +0 -318
- package/src/lib/geographies/geographies.cy.ts +0 -640
- package/src/lib/geographies/geographies.module.ts +0 -9
- package/src/lib/geographies/index.ts +0 -32
- package/src/lib/grouped-bars/config/grouped-bars-builder.ts +0 -66
- package/src/lib/grouped-bars/config/grouped-bars-config.ts +0 -41
- package/src/lib/grouped-bars/config/grouped-bars-options.ts +0 -9
- package/src/lib/grouped-bars/events/grouped-bars-events.directive.ts +0 -221
- package/src/lib/grouped-bars/grouped-bars.component.scss +0 -0
- package/src/lib/grouped-bars/grouped-bars.component.spec.ts +0 -25
- package/src/lib/grouped-bars/grouped-bars.component.ts +0 -94
- package/src/lib/grouped-bars/grouped-bars.module.ts +0 -9
- package/src/lib/grouped-bars/index.ts +0 -10
- package/src/lib/image-download/image-download-config.ts +0 -57
- package/src/lib/image-download/image-download-enums.ts +0 -7
- package/src/lib/image-download/image-download-options.ts +0 -14
- package/src/lib/image-download/image-download.service.ts +0 -70
- package/src/lib/image-download/index.ts +0 -4
- package/src/lib/lines/config/area-fills/area-fills-builder.ts +0 -87
- package/src/lib/lines/config/area-fills/area-fills-options.ts +0 -8
- package/src/lib/lines/config/area-fills/area-fills.ts +0 -14
- package/src/lib/lines/config/lines-builder.ts +0 -242
- package/src/lib/lines/config/lines-config.spec.ts +0 -52
- package/src/lib/lines/config/lines-config.ts +0 -96
- package/src/lib/lines/config/lines-options.ts +0 -19
- package/src/lib/lines/config/stroke/lines-stroke-builder.ts +0 -135
- package/src/lib/lines/config/stroke/lines-stroke-options.ts +0 -6
- package/src/lib/lines/config/stroke/lines-stroke.ts +0 -15
- package/src/lib/lines/events/actions/lines-click-actions.ts +0 -17
- package/src/lib/lines/events/actions/lines-hover-move-actions.ts +0 -113
- package/src/lib/lines/events/actions/lines-marker-click-actions.ts +0 -29
- package/src/lib/lines/events/lines-events.directive.spec.ts +0 -152
- package/src/lib/lines/events/lines-events.directive.ts +0 -310
- package/src/lib/lines/events/lines-interaction-output.ts +0 -17
- package/src/lib/lines/events/lines-tooltip-positioner.ts +0 -24
- package/src/lib/lines/index.ts +0 -17
- package/src/lib/lines/lines.component.scss +0 -0
- package/src/lib/lines/lines.component.spec.ts +0 -95
- package/src/lib/lines/lines.component.ts +0 -425
- package/src/lib/lines/lines.cy.ts +0 -738
- package/src/lib/lines/lines.module.ts +0 -9
- package/src/lib/map-legend/continuous-legend/continuous-legend.component.html +0 -28
- package/src/lib/map-legend/continuous-legend/continuous-legend.component.scss +0 -76
- package/src/lib/map-legend/continuous-legend/continuous-legend.component.spec.ts +0 -61
- package/src/lib/map-legend/continuous-legend/continuous-legend.component.ts +0 -82
- package/src/lib/map-legend/discontinuous-legend/discontinuous-legend.component.html +0 -40
- package/src/lib/map-legend/discontinuous-legend/discontinuous-legend.component.scss +0 -141
- package/src/lib/map-legend/discontinuous-legend/discontinuous-legend.component.spec.ts +0 -75
- package/src/lib/map-legend/discontinuous-legend/discontinuous-legend.component.ts +0 -57
- package/src/lib/map-legend/index.ts +0 -2
- package/src/lib/map-legend/map-legend-base.spec.ts +0 -190
- package/src/lib/map-legend/map-legend-base.ts +0 -99
- package/src/lib/map-legend/map-legend.component.html +0 -24
- package/src/lib/map-legend/map-legend.component.scss +0 -0
- package/src/lib/map-legend/map-legend.component.spec.ts +0 -125
- package/src/lib/map-legend/map-legend.component.ts +0 -80
- package/src/lib/map-legend/map-legend.module.ts +0 -8
- package/src/lib/marks/aux-marks/aux-marks.ts +0 -18
- package/src/lib/marks/aux-marks/config/aux-marks-builder.ts +0 -25
- package/src/lib/marks/aux-marks/config/aux-marks-config.ts +0 -6
- package/src/lib/marks/config/marks-config.ts +0 -14
- package/src/lib/marks/config/marks-options.ts +0 -9
- package/src/lib/marks/index.ts +0 -15
- package/src/lib/marks/map-marks/map-aux-marks/map-aux-marks.spec.ts +0 -74
- package/src/lib/marks/map-marks/map-aux-marks/map-aux-marks.ts +0 -40
- package/src/lib/marks/map-marks/map-primary-marks/map-primary-marks.spec.ts +0 -79
- package/src/lib/marks/map-marks/map-primary-marks/map-primary-marks.ts +0 -63
- package/src/lib/marks/marks.ts +0 -39
- package/src/lib/marks/primary-marks/config/primary-marks-builder.ts +0 -75
- package/src/lib/marks/primary-marks/config/primary-marks-config.ts +0 -9
- package/src/lib/marks/primary-marks/primary-marks-base.spec.ts +0 -58
- package/src/lib/marks/primary-marks/primary-marks.ts +0 -43
- package/src/lib/marks/xy-marks/xy-aux-marks/xy-aux-marks.ts +0 -40
- package/src/lib/marks/xy-marks/xy-marks-config.ts +0 -5
- package/src/lib/marks/xy-marks/xy-marks.ts +0 -10
- package/src/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks-config.ts +0 -7
- package/src/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks.spec.ts +0 -186
- package/src/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks.ts +0 -72
- package/src/lib/point-markers/index.ts +0 -3
- package/src/lib/point-markers/point-markers-builder.ts +0 -93
- package/src/lib/point-markers/point-markers-options.ts +0 -6
- package/src/lib/point-markers/point-markers.ts +0 -13
- package/src/lib/quantitative-rules/config/labels/quantitative-rules-labels-builder.ts +0 -162
- package/src/lib/quantitative-rules/config/labels/quantitative-rules-labels-options.ts +0 -17
- package/src/lib/quantitative-rules/config/labels/quantitative-rules-labels.ts +0 -26
- package/src/lib/quantitative-rules/config/quantitative-rules-builder.ts +0 -134
- package/src/lib/quantitative-rules/config/quantitative-rules-config.ts +0 -21
- package/src/lib/quantitative-rules/config/quantitative-rules-dimensions.ts +0 -20
- package/src/lib/quantitative-rules/config/quantitative-rules-options.ts +0 -13
- package/src/lib/quantitative-rules/index.ts +0 -6
- package/src/lib/quantitative-rules/quantitative-rules.component.scss +0 -3
- package/src/lib/quantitative-rules/quantitative-rules.component.spec.ts +0 -50
- package/src/lib/quantitative-rules/quantitative-rules.component.ts +0 -224
- package/src/lib/quantitative-rules/quantitative-rules.cy.ts +0 -549
- package/src/lib/quantitative-rules/quantitative-rules.module.ts +0 -8
- package/src/lib/stacked-area/config/stacked-area-builder.ts +0 -264
- package/src/lib/stacked-area/config/stacked-area-config.spec.ts +0 -107
- package/src/lib/stacked-area/config/stacked-area-config.ts +0 -109
- package/src/lib/stacked-area/config/stacked-area-options.ts +0 -28
- package/src/lib/stacked-area/events/actions/stacked-area-hover-move-actions.ts +0 -17
- package/src/lib/stacked-area/events/stacked-area-events.directive.spec.ts +0 -168
- package/src/lib/stacked-area/events/stacked-area-events.directive.ts +0 -272
- package/src/lib/stacked-area/events/stacked-area-interaction-output.ts +0 -33
- package/src/lib/stacked-area/events/stacked-area-tooltip-positioner.ts +0 -37
- package/src/lib/stacked-area/index.ts +0 -7
- package/src/lib/stacked-area/stacked-area.component.scss +0 -0
- package/src/lib/stacked-area/stacked-area.component.spec.ts +0 -41
- package/src/lib/stacked-area/stacked-area.component.ts +0 -241
- package/src/lib/stacked-area/stacked-area.module.ts +0 -9
- package/src/lib/stacked-bars/config/stacked-bars-builder.ts +0 -109
- package/src/lib/stacked-bars/config/stacked-bars-config.spec.ts +0 -122
- package/src/lib/stacked-bars/config/stacked-bars-config.ts +0 -79
- package/src/lib/stacked-bars/config/stacked-bars-options.ts +0 -16
- package/src/lib/stacked-bars/events/actions/stacked-bars-click-actions.ts +0 -23
- package/src/lib/stacked-bars/events/actions/stacked-bars-hover-actions.ts +0 -22
- package/src/lib/stacked-bars/events/actions/stacked-bars-hover-move-actions.ts +0 -21
- package/src/lib/stacked-bars/events/stacked-bars-events.directive.spec.ts +0 -266
- package/src/lib/stacked-bars/events/stacked-bars-events.directive.ts +0 -240
- package/src/lib/stacked-bars/index.ts +0 -10
- package/src/lib/stacked-bars/stacked-bars.component.scss +0 -0
- package/src/lib/stacked-bars/stacked-bars.component.spec.ts +0 -25
- package/src/lib/stacked-bars/stacked-bars.component.ts +0 -158
- package/src/lib/stacked-bars/stacked-bars.module.ts +0 -9
- package/src/lib/stroke/base/stroke-base-options.ts +0 -7
- package/src/lib/stroke/base/stroke-base.ts +0 -9
- package/src/lib/stroke/index.ts +0 -5
- package/src/lib/stroke/stroke-builder.ts +0 -103
- package/src/lib/stroke/stroke-options.ts +0 -5
- package/src/lib/stroke/stroke.ts +0 -12
- package/src/lib/svg-text-wrap/index.ts +0 -3
- package/src/lib/svg-text-wrap/svg-text-wrap-builder.ts +0 -105
- package/src/lib/svg-text-wrap/svg-text-wrap-options.ts +0 -8
- package/src/lib/svg-text-wrap/svg-text-wrap.ts +0 -137
- package/src/lib/testing/data/continent-population-year-data.ts +0 -126
- package/src/lib/testing/data/country-area-continent.ts +0 -59
- package/src/lib/testing/data/state-population-income-year-data.ts +0 -123
- package/src/lib/testing/stubs/bars.component.stub.ts +0 -12
- package/src/lib/testing/stubs/chart.component.stub.ts +0 -6
- package/src/lib/testing/stubs/click.directive.stub.ts +0 -15
- package/src/lib/testing/stubs/core/destroy-ref.stub.ts +0 -9
- package/src/lib/testing/stubs/core/overlay-ref.stub.ts +0 -13
- package/src/lib/testing/stubs/core/overlay.stub.ts +0 -8
- package/src/lib/testing/stubs/event.directive.stub.ts +0 -10
- package/src/lib/testing/stubs/hover-move.directive.stub.ts +0 -17
- package/src/lib/testing/stubs/hover.directive.stub.ts +0 -14
- package/src/lib/testing/stubs/input-event.directive.stub.ts +0 -9
- package/src/lib/testing/stubs/lines.component.stub.ts +0 -13
- package/src/lib/testing/stubs/map-aux-marks.stub.ts +0 -10
- package/src/lib/testing/stubs/map-chart.component.stub.ts +0 -3
- package/src/lib/testing/stubs/map-legend-content.stub.ts +0 -16
- package/src/lib/testing/stubs/map-legend.component.stub.ts +0 -10
- package/src/lib/testing/stubs/map-primary-marks.stub.ts +0 -16
- package/src/lib/testing/stubs/ordinal-axis.stub.ts +0 -18
- package/src/lib/testing/stubs/primary-marks.stub.ts +0 -18
- package/src/lib/testing/stubs/quantitative-axis.stub.ts +0 -18
- package/src/lib/testing/stubs/services/main.service.stub.ts +0 -5
- package/src/lib/testing/stubs/services/utilities.service.stub.ts +0 -7
- package/src/lib/testing/stubs/stacked-area.component.stub.ts +0 -13
- package/src/lib/testing/stubs/x-axis.stub.ts +0 -10
- package/src/lib/testing/stubs/xy-axis.class.stub.ts +0 -20
- package/src/lib/testing/stubs/xy-axis.stub.ts +0 -44
- package/src/lib/testing/stubs/xy-chart.component.stub.ts +0 -5
- package/src/lib/testing/stubs/xy-data-marks.stub.ts +0 -15
- package/src/lib/testing/stubs/y-axis.stub.ts +0 -15
- package/src/lib/tooltips/config/tooltip.ts +0 -11
- package/src/lib/tooltips/html-tooltip/config/html-tooltip-builder.ts +0 -134
- package/src/lib/tooltips/html-tooltip/config/html-tooltip-config.ts +0 -21
- package/src/lib/tooltips/html-tooltip/config/html-tooltip-options.ts +0 -12
- package/src/lib/tooltips/html-tooltip/config/position/tooltip-position-builder.ts +0 -191
- package/src/lib/tooltips/html-tooltip/config/position/tooltip-position.ts +0 -42
- package/src/lib/tooltips/html-tooltip/config/size/tooltip-size-builder.ts +0 -75
- package/src/lib/tooltips/html-tooltip/config/size/tooltip-size-options.ts +0 -8
- package/src/lib/tooltips/html-tooltip/config/size/tooltip-size.ts +0 -15
- package/src/lib/tooltips/html-tooltip/html-tooltip.directive.spec.ts +0 -537
- package/src/lib/tooltips/html-tooltip/html-tooltip.directive.ts +0 -210
- package/src/lib/tooltips/html-tooltip/html-tooltip.module.ts +0 -16
- package/src/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.html +0 -41
- package/src/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.scss +0 -63
- package/src/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.ts +0 -19
- package/src/lib/tooltips/index.ts +0 -11
- package/src/lib/tooltips/svg-tooltip/config/svg-tooltip.ts +0 -5
- package/src/lib/xy-background/index.ts +0 -2
- package/src/lib/xy-background/xy-background.component.html +0 -10
- package/src/lib/xy-background/xy-background.component.scss +0 -0
- package/src/lib/xy-background/xy-background.component.spec.ts +0 -24
- package/src/lib/xy-background/xy-background.component.ts +0 -19
- package/src/lib/xy-background/xy-background.module.ts +0 -8
- package/src/public-api.ts +0 -26
- package/src/test.ts +0 -15
- package/tsconfig.doc.json +0 -4
- package/tsconfig.json +0 -20
- package/tsconfig.lib.json +0 -23
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -10
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { Directive, EventEmitter, Input, Output, inject } from '@angular/core';
|
|
2
|
-
import { InternSet, least } from 'd3';
|
|
3
|
-
import { Observable, map } from 'rxjs';
|
|
4
|
-
import { ContinuousValue, DataValue } from '../../core/types/values';
|
|
5
|
-
import { isDate } from '../../core/utilities/type-guards';
|
|
6
|
-
import {
|
|
7
|
-
DEFAULT_TOOLTIP_Y_OFFSET,
|
|
8
|
-
EventAction,
|
|
9
|
-
EventType,
|
|
10
|
-
EventsDirective,
|
|
11
|
-
HoverMoveAction,
|
|
12
|
-
InputEventAction,
|
|
13
|
-
MarksHost,
|
|
14
|
-
UnlistenFunction,
|
|
15
|
-
} from '../../events';
|
|
16
|
-
import { TooltipPosition } from '../../tooltips';
|
|
17
|
-
import { STACKED_AREA, StackedAreaComponent } from '../stacked-area.component';
|
|
18
|
-
import { StackedAreaInteractionOutput } from './stacked-area-interaction-output';
|
|
19
|
-
import { StackedAreaTooltipPositioner } from './stacked-area-tooltip-positioner';
|
|
20
|
-
|
|
21
|
-
export type StackedAreaHost<
|
|
22
|
-
Datum,
|
|
23
|
-
TCategoricalValue extends DataValue,
|
|
24
|
-
TStackedAreaComponent extends StackedAreaComponent<Datum, TCategoricalValue> =
|
|
25
|
-
StackedAreaComponent<Datum, TCategoricalValue>,
|
|
26
|
-
> = MarksHost<
|
|
27
|
-
StackedAreaInteractionOutput<Datum, TCategoricalValue>,
|
|
28
|
-
TStackedAreaComponent
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
|
-
@Directive({
|
|
32
|
-
selector: '[vicStackedAreaEvents]',
|
|
33
|
-
})
|
|
34
|
-
export class StackedAreaEventsDirective<
|
|
35
|
-
Datum,
|
|
36
|
-
TCategoricalValue extends DataValue,
|
|
37
|
-
TStackedAreaComponent extends StackedAreaComponent<Datum, TCategoricalValue> =
|
|
38
|
-
StackedAreaComponent<Datum, TCategoricalValue>,
|
|
39
|
-
>
|
|
40
|
-
extends EventsDirective<StackedAreaHost<Datum, TCategoricalValue>>
|
|
41
|
-
implements StackedAreaHost<Datum, TCategoricalValue>
|
|
42
|
-
{
|
|
43
|
-
@Input()
|
|
44
|
-
hoverMoveActions:
|
|
45
|
-
| HoverMoveAction<
|
|
46
|
-
StackedAreaHost<Datum, TCategoricalValue>,
|
|
47
|
-
StackedAreaInteractionOutput<Datum, TCategoricalValue>
|
|
48
|
-
>[]
|
|
49
|
-
| null;
|
|
50
|
-
@Input()
|
|
51
|
-
clickActions:
|
|
52
|
-
| EventAction<
|
|
53
|
-
StackedAreaHost<Datum, TCategoricalValue>,
|
|
54
|
-
StackedAreaInteractionOutput<Datum, TCategoricalValue>
|
|
55
|
-
>[]
|
|
56
|
-
| null;
|
|
57
|
-
@Input()
|
|
58
|
-
inputEventActions: InputEventAction<
|
|
59
|
-
StackedAreaHost<Datum, TCategoricalValue>,
|
|
60
|
-
StackedAreaInteractionOutput<Datum, TCategoricalValue>
|
|
61
|
-
>[];
|
|
62
|
-
@Output() interactionOutput = new EventEmitter<StackedAreaInteractionOutput<
|
|
63
|
-
Datum,
|
|
64
|
-
TCategoricalValue
|
|
65
|
-
> | null>();
|
|
66
|
-
|
|
67
|
-
closestXIndicies: number[];
|
|
68
|
-
categoryYMin: number;
|
|
69
|
-
categoryYMax: number;
|
|
70
|
-
categoryIndex: number;
|
|
71
|
-
|
|
72
|
-
public stackedArea = inject<TStackedAreaComponent>(STACKED_AREA);
|
|
73
|
-
|
|
74
|
-
get marks(): StackedAreaComponent<Datum, TCategoricalValue> {
|
|
75
|
-
return this.stackedArea;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
getElements(): Observable<Element[]> {
|
|
79
|
-
return this.stackedArea.stackedAreas$.pipe(map((sel) => sel.nodes()));
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
setupListeners(elements: Element[]): UnlistenFunction[] {
|
|
83
|
-
if (this.inputEventActions?.length && this.inputEvent$) {
|
|
84
|
-
this.events.push(EventType.Input);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return this.bindEventListeners(
|
|
88
|
-
elements,
|
|
89
|
-
this.buildInteractionListeners({
|
|
90
|
-
hoverMove: this.hoverMoveActions?.length && {
|
|
91
|
-
pointerenter: (e, el) => this.onEnter(e, el),
|
|
92
|
-
pointermove: (e, el) => this.onMove(e, el),
|
|
93
|
-
pointerleave: (e, el) => this.onLeave(e, el),
|
|
94
|
-
},
|
|
95
|
-
click: this.clickActions?.length && {
|
|
96
|
-
click: (e, el) => this.onClick(e, el),
|
|
97
|
-
},
|
|
98
|
-
})
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
103
|
-
onEnter(_: PointerEvent, __: Element): void {
|
|
104
|
-
if (this.isEventAllowed(EventType.HoverMove)) {
|
|
105
|
-
this.runActions(this.hoverMoveActions, (a) => {
|
|
106
|
-
if (a.initialize) {
|
|
107
|
-
a.initialize(this.asHost());
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
114
|
-
onMove(event: PointerEvent, _: Element): void {
|
|
115
|
-
if (this.isEventAllowed(EventType.HoverMove)) {
|
|
116
|
-
this.setPositionsFromPointer(event);
|
|
117
|
-
if (this.pointerIsInChartArea()) {
|
|
118
|
-
this.setClosestXIndicies();
|
|
119
|
-
this.setClosestDatumPosition();
|
|
120
|
-
this.hoverMoveActions.forEach((action) =>
|
|
121
|
-
action.onStart(this.asHost())
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
128
|
-
onLeave(_: PointerEvent, __: Element): void {
|
|
129
|
-
if (this.isEventAllowed(EventType.HoverMove)) {
|
|
130
|
-
this.hoverMoveActions.forEach((action) => action.onEnd(this.asHost()));
|
|
131
|
-
}
|
|
132
|
-
this.resetDirective();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
136
|
-
onClick(event: PointerEvent, _: Element): void {
|
|
137
|
-
if (this.isEventAllowed(EventType.Click)) {
|
|
138
|
-
this.setPositionsFromPointer(event);
|
|
139
|
-
this.runActions(this.clickActions, (a) => a.onStart(this.asHost()));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
onInputEvent(inputValue: unknown): void {
|
|
144
|
-
if (this.isEventAllowed(EventType.Input)) {
|
|
145
|
-
if (inputValue === null || inputValue === undefined) {
|
|
146
|
-
this.inputEventActions.forEach((action) =>
|
|
147
|
-
action.onEnd(this.asHost(), inputValue)
|
|
148
|
-
);
|
|
149
|
-
} else {
|
|
150
|
-
this.inputEventActions.forEach((action) =>
|
|
151
|
-
action.onStart(this.asHost(), inputValue)
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
onClickRemove(): void {
|
|
158
|
-
if (!this.preventAction.click) {
|
|
159
|
-
this.runActions(this.clickActions, (a) => a.onEnd(this.asHost()));
|
|
160
|
-
this.resetDirective();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
setPositionsFromElement(): void {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
pointerIsInChartArea(): boolean {
|
|
169
|
-
return (
|
|
170
|
-
this.positionX > this.stackedArea.ranges.x[0] &&
|
|
171
|
-
this.positionX < this.stackedArea.ranges.x[1] &&
|
|
172
|
-
this.positionY > this.stackedArea.ranges.y[1] &&
|
|
173
|
-
this.positionY < this.stackedArea.ranges.y[0]
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
setClosestXIndicies(): void {
|
|
178
|
-
const uniqueXValues = [
|
|
179
|
-
...new InternSet<ContinuousValue>(this.stackedArea.config.x.values),
|
|
180
|
-
];
|
|
181
|
-
const closestXValue = least(uniqueXValues, (x) =>
|
|
182
|
-
Math.abs(this.stackedArea.scales.x(x) - this.positionX)
|
|
183
|
-
);
|
|
184
|
-
if (isDate(closestXValue)) {
|
|
185
|
-
this.closestXIndicies = this.stackedArea.config.valueIndices.filter(
|
|
186
|
-
(i) =>
|
|
187
|
-
(this.stackedArea.config.x.values[i] as Date).getTime() ===
|
|
188
|
-
closestXValue.getTime()
|
|
189
|
-
);
|
|
190
|
-
} else {
|
|
191
|
-
this.closestXIndicies = this.stackedArea.config.valueIndices.filter(
|
|
192
|
-
(i) => this.stackedArea.config.x.values[i] === closestXValue
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
setClosestDatumPosition(): void {
|
|
198
|
-
const dataAtXValue = this.stackedArea.config.series
|
|
199
|
-
.flatMap((strat) => strat)
|
|
200
|
-
.filter((d) => this.closestXIndicies.includes(d.i));
|
|
201
|
-
const coordinateData = dataAtXValue.map((d) => ({
|
|
202
|
-
categoryYMin: this.stackedArea.scales.y(d[1]),
|
|
203
|
-
categoryYMax: this.stackedArea.scales.y(d[0]),
|
|
204
|
-
i: d.i,
|
|
205
|
-
}));
|
|
206
|
-
const closestDatumIndex = coordinateData.findIndex(
|
|
207
|
-
(d) =>
|
|
208
|
-
this.positionY >= d.categoryYMin && this.positionY <= d.categoryYMax
|
|
209
|
-
);
|
|
210
|
-
let closestDatum;
|
|
211
|
-
if (closestDatumIndex !== -1) {
|
|
212
|
-
closestDatum = coordinateData[closestDatumIndex];
|
|
213
|
-
}
|
|
214
|
-
this.categoryYMin = closestDatum?.categoryYMin;
|
|
215
|
-
this.categoryYMax = closestDatum?.categoryYMax;
|
|
216
|
-
this.categoryIndex = closestDatum ? closestDatumIndex : undefined;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
getInteractionOutput(
|
|
220
|
-
type: EventType
|
|
221
|
-
): StackedAreaInteractionOutput<Datum, TCategoricalValue> {
|
|
222
|
-
const tooltipData = this.stackedArea.getTooltipData(
|
|
223
|
-
this.closestXIndicies,
|
|
224
|
-
this.categoryYMin,
|
|
225
|
-
this.categoryYMax,
|
|
226
|
-
this.categoryIndex
|
|
227
|
-
);
|
|
228
|
-
const position = new StackedAreaTooltipPositioner(tooltipData.anchor);
|
|
229
|
-
|
|
230
|
-
return {
|
|
231
|
-
...tooltipData,
|
|
232
|
-
defaultPosition: position.fromAnchor('area', {
|
|
233
|
-
x: 0,
|
|
234
|
-
y: DEFAULT_TOOLTIP_Y_OFFSET,
|
|
235
|
-
}),
|
|
236
|
-
defaultPositionFromArea: position.fromAnchor('area', {
|
|
237
|
-
x: 0,
|
|
238
|
-
y: DEFAULT_TOOLTIP_Y_OFFSET,
|
|
239
|
-
}),
|
|
240
|
-
defaultPositionFromChart: position.fromAnchor('chart', {
|
|
241
|
-
x: 0,
|
|
242
|
-
y: DEFAULT_TOOLTIP_Y_OFFSET,
|
|
243
|
-
}),
|
|
244
|
-
fromAnchor: (
|
|
245
|
-
relativeTo: 'area' | 'chart',
|
|
246
|
-
offset?: Partial<{ x: number; y: number }>
|
|
247
|
-
) => {
|
|
248
|
-
return position.fromAnchor(relativeTo, {
|
|
249
|
-
x: offset?.x ?? 0,
|
|
250
|
-
y: offset?.y ?? DEFAULT_TOOLTIP_Y_OFFSET,
|
|
251
|
-
});
|
|
252
|
-
},
|
|
253
|
-
customPosition: (positions: TooltipPosition[]) => {
|
|
254
|
-
return position.customPosition(positions);
|
|
255
|
-
},
|
|
256
|
-
type,
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
emitInteractionOutput(
|
|
261
|
-
output: StackedAreaInteractionOutput<Datum, TCategoricalValue>
|
|
262
|
-
): void {
|
|
263
|
-
this.interactionOutput.emit(output);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
resetDirective(): void {
|
|
267
|
-
this.closestXIndicies = [];
|
|
268
|
-
this.categoryYMin = undefined;
|
|
269
|
-
this.categoryYMax = undefined;
|
|
270
|
-
this.categoryIndex = undefined;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DataValue } from '../../core/types/values';
|
|
2
|
-
import { InteractionOutput } from '../../events/interaction-output';
|
|
3
|
-
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
4
|
-
import { StackedAreaTooltipDatum } from '../stacked-area.component';
|
|
5
|
-
|
|
6
|
-
export interface StackedAreaInteractionAnchor {
|
|
7
|
-
x: number;
|
|
8
|
-
yAreaTop: number;
|
|
9
|
-
yAreaBottom: number;
|
|
10
|
-
yChartTop: number;
|
|
11
|
-
yChartBottom: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface StackedAreaInteractionOutput<
|
|
15
|
-
Datum,
|
|
16
|
-
TCategoricalValue extends DataValue,
|
|
17
|
-
> extends InteractionOutput<StackedAreaInteractionAnchor> {
|
|
18
|
-
data: StackedAreaTooltipDatum<Datum, TCategoricalValue>[];
|
|
19
|
-
hoveredAreaDatum: StackedAreaTooltipDatum<Datum, TCategoricalValue>;
|
|
20
|
-
defaultPositionFromArea: HtmlTooltipCdkManagedPosition;
|
|
21
|
-
defaultPositionFromChart: HtmlTooltipCdkManagedPosition;
|
|
22
|
-
/**
|
|
23
|
-
* A method that positions the tooltip with a user specified offset from the tooltip's anchor point.
|
|
24
|
-
*
|
|
25
|
-
* @param offset - Optional offset from the anchor's x and y position.
|
|
26
|
-
* If not provided, defaults to { x: 0, y: 0 }.
|
|
27
|
-
* If provided, the x value is added to the anchor's x position (moves tooltip right) and the y value is subtracted from the anchor's y position (moves tooltip up).
|
|
28
|
-
*/
|
|
29
|
-
fromAnchor: (
|
|
30
|
-
relativeTo: 'area' | 'chart',
|
|
31
|
-
offset?: Partial<{ x: number; y: number }>
|
|
32
|
-
) => HtmlTooltipCdkManagedPosition;
|
|
33
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { TooltipPositioner } from '../../events/tooltip-positioner';
|
|
2
|
-
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
-
import { TooltipPositionBuilder } from '../../tooltips/html-tooltip/config/position/tooltip-position-builder';
|
|
4
|
-
|
|
5
|
-
const DEFAULT_POSITIONS = [
|
|
6
|
-
new TooltipPositionBuilder().fromTopLeft().attachBottomCenter().getPosition(),
|
|
7
|
-
new TooltipPositionBuilder().fromTopLeft().attachBottomLeft().getPosition(),
|
|
8
|
-
new TooltipPositionBuilder().fromTopLeft().attachBottomRight().getPosition(),
|
|
9
|
-
];
|
|
10
|
-
|
|
11
|
-
export class StackedAreaTooltipPositioner extends TooltipPositioner {
|
|
12
|
-
constructor(
|
|
13
|
-
private anchor: {
|
|
14
|
-
x: number;
|
|
15
|
-
yAreaTop: number;
|
|
16
|
-
yAreaBottom: number;
|
|
17
|
-
yChartTop: number;
|
|
18
|
-
yChartBottom: number;
|
|
19
|
-
}
|
|
20
|
-
) {
|
|
21
|
-
super();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
fromAnchor(
|
|
25
|
-
relativeTo: 'area' | 'chart',
|
|
26
|
-
offset: { x: number; y: number }
|
|
27
|
-
): HtmlTooltipCdkManagedPosition {
|
|
28
|
-
const positionsWithOffsets = new TooltipPositionBuilder().applyOffsets(
|
|
29
|
-
DEFAULT_POSITIONS,
|
|
30
|
-
this.anchor.x + offset.x,
|
|
31
|
-
relativeTo === 'area'
|
|
32
|
-
? this.anchor.yAreaTop - offset.y
|
|
33
|
-
: this.anchor.yChartTop - offset.y
|
|
34
|
-
);
|
|
35
|
-
return new HtmlTooltipCdkManagedPosition(positionsWithOffsets);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './config/stacked-area-builder';
|
|
2
|
-
export * from './config/stacked-area-config';
|
|
3
|
-
export * from './config/stacked-area-options';
|
|
4
|
-
export * from './events/actions/stacked-area-hover-move-actions';
|
|
5
|
-
export * from './events/stacked-area-events.directive';
|
|
6
|
-
export * from './stacked-area.component';
|
|
7
|
-
export * from './stacked-area.module';
|
|
File without changes
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
-
import { XyChartComponent } from '../charts/xy-chart/xy-chart.component';
|
|
4
|
-
import { VicStackedAreaConfigBuilder } from './config/stacked-area-builder';
|
|
5
|
-
import { StackedAreaComponent } from './stacked-area.component';
|
|
6
|
-
|
|
7
|
-
type Datum = { date: Date; value: number; category: string };
|
|
8
|
-
|
|
9
|
-
describe('StackedAreaComponent', () => {
|
|
10
|
-
let component: StackedAreaComponent<any, string>;
|
|
11
|
-
let fixture: ComponentFixture<StackedAreaComponent<any, string>>;
|
|
12
|
-
|
|
13
|
-
beforeEach(async () => {
|
|
14
|
-
await TestBed.configureTestingModule({
|
|
15
|
-
imports: [StackedAreaComponent],
|
|
16
|
-
providers: [XyChartComponent],
|
|
17
|
-
}).compileComponents();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
beforeEach(() => {
|
|
21
|
-
fixture = TestBed.createComponent(StackedAreaComponent<any, string>);
|
|
22
|
-
component = fixture.componentInstance;
|
|
23
|
-
component.config = new VicStackedAreaConfigBuilder<Datum, string>()
|
|
24
|
-
.data([
|
|
25
|
-
{ date: new Date('2020-01-01'), value: 1, category: 'a' },
|
|
26
|
-
{ date: new Date('2020-01-02'), value: 2, category: 'a' },
|
|
27
|
-
{ date: new Date('2020-01-03'), value: 3, category: 'a' },
|
|
28
|
-
{ date: new Date('2020-01-01'), value: 4, category: 'b' },
|
|
29
|
-
{ date: new Date('2020-01-02'), value: 5, category: 'b' },
|
|
30
|
-
{ date: new Date('2020-01-03'), value: 6, category: 'b' },
|
|
31
|
-
])
|
|
32
|
-
.y((dimension) => dimension.valueAccessor((d) => d.value))
|
|
33
|
-
.xDate((dimension) => dimension.valueAccessor((d) => d.date))
|
|
34
|
-
.color((dimension) => dimension.valueAccessor((d) => d.category))
|
|
35
|
-
.getConfig();
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it('should create', () => {
|
|
39
|
-
expect(component).toBeTruthy();
|
|
40
|
-
});
|
|
41
|
-
});
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
ElementRef,
|
|
5
|
-
inject,
|
|
6
|
-
InjectionToken,
|
|
7
|
-
NgZone,
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import { area, select, Selection, Transition } from 'd3';
|
|
10
|
-
import { BehaviorSubject, filter } from 'rxjs';
|
|
11
|
-
import { ChartComponent, XyChartComponent, XyChartScales } from '../charts';
|
|
12
|
-
import { GenericScale } from '../core';
|
|
13
|
-
import { DataValue } from '../core/types/values';
|
|
14
|
-
import { ValueUtilities } from '../core/utilities/values';
|
|
15
|
-
import { VIC_PRIMARY_MARKS } from '../marks/primary-marks/primary-marks';
|
|
16
|
-
import { VicXyPrimaryMarks } from '../marks/xy-marks/xy-primary-marks/xy-primary-marks';
|
|
17
|
-
import {
|
|
18
|
-
StackedAreaConfig,
|
|
19
|
-
StackedAreaDatum,
|
|
20
|
-
} from './config/stacked-area-config';
|
|
21
|
-
import { StackedAreaInteractionAnchor } from './events/stacked-area-interaction-output';
|
|
22
|
-
|
|
23
|
-
// Ideally we would be able to use generic T with the component, but Angular doesn't yet support this, so we use unknown instead
|
|
24
|
-
// https://github.com/angular/angular/issues/46815, https://github.com/angular/angular/pull/47461
|
|
25
|
-
export const STACKED_AREA = new InjectionToken<
|
|
26
|
-
StackedAreaComponent<unknown, DataValue>
|
|
27
|
-
>('StackedAreaComponent');
|
|
28
|
-
|
|
29
|
-
export interface StackedAreaTooltipDatum<
|
|
30
|
-
Datum,
|
|
31
|
-
TCategoricalValue extends DataValue,
|
|
32
|
-
> {
|
|
33
|
-
datum: Datum;
|
|
34
|
-
color: string;
|
|
35
|
-
values: {
|
|
36
|
-
x: string;
|
|
37
|
-
y: string;
|
|
38
|
-
color: TCategoricalValue;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type StackedAreaSvgElements = 'area';
|
|
43
|
-
|
|
44
|
-
export type StackedAreaSelection<CategoricalDomain> = Selection<
|
|
45
|
-
SVGPathElement,
|
|
46
|
-
StackedAreaDatum<CategoricalDomain>,
|
|
47
|
-
SVGGElement,
|
|
48
|
-
unknown
|
|
49
|
-
>;
|
|
50
|
-
|
|
51
|
-
@Component({
|
|
52
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
53
|
-
selector: '[vic-primary-marks-stacked-area]',
|
|
54
|
-
template: '',
|
|
55
|
-
styleUrls: ['./stacked-area.component.scss'],
|
|
56
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
57
|
-
providers: [
|
|
58
|
-
{ provide: VIC_PRIMARY_MARKS, useExisting: StackedAreaComponent },
|
|
59
|
-
{ provide: STACKED_AREA, useExisting: StackedAreaComponent },
|
|
60
|
-
{ provide: ChartComponent, useExisting: XyChartComponent },
|
|
61
|
-
],
|
|
62
|
-
host: {
|
|
63
|
-
'[class]': 'config.marksClass',
|
|
64
|
-
},
|
|
65
|
-
})
|
|
66
|
-
export class StackedAreaComponent<
|
|
67
|
-
Datum,
|
|
68
|
-
TCategoricalValue extends DataValue,
|
|
69
|
-
> extends VicXyPrimaryMarks<
|
|
70
|
-
Datum,
|
|
71
|
-
StackedAreaConfig<Datum, TCategoricalValue>
|
|
72
|
-
> {
|
|
73
|
-
area;
|
|
74
|
-
areas;
|
|
75
|
-
stackedAreas: BehaviorSubject<StackedAreaSelection<TCategoricalValue>> =
|
|
76
|
-
new BehaviorSubject(null);
|
|
77
|
-
stackedAreas$ = this.stackedAreas.asObservable().pipe(filter((s) => !!s));
|
|
78
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
|
-
override scales: { color: GenericScale<any, any> } & XyChartScales = {
|
|
80
|
-
x: undefined,
|
|
81
|
-
y: undefined,
|
|
82
|
-
color: undefined,
|
|
83
|
-
useTransition: undefined,
|
|
84
|
-
};
|
|
85
|
-
protected elRef = inject<ElementRef<SVGSVGElement>>(ElementRef);
|
|
86
|
-
private zone = inject(NgZone);
|
|
87
|
-
|
|
88
|
-
get class(): Record<StackedAreaSvgElements, string> {
|
|
89
|
-
return {
|
|
90
|
-
area: this.config.marksClass + '-area',
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
setChartScalesFromRanges(useTransition: boolean): void {
|
|
95
|
-
const x = this.config.x.getScaleFromRange(this.ranges.x);
|
|
96
|
-
const y = this.config.y.getScaleFromRange(this.ranges.y);
|
|
97
|
-
this.scales.color = this.config.color.getScale();
|
|
98
|
-
this.zone.run(() => {
|
|
99
|
-
this.chart.updateScales({
|
|
100
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
101
|
-
x: x as unknown as GenericScale<any, any>,
|
|
102
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
103
|
-
y: y as unknown as GenericScale<any, any>,
|
|
104
|
-
useTransition,
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
drawMarks(): void {
|
|
110
|
-
const transitionDuration = this.getTransitionDuration();
|
|
111
|
-
this.setArea();
|
|
112
|
-
this.drawAreas(transitionDuration);
|
|
113
|
-
this.updateStackedAreaElements();
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
setArea(): void {
|
|
117
|
-
this.area = area()
|
|
118
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
119
|
-
.x(({ i }: any) => this.scales.x(this.config.x.values[i]))
|
|
120
|
-
.y0(([y1]) => this.scales.y(y1))
|
|
121
|
-
.y1(([, y2]) => this.scales.y(y2))
|
|
122
|
-
.curve(this.config.curve);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
drawAreas(transitionDuration: number): void {
|
|
126
|
-
const t = select(this.chart.svgRef.nativeElement)
|
|
127
|
-
.transition()
|
|
128
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
129
|
-
.duration(transitionDuration) as Transition<SVGSVGElement, any, any, any>;
|
|
130
|
-
|
|
131
|
-
this.areas = select(this.elRef.nativeElement)
|
|
132
|
-
.selectAll(`.${this.class.area}`)
|
|
133
|
-
.data(this.config.series)
|
|
134
|
-
.join(
|
|
135
|
-
(enter) =>
|
|
136
|
-
enter
|
|
137
|
-
.append('path')
|
|
138
|
-
.attr(
|
|
139
|
-
'class',
|
|
140
|
-
([{ i }]) =>
|
|
141
|
-
`${this.class.area} ${this.config.datumClass(this.config.data[i], i)}`
|
|
142
|
-
)
|
|
143
|
-
// .property('key', ([{ i }]) => this.config.color.values[i])
|
|
144
|
-
.attr('fill', ([{ i }]) =>
|
|
145
|
-
this.scales.color(this.config.color.values[i])
|
|
146
|
-
)
|
|
147
|
-
.attr('d', this.area),
|
|
148
|
-
(update) =>
|
|
149
|
-
update.call((update) =>
|
|
150
|
-
update
|
|
151
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
152
|
-
.transition(t as any)
|
|
153
|
-
.attr('d', this.area)
|
|
154
|
-
.attr('fill', ([{ i }]) =>
|
|
155
|
-
this.scales.color(this.config.color.values[i])
|
|
156
|
-
)
|
|
157
|
-
),
|
|
158
|
-
(exit) => exit.remove()
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
getTooltipData(
|
|
163
|
-
closestXIndicies: number[],
|
|
164
|
-
categoryYMin: number,
|
|
165
|
-
categoryYMax: number,
|
|
166
|
-
categoryIndex: number
|
|
167
|
-
): {
|
|
168
|
-
anchor: StackedAreaInteractionAnchor;
|
|
169
|
-
data: StackedAreaTooltipDatum<Datum, TCategoricalValue>[];
|
|
170
|
-
hoveredAreaDatum: StackedAreaTooltipDatum<Datum, TCategoricalValue>;
|
|
171
|
-
origin: SVGGraphicsElement;
|
|
172
|
-
} {
|
|
173
|
-
const data: StackedAreaTooltipDatum<Datum, TCategoricalValue>[] =
|
|
174
|
-
closestXIndicies.map((i) => {
|
|
175
|
-
const datum = this.getDatumFromIndex(i);
|
|
176
|
-
return {
|
|
177
|
-
datum: datum,
|
|
178
|
-
values: {
|
|
179
|
-
x: this.getXyDimensionValue(datum, 'x'),
|
|
180
|
-
y: this.getXyDimensionValue(datum, 'y'),
|
|
181
|
-
color: this.config.color.valueAccessor(datum),
|
|
182
|
-
},
|
|
183
|
-
color: this.scales.color(this.config.color.valueAccessor(datum)),
|
|
184
|
-
};
|
|
185
|
-
});
|
|
186
|
-
if (this.config.categoricalOrder) {
|
|
187
|
-
this.sortTooltipDataByCategoricalSortOrder(data);
|
|
188
|
-
categoryIndex = closestXIndicies.length - categoryIndex;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
return {
|
|
192
|
-
data,
|
|
193
|
-
anchor: {
|
|
194
|
-
x: this.scales.x(this.config.x.values[closestXIndicies[0]]),
|
|
195
|
-
yAreaTop: categoryYMin,
|
|
196
|
-
yAreaBottom: categoryYMax,
|
|
197
|
-
yChartTop: this.scales.y.range()[0],
|
|
198
|
-
yChartBottom: this.scales.y.range()[1],
|
|
199
|
-
},
|
|
200
|
-
hoveredAreaDatum: data[categoryIndex],
|
|
201
|
-
origin: this.chart.svgRef.nativeElement,
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
private getDatumFromIndex(i: number) {
|
|
206
|
-
return this.config.data.find(
|
|
207
|
-
(d) =>
|
|
208
|
-
this.config.x.valueAccessor(d) === this.config.x.values[i] &&
|
|
209
|
-
this.config.color.valueAccessor(d) === this.config.color.values[i]
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
private getXyDimensionValue(datum: Datum, dimension: 'x' | 'y'): string {
|
|
214
|
-
return this.config[dimension].formatFunction
|
|
215
|
-
? ValueUtilities.customFormat(
|
|
216
|
-
datum,
|
|
217
|
-
this.config[dimension].formatFunction
|
|
218
|
-
)
|
|
219
|
-
: ValueUtilities.d3Format(
|
|
220
|
-
this.config[dimension].valueAccessor(datum),
|
|
221
|
-
this.config[dimension].formatSpecifier
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
private sortTooltipDataByCategoricalSortOrder(
|
|
226
|
-
data: StackedAreaTooltipDatum<Datum, TCategoricalValue>[]
|
|
227
|
-
) {
|
|
228
|
-
if (this.config.categoricalOrder) {
|
|
229
|
-
data.sort((a, b) => {
|
|
230
|
-
return (
|
|
231
|
-
this.config.categoricalOrder.indexOf(a.values.color) -
|
|
232
|
-
this.config.categoricalOrder.indexOf(b.values.color)
|
|
233
|
-
);
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
updateStackedAreaElements(): void {
|
|
239
|
-
this.stackedAreas.next(this.areas);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { StackedAreaEventsDirective } from './events/stacked-area-events.directive';
|
|
3
|
-
import { StackedAreaComponent } from './stacked-area.component';
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
imports: [StackedAreaComponent, StackedAreaEventsDirective],
|
|
7
|
-
exports: [StackedAreaComponent, StackedAreaEventsDirective],
|
|
8
|
-
})
|
|
9
|
-
export class VicStackedAreaModule {}
|