@multiplatform.one/node-graph 7.34.4 → 7.36.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/css/graph.css +0 -2
- package/dist/cjs/diagnostics/GraphDiagnostics.cjs +1 -1
- package/dist/cjs/diagnostics/GraphDiagnostics.native.js +1 -1
- package/dist/cjs/diagnostics/GraphDiagnostics.native.js.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.native.js +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/knobs/KnobEnvelopeProvider.cjs +0 -1
- package/dist/cjs/knobs/KnobEnvelopeProvider.native.js +0 -1
- package/dist/cjs/knobs/KnobEnvelopeProvider.native.js.map +1 -1
- package/dist/cjs/knobs/envelope.cjs +1 -1
- package/dist/cjs/knobs/envelope.native.js +1 -1
- package/dist/cjs/knobs/envelope.native.js.map +1 -1
- package/dist/cjs/knobs/useKnobEnvelope.cjs +1 -2
- package/dist/cjs/knobs/useKnobEnvelope.native.js +6 -7
- package/dist/cjs/knobs/useKnobEnvelope.native.js.map +1 -1
- package/dist/cjs/nodes/GraphNode.cjs +3 -2
- package/dist/cjs/nodes/GraphNode.native.js +3 -2
- package/dist/cjs/nodes/GraphNode.native.js.map +1 -1
- package/dist/cjs/nodes/GraphPort.cjs +2 -1
- package/dist/cjs/nodes/GraphPort.native.js +2 -1
- package/dist/cjs/nodes/GraphPort.native.js.map +1 -1
- package/dist/cjs/nodes/nodeMeasure.cjs +12 -19
- package/dist/cjs/nodes/nodeMeasure.native.js +15 -19
- package/dist/cjs/nodes/nodeMeasure.native.js.map +1 -1
- package/dist/cjs/nodes/overviewNode.cjs +1 -1
- package/dist/cjs/nodes/overviewNode.native.js +1 -1
- package/dist/cjs/nodes/overviewNode.native.js.map +1 -1
- package/dist/cjs/react-flow/ConnectionPuck.cjs +1 -1
- package/dist/cjs/react-flow/ConnectionPuck.native.js +1 -1
- package/dist/cjs/react-flow/ConnectionPuck.native.js.map +1 -1
- package/dist/cjs/react-flow/NodeGraphWeb.cjs +2 -1
- package/dist/cjs/react-flow/NodeGraphWeb.native.js +2 -1
- package/dist/cjs/react-flow/NodeGraphWeb.native.js.map +1 -1
- package/dist/cjs/theme/graphVars.cjs +13 -16
- package/dist/cjs/theme/graphVars.native.js +18 -19
- package/dist/cjs/theme/graphVars.native.js.map +1 -1
- package/dist/esm/diagnostics/GraphDiagnostics.mjs +1 -1
- package/dist/esm/diagnostics/GraphDiagnostics.mjs.map +1 -1
- package/dist/esm/diagnostics/GraphDiagnostics.native.js +1 -1
- package/dist/esm/diagnostics/GraphDiagnostics.native.js.map +1 -1
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/knobs/KnobEnvelopeProvider.mjs +0 -1
- package/dist/esm/knobs/KnobEnvelopeProvider.mjs.map +1 -1
- package/dist/esm/knobs/KnobEnvelopeProvider.native.js +0 -1
- package/dist/esm/knobs/KnobEnvelopeProvider.native.js.map +1 -1
- package/dist/esm/knobs/envelope.mjs +1 -1
- package/dist/esm/knobs/envelope.mjs.map +1 -1
- package/dist/esm/knobs/envelope.native.js +1 -1
- package/dist/esm/knobs/envelope.native.js.map +1 -1
- package/dist/esm/knobs/useKnobEnvelope.mjs +1 -2
- package/dist/esm/knobs/useKnobEnvelope.mjs.map +1 -1
- package/dist/esm/knobs/useKnobEnvelope.native.js +6 -7
- package/dist/esm/knobs/useKnobEnvelope.native.js.map +1 -1
- package/dist/esm/nodes/GraphNode.mjs +4 -3
- package/dist/esm/nodes/GraphNode.mjs.map +1 -1
- package/dist/esm/nodes/GraphNode.native.js +4 -3
- package/dist/esm/nodes/GraphNode.native.js.map +1 -1
- package/dist/esm/nodes/GraphPort.mjs +2 -1
- package/dist/esm/nodes/GraphPort.mjs.map +1 -1
- package/dist/esm/nodes/GraphPort.native.js +2 -1
- package/dist/esm/nodes/GraphPort.native.js.map +1 -1
- package/dist/esm/nodes/nodeMeasure.mjs +13 -20
- package/dist/esm/nodes/nodeMeasure.mjs.map +1 -1
- package/dist/esm/nodes/nodeMeasure.native.js +16 -20
- package/dist/esm/nodes/nodeMeasure.native.js.map +1 -1
- package/dist/esm/nodes/overviewNode.mjs +2 -2
- package/dist/esm/nodes/overviewNode.mjs.map +1 -1
- package/dist/esm/nodes/overviewNode.native.js +2 -2
- package/dist/esm/nodes/overviewNode.native.js.map +1 -1
- package/dist/esm/react-flow/ConnectionPuck.mjs +2 -2
- package/dist/esm/react-flow/ConnectionPuck.mjs.map +1 -1
- package/dist/esm/react-flow/ConnectionPuck.native.js +2 -2
- package/dist/esm/react-flow/ConnectionPuck.native.js.map +1 -1
- package/dist/esm/react-flow/NodeGraphWeb.mjs +2 -1
- package/dist/esm/react-flow/NodeGraphWeb.mjs.map +1 -1
- package/dist/esm/react-flow/NodeGraphWeb.native.js +2 -1
- package/dist/esm/react-flow/NodeGraphWeb.native.js.map +1 -1
- package/dist/esm/theme/graphVars.mjs +14 -17
- package/dist/esm/theme/graphVars.mjs.map +1 -1
- package/dist/esm/theme/graphVars.native.js +19 -20
- package/dist/esm/theme/graphVars.native.js.map +1 -1
- package/dist/jsx/diagnostics/GraphDiagnostics.mjs +1 -1
- package/dist/jsx/diagnostics/GraphDiagnostics.mjs.map +1 -1
- package/dist/jsx/diagnostics/GraphDiagnostics.native.js +1 -1
- package/dist/jsx/diagnostics/GraphDiagnostics.native.js.map +1 -1
- package/dist/jsx/index.js +2 -2
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +2 -2
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +1 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/knobs/KnobEnvelopeProvider.mjs +0 -1
- package/dist/jsx/knobs/KnobEnvelopeProvider.mjs.map +1 -1
- package/dist/jsx/knobs/KnobEnvelopeProvider.native.js +0 -1
- package/dist/jsx/knobs/KnobEnvelopeProvider.native.js.map +1 -1
- package/dist/jsx/knobs/envelope.mjs +1 -1
- package/dist/jsx/knobs/envelope.mjs.map +1 -1
- package/dist/jsx/knobs/envelope.native.js +1 -1
- package/dist/jsx/knobs/envelope.native.js.map +1 -1
- package/dist/jsx/knobs/useKnobEnvelope.mjs +1 -2
- package/dist/jsx/knobs/useKnobEnvelope.mjs.map +1 -1
- package/dist/jsx/knobs/useKnobEnvelope.native.js +6 -7
- package/dist/jsx/knobs/useKnobEnvelope.native.js.map +1 -1
- package/dist/jsx/nodes/GraphNode.mjs +4 -3
- package/dist/jsx/nodes/GraphNode.mjs.map +1 -1
- package/dist/jsx/nodes/GraphNode.native.js +3 -2
- package/dist/jsx/nodes/GraphNode.native.js.map +1 -1
- package/dist/jsx/nodes/GraphPort.mjs +2 -1
- package/dist/jsx/nodes/GraphPort.mjs.map +1 -1
- package/dist/jsx/nodes/GraphPort.native.js +2 -1
- package/dist/jsx/nodes/GraphPort.native.js.map +1 -1
- package/dist/jsx/nodes/nodeMeasure.mjs +13 -20
- package/dist/jsx/nodes/nodeMeasure.mjs.map +1 -1
- package/dist/jsx/nodes/nodeMeasure.native.js +15 -19
- package/dist/jsx/nodes/nodeMeasure.native.js.map +1 -1
- package/dist/jsx/nodes/overviewNode.mjs +2 -2
- package/dist/jsx/nodes/overviewNode.mjs.map +1 -1
- package/dist/jsx/nodes/overviewNode.native.js +1 -1
- package/dist/jsx/nodes/overviewNode.native.js.map +1 -1
- package/dist/jsx/react-flow/ConnectionPuck.mjs +2 -2
- package/dist/jsx/react-flow/ConnectionPuck.mjs.map +1 -1
- package/dist/jsx/react-flow/ConnectionPuck.native.js +1 -1
- package/dist/jsx/react-flow/ConnectionPuck.native.js.map +1 -1
- package/dist/jsx/react-flow/NodeGraphWeb.mjs +2 -1
- package/dist/jsx/react-flow/NodeGraphWeb.mjs.map +1 -1
- package/dist/jsx/react-flow/NodeGraphWeb.native.js +2 -1
- package/dist/jsx/react-flow/NodeGraphWeb.native.js.map +1 -1
- package/dist/jsx/theme/graphVars.mjs +14 -17
- package/dist/jsx/theme/graphVars.mjs.map +1 -1
- package/dist/jsx/theme/graphVars.native.js +18 -19
- package/dist/jsx/theme/graphVars.native.js.map +1 -1
- package/package.json +7 -7
- package/src/diagnostics/GraphDiagnostics.tsx +1 -1
- package/src/dom/GraphDomLayout.tsx +1 -1
- package/src/index.ts +1 -2
- package/src/knobs/KnobEnvelopeProvider.tsx +3 -20
- package/src/knobs/envelope.spec.tsx +18 -32
- package/src/knobs/envelope.ts +8 -14
- package/src/knobs/useKnobEnvelope.ts +1 -1
- package/src/nodes/GraphNode.spec.tsx +34 -43
- package/src/nodes/GraphNode.stories.tsx +2 -8
- package/src/nodes/GraphNode.tsx +5 -3
- package/src/nodes/GraphPort.spec.tsx +4 -6
- package/src/nodes/GraphPort.stories.tsx +6 -3
- package/src/nodes/GraphPort.tsx +3 -2
- package/src/nodes/Overview.stories.tsx +2 -2
- package/src/nodes/handleGeometry.ts +1 -1
- package/src/nodes/lod.spec.tsx +3 -2
- package/src/nodes/nodeMeasure.spec.ts +52 -43
- package/src/nodes/nodeMeasure.ts +32 -51
- package/src/nodes/overviewNode.tsx +3 -3
- package/src/react-flow/ConnectionPuck.spec.tsx +4 -4
- package/src/react-flow/ConnectionPuck.tsx +2 -2
- package/src/react-flow/NodeGraphWeb.spec.tsx +2 -6
- package/src/react-flow/NodeGraphWeb.stories.tsx +3 -9
- package/src/react-flow/NodeGraphWeb.tsx +2 -2
- package/src/theme/graphVars.spec.ts +65 -33
- package/src/theme/graphVars.ts +22 -27
- package/types/dom/GraphDomLayout.d.ts +1 -1
- package/types/index.d.ts +2 -2
- package/types/index.d.ts.map +1 -1
- package/types/knobs/KnobEnvelopeProvider.d.ts +1 -1
- package/types/knobs/KnobEnvelopeProvider.d.ts.map +1 -1
- package/types/knobs/envelope.d.ts +7 -14
- package/types/knobs/envelope.d.ts.map +1 -1
- package/types/nodes/GraphNode.d.ts.map +1 -1
- package/types/nodes/GraphPort.d.ts.map +1 -1
- package/types/nodes/handleGeometry.d.ts +1 -1
- package/types/nodes/nodeMeasure.d.ts +10 -28
- package/types/nodes/nodeMeasure.d.ts.map +1 -1
- package/types/nodes/overviewNode.d.ts.map +1 -1
- package/types/theme/graphVars.d.ts +1 -10
- package/types/theme/graphVars.d.ts.map +1 -1
package/src/theme/graphVars.ts
CHANGED
|
@@ -18,7 +18,13 @@
|
|
|
18
18
|
* Design: docs/design/node-graph-editor.md section 6.2.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
MIN_PRESS_TARGET,
|
|
23
|
+
type ResolvedKnobs,
|
|
24
|
+
hairlineWidth,
|
|
25
|
+
cssAnimationConfig,
|
|
26
|
+
} from "@multiplatform.one/theme";
|
|
27
|
+
import { graphNodeSize } from "../nodes/nodeMeasure";
|
|
22
28
|
|
|
23
29
|
// ── Theme access ─────────────────────────────────────────────────────────────
|
|
24
30
|
|
|
@@ -116,25 +122,9 @@ export const spaceTokenPx: Readonly<Record<string, number>> = {
|
|
|
116
122
|
$6: 32,
|
|
117
123
|
};
|
|
118
124
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
* Mirrored, not imported: `animationConfig` is a platform twin
|
|
123
|
-
* (`animations/index.web.ts` -> `./css` gives these strings, `./reactNative`
|
|
124
|
-
* gives spring objects), and this function runs on the NATIVE host too — it
|
|
125
|
-
* builds the vars that cross into the WebView. `graphVars.spec.ts` asserts the
|
|
126
|
-
* mirror against the web twin.
|
|
127
|
-
*/
|
|
128
|
-
export const graphTransitionCss: Readonly<Record<string, string>> = {
|
|
129
|
-
bouncy: "all ease-in 200ms",
|
|
130
|
-
lazy: "all ease-in 600ms",
|
|
131
|
-
slow: "all ease-in 500ms",
|
|
132
|
-
medium: "all ease-in 300ms",
|
|
133
|
-
quick: "all ease-in 100ms",
|
|
134
|
-
tooltip: "all ease-in 400ms",
|
|
135
|
-
snappy: "all ease-out 80ms",
|
|
136
|
-
gentle: "all ease-in-out 450ms",
|
|
137
|
-
};
|
|
125
|
+
export const graphTransitionCss: Readonly<Record<string, string>> = Object.fromEntries(
|
|
126
|
+
Object.entries(cssAnimationConfig).map(([name, timing]) => [name, `opacity ${timing}`]),
|
|
127
|
+
);
|
|
138
128
|
|
|
139
129
|
/** GraphPort painted disc, by the `size` knob (design 11, Size). Never 44 — that is the HIT value. */
|
|
140
130
|
export const handlePaintedPx: Readonly<Record<string, number>> = {
|
|
@@ -260,7 +250,7 @@ function warnOnce(message: string): void {
|
|
|
260
250
|
* `knobProps.elevationChrome` as a CSS box-shadow.
|
|
261
251
|
*
|
|
262
252
|
* On web `elevationChrome.style.boxShadow` is already the house shadow string
|
|
263
|
-
*
|
|
253
|
+
* with `var(--shadowColor)`, resolved here to the raw theme colour. On the
|
|
264
254
|
* NATIVE host that key is absent — `elevationPaint` only sets it under `isWeb`
|
|
265
255
|
* — and the shadow is rebuilt from the paint props, resolving a `$token`
|
|
266
256
|
* shadow colour through the theme. `elevation: "none"` resolves to an empty
|
|
@@ -273,13 +263,15 @@ export function elevationBoxShadow(
|
|
|
273
263
|
const chrome = resolved.knobProps.elevationChrome;
|
|
274
264
|
const fromWeb = chrome.style?.boxShadow;
|
|
275
265
|
if (fromWeb) {
|
|
276
|
-
|
|
266
|
+
const raw = theme.raw("shadowColor");
|
|
267
|
+
if (!raw) return { css: "none", colors: [] };
|
|
268
|
+
return { css: fromWeb.replaceAll("var(--shadowColor)", raw), colors: [raw] };
|
|
277
269
|
}
|
|
278
270
|
if (!chrome.shadowColor || chrome.shadowRadius == null) return { css: "none", colors: [] };
|
|
279
271
|
const raw = chrome.shadowColor.startsWith("$")
|
|
280
272
|
? theme.raw(chrome.shadowColor.slice(1))
|
|
281
273
|
: chrome.shadowColor;
|
|
282
|
-
const tinted = withAlpha(raw, chrome.shadowOpacity ??
|
|
274
|
+
const tinted = chrome.shadowOpacity === 1 ? raw : withAlpha(raw, chrome.shadowOpacity ?? 1);
|
|
283
275
|
if (!tinted) {
|
|
284
276
|
warnOnce(
|
|
285
277
|
`elevation shadow colour ${JSON.stringify(chrome.shadowColor)} is not a literal colour this can blend, so --xy-controls-box-shadow falls back to none`,
|
|
@@ -327,7 +319,7 @@ export function graphVarValues(
|
|
|
327
319
|
const maskFill = withAlpha(theme.raw("color1"), 0.7);
|
|
328
320
|
const shadow = elevationBoxShadow(resolved, theme);
|
|
329
321
|
|
|
330
|
-
const handlePainted = handlePaintedPx[knobProps.
|
|
322
|
+
const handlePainted = handlePaintedPx[graphNodeSize(knobProps.sizeToken)] ?? 10;
|
|
331
323
|
const handleHit = options?.pointer === "fine" ? Math.max(handlePainted, 24) : MIN_PRESS_TARGET;
|
|
332
324
|
const nodeGap = spaceTokenPx[knobProps.gap.gap] ?? 18;
|
|
333
325
|
const nodePadding = spaceTokenPx[knobProps.panelPadding.padding] ?? 18;
|
|
@@ -387,7 +379,10 @@ export function graphVarValues(
|
|
|
387
379
|
),
|
|
388
380
|
"--xy-controls-button-color": { kind: "color", color: bodyColor },
|
|
389
381
|
"--xy-controls-button-color-hover": { kind: "color", color: hoverColor ?? bodyColor },
|
|
390
|
-
"--xy-controls-button-border-color": color(
|
|
382
|
+
"--xy-controls-button-border-color": color(
|
|
383
|
+
toCss(knobProps.elevatedSurface.borderColor, theme) ?? theme.css("borderColor"),
|
|
384
|
+
"currentColor",
|
|
385
|
+
),
|
|
391
386
|
"--xy-controls-box-shadow": { kind: "composite", css: shadow.css, colors: shadow.colors },
|
|
392
387
|
|
|
393
388
|
// ── attribution / resize ──
|
|
@@ -407,8 +402,8 @@ export function graphVarValues(
|
|
|
407
402
|
"--mpo-graph-port-spacing": { kind: "length", px: Math.max(handleHit, nodeGap) },
|
|
408
403
|
"--mpo-graph-transition": {
|
|
409
404
|
kind: "composite",
|
|
410
|
-
css: knobProps.transition
|
|
411
|
-
? (graphTransitionCss[String(knobProps.transition)] ?? "none")
|
|
405
|
+
css: knobProps.motion.control.transition
|
|
406
|
+
? (graphTransitionCss[String(knobProps.motion.control.transition)] ?? "none")
|
|
412
407
|
: "none",
|
|
413
408
|
colors: [],
|
|
414
409
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* MEASURED ON BOTH PLATFORMS at tasks 2.7 and 2.8, and it is the failure that
|
|
12
12
|
* looks most like nothing being wrong. The iPhone 16e's accessibility tree
|
|
13
13
|
* carried all ten mounted node bodies with correct titles, correct three-column
|
|
14
|
-
* geometry, and heights that MOVED when the space knob was flipped — every
|
|
14
|
+
* geometry, and heights that MOVED when the old space knob was flipped — every
|
|
15
15
|
* signal a reader would take as proof — while the screen showed white. There
|
|
16
16
|
* was no fallback, because there was no error: boot ran through to `ready`, the
|
|
17
17
|
* canvas was fine, and it had nowhere to paint. emulator-5592 looked identical.
|
package/types/index.d.ts
CHANGED
|
@@ -94,8 +94,8 @@ export type { OverviewNodeProps } from "./nodes/overviewNode";
|
|
|
94
94
|
export type { GraphPortProps } from "./nodes/GraphPort";
|
|
95
95
|
export { FINE_PORT_HIT_MIN, paintedPortSize, paintedPortSizePx, portConnectionRadius, portGeometry, portHitSize, portRegionInset, } from "./nodes/handleGeometry";
|
|
96
96
|
export type { PortGeometry, PortRect } from "./nodes/handleGeometry";
|
|
97
|
-
export { containerRadiusPx, defaultNodeMeasure, FINE_PORT_PITCH, graphNodeMeasure, graphNodeMinHeight, graphNodeRadius, graphNodeRadiusPx,
|
|
98
|
-
export type { GraphNodeMeasure, GraphNodePort, GraphNodeRadiusKnob, GraphNodeSizeKnob,
|
|
97
|
+
export { containerRadiusPx, defaultNodeMeasure, FINE_PORT_PITCH, graphNodeMeasure, graphNodeMinHeight, graphNodeRadius, graphNodeRadiusPx, graphNodeSize, graphNodeWidth, nodeRadiusTokenPx, portSpacing, verticalPortCrowd, } from "./nodes/nodeMeasure";
|
|
98
|
+
export type { GraphNodeMeasure, GraphNodePort, GraphNodeRadiusKnob, GraphNodeSizeKnob, GraphPortSide, } from "./nodes/nodeMeasure";
|
|
99
99
|
export { GraphVars, graphRootClassName, graphVarsSheet, useGraphCssVars, } from "./theme/GraphVarsStyle";
|
|
100
100
|
export type { GraphVarsProps } from "./theme/GraphVarsStyle";
|
|
101
101
|
export { graphCssVars } from "./theme/graphVars";
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9E,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAClF;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzF,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAA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iB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC/F,YAAY,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACZ,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* It uses the theme package's OWN components — `<Preset>`, `<Surface>`,
|
|
5
5
|
* `IntentContext.Provider` — and never raw `PresetContext.Provider`, so a later
|
|
6
|
-
* change to Preset's merge order or Surface's LC-
|
|
6
|
+
* change to Preset's merge order or Surface's LC-78 clamp cannot desync the two
|
|
7
7
|
* sides. Design: docs/design/node-graph-editor.md 6.1.
|
|
8
8
|
*/
|
|
9
9
|
import { type ReactNode } from "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnobEnvelopeProvider.d.ts","sourceRoot":"","sources":["../../src/knobs/KnobEnvelopeProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,KAAK,qBAAqB,EAA0B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"KnobEnvelopeProvider.d.ts","sourceRoot":"","sources":["../../src/knobs/KnobEnvelopeProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,KAAK,qBAAqB,EAA0B,MAAM,SAAS,CAAC;AAG7E,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,YAAY,CAAC;AAEjE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,WAAW,CAAC,EACpD,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACzC,MAAM,GAAG,SAAS,CAMpB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,yBAAyB,2CAkC7F"}
|
|
@@ -10,21 +10,15 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Design: docs/design/node-graph-editor.md section 6.1.
|
|
12
12
|
*/
|
|
13
|
-
import type { Knobs,
|
|
13
|
+
import type { Knobs, SurfaceSize } from "@multiplatform.one/theme";
|
|
14
14
|
/**
|
|
15
15
|
* `unset` is part of the surface vocabulary, and dropping it changes what
|
|
16
|
-
* resolves
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* density: "unset" }` (Surface.tsx:23-26) and `applySurfaceToKnobs`
|
|
21
|
-
* (useResolvedKnobs.ts:44-70) SKIPS an `unset` axis entirely. Coercing a host
|
|
22
|
-
* that sits under no `<Surface>` to "medium" would then step `knobs.size` down
|
|
23
|
-
* from `large`, and the rehydrated tree would resolve differently from the host
|
|
24
|
-
* it copied. So the envelope carries the third value.
|
|
16
|
+
* resolves: `SurfaceContext`'s default is `{ size: "unset" }` and
|
|
17
|
+
* `useResolvedKnobs` treats an `unset` ceiling as none. Coercing a host that
|
|
18
|
+
* sits under no `<Surface>` to a token would clamp the rehydrated tree where
|
|
19
|
+
* the host it copied was not clamped. So the envelope carries the value as is.
|
|
25
20
|
*/
|
|
26
|
-
export type GraphSurfaceSize = SurfaceSize
|
|
27
|
-
export type GraphSurfaceDensity = SurfaceDensity | "unset";
|
|
21
|
+
export type GraphSurfaceSize = SurfaceSize;
|
|
28
22
|
/** A face the DOM side has to register itself, because WKWebView cannot see an expo-font registration. */
|
|
29
23
|
export interface GraphFontRef {
|
|
30
24
|
readonly family: string;
|
|
@@ -34,7 +28,7 @@ export interface GraphFontRef {
|
|
|
34
28
|
readonly style?: "normal" | "italic";
|
|
35
29
|
}
|
|
36
30
|
/** Bumped when the envelope's shape changes in a way the DOM side must refuse. */
|
|
37
|
-
export declare const knobEnvelopeSchemaVersion =
|
|
31
|
+
export declare const knobEnvelopeSchemaVersion = 2;
|
|
38
32
|
export interface KnobEnvelope {
|
|
39
33
|
readonly schemaVersion: typeof knobEnvelopeSchemaVersion;
|
|
40
34
|
/** Fully merged host knobs: preset.knobs + every Preset override in the chain + props.knobs. */
|
|
@@ -55,7 +49,6 @@ export interface KnobEnvelope {
|
|
|
55
49
|
readonly intent: string | null;
|
|
56
50
|
readonly surface: {
|
|
57
51
|
readonly size: GraphSurfaceSize;
|
|
58
|
-
readonly density: GraphSurfaceDensity;
|
|
59
52
|
};
|
|
60
53
|
readonly scheme: "light" | "dark";
|
|
61
54
|
readonly themeName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/knobs/envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAa,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/knobs/envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAa,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,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gB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAQtD;AAED,oEAAoE;AACpE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAEnE;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAEpE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAS5D;AAED,kGAAkG;AAClG,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,GAAG,KAAK,CAG9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphNode.d.ts","sourceRoot":"","sources":["../../src/nodes/GraphNode.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"GraphNode.d.ts","sourceRoot":"","sources":["../../src/nodes/GraphNode.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAM1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAKnB,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,cAAc;IAC7B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC1C,mEAAmE;IACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC;IACtC,0EAA0E;IAC1E,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,0EAA0E;IAC1E,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,SAAS,CAAC;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAmBD,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,KAAK,EACL,QAAQ,EACR,KAAK,EACL,MAAM,EACN,QAAgB,EAChB,QAAgB,EAChB,OAAO,EACP,UAAqB,EACrB,aAAqB,EACrB,UAAU,EACV,QAAQ,GACT,EAAE,cAAc,2CAmJhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphPort.d.ts","sourceRoot":"","sources":["../../src/nodes/GraphPort.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"GraphPort.d.ts","sourceRoot":"","sources":["../../src/nodes/GraphPort.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAUnD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,IAAI,GAAG,KAAK,CAAC;IACjC,mEAAmE;IACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;OAQG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,mEAAmE;IACnE,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,IAAI,EACJ,SAAS,EACT,MAAM,EACN,aAAgC,EAChC,aAAa,EACb,aAAoB,GACrB,EAAE,cAAc,2CAuDhB"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* The laws, verbatim from §7.1:
|
|
7
7
|
*
|
|
8
|
-
* H1. The painted dot is 8 / 10 / 12 by the size
|
|
8
|
+
* H1. The painted dot is 8 / 10 / 12 by the size token and NEVER grows to 44.
|
|
9
9
|
* A 44 px painted dot is a different component.
|
|
10
10
|
* H2. The hit region is a pseudo-element, never element growth, because
|
|
11
11
|
* `getEdgePosition` reads the handle box's outer edge (`center` defaults
|
|
@@ -10,9 +10,14 @@
|
|
|
10
10
|
* the laws are falsifiable before a pixel exists.
|
|
11
11
|
*/
|
|
12
12
|
import { type Knobs } from "@multiplatform.one/theme";
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* The row of the per-kind tables a node reads: its size token's side of the
|
|
15
|
+
* default control size (`sizeTokenStop`), never the control-height recipe.
|
|
16
|
+
*/
|
|
17
|
+
export type GraphNodeSizeKnob = "small" | "medium" | "large";
|
|
15
18
|
export type GraphNodeRadiusKnob = Knobs["borderRadius"];
|
|
19
|
+
/** The table row for a resolved size token. */
|
|
20
|
+
export declare function graphNodeSize(sizeToken: string): GraphNodeSizeKnob;
|
|
16
21
|
export type GraphPortSide = "left" | "right" | "top" | "bottom";
|
|
17
22
|
/**
|
|
18
23
|
* The structural subset of `PortSpec` this module needs to measure a node.
|
|
@@ -42,16 +47,6 @@ export interface GraphNodeMeasure {
|
|
|
42
47
|
* above, rather than a number invented here.
|
|
43
48
|
*/
|
|
44
49
|
export declare const defaultNodeMeasure: Record<GraphNodeSizeKnob, GraphNodeMeasure>;
|
|
45
|
-
/**
|
|
46
|
-
* Container padding in px per `space` stop.
|
|
47
|
-
*
|
|
48
|
-
* Mirrors `panelPaddingPxMap` in `resolveKnobs.ts`, which is private to that
|
|
49
|
-
* module — the resolver mirrors the same numbers for the same reason (it stays
|
|
50
|
-
* pure, so it cannot read live tokens). `graphNode.spec.ts` pins this mirror
|
|
51
|
-
* against `capContainerRadius(..., "full")`, which returns the padding px
|
|
52
|
-
* itself, so a change in the resolver fails the spec here instead of drifting.
|
|
53
|
-
*/
|
|
54
|
-
export declare const nodePanelPaddingPx: Record<GraphNodeSpaceKnob, number>;
|
|
55
50
|
/**
|
|
56
51
|
* Vertical pitch between two ports on the same node edge.
|
|
57
52
|
*
|
|
@@ -69,7 +64,7 @@ export declare function portSpacing(opts: {
|
|
|
69
64
|
/**
|
|
70
65
|
* §11 Size, GraphNode frame: `remap` to `NodeKindSpec.measure.width`.
|
|
71
66
|
*
|
|
72
|
-
* The size
|
|
67
|
+
* The size token reaches the width only through the per-kind table. It never
|
|
73
68
|
* reaches the control-height recipe (`knobProps.control.height`), because a
|
|
74
69
|
* node is a container and a container that steps with a control ladder is a
|
|
75
70
|
* control wearing a frame.
|
|
@@ -105,22 +100,10 @@ export declare function graphNodeMinHeight(opts: {
|
|
|
105
100
|
*/
|
|
106
101
|
export declare function graphNodeRadius(knobs: {
|
|
107
102
|
readonly borderRadius: GraphNodeRadiusKnob;
|
|
108
|
-
readonly space: GraphNodeSpaceKnob;
|
|
109
103
|
}): string | number;
|
|
110
|
-
/**
|
|
111
|
-
* Radius TOKEN → px.
|
|
112
|
-
*
|
|
113
|
-
* Mirrors `borderRadiusMap` / `radiusPxMap` in `resolveKnobs.ts`, both private
|
|
114
|
-
* to that module. Needed because `capContainerRadius` returns either a token
|
|
115
|
-
* (`"$4"`) or a px number, and a rendered node has to report ONE number.
|
|
116
|
-
* `graphNode.spec.ts` pins the whole map against the doctrine table at every
|
|
117
|
-
* stop and space, so a token that stops meaning what it says fails there.
|
|
118
|
-
*/
|
|
104
|
+
/** The default scale's radius tokens; rendered nodes read the active scale. */
|
|
119
105
|
export declare const nodeRadiusTokenPx: Readonly<Record<string, number>>;
|
|
120
|
-
/**
|
|
121
|
-
* px for whatever `capContainerRadius` resolved to. A number is already the
|
|
122
|
-
* capped px; a token goes through the mirror above.
|
|
123
|
-
*/
|
|
106
|
+
/** px for a capped number or a radius token on the active scale. */
|
|
124
107
|
export declare function containerRadiusPx(value: string | number): number;
|
|
125
108
|
/**
|
|
126
109
|
* The same radius in px, resolved through the DG-RAD doctrine table rather
|
|
@@ -134,7 +117,6 @@ export declare function containerRadiusPx(value: string | number): number;
|
|
|
134
117
|
*/
|
|
135
118
|
export declare function graphNodeRadiusPx(knobs: {
|
|
136
119
|
readonly borderRadius: GraphNodeRadiusKnob;
|
|
137
|
-
readonly space: GraphNodeSpaceKnob;
|
|
138
120
|
}): number;
|
|
139
121
|
/** The complete measure a node is seeded with BEFORE first paint (design §5). */
|
|
140
122
|
export declare function graphNodeMeasure(opts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeMeasure.d.ts","sourceRoot":"","sources":["../../src/nodes/nodeMeasure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"nodeMeasure.d.ts","sourceRoot":"","sources":["../../src/nodes/nodeMeasure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAKL,KAAK,KAAK,EAKX,MAAM,0BAA0B,CAAC;AAElC;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC7D,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAExD,+CAA+C;AAC/C,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,iBAAiB,CAElE;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAA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CAGT;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;CAC5C,GAAG,MAAM,GAAG,MAAM,CAElB;AAED,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAK9D,CAAC;AAEF,oEAAoE;AACpE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAQhE;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAA;CAAE,GAAG,MAAM,CAM/F;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IACrC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IACzC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9C,GAAG,gBAAgB,CAKnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overviewNode.d.ts","sourceRoot":"","sources":["../../src/nodes/overviewNode.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"overviewNode.d.ts","sourceRoot":"","sources":["../../src/nodes/overviewNode.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGrE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC1C,mEAAmE;IACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7C,0EAA0E;IAC1E,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,wBAAgB,YAAY,CAAC,EAC3B,EAAE,EACF,KAAK,EACL,MAAM,EACN,QAAgB,EAChB,OAAO,EACP,aAAqB,GACtB,EAAE,iBAAiB,2CAyBnB"}
|
|
@@ -85,15 +85,6 @@ export interface GraphCssVarsOptions {
|
|
|
85
85
|
* does not have.
|
|
86
86
|
*/
|
|
87
87
|
export declare const spaceTokenPx: Readonly<Record<string, number>>;
|
|
88
|
-
/**
|
|
89
|
-
* `animation` token to a complete CSS `transition` shorthand.
|
|
90
|
-
*
|
|
91
|
-
* Mirrored, not imported: `animationConfig` is a platform twin
|
|
92
|
-
* (`animations/index.web.ts` -> `./css` gives these strings, `./reactNative`
|
|
93
|
-
* gives spring objects), and this function runs on the NATIVE host too — it
|
|
94
|
-
* builds the vars that cross into the WebView. `graphVars.spec.ts` asserts the
|
|
95
|
-
* mirror against the web twin.
|
|
96
|
-
*/
|
|
97
88
|
export declare const graphTransitionCss: Readonly<Record<string, string>>;
|
|
98
89
|
/** GraphPort painted disc, by the `size` knob (design 11, Size). Never 44 — that is the HIT value. */
|
|
99
90
|
export declare const handlePaintedPx: Readonly<Record<string, number>>;
|
|
@@ -133,7 +124,7 @@ export declare function withAlpha(color: string | undefined, alpha: number): str
|
|
|
133
124
|
* `knobProps.elevationChrome` as a CSS box-shadow.
|
|
134
125
|
*
|
|
135
126
|
* On web `elevationChrome.style.boxShadow` is already the house shadow string
|
|
136
|
-
*
|
|
127
|
+
* with `var(--shadowColor)`, resolved here to the raw theme colour. On the
|
|
137
128
|
* NATIVE host that key is absent — `elevationPaint` only sets it under `isWeb`
|
|
138
129
|
* — and the shadow is rebuilt from the paint props, resolving a `$token`
|
|
139
130
|
* shadow colour through the theme. `elevation: "none"` resolves to an empty
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphVars.d.ts","sourceRoot":"","sources":["../../src/theme/graphVars.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"graphVars.d.ts","sourceRoot":"","sources":["../../src/theme/graphVars.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,0BAA0B,CAAC;AAKlC;;;;;;;;;;GAUG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oEAAoE;IACpE,QAAQ,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAClD,mEAAmE;IACnE,QAAQ,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACnD;AAID;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAe3D,CAAC;AAIF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CA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