canvasxpress 72.3.0 → 72.5.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 CHANGED
@@ -20,7 +20,7 @@
20
20
  "./package.json": "./package.json"
21
21
  },
22
22
  "title": "CanvasXpress",
23
- "version": "72.3.0",
23
+ "version": "72.5.0",
24
24
  "license": "SEE LICENSE IN LICENSE",
25
25
  "files": [
26
26
  "src",
@@ -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 (1785 keys). String enums become open literal
148
+ * config schema (1789 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
@@ -1157,6 +1157,14 @@ export interface CXConfig {
1157
1157
  * @default false
1158
1158
  */
1159
1159
  colorLabelBy?: string | boolean;
1160
+ /**
1161
+ * Class names for a stepped colour legend (see colorLegendSteps): one label per colour
1162
+ * class, lowest class first, drawn beside its swatch in place of the numeric class edges,
1163
+ * for example ["a", "b", "c", "d", "e"]. Ignored unless the legend is stepped and the array
1164
+ * has exactly one entry per class
1165
+ * @default []
1166
+ */
1167
+ colorLegendLabels?: unknown[] | boolean | string | number;
1160
1168
  /**
1161
1169
  * Numeric colour legend for binned colouring: equal draws one equal-width swatch per class
1162
1170
  * with every class edge labelled (stepped legend); proportional sizes swatches by their
@@ -1455,7 +1463,10 @@ export interface CXConfig {
1455
1463
  /**
1456
1464
  * Custom legends : Array of objects [{ size : [], shape : [], shapeColor : [], line : [],
1457
1465
  * lineColor : [], lineStart : [], lineEnd : [], text : [], x : number, y : number, title :
1458
- * string }]
1466
+ * string, paddingX : number, paddingY : number }]. When legendInside is true, paddingX /
1467
+ * paddingY (default 0) inset the legend box from the x,y plotting panel edges so it stays
1468
+ * inside for any legendPosition; an explicit x / y pins the legend instead and ignores the
1469
+ * padding
1459
1470
  * @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
1460
1471
  * @default []
1461
1472
  */
@@ -3340,6 +3351,32 @@ export interface CXConfig {
3340
3351
  * @default []
3341
3352
  */
3342
3353
  heatmapCellMarkers?: unknown[] | boolean | string | number;
3354
+ /**
3355
+ * Pixels of empty space (gap) left around each heatmap cell so it renders as a separate
3356
+ * padded tile instead of a contiguous block; 0 (default) keeps cells edge-to-edge. Combine
3357
+ * with colorSpectrumBinned for a discrete-colour tiled heatmap, or use heatmapType "tiled"
3358
+ * @graphTypes Heatmap
3359
+ * @default 0
3360
+ */
3361
+ heatmapCellSpace?: number | boolean;
3362
+ /**
3363
+ * Array of per-cell text labels drawn centered on top of standard heatmap cells, like
3364
+ * Plotly's text matrix. Each entry is an object with a *variable* and *sample* name
3365
+ * identifying the cell plus a *text* string, with optional *color*. Example: [{variable:
3366
+ * "V1", sample: "S3", text: "0.87*"}] to show a correlation value with a significance
3367
+ * asterisk. Unlike showDataValues (which draws every raw cell value), this lets you supply
3368
+ * arbitrary strings so you can append markers such as "*" for p < 0.05 (issue #322)
3369
+ * @graphTypes Heatmap
3370
+ * @default []
3371
+ */
3372
+ heatmapCellText?: unknown[] | boolean | string | number;
3373
+ /**
3374
+ * Color for the default color for heatmap cell text when an entry in heatmapCellText omits
3375
+ * its own color
3376
+ * @graphTypes Heatmap
3377
+ * @default "rgb(0,0,0)"
3378
+ */
3379
+ heatmapCellTextColorColor?: string | boolean;
3343
3380
  /**
3344
3381
  * Flag to collapse cells in heatmaps of type circle or hexagon. If true cells are ploted
3345
3382
  * without outline otherwise the outline is the foreground color
@@ -3405,11 +3442,12 @@ export interface CXConfig {
3405
3442
  heatmapIndicatorWidth?: number | boolean;
3406
3443
  /**
3407
3444
  * Type of Heatmap used to overlay a layer on top of an image. Special for spatial
3408
- * transcriptomics and UpSet plots
3445
+ * transcriptomics and UpSet plots. "tiled" is a preset for a discrete-colour, padded-cell
3446
+ * heatmap (binned colours + heatmapCellSpace, no cell box)
3409
3447
  * @graphTypes Heatmap
3410
3448
  * @default "normal"
3411
3449
  */
3412
- heatmapType?: "normal" | "circle" | "hexagon" | "upset" | "correlation" | "split" | false | (string & {});
3450
+ heatmapType?: "normal" | "circle" | "hexagon" | "upset" | "correlation" | "split" | "tiled" | false | (string & {});
3413
3451
  /**
3414
3452
  * Hidden Map features
3415
3453
  * @graphTypes Map
@@ -11352,6 +11390,7 @@ export type CXKeysClustreePlots =
11352
11390
  /** Config keys in the "Colors" category. */
11353
11391
  export type CXKeysColors =
11354
11392
  | "blindnessType"
11393
+ | "colorLegendLabels"
11355
11394
  | "colorLegendSteps"
11356
11395
  | "colorScheme"
11357
11396
  | "colorSpectrum"
@@ -12021,6 +12060,9 @@ export type CXKeysHeatmapGraphs =
12021
12060
  | "heatmapCellMarkerSize"
12022
12061
  | "heatmapCellMarkerWidth"
12023
12062
  | "heatmapCellMarkers"
12063
+ | "heatmapCellSpace"
12064
+ | "heatmapCellText"
12065
+ | "heatmapCellTextColorColor"
12024
12066
  | "heatmapCollapse"
12025
12067
  | "heatmapHighlightByRowCol"
12026
12068
  | "heatmapHighlightByRowColIntersectionColor"
@@ -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 (1785 keys). String enums become open literal
157
+ * config schema (1789 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
@@ -1166,6 +1166,14 @@ declare namespace CanvasXpress {
1166
1166
  * @default false
1167
1167
  */
1168
1168
  colorLabelBy?: string | boolean;
1169
+ /**
1170
+ * Class names for a stepped colour legend (see colorLegendSteps): one label per colour
1171
+ * class, lowest class first, drawn beside its swatch in place of the numeric class edges,
1172
+ * for example ["a", "b", "c", "d", "e"]. Ignored unless the legend is stepped and the array
1173
+ * has exactly one entry per class
1174
+ * @default []
1175
+ */
1176
+ colorLegendLabels?: unknown[] | boolean | string | number;
1169
1177
  /**
1170
1178
  * Numeric colour legend for binned colouring: equal draws one equal-width swatch per class
1171
1179
  * with every class edge labelled (stepped legend); proportional sizes swatches by their
@@ -1464,7 +1472,10 @@ declare namespace CanvasXpress {
1464
1472
  /**
1465
1473
  * Custom legends : Array of objects [{ size : [], shape : [], shapeColor : [], line : [],
1466
1474
  * lineColor : [], lineStart : [], lineEnd : [], text : [], x : number, y : number, title :
1467
- * string }]
1475
+ * string, paddingX : number, paddingY : number }]. When legendInside is true, paddingX /
1476
+ * paddingY (default 0) inset the legend box from the x,y plotting panel edges so it stays
1477
+ * inside for any legendPosition; an explicit x / y pins the legend instead and ignores the
1478
+ * padding
1468
1479
  * @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
1469
1480
  * @default []
1470
1481
  */
@@ -3349,6 +3360,32 @@ declare namespace CanvasXpress {
3349
3360
  * @default []
3350
3361
  */
3351
3362
  heatmapCellMarkers?: unknown[] | boolean | string | number;
3363
+ /**
3364
+ * Pixels of empty space (gap) left around each heatmap cell so it renders as a separate
3365
+ * padded tile instead of a contiguous block; 0 (default) keeps cells edge-to-edge. Combine
3366
+ * with colorSpectrumBinned for a discrete-colour tiled heatmap, or use heatmapType "tiled"
3367
+ * @graphTypes Heatmap
3368
+ * @default 0
3369
+ */
3370
+ heatmapCellSpace?: number | boolean;
3371
+ /**
3372
+ * Array of per-cell text labels drawn centered on top of standard heatmap cells, like
3373
+ * Plotly's text matrix. Each entry is an object with a *variable* and *sample* name
3374
+ * identifying the cell plus a *text* string, with optional *color*. Example: [{variable:
3375
+ * "V1", sample: "S3", text: "0.87*"}] to show a correlation value with a significance
3376
+ * asterisk. Unlike showDataValues (which draws every raw cell value), this lets you supply
3377
+ * arbitrary strings so you can append markers such as "*" for p < 0.05 (issue #322)
3378
+ * @graphTypes Heatmap
3379
+ * @default []
3380
+ */
3381
+ heatmapCellText?: unknown[] | boolean | string | number;
3382
+ /**
3383
+ * Color for the default color for heatmap cell text when an entry in heatmapCellText omits
3384
+ * its own color
3385
+ * @graphTypes Heatmap
3386
+ * @default "rgb(0,0,0)"
3387
+ */
3388
+ heatmapCellTextColorColor?: string | boolean;
3352
3389
  /**
3353
3390
  * Flag to collapse cells in heatmaps of type circle or hexagon. If true cells are ploted
3354
3391
  * without outline otherwise the outline is the foreground color
@@ -3414,11 +3451,12 @@ declare namespace CanvasXpress {
3414
3451
  heatmapIndicatorWidth?: number | boolean;
3415
3452
  /**
3416
3453
  * Type of Heatmap used to overlay a layer on top of an image. Special for spatial
3417
- * transcriptomics and UpSet plots
3454
+ * transcriptomics and UpSet plots. "tiled" is a preset for a discrete-colour, padded-cell
3455
+ * heatmap (binned colours + heatmapCellSpace, no cell box)
3418
3456
  * @graphTypes Heatmap
3419
3457
  * @default "normal"
3420
3458
  */
3421
- heatmapType?: "normal" | "circle" | "hexagon" | "upset" | "correlation" | "split" | false | (string & {});
3459
+ heatmapType?: "normal" | "circle" | "hexagon" | "upset" | "correlation" | "split" | "tiled" | false | (string & {});
3422
3460
  /**
3423
3461
  * Hidden Map features
3424
3462
  * @graphTypes Map
@@ -11361,6 +11399,7 @@ declare namespace CanvasXpress {
11361
11399
  /** Config keys in the "Colors" category. */
11362
11400
  export type CXKeysColors =
11363
11401
  | "blindnessType"
11402
+ | "colorLegendLabels"
11364
11403
  | "colorLegendSteps"
11365
11404
  | "colorScheme"
11366
11405
  | "colorSpectrum"
@@ -12030,6 +12069,9 @@ declare namespace CanvasXpress {
12030
12069
  | "heatmapCellMarkerSize"
12031
12070
  | "heatmapCellMarkerWidth"
12032
12071
  | "heatmapCellMarkers"
12072
+ | "heatmapCellSpace"
12073
+ | "heatmapCellText"
12074
+ | "heatmapCellTextColorColor"
12033
12075
  | "heatmapCollapse"
12034
12076
  | "heatmapHighlightByRowCol"
12035
12077
  | "heatmapHighlightByRowColIntersectionColor"