@mathstack/viz 1.1.5 → 2.0.3
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/CHANGELOG.md +0 -0
- package/LICENSE +21 -21
- package/README.md +11 -11
- package/cypress/fixtures/example.json +5 -0
- package/cypress/fixtures/usMap.json +13511 -0
- package/cypress/support/commands.ts +104 -0
- package/cypress/support/component-index.html +12 -0
- package/cypress/support/component.ts +33 -0
- package/cypress.config.ts +9 -0
- package/karma.conf.js +62 -0
- package/ng-package.json +8 -0
- package/package.json +10 -19
- package/project.json +97 -0
- package/src/.eslintrc.json +35 -0
- package/src/.prettierrc +31 -0
- package/src/lib/axes/base/config/xy-axis-builder.ts +68 -0
- package/src/lib/axes/base/config/xy-axis-config.ts +35 -0
- package/{lib/axes/base/config/xy-axis-options.d.ts → src/lib/axes/base/config/xy-axis-options.ts} +11 -10
- package/src/lib/axes/base/xy-axis-base.spec.ts +114 -0
- package/src/lib/axes/base/xy-axis-base.ts +300 -0
- package/src/lib/axes/base/xy-axis-domain-lines.cy.ts +511 -0
- package/src/lib/axes/baseline/axis-baseline-builder.ts +77 -0
- package/src/lib/axes/baseline/axis-baseline-options.ts +4 -0
- package/src/lib/axes/baseline/axis-baseline.ts +11 -0
- package/src/lib/axes/grid/grid-builder.ts +74 -0
- package/src/lib/axes/grid/grid-config.ts +13 -0
- package/src/lib/axes/grid/grid-options.ts +7 -0
- package/src/lib/axes/index.ts +40 -0
- package/src/lib/axes/label/axis-label-builder.ts +140 -0
- package/src/lib/axes/label/axis-label-options.ts +12 -0
- package/src/lib/axes/label/axis-label.ts +18 -0
- package/src/lib/axes/label/axis-labels.cy.ts +303 -0
- package/src/lib/axes/ordinal/ordinal-axis-config.ts +31 -0
- package/src/lib/axes/ordinal/ordinal-axis.spec.ts +30 -0
- package/src/lib/axes/ordinal/ordinal-axis.ts +26 -0
- package/src/lib/axes/quantitative/quantitative-axis-config.ts +39 -0
- package/src/lib/axes/quantitative/quantitative-axis-ticks.cy.ts +748 -0
- package/src/lib/axes/quantitative/quantitative-axis.spec.ts +537 -0
- package/src/lib/axes/quantitative/quantitative-axis.ts +191 -0
- package/src/lib/axes/ticks/tick-wrap/tick-wrap-builder.ts +141 -0
- package/src/lib/axes/ticks/tick-wrap/tick-wrap-options.ts +11 -0
- package/src/lib/axes/ticks/tick-wrap/tick-wrap.cy.ts +360 -0
- package/src/lib/axes/ticks/tick-wrap/tick-wrap.ts +21 -0
- package/src/lib/axes/ticks/ticks-builder.ts +370 -0
- package/src/lib/axes/ticks/ticks-options.ts +24 -0
- package/src/lib/axes/ticks/ticks.ts +33 -0
- package/src/lib/axes/x/x-axis-config.ts +48 -0
- package/src/lib/axes/x/x-axis.spec.ts +90 -0
- package/src/lib/axes/x/x-axis.ts +109 -0
- package/src/lib/axes/x-ordinal/x-ordinal-axis-builder.ts +75 -0
- package/src/lib/axes/x-ordinal/x-ordinal-axis-config.ts +27 -0
- package/src/lib/axes/x-ordinal/x-ordinal-axis.component.ts +33 -0
- package/src/lib/axes/x-quantitative/x-quantitative-axis-builder.ts +74 -0
- package/src/lib/axes/x-quantitative/x-quantitative-axis-config.ts +32 -0
- package/src/lib/axes/x-quantitative/x-quantitative-axis.component.ts +40 -0
- package/src/lib/axes/xy-axis.module.ts +20 -0
- package/src/lib/axes/y/y-axis-config.ts +47 -0
- package/src/lib/axes/y/y-axis.spec.ts +92 -0
- package/src/lib/axes/y/y-axis.ts +161 -0
- package/src/lib/axes/y-ordinal/y-ordinal-axis-builder.ts +76 -0
- package/src/lib/axes/y-ordinal/y-ordinal-axis-config.ts +29 -0
- package/src/lib/axes/y-ordinal/y-ordinal-axis.component.ts +33 -0
- package/src/lib/axes/y-quantitative-axis/y-quantitative-axis-builder.ts +74 -0
- package/src/lib/axes/y-quantitative-axis/y-quantitative-axis-config.ts +34 -0
- package/src/lib/axes/y-quantitative-axis/y-quantitative-axis.component.ts +40 -0
- package/src/lib/bars/bars.component.scss +0 -0
- package/src/lib/bars/bars.component.spec.ts +1470 -0
- package/src/lib/bars/bars.component.ts +717 -0
- package/src/lib/bars/bars.cy.ts +829 -0
- package/src/lib/bars/bars.module.ts +9 -0
- package/src/lib/bars/config/backgrounds/bars-backgrounds-builder.ts +51 -0
- package/{lib/bars/config/backgrounds/bars-backgrounds-options.d.ts → src/lib/bars/config/backgrounds/bars-backgrounds-options.ts} +4 -4
- package/src/lib/bars/config/backgrounds/bars-backgrounds.ts +11 -0
- package/src/lib/bars/config/bars-builder.ts +340 -0
- package/src/lib/bars/config/bars-config.spec.ts +132 -0
- package/src/lib/bars/config/bars-config.ts +70 -0
- package/src/lib/bars/config/bars-dimensions.ts +29 -0
- package/{lib/bars/config/bars-options.d.ts → src/lib/bars/config/bars-options.ts} +20 -16
- package/src/lib/bars/config/labels/bars-labels-builder.ts +89 -0
- package/src/lib/bars/config/labels/bars-labels-options.ts +6 -0
- package/src/lib/bars/config/labels/bars-labels.cy.ts +781 -0
- package/src/lib/bars/config/labels/bars-labels.ts +13 -0
- package/src/lib/bars/events/actions/bars-click-actions.ts +23 -0
- package/src/lib/bars/events/actions/bars-hover-actions.ts +43 -0
- package/src/lib/bars/events/actions/bars-hover-move-actions.ts +21 -0
- package/src/lib/bars/events/bars-events.directive.spec.ts +186 -0
- package/src/lib/bars/events/bars-events.directive.ts +235 -0
- package/src/lib/bars/events/bars-interaction-output.ts +17 -0
- package/src/lib/bars/events/bars-tooltip-positioner.ts +24 -0
- package/{lib/bars/index.d.ts → src/lib/bars/index.ts} +18 -12
- package/src/lib/charts/chart/chart-scaling.cy.ts +323 -0
- package/src/lib/charts/chart/chart.component.html +45 -0
- package/src/lib/charts/chart/chart.component.scss +37 -0
- package/src/lib/charts/chart/chart.component.ts +243 -0
- package/{lib/charts/chart/chart.token.d.ts → src/lib/charts/chart/chart.token.ts} +4 -3
- package/src/lib/charts/chart/chart.ts +5 -0
- package/src/lib/charts/chart/config/chart-builder.ts +194 -0
- package/src/lib/charts/chart/config/chart-config.ts +21 -0
- package/src/lib/charts/chart/config/chart-options.ts +11 -0
- package/src/lib/charts/chart.module.ts +10 -0
- package/{lib/charts/index.d.ts → src/lib/charts/index.ts} +9 -8
- package/src/lib/charts/map-chart/map-chart.component.scss +0 -0
- package/src/lib/charts/map-chart/map-chart.component.spec.ts +35 -0
- package/src/lib/charts/map-chart/map-chart.component.ts +61 -0
- package/src/lib/charts/xy-chart/xy-chart.component.spec.ts +34 -0
- package/src/lib/charts/xy-chart/xy-chart.component.ts +65 -0
- package/src/lib/core/common-behaviors/constructor.ts +7 -0
- package/src/lib/core/index.ts +11 -0
- package/src/lib/core/pipes/resize-chart-height.pipe.spec.ts +23 -0
- package/src/lib/core/pipes/resize-chart-height.pipe.ts +20 -0
- package/src/lib/core/styles/_spacing.scss +4 -0
- package/src/lib/core/types/layout.ts +28 -0
- package/src/lib/core/types/scale.ts +6 -0
- package/src/lib/core/types/utility.ts +11 -0
- package/{lib/core/types/values.d.ts → src/lib/core/types/values.ts} +10 -7
- package/src/lib/core/utilities/colors.spec.ts +57 -0
- package/src/lib/core/utilities/colors.ts +42 -0
- package/src/lib/core/utilities/fill-utilities.spec.ts +25 -0
- package/src/lib/core/utilities/fill-utilities.ts +21 -0
- package/src/lib/core/utilities/type-guards.spec.ts +55 -0
- package/src/lib/core/utilities/type-guards.ts +33 -0
- package/src/lib/core/utilities/value-format.ts +21 -0
- package/src/lib/core/utilities/values.spec.ts +954 -0
- package/src/lib/core/utilities/values.ts +189 -0
- package/src/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-builder.ts +105 -0
- package/src/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-options.ts +24 -0
- package/src/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position.spec.ts +66 -0
- package/src/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position.ts +72 -0
- package/{lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/concrete-domain-padding.d.ts → src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/concrete-domain-padding.ts} +10 -5
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/domain-padding.ts +76 -0
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/domain-test-utility.ts +130 -0
- package/{lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over-options.d.ts → src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over-options.ts} +3 -3
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over.ts +37 -0
- package/{lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel-options.d.ts → src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel-options.ts} +3 -3
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel.ts +73 -0
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/quantitative-domain-padding.cy.ts +978 -0
- package/{lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval-options.d.ts → src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval-options.ts} +3 -3
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval.ts +27 -0
- package/{lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig-options.d.ts → src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig-options.ts} +3 -3
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig.ts +30 -0
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-builder.ts +183 -0
- package/{lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-options.d.ts → src/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-options.ts} +8 -5
- package/src/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position.spec.ts +28 -0
- package/{lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position.d.ts → src/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position.ts} +62 -30
- package/src/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension-options.ts +15 -0
- package/src/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension.spec.ts +155 -0
- package/src/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension.ts +57 -0
- package/src/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-builder.ts +166 -0
- package/src/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-options.ts +10 -0
- package/src/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value.spec.ts +34 -0
- package/{lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value.d.ts → src/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value.ts} +57 -29
- package/src/lib/data-dimensions/dimension-builder.ts +45 -0
- package/src/lib/data-dimensions/dimension-options.ts +12 -0
- package/src/lib/data-dimensions/dimension.ts +30 -0
- package/src/lib/data-dimensions/index.ts +31 -0
- package/src/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-builder.ts +122 -0
- package/src/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-options.ts +12 -0
- package/src/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position.spec.ts +83 -0
- package/src/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position.ts +101 -0
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder.ts +108 -0
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-options.ts +12 -0
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.cy.ts +384 -0
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.spec.ts +63 -0
- package/src/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.ts +79 -0
- package/src/lib/data-export/data-export-config.ts +98 -0
- package/src/lib/data-export/data-export.spec.ts +33 -0
- package/src/lib/data-export/data-export.ts +87 -0
- package/{lib/data-export/index.d.ts → src/lib/data-export/index.ts} +2 -2
- package/src/lib/dots/config/dots-builder.ts +442 -0
- package/src/lib/dots/config/dots-config.spec.ts +123 -0
- package/src/lib/dots/config/dots-config.ts +81 -0
- package/{lib/dots/config/dots-options.d.ts → src/lib/dots/config/dots-options.ts} +32 -17
- package/src/lib/dots/dots.component.scss +0 -0
- package/src/lib/dots/dots.component.spec.ts +143 -0
- package/src/lib/dots/dots.component.ts +291 -0
- package/src/lib/dots/dots.cy.ts +594 -0
- package/src/lib/dots/dots.module.ts +9 -0
- package/src/lib/dots/events/actions/dots-hover-actions.ts +19 -0
- package/src/lib/dots/events/actions/dots-hover-move-actions.ts +38 -0
- package/src/lib/dots/events/dots-events.directive.ts +214 -0
- package/src/lib/dots/events/dots-interaction-output.ts +15 -0
- package/src/lib/dots/events/dots-tooltip-positioner.ts +24 -0
- package/{lib/dots/index.d.ts → src/lib/dots/index.ts} +10 -9
- package/src/lib/events/events.directive.ts +184 -0
- package/src/lib/events/events.types.ts +57 -0
- package/{lib/events/index.d.ts → src/lib/events/index.ts} +4 -4
- package/src/lib/events/interaction-output.ts +34 -0
- package/src/lib/events/tooltip-positioner.ts +15 -0
- package/src/lib/fill-definitions/fill-definitions.ts +4 -0
- package/{lib/fill-definitions/index.d.ts → src/lib/fill-definitions/index.ts} +1 -1
- package/src/lib/geographies/config/geographies-builder.ts +224 -0
- package/src/lib/geographies/config/geographies-config.spec.ts +100 -0
- package/src/lib/geographies/config/geographies-config.ts +81 -0
- package/src/lib/geographies/config/geographies-options.ts +37 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-builder.ts +212 -0
- package/{lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-options.d.ts → src/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-options.ts} +26 -16
- package/src/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer.spec.ts +119 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer.ts +148 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-builder.ts +65 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-options.ts +15 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension.ts +32 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-enums.ts +10 -0
- package/{lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-types.d.ts → src/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-types.ts} +15 -8
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-builder.ts +18 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-options.ts +8 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins.spec.ts +60 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins.ts +34 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-builder.ts +46 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-options.ts +8 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.cy.ts +437 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.spec.ts +105 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.ts +54 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-builder.ts +65 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-options.ts +9 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins.spec.ts +82 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins.ts +81 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks.cy.ts +378 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-builder.ts +50 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-options.ts +8 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.cy.ts +362 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.spec.ts +72 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.ts +56 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-builder.ts +60 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-options.ts +9 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.cy.ts +307 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.spec.ts +104 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.ts +89 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-builder.ts +62 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-options.ts +8 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.cy.ts +265 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.spec.ts +42 -0
- package/src/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.ts +42 -0
- package/src/lib/geographies/config/layers/geographies-layer/geographies-layer-builder.ts +116 -0
- package/{lib/geographies/config/layers/geographies-layer/geographies-layer-options.d.ts → src/lib/geographies/config/layers/geographies-layer/geographies-layer-options.ts} +20 -16
- package/src/lib/geographies/config/layers/geographies-layer/geographies-layer.ts +104 -0
- package/src/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-builder.ts +111 -0
- package/src/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-options.ts +19 -0
- package/src/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer.spec.ts +41 -0
- package/src/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer.ts +67 -0
- package/src/lib/geographies/config/layers/labels/geographies-labels-builder.ts +269 -0
- package/src/lib/geographies/config/layers/labels/geographies-labels-options.ts +45 -0
- package/src/lib/geographies/config/layers/labels/geographies-labels.ts +38 -0
- package/src/lib/geographies/events/actions/geographies-click-actions.ts +21 -0
- package/src/lib/geographies/events/actions/geographies-hover-actions.ts +17 -0
- package/src/lib/geographies/events/actions/geographies-hover-move-actions.ts +19 -0
- package/src/lib/geographies/events/geographies-events.directive.spec.ts +225 -0
- package/src/lib/geographies/events/geographies-events.directive.ts +235 -0
- package/src/lib/geographies/events/geographies-interaction-output.ts +17 -0
- package/src/lib/geographies/events/geographies-tooltip-positioner.ts +23 -0
- package/src/lib/geographies/geographies-feature.ts +16 -0
- package/src/lib/geographies/geographies.component.html +1 -0
- package/src/lib/geographies/geographies.component.scss +0 -0
- package/src/lib/geographies/geographies.component.spec.ts +148 -0
- package/src/lib/geographies/geographies.component.ts +318 -0
- package/src/lib/geographies/geographies.cy.ts +640 -0
- package/src/lib/geographies/geographies.module.ts +9 -0
- package/{lib/geographies/index.d.ts → src/lib/geographies/index.ts} +32 -32
- package/src/lib/grouped-bars/config/grouped-bars-builder.ts +66 -0
- package/src/lib/grouped-bars/config/grouped-bars-config.ts +41 -0
- package/src/lib/grouped-bars/config/grouped-bars-options.ts +9 -0
- package/src/lib/grouped-bars/events/grouped-bars-events.directive.ts +221 -0
- package/src/lib/grouped-bars/grouped-bars.component.scss +0 -0
- package/src/lib/grouped-bars/grouped-bars.component.spec.ts +25 -0
- package/src/lib/grouped-bars/grouped-bars.component.ts +94 -0
- package/src/lib/grouped-bars/grouped-bars.module.ts +9 -0
- package/{lib/grouped-bars/index.d.ts → src/lib/grouped-bars/index.ts} +10 -7
- package/src/lib/image-download/image-download-config.ts +57 -0
- package/src/lib/image-download/image-download-enums.ts +7 -0
- package/src/lib/image-download/image-download-options.ts +14 -0
- package/src/lib/image-download/image-download.service.ts +70 -0
- package/{lib/image-download/index.d.ts → src/lib/image-download/index.ts} +4 -4
- package/src/lib/lines/config/area-fills/area-fills-builder.ts +87 -0
- package/src/lib/lines/config/area-fills/area-fills-options.ts +8 -0
- package/src/lib/lines/config/area-fills/area-fills.ts +14 -0
- package/src/lib/lines/config/lines-builder.ts +242 -0
- package/src/lib/lines/config/lines-config.spec.ts +52 -0
- package/src/lib/lines/config/lines-config.ts +96 -0
- package/{lib/lines/config/lines-options.d.ts → src/lib/lines/config/lines-options.ts} +19 -18
- package/src/lib/lines/config/stroke/lines-stroke-builder.ts +135 -0
- package/{lib/lines/config/stroke/lines-stroke-options.d.ts → src/lib/lines/config/stroke/lines-stroke-options.ts} +6 -5
- package/src/lib/lines/config/stroke/lines-stroke.ts +15 -0
- package/src/lib/lines/events/actions/lines-click-actions.ts +17 -0
- package/src/lib/lines/events/actions/lines-hover-move-actions.ts +113 -0
- package/src/lib/lines/events/actions/lines-marker-click-actions.ts +29 -0
- package/src/lib/lines/events/lines-events.directive.spec.ts +152 -0
- package/src/lib/lines/events/lines-events.directive.ts +310 -0
- package/src/lib/lines/events/lines-interaction-output.ts +17 -0
- package/src/lib/lines/events/lines-tooltip-positioner.ts +24 -0
- package/{lib/lines/index.d.ts → src/lib/lines/index.ts} +17 -11
- package/src/lib/lines/lines.component.scss +0 -0
- package/src/lib/lines/lines.component.spec.ts +95 -0
- package/src/lib/lines/lines.component.ts +425 -0
- package/src/lib/lines/lines.cy.ts +738 -0
- package/src/lib/lines/lines.module.ts +9 -0
- package/src/lib/map-legend/continuous-legend/continuous-legend.component.html +28 -0
- package/src/lib/map-legend/continuous-legend/continuous-legend.component.scss +76 -0
- package/src/lib/map-legend/continuous-legend/continuous-legend.component.spec.ts +61 -0
- package/src/lib/map-legend/continuous-legend/continuous-legend.component.ts +82 -0
- package/src/lib/map-legend/discontinuous-legend/discontinuous-legend.component.html +40 -0
- package/src/lib/map-legend/discontinuous-legend/discontinuous-legend.component.scss +141 -0
- package/src/lib/map-legend/discontinuous-legend/discontinuous-legend.component.spec.ts +75 -0
- package/src/lib/map-legend/discontinuous-legend/discontinuous-legend.component.ts +57 -0
- package/{lib/map-legend/index.d.ts → src/lib/map-legend/index.ts} +2 -2
- package/src/lib/map-legend/map-legend-base.spec.ts +190 -0
- package/src/lib/map-legend/map-legend-base.ts +99 -0
- package/src/lib/map-legend/map-legend.component.html +24 -0
- package/src/lib/map-legend/map-legend.component.scss +0 -0
- package/src/lib/map-legend/map-legend.component.spec.ts +125 -0
- package/src/lib/map-legend/map-legend.component.ts +80 -0
- package/src/lib/map-legend/map-legend.module.ts +8 -0
- package/src/lib/marks/aux-marks/aux-marks.ts +18 -0
- package/src/lib/marks/aux-marks/config/aux-marks-builder.ts +25 -0
- package/{lib/marks/aux-marks/config/aux-marks-config.d.ts → src/lib/marks/aux-marks/config/aux-marks-config.ts} +6 -4
- package/src/lib/marks/config/marks-config.ts +14 -0
- package/src/lib/marks/config/marks-options.ts +9 -0
- package/{lib/marks/index.d.ts → src/lib/marks/index.ts} +15 -15
- package/src/lib/marks/map-marks/map-aux-marks/map-aux-marks.spec.ts +74 -0
- package/src/lib/marks/map-marks/map-aux-marks/map-aux-marks.ts +40 -0
- package/src/lib/marks/map-marks/map-primary-marks/map-primary-marks.spec.ts +79 -0
- package/src/lib/marks/map-marks/map-primary-marks/map-primary-marks.ts +63 -0
- package/src/lib/marks/marks.ts +39 -0
- package/src/lib/marks/primary-marks/config/primary-marks-builder.ts +75 -0
- package/src/lib/marks/primary-marks/config/primary-marks-config.ts +9 -0
- package/src/lib/marks/primary-marks/primary-marks-base.spec.ts +58 -0
- package/src/lib/marks/primary-marks/primary-marks.ts +43 -0
- package/src/lib/marks/xy-marks/xy-aux-marks/xy-aux-marks.ts +40 -0
- package/src/lib/marks/xy-marks/xy-marks-config.ts +5 -0
- package/src/lib/marks/xy-marks/xy-marks.ts +10 -0
- package/src/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks-config.ts +7 -0
- package/src/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks.spec.ts +186 -0
- package/src/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks.ts +72 -0
- package/{lib/point-markers/index.d.ts → src/lib/point-markers/index.ts} +3 -2
- package/src/lib/point-markers/point-markers-builder.ts +93 -0
- package/src/lib/point-markers/point-markers-options.ts +6 -0
- package/src/lib/point-markers/point-markers.ts +13 -0
- package/src/lib/quantitative-rules/config/labels/quantitative-rules-labels-builder.ts +162 -0
- package/src/lib/quantitative-rules/config/labels/quantitative-rules-labels-options.ts +17 -0
- package/src/lib/quantitative-rules/config/labels/quantitative-rules-labels.ts +26 -0
- package/src/lib/quantitative-rules/config/quantitative-rules-builder.ts +134 -0
- package/src/lib/quantitative-rules/config/quantitative-rules-config.ts +21 -0
- package/src/lib/quantitative-rules/config/quantitative-rules-dimensions.ts +20 -0
- package/{lib/quantitative-rules/config/quantitative-rules-options.d.ts → src/lib/quantitative-rules/config/quantitative-rules-options.ts} +13 -10
- package/{lib/quantitative-rules/index.d.ts → src/lib/quantitative-rules/index.ts} +6 -6
- package/src/lib/quantitative-rules/quantitative-rules.component.scss +3 -0
- package/src/lib/quantitative-rules/quantitative-rules.component.spec.ts +50 -0
- package/src/lib/quantitative-rules/quantitative-rules.component.ts +224 -0
- package/src/lib/quantitative-rules/quantitative-rules.cy.ts +549 -0
- package/src/lib/quantitative-rules/quantitative-rules.module.ts +8 -0
- package/src/lib/stacked-area/config/stacked-area-builder.ts +264 -0
- package/src/lib/stacked-area/config/stacked-area-config.spec.ts +107 -0
- package/src/lib/stacked-area/config/stacked-area-config.ts +109 -0
- package/src/lib/stacked-area/config/stacked-area-options.ts +28 -0
- package/src/lib/stacked-area/events/actions/stacked-area-hover-move-actions.ts +17 -0
- package/src/lib/stacked-area/events/stacked-area-events.directive.spec.ts +168 -0
- package/src/lib/stacked-area/events/stacked-area-events.directive.ts +272 -0
- package/src/lib/stacked-area/events/stacked-area-interaction-output.ts +33 -0
- package/src/lib/stacked-area/events/stacked-area-tooltip-positioner.ts +37 -0
- package/{lib/stacked-area/index.d.ts → src/lib/stacked-area/index.ts} +7 -7
- package/src/lib/stacked-area/stacked-area.component.scss +0 -0
- package/src/lib/stacked-area/stacked-area.component.spec.ts +41 -0
- package/src/lib/stacked-area/stacked-area.component.ts +241 -0
- package/src/lib/stacked-area/stacked-area.module.ts +9 -0
- package/src/lib/stacked-bars/config/stacked-bars-builder.ts +109 -0
- package/src/lib/stacked-bars/config/stacked-bars-config.spec.ts +122 -0
- package/src/lib/stacked-bars/config/stacked-bars-config.ts +79 -0
- package/src/lib/stacked-bars/config/stacked-bars-options.ts +16 -0
- package/src/lib/stacked-bars/events/actions/stacked-bars-click-actions.ts +23 -0
- package/src/lib/stacked-bars/events/actions/stacked-bars-hover-actions.ts +22 -0
- package/src/lib/stacked-bars/events/actions/stacked-bars-hover-move-actions.ts +21 -0
- package/src/lib/stacked-bars/events/stacked-bars-events.directive.spec.ts +266 -0
- package/src/lib/stacked-bars/events/stacked-bars-events.directive.ts +240 -0
- package/{lib/stacked-bars/index.d.ts → src/lib/stacked-bars/index.ts} +10 -10
- package/src/lib/stacked-bars/stacked-bars.component.scss +0 -0
- package/src/lib/stacked-bars/stacked-bars.component.spec.ts +25 -0
- package/src/lib/stacked-bars/stacked-bars.component.ts +158 -0
- package/src/lib/stacked-bars/stacked-bars.module.ts +9 -0
- package/src/lib/stroke/base/stroke-base-options.ts +7 -0
- package/src/lib/stroke/base/stroke-base.ts +9 -0
- package/src/lib/stroke/index.ts +5 -0
- package/src/lib/stroke/stroke-builder.ts +103 -0
- package/{lib/stroke/stroke-options.d.ts → src/lib/stroke/stroke-options.ts} +5 -4
- package/src/lib/stroke/stroke.ts +12 -0
- package/{lib/svg-text-wrap/index.d.ts → src/lib/svg-text-wrap/index.ts} +3 -2
- package/src/lib/svg-text-wrap/svg-text-wrap-builder.ts +105 -0
- package/src/lib/svg-text-wrap/svg-text-wrap-options.ts +8 -0
- package/src/lib/svg-text-wrap/svg-text-wrap.ts +137 -0
- package/src/lib/testing/data/continent-population-year-data.ts +126 -0
- package/src/lib/testing/data/country-area-continent.ts +59 -0
- package/src/lib/testing/data/state-population-income-year-data.ts +123 -0
- package/src/lib/testing/stubs/bars.component.stub.ts +12 -0
- package/src/lib/testing/stubs/chart.component.stub.ts +6 -0
- package/src/lib/testing/stubs/click.directive.stub.ts +15 -0
- package/src/lib/testing/stubs/core/destroy-ref.stub.ts +9 -0
- package/src/lib/testing/stubs/core/overlay-ref.stub.ts +13 -0
- package/src/lib/testing/stubs/core/overlay.stub.ts +8 -0
- package/src/lib/testing/stubs/event.directive.stub.ts +10 -0
- package/src/lib/testing/stubs/hover-move.directive.stub.ts +17 -0
- package/src/lib/testing/stubs/hover.directive.stub.ts +14 -0
- package/src/lib/testing/stubs/input-event.directive.stub.ts +9 -0
- package/src/lib/testing/stubs/lines.component.stub.ts +13 -0
- package/src/lib/testing/stubs/map-aux-marks.stub.ts +10 -0
- package/src/lib/testing/stubs/map-chart.component.stub.ts +3 -0
- package/src/lib/testing/stubs/map-legend-content.stub.ts +16 -0
- package/src/lib/testing/stubs/map-legend.component.stub.ts +10 -0
- package/src/lib/testing/stubs/map-primary-marks.stub.ts +16 -0
- package/src/lib/testing/stubs/ordinal-axis.stub.ts +18 -0
- package/src/lib/testing/stubs/primary-marks.stub.ts +18 -0
- package/src/lib/testing/stubs/quantitative-axis.stub.ts +18 -0
- package/src/lib/testing/stubs/services/main.service.stub.ts +5 -0
- package/src/lib/testing/stubs/services/utilities.service.stub.ts +7 -0
- package/src/lib/testing/stubs/stacked-area.component.stub.ts +13 -0
- package/src/lib/testing/stubs/x-axis.stub.ts +10 -0
- package/src/lib/testing/stubs/xy-axis.class.stub.ts +20 -0
- package/src/lib/testing/stubs/xy-axis.stub.ts +44 -0
- package/src/lib/testing/stubs/xy-chart.component.stub.ts +5 -0
- package/src/lib/testing/stubs/xy-data-marks.stub.ts +15 -0
- package/src/lib/testing/stubs/y-axis.stub.ts +15 -0
- package/src/lib/tooltips/config/tooltip.ts +11 -0
- package/src/lib/tooltips/html-tooltip/config/html-tooltip-builder.ts +134 -0
- package/src/lib/tooltips/html-tooltip/config/html-tooltip-config.ts +21 -0
- package/{lib/tooltips/html-tooltip/config/html-tooltip-options.d.ts → src/lib/tooltips/html-tooltip/config/html-tooltip-options.ts} +12 -11
- package/src/lib/tooltips/html-tooltip/config/position/tooltip-position-builder.ts +191 -0
- package/src/lib/tooltips/html-tooltip/config/position/tooltip-position.ts +42 -0
- package/src/lib/tooltips/html-tooltip/config/size/tooltip-size-builder.ts +75 -0
- package/src/lib/tooltips/html-tooltip/config/size/tooltip-size-options.ts +8 -0
- package/src/lib/tooltips/html-tooltip/config/size/tooltip-size.ts +15 -0
- package/src/lib/tooltips/html-tooltip/html-tooltip.directive.spec.ts +537 -0
- package/src/lib/tooltips/html-tooltip/html-tooltip.directive.ts +210 -0
- package/src/lib/tooltips/html-tooltip/html-tooltip.module.ts +16 -0
- package/src/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.html +41 -0
- package/src/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.scss +63 -0
- package/src/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.ts +19 -0
- package/{lib/tooltips/index.d.ts → src/lib/tooltips/index.ts} +11 -11
- package/src/lib/tooltips/svg-tooltip/config/svg-tooltip.ts +5 -0
- package/{lib/xy-background/index.d.ts → src/lib/xy-background/index.ts} +2 -2
- package/src/lib/xy-background/xy-background.component.html +10 -0
- package/src/lib/xy-background/xy-background.component.scss +0 -0
- package/src/lib/xy-background/xy-background.component.spec.ts +24 -0
- package/src/lib/xy-background/xy-background.component.ts +19 -0
- package/src/lib/xy-background/xy-background.module.ts +8 -0
- package/{public-api.d.ts → src/public-api.ts} +26 -23
- package/src/test.ts +15 -0
- package/tsconfig.doc.json +4 -0
- package/tsconfig.json +20 -0
- package/tsconfig.lib.json +23 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +10 -0
- package/fesm2022/mathstack-viz.mjs +0 -11058
- package/fesm2022/mathstack-viz.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/axes/base/config/xy-axis-builder.d.ts +0 -38
- package/lib/axes/base/config/xy-axis-config.d.ts +0 -18
- package/lib/axes/base/xy-axis-base.d.ts +0 -49
- package/lib/axes/baseline/axis-baseline-builder.d.ts +0 -31
- package/lib/axes/baseline/axis-baseline-options.d.ts +0 -7
- package/lib/axes/baseline/axis-baseline.d.ts +0 -9
- package/lib/axes/grid/grid-builder.d.ts +0 -29
- package/lib/axes/grid/grid-config.d.ts +0 -8
- package/lib/axes/grid/grid-options.d.ts +0 -6
- package/lib/axes/index.d.ts +0 -13
- package/lib/axes/label/axis-label-builder.d.ts +0 -63
- package/lib/axes/label/axis-label-options.d.ts +0 -11
- package/lib/axes/label/axis-label.d.ts +0 -13
- package/lib/axes/ordinal/ordinal-axis-config.d.ts +0 -38
- package/lib/axes/ordinal/ordinal-axis.d.ts +0 -43
- package/lib/axes/quantitative/quantitative-axis-config.d.ts +0 -38
- package/lib/axes/quantitative/quantitative-axis.d.ts +0 -51
- package/lib/axes/ticks/tick-wrap/tick-wrap-builder.d.ts +0 -64
- package/lib/axes/ticks/tick-wrap/tick-wrap-options.d.ts +0 -8
- package/lib/axes/ticks/tick-wrap/tick-wrap.d.ts +0 -13
- package/lib/axes/ticks/ticks-builder.d.ts +0 -172
- package/lib/axes/ticks/ticks-options.d.ts +0 -22
- package/lib/axes/ticks/ticks.d.ts +0 -24
- package/lib/axes/x/x-axis-config.d.ts +0 -42
- package/lib/axes/x/x-axis.d.ts +0 -47
- package/lib/axes/x-ordinal/x-ordinal-axis-builder.d.ts +0 -29
- package/lib/axes/x-ordinal/x-ordinal-axis-config.d.ts +0 -25
- package/lib/axes/x-ordinal/x-ordinal-axis.component.d.ts +0 -88
- package/lib/axes/x-quantitative/x-quantitative-axis-builder.d.ts +0 -29
- package/lib/axes/x-quantitative/x-quantitative-axis-config.d.ts +0 -25
- package/lib/axes/x-quantitative/x-quantitative-axis.component.d.ts +0 -53
- package/lib/axes/xy-axis.module.d.ts +0 -10
- package/lib/axes/y/y-axis-config.d.ts +0 -42
- package/lib/axes/y/y-axis.d.ts +0 -53
- package/lib/axes/y-ordinal/y-ordinal-axis-builder.d.ts +0 -29
- package/lib/axes/y-ordinal/y-ordinal-axis-config.d.ts +0 -25
- package/lib/axes/y-ordinal/y-ordinal-axis.component.d.ts +0 -89
- package/lib/axes/y-quantitative-axis/y-quantitative-axis-builder.d.ts +0 -29
- package/lib/axes/y-quantitative-axis/y-quantitative-axis-config.d.ts +0 -25
- package/lib/axes/y-quantitative-axis/y-quantitative-axis.component.d.ts +0 -54
- package/lib/bars/bars.component.d.ts +0 -91
- package/lib/bars/bars.module.d.ts +0 -8
- package/lib/bars/config/backgrounds/bars-backgrounds-builder.d.ts +0 -27
- package/lib/bars/config/backgrounds/bars-backgrounds.d.ts +0 -6
- package/lib/bars/config/bars-builder.d.ts +0 -132
- package/lib/bars/config/bars-config.d.ts +0 -27
- package/lib/bars/config/bars-dimensions.d.ts +0 -11
- package/lib/bars/config/labels/bars-labels-builder.d.ts +0 -48
- package/lib/bars/config/labels/bars-labels-options.d.ts +0 -9
- package/lib/bars/config/labels/bars-labels.d.ts +0 -11
- package/lib/bars/events/actions/bars-click-actions.d.ts +0 -8
- package/lib/bars/events/actions/bars-hover-actions.d.ts +0 -12
- package/lib/bars/events/actions/bars-hover-move-actions.d.ts +0 -8
- package/lib/bars/events/bars-events.directive.d.ts +0 -38
- package/lib/bars/events/bars-interaction-output.d.ts +0 -16
- package/lib/bars/events/bars-tooltip-positioner.d.ts +0 -13
- package/lib/charts/chart/chart.component.d.ts +0 -73
- package/lib/charts/chart/chart.d.ts +0 -4
- package/lib/charts/chart/config/chart-builder.d.ts +0 -94
- package/lib/charts/chart/config/chart-config.d.ts +0 -16
- package/lib/charts/chart/config/chart-options.d.ts +0 -10
- package/lib/charts/chart.module.d.ts +0 -9
- package/lib/charts/map-chart/map-chart.component.d.ts +0 -40
- package/lib/charts/xy-chart/xy-chart.component.d.ts +0 -40
- package/lib/core/common-behaviors/constructor.d.ts +0 -2
- package/lib/core/index.d.ts +0 -5
- package/lib/core/types/layout.d.ts +0 -24
- package/lib/core/types/scale.d.ts +0 -5
- package/lib/core/utilities/colors.d.ts +0 -13
- package/lib/core/utilities/fill-utilities.d.ts +0 -7
- package/lib/core/utilities/type-guards.d.ts +0 -6
- package/lib/core/utilities/value-format.d.ts +0 -11
- package/lib/core/utilities/values.d.ts +0 -16
- package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-builder.d.ts +0 -39
- package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-options.d.ts +0 -18
- package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position.d.ts +0 -38
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/domain-padding.d.ts +0 -20
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over.d.ts +0 -9
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel.d.ts +0 -10
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval.d.ts +0 -8
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig.d.ts +0 -8
- package/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-builder.d.ts +0 -71
- package/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension-options.d.ts +0 -8
- package/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension.d.ts +0 -28
- package/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-builder.d.ts +0 -69
- package/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-options.d.ts +0 -6
- package/lib/data-dimensions/dimension-builder.d.ts +0 -21
- package/lib/data-dimensions/dimension-options.d.ts +0 -11
- package/lib/data-dimensions/dimension.d.ts +0 -16
- package/lib/data-dimensions/index.d.ts +0 -9
- package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-builder.d.ts +0 -53
- package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-options.d.ts +0 -8
- package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position.d.ts +0 -44
- package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder.d.ts +0 -45
- package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-options.d.ts +0 -7
- package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.d.ts +0 -38
- package/lib/data-export/data-export-config.d.ts +0 -50
- package/lib/data-export/data-export.d.ts +0 -7
- package/lib/dots/config/dots-builder.d.ts +0 -110
- package/lib/dots/config/dots-config.d.ts +0 -26
- package/lib/dots/dots.component.d.ts +0 -55
- package/lib/dots/dots.module.d.ts +0 -8
- package/lib/dots/events/actions/dots-hover-actions.d.ts +0 -6
- package/lib/dots/events/actions/dots-hover-move-actions.d.ts +0 -10
- package/lib/dots/events/dots-events.directive.d.ts +0 -37
- package/lib/dots/events/dots-interaction-output.d.ts +0 -14
- package/lib/dots/events/dots-tooltip-positioner.d.ts +0 -13
- package/lib/events/events.directive.d.ts +0 -43
- package/lib/events/events.types.d.ts +0 -34
- package/lib/events/interaction-output.d.ts +0 -33
- package/lib/events/tooltip-positioner.d.ts +0 -6
- package/lib/fill-definitions/fill-definitions.d.ts +0 -4
- package/lib/geographies/config/geographies-builder.d.ts +0 -80
- package/lib/geographies/config/geographies-config.d.ts +0 -19
- package/lib/geographies/config/geographies-options.d.ts +0 -13
- package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-builder.d.ts +0 -63
- package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer.d.ts +0 -30
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-builder.d.ts +0 -40
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-options.d.ts +0 -8
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension.d.ts +0 -18
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-enums.d.ts +0 -10
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-builder.d.ts +0 -10
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-options.d.ts +0 -4
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins.d.ts +0 -8
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-builder.d.ts +0 -14
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-options.d.ts +0 -4
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.d.ts +0 -20
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-builder.d.ts +0 -29
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-options.d.ts +0 -5
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins.d.ts +0 -23
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-builder.d.ts +0 -16
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-options.d.ts +0 -4
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.d.ts +0 -18
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-builder.d.ts +0 -21
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-options.d.ts +0 -5
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.d.ts +0 -24
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-builder.d.ts +0 -26
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-options.d.ts +0 -5
- package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.d.ts +0 -12
- package/lib/geographies/config/layers/geographies-layer/geographies-layer-builder.d.ts +0 -52
- package/lib/geographies/config/layers/geographies-layer/geographies-layer.d.ts +0 -29
- package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-builder.d.ts +0 -25
- package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-options.d.ts +0 -11
- package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer.d.ts +0 -16
- package/lib/geographies/config/layers/labels/geographies-labels-builder.d.ts +0 -97
- package/lib/geographies/config/layers/labels/geographies-labels-options.d.ts +0 -33
- package/lib/geographies/config/layers/labels/geographies-labels.d.ts +0 -20
- package/lib/geographies/events/actions/geographies-click-actions.d.ts +0 -7
- package/lib/geographies/events/actions/geographies-hover-actions.d.ts +0 -7
- package/lib/geographies/events/actions/geographies-hover-move-actions.d.ts +0 -7
- package/lib/geographies/events/geographies-events.directive.d.ts +0 -38
- package/lib/geographies/events/geographies-interaction-output.d.ts +0 -16
- package/lib/geographies/events/geographies-tooltip-positioner.d.ts +0 -13
- package/lib/geographies/geographies-feature.d.ts +0 -5
- package/lib/geographies/geographies.component.d.ts +0 -36
- package/lib/geographies/geographies.module.d.ts +0 -8
- package/lib/grouped-bars/config/grouped-bars-builder.d.ts +0 -29
- package/lib/grouped-bars/config/grouped-bars-config.d.ts +0 -10
- package/lib/grouped-bars/config/grouped-bars-options.d.ts +0 -5
- package/lib/grouped-bars/events/grouped-bars-events.directive.d.ts +0 -35
- package/lib/grouped-bars/grouped-bars.component.d.ts +0 -19
- package/lib/grouped-bars/grouped-bars.module.d.ts +0 -8
- package/lib/image-download/image-download-config.d.ts +0 -31
- package/lib/image-download/image-download-enums.d.ts +0 -6
- package/lib/image-download/image-download-options.d.ts +0 -14
- package/lib/image-download/image-download.service.d.ts +0 -16
- package/lib/lines/config/area-fills/area-fills-builder.d.ts +0 -45
- package/lib/lines/config/area-fills/area-fills-options.d.ts +0 -7
- package/lib/lines/config/area-fills/area-fills.d.ts +0 -9
- package/lib/lines/config/lines-builder.d.ts +0 -101
- package/lib/lines/config/lines-config.d.ts +0 -37
- package/lib/lines/config/stroke/lines-stroke-builder.d.ts +0 -59
- package/lib/lines/config/stroke/lines-stroke.d.ts +0 -7
- package/lib/lines/events/actions/lines-click-actions.d.ts +0 -6
- package/lib/lines/events/actions/lines-hover-move-actions.d.ts +0 -41
- package/lib/lines/events/actions/lines-marker-click-actions.d.ts +0 -6
- package/lib/lines/events/lines-events.directive.d.ts +0 -49
- package/lib/lines/events/lines-interaction-output.d.ts +0 -16
- package/lib/lines/events/lines-tooltip-positioner.d.ts +0 -13
- package/lib/lines/lines.component.d.ts +0 -53
- package/lib/lines/lines.module.d.ts +0 -8
- package/lib/map-legend/continuous-legend/continuous-legend.component.d.ts +0 -18
- package/lib/map-legend/discontinuous-legend/discontinuous-legend.component.d.ts +0 -12
- package/lib/map-legend/map-legend-base.d.ts +0 -33
- package/lib/map-legend/map-legend.component.d.ts +0 -27
- package/lib/map-legend/map-legend.module.d.ts +0 -7
- package/lib/marks/aux-marks/aux-marks.d.ts +0 -10
- package/lib/marks/aux-marks/config/aux-marks-builder.d.ts +0 -11
- package/lib/marks/config/marks-config.d.ts +0 -9
- package/lib/marks/config/marks-options.d.ts +0 -8
- package/lib/marks/map-marks/map-aux-marks/map-aux-marks.d.ts +0 -17
- package/lib/marks/map-marks/map-primary-marks/map-primary-marks.d.ts +0 -20
- package/lib/marks/marks.d.ts +0 -31
- package/lib/marks/primary-marks/config/primary-marks-builder.d.ts +0 -32
- package/lib/marks/primary-marks/config/primary-marks-config.d.ts +0 -5
- package/lib/marks/primary-marks/primary-marks.d.ts +0 -23
- package/lib/marks/xy-marks/xy-aux-marks/xy-aux-marks.d.ts +0 -16
- package/lib/marks/xy-marks/xy-marks-config.d.ts +0 -4
- package/lib/marks/xy-marks/xy-marks.d.ts +0 -6
- package/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks-config.d.ts +0 -4
- package/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks.d.ts +0 -20
- package/lib/point-markers/point-markers-builder.d.ts +0 -47
- package/lib/point-markers/point-markers-options.d.ts +0 -6
- package/lib/point-markers/point-markers.d.ts +0 -8
- package/lib/quantitative-rules/config/labels/quantitative-rules-labels-builder.d.ts +0 -60
- package/lib/quantitative-rules/config/labels/quantitative-rules-labels-options.d.ts +0 -9
- package/lib/quantitative-rules/config/labels/quantitative-rules-labels.d.ts +0 -11
- package/lib/quantitative-rules/config/quantitative-rules-builder.d.ts +0 -52
- package/lib/quantitative-rules/config/quantitative-rules-config.d.ts +0 -12
- package/lib/quantitative-rules/config/quantitative-rules-dimensions.d.ts +0 -8
- package/lib/quantitative-rules/quantitative-rules.component.d.ts +0 -27
- package/lib/quantitative-rules/quantitative-rules.module.d.ts +0 -7
- package/lib/stacked-area/config/stacked-area-builder.d.ts +0 -85
- package/lib/stacked-area/config/stacked-area-config.d.ts +0 -36
- package/lib/stacked-area/config/stacked-area-options.d.ts +0 -21
- package/lib/stacked-area/events/actions/stacked-area-hover-move-actions.d.ts +0 -7
- package/lib/stacked-area/events/stacked-area-events.directive.d.ts +0 -38
- package/lib/stacked-area/events/stacked-area-interaction-output.d.ts +0 -28
- package/lib/stacked-area/events/stacked-area-tooltip-positioner.d.ts +0 -16
- package/lib/stacked-area/stacked-area.component.d.ts +0 -51
- package/lib/stacked-area/stacked-area.module.d.ts +0 -8
- package/lib/stacked-bars/config/stacked-bars-builder.d.ts +0 -26
- package/lib/stacked-bars/config/stacked-bars-config.d.ts +0 -16
- package/lib/stacked-bars/config/stacked-bars-options.d.ts +0 -7
- package/lib/stacked-bars/events/actions/stacked-bars-click-actions.d.ts +0 -8
- package/lib/stacked-bars/events/actions/stacked-bars-hover-actions.d.ts +0 -8
- package/lib/stacked-bars/events/actions/stacked-bars-hover-move-actions.d.ts +0 -8
- package/lib/stacked-bars/events/stacked-bars-events.directive.d.ts +0 -39
- package/lib/stacked-bars/stacked-bars.component.d.ts +0 -26
- package/lib/stacked-bars/stacked-bars.module.d.ts +0 -8
- package/lib/stroke/base/stroke-base-options.d.ts +0 -7
- package/lib/stroke/base/stroke-base.d.ts +0 -8
- package/lib/stroke/index.d.ts +0 -2
- package/lib/stroke/stroke-builder.d.ts +0 -56
- package/lib/stroke/stroke.d.ts +0 -6
- package/lib/svg-text-wrap/svg-text-wrap-builder.d.ts +0 -58
- package/lib/svg-text-wrap/svg-text-wrap-options.d.ts +0 -8
- package/lib/svg-text-wrap/svg-text-wrap.d.ts +0 -13
- package/lib/tooltips/config/tooltip.d.ts +0 -5
- package/lib/tooltips/html-tooltip/config/html-tooltip-builder.d.ts +0 -57
- package/lib/tooltips/html-tooltip/config/html-tooltip-config.d.ts +0 -15
- package/lib/tooltips/html-tooltip/config/position/tooltip-position-builder.d.ts +0 -34
- package/lib/tooltips/html-tooltip/config/position/tooltip-position.d.ts +0 -23
- package/lib/tooltips/html-tooltip/config/size/tooltip-size-builder.d.ts +0 -16
- package/lib/tooltips/html-tooltip/config/size/tooltip-size-options.d.ts +0 -8
- package/lib/tooltips/html-tooltip/config/size/tooltip-size.d.ts +0 -10
- package/lib/tooltips/html-tooltip/html-tooltip.directive.d.ts +0 -43
- package/lib/tooltips/html-tooltip/html-tooltip.module.d.ts +0 -10
- package/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.d.ts +0 -7
- package/lib/xy-background/xy-background.component.d.ts +0 -9
- package/lib/xy-background/xy-background.module.d.ts +0 -7
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type * as CSSType from 'csstype';
|
|
2
|
-
import { GeoPath, GeoProjection, ScaleLinear } from 'd3';
|
|
3
|
-
import { Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
4
|
-
import { Position } from '../../../../core/types/layout';
|
|
5
|
-
import { GeographiesFeature } from '../../../geographies-feature';
|
|
6
|
-
import { GeographiesLabelsColorOptions, GeographiesLabelsFontWeightOptions, GeographiesLabelsOptions } from './geographies-labels-options';
|
|
7
|
-
export declare class GeographiesLabels<TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> implements GeographiesLabelsOptions<TProperties, TGeometry> {
|
|
8
|
-
alignmentBaseline: CSSType.Property.AlignmentBaseline;
|
|
9
|
-
color: GeographiesLabelsColorOptions | CSSType.Property.Fill;
|
|
10
|
-
cursor: CSSType.Property.Cursor;
|
|
11
|
-
display: (featureIndex: string) => boolean;
|
|
12
|
-
dominantBaseline: CSSType.Property.DominantBaseline;
|
|
13
|
-
fontScale: ScaleLinear<number, number, never>;
|
|
14
|
-
fontWeight: GeographiesLabelsFontWeightOptions | CSSType.Property.FontWeight;
|
|
15
|
-
pointerEvents: CSSType.Property.PointerEvents;
|
|
16
|
-
position: (d: GeographiesFeature<TProperties, TGeometry>, path: GeoPath, projection?: GeoProjection) => Position;
|
|
17
|
-
textAnchor: CSSType.Property.TextAnchor;
|
|
18
|
-
valueAccessor: (feature: GeographiesFeature<TProperties, TGeometry>) => string;
|
|
19
|
-
constructor(options: GeographiesLabelsOptions<TProperties, TGeometry>);
|
|
20
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EventAction } from '../../../events';
|
|
2
|
-
import { GeographiesHost } from '../geographies-events.directive';
|
|
3
|
-
import { GeographiesInteractionOutput } from '../geographies-interaction-output';
|
|
4
|
-
export declare class GeographiesClickEmitTooltipDataPauseOtherActions<Datum> implements EventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>> {
|
|
5
|
-
onStart(host: GeographiesHost<Datum>): void;
|
|
6
|
-
onEnd(host: GeographiesHost<Datum>): void;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EventAction } from '../../../events';
|
|
2
|
-
import { GeographiesHost } from '../geographies-events.directive';
|
|
3
|
-
import { GeographiesInteractionOutput } from '../geographies-interaction-output';
|
|
4
|
-
export declare class GeographiesHoverEmitTooltipData<Datum> implements EventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>> {
|
|
5
|
-
onStart(host: GeographiesHost<Datum>): void;
|
|
6
|
-
onEnd(host: GeographiesHost<Datum>): void;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HoverMoveAction } from '../../../events';
|
|
2
|
-
import { GeographiesHost } from '../geographies-events.directive';
|
|
3
|
-
import { GeographiesInteractionOutput } from '../geographies-interaction-output';
|
|
4
|
-
export declare class GeographiesHoverMoveEmitTooltipData<Datum> implements HoverMoveAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>> {
|
|
5
|
-
onStart(host: GeographiesHost<Datum>): void;
|
|
6
|
-
onEnd(host: GeographiesHost<Datum>): void;
|
|
7
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { EventAction, EventsDirective, EventType, HoverMoveAction, InputEventAction, MarksHost, UnlistenFunction } from '../../events';
|
|
5
|
-
import { GeographiesAttributeDataLayer } from '../config/layers/attribute-data-layer/attribute-data-layer';
|
|
6
|
-
import { GeographiesGeojsonPropertiesLayer } from '../config/layers/geojson-properties-layer/geojson-properties-layer';
|
|
7
|
-
import { GeographiesComponent } from '../geographies.component';
|
|
8
|
-
import { GeographiesInteractionOutput } from './geographies-interaction-output';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export type GeographiesHost<Datum, TGeographiesComponent extends GeographiesComponent<Datum> = GeographiesComponent<Datum>> = MarksHost<GeographiesInteractionOutput<Datum>, TGeographiesComponent>;
|
|
11
|
-
export declare class GeographiesEventsDirective<Datum, TProperties, TGeometry extends Geometry = MultiPolygon | Polygon, TComponent extends GeographiesComponent<Datum, TProperties, TGeometry> = GeographiesComponent<Datum, TProperties, TGeometry>> extends EventsDirective<GeographiesHost<Datum>> {
|
|
12
|
-
geographies: TComponent;
|
|
13
|
-
hoverActions: EventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>>[] | null;
|
|
14
|
-
hoverMoveActions: HoverMoveAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>>[] | null;
|
|
15
|
-
clickActions: EventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>>[] | null;
|
|
16
|
-
inputEventActions: InputEventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>>[];
|
|
17
|
-
interactionOutput: EventEmitter<GeographiesInteractionOutput<Datum>>;
|
|
18
|
-
bounds: [[number, number], [number, number]];
|
|
19
|
-
layer: GeographiesAttributeDataLayer<Datum, TProperties, TGeometry> | GeographiesGeojsonPropertiesLayer<TProperties, TGeometry>;
|
|
20
|
-
path: SVGPathElement;
|
|
21
|
-
constructor(geographies: TComponent);
|
|
22
|
-
get marks(): GeographiesComponent<Datum, TProperties, TGeometry>;
|
|
23
|
-
getElements(): Observable<Element[]>;
|
|
24
|
-
setupListeners(elements: Element[]): UnlistenFunction[];
|
|
25
|
-
onEnter(_: PointerEvent, el: Element): void;
|
|
26
|
-
onMove(event: PointerEvent, _: Element): void;
|
|
27
|
-
onLeave(_: PointerEvent, __: Element): void;
|
|
28
|
-
onClick(event: PointerEvent, el: Element): void;
|
|
29
|
-
onClickRemove(): void;
|
|
30
|
-
onInputEvent(inputValue: unknown): void;
|
|
31
|
-
initFromElement(el: Element): void;
|
|
32
|
-
setPositionsFromElement(): void;
|
|
33
|
-
getInteractionOutput(type: EventType): GeographiesInteractionOutput<Datum>;
|
|
34
|
-
emitInteractionOutput(output: GeographiesInteractionOutput<Datum> | null): void;
|
|
35
|
-
private resetDirective;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GeographiesEventsDirective<any, any, any, any>, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GeographiesEventsDirective<any, any, any, any>, "[vicGeographiesEvents]", never, { "hoverActions": { "alias": "hoverActions"; "required": false; }; "hoverMoveActions": { "alias": "hoverMoveActions"; "required": false; }; "clickActions": { "alias": "clickActions"; "required": false; }; "inputEventActions": { "alias": "inputEventActions"; "required": false; }; }, { "interactionOutput": "interactionOutput"; }, never, never, true, never>;
|
|
38
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InteractionOutput } from '../../events/interaction-output';
|
|
2
|
-
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
-
import { GeographiesTooltipDatum } from '../config/layers/geographies-layer/geographies-layer';
|
|
4
|
-
export interface GeographiesInteractionOutput<Datum> extends InteractionOutput, GeographiesTooltipDatum<Datum> {
|
|
5
|
-
/**
|
|
6
|
-
* A method that positions the tooltip with a user specified offset from the tooltip's anchor point.
|
|
7
|
-
*
|
|
8
|
-
* @param offset - Optional offset from the anchor's x and y position.
|
|
9
|
-
* If not provided, defaults to { x: 0, y: 0 }.
|
|
10
|
-
* 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).
|
|
11
|
-
*/
|
|
12
|
-
fromAnchor: (offset?: Partial<{
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
}>) => HtmlTooltipCdkManagedPosition;
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TooltipPositioner } from '../../events/tooltip-positioner';
|
|
2
|
-
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
-
export declare class GeographiesTooltipPositioner extends TooltipPositioner {
|
|
4
|
-
private anchor;
|
|
5
|
-
constructor(anchor: {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
});
|
|
9
|
-
fromAnchor(offset: {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
}): HtmlTooltipCdkManagedPosition;
|
|
13
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A utility type that represents a GeoJson feature with a properties object of type TProperties and a geometry object of type TGeometry.
|
|
3
|
-
*/
|
|
4
|
-
import { Feature, GeoJsonProperties, Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
5
|
-
export type GeographiesFeature<TProperties extends GeoJsonProperties = GeoJsonProperties, TGeometry extends Geometry = MultiPolygon | Polygon> = Feature<TGeometry, TProperties>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ElementRef, InjectionToken } from '@angular/core';
|
|
2
|
-
import { GeoPath, GeoProjection } from 'd3';
|
|
3
|
-
import { Selection } from 'd3-selection';
|
|
4
|
-
import { GeoJsonProperties, Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
5
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
|
-
import { MapPrimaryMarks } from '../marks/map-marks/map-primary-marks/map-primary-marks';
|
|
7
|
-
import { GeographiesConfig } from './config/geographies-config';
|
|
8
|
-
import { GeographiesLabels } from './config/layers/labels/geographies-labels';
|
|
9
|
-
import { GeographiesFeature } from './geographies-feature';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export type LayersGroup = Selection<SVGGElement, unknown, null, undefined>;
|
|
12
|
-
export declare const GEOGRAPHIES: InjectionToken<GeographiesComponent<unknown, unknown, Polygon | MultiPolygon>>;
|
|
13
|
-
export type GeographiesSvgElement = 'layer' | 'g' | 'feature' | 'label';
|
|
14
|
-
export declare class GeographiesComponent<Datum, TProperties extends GeoJsonProperties = GeoJsonProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends MapPrimaryMarks<Datum, GeographiesConfig<Datum, TProperties, TGeometry>> {
|
|
15
|
-
projection: GeoProjection;
|
|
16
|
-
path: GeoPath;
|
|
17
|
-
pathsByLayer: BehaviorSubject<Selection<SVGPathElement, GeographiesFeature<TProperties, TGeometry>, SVGGElement, GeographiesFeature<TProperties, TGeometry>>[]>;
|
|
18
|
-
pathsByLayer$: Observable<Selection<SVGPathElement, GeographiesFeature<TProperties, TGeometry>, SVGGElement, GeographiesFeature<TProperties, TGeometry>>[]>;
|
|
19
|
-
elRef: ElementRef<SVGGElement>;
|
|
20
|
-
get class(): Record<GeographiesSvgElement, string>;
|
|
21
|
-
initFromConfig(): void;
|
|
22
|
-
setChartScalesFromRanges(): void;
|
|
23
|
-
setProjection(): void;
|
|
24
|
-
setPath(): void;
|
|
25
|
-
updateChartAttributeProperties(): void;
|
|
26
|
-
drawMarks(): void;
|
|
27
|
-
drawMap(transitionDuration: any): void;
|
|
28
|
-
drawLayers(t: any): void;
|
|
29
|
-
getLabelPosition(d: GeographiesFeature<TProperties, TGeometry>, labels: GeographiesLabels<TProperties, TGeometry>): {
|
|
30
|
-
x: number;
|
|
31
|
-
y: number;
|
|
32
|
-
};
|
|
33
|
-
updateGeographyElements(): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GeographiesComponent<any, any, any>, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GeographiesComponent<any, any, any>, "[vic-primary-marks-geographies]", never, {}, {}, never, ["*"], true, never>;
|
|
36
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./geographies.component";
|
|
3
|
-
import * as i2 from "./events/geographies-events.directive";
|
|
4
|
-
export declare class VicGeographiesModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VicGeographiesModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VicGeographiesModule, never, [typeof i1.GeographiesComponent, typeof i2.GeographiesEventsDirective], [typeof i1.GeographiesComponent, typeof i2.GeographiesEventsDirective]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VicGeographiesModule>;
|
|
8
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { VicBarsConfigBuilder } from '../../bars/config/bars-builder';
|
|
2
|
-
import { DataValue } from '../../core/types/values';
|
|
3
|
-
import { GroupedBarsConfig } from './grouped-bars-config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Builds a configuration object for a GroupedBarsComponent.
|
|
7
|
-
*
|
|
8
|
-
* Must be added to a providers array in or above the component that consumes it if it is injected via the constructor. (e.g. `providers: [VicGroupedBarsBuilder]` in the component decorator)
|
|
9
|
-
*
|
|
10
|
-
* The first generic parameter, Datum, is the type of the data that will be used to create the bars.
|
|
11
|
-
*
|
|
12
|
-
* The second generic parameter, TOrdinalValue, is the type of the ordinal data that will be used to position the bars.
|
|
13
|
-
*/
|
|
14
|
-
export declare class VicGroupedBarsConfigBuilder<Datum, TOrdinalValue extends DataValue> extends VicBarsConfigBuilder<Datum, TOrdinalValue> {
|
|
15
|
-
private _intraGroupPadding;
|
|
16
|
-
constructor();
|
|
17
|
-
/**
|
|
18
|
-
* OPTIONAL. Set the padding between groups of bars. Passed to d3.scaleBand.padding.
|
|
19
|
-
*
|
|
20
|
-
* @default 0.05
|
|
21
|
-
*/
|
|
22
|
-
intraGroupPadding(padding: number): this;
|
|
23
|
-
/**
|
|
24
|
-
* REQUIRED. Builds the configuration object for a GroupedBarsComponent.
|
|
25
|
-
*/
|
|
26
|
-
getConfig(): GroupedBarsConfig<Datum, TOrdinalValue>;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VicGroupedBarsConfigBuilder<any, any>, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VicGroupedBarsConfigBuilder<any, any>>;
|
|
29
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BarsConfig } from '../../bars/config/bars-config';
|
|
2
|
-
import { BarsDimensions } from '../../bars/config/bars-dimensions';
|
|
3
|
-
import { DataValue } from '../../core/types/values';
|
|
4
|
-
import { GroupedBarsOptions } from './grouped-bars-options';
|
|
5
|
-
export declare class GroupedBarsConfig<Datum, TOrdinalValue extends DataValue> extends BarsConfig<Datum, TOrdinalValue> implements GroupedBarsOptions<Datum, TOrdinalValue> {
|
|
6
|
-
intraGroupPadding: number;
|
|
7
|
-
constructor(dimensions: BarsDimensions, options: GroupedBarsOptions<Datum, TOrdinalValue>);
|
|
8
|
-
setValueIndices(): void;
|
|
9
|
-
setBarsKeyFunction(): void;
|
|
10
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { BarDatum, BarsHost, BarsInteractionOutput } from '../../bars';
|
|
4
|
-
import { DataValue } from '../../core';
|
|
5
|
-
import { EventAction, EventsDirective, EventType, HoverMoveAction, InputEventAction, UnlistenFunction } from '../../events';
|
|
6
|
-
import { GroupedBarsComponent } from '../grouped-bars.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class GroupedBarsEventsDirective<Datum, TOrdinalValue extends DataValue, TGroupedBarsComponent extends GroupedBarsComponent<Datum, TOrdinalValue> = GroupedBarsComponent<Datum, TOrdinalValue>> extends EventsDirective<BarsHost<Datum, TOrdinalValue>> implements BarsHost<Datum, TOrdinalValue> {
|
|
9
|
-
bars: TGroupedBarsComponent;
|
|
10
|
-
hoverActions: EventAction<BarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
|
|
11
|
-
hoverMoveActions: HoverMoveAction<BarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
|
|
12
|
-
clickActions: EventAction<BarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
|
|
13
|
-
inputEventActions: InputEventAction<BarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[];
|
|
14
|
-
interactionOutput: EventEmitter<BarsInteractionOutput<Datum>>;
|
|
15
|
-
barDatum: BarDatum<TOrdinalValue>;
|
|
16
|
-
origin: SVGRectElement;
|
|
17
|
-
constructor(bars: TGroupedBarsComponent);
|
|
18
|
-
get marks(): GroupedBarsComponent<Datum, TOrdinalValue>;
|
|
19
|
-
getElements(): Observable<Element[]>;
|
|
20
|
-
getBarDatum(): BarDatum<TOrdinalValue> | null;
|
|
21
|
-
setupListeners(elements: Element[]): UnlistenFunction[];
|
|
22
|
-
onEnter(_: PointerEvent, el: Element): void;
|
|
23
|
-
onMove(event: PointerEvent, _: Element): void;
|
|
24
|
-
onLeave(_: PointerEvent, __: Element): void;
|
|
25
|
-
onClick(event: PointerEvent, el: Element): void;
|
|
26
|
-
onClickRemove(): void;
|
|
27
|
-
onInputEvent(inputValue: unknown): void;
|
|
28
|
-
initFromElement(el: Element): void;
|
|
29
|
-
setPositionsFromElement(): void;
|
|
30
|
-
getInteractionOutput(type: EventType): BarsInteractionOutput<Datum>;
|
|
31
|
-
emitInteractionOutput(output: BarsInteractionOutput<Datum> | null): void;
|
|
32
|
-
private resetDirective;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GroupedBarsEventsDirective<any, any, any>, never>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GroupedBarsEventsDirective<any, any, any>, "[vicGroupedBarsEvents]", never, { "hoverActions": { "alias": "hoverActions"; "required": false; }; "hoverMoveActions": { "alias": "hoverMoveActions"; "required": false; }; "clickActions": { "alias": "clickActions"; "required": false; }; "inputEventActions": { "alias": "inputEventActions"; "required": false; }; }, { "interactionOutput": "interactionOutput"; }, never, never, true, never>;
|
|
35
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BarDatum, BarsComponent } from '../bars/bars.component';
|
|
2
|
-
import { DataValue } from '../core/types/values';
|
|
3
|
-
import { GroupedBarsConfig } from './config/grouped-bars-config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GroupedBarsComponent<Datum, TOrdinalValue extends DataValue> extends BarsComponent<Datum, TOrdinalValue> {
|
|
6
|
-
config: GroupedBarsConfig<Datum, TOrdinalValue>;
|
|
7
|
-
groupScale: any;
|
|
8
|
-
drawMarks(): void;
|
|
9
|
-
setGroupScale(): void;
|
|
10
|
-
getBarColor(d: BarDatum<TOrdinalValue>): string;
|
|
11
|
-
getBarXOrdinal(d: BarDatum<TOrdinalValue>): number;
|
|
12
|
-
getBarY(d: BarDatum<TOrdinalValue>): number;
|
|
13
|
-
getBarYOrdinal(d: BarDatum<TOrdinalValue>): number;
|
|
14
|
-
getBarYQuantitative(d: BarDatum<TOrdinalValue>): number;
|
|
15
|
-
getBarWidthOrdinal(): number;
|
|
16
|
-
getBarHeightOrdinal(): number;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GroupedBarsComponent<any, any>, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GroupedBarsComponent<any, any>, "[vic-primary-grouped-bars]", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./grouped-bars.component";
|
|
3
|
-
import * as i2 from "./events/grouped-bars-events.directive";
|
|
4
|
-
export declare class VicGroupedBarsModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VicGroupedBarsModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VicGroupedBarsModule, never, [typeof i1.GroupedBarsComponent, typeof i2.GroupedBarsEventsDirective], [typeof i1.GroupedBarsComponent, typeof i2.GroupedBarsEventsDirective]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VicGroupedBarsModule>;
|
|
8
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ImageDownloadOptions } from './image-download-options';
|
|
2
|
-
export declare class VicJpegImageConfig implements ImageDownloadOptions {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerNode: HTMLElement;
|
|
5
|
-
fileName: string;
|
|
6
|
-
filter: (domNode: HTMLElement) => boolean;
|
|
7
|
-
fontEmbedCSS: string;
|
|
8
|
-
imageType: string;
|
|
9
|
-
quality: number;
|
|
10
|
-
constructor(options?: Partial<ImageDownloadOptions>);
|
|
11
|
-
}
|
|
12
|
-
export declare class VicPngImageConfig implements ImageDownloadOptions {
|
|
13
|
-
backgroundColor: string;
|
|
14
|
-
containerNode: HTMLElement;
|
|
15
|
-
fileName: string;
|
|
16
|
-
filter: (domNode: HTMLElement) => boolean;
|
|
17
|
-
fontEmbedCSS: string;
|
|
18
|
-
imageType: string;
|
|
19
|
-
quality: number;
|
|
20
|
-
constructor(options?: Partial<ImageDownloadOptions>);
|
|
21
|
-
}
|
|
22
|
-
export declare class VicSvgImageConfig implements ImageDownloadOptions {
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
containerNode: HTMLElement;
|
|
25
|
-
fileName: string;
|
|
26
|
-
filter: (domNode: HTMLElement) => boolean;
|
|
27
|
-
fontEmbedCSS: string;
|
|
28
|
-
imageType: string;
|
|
29
|
-
quality: number;
|
|
30
|
-
constructor(options?: Partial<ImageDownloadOptions>);
|
|
31
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface ImageDownloadOptions {
|
|
2
|
-
backgroundColor: string;
|
|
3
|
-
containerNode: HTMLElement;
|
|
4
|
-
fileName: string;
|
|
5
|
-
filter: (domNode: HTMLElement) => boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Disables external fonts from being read in
|
|
8
|
-
* Supply with custom css fallback; or set to undefined to read external fonts
|
|
9
|
-
* (will oftentimes get security errors)
|
|
10
|
-
*/
|
|
11
|
-
fontEmbedCSS: string;
|
|
12
|
-
imageType: string;
|
|
13
|
-
quality: number;
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as domToImage from 'html-to-image';
|
|
2
|
-
import { VicJpegImageConfig, VicPngImageConfig, VicSvgImageConfig } from './image-download-config';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class VicImageDownloadService {
|
|
5
|
-
domToImage: typeof domToImage;
|
|
6
|
-
/**
|
|
7
|
-
* @param imageConfig
|
|
8
|
-
* @returns fontEmbedCSS -- scans stylesheets for font files and base64 encodes them,
|
|
9
|
-
* reuse this value in imageConfig for subsequent downloads to avoid
|
|
10
|
-
* re-encoding fonts (slight performance boost)
|
|
11
|
-
*/
|
|
12
|
-
downloadImage(imageConfig: VicJpegImageConfig | VicPngImageConfig | VicSvgImageConfig): Promise<string | void>;
|
|
13
|
-
createLinkAndClick(dataUrl: string, fileName: string): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VicImageDownloadService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VicImageDownloadService>;
|
|
16
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { FillDefinition } from '../../../data-dimensions';
|
|
2
|
-
import { AreaFills } from './area-fills';
|
|
3
|
-
export declare class AreaFillsBuilder<Datum> {
|
|
4
|
-
private _display;
|
|
5
|
-
private _opacity;
|
|
6
|
-
private _customFills;
|
|
7
|
-
private _color;
|
|
8
|
-
constructor();
|
|
9
|
-
/**
|
|
10
|
-
* OPTIONAL. A string which determines color of the fill under line,
|
|
11
|
-
* or a function whose input is the first point in the line and which returns
|
|
12
|
-
* a color string.
|
|
13
|
-
* This string is directly passed to `fill` under the hood.
|
|
14
|
-
*
|
|
15
|
-
* If not set, the color of the line will be used.
|
|
16
|
-
*
|
|
17
|
-
* To unset the color, call with `null`.
|
|
18
|
-
*/
|
|
19
|
-
color(color: null): this;
|
|
20
|
-
color(color: string): this;
|
|
21
|
-
color(color: (d: Datum) => string): this;
|
|
22
|
-
/**
|
|
23
|
-
* OPTIONAL. A boolean to determine if fill under line should be displayed.
|
|
24
|
-
*
|
|
25
|
-
* @default true
|
|
26
|
-
*/
|
|
27
|
-
display(display: boolean): this;
|
|
28
|
-
display(display: (category: string) => boolean): this;
|
|
29
|
-
/**
|
|
30
|
-
* OPTIONAL. A number to determine the opacity of the fill under line.
|
|
31
|
-
*
|
|
32
|
-
* @default 0.2
|
|
33
|
-
*/
|
|
34
|
-
opacity(opacity: number): this;
|
|
35
|
-
/**
|
|
36
|
-
* OPTIONAL. A string to determine the gradient of the fill under line.
|
|
37
|
-
*
|
|
38
|
-
* @default undefined
|
|
39
|
-
*/
|
|
40
|
-
customFills(customFills: FillDefinition<Datum>[]): this;
|
|
41
|
-
/**
|
|
42
|
-
* @internal This function is for internal use only and should never be called by the user.
|
|
43
|
-
*/
|
|
44
|
-
_build(): AreaFills<Datum>;
|
|
45
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FillDefinition } from '../../../data-dimensions';
|
|
2
|
-
import { AreaFillsOptions } from './area-fills-options';
|
|
3
|
-
export declare class AreaFills<Datum> implements AreaFillsOptions<Datum> {
|
|
4
|
-
readonly display: (category: string) => boolean;
|
|
5
|
-
readonly opacity: number;
|
|
6
|
-
readonly customFills: FillDefinition<Datum>[];
|
|
7
|
-
readonly color: (d: Datum) => string;
|
|
8
|
-
constructor(options: AreaFillsOptions<Datum>);
|
|
9
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { CurveFactory } from 'd3';
|
|
2
|
-
import { DateChartPositionDimensionBuilder } from '../../data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-builder';
|
|
3
|
-
import { NumberChartPositionDimensionBuilder } from '../../data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-builder';
|
|
4
|
-
import { PrimaryMarksBuilder } from '../../marks/primary-marks/config/primary-marks-builder';
|
|
5
|
-
import { PointMarkersBuilder } from '../../point-markers/point-markers-builder';
|
|
6
|
-
import { LinesStrokeBuilder } from '../config/stroke/lines-stroke-builder';
|
|
7
|
-
import { AreaFillsBuilder } from './area-fills/area-fills-builder';
|
|
8
|
-
import { LinesConfig } from './lines-config';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Builds a configuration object for a LinesComponent.
|
|
12
|
-
*
|
|
13
|
-
* Must be added to a providers array in or above the component that consumes it if it is injected via the constructor. (e.g. `providers: [VicLinesBuilder]` in the component decorator)
|
|
14
|
-
*
|
|
15
|
-
* The generic parameter, Datum, is the type of the data that will be used to create the lines.
|
|
16
|
-
*/
|
|
17
|
-
export declare class VicLinesConfigBuilder<Datum> extends PrimaryMarksBuilder<Datum> {
|
|
18
|
-
private _curve;
|
|
19
|
-
private _labelLines;
|
|
20
|
-
private _lineLabelsFormat;
|
|
21
|
-
private _pointerDetectionRadius;
|
|
22
|
-
private pointMarkersBuilder;
|
|
23
|
-
private strokeBuilder;
|
|
24
|
-
private xDimensionBuilder;
|
|
25
|
-
private yDimensionBuilder;
|
|
26
|
-
private areaFillsBuilder;
|
|
27
|
-
constructor();
|
|
28
|
-
/**
|
|
29
|
-
* OPTIONAL. A config to set fill underneath lines.
|
|
30
|
-
*
|
|
31
|
-
* If no argument is provided, the default area fills will be created.
|
|
32
|
-
*
|
|
33
|
-
* To unset the area fills, call with `null`.
|
|
34
|
-
*/
|
|
35
|
-
areaFills(): this;
|
|
36
|
-
areaFills(areaFills: null): this;
|
|
37
|
-
areaFills(areaFills: (areaFills: AreaFillsBuilder<Datum>) => void): this;
|
|
38
|
-
private initBelowLinesAreaFillBuilder;
|
|
39
|
-
/**
|
|
40
|
-
* OPTIONAL. A function passed to D3's [line.curve()]{@link https://github.com/d3/d3-shape#line_curve}
|
|
41
|
-
* method.
|
|
42
|
-
*
|
|
43
|
-
* @default [curveLinear]{@link https://github.com/d3/d3-shape#curveLinear}.
|
|
44
|
-
*/
|
|
45
|
-
curve(curve: CurveFactory): this;
|
|
46
|
-
/**
|
|
47
|
-
* OPTIONAL. A boolean to determine if the line will be labeled.
|
|
48
|
-
*/
|
|
49
|
-
labelLines(labelLines: boolean): this;
|
|
50
|
-
/**
|
|
51
|
-
* OPTIONAL. A function that returns a string to be used as the label for a line. Can be used to modify the
|
|
52
|
-
* line label string as needed.
|
|
53
|
-
*
|
|
54
|
-
* @default identity function.
|
|
55
|
-
*/
|
|
56
|
-
lineLabelsFormat(lineLabelsFormat: (d: string) => string): this;
|
|
57
|
-
/**
|
|
58
|
-
* OPTIONAL. The distance from a line in which a hover event will trigger a tooltip, in px.
|
|
59
|
-
*
|
|
60
|
-
* This is used to ensure that a tooltip is triggered only when a user's pointer is close to lines.
|
|
61
|
-
*
|
|
62
|
-
* @default 80
|
|
63
|
-
*/
|
|
64
|
-
pointerDetectionRadius(pointerDetectionRadius: number): this;
|
|
65
|
-
/**
|
|
66
|
-
* OPTIONAL. A config for the behavior of markers for each datum on the line.
|
|
67
|
-
*
|
|
68
|
-
* Creating this config will create markers on lines. If no argument is provided, the default markers will be created.
|
|
69
|
-
*/
|
|
70
|
-
pointMarkers(): this;
|
|
71
|
-
pointMarkers(pointMarkers: null): this;
|
|
72
|
-
pointMarkers(pointMarkers: ((pointMarkers: PointMarkersBuilder<Datum>) => void) | null): this;
|
|
73
|
-
/**
|
|
74
|
-
* OPTIONAL. A config for the behavior of the line stroke.
|
|
75
|
-
*/
|
|
76
|
-
stroke(stroke: null): this;
|
|
77
|
-
stroke(stroke: (stroke: LinesStrokeBuilder<Datum>) => void): this;
|
|
78
|
-
private initStrokeBuilder;
|
|
79
|
-
/**
|
|
80
|
-
* REQUIRED. A config for the behavior of the chart's x dimension when using numeric data.
|
|
81
|
-
*/
|
|
82
|
-
xNumeric(xNumeric: null): this;
|
|
83
|
-
xNumeric(xNumeric: (x: NumberChartPositionDimensionBuilder<Datum>) => void): this;
|
|
84
|
-
/**
|
|
85
|
-
* REQUIRED. A config for the behavior of the chart's x dimension when using Date date.
|
|
86
|
-
*/
|
|
87
|
-
xDate(xDate: null): this;
|
|
88
|
-
xDate(xDate: (x: DateChartPositionDimensionBuilder<Datum>) => void): this;
|
|
89
|
-
/**
|
|
90
|
-
* REQUIRED. A config for the behavior of the chart's y dimension.
|
|
91
|
-
*/
|
|
92
|
-
y(y: null): this;
|
|
93
|
-
y(y: (y: NumberChartPositionDimensionBuilder<Datum>) => void): this;
|
|
94
|
-
/**
|
|
95
|
-
* REQUIRED. Builds the configuration object for the LinesComponent.
|
|
96
|
-
*/
|
|
97
|
-
getConfig(): LinesConfig<Datum>;
|
|
98
|
-
protected validateBuilder(): void;
|
|
99
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VicLinesConfigBuilder<any>, never>;
|
|
100
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VicLinesConfigBuilder<any>>;
|
|
101
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CurveFactory } from 'd3';
|
|
2
|
-
import { DateChartPositionDimension } from '../../data-dimensions/continuous-quantitative/date-chart-position/date-chart-position';
|
|
3
|
-
import { NumberChartPositionDimension } from '../../data-dimensions/continuous-quantitative/number-chart-position/number-chart-position';
|
|
4
|
-
import { XyPrimaryMarksConfig } from '../../marks/xy-marks/xy-primary-marks/xy-primary-marks-config';
|
|
5
|
-
import { PointMarkers } from '../../point-markers/point-markers';
|
|
6
|
-
import { LinesGroupSelectionDatum } from '../lines.component';
|
|
7
|
-
import { AreaFills } from './area-fills/area-fills';
|
|
8
|
-
import { LinesOptions } from './lines-options';
|
|
9
|
-
import { LinesStroke } from './stroke/lines-stroke';
|
|
10
|
-
export interface LinesMarkerDatum {
|
|
11
|
-
key: string;
|
|
12
|
-
index: number;
|
|
13
|
-
category: string;
|
|
14
|
-
display: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class LinesConfig<Datum> extends XyPrimaryMarksConfig<Datum> implements LinesOptions<Datum> {
|
|
17
|
-
readonly curve: CurveFactory;
|
|
18
|
-
readonly labelLines: boolean;
|
|
19
|
-
readonly lineLabelsFormat: (d: string) => string;
|
|
20
|
-
linesD3Data: any;
|
|
21
|
-
linesKeyFunction: (d: LinesGroupSelectionDatum) => string;
|
|
22
|
-
readonly areaFills: AreaFills<Datum>;
|
|
23
|
-
readonly pointerDetectionRadius: number;
|
|
24
|
-
readonly pointMarkers: PointMarkers<Datum>;
|
|
25
|
-
readonly stroke: LinesStroke<Datum>;
|
|
26
|
-
readonly x: DateChartPositionDimension<Datum> | NumberChartPositionDimension<Datum>;
|
|
27
|
-
readonly y: NumberChartPositionDimension<Datum>;
|
|
28
|
-
constructor(options: LinesOptions<Datum>);
|
|
29
|
-
protected initPropertiesFromData(): void;
|
|
30
|
-
private setDimensionPropertiesFromData;
|
|
31
|
-
private setValueIndices;
|
|
32
|
-
private setLinesD3Data;
|
|
33
|
-
getDataFromCategory(category: string): Datum[];
|
|
34
|
-
private setLinesKeyFunction;
|
|
35
|
-
getPointMarkersData(indices: number[]): LinesMarkerDatum[];
|
|
36
|
-
private getMarkerKey;
|
|
37
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { OrdinalVisualValueDimensionBuilder } from '../../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder';
|
|
2
|
-
import { LinesStroke } from './lines-stroke';
|
|
3
|
-
export declare class LinesStrokeBuilder<Datum> {
|
|
4
|
-
private colorDimensionBuilder;
|
|
5
|
-
private _dasharray;
|
|
6
|
-
private _linecap;
|
|
7
|
-
private _linejoin;
|
|
8
|
-
private _opacity;
|
|
9
|
-
private _width;
|
|
10
|
-
constructor();
|
|
11
|
-
/**
|
|
12
|
-
* OPTIONAL. Creates a dimension that will control the color of the lines.
|
|
13
|
-
*
|
|
14
|
-
* If not provided, all lines will be colored with the first color in `d3.schemeTableau10`, the default `range` for the dimension.
|
|
15
|
-
*/
|
|
16
|
-
color(color: null): this;
|
|
17
|
-
color(color: (dimension: OrdinalVisualValueDimensionBuilder<Datum, string, string>) => void): this;
|
|
18
|
-
private initColorDimensionBuilder;
|
|
19
|
-
/**
|
|
20
|
-
* OPTIONAL. A value for the line's [stroke-dasharray]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray}
|
|
21
|
-
* attribute.
|
|
22
|
-
*
|
|
23
|
-
* @default 'none'
|
|
24
|
-
*/
|
|
25
|
-
dasharray(dasharray: string): this;
|
|
26
|
-
/**
|
|
27
|
-
* OPTIONAL. A value for the line's [stroke-linecap]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap}
|
|
28
|
-
* attribute.
|
|
29
|
-
*
|
|
30
|
-
* @default 'round'
|
|
31
|
-
*/
|
|
32
|
-
linecap(linecap: string): this;
|
|
33
|
-
/**
|
|
34
|
-
* OPTIONAL. A value for the line's [stroke-linejoin]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin}
|
|
35
|
-
* attribute.
|
|
36
|
-
*
|
|
37
|
-
* @default 'round'
|
|
38
|
-
*/
|
|
39
|
-
linejoin(linejoin: string): this;
|
|
40
|
-
/**
|
|
41
|
-
* OPTIONAL. A value for the line's [stroke-opacity]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-opacity}
|
|
42
|
-
* attribute.
|
|
43
|
-
*
|
|
44
|
-
* @default 1
|
|
45
|
-
*/
|
|
46
|
-
opacity(opacity: number): this;
|
|
47
|
-
/**
|
|
48
|
-
* OPTIONAL. A value for the line's [stroke-width]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width}
|
|
49
|
-
* attribute, in px.
|
|
50
|
-
*
|
|
51
|
-
* @default 2
|
|
52
|
-
*/
|
|
53
|
-
width(width: number): this;
|
|
54
|
-
/**
|
|
55
|
-
* @internal This function is for internal use only and should never be called by the user.
|
|
56
|
-
*/
|
|
57
|
-
_build(): LinesStroke<Datum>;
|
|
58
|
-
validateBuilder(): void;
|
|
59
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OrdinalVisualValueDimension } from '../../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value';
|
|
2
|
-
import { StrokeBase } from '../../../stroke/base/stroke-base';
|
|
3
|
-
import { LinesStrokeOptions } from './lines-stroke-options';
|
|
4
|
-
export declare class LinesStroke<Datum> extends StrokeBase implements LinesStrokeOptions<Datum> {
|
|
5
|
-
color: OrdinalVisualValueDimension<Datum, string, string>;
|
|
6
|
-
constructor(options: Partial<LinesStrokeOptions<Datum>>);
|
|
7
|
-
}
|