@mathstack/viz 1.1.4 → 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 -0
- 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 -11049
- 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,110 +0,0 @@
|
|
|
1
|
-
import { DataValue } from '../../core';
|
|
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 { NumberVisualValueDimensionBuilder } from '../../data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-builder';
|
|
5
|
-
import { OrdinalChartPositionDimensionBuilder } from '../../data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-builder';
|
|
6
|
-
import { OrdinalVisualValueDimensionBuilder } from '../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder';
|
|
7
|
-
import { PrimaryMarksBuilder } from '../../marks/primary-marks/config/primary-marks-builder';
|
|
8
|
-
import { StrokeBuilder } from '../../stroke/stroke-builder';
|
|
9
|
-
import { DotsConfig } from './dots-config';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class VicDotsConfigBuilder<Datum, XOrdinalDomain extends DataValue = string, YOrdinalDomain extends DataValue = string> extends PrimaryMarksBuilder<Datum> {
|
|
12
|
-
private _opacity;
|
|
13
|
-
private _pointerDetectionRadius;
|
|
14
|
-
private fillBuilderCategorical;
|
|
15
|
-
private fillBuilderNumber;
|
|
16
|
-
private fillBuilderConst;
|
|
17
|
-
private radiusBuilderCategorical;
|
|
18
|
-
private radiusBuilderNumber;
|
|
19
|
-
private radiusBuilderConst;
|
|
20
|
-
private strokeBuilder;
|
|
21
|
-
private xBuilderNumeric;
|
|
22
|
-
private xBuilderDate;
|
|
23
|
-
private xBuilderOrdinal;
|
|
24
|
-
private yBuilderNumeric;
|
|
25
|
-
private yBuilderDate;
|
|
26
|
-
private yBuilderOrdinal;
|
|
27
|
-
constructor();
|
|
28
|
-
/**
|
|
29
|
-
* OPTIONAL. Sets the appearance of the fill for the dots using a color string.
|
|
30
|
-
*
|
|
31
|
-
* If a string is passed, it will be used as the color for all dots.
|
|
32
|
-
*
|
|
33
|
-
* @default 'schemeTableau10[0]'
|
|
34
|
-
*/
|
|
35
|
-
fill(fill: null): this;
|
|
36
|
-
fill(fill: string): this;
|
|
37
|
-
/**
|
|
38
|
-
* OPTIONAL. Sets the appearance of the fill for the dots using a categorical dimension.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
fillCategorical(fill: null): this;
|
|
42
|
-
fillCategorical(fill: (fill: OrdinalVisualValueDimensionBuilder<Datum, string, string>) => void): this;
|
|
43
|
-
fillNumeric(fill: null): this;
|
|
44
|
-
fillNumeric(fill: (fill: NumberVisualValueDimensionBuilder<Datum, string>) => void): this;
|
|
45
|
-
private initFillBuilderNumber;
|
|
46
|
-
/**
|
|
47
|
-
* OPTIONAL. Sets the opacity of the dots.
|
|
48
|
-
*
|
|
49
|
-
* @default 1
|
|
50
|
-
*/
|
|
51
|
-
opacity(opacity: number): this;
|
|
52
|
-
/**
|
|
53
|
-
* OPTIONAL. The size of the radius of the dots
|
|
54
|
-
*
|
|
55
|
-
* This is temporarily a constant.
|
|
56
|
-
*
|
|
57
|
-
* @default 2
|
|
58
|
-
*/
|
|
59
|
-
radius(radius: null): this;
|
|
60
|
-
radius(radius: number): this;
|
|
61
|
-
radiusCategorical(radius: null): this;
|
|
62
|
-
radiusCategorical(radius: (radius: OrdinalVisualValueDimensionBuilder<Datum, string, number>) => void): this;
|
|
63
|
-
radiusNumeric(radius: null): this;
|
|
64
|
-
radiusNumeric(radius: (radius: NumberVisualValueDimensionBuilder<Datum, number>) => void): this;
|
|
65
|
-
/**
|
|
66
|
-
* OPTIONAL. Sets the appearance of the stroke for the dots.
|
|
67
|
-
*/
|
|
68
|
-
stroke(stroke: null): this;
|
|
69
|
-
stroke(stroke: (stroke: StrokeBuilder) => void): this;
|
|
70
|
-
private initStrokeBuilder;
|
|
71
|
-
/**
|
|
72
|
-
* REQUIRED. A config for the behavior of the chart's x dimension when using numeric data.
|
|
73
|
-
*/
|
|
74
|
-
xDate(x: null): this;
|
|
75
|
-
xDate(x: (x: DateChartPositionDimensionBuilder<Datum>) => void): this;
|
|
76
|
-
/**
|
|
77
|
-
* REQUIRED. A config for the behavior of the chart's x dimension when using numeric data.
|
|
78
|
-
*/
|
|
79
|
-
xNumeric(x: null): this;
|
|
80
|
-
xNumeric(x: (x: NumberChartPositionDimensionBuilder<Datum>) => void): this;
|
|
81
|
-
/**
|
|
82
|
-
* REQUIRED. A config for the behavior of the chart's x dimension when using numeric data.
|
|
83
|
-
*/
|
|
84
|
-
xOrdinal(x: null): this;
|
|
85
|
-
xOrdinal(x: (x: OrdinalChartPositionDimensionBuilder<Datum, XOrdinalDomain>) => void): this;
|
|
86
|
-
/**
|
|
87
|
-
* REQUIRED. A config for the behavior of the chart's x dimension when using numeric data.
|
|
88
|
-
*/
|
|
89
|
-
yDate(y: null): this;
|
|
90
|
-
yDate(y: (y: DateChartPositionDimensionBuilder<Datum>) => void): this;
|
|
91
|
-
/**
|
|
92
|
-
* REQUIRED. A config for the behavior of the chart's x dimension when using numeric data.
|
|
93
|
-
*/
|
|
94
|
-
yNumeric(y: null): this;
|
|
95
|
-
yNumeric(y: (y: NumberChartPositionDimensionBuilder<Datum>) => void): this;
|
|
96
|
-
/**
|
|
97
|
-
* REQUIRED. A config for the behavior of the chart's x dimension when using numeric data.
|
|
98
|
-
*/
|
|
99
|
-
yOrdinal(y: null): this;
|
|
100
|
-
yOrdinal(y: (y: OrdinalChartPositionDimensionBuilder<Datum, YOrdinalDomain>) => void): this;
|
|
101
|
-
/**
|
|
102
|
-
* REQUIRED. Validates and builds the configuration object for the bars that can be passed to BarsComponent.
|
|
103
|
-
*
|
|
104
|
-
* The user must call this at the end of the chain of methods to build the configuration object.
|
|
105
|
-
*/
|
|
106
|
-
getConfig(): DotsConfig<Datum, XOrdinalDomain, YOrdinalDomain>;
|
|
107
|
-
protected validateBuilder(): void;
|
|
108
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VicDotsConfigBuilder<any, any, any>, never>;
|
|
109
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VicDotsConfigBuilder<any, any, any>>;
|
|
110
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DataValue } from '../../core';
|
|
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 { NumberDimension } from '../../data-dimensions/continuous-quantitative/number-dimension/number-dimension';
|
|
5
|
-
import { NumberVisualValueDimension } from '../../data-dimensions/continuous-quantitative/number-visual-value/number-visual-value';
|
|
6
|
-
import { DataDimension } from '../../data-dimensions/dimension';
|
|
7
|
-
import { OrdinalChartPositionDimension } from '../../data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position';
|
|
8
|
-
import { OrdinalVisualValueDimension } from '../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value';
|
|
9
|
-
import { XyPrimaryMarksConfig } from '../../marks/xy-marks/xy-primary-marks/xy-primary-marks-config';
|
|
10
|
-
import { Stroke } from '../../stroke/stroke';
|
|
11
|
-
import { DotsOptions } from './dots-options';
|
|
12
|
-
export declare class DotsConfig<Datum, XOrdinalDomain extends DataValue = string, YOrdinalDomain extends DataValue = string> extends XyPrimaryMarksConfig<Datum> implements DotsOptions<Datum, XOrdinalDomain, YOrdinalDomain> {
|
|
13
|
-
fill: OrdinalVisualValueDimension<Datum, string, string> | NumberVisualValueDimension<Datum, string>;
|
|
14
|
-
opacity: number;
|
|
15
|
-
pointerDetectionRadius: number;
|
|
16
|
-
radius: OrdinalVisualValueDimension<Datum, string, number> | NumberVisualValueDimension<Datum, number>;
|
|
17
|
-
stroke: Stroke;
|
|
18
|
-
x: NumberChartPositionDimension<Datum> | DateChartPositionDimension<Datum> | OrdinalChartPositionDimension<Datum, XOrdinalDomain>;
|
|
19
|
-
y: NumberChartPositionDimension<Datum> | DateChartPositionDimension<Datum> | OrdinalChartPositionDimension<Datum, YOrdinalDomain>;
|
|
20
|
-
constructor(options: DotsOptions<Datum, XOrdinalDomain, YOrdinalDomain>);
|
|
21
|
-
protected initPropertiesFromData(): void;
|
|
22
|
-
protected setDimensionPropertiesFromData(): void;
|
|
23
|
-
protected setValueIndices(): void;
|
|
24
|
-
private isValidValue;
|
|
25
|
-
isContinuousQuantitativeDimension(dimension: DataDimension<Datum, DataValue>): dimension is NumberDimension<Datum>;
|
|
26
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { Selection } from 'd3-selection';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { XyChartScales } from '../charts/xy-chart/xy-chart.component';
|
|
5
|
-
import { DataValue, GenericScale } from '../core';
|
|
6
|
-
import { NumberDimension } from '../data-dimensions/continuous-quantitative/number-dimension/number-dimension';
|
|
7
|
-
import { DataDimension } from '../data-dimensions/dimension';
|
|
8
|
-
import { VicXyPrimaryMarks } from '../marks/xy-marks/xy-primary-marks/xy-primary-marks';
|
|
9
|
-
import { DotsConfig } from './config/dots-config';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare const DOTS: InjectionToken<DotsComponent<unknown>>;
|
|
12
|
-
export type DotGroupSelection = Selection<SVGGElement, DotDatum, SVGGElement, unknown>;
|
|
13
|
-
export type DotSelection = Selection<SVGCircleElement, DotDatum, SVGGElement, DotDatum>;
|
|
14
|
-
export type DotLabelSelection = Selection<SVGTextElement, DotDatum, SVGGElement, DotDatum>;
|
|
15
|
-
export type DotDatum = {
|
|
16
|
-
index: number;
|
|
17
|
-
x: DataValue;
|
|
18
|
-
y: DataValue;
|
|
19
|
-
fill: string | number;
|
|
20
|
-
radius: string | number;
|
|
21
|
-
};
|
|
22
|
-
export interface DotsTooltipDatum<Datum> {
|
|
23
|
-
datum: Datum;
|
|
24
|
-
values: {
|
|
25
|
-
x: string;
|
|
26
|
-
y: string;
|
|
27
|
-
fill: string | number;
|
|
28
|
-
radius: string | number;
|
|
29
|
-
};
|
|
30
|
-
color: string;
|
|
31
|
-
}
|
|
32
|
-
type DotsSvgElement = 'g' | 'dot';
|
|
33
|
-
export declare class DotsComponent<Datum> extends VicXyPrimaryMarks<Datum, DotsConfig<Datum>> {
|
|
34
|
-
dotGroups: DotGroupSelection;
|
|
35
|
-
dots: BehaviorSubject<DotSelection>;
|
|
36
|
-
dots$: import("rxjs").Observable<DotSelection>;
|
|
37
|
-
scales: {
|
|
38
|
-
fill: GenericScale<any, any>;
|
|
39
|
-
radius: GenericScale<any, any>;
|
|
40
|
-
} & XyChartScales;
|
|
41
|
-
private elRef;
|
|
42
|
-
private zone;
|
|
43
|
-
get class(): Record<DotsSvgElement, string>;
|
|
44
|
-
setChartScalesFromRanges(useTransition: boolean): void;
|
|
45
|
-
drawMarks(): void;
|
|
46
|
-
drawDots(transitionDuration: number): void;
|
|
47
|
-
getDotDatumFromIndex(index: number): DotDatum;
|
|
48
|
-
updateDotElements(): void;
|
|
49
|
-
getTooltipData(dotDatum: DotDatum): DotsTooltipDatum<Datum>;
|
|
50
|
-
getFormattedValue(dimension: 'x' | 'y', datum: Datum): string;
|
|
51
|
-
isContinuousNumericDimension(dimension: DataDimension<Datum, DataValue>): dimension is NumberDimension<Datum>;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DotsComponent<any>, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DotsComponent<any>, "[vic-primary-marks-dots]", never, {}, {}, never, never, true, never>;
|
|
54
|
-
}
|
|
55
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./dots.component";
|
|
3
|
-
import * as i2 from "./events/dots-events.directive";
|
|
4
|
-
export declare class VicDotsModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VicDotsModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VicDotsModule, never, [typeof i1.DotsComponent, typeof i2.DotsEventsDirective], [typeof i1.DotsComponent, typeof i2.DotsEventsDirective]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VicDotsModule>;
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { EventAction } from '../../../events';
|
|
2
|
-
import { DotsHost } from '../dots-events.directive';
|
|
3
|
-
export declare class DotsHoverDefaultStyles<Datum> implements EventAction<DotsHost<Datum>> {
|
|
4
|
-
onStart(host: DotsHost<Datum>): void;
|
|
5
|
-
onEnd(host: DotsHost<Datum>): void;
|
|
6
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HoverMoveAction } from '../../../events';
|
|
2
|
-
import { DotsHost } from '../dots-events.directive';
|
|
3
|
-
export declare class DotsHoverMoveDefaultStyles<Datum> implements HoverMoveAction<DotsHost<Datum>> {
|
|
4
|
-
onStart(host: DotsHost<Datum>): void;
|
|
5
|
-
onEnd(host: DotsHost<Datum>): void;
|
|
6
|
-
}
|
|
7
|
-
export declare class DotsHoverMoveEmitTooltipData<Datum> implements HoverMoveAction<DotsHost<Datum>> {
|
|
8
|
-
onStart(host: DotsHost<Datum>): void;
|
|
9
|
-
onEnd(host: DotsHost<Datum>): void;
|
|
10
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { EventAction, EventsDirective, EventType, HoverMoveAction, InputEventAction, MarksHost, UnlistenFunction } from '../../events';
|
|
4
|
-
import { DotDatum, DotsComponent } from '../dots.component';
|
|
5
|
-
import { DotsInteractionOutput } from './dots-interaction-output';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export interface DotsHost<Datum, TDotsComponent extends DotsComponent<Datum> = DotsComponent<Datum>> extends MarksHost<DotsInteractionOutput<Datum>, TDotsComponent> {
|
|
8
|
-
getDotDatum(): DotDatum | null;
|
|
9
|
-
}
|
|
10
|
-
export declare class DotsEventsDirective<Datum, TDotsComponent extends DotsComponent<Datum> = DotsComponent<Datum>> extends EventsDirective<DotsHost<Datum>> {
|
|
11
|
-
dots: TDotsComponent;
|
|
12
|
-
hoverActions: EventAction<DotsHost<Datum>, DotsInteractionOutput<Datum>>[] | null;
|
|
13
|
-
hoverMoveActions: HoverMoveAction<DotsHost<Datum>, DotsInteractionOutput<Datum>>[] | null;
|
|
14
|
-
clickActions: EventAction<DotsHost<Datum>, DotsInteractionOutput<Datum>>[] | null;
|
|
15
|
-
inputEventActions: InputEventAction<DotsHost<Datum>, DotsInteractionOutput<Datum>>[];
|
|
16
|
-
interactionOutput: EventEmitter<DotsInteractionOutput<Datum>>;
|
|
17
|
-
dotDatum: DotDatum;
|
|
18
|
-
origin: SVGCircleElement;
|
|
19
|
-
constructor(dots: TDotsComponent);
|
|
20
|
-
get marks(): DotsComponent<Datum>;
|
|
21
|
-
getElements(): Observable<Element[]>;
|
|
22
|
-
getDotDatum(): DotDatum | null;
|
|
23
|
-
setupListeners(elements: Element[]): UnlistenFunction[];
|
|
24
|
-
onEnter(_: PointerEvent, el: Element): void;
|
|
25
|
-
onMove(event: PointerEvent, _: Element): void;
|
|
26
|
-
onLeave(_: PointerEvent, __: Element): void;
|
|
27
|
-
onClick(event: PointerEvent, el: Element): void;
|
|
28
|
-
onClickRemove(): void;
|
|
29
|
-
onInputEvent(inputValue: unknown): void;
|
|
30
|
-
initFromElement(el: Element): void;
|
|
31
|
-
setPositionsFromElement(): void;
|
|
32
|
-
getInteractionOutput(type: EventType): DotsInteractionOutput<Datum>;
|
|
33
|
-
emitInteractionOutput(output: DotsInteractionOutput<Datum>): void;
|
|
34
|
-
private resetDirective;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DotsEventsDirective<any, any>, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DotsEventsDirective<any, any>, "[vicDotsEvents]", 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>;
|
|
37
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InteractionOutput } from '../../events/interaction-output';
|
|
2
|
-
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
-
import { DotsTooltipDatum } from '../dots.component';
|
|
4
|
-
export interface DotsInteractionOutput<Datum> extends DotsTooltipDatum<Datum>, InteractionOutput {
|
|
5
|
-
/**
|
|
6
|
-
* A method that returns a position for the tooltip above the pointer for HoverMove or Click actions or above the center of the dot for Hover actions.
|
|
7
|
-
*
|
|
8
|
-
* @param yOffset - Optional offset from the pointer's y position.
|
|
9
|
-
*/
|
|
10
|
-
fromAnchor: (offset?: Partial<{
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
}>) => HtmlTooltipCdkManagedPosition;
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TooltipPositioner } from '../../events/tooltip-positioner';
|
|
2
|
-
import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
|
|
3
|
-
export declare class DotsTooltipPositioner 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,43 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, DestroyRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ActionHost, EventAction, EventType, UnlistenFunction } from './events.types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class EventsDirective<Host extends ActionHost<unknown> = any> implements AfterViewInit, OnDestroy {
|
|
6
|
-
clickRemoveEvent$: Observable<void>;
|
|
7
|
-
inputEvent$: Observable<unknown>;
|
|
8
|
-
protected destroyRef: DestroyRef;
|
|
9
|
-
protected renderer: Renderer2;
|
|
10
|
-
protected abstract getElements(): Observable<Element[]>;
|
|
11
|
-
protected abstract onClickRemove(): void;
|
|
12
|
-
protected abstract onInputEvent(inputValue: unknown): void;
|
|
13
|
-
protected abstract setPositionsFromElement(): void;
|
|
14
|
-
protected abstract setupListeners(elements: Element[]): UnlistenFunction[];
|
|
15
|
-
protected unlistenFns: UnlistenFunction[];
|
|
16
|
-
protected events: EventType[];
|
|
17
|
-
preventAction: Record<EventType, boolean>;
|
|
18
|
-
positionX: number;
|
|
19
|
-
positionY: number;
|
|
20
|
-
ngAfterViewInit(): void;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
protected buildInteractionListeners(handlers: Partial<Record<EventType, Partial<{
|
|
23
|
-
pointerenter: (e: PointerEvent, el: Element) => void;
|
|
24
|
-
pointermove: (e: PointerEvent, el: Element) => void;
|
|
25
|
-
pointerleave: (e: PointerEvent, el: Element) => void;
|
|
26
|
-
click: (e: PointerEvent, el: Element) => void;
|
|
27
|
-
}>>>): Record<string, (e: PointerEvent, el: Element) => void>;
|
|
28
|
-
protected bindEventListeners(elements: Element[], handlers: Partial<{
|
|
29
|
-
pointerenter: (event: PointerEvent, el: Element) => void;
|
|
30
|
-
pointermove: (event: PointerEvent, el: Element) => void;
|
|
31
|
-
pointerleave: (event: PointerEvent, el: Element) => void;
|
|
32
|
-
click: (event: PointerEvent, el: Element) => void;
|
|
33
|
-
}>): UnlistenFunction[];
|
|
34
|
-
disableOtherActions(eventType: EventType): void;
|
|
35
|
-
resumeOtherActions(eventType: EventType, cancelCurrentActions?: boolean): void;
|
|
36
|
-
setPositionsFromPointer(event: PointerEvent): void;
|
|
37
|
-
protected runActions<T extends EventAction<Host>>(actions: T[] | null | undefined, fn: (action: T) => void): void;
|
|
38
|
-
protected hasEvent(event: EventType): boolean;
|
|
39
|
-
protected isEventAllowed(event: EventType): boolean;
|
|
40
|
-
protected asHost(): Host;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EventsDirective<any>, never>;
|
|
42
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EventsDirective<any>, never, never, { "clickRemoveEvent$": { "alias": "clickRemoveEvent$"; "required": false; }; "inputEvent$": { "alias": "inputEvent$"; "required": false; }; }, {}, never, never, true, never>;
|
|
43
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Renderer2 } from '@angular/core';
|
|
2
|
-
export type UnlistenFunction = () => void;
|
|
3
|
-
export type ListenElement = HTMLElement | SVGElement;
|
|
4
|
-
export declare enum EventType {
|
|
5
|
-
Click = "click",
|
|
6
|
-
Hover = "hover",
|
|
7
|
-
HoverMove = "hoverMove",
|
|
8
|
-
Input = "input"
|
|
9
|
-
}
|
|
10
|
-
export interface EventAction<Host extends ActionHost<Output>, Output = unknown> {
|
|
11
|
-
onStart: (host: Host) => void;
|
|
12
|
-
onEnd: (host: Host) => void;
|
|
13
|
-
}
|
|
14
|
-
export interface HoverMoveAction<Host extends ActionHost<Output>, Output = unknown> extends EventAction<Host> {
|
|
15
|
-
initialize?: (host: Host) => void;
|
|
16
|
-
}
|
|
17
|
-
export interface InputEventAction<Host extends ActionHost<Output>, Output = unknown> {
|
|
18
|
-
onStart: (host: Host, ...args: any[]) => void;
|
|
19
|
-
onEnd: (host: Host, ...args: any[]) => void;
|
|
20
|
-
}
|
|
21
|
-
export interface ActionHost<Output> {
|
|
22
|
-
getInteractionOutput(type: EventType): Output;
|
|
23
|
-
setPositionsFromElement(): void;
|
|
24
|
-
setPositionsFromPointer(event: PointerEvent): void;
|
|
25
|
-
disableOtherActions(eventType: EventType): void;
|
|
26
|
-
resumeOtherActions(eventType: EventType, cancelCurrentActions?: boolean): void;
|
|
27
|
-
emitInteractionOutput(output: Output): void;
|
|
28
|
-
}
|
|
29
|
-
export interface MarksHost<Output, MarksComponent = unknown> extends ActionHost<Output> {
|
|
30
|
-
marks: MarksComponent;
|
|
31
|
-
}
|
|
32
|
-
export interface EventStrategy {
|
|
33
|
-
bindTo(elements: Element[], renderer: Renderer2): UnlistenFunction[];
|
|
34
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { EventType } from '../events';
|
|
2
|
-
import { HtmlTooltipCdkManagedPosition, TooltipPosition } from '../tooltips';
|
|
3
|
-
export interface InteractionOutput<Anchor = {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
}> {
|
|
7
|
-
/**
|
|
8
|
-
* If used with Hover actions, the coordinates of the center of the origin element relative to the top left corner of the origin.
|
|
9
|
-
*
|
|
10
|
-
* If used with HoverMove actions, the position of the pointer relative to the top left corner of the origin element.
|
|
11
|
-
*/
|
|
12
|
-
anchor: Anchor;
|
|
13
|
-
/**
|
|
14
|
-
* The origin element of the tooltip.
|
|
15
|
-
*/
|
|
16
|
-
origin: SVGGraphicsElement;
|
|
17
|
-
/**
|
|
18
|
-
* The type of the event that triggered the interaction.
|
|
19
|
-
*/
|
|
20
|
-
type: EventType;
|
|
21
|
-
/**
|
|
22
|
-
* The default position of the tooltip.
|
|
23
|
-
*/
|
|
24
|
-
defaultPosition: HtmlTooltipCdkManagedPosition;
|
|
25
|
-
/**
|
|
26
|
-
* A method that positions the tooltip with a user specified offset from the tooltip's anchor point.
|
|
27
|
-
*/
|
|
28
|
-
fromAnchor: (...args: any[]) => HtmlTooltipCdkManagedPosition;
|
|
29
|
-
/**
|
|
30
|
-
* A method that allows a user to provide custom positions for the tooltip.
|
|
31
|
-
*/
|
|
32
|
-
customPosition: (positions: TooltipPosition[]) => HtmlTooltipCdkManagedPosition;
|
|
33
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { HtmlTooltipCdkManagedPosition, TooltipPosition } from '../tooltips/html-tooltip/config/position/tooltip-position';
|
|
2
|
-
export declare const DEFAULT_TOOLTIP_Y_OFFSET = 2;
|
|
3
|
-
export declare abstract class TooltipPositioner {
|
|
4
|
-
abstract fromAnchor(...args: any): HtmlTooltipCdkManagedPosition;
|
|
5
|
-
customPosition(positions: TooltipPosition[]): HtmlTooltipCdkManagedPosition;
|
|
6
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { ExtendedFeature, ExtendedFeatureCollection, ExtendedGeometryCollection, GeoGeometryObjects, GeoProjection } from 'd3';
|
|
2
|
-
import { GeoJsonProperties, Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
3
|
-
import { GeographiesFeature } from '../geographies-feature';
|
|
4
|
-
import { GeographiesConfig } from './geographies-config';
|
|
5
|
-
import { GeographiesAttributeDataLayerBuilder } from './layers/attribute-data-layer/attribute-data-layer-builder';
|
|
6
|
-
import { GeographiesGeojsonPropertiesLayerBuilder } from './layers/geojson-properties-layer/geojson-properties-layer-builder';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/** Builds a configuration object for a GeographiesComponent.
|
|
9
|
-
*
|
|
10
|
-
* 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: [VicGeographiesBuilder]` in the component decorator)
|
|
11
|
-
*
|
|
12
|
-
* The first generic parameter, Datum, is the type of the attribute data that will be used to shade the map areas.
|
|
13
|
-
*
|
|
14
|
-
* The second generic parameter, TProperties, is the type of the properties object that is associated with the GeoJson.
|
|
15
|
-
*
|
|
16
|
-
* The optional third generic parameter, TGeometry, is the type of the geometry object that is associated with the GeoJson. It defaults to MultiPolygon | Polygon if not provided.
|
|
17
|
-
*/
|
|
18
|
-
export declare class VicGeographiesConfigBuilder<Datum, TProperties extends GeoJsonProperties, TGeometry extends Geometry = MultiPolygon | Polygon> {
|
|
19
|
-
private _boundary;
|
|
20
|
-
protected _class: (d: Datum) => string;
|
|
21
|
-
private _featureIndexAccessor;
|
|
22
|
-
private _mixBlendMode;
|
|
23
|
-
private _projection;
|
|
24
|
-
private attributeDataBuilder;
|
|
25
|
-
geojsonBuilders: GeographiesGeojsonPropertiesLayerBuilder<TProperties, TGeometry>[];
|
|
26
|
-
constructor();
|
|
27
|
-
/**
|
|
28
|
-
* REQUIRED. Sets a feature or geometry object or collection that defines the extents of the map to be drawn.
|
|
29
|
-
*
|
|
30
|
-
* Used for scaling the map.
|
|
31
|
-
*/
|
|
32
|
-
boundary(boundary: ExtendedFeature | ExtendedFeatureCollection | GeoGeometryObjects | ExtendedGeometryCollection): this;
|
|
33
|
-
/**
|
|
34
|
-
* REQUIRED. Sets a function that derives an identifying string from the GeoJson feature.
|
|
35
|
-
*/
|
|
36
|
-
featureIndexAccessor(accessor: (d: GeographiesFeature<TProperties, TGeometry>) => string): this;
|
|
37
|
-
/**
|
|
38
|
-
* OPTIONAL. Creates a configuration object for a layer that will be drawn and styled using solely the properties on a geojson feature.
|
|
39
|
-
*
|
|
40
|
-
* This might be used for to draw the outline of a country, for example. It could also shade the area of a country based on a property of the geojson feature.
|
|
41
|
-
*
|
|
42
|
-
* If events are enabled, the geojson properties will be used to populate the tooltip.
|
|
43
|
-
*
|
|
44
|
-
* This method can be called multiple times to create multiple layers. If this method is called with null, all layers will be removed. (Though subsequent calls can be made to add new layers.)
|
|
45
|
-
*
|
|
46
|
-
* The order in which layers are created will determine the order in which they are drawn.
|
|
47
|
-
*
|
|
48
|
-
* Multiple layers can be used to draw different parts of the map with different styles.
|
|
49
|
-
*/
|
|
50
|
-
geojsonPropertiesLayer(geojson: null): this;
|
|
51
|
-
geojsonPropertiesLayer(geojson: (geojson: GeographiesGeojsonPropertiesLayerBuilder<TProperties, TGeometry>) => void): this;
|
|
52
|
-
/**
|
|
53
|
-
* OPTIONAL. Creates a configuration object for a layer that will be drawn from geojson and styled using attribute data.
|
|
54
|
-
*
|
|
55
|
-
* This object provides various methods for transforming data values into colors / color bins.
|
|
56
|
-
*
|
|
57
|
-
* This method can be called only once.
|
|
58
|
-
*/
|
|
59
|
-
attributeDataLayer(attributeData: null): this;
|
|
60
|
-
attributeDataLayer(attributeData: (attributeData: GeographiesAttributeDataLayerBuilder<Datum, TProperties, TGeometry>) => void): this;
|
|
61
|
-
/**
|
|
62
|
-
* OPTIONAL. Sets the mix-blend-mode of the marks.
|
|
63
|
-
*
|
|
64
|
-
* @default 'normal'
|
|
65
|
-
*/
|
|
66
|
-
mixBlendMode(mixBlendMode: string): this;
|
|
67
|
-
/**
|
|
68
|
-
* OPTIONAL. Sets a projection function that maps a point in the map's coordinate space to a point in the SVG's coordinate space.
|
|
69
|
-
*
|
|
70
|
-
* @default d3.geoAlbersUsa()
|
|
71
|
-
*/
|
|
72
|
-
projection(projection: GeoProjection): this;
|
|
73
|
-
/**
|
|
74
|
-
* REQUIRED. Builds the GeographiesConfig object.
|
|
75
|
-
*/
|
|
76
|
-
getConfig(): GeographiesConfig<Datum, TProperties, TGeometry>;
|
|
77
|
-
private validateBuilder;
|
|
78
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VicGeographiesConfigBuilder<any, any, any>, never>;
|
|
79
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VicGeographiesConfigBuilder<any, any, any>>;
|
|
80
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ExtendedFeature, ExtendedFeatureCollection, ExtendedGeometryCollection, GeoGeometryObjects, GeoProjection } from 'd3';
|
|
2
|
-
import { GeoJsonProperties, GeometryObject as Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
3
|
-
import { MarksConfig } from '../../marks';
|
|
4
|
-
import { GeographiesFeature } from '../geographies-feature';
|
|
5
|
-
import { GeographiesOptions } from './geographies-options';
|
|
6
|
-
import { GeographiesAttributeDataLayer } from './layers/attribute-data-layer/attribute-data-layer';
|
|
7
|
-
import { GeographiesGeojsonPropertiesLayer } from './layers/geojson-properties-layer/geojson-properties-layer';
|
|
8
|
-
export declare class GeographiesConfig<Datum, TProperties extends GeoJsonProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends MarksConfig implements GeographiesOptions<Datum, TProperties, TGeometry> {
|
|
9
|
-
readonly boundary: ExtendedFeature | ExtendedFeatureCollection | GeoGeometryObjects | ExtendedGeometryCollection;
|
|
10
|
-
readonly attributeDataLayer: GeographiesAttributeDataLayer<Datum, TProperties, TGeometry>;
|
|
11
|
-
featureIndexAccessor: (d: GeographiesFeature<TProperties, TGeometry>) => string;
|
|
12
|
-
layers: (GeographiesAttributeDataLayer<Datum, TProperties, TGeometry> | GeographiesGeojsonPropertiesLayer<TProperties, TGeometry>)[];
|
|
13
|
-
readonly geojsonPropertiesLayers: GeographiesGeojsonPropertiesLayer<TProperties, TGeometry>[];
|
|
14
|
-
readonly projection: GeoProjection;
|
|
15
|
-
constructor(options: GeographiesOptions<Datum, TProperties, TGeometry>);
|
|
16
|
-
protected initPropertiesFromData(): void;
|
|
17
|
-
private setLayers;
|
|
18
|
-
private setLayerFeatureIndexAccessors;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ExtendedFeature, ExtendedFeatureCollection, ExtendedGeometryCollection, GeoGeometryObjects, GeoProjection } from 'd3';
|
|
2
|
-
import { GeoJsonProperties, Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
3
|
-
import { MarksOptions } from '../../marks/config/marks-options';
|
|
4
|
-
import { GeographiesFeature } from '../geographies-feature';
|
|
5
|
-
import { GeographiesAttributeDataLayer } from './layers/attribute-data-layer/attribute-data-layer';
|
|
6
|
-
import { GeographiesGeojsonPropertiesLayer } from './layers/geojson-properties-layer/geojson-properties-layer';
|
|
7
|
-
export interface GeographiesOptions<Datum, TProperties extends GeoJsonProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends MarksOptions {
|
|
8
|
-
boundary: ExtendedFeature | ExtendedFeatureCollection | GeoGeometryObjects | ExtendedGeometryCollection;
|
|
9
|
-
attributeDataLayer: GeographiesAttributeDataLayer<Datum, TProperties, TGeometry>;
|
|
10
|
-
featureIndexAccessor: (d: GeographiesFeature<TProperties, TGeometry>) => string;
|
|
11
|
-
geojsonPropertiesLayers: GeographiesGeojsonPropertiesLayer<TProperties, TGeometry>[];
|
|
12
|
-
projection: GeoProjection;
|
|
13
|
-
}
|
package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-builder.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
2
|
-
import { FillDefinition } from '../../../../fill-definitions/fill-definitions';
|
|
3
|
-
import { GeographiesLayerBuilder } from '../geographies-layer/geographies-layer-builder';
|
|
4
|
-
import { GeographiesAttributeDataLayer } from './attribute-data-layer';
|
|
5
|
-
import { CategoricalBinsBuilder } from './dimensions/categorical-bins/categorical-bins-builder';
|
|
6
|
-
import { CustomBreaksBinsAttributeDataDimensionBuilder } from './dimensions/custom-breaks/custom-breaks-bins-builder';
|
|
7
|
-
import { EqualFrequenciesAttributeDataDimensionBuilder } from './dimensions/equal-frequencies-bins/equal-frequencies-bins-builder';
|
|
8
|
-
import { EqualValueRangesBinsBuilder } from './dimensions/equal-value-ranges-bins/equal-value-ranges-bins-builder';
|
|
9
|
-
import { NoBinsAttributeDataDimensionBuilder } from './dimensions/no-bins/no-bins-builder';
|
|
10
|
-
export declare class GeographiesAttributeDataLayerBuilder<Datum, TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends GeographiesLayerBuilder<TProperties, TGeometry> {
|
|
11
|
-
private _customFills;
|
|
12
|
-
private _data;
|
|
13
|
-
private _geographyIndexAccessor;
|
|
14
|
-
private binsBuilder;
|
|
15
|
-
private categoricalBinsBuilder;
|
|
16
|
-
private customBreaksBinsBuilder;
|
|
17
|
-
private equalFrequenciesBinsBuilder;
|
|
18
|
-
private equalValueRangesBinsBuilder;
|
|
19
|
-
private noBinsBuilder;
|
|
20
|
-
constructor();
|
|
21
|
-
/**
|
|
22
|
-
* OPTIONAL. Creates a configuration object that maps data to colors by categorical values.
|
|
23
|
-
*
|
|
24
|
-
* For example, if the data for a set of U.S. states had a string property, 'region', this could be used to color the states by region.
|
|
25
|
-
*/
|
|
26
|
-
categoricalBins(bins: null): this;
|
|
27
|
-
categoricalBins(bins: (bins: CategoricalBinsBuilder<Datum>) => void): this;
|
|
28
|
-
/**
|
|
29
|
-
* OPTIONAL. Creates a configuration object that maps data to colors by custom breaks values for bins.
|
|
30
|
-
*/
|
|
31
|
-
customBreaksBins(bins: null): this;
|
|
32
|
-
customBreaksBins(bins: (bins: CustomBreaksBinsAttributeDataDimensionBuilder<Datum>) => void): this;
|
|
33
|
-
/**
|
|
34
|
-
* REQUIRED. The data that will be used to color the geographies.
|
|
35
|
-
*/
|
|
36
|
-
data(data: Datum[]): this;
|
|
37
|
-
/**
|
|
38
|
-
* OPTIONAL. Creates a configuration object that for creating a map without binning values.
|
|
39
|
-
*/
|
|
40
|
-
noBins(bins: null): this;
|
|
41
|
-
noBins(bins: (bins: NoBinsAttributeDataDimensionBuilder<Datum>) => void): this;
|
|
42
|
-
/**
|
|
43
|
-
* OPTIONAL. Creates a configuration object that maps data to bins that each have the same size range.
|
|
44
|
-
*
|
|
45
|
-
* For example, bins may be, 0-10, 10-20, 20-30, etc.
|
|
46
|
-
*/
|
|
47
|
-
equalValueRangesBins(bins: null): this;
|
|
48
|
-
equalValueRangesBins(bins: (bins: EqualValueRangesBinsBuilder<Datum>) => void): this;
|
|
49
|
-
/**
|
|
50
|
-
* OPTIONAL. Creates a configuration object that maps data to bins that contain an equal number of data observations.
|
|
51
|
-
*
|
|
52
|
-
* This is useful for creating quartiles, deciles, etc.
|
|
53
|
-
*/
|
|
54
|
-
equalFrequenciesBins(bins: null): this;
|
|
55
|
-
equalFrequenciesBins(bins: (bins: EqualFrequenciesAttributeDataDimensionBuilder<Datum>) => void): this;
|
|
56
|
-
customFills(customFills: FillDefinition<Datum>[]): this;
|
|
57
|
-
/**
|
|
58
|
-
* REQUIRED. The accessor function that returns a value from a Datum that must match the value returned by featureIndexAccessor.
|
|
59
|
-
*/
|
|
60
|
-
geographyIndexAccessor(accessor: (d: Datum) => string): this;
|
|
61
|
-
_build(): GeographiesAttributeDataLayer<Datum, TProperties, TGeometry>;
|
|
62
|
-
private validateBuilder;
|
|
63
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { InternMap } from 'd3';
|
|
2
|
-
import { Geometry, MultiPolygon, Polygon } from 'geojson';
|
|
3
|
-
import { FillDefinition } from '../../../../fill-definitions/fill-definitions';
|
|
4
|
-
import { GeographiesFeature } from '../../../geographies-feature';
|
|
5
|
-
import { GeographiesLayer, GeographiesTooltipDatum } from '../geographies-layer/geographies-layer';
|
|
6
|
-
import { GeographiesAttributeDataLayerOptions } from './attribute-data-layer-options';
|
|
7
|
-
import { CategoricalBinsAttributeDataDimension } from './dimensions/categorical-bins/categorical-bins';
|
|
8
|
-
import { CustomBreaksBinsAttributeDataDimension } from './dimensions/custom-breaks/custom-breaks-bins';
|
|
9
|
-
import { EqualFrequenciesAttributeDataDimension } from './dimensions/equal-frequencies-bins/equal-frequencies-bins';
|
|
10
|
-
import { EqualValueRangesAttributeDataDimension } from './dimensions/equal-value-ranges-bins/equal-value-ranges-bins';
|
|
11
|
-
import { NoBinsAttributeDataDimension } from './dimensions/no-bins/no-bins';
|
|
12
|
-
export declare class GeographiesAttributeDataLayer<Datum, TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends GeographiesLayer<Datum, TProperties, TGeometry> implements GeographiesAttributeDataLayerOptions<Datum, TProperties, TGeometry> {
|
|
13
|
-
readonly attributeDimension: CategoricalBinsAttributeDataDimension<Datum> | NoBinsAttributeDataDimension<Datum> | EqualValueRangesAttributeDataDimension<Datum> | EqualFrequenciesAttributeDataDimension<Datum> | CustomBreaksBinsAttributeDataDimension<Datum>;
|
|
14
|
-
attributeScale: any;
|
|
15
|
-
attributeValuesByGeographyIndex: InternMap<string, string | number>;
|
|
16
|
-
readonly customFills: FillDefinition<Datum>[];
|
|
17
|
-
readonly data: Datum[];
|
|
18
|
-
datumsByGeographyIndex: InternMap<string, Datum>;
|
|
19
|
-
geographyIndexAccessor: (d: Datum) => string;
|
|
20
|
-
readonly marksClass: string;
|
|
21
|
-
readonly mixBlendMode: string;
|
|
22
|
-
constructor(options: GeographiesAttributeDataLayerOptions<Datum, TProperties, TGeometry>);
|
|
23
|
-
initPropertiesFromData(): void;
|
|
24
|
-
private getUniqueDatumsByGeoAccessor;
|
|
25
|
-
private setAttributeDataMaps;
|
|
26
|
-
getFill(feature: GeographiesFeature<TProperties, TGeometry>): string;
|
|
27
|
-
getPatternFill(geographyIndex: string): string;
|
|
28
|
-
getAttributeFill(geographyIndex: string): string;
|
|
29
|
-
getTooltipData(path: SVGPathElement): GeographiesTooltipDatum<Datum>;
|
|
30
|
-
}
|