@graphysdk/react-renderer 2.0.0-beta.1787130761469 → 2.0.0-beta.1787255264612
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/README.md +11 -0
- package/dist/{typography-DUFp65Tx.js → dev.utils-Bvss_b2-.js} +20 -27
- package/dist/dev.utils-DiNE92pC.cjs +2 -0
- package/dist/editable.cjs +1 -1
- package/dist/editable.css +1 -1
- package/dist/editable.d.ts +92 -3176
- package/dist/editable.mjs +6618 -2656
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.d.ts +0 -6
- package/dist/graph-config.mjs +13 -13
- package/dist/history-chords-DGf_i7B7.js +6498 -0
- package/dist/history-chords-tkqLt7Jt.cjs +1 -0
- package/dist/history-chords.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -9
- package/dist/index.mjs +193 -193
- package/package.json +5 -2
- package/dist/history-chords-BDa-CeNm.js +0 -9409
- package/dist/history-chords-BIarPFDp.cjs +0 -1
- package/dist/typography-CsG_IWDd.cjs +0 -2
- /package/dist/{typography.css → dev.css} +0 -0
package/dist/graph-config.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./dev.utils-DiNE92pC.cjs");let s=require("@graphysdk/viz-engine/graph-config");var v=(e,n)=>{const r=e.appearance?.textStyle;return{...f(e.themeOverrides),...n&&r?l(r,n):void 0}},l=(e,n)=>{const r=i=>i===void 0?void 0:n.find(d=>d.id===i)?.fontFamily,o=r(e.body?.fontId),t=r(e.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},f=e=>{if(e===void 0)return;const n={};for(const[r,o]of Object.entries(e))if(a.isMeasuredFontTokenKey(r)&&typeof o=="string"){const t=(0,s.parseFontShorthand)(o);if(t===null){c(r,o);continue}n[r]=t}else n[r]=o;return n},c=(e,n)=>{a.IS_DEV&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=v;
|
package/dist/graph-config.d.ts
CHANGED
|
@@ -119,7 +119,6 @@ declare const vars: {
|
|
|
119
119
|
heatmapEmptyTileBackground: `var(--${string})`;
|
|
120
120
|
gridLineWidth: `var(--${string})`;
|
|
121
121
|
tooltipBorderRadius: `var(--${string})`;
|
|
122
|
-
tooltipBorderWidth: `var(--${string})`;
|
|
123
122
|
tooltipPaddingBlock: `var(--${string})`;
|
|
124
123
|
tooltipPaddingInline: `var(--${string})`;
|
|
125
124
|
tooltipRowGap: `var(--${string})`;
|
|
@@ -170,10 +169,7 @@ declare const vars: {
|
|
|
170
169
|
toolbarSeparatorColor: `var(--${string})`;
|
|
171
170
|
tooltipBackground: `var(--${string})`;
|
|
172
171
|
tooltipBorderColor: `var(--${string})`;
|
|
173
|
-
tooltipHeadingTextColor: `var(--${string})`;
|
|
174
|
-
tooltipLabelTextColor: `var(--${string})`;
|
|
175
172
|
tooltipValueTextColor: `var(--${string})`;
|
|
176
|
-
tooltipPrimaryRowColor: `var(--${string})`;
|
|
177
173
|
hoverGuideLineColor: `var(--${string})`;
|
|
178
174
|
hoverGuideFillColor: `var(--${string})`;
|
|
179
175
|
fontFamilyDefault: `var(--${string})`;
|
|
@@ -207,8 +203,6 @@ declare const vars: {
|
|
|
207
203
|
fontLineHeightHeadingLg: `var(--${string})`;
|
|
208
204
|
fontLegendLabel: `var(--${string})`;
|
|
209
205
|
fontSeriesLabel: `var(--${string})`;
|
|
210
|
-
fontTooltipLabel: `var(--${string})`;
|
|
211
|
-
fontTooltipHeading: `var(--${string})`;
|
|
212
206
|
fontTooltipFooter: `var(--${string})`;
|
|
213
207
|
fontJumboTooltipLabel: `var(--${string})`;
|
|
214
208
|
fontJumboTooltip: `var(--${string})`;
|
package/dist/graph-config.mjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { parseFontShorthand as
|
|
3
|
-
var
|
|
1
|
+
import { t as d, u as s } from "./dev.utils-Bvss_b2-.js";
|
|
2
|
+
import { parseFontShorthand as v } from "@graphysdk/viz-engine/graph-config";
|
|
3
|
+
var y = (e, n) => {
|
|
4
4
|
const r = e.appearance?.textStyle;
|
|
5
5
|
return {
|
|
6
|
-
...
|
|
7
|
-
...n && r ?
|
|
6
|
+
...l(e.themeOverrides),
|
|
7
|
+
...n && r ? f(r, n) : void 0
|
|
8
8
|
};
|
|
9
|
-
},
|
|
9
|
+
}, f = (e, n) => {
|
|
10
10
|
const r = (a) => a === void 0 ? void 0 : n.find((i) => i.id === a)?.fontFamily, o = r(e.body?.fontId), t = r(e.heading?.fontId);
|
|
11
11
|
return {
|
|
12
12
|
...o ? { fontFamilyDefault: o } : void 0,
|
|
13
13
|
...t ? { fontFamilyHeading: t } : void 0
|
|
14
14
|
};
|
|
15
|
-
},
|
|
15
|
+
}, l = (e) => {
|
|
16
16
|
if (e === void 0) return;
|
|
17
17
|
const n = {};
|
|
18
|
-
for (const [r, o] of Object.entries(e)) if (
|
|
19
|
-
const t =
|
|
18
|
+
for (const [r, o] of Object.entries(e)) if (s(r) && typeof o == "string") {
|
|
19
|
+
const t = v(o);
|
|
20
20
|
if (t === null) {
|
|
21
|
-
|
|
21
|
+
m(r, o);
|
|
22
22
|
continue;
|
|
23
23
|
}
|
|
24
24
|
n[r] = t;
|
|
25
25
|
} else n[r] = o;
|
|
26
26
|
return n;
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, m = (e, n) => {
|
|
28
|
+
d && console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`);
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
y as convertGraphConfigTheme
|
|
32
32
|
};
|