@graphysdk/react-renderer 1.9.0-beta.1794395798194 → 1.9.0-beta.1794408227684
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/dist/editable.cjs +1 -1
- package/dist/editable.d.ts +4 -4
- package/dist/editable.mjs +1631 -1627
- package/dist/{history-chords-DHIpy5uS.js → history-chords-Bslv61fu.js} +6 -6
- package/dist/{history-chords-BYhgAEAh.cjs → history-chords-CKdxObgm.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
|
@@ -22,7 +22,7 @@ import './history-chords.css';var Xo = Object.defineProperty, gu = (e, t) => {
|
|
|
22
22
|
});
|
|
23
23
|
return t || Xo(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
24
24
|
};
|
|
25
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.
|
|
25
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1794408227684");
|
|
26
26
|
function fu(e) {
|
|
27
27
|
for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
|
|
28
28
|
}
|
|
@@ -4633,7 +4633,7 @@ var pf = ({ hitTest: e, input: t }) => {
|
|
|
4633
4633
|
}
|
|
4634
4634
|
},
|
|
4635
4635
|
mountEditor: !0,
|
|
4636
|
-
editTextInline: !
|
|
4636
|
+
editTextInline: !1,
|
|
4637
4637
|
trackHover: !0,
|
|
4638
4638
|
openLegendOverflow: !0,
|
|
4639
4639
|
animate: !0
|
|
@@ -6106,10 +6106,10 @@ var Nl = K(null), Tm = ({ panelRect: e, children: t }) => {
|
|
|
6106
6106
|
const e = N(Nl);
|
|
6107
6107
|
if (e === null) throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");
|
|
6108
6108
|
return e;
|
|
6109
|
-
}, Ma = (e, t, r) => t.hasAuthoredStroke ? t.stroke : Uc(e.start, e.end, {
|
|
6109
|
+
}, Ma = (e, t, r, n) => t.hasAuthoredStroke ? t.stroke : Uc(e.start, e.end, {
|
|
6110
6110
|
start: r(e.start),
|
|
6111
6111
|
end: r(e.end)
|
|
6112
|
-
}) ?? t.stroke, Bm = (e) => {
|
|
6112
|
+
}) ?? n ?? t.stroke, Bm = (e) => {
|
|
6113
6113
|
const { formattingLocale: t } = J(), r = Xe(), { fonts: n } = ot(), o = ze((f) => Vt(f, "difference-arrow-endpoint-drag")), a = ku(), i = O(), { differenceArrows: s, mainAxis: d, parsingLocale: c } = B(ue((f) => ({
|
|
6114
6114
|
differenceArrows: f.annotations.differenceArrows,
|
|
6115
6115
|
mainAxis: Jt(f.coordSystem),
|
|
@@ -6150,7 +6150,7 @@ var Nl = K(null), Tm = ({ panelRect: e, children: t }) => {
|
|
|
6150
6150
|
return {
|
|
6151
6151
|
...Oa(x, f.style, p, g),
|
|
6152
6152
|
style: f.style,
|
|
6153
|
-
color: Ma(x, f.style, a),
|
|
6153
|
+
color: Ma(x, f.style, a, f.color),
|
|
6154
6154
|
arrow: x,
|
|
6155
6155
|
committedArrow: f.committedArrow,
|
|
6156
6156
|
committedLabelBox: f.committedLabelBox,
|
|
@@ -7765,7 +7765,7 @@ var ln = "\0", Ly = (e, t) => {
|
|
|
7765
7765
|
transform: `translate(${e.x}, ${e.y})`,
|
|
7766
7766
|
"data-testid": "difference-arrows",
|
|
7767
7767
|
children: r.map(({ color: i, style: s, id: d, linePath: c, arrowheadPath: u, labelPosition: h, labelBox: v, labelText: p, dragging: g, hasComparableEndpoints: m, committedLinePath: f, committedArrowheadPath: x, committedLabelPosition: b, committedLabelBox: S, committedLabelText: E, committedColor: k }) => {
|
|
7768
|
-
const C = n === d
|
|
7768
|
+
const C = n === d && !a.has(d), L = g && !m, P = L ? y.alert : i, I = C && !L ? xx(P) : P, j = g && f !== void 0 && x !== void 0 && b !== void 0 && k !== void 0;
|
|
7769
7769
|
return /* @__PURE__ */ w("g", {
|
|
7770
7770
|
className: n === d ? px : void 0,
|
|
7771
7771
|
"data-warning": L || void 0,
|