canvasxpress 73.5.0 → 73.6.0
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/package.json +1 -1
- package/src/canvasXpress.d.mts +40 -2
- package/src/canvasXpress.d.ts +40 -2
- package/src/canvasXpress.js +3 -3
package/package.json
CHANGED
package/src/canvasXpress.d.mts
CHANGED
|
@@ -145,7 +145,7 @@ export type CXGraphType =
|
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Full chart configuration — one property per parameter in the CanvasXpress
|
|
148
|
-
* config schema (
|
|
148
|
+
* config schema (1798 keys). String enums become open literal
|
|
149
149
|
* unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
|
|
150
150
|
* lists the graph types it applies to (absent = all). The index signature keeps
|
|
151
151
|
* obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
|
|
@@ -4657,6 +4657,21 @@ export interface CXConfig {
|
|
|
4657
4657
|
* @default "rgba(255,0,0,0.6)"
|
|
4658
4658
|
*/
|
|
4659
4659
|
mapBubbleColor?: string | boolean;
|
|
4660
|
+
/**
|
|
4661
|
+
* Scaling for the non-contiguous cartogram (mapType cartogram). area: each region is scaled
|
|
4662
|
+
* relative to its own area. olson: the densest region keeps its size and every other shrinks
|
|
4663
|
+
* proportionally (classic Olson)
|
|
4664
|
+
* @graphTypes Map
|
|
4665
|
+
* @default "area"
|
|
4666
|
+
*/
|
|
4667
|
+
mapCartogramScale?: "area" | "olson" | false | (string & {});
|
|
4668
|
+
/**
|
|
4669
|
+
* For the non-contiguous cartogram (mapType cartogram), draw each region full-size
|
|
4670
|
+
* silhouette in grey behind the scaled shape so the two can be compared
|
|
4671
|
+
* @graphTypes Map
|
|
4672
|
+
* @default true
|
|
4673
|
+
*/
|
|
4674
|
+
mapCartogramSilhouette?: boolean;
|
|
4660
4675
|
/**
|
|
4661
4676
|
* Map Latitude Of Origin in degrees. (Applicable to Albers projection only). Default adjusts
|
|
4662
4677
|
* to USA maps
|
|
@@ -4765,6 +4780,16 @@ export interface CXConfig {
|
|
|
4765
4780
|
* @default 45.5
|
|
4766
4781
|
*/
|
|
4767
4782
|
mapStandardParallel2?: number | boolean;
|
|
4783
|
+
/**
|
|
4784
|
+
* Map distortion. region: a normal map (default). The other three are cartograms driven by
|
|
4785
|
+
* sizeBy: dorling draws one non-overlapping circle per region sized by value; cartogram
|
|
4786
|
+
* keeps each region shape and scales it about its own centre (non-contiguous); contiguous
|
|
4787
|
+
* deforms the borders so regions stay joined while their areas match the value (Dougenik
|
|
4788
|
+
* rubber-sheet)
|
|
4789
|
+
* @graphTypes Map
|
|
4790
|
+
* @default "region"
|
|
4791
|
+
*/
|
|
4792
|
+
mapType?: "region" | "dorling" | "cartogram" | "contiguous" | false | (string & {});
|
|
4768
4793
|
/**
|
|
4769
4794
|
* Array of properties in the map topoJSON features to use as zip code ids
|
|
4770
4795
|
* @graphTypes Map
|
|
@@ -7972,6 +7997,15 @@ export interface CXConfig {
|
|
|
7972
7997
|
* @default false
|
|
7973
7998
|
*/
|
|
7974
7999
|
sizeLabelBy?: string | boolean;
|
|
8000
|
+
/**
|
|
8001
|
+
* Flag to draw the size legend as nested (concentric) bubbles sharing a common bottom edge,
|
|
8002
|
+
* with a dashed leader line from each circle to its value label, instead of a column of
|
|
8003
|
+
* separate size keys. Applies to proportional-circle size legends (e.g. a sizeBy bubble map
|
|
8004
|
+
* or Dorling cartogram)
|
|
8005
|
+
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
8006
|
+
* @default false
|
|
8007
|
+
*/
|
|
8008
|
+
sizeLegendNested?: boolean;
|
|
7975
8009
|
/**
|
|
7976
8010
|
* Title for the size legend
|
|
7977
8011
|
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
@@ -12253,7 +12287,8 @@ export type CXKeysLegends =
|
|
|
12253
12287
|
| "showSizeLabelLegend"
|
|
12254
12288
|
| "showSizeLegend"
|
|
12255
12289
|
| "showSizeNodeLegend"
|
|
12256
|
-
| "showVariableLegend"
|
|
12290
|
+
| "showVariableLegend"
|
|
12291
|
+
| "sizeLegendNested";
|
|
12257
12292
|
/** Config keys in the "Line Graphs" category. */
|
|
12258
12293
|
export type CXKeysLineGraphs =
|
|
12259
12294
|
| "coordinateLineColor"
|
|
@@ -12310,6 +12345,8 @@ export type CXKeysManhattanPlots =
|
|
|
12310
12345
|
export type CXKeysMaps =
|
|
12311
12346
|
| "hiddenMapFeatures"
|
|
12312
12347
|
| "mapBubbleColor"
|
|
12348
|
+
| "mapCartogramScale"
|
|
12349
|
+
| "mapCartogramSilhouette"
|
|
12313
12350
|
| "mapColor"
|
|
12314
12351
|
| "mapConfig"
|
|
12315
12352
|
| "mapConfigFeatures"
|
|
@@ -12321,6 +12358,7 @@ export type CXKeysMaps =
|
|
|
12321
12358
|
| "mapOutlineColor"
|
|
12322
12359
|
| "mapProjection"
|
|
12323
12360
|
| "mapSmps"
|
|
12361
|
+
| "mapType"
|
|
12324
12362
|
| "mapZipCodeIds"
|
|
12325
12363
|
| "showMapLabels"
|
|
12326
12364
|
| "topoJSON"
|
package/src/canvasXpress.d.ts
CHANGED
|
@@ -154,7 +154,7 @@ declare namespace CanvasXpress {
|
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* Full chart configuration — one property per parameter in the CanvasXpress
|
|
157
|
-
* config schema (
|
|
157
|
+
* config schema (1798 keys). String enums become open literal
|
|
158
158
|
* unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
|
|
159
159
|
* lists the graph types it applies to (absent = all). The index signature keeps
|
|
160
160
|
* obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
|
|
@@ -4666,6 +4666,21 @@ declare namespace CanvasXpress {
|
|
|
4666
4666
|
* @default "rgba(255,0,0,0.6)"
|
|
4667
4667
|
*/
|
|
4668
4668
|
mapBubbleColor?: string | boolean;
|
|
4669
|
+
/**
|
|
4670
|
+
* Scaling for the non-contiguous cartogram (mapType cartogram). area: each region is scaled
|
|
4671
|
+
* relative to its own area. olson: the densest region keeps its size and every other shrinks
|
|
4672
|
+
* proportionally (classic Olson)
|
|
4673
|
+
* @graphTypes Map
|
|
4674
|
+
* @default "area"
|
|
4675
|
+
*/
|
|
4676
|
+
mapCartogramScale?: "area" | "olson" | false | (string & {});
|
|
4677
|
+
/**
|
|
4678
|
+
* For the non-contiguous cartogram (mapType cartogram), draw each region full-size
|
|
4679
|
+
* silhouette in grey behind the scaled shape so the two can be compared
|
|
4680
|
+
* @graphTypes Map
|
|
4681
|
+
* @default true
|
|
4682
|
+
*/
|
|
4683
|
+
mapCartogramSilhouette?: boolean;
|
|
4669
4684
|
/**
|
|
4670
4685
|
* Map Latitude Of Origin in degrees. (Applicable to Albers projection only). Default adjusts
|
|
4671
4686
|
* to USA maps
|
|
@@ -4774,6 +4789,16 @@ declare namespace CanvasXpress {
|
|
|
4774
4789
|
* @default 45.5
|
|
4775
4790
|
*/
|
|
4776
4791
|
mapStandardParallel2?: number | boolean;
|
|
4792
|
+
/**
|
|
4793
|
+
* Map distortion. region: a normal map (default). The other three are cartograms driven by
|
|
4794
|
+
* sizeBy: dorling draws one non-overlapping circle per region sized by value; cartogram
|
|
4795
|
+
* keeps each region shape and scales it about its own centre (non-contiguous); contiguous
|
|
4796
|
+
* deforms the borders so regions stay joined while their areas match the value (Dougenik
|
|
4797
|
+
* rubber-sheet)
|
|
4798
|
+
* @graphTypes Map
|
|
4799
|
+
* @default "region"
|
|
4800
|
+
*/
|
|
4801
|
+
mapType?: "region" | "dorling" | "cartogram" | "contiguous" | false | (string & {});
|
|
4777
4802
|
/**
|
|
4778
4803
|
* Array of properties in the map topoJSON features to use as zip code ids
|
|
4779
4804
|
* @graphTypes Map
|
|
@@ -7981,6 +8006,15 @@ declare namespace CanvasXpress {
|
|
|
7981
8006
|
* @default false
|
|
7982
8007
|
*/
|
|
7983
8008
|
sizeLabelBy?: string | boolean;
|
|
8009
|
+
/**
|
|
8010
|
+
* Flag to draw the size legend as nested (concentric) bubbles sharing a common bottom edge,
|
|
8011
|
+
* with a dashed leader line from each circle to its value label, instead of a column of
|
|
8012
|
+
* separate size keys. Applies to proportional-circle size legends (e.g. a sizeBy bubble map
|
|
8013
|
+
* or Dorling cartogram)
|
|
8014
|
+
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
8015
|
+
* @default false
|
|
8016
|
+
*/
|
|
8017
|
+
sizeLegendNested?: boolean;
|
|
7984
8018
|
/**
|
|
7985
8019
|
* Title for the size legend
|
|
7986
8020
|
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
@@ -12262,7 +12296,8 @@ declare namespace CanvasXpress {
|
|
|
12262
12296
|
| "showSizeLabelLegend"
|
|
12263
12297
|
| "showSizeLegend"
|
|
12264
12298
|
| "showSizeNodeLegend"
|
|
12265
|
-
| "showVariableLegend"
|
|
12299
|
+
| "showVariableLegend"
|
|
12300
|
+
| "sizeLegendNested";
|
|
12266
12301
|
/** Config keys in the "Line Graphs" category. */
|
|
12267
12302
|
export type CXKeysLineGraphs =
|
|
12268
12303
|
| "coordinateLineColor"
|
|
@@ -12319,6 +12354,8 @@ declare namespace CanvasXpress {
|
|
|
12319
12354
|
export type CXKeysMaps =
|
|
12320
12355
|
| "hiddenMapFeatures"
|
|
12321
12356
|
| "mapBubbleColor"
|
|
12357
|
+
| "mapCartogramScale"
|
|
12358
|
+
| "mapCartogramSilhouette"
|
|
12322
12359
|
| "mapColor"
|
|
12323
12360
|
| "mapConfig"
|
|
12324
12361
|
| "mapConfigFeatures"
|
|
@@ -12330,6 +12367,7 @@ declare namespace CanvasXpress {
|
|
|
12330
12367
|
| "mapOutlineColor"
|
|
12331
12368
|
| "mapProjection"
|
|
12332
12369
|
| "mapSmps"
|
|
12370
|
+
| "mapType"
|
|
12333
12371
|
| "mapZipCodeIds"
|
|
12334
12372
|
| "showMapLabels"
|
|
12335
12373
|
| "topoJSON"
|