@bicharts/chart-host 0.6.65 → 0.6.66
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.
|
@@ -1107,7 +1107,16 @@ function resolveOptions(p4) {
|
|
|
1107
1107
|
// blank must arrive as ABSENT, not as an empty string, because the chart's fallback is
|
|
1108
1108
|
// `options.cardBackgroundColor || <its own choice>` and "" would satisfy a truthiness
|
|
1109
1109
|
// test in some hands while painting nothing in others.
|
|
1110
|
-
cardBackgroundColor: p4.cardBackgroundColor || void 0
|
|
1110
|
+
cardBackgroundColor: p4.cardBackgroundColor || void 0,
|
|
1111
|
+
// A reader's on / off, or UNSET - never filled with false, for the flipIntervalMs reason: the
|
|
1112
|
+
// default is the chart's (on only where its request asked for drop lines), and a host that
|
|
1113
|
+
// turned unset into false would make that default unreachable. Pane choices arrive as text.
|
|
1114
|
+
hoverDropLines: (() => {
|
|
1115
|
+
const v = p4.hoverDropLines;
|
|
1116
|
+
if (typeof v === "boolean") return v;
|
|
1117
|
+
const s2 = v == null ? "" : String(v).trim().toLowerCase();
|
|
1118
|
+
return s2 === "on" || s2 === "true" || s2 === "1" ? true : s2 === "off" || s2 === "false" || s2 === "0" ? false : void 0;
|
|
1119
|
+
})()
|
|
1111
1120
|
};
|
|
1112
1121
|
}
|
|
1113
1122
|
|
package/dist/index.mjs
CHANGED
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
toSourceRows,
|
|
123
123
|
unpinScrolledAxis,
|
|
124
124
|
valuePlacementFlag
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-CXDTSQBJ.mjs";
|
|
126
126
|
import "./chunk-A2GMXZP7.mjs";
|
|
127
127
|
import {
|
|
128
128
|
ACTIVE_TICK_CLASS,
|
|
@@ -212,6 +212,11 @@ var OPTIONS_VOCABULARY = Object.freeze({
|
|
|
212
212
|
flipIntervalMs: entry({ timing: "live", default: "", min: 0, max: FLIP_INTERVAL_MAX_MS }),
|
|
213
213
|
/** Which way a face turns, for any chart that turns between faces: side to side, or top to bottom. */
|
|
214
214
|
flipDirection: entry({ timing: "live", default: FLIP_DIRECTION_DEFAULT, values: ["horizontal", "vertical"] }),
|
|
215
|
+
/**
|
|
216
|
+
* Hover drop lines on a 3D chart. BLANK - "the chart's own" - is the default: off, unless the request
|
|
217
|
+
* that made the chart asked for them. "on" / "off" is a reader's choice and wins either way.
|
|
218
|
+
*/
|
|
219
|
+
hoverDropLines: entry({ timing: "live", default: "", values: ["", "on", "off"] }),
|
|
215
220
|
// ---- the next generated chart ----
|
|
216
221
|
levelOfDetail: entry({ timing: "next-generate", default: "", values: ["", "High", "Medium", "Low"], wire: "clientHints" }),
|
|
217
222
|
favorLimitTo: entry({ timing: "next-generate", default: "", values: ["", "latest", "top / greatest", "bottom / smallest", "most common", "outliers"], wire: "clientHints" }),
|
package/dist/react.mjs
CHANGED
package/dist/types/contract.d.ts
CHANGED
|
@@ -60,6 +60,11 @@ export declare const OPTIONS_VOCABULARY: Readonly<{
|
|
|
60
60
|
flipIntervalMs: OptionVocabularyEntry;
|
|
61
61
|
/** Which way a face turns, for any chart that turns between faces: side to side, or top to bottom. */
|
|
62
62
|
flipDirection: OptionVocabularyEntry;
|
|
63
|
+
/**
|
|
64
|
+
* Hover drop lines on a 3D chart. BLANK - "the chart's own" - is the default: off, unless the request
|
|
65
|
+
* that made the chart asked for them. "on" / "off" is a reader's choice and wins either way.
|
|
66
|
+
*/
|
|
67
|
+
hoverDropLines: OptionVocabularyEntry;
|
|
63
68
|
levelOfDetail: OptionVocabularyEntry;
|
|
64
69
|
favorLimitTo: OptionVocabularyEntry;
|
|
65
70
|
/** 0 asks for no limit, and travels as absent (`wireLimitCount`): any value the server receives is a limit. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.66",
|
|
4
4
|
"description": "Run a BIC-generated D3 chart in any web host: compiles the generated render() function, applies the shared option defaults, resolves mark clicks (through tooltip overlays), owns the selection affordance, and translates row indices between cross-filtered charts. The same contract the BIC Power BI visual implements, minus Power BI. React bindings at @bicharts/chart-host/react.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|