canvasxpress 70.8.1 → 70.9.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 +57 -0
- package/src/canvasXpress.d.mts +19 -1
- package/src/canvasXpress.d.ts +19 -1
- package/src/canvasXpress.js +2 -2
package/package.json
CHANGED
package/src/canvasXpress.css
CHANGED
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
--cx-z-raised: 10;
|
|
102
102
|
--cx-z-toolbar: 1000;
|
|
103
103
|
--cx-z-toolbar-edge: 1001;
|
|
104
|
+
--cx-z-footer-link: 1002;
|
|
104
105
|
--cx-z-resizer: 2000;
|
|
105
106
|
--cx-z-fullscreen: 9999;
|
|
106
107
|
--cx-z-panel: 10000;
|
|
@@ -5633,6 +5634,62 @@ input.cX-DataFilter-Container-Input-Right {
|
|
|
5633
5634
|
background-color: var(--cx-datafilter-background-color, var(--cx-ui-surface));
|
|
5634
5635
|
}
|
|
5635
5636
|
|
|
5637
|
+
/* @category: widget */
|
|
5638
|
+
/*********************/
|
|
5639
|
+
/* Drill breadcrumb */
|
|
5640
|
+
/*********************/
|
|
5641
|
+
|
|
5642
|
+
/* HTML strip overlaid at the top-left of the chart viewport while a drillHierarchy
|
|
5643
|
+
has been drilled into. Not drawn on the canvas, so exports/pixel baselines are
|
|
5644
|
+
untouched. Consumes the shared --cx-ui-* tokens so light/dark mode come for free. */
|
|
5645
|
+
.cX-Drill-Breadcrumb {
|
|
5646
|
+
box-sizing: border-box;
|
|
5647
|
+
position: absolute;
|
|
5648
|
+
top: 4px;
|
|
5649
|
+
left: 4px;
|
|
5650
|
+
z-index: var(--cx-z-panel);
|
|
5651
|
+
display: flex;
|
|
5652
|
+
align-items: center;
|
|
5653
|
+
flex-wrap: wrap;
|
|
5654
|
+
gap: 2px;
|
|
5655
|
+
max-width: calc(100% - 8px);
|
|
5656
|
+
padding: 2px 6px;
|
|
5657
|
+
font-family: var(--cx-font-family);
|
|
5658
|
+
font-size: var(--cx-large-font-size, var(--cx-x-large-font-size));
|
|
5659
|
+
line-height: 1.4;
|
|
5660
|
+
color: var(--cx-font-color, var(--cx-ui-text));
|
|
5661
|
+
background-color: var(--cx-datafilter-toolbar-background-color, var(--cx-ui-chrome));
|
|
5662
|
+
border: 1px var(--cx-border-style) var(--cx-datafilter-border-color, var(--cx-ui-border-accent));
|
|
5663
|
+
border-radius: var(--cx-border-radius);
|
|
5664
|
+
}
|
|
5665
|
+
|
|
5666
|
+
.cX-Drill-Crumb {
|
|
5667
|
+
cursor: pointer;
|
|
5668
|
+
padding: 0px 2px;
|
|
5669
|
+
border-radius: var(--cx-border-radius);
|
|
5670
|
+
text-decoration: none;
|
|
5671
|
+
color: var(--cx-ui-accent, var(--cx-font-color, var(--cx-ui-text)));
|
|
5672
|
+
}
|
|
5673
|
+
|
|
5674
|
+
.cX-Drill-Crumb:hover,
|
|
5675
|
+
.cX-Drill-Crumb:focus {
|
|
5676
|
+
text-decoration: underline;
|
|
5677
|
+
outline: none;
|
|
5678
|
+
}
|
|
5679
|
+
|
|
5680
|
+
.cX-Drill-Sep {
|
|
5681
|
+
opacity: 0.6;
|
|
5682
|
+
padding: 0px 1px;
|
|
5683
|
+
cursor: default;
|
|
5684
|
+
}
|
|
5685
|
+
|
|
5686
|
+
/* The deepest crumb is the current level: plain text, not a link. */
|
|
5687
|
+
.cX-Drill-Current {
|
|
5688
|
+
cursor: default;
|
|
5689
|
+
font-weight: 600;
|
|
5690
|
+
color: var(--cx-font-color, var(--cx-ui-text));
|
|
5691
|
+
text-decoration: none;
|
|
5692
|
+
}
|
|
5636
5693
|
/* @category: widget */
|
|
5637
5694
|
/***************/
|
|
5638
5695
|
/* Toggle */
|
package/src/canvasXpress.d.mts
CHANGED
|
@@ -123,7 +123,7 @@ export type CXGraphType =
|
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Full chart configuration — one property per parameter in the CanvasXpress
|
|
126
|
-
* config schema (
|
|
126
|
+
* config schema (1736 keys). String enums become open literal
|
|
127
127
|
* unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
|
|
128
128
|
* lists the graph types it applies to (absent = all). The index signature keeps
|
|
129
129
|
* obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
|
|
@@ -2444,6 +2444,22 @@ export interface CXConfig {
|
|
|
2444
2444
|
* @default "normal"
|
|
2445
2445
|
*/
|
|
2446
2446
|
dotplotType?: "arrow" | "bullet" | "cleveland" | "connected" | "line" | "lineConnected" | "normal" | "stacked" | "transition" | false | (string & {});
|
|
2447
|
+
/**
|
|
2448
|
+
* Flag to show the drill-down breadcrumb strip in the viewport when a drillHierarchy is
|
|
2449
|
+
* active and the chart has been drilled. Set false for API-only drill control
|
|
2450
|
+
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
2451
|
+
* @default true
|
|
2452
|
+
*/
|
|
2453
|
+
drillBreadcrumb?: boolean;
|
|
2454
|
+
/**
|
|
2455
|
+
* An array of sample annotation names, coarse to fine (e.g. ["Region","State","City"]),
|
|
2456
|
+
* defining a drill-down hierarchy. When set, clicking a mark filters to the clicked level
|
|
2457
|
+
* value and regroups by the next finer annotation; a breadcrumb walks back. Each entry must
|
|
2458
|
+
* be a category in the data.x object
|
|
2459
|
+
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
2460
|
+
* @default []
|
|
2461
|
+
*/
|
|
2462
|
+
drillHierarchy?: unknown[] | boolean | string | number;
|
|
2447
2463
|
/**
|
|
2448
2464
|
* Direction of the arrows in arrow dumbbells (dumbbellType arrow): value points each arrow
|
|
2449
2465
|
* at the smaller value; order points from the first variable to the next (before to after)
|
|
@@ -11012,6 +11028,8 @@ export type CXKeysData =
|
|
|
11012
11028
|
| "dataTextMargin"
|
|
11013
11029
|
| "dataTextRotate"
|
|
11014
11030
|
| "dataTextScaleFontFactor"
|
|
11031
|
+
| "drillBreadcrumb"
|
|
11032
|
+
| "drillHierarchy"
|
|
11015
11033
|
| "groupingFactorLevelsOrder"
|
|
11016
11034
|
| "groupingFactors"
|
|
11017
11035
|
| "groupingFactorsLabelsHide"
|
package/src/canvasXpress.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ declare namespace CanvasXpress {
|
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* Full chart configuration — one property per parameter in the CanvasXpress
|
|
135
|
-
* config schema (
|
|
135
|
+
* config schema (1736 keys). String enums become open literal
|
|
136
136
|
* unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
|
|
137
137
|
* lists the graph types it applies to (absent = all). The index signature keeps
|
|
138
138
|
* obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
|
|
@@ -2453,6 +2453,22 @@ declare namespace CanvasXpress {
|
|
|
2453
2453
|
* @default "normal"
|
|
2454
2454
|
*/
|
|
2455
2455
|
dotplotType?: "arrow" | "bullet" | "cleveland" | "connected" | "line" | "lineConnected" | "normal" | "stacked" | "transition" | false | (string & {});
|
|
2456
|
+
/**
|
|
2457
|
+
* Flag to show the drill-down breadcrumb strip in the viewport when a drillHierarchy is
|
|
2458
|
+
* active and the chart has been drilled. Set false for API-only drill control
|
|
2459
|
+
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
2460
|
+
* @default true
|
|
2461
|
+
*/
|
|
2462
|
+
drillBreadcrumb?: boolean;
|
|
2463
|
+
/**
|
|
2464
|
+
* An array of sample annotation names, coarse to fine (e.g. ["Region","State","City"]),
|
|
2465
|
+
* defining a drill-down hierarchy. When set, clicking a mark filters to the clicked level
|
|
2466
|
+
* value and regroups by the next finer annotation; a breadcrumb walks back. Each entry must
|
|
2467
|
+
* be a category in the data.x object
|
|
2468
|
+
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
2469
|
+
* @default []
|
|
2470
|
+
*/
|
|
2471
|
+
drillHierarchy?: unknown[] | boolean | string | number;
|
|
2456
2472
|
/**
|
|
2457
2473
|
* Direction of the arrows in arrow dumbbells (dumbbellType arrow): value points each arrow
|
|
2458
2474
|
* at the smaller value; order points from the first variable to the next (before to after)
|
|
@@ -11021,6 +11037,8 @@ declare namespace CanvasXpress {
|
|
|
11021
11037
|
| "dataTextMargin"
|
|
11022
11038
|
| "dataTextRotate"
|
|
11023
11039
|
| "dataTextScaleFontFactor"
|
|
11040
|
+
| "drillBreadcrumb"
|
|
11041
|
+
| "drillHierarchy"
|
|
11024
11042
|
| "groupingFactorLevelsOrder"
|
|
11025
11043
|
| "groupingFactors"
|
|
11026
11044
|
| "groupingFactorsLabelsHide"
|