@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,17 +0,0 @@
|
|
|
1
|
-
import { EventAction, EventType } from '../../../events';
|
|
2
|
-
import { LinesHost } from '../lines-events.directive';
|
|
3
|
-
|
|
4
|
-
export class LinesClickEmitTooltipDataPauseHoverMoveActions<
|
|
5
|
-
Datum,
|
|
6
|
-
> implements EventAction<LinesHost<Datum>> {
|
|
7
|
-
onStart(host: LinesHost<Datum>) {
|
|
8
|
-
const outputData = host.getInteractionOutput(EventType.Click);
|
|
9
|
-
host.disableOtherActions(EventType.Click);
|
|
10
|
-
host.emitInteractionOutput(outputData);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
onEnd(host: LinesHost<Datum>) {
|
|
14
|
-
host.resumeOtherActions(EventType.Click);
|
|
15
|
-
host.emitInteractionOutput(null);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { EventType, HoverMoveAction } from '../../../events';
|
|
2
|
-
import { LinesMarkerDatum } from '../../config/lines-config';
|
|
3
|
-
import { LinesGroupSelectionDatum } from '../../lines.component';
|
|
4
|
-
import { LinesHost } from '../lines-events.directive';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* A suggested default action for the hover and move event on lines.
|
|
8
|
-
*
|
|
9
|
-
* This action changes the color of the non-closest-to-pointer lines
|
|
10
|
-
* to a light gray.
|
|
11
|
-
*/
|
|
12
|
-
export class LinesHoverMoveDefaultLinesStyles<Datum> implements HoverMoveAction<
|
|
13
|
-
LinesHost<Datum>
|
|
14
|
-
> {
|
|
15
|
-
onStart(host: LinesHost<Datum>): void {
|
|
16
|
-
host
|
|
17
|
-
.getClosestLineGroup()
|
|
18
|
-
.raise()
|
|
19
|
-
.selectAll<SVGPathElement, LinesGroupSelectionDatum>('path')
|
|
20
|
-
.style('stroke', null);
|
|
21
|
-
|
|
22
|
-
host
|
|
23
|
-
.getOtherLineGroups()
|
|
24
|
-
.selectAll<SVGPathElement, LinesGroupSelectionDatum>('path')
|
|
25
|
-
.style('stroke', '#ddd');
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
onEnd(directive: LinesHost<Datum>): void {
|
|
29
|
-
directive.marks.lineGroups
|
|
30
|
-
.selectAll<SVGPathElement, LinesGroupSelectionDatum>('path')
|
|
31
|
-
.style('stroke', null);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* A suggested default action for the hover and move event on line markers.
|
|
37
|
-
*
|
|
38
|
-
* This action makes line markers on non-closest-to-pointer lines invisible,
|
|
39
|
-
* and at the same time enlarges the marker on the "selected" line that is
|
|
40
|
-
* closest to the pointer by a specified amount.
|
|
41
|
-
*/
|
|
42
|
-
export class LinesHoverMoveDefaultMarkersStyles<
|
|
43
|
-
Datum,
|
|
44
|
-
> implements HoverMoveAction<LinesHost<Datum>> {
|
|
45
|
-
onStart(host: LinesHost<Datum>): void {
|
|
46
|
-
host
|
|
47
|
-
.getClosestMarker()
|
|
48
|
-
.style('display', 'block')
|
|
49
|
-
.attr('r', () => {
|
|
50
|
-
let r = host.marks.config.pointMarkers.radius;
|
|
51
|
-
r =
|
|
52
|
-
host.marks.config.pointMarkers.radius +
|
|
53
|
-
host.marks.config.pointMarkers.growByOnHover;
|
|
54
|
-
return r;
|
|
55
|
-
})
|
|
56
|
-
.raise();
|
|
57
|
-
|
|
58
|
-
host.getOtherMarkers().style('display', 'none');
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
onEnd(host: LinesHost<Datum>): void {
|
|
62
|
-
host.marks.lineGroups
|
|
63
|
-
.selectAll<SVGCircleElement, LinesMarkerDatum>('circle')
|
|
64
|
-
.style('display', (d) => d.display)
|
|
65
|
-
.attr('r', () => host.marks.config.pointMarkers.radius);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* A collection of suggested default actions for the hover and move event
|
|
71
|
-
* on lines and line markers.
|
|
72
|
-
*
|
|
73
|
-
* Applies either Line Markers action or a Hover Dot action depending on
|
|
74
|
-
* whether line markers are used.
|
|
75
|
-
*/
|
|
76
|
-
export class LinesHoverMoveDefaultStyles<Datum> implements HoverMoveAction<
|
|
77
|
-
LinesHost<Datum>
|
|
78
|
-
> {
|
|
79
|
-
linesStyles: HoverMoveAction<LinesHost<Datum>>;
|
|
80
|
-
markersStyles: HoverMoveAction<LinesHost<Datum>>;
|
|
81
|
-
|
|
82
|
-
constructor() {
|
|
83
|
-
this.linesStyles = new LinesHoverMoveDefaultLinesStyles();
|
|
84
|
-
this.markersStyles = new LinesHoverMoveDefaultMarkersStyles();
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
onStart(host: LinesHost<Datum>) {
|
|
88
|
-
this.linesStyles.onStart(host);
|
|
89
|
-
if (host.marks.config.pointMarkers) {
|
|
90
|
-
this.markersStyles.onStart(host);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
onEnd(host: LinesHost<Datum>) {
|
|
95
|
-
this.linesStyles.onEnd(host);
|
|
96
|
-
if (host.marks.config.pointMarkers) {
|
|
97
|
-
this.markersStyles.onEnd(host);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export class LinesHoverMoveEmitTooltipData<Datum> implements HoverMoveAction<
|
|
103
|
-
LinesHost<Datum>
|
|
104
|
-
> {
|
|
105
|
-
onStart(host: LinesHost<Datum>): void {
|
|
106
|
-
const tooltipData = host.getInteractionOutput(EventType.HoverMove);
|
|
107
|
-
host.emitInteractionOutput(tooltipData);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
onEnd(host: LinesHost<Datum>): void {
|
|
111
|
-
host.emitInteractionOutput(null);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { EventAction, EventType } from '../../../events';
|
|
2
|
-
import { LinesHost } from '../lines-events.directive';
|
|
3
|
-
|
|
4
|
-
export class LinesMarkerClickEmitTooltipData<Datum> implements EventAction<
|
|
5
|
-
LinesHost<Datum>
|
|
6
|
-
> {
|
|
7
|
-
onStart(host: LinesHost<Datum>) {
|
|
8
|
-
const tooltipData = host.getInteractionOutput(EventType.Click);
|
|
9
|
-
host.disableOtherActions(EventType.Click);
|
|
10
|
-
host
|
|
11
|
-
.getClosestMarker()
|
|
12
|
-
.attr('r', (): number => {
|
|
13
|
-
const r =
|
|
14
|
-
host.marks.config.pointMarkers.radius +
|
|
15
|
-
host.marks.config.pointMarkers.growByOnHover;
|
|
16
|
-
return r;
|
|
17
|
-
})
|
|
18
|
-
.raise();
|
|
19
|
-
host.emitInteractionOutput(tooltipData);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
onEnd(host: LinesHost<Datum>) {
|
|
23
|
-
host
|
|
24
|
-
.getClosestMarker()
|
|
25
|
-
.attr('r', (): number => host.marks.config.pointMarkers.radius);
|
|
26
|
-
host.resumeOtherActions(EventType.Click);
|
|
27
|
-
host.emitInteractionOutput(null);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { Renderer2 } from '@angular/core';
|
|
3
|
-
import { TestBed } from '@angular/core/testing';
|
|
4
|
-
import { EventType } from '../../events';
|
|
5
|
-
import { LINES, LinesComponent } from '../lines.component';
|
|
6
|
-
import { LinesEventsDirective } from './lines-events.directive';
|
|
7
|
-
|
|
8
|
-
describe('LinesEventsDirective', () => {
|
|
9
|
-
let directive: LinesEventsDirective<any, LinesComponent<any>>;
|
|
10
|
-
let linesStub: any;
|
|
11
|
-
|
|
12
|
-
const genericScale: any = (v: any) => v;
|
|
13
|
-
genericScale.domain = () => [0, 1];
|
|
14
|
-
genericScale.range = () => [0, 1];
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
linesStub = {
|
|
18
|
-
config: {
|
|
19
|
-
valueIndices: [0, 1],
|
|
20
|
-
x: { values: [1, 2] },
|
|
21
|
-
y: { values: [3, 4] },
|
|
22
|
-
pointerDetectionRadius: 10,
|
|
23
|
-
},
|
|
24
|
-
scales: {
|
|
25
|
-
x: genericScale,
|
|
26
|
-
y: genericScale,
|
|
27
|
-
color: genericScale,
|
|
28
|
-
useTransition: false,
|
|
29
|
-
},
|
|
30
|
-
ranges: { x: [0, 100], y: [100, 0] },
|
|
31
|
-
chart: { svgRef: { nativeElement: {} } },
|
|
32
|
-
getTooltipData: () => ({
|
|
33
|
-
positionX: 1,
|
|
34
|
-
positionY: 2,
|
|
35
|
-
datum: {},
|
|
36
|
-
color: 'red',
|
|
37
|
-
values: { x: '1', y: '2', strokeColor: 'red' },
|
|
38
|
-
type: EventType.HoverMove,
|
|
39
|
-
}),
|
|
40
|
-
};
|
|
41
|
-
TestBed.configureTestingModule({
|
|
42
|
-
providers: [
|
|
43
|
-
LinesEventsDirective,
|
|
44
|
-
Renderer2,
|
|
45
|
-
{ provide: LINES, useValue: linesStub },
|
|
46
|
-
],
|
|
47
|
-
});
|
|
48
|
-
directive = TestBed.inject(LinesEventsDirective);
|
|
49
|
-
directive.lines = linesStub;
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
it('should return true if pointer is inside show tooltip radius', () => {
|
|
53
|
-
spyOn(directive, 'getPointerDistanceFromPoint').and.returnValue(5);
|
|
54
|
-
expect(directive.pointerIsInsideShowTooltipRadius(0, 0, 0)).toBeTrue();
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
it('should return false if pointer is outside show tooltip radius', () => {
|
|
58
|
-
spyOn(directive, 'getPointerDistanceFromPoint').and.returnValue(15);
|
|
59
|
-
expect(directive.pointerIsInsideShowTooltipRadius(0, 0, 0)).toBeFalse();
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
it('should return true if pointer is in chart area', () => {
|
|
63
|
-
directive.positionX = 50;
|
|
64
|
-
directive.positionY = 50;
|
|
65
|
-
expect(directive.pointerIsInChartArea()).toBeTrue();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it('should return false if pointer is outside chart area', () => {
|
|
69
|
-
directive.positionX = -10;
|
|
70
|
-
directive.positionY = 50;
|
|
71
|
-
expect(directive.pointerIsInChartArea()).toBeFalse();
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
it('should emit interaction output', () => {
|
|
75
|
-
spyOn(directive.interactionOutput, 'emit');
|
|
76
|
-
const output: any = {
|
|
77
|
-
positionX: 1,
|
|
78
|
-
positionY: 2,
|
|
79
|
-
datum: {},
|
|
80
|
-
color: 'red',
|
|
81
|
-
values: { x: '1', y: '2', strokeColor: 'red' },
|
|
82
|
-
type: EventType.HoverMove,
|
|
83
|
-
};
|
|
84
|
-
directive.emitInteractionOutput(output);
|
|
85
|
-
expect(directive.interactionOutput.emit).toHaveBeenCalledWith(output);
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
it('should call onEnter and run actions if allowed', () => {
|
|
89
|
-
const action: any = { initialize: jasmine.createSpy('init') };
|
|
90
|
-
directive.hoverMoveActions = [action];
|
|
91
|
-
(directive as any).isEventAllowed = () => true;
|
|
92
|
-
directive.onEnter({} as PointerEvent, {} as Element);
|
|
93
|
-
expect(action.initialize).toHaveBeenCalledWith(directive);
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
it('should call onMove and callPointerEventActions if allowed and pointer is in chart area', () => {
|
|
97
|
-
directive.hoverMoveActions = [];
|
|
98
|
-
(directive as any).isEventAllowed = () => true;
|
|
99
|
-
spyOn(directive, 'setPositionsFromPointer');
|
|
100
|
-
directive.pointerIsInChartArea = () => true;
|
|
101
|
-
const callPointerEventActionsSpy = spyOn(
|
|
102
|
-
directive as any,
|
|
103
|
-
'callPointerEventActions'
|
|
104
|
-
);
|
|
105
|
-
directive.onMove({} as PointerEvent, {} as Element);
|
|
106
|
-
expect(directive.setPositionsFromPointer).toHaveBeenCalled();
|
|
107
|
-
expect(callPointerEventActionsSpy).toHaveBeenCalled();
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
it('should call onLeave and run onEnd if actionActive', () => {
|
|
111
|
-
const action: any = { onEnd: jasmine.createSpy('onEnd') };
|
|
112
|
-
directive.hoverMoveActions = [action];
|
|
113
|
-
(directive as any).isEventAllowed = () => true;
|
|
114
|
-
directive.actionActive = true;
|
|
115
|
-
directive.onLeave({} as PointerEvent, {} as Element);
|
|
116
|
-
expect(action.onEnd).toHaveBeenCalledWith(directive);
|
|
117
|
-
expect(directive.actionActive).toBeFalse();
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
it('should call onClick and callPointerEventActions if allowed and pointer is in chart area', () => {
|
|
121
|
-
directive.clickActions = [];
|
|
122
|
-
(directive as any).isEventAllowed = () => true;
|
|
123
|
-
spyOn(directive, 'setPositionsFromPointer');
|
|
124
|
-
directive.pointerIsInChartArea = () => true;
|
|
125
|
-
const callPointerEventActionsSpy = spyOn(
|
|
126
|
-
directive as any,
|
|
127
|
-
'callPointerEventActions'
|
|
128
|
-
);
|
|
129
|
-
directive.onClick({} as PointerEvent, {} as Element);
|
|
130
|
-
expect(directive.setPositionsFromPointer).toHaveBeenCalled();
|
|
131
|
-
expect(callPointerEventActionsSpy).toHaveBeenCalled();
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
it('should call onClickRemove and run onEnd for each clickAction', () => {
|
|
135
|
-
const action: any = { onEnd: jasmine.createSpy('onEnd') };
|
|
136
|
-
directive.clickActions = [action];
|
|
137
|
-
(directive as any).isEventAllowed = () => true;
|
|
138
|
-
directive.onClickRemove();
|
|
139
|
-
expect(action.onEnd).toHaveBeenCalledWith(directive);
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
it('should call onInputEvent and run onStart/onEnd for each inputEventAction', () => {
|
|
143
|
-
const onStart = jasmine.createSpy('onStart');
|
|
144
|
-
const onEnd = jasmine.createSpy('onEnd');
|
|
145
|
-
directive.inputEventActions = [{ onStart, onEnd }];
|
|
146
|
-
(directive as any).isEventAllowed = () => true;
|
|
147
|
-
directive.onInputEvent('value');
|
|
148
|
-
expect(onStart).toHaveBeenCalledWith(directive, 'value');
|
|
149
|
-
directive.onInputEvent(null);
|
|
150
|
-
expect(onEnd).toHaveBeenCalledWith(directive, null);
|
|
151
|
-
});
|
|
152
|
-
});
|
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { Directive, EventEmitter, inject, Input, Output } from '@angular/core';
|
|
2
|
-
import { least } from 'd3';
|
|
3
|
-
import { Observable, of } from 'rxjs';
|
|
4
|
-
import { ContinuousValue } from '../../core/types/values';
|
|
5
|
-
import {
|
|
6
|
-
DEFAULT_TOOLTIP_Y_OFFSET,
|
|
7
|
-
EventAction,
|
|
8
|
-
EventsDirective,
|
|
9
|
-
EventType,
|
|
10
|
-
HoverMoveAction,
|
|
11
|
-
InputEventAction,
|
|
12
|
-
MarksHost,
|
|
13
|
-
UnlistenFunction,
|
|
14
|
-
} from '../../events';
|
|
15
|
-
import { TooltipPosition } from '../../tooltips';
|
|
16
|
-
import { LinesMarkerDatum } from '../config/lines-config';
|
|
17
|
-
import {
|
|
18
|
-
LINES,
|
|
19
|
-
LinesComponent,
|
|
20
|
-
LinesGroupSelection,
|
|
21
|
-
MarkerSelection,
|
|
22
|
-
} from '../lines.component';
|
|
23
|
-
import { LinesInteractionOutput } from './lines-interaction-output';
|
|
24
|
-
import { LinesTooltipPositioner } from './lines-tooltip-positioner';
|
|
25
|
-
|
|
26
|
-
export interface LinesHost<
|
|
27
|
-
Datum,
|
|
28
|
-
TLinesComponent extends LinesComponent<Datum> = LinesComponent<Datum>,
|
|
29
|
-
> extends MarksHost<LinesInteractionOutput<Datum>, TLinesComponent> {
|
|
30
|
-
getClosestPointIndex(): number;
|
|
31
|
-
getClosestLineGroup(): LinesGroupSelection;
|
|
32
|
-
getOtherLineGroups(): LinesGroupSelection;
|
|
33
|
-
getClosestMarker(): MarkerSelection;
|
|
34
|
-
getOtherMarkers(): MarkerSelection;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@Directive({
|
|
38
|
-
selector: '[vicLinesEvents]',
|
|
39
|
-
})
|
|
40
|
-
export class LinesEventsDirective<
|
|
41
|
-
Datum,
|
|
42
|
-
TLinesComponent extends LinesComponent<Datum> = LinesComponent<Datum>,
|
|
43
|
-
>
|
|
44
|
-
extends EventsDirective<LinesHost<Datum>>
|
|
45
|
-
implements LinesHost<Datum>
|
|
46
|
-
{
|
|
47
|
-
@Input()
|
|
48
|
-
hoverMoveActions:
|
|
49
|
-
| HoverMoveAction<LinesHost<Datum>, LinesInteractionOutput<Datum>>[]
|
|
50
|
-
| null;
|
|
51
|
-
@Input()
|
|
52
|
-
clickActions:
|
|
53
|
-
| EventAction<LinesHost<Datum>, LinesInteractionOutput<Datum>>[]
|
|
54
|
-
| null;
|
|
55
|
-
@Input()
|
|
56
|
-
inputEventActions: InputEventAction<
|
|
57
|
-
LinesHost<Datum>,
|
|
58
|
-
LinesInteractionOutput<Datum>
|
|
59
|
-
>[];
|
|
60
|
-
@Output() interactionOutput = new EventEmitter<
|
|
61
|
-
LinesInteractionOutput<Datum>
|
|
62
|
-
>();
|
|
63
|
-
|
|
64
|
-
closestPointIndex: number;
|
|
65
|
-
actionActive: boolean = false;
|
|
66
|
-
|
|
67
|
-
public lines = inject<TLinesComponent>(LINES);
|
|
68
|
-
|
|
69
|
-
get marks(): LinesComponent<Datum> {
|
|
70
|
-
return this.lines;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
getElements(): Observable<Element[]> {
|
|
74
|
-
return of([this.lines.chart.svgRef.nativeElement]);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
getClosestPointIndex(): number {
|
|
78
|
-
return this.closestPointIndex;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
getClosestLineGroup(): LinesGroupSelection {
|
|
82
|
-
return this.marks.lineGroups.filter(
|
|
83
|
-
([category]) =>
|
|
84
|
-
this.marks.config.stroke.color.values[this.getClosestPointIndex()] ===
|
|
85
|
-
category
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
getOtherLineGroups(): LinesGroupSelection {
|
|
90
|
-
return this.marks.lineGroups.filter(
|
|
91
|
-
([category]) =>
|
|
92
|
-
this.marks.config.stroke.color.values[this.getClosestPointIndex()] !==
|
|
93
|
-
category
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
getClosestMarker(): MarkerSelection {
|
|
98
|
-
return this.marks.lineGroups
|
|
99
|
-
.selectAll<SVGCircleElement, LinesMarkerDatum>('circle')
|
|
100
|
-
.filter((d) => d.index === this.getClosestPointIndex());
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
getOtherMarkers(): MarkerSelection {
|
|
104
|
-
return this.marks.lineGroups
|
|
105
|
-
.selectAll<SVGCircleElement, LinesMarkerDatum>('circle')
|
|
106
|
-
.filter((d) => d.index !== this.getClosestPointIndex());
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
setupListeners(elements: Element[]): UnlistenFunction[] {
|
|
110
|
-
if (this.inputEventActions?.length && this.inputEvent$) {
|
|
111
|
-
this.events.push(EventType.Input);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return this.bindEventListeners(
|
|
115
|
-
elements,
|
|
116
|
-
this.buildInteractionListeners({
|
|
117
|
-
hoverMove: this.hoverMoveActions?.length && {
|
|
118
|
-
pointerenter: (e, el) => this.onEnter(e, el),
|
|
119
|
-
pointermove: (e, el) => this.onMove(e, el),
|
|
120
|
-
pointerleave: (e, el) => this.onLeave(e, el),
|
|
121
|
-
},
|
|
122
|
-
click: this.clickActions?.length && {
|
|
123
|
-
click: (e, el) => this.onClick(e, el),
|
|
124
|
-
},
|
|
125
|
-
})
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
130
|
-
onEnter(_: PointerEvent, __: Element): void {
|
|
131
|
-
if (this.isEventAllowed(EventType.HoverMove)) {
|
|
132
|
-
this.runActions(this.hoverMoveActions, (a) => {
|
|
133
|
-
if (a.initialize) {
|
|
134
|
-
a.initialize(this);
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
141
|
-
onMove(event: PointerEvent, _: Element): void {
|
|
142
|
-
if (this.isEventAllowed(EventType.HoverMove)) {
|
|
143
|
-
this.setPositionsFromPointer(event);
|
|
144
|
-
if (this.pointerIsInChartArea()) {
|
|
145
|
-
this.callPointerEventActions(
|
|
146
|
-
EventType.HoverMove,
|
|
147
|
-
this.hoverMoveActions
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
154
|
-
onLeave(_: PointerEvent, __: Element): void {
|
|
155
|
-
if (this.isEventAllowed(EventType.HoverMove)) {
|
|
156
|
-
if (this.actionActive) {
|
|
157
|
-
this.hoverMoveActions.forEach((action) => action.onEnd(this));
|
|
158
|
-
this.actionActive = false;
|
|
159
|
-
}
|
|
160
|
-
this.resetDirective();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
165
|
-
onClick(event: PointerEvent, __: Element): void {
|
|
166
|
-
if (this.isEventAllowed(EventType.Click)) {
|
|
167
|
-
this.setPositionsFromPointer(event);
|
|
168
|
-
if (this.pointerIsInChartArea()) {
|
|
169
|
-
this.callPointerEventActions(EventType.Click, this.clickActions);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
onClickRemove(): void {
|
|
175
|
-
if (this.isEventAllowed(EventType.Click)) {
|
|
176
|
-
this.clickActions.forEach((action) => action.onEnd(this));
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
|
|
181
|
-
onInputEvent(inputValue: unknown): void {
|
|
182
|
-
if (this.isEventAllowed(EventType.Input)) {
|
|
183
|
-
if (inputValue === null || inputValue === undefined) {
|
|
184
|
-
this.inputEventActions.forEach((action) =>
|
|
185
|
-
action.onEnd(this, inputValue)
|
|
186
|
-
);
|
|
187
|
-
} else {
|
|
188
|
-
this.inputEventActions.forEach((action) =>
|
|
189
|
-
action.onStart(this, inputValue)
|
|
190
|
-
);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
pointerIsInChartArea(): boolean {
|
|
196
|
-
return (
|
|
197
|
-
this.positionX > this.lines.ranges.x[0] &&
|
|
198
|
-
this.positionX < this.lines.ranges.x[1] &&
|
|
199
|
-
this.positionY > this.lines.ranges.y[1] &&
|
|
200
|
-
this.positionY < this.lines.ranges.y[0]
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
private callPointerEventActions(
|
|
205
|
-
type: EventType,
|
|
206
|
-
actions: EventAction<this>[]
|
|
207
|
-
): void {
|
|
208
|
-
if (!this.isEventAllowed(type)) return;
|
|
209
|
-
|
|
210
|
-
this.closestPointIndex = this._getClosestPointIndex();
|
|
211
|
-
|
|
212
|
-
const isInside = this.pointerIsInsideShowTooltipRadius(
|
|
213
|
-
this.closestPointIndex,
|
|
214
|
-
this.positionX,
|
|
215
|
-
this.positionY
|
|
216
|
-
);
|
|
217
|
-
|
|
218
|
-
if (isInside) {
|
|
219
|
-
actions.forEach((action) => action.onStart(this));
|
|
220
|
-
this.actionActive = true;
|
|
221
|
-
} else {
|
|
222
|
-
this.closestPointIndex = null;
|
|
223
|
-
if (this.actionActive) {
|
|
224
|
-
actions.forEach((action) => action.onEnd(this));
|
|
225
|
-
this.actionActive = false;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
protected _getClosestPointIndex(): number {
|
|
231
|
-
return least(this.lines.config.valueIndices, (i) =>
|
|
232
|
-
this.getPointerDistanceFromPoint(
|
|
233
|
-
this.lines.config.x.values[i],
|
|
234
|
-
this.lines.config.y.values[i],
|
|
235
|
-
this.positionX,
|
|
236
|
-
this.positionY
|
|
237
|
-
)
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
getPointerDistanceFromPoint(
|
|
242
|
-
xValue: ContinuousValue,
|
|
243
|
-
yValue: number,
|
|
244
|
-
pointerX: number,
|
|
245
|
-
pointerY: number
|
|
246
|
-
): number {
|
|
247
|
-
return Math.hypot(
|
|
248
|
-
this.lines.scales.x(xValue) - pointerX,
|
|
249
|
-
this.lines.scales.y(yValue) - pointerY
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
pointerIsInsideShowTooltipRadius(
|
|
254
|
-
closestPointIndex: number,
|
|
255
|
-
pointerX: number,
|
|
256
|
-
pointerY: number
|
|
257
|
-
): boolean {
|
|
258
|
-
if (!this.lines.config.pointerDetectionRadius) {
|
|
259
|
-
return true;
|
|
260
|
-
} else {
|
|
261
|
-
const cursorDistanceFromPoint = this.getPointerDistanceFromPoint(
|
|
262
|
-
this.lines.config.x.values[closestPointIndex],
|
|
263
|
-
this.lines.config.y.values[closestPointIndex],
|
|
264
|
-
pointerX,
|
|
265
|
-
pointerY
|
|
266
|
-
);
|
|
267
|
-
return cursorDistanceFromPoint < this.lines.config.pointerDetectionRadius;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
setPositionsFromElement(): void {
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
getInteractionOutput(type: EventType): LinesInteractionOutput<Datum> {
|
|
276
|
-
const tooltipData = this.lines.getTooltipData(this.closestPointIndex);
|
|
277
|
-
const position = new LinesTooltipPositioner({
|
|
278
|
-
x: tooltipData.anchor.x,
|
|
279
|
-
y: tooltipData.anchor.y,
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
return {
|
|
283
|
-
...tooltipData,
|
|
284
|
-
defaultPosition: position.fromAnchor({
|
|
285
|
-
x: 0,
|
|
286
|
-
y: DEFAULT_TOOLTIP_Y_OFFSET,
|
|
287
|
-
}),
|
|
288
|
-
fromAnchor: (offset?: Partial<{ x: number; y: number }>) => {
|
|
289
|
-
return position.fromAnchor({
|
|
290
|
-
x: offset?.x ?? 0,
|
|
291
|
-
y: offset?.y ?? DEFAULT_TOOLTIP_Y_OFFSET,
|
|
292
|
-
});
|
|
293
|
-
},
|
|
294
|
-
customPosition: (positions: TooltipPosition[]) => {
|
|
295
|
-
return position.customPosition(positions);
|
|
296
|
-
},
|
|
297
|
-
type,
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
emitInteractionOutput(output: LinesInteractionOutput<Datum>): void {
|
|
302
|
-
this.interactionOutput.emit(output);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
private resetDirective(): void {
|
|
306
|
-
this.closestPointIndex = undefined;
|
|
307
|
-
this.positionX = undefined;
|
|
308
|
-
this.positionY = undefined;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { InteractionOutput } from '../../events/interaction-output';
|
|
2
|
-
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
-
import { LinesTooltipDatum } from '../lines.component';
|
|
4
|
-
|
|
5
|
-
export interface LinesInteractionOutput<Datum>
|
|
6
|
-
extends LinesTooltipDatum<Datum>, InteractionOutput {
|
|
7
|
-
/**
|
|
8
|
-
* A method that positions the tooltip with a user specified offset from the tooltip's anchor point.
|
|
9
|
-
*
|
|
10
|
-
* @param offset - Optional offset from the anchor's x and y position.
|
|
11
|
-
* If not provided, defaults to { x: 0, y: 0 }.
|
|
12
|
-
* 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).
|
|
13
|
-
*/
|
|
14
|
-
fromAnchor: (
|
|
15
|
-
offset?: Partial<{ x: number; y: number }>
|
|
16
|
-
) => HtmlTooltipCdkManagedPosition;
|
|
17
|
-
}
|
|
@@ -1,24 +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 LinesTooltipPositioner extends TooltipPositioner {
|
|
12
|
-
constructor(private anchor: { x: number; y: number }) {
|
|
13
|
-
super();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
fromAnchor(offset: { x: number; y: number }): HtmlTooltipCdkManagedPosition {
|
|
17
|
-
const positionsWithOffsets = new TooltipPositionBuilder().applyOffsets(
|
|
18
|
-
DEFAULT_POSITIONS,
|
|
19
|
-
this.anchor.x + offset.x,
|
|
20
|
-
this.anchor.y - offset.y
|
|
21
|
-
);
|
|
22
|
-
return new HtmlTooltipCdkManagedPosition(positionsWithOffsets);
|
|
23
|
-
}
|
|
24
|
-
}
|
package/src/lib/lines/index.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from './config/area-fills/area-fills';
|
|
2
|
-
export * from './config/area-fills/area-fills-builder';
|
|
3
|
-
export * from './config/area-fills/area-fills-options';
|
|
4
|
-
export * from './config/lines-builder';
|
|
5
|
-
export * from './config/lines-config';
|
|
6
|
-
export * from './config/lines-options';
|
|
7
|
-
export * from './config/stroke/lines-stroke';
|
|
8
|
-
export * from './config/stroke/lines-stroke-builder';
|
|
9
|
-
export * from './config/stroke/lines-stroke-options';
|
|
10
|
-
export * from './events/actions/lines-click-actions';
|
|
11
|
-
export * from './events/actions/lines-hover-move-actions';
|
|
12
|
-
export * from './events/actions/lines-marker-click-actions';
|
|
13
|
-
export * from './events/lines-events.directive';
|
|
14
|
-
export * from './events/lines-interaction-output';
|
|
15
|
-
export * from './events/lines-tooltip-positioner';
|
|
16
|
-
export * from './lines.component';
|
|
17
|
-
export * from './lines.module';
|
|
File without changes
|