@graphysdk/react 1.8.1-beta.1788249132945 → 1.8.1-beta.1788254273822
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.
|
@@ -16772,7 +16772,7 @@ var Z6 = (e, t, n, r) => r.label !== void 0 ? r.label : AD({
|
|
|
16772
16772
|
});
|
|
16773
16773
|
}, Yde = ({ diagnostics: e, coordType: t, geom: n, position: r, dataLabels: o }) => {
|
|
16774
16774
|
if (e === void 0) return;
|
|
16775
|
-
const i = n.type === "bar" && t
|
|
16775
|
+
const i = n.type === "bar" && t !== "polar";
|
|
16776
16776
|
if (o.showDataLabels && !n.dataLabelCoordTypes.includes(t)) {
|
|
16777
16777
|
e.addWarning({
|
|
16778
16778
|
code: "DATA_LABELS_UNSUPPORTED",
|
|
@@ -16781,7 +16781,7 @@ var Z6 = (e, t, n, r) => r.label !== void 0 ? r.label : AD({
|
|
|
16781
16781
|
});
|
|
16782
16782
|
return;
|
|
16783
16783
|
}
|
|
16784
|
-
o.showDataLabels && o.position === "outside" &&
|
|
16784
|
+
o.showDataLabels && o.position === "outside" && i && Nr(r) && e.addWarning({
|
|
16785
16785
|
code: "DATA_LABEL_PLACEMENT_COERCED",
|
|
16786
16786
|
message: "Stacked bar segments only place data labels inside; position 'outside' will render as 'inside'.",
|
|
16787
16787
|
context: {
|
|
@@ -16789,14 +16789,10 @@ var Z6 = (e, t, n, r) => r.label !== void 0 ? r.label : AD({
|
|
|
16789
16789
|
actual: "outside"
|
|
16790
16790
|
},
|
|
16791
16791
|
suggestion: "Use position 'inside' or 'auto', or enable showStackTotals for a label above the stack."
|
|
16792
|
-
}), o.showStackTotals && !(
|
|
16792
|
+
}), o.showStackTotals && !(i && r === "stack") && e.addWarning({
|
|
16793
16793
|
code: "DATA_LABEL_SETTING_IGNORED",
|
|
16794
16794
|
message: "showStackTotals only applies to stacked cartesian bars; it will be ignored.",
|
|
16795
16795
|
suggestion: "Turn off showStackTotals, or use a bar geom with position 'stack'."
|
|
16796
|
-
}), o.showCategoryLabels && o.showDataLabels && !i && e.addWarning({
|
|
16797
|
-
code: "DATA_LABEL_SETTING_IGNORED",
|
|
16798
|
-
message: "showCategoryLabels only applies to polar bars (pie / donut); it will be ignored.",
|
|
16799
|
-
suggestion: "Turn off showCategoryLabels for this layer."
|
|
16800
16796
|
});
|
|
16801
16797
|
}, qde = ({ dataLabels: e, geom: t, position: n, coordType: r, diagnostics: o }) => {
|
|
16802
16798
|
const { justify: i, showDataLabels: a } = e;
|
package/dist/index.browser.mjs
CHANGED
|
@@ -11661,7 +11661,7 @@ var G3 = (e, t, r, n) => n.label !== void 0 ? n.label : Bx({
|
|
|
11661
11661
|
});
|
|
11662
11662
|
}, j3 = ({ diagnostics: e, coordType: t, geom: r, position: n, dataLabels: i }) => {
|
|
11663
11663
|
if (e === void 0) return;
|
|
11664
|
-
const o = r.type === "bar" && t
|
|
11664
|
+
const o = r.type === "bar" && t !== "polar";
|
|
11665
11665
|
if (i.showDataLabels && !r.dataLabelCoordTypes.includes(t)) {
|
|
11666
11666
|
e.addWarning({
|
|
11667
11667
|
code: "DATA_LABELS_UNSUPPORTED",
|
|
@@ -11670,7 +11670,7 @@ var G3 = (e, t, r, n) => n.label !== void 0 ? n.label : Bx({
|
|
|
11670
11670
|
});
|
|
11671
11671
|
return;
|
|
11672
11672
|
}
|
|
11673
|
-
i.showDataLabels && i.position === "outside" &&
|
|
11673
|
+
i.showDataLabels && i.position === "outside" && o && Ct(n) && e.addWarning({
|
|
11674
11674
|
code: "DATA_LABEL_PLACEMENT_COERCED",
|
|
11675
11675
|
message: "Stacked bar segments only place data labels inside; position 'outside' will render as 'inside'.",
|
|
11676
11676
|
context: {
|
|
@@ -11678,14 +11678,10 @@ var G3 = (e, t, r, n) => n.label !== void 0 ? n.label : Bx({
|
|
|
11678
11678
|
actual: "outside"
|
|
11679
11679
|
},
|
|
11680
11680
|
suggestion: "Use position 'inside' or 'auto', or enable showStackTotals for a label above the stack."
|
|
11681
|
-
}), i.showStackTotals && !(
|
|
11681
|
+
}), i.showStackTotals && !(o && n === "stack") && e.addWarning({
|
|
11682
11682
|
code: "DATA_LABEL_SETTING_IGNORED",
|
|
11683
11683
|
message: "showStackTotals only applies to stacked cartesian bars; it will be ignored.",
|
|
11684
11684
|
suggestion: "Turn off showStackTotals, or use a bar geom with position 'stack'."
|
|
11685
|
-
}), i.showCategoryLabels && i.showDataLabels && !o && e.addWarning({
|
|
11686
|
-
code: "DATA_LABEL_SETTING_IGNORED",
|
|
11687
|
-
message: "showCategoryLabels only applies to polar bars (pie / donut); it will be ignored.",
|
|
11688
|
-
suggestion: "Turn off showCategoryLabels for this layer."
|
|
11689
11685
|
});
|
|
11690
11686
|
}, z3 = ({ dataLabels: e, geom: t, position: r, coordType: n, diagnostics: i }) => {
|
|
11691
11687
|
const { justify: o, showDataLabels: a } = e;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"visualization",
|
|
12
12
|
"grammar-of-graphics"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.8.1-beta.
|
|
14
|
+
"version": "1.8.1-beta.1788254273822",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@graphysdk/react-renderer": "1.8.1-beta.
|
|
39
|
-
"@graphysdk/viz-engine": "1.8.1-beta.
|
|
38
|
+
"@graphysdk/react-renderer": "1.8.1-beta.1788254273822",
|
|
39
|
+
"@graphysdk/viz-engine": "1.8.1-beta.1788254273822"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@tiptap/core": "^3.0.0",
|