@buildcanada/charts 0.3.5 → 0.3.7

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.
Files changed (267) hide show
  1. package/package.json +1 -1
  2. package/src/components/GrapherTabIcon.tsx +1 -1
  3. package/src/components/GrapherTrendArrow.tsx +1 -1
  4. package/src/components/Halo/Halo.tsx +1 -1
  5. package/src/components/LabeledSwitch/LabeledSwitch.tsx +1 -1
  6. package/src/components/MarkdownTextWrap/MarkdownTextWrap.tsx +4 -4
  7. package/src/components/OverlayHeader.tsx +1 -1
  8. package/src/components/SimpleMarkdownText.tsx +1 -1
  9. package/src/components/TextWrap/TextWrap.tsx +2 -2
  10. package/src/components/index.ts +23 -23
  11. package/src/components/loadingIndicator/LoadingIndicator.tsx +1 -1
  12. package/src/config/ChartsProvider.tsx +1 -1
  13. package/src/config/index.ts +2 -2
  14. package/src/core-table/ChartsTable.ts +7 -7
  15. package/src/core-table/CoreTable.ts +6 -6
  16. package/src/core-table/CoreTableColumns.ts +5 -5
  17. package/src/core-table/CoreTableUtils.ts +3 -3
  18. package/src/core-table/ErrorValues.ts +1 -1
  19. package/src/core-table/TableSynthesizers.ts +3 -3
  20. package/src/core-table/TableUtil.ts +2 -2
  21. package/src/core-table/Transforms.ts +3 -3
  22. package/src/core-table/index.ts +8 -8
  23. package/src/explorer/ColumnGrammar.ts +4 -4
  24. package/src/explorer/Explorer.sample.ts +4 -4
  25. package/src/explorer/Explorer.tsx +10 -10
  26. package/src/explorer/ExplorerConstants.ts +2 -2
  27. package/src/explorer/ExplorerControls.tsx +4 -4
  28. package/src/explorer/ExplorerDecisionMatrix.ts +7 -7
  29. package/src/explorer/ExplorerGrammar.ts +4 -4
  30. package/src/explorer/ExplorerProgram.ts +11 -11
  31. package/src/explorer/ExplorerUtils.ts +4 -4
  32. package/src/explorer/GrapherGrammar.ts +3 -3
  33. package/src/explorer/gridLang/GridCell.ts +4 -4
  34. package/src/explorer/gridLang/GridLangConstants.ts +1 -1
  35. package/src/explorer/gridLang/GridProgram.ts +5 -5
  36. package/src/explorer/index.ts +15 -15
  37. package/src/explorer/urlMigrations/CO2UrlMigration.ts +3 -3
  38. package/src/explorer/urlMigrations/CovidUrlMigration.ts +2 -2
  39. package/src/explorer/urlMigrations/EnergyUrlMigration.ts +3 -3
  40. package/src/explorer/urlMigrations/ExplorerPageUrlMigrationSpec.ts +1 -1
  41. package/src/explorer/urlMigrations/ExplorerUrlMigrationUtils.ts +2 -2
  42. package/src/explorer/urlMigrations/ExplorerUrlMigrations.ts +5 -5
  43. package/src/explorer/urlMigrations/LegacyCovidUrlMigration.ts +4 -4
  44. package/src/grapher/axis/Axis.ts +8 -8
  45. package/src/grapher/axis/AxisConfig.ts +4 -4
  46. package/src/grapher/axis/AxisViews.tsx +6 -6
  47. package/src/grapher/barCharts/DiscreteBarChart.tsx +17 -17
  48. package/src/grapher/barCharts/DiscreteBarChartConstants.ts +6 -6
  49. package/src/grapher/barCharts/DiscreteBarChartHelpers.ts +3 -3
  50. package/src/grapher/barCharts/DiscreteBarChartState.ts +13 -13
  51. package/src/grapher/barCharts/DiscreteBarChartThumbnail.tsx +4 -4
  52. package/src/grapher/captionedChart/CaptionedChart.tsx +19 -19
  53. package/src/grapher/captionedChart/Logos.tsx +3 -3
  54. package/src/grapher/captionedChart/StaticChartRasterizer.tsx +1 -1
  55. package/src/grapher/chart/Chart.tsx +5 -5
  56. package/src/grapher/chart/ChartAreaContent.tsx +10 -10
  57. package/src/grapher/chart/ChartDimension.ts +2 -2
  58. package/src/grapher/chart/ChartInterface.ts +7 -7
  59. package/src/grapher/chart/ChartManager.ts +9 -9
  60. package/src/grapher/chart/ChartTabs.ts +1 -1
  61. package/src/grapher/chart/ChartTypeMap.tsx +31 -31
  62. package/src/grapher/chart/ChartTypeSwitcher.tsx +1 -1
  63. package/src/grapher/chart/ChartUtils.tsx +10 -10
  64. package/src/grapher/chart/DimensionSlot.ts +3 -3
  65. package/src/grapher/chart/StaticChartWrapper.tsx +5 -5
  66. package/src/grapher/chart/guidedChartUtils.ts +4 -4
  67. package/src/grapher/color/BinningStrategies.ts +4 -4
  68. package/src/grapher/color/BinningStrategyEqualSizeBins.ts +3 -3
  69. package/src/grapher/color/BinningStrategyLogarithmic.ts +3 -3
  70. package/src/grapher/color/CategoricalColorAssigner.ts +3 -3
  71. package/src/grapher/color/ColorBrewerSchemes.ts +1 -1
  72. package/src/grapher/color/ColorScale.ts +9 -9
  73. package/src/grapher/color/ColorScaleBin.ts +2 -2
  74. package/src/grapher/color/ColorScaleConfig.ts +3 -3
  75. package/src/grapher/color/ColorScheme.ts +3 -3
  76. package/src/grapher/color/ColorSchemes.ts +4 -4
  77. package/src/grapher/color/ColorUtils.ts +1 -1
  78. package/src/grapher/color/CustomSchemes.ts +2 -2
  79. package/src/grapher/comparisonLine/ComparisonLine.tsx +5 -5
  80. package/src/grapher/comparisonLine/ComparisonLineGenerator.ts +1 -1
  81. package/src/grapher/comparisonLine/ComparisonLineHelpers.ts +1 -1
  82. package/src/grapher/comparisonLine/CustomComparisonLine.tsx +8 -8
  83. package/src/grapher/comparisonLine/VerticalComparisonLine.tsx +5 -5
  84. package/src/grapher/controls/ActionButtons.tsx +4 -4
  85. package/src/grapher/controls/CommandPalette.tsx +1 -1
  86. package/src/grapher/controls/ContentSwitchers.tsx +4 -4
  87. package/src/grapher/controls/DataTableFilterDropdown.tsx +7 -7
  88. package/src/grapher/controls/DataTableSearchField.tsx +4 -4
  89. package/src/grapher/controls/Dropdown.tsx +1 -1
  90. package/src/grapher/controls/EntitySelectionToggle.tsx +1 -1
  91. package/src/grapher/controls/MapRegionDropdown.tsx +5 -5
  92. package/src/grapher/controls/MapResetButton.tsx +3 -3
  93. package/src/grapher/controls/MapZoomDropdown.tsx +5 -5
  94. package/src/grapher/controls/MapZoomToSelectionButton.tsx +3 -3
  95. package/src/grapher/controls/SearchField.tsx +1 -1
  96. package/src/grapher/controls/SettingsMenu.tsx +14 -14
  97. package/src/grapher/controls/ShareMenu.tsx +4 -4
  98. package/src/grapher/controls/SortIcon.tsx +1 -1
  99. package/src/grapher/controls/controlsRow/ControlsRow.tsx +11 -11
  100. package/src/grapher/controls/entityPicker/EntityPicker.tsx +7 -7
  101. package/src/grapher/controls/entityPicker/EntityPickerConstants.ts +5 -5
  102. package/src/grapher/controls/globalEntitySelector/GlobalEntitySelector.tsx +7 -7
  103. package/src/grapher/controls/settings/AbsRelToggle.tsx +2 -2
  104. package/src/grapher/controls/settings/AxisScaleToggle.tsx +2 -2
  105. package/src/grapher/controls/settings/FacetStrategySelector.tsx +2 -2
  106. package/src/grapher/controls/settings/FacetYDomainToggle.tsx +3 -3
  107. package/src/grapher/controls/settings/NoDataAreaToggle.tsx +1 -1
  108. package/src/grapher/controls/settings/ZoomToggle.tsx +1 -1
  109. package/src/grapher/core/EntitiesByRegionType.ts +3 -3
  110. package/src/grapher/core/EntityCodes.ts +2 -2
  111. package/src/grapher/core/EntityUrlBuilder.ts +3 -3
  112. package/src/grapher/core/FetchingGrapher.tsx +8 -8
  113. package/src/grapher/core/Grapher.tsx +20 -20
  114. package/src/grapher/core/GrapherAnalytics.ts +1 -1
  115. package/src/grapher/core/GrapherConstants.ts +3 -3
  116. package/src/grapher/core/GrapherState.tsx +38 -38
  117. package/src/grapher/core/GrapherUrl.ts +4 -4
  118. package/src/grapher/core/GrapherUrlMigrations.ts +2 -2
  119. package/src/grapher/core/GrapherUseHelpers.tsx +5 -5
  120. package/src/grapher/core/LegacyToChartsTable.ts +5 -5
  121. package/src/grapher/core/grapher.entry.ts +1 -1
  122. package/src/grapher/core/loadGrapherTableHelpers.ts +4 -4
  123. package/src/grapher/core/loadVariable.ts +2 -2
  124. package/src/grapher/core/relatedQuestion.ts +1 -1
  125. package/src/grapher/dataTable/DataTable.sample.ts +5 -5
  126. package/src/grapher/dataTable/DataTable.tsx +10 -10
  127. package/src/grapher/dataTable/DataTableConstants.ts +5 -5
  128. package/src/grapher/entitySelector/EntitySelector.tsx +15 -15
  129. package/src/grapher/facet/FacetChart.tsx +19 -19
  130. package/src/grapher/facet/FacetChartConstants.ts +4 -4
  131. package/src/grapher/facet/FacetChartUtils.ts +1 -1
  132. package/src/grapher/facet/FacetMap.tsx +15 -15
  133. package/src/grapher/facet/FacetMapConstants.ts +4 -4
  134. package/src/grapher/focus/FocusArray.ts +2 -2
  135. package/src/grapher/footer/Footer.tsx +7 -7
  136. package/src/grapher/footer/FooterManager.ts +4 -4
  137. package/src/grapher/fullScreen/FullScreen.tsx +2 -2
  138. package/src/grapher/header/Header.tsx +6 -6
  139. package/src/grapher/header/HeaderManager.ts +2 -2
  140. package/src/grapher/index.ts +57 -57
  141. package/src/grapher/legend/HorizontalColorLegends.tsx +7 -7
  142. package/src/grapher/legend/LegendInteractionState.ts +1 -1
  143. package/src/grapher/legend/VerticalColorLegend.tsx +6 -6
  144. package/src/grapher/lineCharts/LineChart.tsx +26 -26
  145. package/src/grapher/lineCharts/LineChartConstants.ts +8 -8
  146. package/src/grapher/lineCharts/LineChartHelpers.ts +7 -7
  147. package/src/grapher/lineCharts/LineChartState.ts +17 -17
  148. package/src/grapher/lineCharts/LineChartThumbnail.tsx +15 -15
  149. package/src/grapher/lineCharts/Lines.tsx +6 -6
  150. package/src/grapher/lineLegend/LineLegend.tsx +12 -12
  151. package/src/grapher/lineLegend/LineLegendFilterAlgorithms.ts +2 -2
  152. package/src/grapher/lineLegend/LineLegendHelpers.ts +3 -3
  153. package/src/grapher/lineLegend/LineLegendTypes.ts +4 -4
  154. package/src/grapher/mapCharts/ChoroplethGlobe.tsx +11 -11
  155. package/src/grapher/mapCharts/ChoroplethMap.tsx +11 -11
  156. package/src/grapher/mapCharts/GeoFeatures.ts +5 -5
  157. package/src/grapher/mapCharts/GlobeController.ts +7 -7
  158. package/src/grapher/mapCharts/MapAnnotationPlacements.ts +2 -2
  159. package/src/grapher/mapCharts/MapAnnotations.ts +6 -6
  160. package/src/grapher/mapCharts/MapChart.sample.ts +3 -3
  161. package/src/grapher/mapCharts/MapChart.tsx +23 -23
  162. package/src/grapher/mapCharts/MapChartConstants.ts +10 -10
  163. package/src/grapher/mapCharts/MapChartState.ts +11 -11
  164. package/src/grapher/mapCharts/MapChartThumbnail.tsx +3 -3
  165. package/src/grapher/mapCharts/MapComponents.tsx +8 -8
  166. package/src/grapher/mapCharts/MapConfig.ts +5 -5
  167. package/src/grapher/mapCharts/MapHelpers.ts +6 -6
  168. package/src/grapher/mapCharts/MapProjections.ts +2 -2
  169. package/src/grapher/mapCharts/MapSparkline.tsx +9 -9
  170. package/src/grapher/mapCharts/MapTooltip.tsx +10 -10
  171. package/src/grapher/modal/DownloadModal.tsx +9 -9
  172. package/src/grapher/modal/EmbedModal.tsx +4 -4
  173. package/src/grapher/modal/EntitySelectorModal.tsx +4 -4
  174. package/src/grapher/modal/Modal.tsx +2 -2
  175. package/src/grapher/modal/ModalHeader.tsx +1 -1
  176. package/src/grapher/modal/SourcesDescriptions.tsx +1 -1
  177. package/src/grapher/modal/SourcesKeyDataTable.tsx +2 -2
  178. package/src/grapher/modal/SourcesModal.tsx +10 -10
  179. package/src/grapher/noDataModal/NoDataModal.tsx +4 -4
  180. package/src/grapher/scatterCharts/ConnectedScatterLegend.tsx +4 -4
  181. package/src/grapher/scatterCharts/NoDataSection.tsx +3 -3
  182. package/src/grapher/scatterCharts/ScatterPlotChart.tsx +27 -27
  183. package/src/grapher/scatterCharts/ScatterPlotChartConstants.ts +10 -10
  184. package/src/grapher/scatterCharts/ScatterPlotChartState.ts +15 -15
  185. package/src/grapher/scatterCharts/ScatterPlotChartThumbnail.tsx +12 -12
  186. package/src/grapher/scatterCharts/ScatterPlotTooltip.tsx +6 -6
  187. package/src/grapher/scatterCharts/ScatterPoints.tsx +4 -4
  188. package/src/grapher/scatterCharts/ScatterPointsWithLabels.tsx +11 -11
  189. package/src/grapher/scatterCharts/ScatterSizeLegend.tsx +7 -7
  190. package/src/grapher/scatterCharts/ScatterUtils.ts +5 -5
  191. package/src/grapher/schema/defaultGrapherConfig.ts +1 -1
  192. package/src/grapher/schema/migrations/helpers.ts +1 -1
  193. package/src/grapher/schema/migrations/migrate.ts +4 -4
  194. package/src/grapher/schema/migrations/migrations.ts +2 -2
  195. package/src/grapher/selection/MapSelectionArray.ts +2 -2
  196. package/src/grapher/selection/SelectionArray.ts +1 -1
  197. package/src/grapher/sidePanel/SidePanel.tsx +2 -2
  198. package/src/grapher/slideInDrawer/SlideInDrawer.tsx +1 -1
  199. package/src/grapher/slopeCharts/MarkX.tsx +2 -2
  200. package/src/grapher/slopeCharts/Slope.tsx +3 -3
  201. package/src/grapher/slopeCharts/SlopeChart.tsx +29 -29
  202. package/src/grapher/slopeCharts/SlopeChartConstants.ts +6 -6
  203. package/src/grapher/slopeCharts/SlopeChartHelpers.ts +4 -4
  204. package/src/grapher/slopeCharts/SlopeChartState.ts +14 -14
  205. package/src/grapher/slopeCharts/SlopeChartThumbnail.tsx +14 -14
  206. package/src/grapher/stackedCharts/AbstractStackedChartState.ts +13 -13
  207. package/src/grapher/stackedCharts/MarimekkoBars.tsx +8 -8
  208. package/src/grapher/stackedCharts/MarimekkoBarsForOneEntity.tsx +5 -5
  209. package/src/grapher/stackedCharts/MarimekkoChart.tsx +23 -23
  210. package/src/grapher/stackedCharts/MarimekkoChartConstants.ts +6 -6
  211. package/src/grapher/stackedCharts/MarimekkoChartHelpers.ts +3 -3
  212. package/src/grapher/stackedCharts/MarimekkoChartState.ts +16 -16
  213. package/src/grapher/stackedCharts/MarimekkoChartThumbnail.tsx +13 -13
  214. package/src/grapher/stackedCharts/MarimekkoInternalLabels.tsx +4 -4
  215. package/src/grapher/stackedCharts/StackedAreaChart.tsx +22 -22
  216. package/src/grapher/stackedCharts/StackedAreaChartState.ts +5 -5
  217. package/src/grapher/stackedCharts/StackedAreaChartThumbnail.tsx +14 -14
  218. package/src/grapher/stackedCharts/StackedAreas.tsx +4 -4
  219. package/src/grapher/stackedCharts/StackedBarChart.tsx +21 -21
  220. package/src/grapher/stackedCharts/StackedBarChartState.ts +8 -8
  221. package/src/grapher/stackedCharts/StackedBarChartThumbnail.tsx +14 -14
  222. package/src/grapher/stackedCharts/StackedBarSegment.tsx +3 -3
  223. package/src/grapher/stackedCharts/StackedBars.tsx +6 -6
  224. package/src/grapher/stackedCharts/StackedConstants.ts +6 -6
  225. package/src/grapher/stackedCharts/StackedDiscreteBarChart.tsx +14 -14
  226. package/src/grapher/stackedCharts/StackedDiscreteBarChartState.ts +13 -13
  227. package/src/grapher/stackedCharts/StackedDiscreteBarChartThumbnail.tsx +4 -4
  228. package/src/grapher/stackedCharts/StackedDiscreteBars.tsx +15 -15
  229. package/src/grapher/stackedCharts/StackedUtils.ts +3 -3
  230. package/src/grapher/tabs/TabsWithDropdown.tsx +1 -1
  231. package/src/grapher/testData/TestData.sample.ts +5 -5
  232. package/src/grapher/testData/TestData.ts +2 -2
  233. package/src/grapher/timeline/TimelineComponent.tsx +4 -4
  234. package/src/grapher/timeline/TimelineController.ts +2 -2
  235. package/src/grapher/tooltip/Tooltip.tsx +5 -5
  236. package/src/grapher/tooltip/TooltipContents.tsx +6 -6
  237. package/src/grapher/tooltip/TooltipProps.ts +1 -1
  238. package/src/grapher/tooltip/TooltipState.ts +2 -2
  239. package/src/grapher/verticalLabels/VerticalLabels.tsx +3 -3
  240. package/src/grapher/verticalLabels/VerticalLabelsState.ts +2 -2
  241. package/src/index.ts +55 -55
  242. package/src/types/Origin.ts +1 -1
  243. package/src/types/Variable.ts +3 -3
  244. package/src/types/VariableDisplayConfigInterface.ts +2 -2
  245. package/src/types/domainTypes/ContentGraph.ts +2 -2
  246. package/src/types/domainTypes/CoreTableTypes.ts +5 -5
  247. package/src/types/domainTypes/Posts.ts +4 -4
  248. package/src/types/domainTypes/Search.ts +2 -2
  249. package/src/types/domainTypes/Various.ts +1 -1
  250. package/src/types/gdocTypes/Gdoc.ts +2 -2
  251. package/src/types/grapherTypes/GrapherTypes.ts +9 -9
  252. package/src/types/index.ts +15 -15
  253. package/src/utils/Bounds.ts +2 -2
  254. package/src/utils/FuzzySearch.ts +1 -1
  255. package/src/utils/TimeBounds.ts +2 -2
  256. package/src/utils/Util.ts +3 -3
  257. package/src/utils/Variable.ts +2 -2
  258. package/src/utils/archival/archivalDate.ts +2 -2
  259. package/src/utils/formatValue.ts +2 -2
  260. package/src/utils/grapherConfigUtils.ts +2 -2
  261. package/src/utils/image.ts +2 -2
  262. package/src/utils/index.ts +27 -27
  263. package/src/utils/metadataHelpers.ts +4 -4
  264. package/src/utils/regions.ts +2 -2
  265. package/src/utils/urls/Url.ts +3 -3
  266. package/src/utils/urls/UrlMigration.ts +1 -1
  267. package/src/utils/urls/UrlUtils.ts +2 -2
@@ -2,13 +2,13 @@ import {
2
2
  MarkdownTextWrap,
3
3
  sumTextWrapHeights,
4
4
  reactRenderToStringClientOnly,
5
- } from "../../components/index.ts"
5
+ } from "../../components/index.js"
6
6
  import {
7
7
  ChartsTable,
8
8
  BlankChartsTable,
9
9
  CoreColumn,
10
10
  ColumnTypeMap,
11
- } from "../../core-table/index.ts"
11
+ } from "../../core-table/index.js"
12
12
  import {
13
13
  GrapherChartType,
14
14
  GRAPHER_CHART_TYPES,
@@ -63,7 +63,7 @@ import {
63
63
  GlobeRegionName,
64
64
  GrapherWindowType,
65
65
  MapRegionName,
66
- } from "../../types/index.ts"
66
+ } from "../../types/index.js"
67
67
  import {
68
68
  objectWithPersistablesToObject,
69
69
  deleteRuntimeAndUnchangedProps,
@@ -99,7 +99,7 @@ import {
99
99
  checkIsIncomeGroup,
100
100
  checkHasMembers,
101
101
  sortNumeric,
102
- } from "../../utils/index.ts"
102
+ } from "../../utils/index.js"
103
103
  import Cookies from "js-cookie"
104
104
  import * as _ from "lodash-es"
105
105
  import {
@@ -113,14 +113,14 @@ import {
113
113
  import React from "react"
114
114
  import * as R from "remeda"
115
115
  import { match } from "ts-pattern"
116
- import { AxisConfig } from "../axis/AxisConfig.ts"
116
+ import { AxisConfig } from "../axis/AxisConfig.js"
117
117
  import {
118
118
  GrapherRasterizeFn,
119
119
  StaticChartRasterizer,
120
- } from "../captionedChart/StaticChartRasterizer.tsx"
121
- import { Chart } from "../chart/Chart.tsx"
122
- import { ChartDimension } from "../chart/ChartDimension.ts"
123
- import { ChartState } from "../chart/ChartInterface.ts"
120
+ } from "../captionedChart/StaticChartRasterizer.js"
121
+ import { Chart } from "../chart/Chart.js"
122
+ import { ChartDimension } from "../chart/ChartDimension.js"
123
+ import { ChartState } from "../chart/ChartInterface.js"
124
124
  import {
125
125
  isChartTypeName,
126
126
  isChartTab,
@@ -129,70 +129,70 @@ import {
129
129
  isValidTabConfigOption,
130
130
  mapChartTypeNameToTabConfigOption,
131
131
  mapTabConfigOptionToChartTypeName,
132
- } from "../chart/ChartTabs.ts"
133
- import { makeChartState } from "../chart/ChartTypeMap.tsx"
132
+ } from "../chart/ChartTabs.js"
133
+ import { makeChartState } from "../chart/ChartTypeMap.js"
134
134
  import {
135
135
  autoDetectSeriesStrategy,
136
136
  autoDetectYColumnSlugs,
137
- } from "../chart/ChartUtils.tsx"
138
- import { DimensionSlot } from "../chart/DimensionSlot.ts"
137
+ } from "../chart/ChartUtils.js"
138
+ import { DimensionSlot } from "../chart/DimensionSlot.js"
139
139
  import {
140
140
  GRAPHER_LIGHT_TEXT,
141
141
  GRAPHER_BACKGROUND_BEIGE,
142
142
  GRAPHER_BACKGROUND_DEFAULT,
143
- } from "../color/ColorConstants.ts"
144
- import { ColorScaleConfig } from "../color/ColorScaleConfig.ts"
145
- import { isValidDataTableFilter } from "../dataTable/DataTable.tsx"
146
- import { DataTableConfig } from "../dataTable/DataTableConstants.ts"
143
+ } from "../color/ColorConstants.js"
144
+ import { ColorScaleConfig } from "../color/ColorScaleConfig.js"
145
+ import { isValidDataTableFilter } from "../dataTable/DataTable.js"
146
+ import { DataTableConfig } from "../dataTable/DataTableConstants.js"
147
147
  import {
148
148
  type EntitySelectorState,
149
149
  EntitySelector,
150
- } from "../entitySelector/EntitySelector.tsx"
151
- import { FacetChart } from "../facet/FacetChart.tsx"
152
- import { FocusArray } from "../focus/FocusArray.ts"
153
- import { GlobeController } from "../mapCharts/GlobeController.ts"
150
+ } from "../entitySelector/EntitySelector.js"
151
+ import { FacetChart } from "../facet/FacetChart.js"
152
+ import { FocusArray } from "../focus/FocusArray.js"
153
+ import { GlobeController } from "../mapCharts/GlobeController.js"
154
154
  import {
155
155
  MAP_REGION_LABELS,
156
156
  MAP_REGION_NAMES,
157
- } from "../mapCharts/MapChartConstants.ts"
158
- import { MapConfig } from "../mapCharts/MapConfig.ts"
157
+ } from "../mapCharts/MapChartConstants.js"
158
+ import { MapConfig } from "../mapCharts/MapConfig.js"
159
159
  import {
160
160
  isValidMapRegionName,
161
161
  isOnTheMap,
162
162
  getCountriesByRegion,
163
- } from "../mapCharts/MapHelpers.ts"
164
- import { DownloadModalTabName } from "../modal/DownloadModal.tsx"
165
- import { SelectionArray } from "../selection/SelectionArray.ts"
166
- import { SlideShowController } from "../slideshowController/SlideShowController.tsx"
163
+ } from "../mapCharts/MapHelpers.js"
164
+ import { DownloadModalTabName } from "../modal/DownloadModal.js"
165
+ import { SelectionArray } from "../selection/SelectionArray.js"
166
+ import { SlideShowController } from "../slideshowController/SlideShowController.js"
167
167
  import {
168
168
  TimelineDragTarget,
169
169
  TimelineController,
170
- } from "../timeline/TimelineController.ts"
171
- import { TooltipManager } from "../tooltip/TooltipProps.ts"
170
+ } from "../timeline/TimelineController.js"
171
+ import { TooltipManager } from "../tooltip/TooltipProps.js"
172
172
  import {
173
173
  EntityRegionTypeGroup,
174
174
  groupEntityNamesByRegionType,
175
175
  EntityNamesByRegionType,
176
176
  isEntityRegionType,
177
- } from "./EntitiesByRegionType.ts"
177
+ } from "./EntitiesByRegionType.js"
178
178
  import {
179
179
  getEntityNamesParam,
180
180
  getSelectedEntityNamesParam,
181
181
  getFocusedSeriesNamesParam,
182
- } from "./EntityUrlBuilder.ts"
182
+ } from "./EntityUrlBuilder.js"
183
183
  import {
184
184
  MinimalNarrativeChartInfo,
185
185
  GrapherProgrammaticInterface,
186
186
  GrapherManager,
187
187
  DEFAULT_MS_PER_TICK,
188
- } from "./Grapher.tsx"
189
- import { GrapherAnalytics } from "./GrapherAnalytics.ts"
188
+ } from "./Grapher.js"
189
+ import { GrapherAnalytics } from "./GrapherAnalytics.js"
190
190
  import {
191
191
  type GrapherAnalyticsContext,
192
192
  type EntitySelectorEvent,
193
193
  type GrapherImageDownloadEvent,
194
194
  type GrapherInteractionEvent,
195
- } from "../../types/index.ts"
195
+ } from "../../types/index.js"
196
196
  import {
197
197
  latestGrapherConfigSchema,
198
198
  DEFAULT_GRAPHER_ENTITY_TYPE,
@@ -211,10 +211,10 @@ import {
211
211
  STATIC_EXPORT_DETAIL_SPACING,
212
212
  DEFAULT_GRAPHER_BOUNDS_SQUARE,
213
213
  CHART_TYPES_THAT_SHOW_ALL_ENTITIES,
214
- } from "./GrapherConstants.ts"
215
- import { parseGlobeRotation, grapherObjectToQueryParams } from "./GrapherUrl.ts"
216
- import { legacyToCurrentGrapherQueryParams } from "./GrapherUrlMigrations.ts"
217
- import { getErrorMessageRelatedQuestionUrl } from "./relatedQuestion.ts"
214
+ } from "./GrapherConstants.js"
215
+ import { parseGlobeRotation, grapherObjectToQueryParams } from "./GrapherUrl.js"
216
+ import { legacyToCurrentGrapherQueryParams } from "./GrapherUrlMigrations.js"
217
+ import { getErrorMessageRelatedQuestionUrl } from "./relatedQuestion.js"
218
218
 
219
219
  export class GrapherState {
220
220
  $schema = latestGrapherConfigSchema
@@ -3,18 +3,18 @@ import {
3
3
  GrapherInterface,
4
4
  GrapherQueryParams,
5
5
  TimeBoundValueStr,
6
- } from "../../types/index.ts"
6
+ } from "../../types/index.js"
7
7
  import {
8
8
  generateFocusedSeriesNamesParam,
9
9
  generateSelectedEntityNamesParam,
10
- } from "./EntityUrlBuilder.ts"
10
+ } from "./EntityUrlBuilder.js"
11
11
  import { match } from "ts-pattern"
12
- import { GrapherState } from "./GrapherState.tsx"
12
+ import { GrapherState } from "./GrapherState.js"
13
13
  import * as R from "remeda"
14
14
  import {
15
15
  DEFAULT_GLOBE_ROTATION,
16
16
  DEFAULT_GLOBE_ZOOM,
17
- } from "../mapCharts/MapChartConstants.ts"
17
+ } from "../mapCharts/MapChartConstants.js"
18
18
 
19
19
  // This function converts a (potentially partial) GrapherInterface to the query params this translates to.
20
20
  // This is helpful for when we have a patch config to a parent chart, and we want to know which query params we need to get the parent chart as close as possible to the patched child chart.
@@ -3,8 +3,8 @@ import {
3
3
  Url,
4
4
  UrlMigration,
5
5
  performUrlMigrations,
6
- } from "../../utils/index.ts"
7
- import { migrateSelectedEntityNamesParam } from "./EntityUrlBuilder"
6
+ } from "../../utils/index.js"
7
+ import { migrateSelectedEntityNamesParam } from "./EntityUrlBuilder.js"
8
8
 
9
9
  export const grapherUrlMigrations: UrlMigration[] = [
10
10
  (url: Url): Url => {
@@ -1,15 +1,15 @@
1
1
  import * as React from "react"
2
2
 
3
- import { Bounds } from "../../utils/index.ts"
3
+ import { Bounds } from "../../utils/index.js"
4
4
  import { debounce } from "lodash-es"
5
- import { GrapherProgrammaticInterface } from "../index.ts"
6
- import { FetchingGrapher } from "./FetchingGrapher.tsx"
5
+ import { GrapherProgrammaticInterface } from "../index.js"
6
+ import { FetchingGrapher } from "./FetchingGrapher.js"
7
7
  import {
8
8
  ArchiveContext,
9
9
  VariableDataMetadataDimensions,
10
10
  VariableId,
11
- } from "../../types/index.ts"
12
- import { loadVariableDataAndMetadata } from "./loadVariable.ts"
11
+ } from "../../types/index.js"
12
+ import { loadVariableDataAndMetadata } from "./loadVariable.js"
13
13
  import { createRoot } from "react-dom/client"
14
14
 
15
15
  /**
@@ -13,12 +13,12 @@ import {
13
13
  ChartDimensionInterfaceWithMandatorySlug,
14
14
  ChartDimensionInterface,
15
15
  EntityName,
16
- } from "../../types/index.ts"
16
+ } from "../../types/index.js"
17
17
  import {
18
18
  ChartsTable,
19
19
  ErrorValueTypes,
20
20
  makeKeyFn,
21
- } from "../../core-table/index.ts"
21
+ } from "../../core-table/index.js"
22
22
  import {
23
23
  diffDateISOStringInDays,
24
24
  getYearFromISOStringAndDayOffset,
@@ -33,10 +33,10 @@ import {
33
33
  ColumnSlug,
34
34
  EPOCH_DATE,
35
35
  VariableType,
36
- } from "../../utils/index.ts"
37
- import { isContinentsVariableId } from "./GrapherConstants"
36
+ } from "../../utils/index.js"
37
+ import { isContinentsVariableId } from "./GrapherConstants.js"
38
38
  import * as R from "remeda"
39
- import { getDimensionColumnSlug } from "../chart/ChartDimension.ts"
39
+ import { getDimensionColumnSlug } from "../chart/ChartDimension.js"
40
40
 
41
41
  export const legacyToChartsTableAndDimensionsWithMandatorySlug = (
42
42
  json: MultipleVariableDataDimensionsMap,
@@ -1,5 +1,5 @@
1
1
  import "./grapher.scss"
2
2
 
3
- import { Grapher } from "./Grapher"
3
+ import { Grapher } from "./Grapher.js"
4
4
  declare let window: any
5
5
  window.Grapher = Grapher
@@ -1,15 +1,15 @@
1
1
  import * as _ from "lodash-es"
2
- import { ChartsTable } from "../../core-table/index.ts"
2
+ import { ChartsTable } from "../../core-table/index.js"
3
3
  import {
4
4
  ArchiveContext,
5
5
  ChartDimensionInterface,
6
6
  VariableDataMetadataDimensions,
7
- } from "../../utils/index.ts"
8
- import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "./LegacyToChartsTable.ts"
7
+ } from "../../utils/index.js"
8
+ import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "./LegacyToChartsTable.js"
9
9
  import {
10
10
  loadVariablesDataSite,
11
11
  loadVariableDataAndMetadata,
12
- } from "./loadVariable.ts"
12
+ } from "./loadVariable.js"
13
13
  import { toJS } from "mobx"
14
14
 
15
15
  export type FetchInputTableForConfigFn = (args: {
@@ -3,8 +3,8 @@ import {
3
3
  AssetMap,
4
4
  MultipleVariableDataDimensionsMap,
5
5
  VariableDataMetadataDimensions,
6
- } from "../../types/index.ts"
7
- import { fetchWithRetry, readFromAssetMap } from "../../utils/index.ts"
6
+ } from "../../types/index.js"
7
+ import { fetchWithRetry, readFromAssetMap } from "../../utils/index.js"
8
8
  import urljoin from "url-join"
9
9
 
10
10
  export const getVariableDataRoute = (
@@ -1,4 +1,4 @@
1
- import { RelatedQuestionsConfig } from "../../types/index.ts"
1
+ import { RelatedQuestionsConfig } from "../../types/index.js"
2
2
 
3
3
  export const getErrorMessageRelatedQuestionUrl = (
4
4
  question: RelatedQuestionsConfig
@@ -1,15 +1,15 @@
1
- import { DimensionProperty } from "../../utils/index.ts"
2
- import { GrapherState } from "../core/GrapherState"
1
+ import { DimensionProperty } from "../../utils/index.js"
2
+ import { GrapherState } from "../core/GrapherState.js"
3
3
  import {
4
4
  GRAPHER_TAB_CONFIG_OPTIONS,
5
5
  GrapherInterface,
6
- } from "../../types/index.ts"
6
+ } from "../../types/index.js"
7
7
  import {
8
8
  TestMetadata,
9
9
  createTestDataset,
10
10
  fakeEntities,
11
- } from "../testData/TestData"
12
- import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "../core/LegacyToChartsTable.ts"
11
+ } from "../testData/TestData.js"
12
+ import { legacyToChartsTableAndDimensionsWithMandatorySlug } from "../core/LegacyToChartsTable.js"
13
13
 
14
14
  export const childMortalityGrapher = (
15
15
  props: Partial<GrapherInterface> = {}
@@ -19,8 +19,8 @@ import {
19
19
  ChartsTableSlugs,
20
20
  VariableRoundingMode,
21
21
  VariableRow,
22
- } from "../../types/index.ts"
23
- import { ChartsTable, CoreColumn } from "../../core-table/index.ts"
22
+ } from "../../types/index.js"
23
+ import { ChartsTable, CoreColumn } from "../../core-table/index.js"
24
24
  import {
25
25
  valuesByEntityAtTimes,
26
26
  es6mapValues,
@@ -32,17 +32,17 @@ import {
32
32
  excludeUndefined,
33
33
  joinTitleFragments,
34
34
  FuzzySearch,
35
- } from "../../utils/index.ts"
36
- import { SelectionArray } from "../selection/SelectionArray"
35
+ } from "../../utils/index.js"
36
+ import { SelectionArray } from "../selection/SelectionArray.js"
37
37
  import {
38
38
  DEFAULT_GRAPHER_BOUNDS,
39
39
  DEFAULT_GRAPHER_ENTITY_TYPE,
40
40
  SVG_STYLE_PROPS,
41
- } from "../core/GrapherConstants"
41
+ } from "../core/GrapherConstants.js"
42
42
  import * as R from "remeda"
43
- import { makeSelectionArray } from "../chart/ChartUtils"
44
- import { isEntityRegionType } from "../core/EntitiesByRegionType"
45
- import { NoDataModal } from "../noDataModal/NoDataModal"
43
+ import { makeSelectionArray } from "../chart/ChartUtils.js"
44
+ import { isEntityRegionType } from "../core/EntitiesByRegionType.js"
45
+ import { NoDataModal } from "../noDataModal/NoDataModal.js"
46
46
  import {
47
47
  DataTableColumnKey,
48
48
  DisplayDataTableDimension,
@@ -66,8 +66,8 @@ import {
66
66
  COMMON_DATA_TABLE_FILTERS,
67
67
  DataTableFilter,
68
68
  SparklineKey,
69
- } from "./DataTableConstants"
70
- import { GRAY_30 } from "../color/ColorConstants"
69
+ } from "./DataTableConstants.js"
70
+ import { GRAY_30 } from "../color/ColorConstants.js"
71
71
 
72
72
  const ENTITY_SORT_INDEX = -1
73
73
 
@@ -1,4 +1,4 @@
1
- import { CoreColumn, ChartsTable } from "../../core-table/index.ts"
1
+ import { CoreColumn, ChartsTable } from "../../core-table/index.js"
2
2
  import {
3
3
  ColumnSlug,
4
4
  EntityName,
@@ -6,13 +6,13 @@ import {
6
6
  VariableRow,
7
7
  SortOrder,
8
8
  Time,
9
- } from "../../types/index.ts"
9
+ } from "../../types/index.js"
10
10
  import {
11
11
  EntityNamesByRegionType,
12
12
  EntityRegionType,
13
- } from "../core/EntitiesByRegionType"
14
- import { SelectionArray } from "../selection/SelectionArray"
15
- import { TimelineDragTarget } from "../timeline/TimelineController"
13
+ } from "../core/EntitiesByRegionType.js"
14
+ import { SelectionArray } from "../selection/SelectionArray.js"
15
+ import { TimelineDragTarget } from "../timeline/TimelineController.js"
16
16
 
17
17
  // Grapher's rendered data table is organized into groups, where
18
18
  // each group corresponds to an indicator from the core table.
@@ -29,24 +29,24 @@ import {
29
29
  Region,
30
30
  getRegionByName,
31
31
  makeSafeForCSS,
32
- } from "../../utils/index.ts"
32
+ } from "../../utils/index.js"
33
33
  import {
34
34
  Checkbox,
35
35
  RadioButton,
36
36
  OverlayHeader,
37
- } from "../../components/index.ts"
37
+ } from "../../components/index.js"
38
38
  import {
39
39
  faLocationArrow,
40
40
  faArrowRightArrowLeft,
41
41
  faFilter,
42
42
  } from "@fortawesome/free-solid-svg-icons"
43
43
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
44
- import { SelectionArray } from "../selection/SelectionArray"
44
+ import { SelectionArray } from "../selection/SelectionArray.js"
45
45
  import { Flipper, Flipped } from "react-flip-toolkit"
46
46
  import {
47
47
  combineHistoricalAndProjectionColumns,
48
48
  makeSelectionArray,
49
- } from "../chart/ChartUtils.tsx"
49
+ } from "../chart/ChartUtils.js"
50
50
  import {
51
51
  DEFAULT_GRAPHER_ENTITY_TYPE,
52
52
  DEFAULT_GRAPHER_ENTITY_TYPE_PLURAL,
@@ -54,10 +54,10 @@ import {
54
54
  GDP_PER_CAPITA_INDICATOR_ID_USED_IN_ENTITY_SELECTOR,
55
55
  isPopulationVariableETLPath,
56
56
  isWorldEntityName,
57
- } from "../core/GrapherConstants"
58
- import { CoreColumn, ChartsTable } from "../../core-table/index.ts"
59
- import { SortIcon } from "../controls/SortIcon"
60
- import { Dropdown } from "../controls/Dropdown"
57
+ } from "../core/GrapherConstants.js"
58
+ import { CoreColumn, ChartsTable } from "../../core-table/index.js"
59
+ import { SortIcon } from "../controls/SortIcon.js"
60
+ import { Dropdown } from "../controls/Dropdown.js"
61
61
  import { scaleLinear, type ScaleLinear } from "d3-scale"
62
62
  import {
63
63
  AdditionalGrapherDataFetchFn,
@@ -68,11 +68,11 @@ import {
68
68
  Time,
69
69
  ToleranceStrategy,
70
70
  type EntitySelectorEvent,
71
- } from "../../types/index.ts"
72
- import { buildVariableTable } from "../core/LegacyToChartsTable"
73
- import { DrawerContext } from "../slideInDrawer/SlideInDrawer.tsx"
71
+ } from "../../types/index.js"
72
+ import { buildVariableTable } from "../core/LegacyToChartsTable.js"
73
+ import { DrawerContext } from "../slideInDrawer/SlideInDrawer.js"
74
74
  import * as R from "remeda"
75
- import { MapConfig } from "../mapCharts/MapConfig"
75
+ import { MapConfig } from "../mapCharts/MapConfig.js"
76
76
  import { match } from "ts-pattern"
77
77
  import {
78
78
  entityRegionTypeLabels,
@@ -80,9 +80,9 @@ import {
80
80
  EntityRegionType,
81
81
  EntityRegionTypeGroup,
82
82
  isAggregateSource,
83
- } from "../core/EntitiesByRegionType"
84
- import { SearchField } from "../controls/SearchField"
85
- import { MAP_REGION_LABELS } from "../mapCharts/MapChartConstants.ts"
83
+ } from "../core/EntitiesByRegionType.js"
84
+ import { SearchField } from "../controls/SearchField.js"
85
+ import { MAP_REGION_LABELS } from "../mapCharts/MapChartConstants.js"
86
86
 
87
87
  export type CoreColumnBySlug = Record<ColumnSlug, CoreColumn>
88
88
 
@@ -15,13 +15,13 @@ import {
15
15
  makeIdForHumanConsumption,
16
16
  exposeInstanceOnWindow,
17
17
  SplitBoundsPadding,
18
- } from "../../utils/index.ts"
19
- import { shortenWithEllipsis } from "../../components/index.ts"
18
+ } from "../../utils/index.js"
19
+ import { shortenWithEllipsis } from "../../components/index.js"
20
20
  import { action, computed, makeObservable, observable } from "mobx"
21
21
  import {
22
22
  BASE_FONT_SIZE,
23
23
  DEFAULT_GRAPHER_BOUNDS,
24
- } from "../core/GrapherConstants"
24
+ } from "../core/GrapherConstants.js"
25
25
  import {
26
26
  GRAPHER_CHART_TYPES,
27
27
  GrapherChartType,
@@ -31,44 +31,44 @@ import {
31
31
  SeriesStrategy,
32
32
  AxisConfigInterface,
33
33
  ChartErrorInfo,
34
- } from "../../types/index.ts"
35
- import { ChartComponent, makeChartInstance } from "../chart/ChartTypeMap"
36
- import { ChartManager } from "../chart/ChartManager"
37
- import { ChartInterface, ChartState } from "../chart/ChartInterface"
34
+ } from "../../types/index.js"
35
+ import { ChartComponent, makeChartInstance } from "../chart/ChartTypeMap.js"
36
+ import { ChartManager } from "../chart/ChartManager.js"
37
+ import { ChartInterface, ChartState } from "../chart/ChartInterface.js"
38
38
  import {
39
39
  calculateAspectRatio,
40
40
  getFacetGridPadding,
41
41
  getFontSize,
42
42
  getLabelPadding,
43
- } from "./FacetChartUtils"
43
+ } from "./FacetChartUtils.js"
44
44
  import {
45
45
  FacetSeries,
46
46
  FacetChartProps,
47
47
  PlacedFacetSeries,
48
48
  FacetChartManager,
49
- } from "./FacetChartConstants"
50
- import { ChartsTable, CoreColumn } from "../../core-table/index.ts"
51
- import { autoDetectYColumnSlugs, makeSelectionArray } from "../chart/ChartUtils"
52
- import { SelectionArray } from "../selection/SelectionArray"
53
- import { AxisConfig } from "../axis/AxisConfig"
54
- import { HorizontalAxis, VerticalAxis } from "../axis/Axis"
49
+ } from "./FacetChartConstants.js"
50
+ import { ChartsTable, CoreColumn } from "../../core-table/index.js"
51
+ import { autoDetectYColumnSlugs, makeSelectionArray } from "../chart/ChartUtils.js"
52
+ import { SelectionArray } from "../selection/SelectionArray.js"
53
+ import { AxisConfig } from "../axis/AxisConfig.js"
54
+ import { HorizontalAxis, VerticalAxis } from "../axis/Axis.js"
55
55
  import {
56
56
  HorizontalCategoricalColorLegend,
57
57
  HorizontalColorLegend,
58
58
  HorizontalColorLegendManager,
59
59
  HorizontalNumericColorLegend,
60
- } from "../legend/HorizontalColorLegends"
60
+ } from "../legend/HorizontalColorLegends.js"
61
61
  import {
62
62
  CategoricalBin,
63
63
  ColorScaleBin,
64
64
  NumericBin,
65
- } from "../color/ColorScaleBin"
66
- import { GRAPHER_DARK_TEXT } from "../color/ColorConstants"
67
- import { FocusArray } from "../focus/FocusArray"
65
+ } from "../color/ColorScaleBin.js"
66
+ import { GRAPHER_DARK_TEXT } from "../color/ColorConstants.js"
67
+ import { FocusArray } from "../focus/FocusArray.js"
68
68
  import {
69
69
  LegendInteractionState,
70
70
  LegendStyleConfig,
71
- } from "../legend/LegendInteractionState"
71
+ } from "../legend/LegendInteractionState.js"
72
72
 
73
73
  const SHARED_X_AXIS_MIN_FACET_COUNT = 12
74
74
 
@@ -1,7 +1,7 @@
1
- import { ChartSeries } from "../chart/ChartInterface"
2
- import { ChartManager } from "../chart/ChartManager"
3
- import { GrapherChartType } from "../../types/index.ts"
4
- import { Bounds } from "../../utils/index.ts"
1
+ import { ChartSeries } from "../chart/ChartInterface.js"
2
+ import { ChartManager } from "../chart/ChartManager.js"
3
+ import { GrapherChartType } from "../../types/index.js"
4
+ import { Bounds } from "../../utils/index.js"
5
5
 
6
6
  export interface FacetChartManager extends ChartManager {
7
7
  canSelectMultipleEntities?: boolean
@@ -1,4 +1,4 @@
1
- import { BASE_FONT_SIZE, GRAPHER_FONT_SCALE_10 } from "../core/GrapherConstants"
1
+ import { BASE_FONT_SIZE, GRAPHER_FONT_SCALE_10 } from "../core/GrapherConstants.js"
2
2
 
3
3
  // not sure if we want to do something more sophisticated
4
4
  export const getFontSize = (
@@ -8,59 +8,59 @@ import {
8
8
  makeIdForHumanConsumption,
9
9
  exposeInstanceOnWindow,
10
10
  SplitBoundsPadding,
11
- } from "../../utils/index.ts"
11
+ } from "../../utils/index.js"
12
12
  import { action, computed, makeObservable, observable } from "mobx"
13
13
  import {
14
14
  BASE_FONT_SIZE,
15
15
  DEFAULT_GRAPHER_BOUNDS,
16
16
  GRAPHER_FONT_SCALE_18,
17
- } from "../core/GrapherConstants"
17
+ } from "../core/GrapherConstants.js"
18
18
  import {
19
19
  ChartErrorInfo,
20
20
  GRAPHER_MAP_TYPE,
21
21
  GrapherInteractionEvent,
22
22
  MapRegionName,
23
23
  Time,
24
- } from "../../types/index.ts"
24
+ } from "../../types/index.js"
25
25
  import {
26
26
  calculateAspectRatio,
27
27
  getFacetGridPadding,
28
28
  getLabelPadding as getFacetLabelPadding,
29
- } from "./FacetChartUtils"
29
+ } from "./FacetChartUtils.js"
30
30
  import {
31
31
  FacetMapManager,
32
32
  MapFacetSeries,
33
33
  FacetMapProps,
34
34
  PlacedMapFacetSeries,
35
- } from "./FacetMapConstants"
36
- import { ChartsTable } from "../../core-table/index.ts"
35
+ } from "./FacetMapConstants.js"
36
+ import { ChartsTable } from "../../core-table/index.js"
37
37
  import {
38
38
  HorizontalCategoricalColorLegend,
39
39
  HorizontalColorLegendManager,
40
40
  HorizontalNumericColorLegend,
41
- } from "../legend/HorizontalColorLegends"
42
- import { CategoricalBin, ColorScaleBin } from "../color/ColorScaleBin"
43
- import { GRAPHER_DARK_TEXT, GRAY_30 } from "../color/ColorConstants"
41
+ } from "../legend/HorizontalColorLegends.js"
42
+ import { CategoricalBin, ColorScaleBin } from "../color/ColorScaleBin.js"
43
+ import { GRAPHER_DARK_TEXT, GRAY_30 } from "../color/ColorConstants.js"
44
44
  import {
45
45
  LegendInteractionState,
46
46
  LegendStyleConfig,
47
- } from "../legend/LegendInteractionState"
47
+ } from "../legend/LegendInteractionState.js"
48
48
  import {
49
49
  MAP_LEGEND_MAX_WIDTH_RATIO,
50
50
  MapChart,
51
51
  PADDING_BELOW_MAP_LEGEND,
52
52
  PADDING_BETWEEN_MAP_AND_LEGEND,
53
53
  PADDING_BETWEEN_MAP_LEGENDS,
54
- } from "../mapCharts/MapChart"
55
- import { ChartComponent, makeChartInstance } from "../chart/ChartTypeMap"
54
+ } from "../mapCharts/MapChart.js"
55
+ import { ChartComponent, makeChartInstance } from "../chart/ChartTypeMap.js"
56
56
  import {
57
57
  MAP_VIEWPORT_FACETED_WORLD,
58
58
  MAP_VIEWPORTS,
59
59
  MapChartManager,
60
60
  MapViewport,
61
- } from "../mapCharts/MapChartConstants"
62
- import { ChartState } from "../chart/ChartInterface.ts"
63
- import { MapConfig } from "../mapCharts/MapConfig"
61
+ } from "../mapCharts/MapChartConstants.js"
62
+ import { ChartState } from "../chart/ChartInterface.js"
63
+ import { MapConfig } from "../mapCharts/MapConfig.js"
64
64
 
65
65
  @observer
66
66
  export class FacetMap
@@ -1,7 +1,7 @@
1
- import { ChartSeries } from "../chart/ChartInterface"
2
- import { Bounds, GrapherAnalyticsContext } from "../../utils/index.ts"
3
- import { MapChartManager } from "../mapCharts/MapChartConstants"
4
- import { GrapherAnalytics } from "../core/GrapherAnalytics"
1
+ import { ChartSeries } from "../chart/ChartInterface.js"
2
+ import { Bounds, GrapherAnalyticsContext } from "../../utils/index.js"
3
+ import { MapChartManager } from "../mapCharts/MapChartConstants.js"
4
+ import { GrapherAnalytics } from "../core/GrapherAnalytics.js"
5
5
 
6
6
  export interface FacetMapManager extends MapChartManager {
7
7
  analytics?: GrapherAnalytics