canvasxpress 69.4.0 → 69.6.1

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": "69.4.0",
23
+ "version": "69.6.1",
24
24
  "license": "SEE LICENSE IN LICENSE",
25
25
  "files": [
26
26
  "src",
@@ -4289,6 +4289,18 @@ svg.cX-DataFilter-Toolbar-ImageNB {
4289
4289
  cursor: pointer;
4290
4290
  }
4291
4291
 
4292
+ .cX-DataFilter-Summary {
4293
+ width: 100%;
4294
+ padding: 2px 8px 4px 8px;
4295
+ line-height: 1.2;
4296
+ white-space: nowrap;
4297
+ overflow: hidden;
4298
+ text-overflow: ellipsis;
4299
+ opacity: 0.7;
4300
+ color: var(--cx-datafilter-text-color, var(--cx-font-color));
4301
+ font-size: var(--cx-datafilter-font-size, var(--cx-font-size));
4302
+ }
4303
+
4292
4304
 
4293
4305
  .cX-DataFilter-Content {
4294
4306
  box-sizing: border-box;
@@ -44,9 +44,10 @@ export interface CXEvents {
44
44
  export type CXAfterRender = Array<[string, ...unknown[]]>;
45
45
 
46
46
  /**
47
- * Every accepted `graphType` (70 values, aliases included —
48
- * e.g. "Volcano" renders as "Scatter2D"). This union is CLOSED so a misspelled
49
- * graph type fails to type-check.
47
+ * Every accepted `graphType` (70 values, aliases and internal
48
+ * render targets included — e.g. "Volcano" renders as "Scatter2D"), so this count
49
+ * exceeds the ~40+ distinct user-facing chart types quoted on the website. This
50
+ * union is CLOSED so a misspelled graph type fails to type-check.
50
51
  */
51
52
  export type CXGraphType =
52
53
  | "Alluvial"
@@ -122,7 +123,7 @@ export type CXGraphType =
122
123
 
123
124
  /**
124
125
  * Full chart configuration — one property per parameter in the CanvasXpress
125
- * config schema (1691 keys). String enums become open literal
126
+ * config schema (1692 keys). String enums become open literal
126
127
  * unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
127
128
  * lists the graph types it applies to (absent = all). The index signature keeps
128
129
  * obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
@@ -1447,6 +1448,18 @@ export interface CXConfig {
1447
1448
  * @default 1
1448
1449
  */
1449
1450
  dataPointSizeScaleFactor?: number | boolean;
1451
+ /**
1452
+ * Declarative, serializable data selection layer authored on top of the DataFilters engine
1453
+ * (an authoring sugar that de-sugars into filterSmpBy / filterVarBy / filterDataBy — not a
1454
+ * second filter engine). A single object, or an ARRAY of named { name, active, ... } blocks
1455
+ * (the active/first is applied; switch at runtime with applyNamedDataSelection). A block has
1456
+ * keys samples / variables / values; each is { any: [...] } (OR) or { all: [...] } (AND),
1457
+ * and a leaf is { annotation, op, value } where op uses friendly vocab (min, max, exact,
1458
+ * like, not like, between, different). Example: { samples: { all: [ { annotation:
1459
+ * "Treatment", op: "exact", value: ["Control"] } ] } }
1460
+ * @default false
1461
+ */
1462
+ dataSelection?: Record<string, unknown> | unknown[] | boolean | string | number;
1450
1463
  /**
1451
1464
  * Color for the the brand of the data table. Used wherever a non-neutral color is required.
1452
1465
  * Selections, focus outlines and checkboxes use the accent color by default
@@ -4864,7 +4877,7 @@ export interface CXConfig {
4864
4877
  */
4865
4878
  nodeBaseline?: "top" | "middle" | "bottom" | false | (string & {});
4866
4879
  /**
4867
- * Color for the nodes
4880
+ * Color for the text in node
4868
4881
  * @graphTypes Network
4869
4882
  * @default "rgb(245,245,245)"
4870
4883
  */
@@ -7275,7 +7288,7 @@ export interface CXConfig {
7275
7288
  */
7276
7289
  showRegressionFullRange?: boolean;
7277
7290
  /**
7278
- * Flag to show/hide the legend sample. Not implemented!!!!!
7291
+ * Flag to show/hide the legend sample
7279
7292
  * @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
7280
7293
  * @default true
7281
7294
  */
@@ -10722,6 +10735,7 @@ export type CXKeysDataFilters =
10722
10735
  | "dataFilterTextColor"
10723
10736
  | "dataFilterToolbarBackgroundColor"
10724
10737
  | "dataFilterWidth"
10738
+ | "dataSelection"
10725
10739
  | "filterData"
10726
10740
  | "filterDataBy"
10727
10741
  | "filterEdgeBy"
@@ -53,9 +53,10 @@ declare namespace CanvasXpress {
53
53
  export type CXAfterRender = Array<[string, ...unknown[]]>;
54
54
 
55
55
  /**
56
- * Every accepted `graphType` (70 values, aliases included —
57
- * e.g. "Volcano" renders as "Scatter2D"). This union is CLOSED so a misspelled
58
- * graph type fails to type-check.
56
+ * Every accepted `graphType` (70 values, aliases and internal
57
+ * render targets included — e.g. "Volcano" renders as "Scatter2D"), so this count
58
+ * exceeds the ~40+ distinct user-facing chart types quoted on the website. This
59
+ * union is CLOSED so a misspelled graph type fails to type-check.
59
60
  */
60
61
  export type CXGraphType =
61
62
  | "Alluvial"
@@ -131,7 +132,7 @@ declare namespace CanvasXpress {
131
132
 
132
133
  /**
133
134
  * Full chart configuration — one property per parameter in the CanvasXpress
134
- * config schema (1691 keys). String enums become open literal
135
+ * config schema (1692 keys). String enums become open literal
135
136
  * unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
136
137
  * lists the graph types it applies to (absent = all). The index signature keeps
137
138
  * obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
@@ -1456,6 +1457,18 @@ declare namespace CanvasXpress {
1456
1457
  * @default 1
1457
1458
  */
1458
1459
  dataPointSizeScaleFactor?: number | boolean;
1460
+ /**
1461
+ * Declarative, serializable data selection layer authored on top of the DataFilters engine
1462
+ * (an authoring sugar that de-sugars into filterSmpBy / filterVarBy / filterDataBy — not a
1463
+ * second filter engine). A single object, or an ARRAY of named { name, active, ... } blocks
1464
+ * (the active/first is applied; switch at runtime with applyNamedDataSelection). A block has
1465
+ * keys samples / variables / values; each is { any: [...] } (OR) or { all: [...] } (AND),
1466
+ * and a leaf is { annotation, op, value } where op uses friendly vocab (min, max, exact,
1467
+ * like, not like, between, different). Example: { samples: { all: [ { annotation:
1468
+ * "Treatment", op: "exact", value: ["Control"] } ] } }
1469
+ * @default false
1470
+ */
1471
+ dataSelection?: Record<string, unknown> | unknown[] | boolean | string | number;
1459
1472
  /**
1460
1473
  * Color for the the brand of the data table. Used wherever a non-neutral color is required.
1461
1474
  * Selections, focus outlines and checkboxes use the accent color by default
@@ -4873,7 +4886,7 @@ declare namespace CanvasXpress {
4873
4886
  */
4874
4887
  nodeBaseline?: "top" | "middle" | "bottom" | false | (string & {});
4875
4888
  /**
4876
- * Color for the nodes
4889
+ * Color for the text in node
4877
4890
  * @graphTypes Network
4878
4891
  * @default "rgb(245,245,245)"
4879
4892
  */
@@ -7284,7 +7297,7 @@ declare namespace CanvasXpress {
7284
7297
  */
7285
7298
  showRegressionFullRange?: boolean;
7286
7299
  /**
7287
- * Flag to show/hide the legend sample. Not implemented!!!!!
7300
+ * Flag to show/hide the legend sample
7288
7301
  * @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
7289
7302
  * @default true
7290
7303
  */
@@ -10731,6 +10744,7 @@ declare namespace CanvasXpress {
10731
10744
  | "dataFilterTextColor"
10732
10745
  | "dataFilterToolbarBackgroundColor"
10733
10746
  | "dataFilterWidth"
10747
+ | "dataSelection"
10734
10748
  | "filterData"
10735
10749
  | "filterDataBy"
10736
10750
  | "filterEdgeBy"