canvasxpress 72.3.0 → 72.4.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 +25 -2
- package/src/canvasXpress.d.ts +25 -2
- package/src/canvasXpress.js +2 -2
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 (1787 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
|
|
@@ -1455,7 +1455,10 @@ export interface CXConfig {
|
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Custom legends : Array of objects [{ size : [], shape : [], shapeColor : [], line : [],
|
|
1457
1457
|
* lineColor : [], lineStart : [], lineEnd : [], text : [], x : number, y : number, title :
|
|
1458
|
-
* string }]
|
|
1458
|
+
* string, paddingX : number, paddingY : number }]. When legendInside is true, paddingX /
|
|
1459
|
+
* paddingY (default 0) inset the legend box from the x,y plotting panel edges so it stays
|
|
1460
|
+
* inside for any legendPosition; an explicit x / y pins the legend instead and ignores the
|
|
1461
|
+
* padding
|
|
1459
1462
|
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
1460
1463
|
* @default []
|
|
1461
1464
|
*/
|
|
@@ -3340,6 +3343,24 @@ export interface CXConfig {
|
|
|
3340
3343
|
* @default []
|
|
3341
3344
|
*/
|
|
3342
3345
|
heatmapCellMarkers?: unknown[] | boolean | string | number;
|
|
3346
|
+
/**
|
|
3347
|
+
* Array of per-cell text labels drawn centered on top of standard heatmap cells, like
|
|
3348
|
+
* Plotly's text matrix. Each entry is an object with a *variable* and *sample* name
|
|
3349
|
+
* identifying the cell plus a *text* string, with optional *color*. Example: [{variable:
|
|
3350
|
+
* "V1", sample: "S3", text: "0.87*"}] to show a correlation value with a significance
|
|
3351
|
+
* asterisk. Unlike showDataValues (which draws every raw cell value), this lets you supply
|
|
3352
|
+
* arbitrary strings so you can append markers such as "*" for p < 0.05 (issue #322)
|
|
3353
|
+
* @graphTypes Heatmap
|
|
3354
|
+
* @default []
|
|
3355
|
+
*/
|
|
3356
|
+
heatmapCellText?: unknown[] | boolean | string | number;
|
|
3357
|
+
/**
|
|
3358
|
+
* Color for the default color for heatmap cell text when an entry in heatmapCellText omits
|
|
3359
|
+
* its own color
|
|
3360
|
+
* @graphTypes Heatmap
|
|
3361
|
+
* @default "rgb(0,0,0)"
|
|
3362
|
+
*/
|
|
3363
|
+
heatmapCellTextColorColor?: string | boolean;
|
|
3343
3364
|
/**
|
|
3344
3365
|
* Flag to collapse cells in heatmaps of type circle or hexagon. If true cells are ploted
|
|
3345
3366
|
* without outline otherwise the outline is the foreground color
|
|
@@ -12021,6 +12042,8 @@ export type CXKeysHeatmapGraphs =
|
|
|
12021
12042
|
| "heatmapCellMarkerSize"
|
|
12022
12043
|
| "heatmapCellMarkerWidth"
|
|
12023
12044
|
| "heatmapCellMarkers"
|
|
12045
|
+
| "heatmapCellText"
|
|
12046
|
+
| "heatmapCellTextColorColor"
|
|
12024
12047
|
| "heatmapCollapse"
|
|
12025
12048
|
| "heatmapHighlightByRowCol"
|
|
12026
12049
|
| "heatmapHighlightByRowColIntersectionColor"
|
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 (1787 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
|
|
@@ -1464,7 +1464,10 @@ declare namespace CanvasXpress {
|
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Custom legends : Array of objects [{ size : [], shape : [], shapeColor : [], line : [],
|
|
1466
1466
|
* lineColor : [], lineStart : [], lineEnd : [], text : [], x : number, y : number, title :
|
|
1467
|
-
* string }]
|
|
1467
|
+
* string, paddingX : number, paddingY : number }]. When legendInside is true, paddingX /
|
|
1468
|
+
* paddingY (default 0) inset the legend box from the x,y plotting panel edges so it stays
|
|
1469
|
+
* inside for any legendPosition; an explicit x / y pins the legend instead and ignores the
|
|
1470
|
+
* padding
|
|
1468
1471
|
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
1469
1472
|
* @default []
|
|
1470
1473
|
*/
|
|
@@ -3349,6 +3352,24 @@ declare namespace CanvasXpress {
|
|
|
3349
3352
|
* @default []
|
|
3350
3353
|
*/
|
|
3351
3354
|
heatmapCellMarkers?: unknown[] | boolean | string | number;
|
|
3355
|
+
/**
|
|
3356
|
+
* Array of per-cell text labels drawn centered on top of standard heatmap cells, like
|
|
3357
|
+
* Plotly's text matrix. Each entry is an object with a *variable* and *sample* name
|
|
3358
|
+
* identifying the cell plus a *text* string, with optional *color*. Example: [{variable:
|
|
3359
|
+
* "V1", sample: "S3", text: "0.87*"}] to show a correlation value with a significance
|
|
3360
|
+
* asterisk. Unlike showDataValues (which draws every raw cell value), this lets you supply
|
|
3361
|
+
* arbitrary strings so you can append markers such as "*" for p < 0.05 (issue #322)
|
|
3362
|
+
* @graphTypes Heatmap
|
|
3363
|
+
* @default []
|
|
3364
|
+
*/
|
|
3365
|
+
heatmapCellText?: unknown[] | boolean | string | number;
|
|
3366
|
+
/**
|
|
3367
|
+
* Color for the default color for heatmap cell text when an entry in heatmapCellText omits
|
|
3368
|
+
* its own color
|
|
3369
|
+
* @graphTypes Heatmap
|
|
3370
|
+
* @default "rgb(0,0,0)"
|
|
3371
|
+
*/
|
|
3372
|
+
heatmapCellTextColorColor?: string | boolean;
|
|
3352
3373
|
/**
|
|
3353
3374
|
* Flag to collapse cells in heatmaps of type circle or hexagon. If true cells are ploted
|
|
3354
3375
|
* without outline otherwise the outline is the foreground color
|
|
@@ -12030,6 +12051,8 @@ declare namespace CanvasXpress {
|
|
|
12030
12051
|
| "heatmapCellMarkerSize"
|
|
12031
12052
|
| "heatmapCellMarkerWidth"
|
|
12032
12053
|
| "heatmapCellMarkers"
|
|
12054
|
+
| "heatmapCellText"
|
|
12055
|
+
| "heatmapCellTextColorColor"
|
|
12033
12056
|
| "heatmapCollapse"
|
|
12034
12057
|
| "heatmapHighlightByRowCol"
|
|
12035
12058
|
| "heatmapHighlightByRowColIntersectionColor"
|