cxplot 0.1.39 → 0.1.41

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cxplot",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "description": "cxplot \u2014 validate, render, hash and export CanvasXpress figure specs with the same engine the browser runs",
5
5
  "bin": {
6
6
  "cxplot": "bin/cxplot.js"
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "ajv": "^8.17.1",
24
24
  "ajv-formats": "^3.0.1",
25
- "canvasxpress": "72.3.0",
25
+ "canvasxpress": "72.5.0",
26
26
  "playwright": "1.59.1"
27
27
  },
28
28
  "keywords": [
@@ -3,7 +3,7 @@
3
3
  "$id": "https://canvasxpress.org/schema/canvasxpress-config-latest.schema.json",
4
4
  "title": "CanvasXpress configuration",
5
5
  "description": "Machine-generated schema for the CanvasXpress config object. Generated from CanvasXpress.doc (the engine's internal parameter registry) — do not hand-edit; re-run tools/schema/generate-config-schema.js.",
6
- "x-cx-version": "72.3",
6
+ "x-cx-version": "72.5",
7
7
  "type": "object",
8
8
  "additionalProperties": true,
9
9
  "properties": {
@@ -3374,6 +3374,20 @@
3374
3374
  "WordCloud"
3375
3375
  ]
3376
3376
  },
3377
+ "colorLegendLabels": {
3378
+ "type": [
3379
+ "array",
3380
+ "boolean",
3381
+ "string",
3382
+ "number"
3383
+ ],
3384
+ "description": "Class names for a stepped colour legend (see colorLegendSteps): one label per colour class, lowest class first, drawn beside its swatch in place of the numeric class edges, for example [\"a\", \"b\", \"c\", \"d\", \"e\"]. Ignored unless the legend is stepped and the array has exactly one entry per class",
3385
+ "default": [],
3386
+ "x-cx-false-disables": true,
3387
+ "x-cx-scalar-autowrap": true,
3388
+ "x-cx-category": "Colors",
3389
+ "x-cx-nl": "Set the color legend labels to {_array_}"
3390
+ },
3377
3391
  "colorLegendSteps": {
3378
3392
  "type": [
3379
3393
  "string",
@@ -4952,7 +4966,7 @@
4952
4966
  "string",
4953
4967
  "number"
4954
4968
  ],
4955
- "description": "Custom legends : Array of objects [{ size : [], shape : [], shapeColor : [], line : [], lineColor : [], lineStart : [], lineEnd : [], text : [], x : number, y : number, title : string }]",
4969
+ "description": "Custom legends : Array of objects [{ size : [], shape : [], shapeColor : [], line : [], lineColor : [], lineStart : [], lineEnd : [], text : [], x : number, y : number, title : string, paddingX : number, paddingY : number }]. When legendInside is true, paddingX / paddingY (default 0) inset the legend box from the x,y plotting panel edges so it stays inside for any legendPosition; an explicit x / y pins the legend instead and ignores the padding",
4956
4970
  "default": [],
4957
4971
  "x-cx-false-disables": true,
4958
4972
  "x-cx-scalar-autowrap": true,
@@ -12150,6 +12164,52 @@
12150
12164
  "Heatmap"
12151
12165
  ]
12152
12166
  },
12167
+ "heatmapCellSpace": {
12168
+ "type": [
12169
+ "number",
12170
+ "boolean"
12171
+ ],
12172
+ "description": "Pixels of empty space (gap) left around each heatmap cell so it renders as a separate padded tile instead of a contiguous block; 0 (default) keeps cells edge-to-edge. Combine with colorSpectrumBinned for a discrete-colour tiled heatmap, or use heatmapType \"tiled\"",
12173
+ "default": 0,
12174
+ "x-cx-false-disables": true,
12175
+ "x-cx-category": "Heatmap Graphs",
12176
+ "x-cx-nl": "Set the heatmap cell space to {_float_}",
12177
+ "x-cx-graphtypes": [
12178
+ "Heatmap"
12179
+ ]
12180
+ },
12181
+ "heatmapCellText": {
12182
+ "type": [
12183
+ "array",
12184
+ "boolean",
12185
+ "string",
12186
+ "number"
12187
+ ],
12188
+ "description": "Array of per-cell text labels drawn centered on top of standard heatmap cells, like Plotly's text matrix. Each entry is an object with a *variable* and *sample* name identifying the cell plus a *text* string, with optional *color*. Example: [{variable: \"V1\", sample: \"S3\", text: \"0.87*\"}] to show a correlation value with a significance asterisk. Unlike showDataValues (which draws every raw cell value), this lets you supply arbitrary strings so you can append markers such as \"*\" for p < 0.05 (issue #322)",
12189
+ "default": [],
12190
+ "x-cx-false-disables": true,
12191
+ "x-cx-scalar-autowrap": true,
12192
+ "x-cx-category": "Heatmap Graphs",
12193
+ "x-cx-nl": "Set the heatmap cell text to {_array_}",
12194
+ "x-cx-graphtypes": [
12195
+ "Heatmap"
12196
+ ]
12197
+ },
12198
+ "heatmapCellTextColorColor": {
12199
+ "type": [
12200
+ "string",
12201
+ "boolean"
12202
+ ],
12203
+ "format": "cx-color",
12204
+ "description": "Color for the default color for heatmap cell text when an entry in heatmapCellText omits its own color",
12205
+ "default": "rgb(0,0,0)",
12206
+ "x-cx-false-disables": true,
12207
+ "x-cx-category": "Heatmap Graphs",
12208
+ "x-cx-nl": "Color the heatmap cell text color {_color_}",
12209
+ "x-cx-graphtypes": [
12210
+ "Heatmap"
12211
+ ]
12212
+ },
12153
12213
  "heatmapCollapse": {
12154
12214
  "type": "boolean",
12155
12215
  "description": "Flag to collapse cells in heatmaps of type circle or hexagon. If true cells are ploted without outline otherwise the outline is the foreground color",
@@ -12288,7 +12348,7 @@
12288
12348
  "string",
12289
12349
  "boolean"
12290
12350
  ],
12291
- "description": "Type of Heatmap used to overlay a layer on top of an image. Special for spatial transcriptomics and UpSet plots",
12351
+ "description": "Type of Heatmap used to overlay a layer on top of an image. Special for spatial transcriptomics and UpSet plots. \"tiled\" is a preset for a discrete-colour, padded-cell heatmap (binned colours + heatmapCellSpace, no cell box)",
12292
12352
  "default": "normal",
12293
12353
  "enum": [
12294
12354
  "normal",
@@ -12297,6 +12357,7 @@
12297
12357
  "upset",
12298
12358
  "correlation",
12299
12359
  "split",
12360
+ "tiled",
12300
12361
  false
12301
12362
  ],
12302
12363
  "x-cx-false-disables": true,