canvasxpress 69.3.0 → 69.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 +1 -1
- package/src/canvasXpress.css +12 -0
- package/src/canvasXpress.d.mts +16 -3
- package/src/canvasXpress.d.ts +16 -3
- package/src/canvasXpress.js +2 -2
package/package.json
CHANGED
package/src/canvasXpress.css
CHANGED
|
@@ -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;
|
package/src/canvasXpress.d.mts
CHANGED
|
@@ -122,7 +122,7 @@ export type CXGraphType =
|
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* Full chart configuration — one property per parameter in the CanvasXpress
|
|
125
|
-
* config schema (
|
|
125
|
+
* config schema (1692 keys). String enums become open literal
|
|
126
126
|
* unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
|
|
127
127
|
* lists the graph types it applies to (absent = all). The index signature keeps
|
|
128
128
|
* obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
|
|
@@ -1447,6 +1447,18 @@ export interface CXConfig {
|
|
|
1447
1447
|
* @default 1
|
|
1448
1448
|
*/
|
|
1449
1449
|
dataPointSizeScaleFactor?: number | boolean;
|
|
1450
|
+
/**
|
|
1451
|
+
* Declarative, serializable data selection layer authored on top of the DataFilters engine
|
|
1452
|
+
* (an authoring sugar that de-sugars into filterSmpBy / filterVarBy / filterDataBy — not a
|
|
1453
|
+
* second filter engine). A single object, or an ARRAY of named { name, active, ... } blocks
|
|
1454
|
+
* (the active/first is applied; switch at runtime with applyNamedDataSelection). A block has
|
|
1455
|
+
* keys samples / variables / values; each is { any: [...] } (OR) or { all: [...] } (AND),
|
|
1456
|
+
* and a leaf is { annotation, op, value } where op uses friendly vocab (min, max, exact,
|
|
1457
|
+
* like, not like, between, different). Example: { samples: { all: [ { annotation:
|
|
1458
|
+
* "Treatment", op: "exact", value: ["Control"] } ] } }
|
|
1459
|
+
* @default false
|
|
1460
|
+
*/
|
|
1461
|
+
dataSelection?: Record<string, unknown> | unknown[] | boolean | string | number;
|
|
1450
1462
|
/**
|
|
1451
1463
|
* Color for the the brand of the data table. Used wherever a non-neutral color is required.
|
|
1452
1464
|
* Selections, focus outlines and checkboxes use the accent color by default
|
|
@@ -4864,7 +4876,7 @@ export interface CXConfig {
|
|
|
4864
4876
|
*/
|
|
4865
4877
|
nodeBaseline?: "top" | "middle" | "bottom" | false | (string & {});
|
|
4866
4878
|
/**
|
|
4867
|
-
* Color for the
|
|
4879
|
+
* Color for the text in node
|
|
4868
4880
|
* @graphTypes Network
|
|
4869
4881
|
* @default "rgb(245,245,245)"
|
|
4870
4882
|
*/
|
|
@@ -7275,7 +7287,7 @@ export interface CXConfig {
|
|
|
7275
7287
|
*/
|
|
7276
7288
|
showRegressionFullRange?: boolean;
|
|
7277
7289
|
/**
|
|
7278
|
-
* Flag to show/hide the legend sample
|
|
7290
|
+
* Flag to show/hide the legend sample
|
|
7279
7291
|
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
7280
7292
|
* @default true
|
|
7281
7293
|
*/
|
|
@@ -10722,6 +10734,7 @@ export type CXKeysDataFilters =
|
|
|
10722
10734
|
| "dataFilterTextColor"
|
|
10723
10735
|
| "dataFilterToolbarBackgroundColor"
|
|
10724
10736
|
| "dataFilterWidth"
|
|
10737
|
+
| "dataSelection"
|
|
10725
10738
|
| "filterData"
|
|
10726
10739
|
| "filterDataBy"
|
|
10727
10740
|
| "filterEdgeBy"
|
package/src/canvasXpress.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ declare namespace CanvasXpress {
|
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Full chart configuration — one property per parameter in the CanvasXpress
|
|
134
|
-
* config schema (
|
|
134
|
+
* config schema (1692 keys). String enums become open literal
|
|
135
135
|
* unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
|
|
136
136
|
* lists the graph types it applies to (absent = all). The index signature keeps
|
|
137
137
|
* obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
|
|
@@ -1456,6 +1456,18 @@ declare namespace CanvasXpress {
|
|
|
1456
1456
|
* @default 1
|
|
1457
1457
|
*/
|
|
1458
1458
|
dataPointSizeScaleFactor?: number | boolean;
|
|
1459
|
+
/**
|
|
1460
|
+
* Declarative, serializable data selection layer authored on top of the DataFilters engine
|
|
1461
|
+
* (an authoring sugar that de-sugars into filterSmpBy / filterVarBy / filterDataBy — not a
|
|
1462
|
+
* second filter engine). A single object, or an ARRAY of named { name, active, ... } blocks
|
|
1463
|
+
* (the active/first is applied; switch at runtime with applyNamedDataSelection). A block has
|
|
1464
|
+
* keys samples / variables / values; each is { any: [...] } (OR) or { all: [...] } (AND),
|
|
1465
|
+
* and a leaf is { annotation, op, value } where op uses friendly vocab (min, max, exact,
|
|
1466
|
+
* like, not like, between, different). Example: { samples: { all: [ { annotation:
|
|
1467
|
+
* "Treatment", op: "exact", value: ["Control"] } ] } }
|
|
1468
|
+
* @default false
|
|
1469
|
+
*/
|
|
1470
|
+
dataSelection?: Record<string, unknown> | unknown[] | boolean | string | number;
|
|
1459
1471
|
/**
|
|
1460
1472
|
* Color for the the brand of the data table. Used wherever a non-neutral color is required.
|
|
1461
1473
|
* Selections, focus outlines and checkboxes use the accent color by default
|
|
@@ -4873,7 +4885,7 @@ declare namespace CanvasXpress {
|
|
|
4873
4885
|
*/
|
|
4874
4886
|
nodeBaseline?: "top" | "middle" | "bottom" | false | (string & {});
|
|
4875
4887
|
/**
|
|
4876
|
-
* Color for the
|
|
4888
|
+
* Color for the text in node
|
|
4877
4889
|
* @graphTypes Network
|
|
4878
4890
|
* @default "rgb(245,245,245)"
|
|
4879
4891
|
*/
|
|
@@ -7284,7 +7296,7 @@ declare namespace CanvasXpress {
|
|
|
7284
7296
|
*/
|
|
7285
7297
|
showRegressionFullRange?: boolean;
|
|
7286
7298
|
/**
|
|
7287
|
-
* Flag to show/hide the legend sample
|
|
7299
|
+
* Flag to show/hide the legend sample
|
|
7288
7300
|
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
7289
7301
|
* @default true
|
|
7290
7302
|
*/
|
|
@@ -10731,6 +10743,7 @@ declare namespace CanvasXpress {
|
|
|
10731
10743
|
| "dataFilterTextColor"
|
|
10732
10744
|
| "dataFilterToolbarBackgroundColor"
|
|
10733
10745
|
| "dataFilterWidth"
|
|
10746
|
+
| "dataSelection"
|
|
10734
10747
|
| "filterData"
|
|
10735
10748
|
| "filterDataBy"
|
|
10736
10749
|
| "filterEdgeBy"
|