@cardenelabs/cdl 0.124.0 → 0.125.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/CHANGELOG.md +43 -1
- package/README.md +8 -0
- package/dist/index.cjs +873 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +873 -143
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +858 -142
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +858 -142
- package/dist/react.js.map +1 -1
- package/dist/{render-U6omSNH2.d.cts → render-7yEHIUK1.d.cts} +57 -3
- package/dist/{render-U6omSNH2.d.ts → render-7yEHIUK1.d.ts} +57 -3
- package/package.json +12 -9
- package/src/builder.ts +6 -0
- package/src/index.ts +4 -0
- package/src/kinds/card.tsx +12 -4
- package/src/kinds/generic.tsx +19 -9
- package/src/kinds/station.tsx +105 -19
- package/src/kinds/terminal-mark.tsx +36 -9
- package/src/layout/edges.ts +77 -24
- package/src/layout/lanes.ts +69 -5
- package/src/layout/legend.ts +68 -0
- package/src/layout/metro-path.ts +123 -30
- package/src/layout/nodes.ts +13 -2
- package/src/layout/spec.ts +17 -1
- package/src/layout/tokens.ts +8 -1
- package/src/layout.ts +20 -2
- package/src/render/edge-head.ts +6 -0
- package/src/render/edges.tsx +27 -6
- package/src/render/legend.tsx +120 -0
- package/src/render/nodes.tsx +21 -5
- package/src/render/stage.tsx +255 -10
- package/src/render/template-fields.ts +2 -0
- package/src/types.ts +106 -5
- package/src/validate.ts +5 -0
- package/src/visual-validate.ts +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CdlDiagram, S as Signal, a as CdlInput, b as CdlLane, c as CdlNode, T as Tone, d as Side, E as EdgeStyle, e as EdgeRole, f as EdgeHead, g as EdgeHeadFill, h as EdgeRouting, i as CdlState, j as CdlInputOption, k as CdlEventTarget, l as CdlLang, m as CdlTextMetrics, n as Computed, o as CdlDerivedValue, p as CdlScrollTrigger, L as LaidDiagram, q as CdlDiagramViewProps, r as LaidEdge, s as LaidNode, t as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey, u as TreeNodePayload } from './render-
|
|
2
|
-
export { v as CdlDiagramView, w as CdlEventBinding, x as CdlEventKind, y as CdlFormula, z as
|
|
1
|
+
import { C as CdlDiagram, S as Signal, a as CdlInput, b as CdlLane, c as CdlNode, T as Tone, d as Side, E as EdgeStyle, e as EdgeRole, f as EdgeHead, g as EdgeHeadFill, h as EdgeRouting, i as CdlState, j as CdlInputOption, k as CdlEventTarget, l as CdlLang, m as CdlTextMetrics, n as Computed, o as CdlDerivedValue, p as CdlScrollTrigger, L as LaidDiagram, q as CdlDiagramViewProps, r as LaidEdge, s as LaidNode, t as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey, u as TreeNodePayload } from './render-7yEHIUK1.cjs';
|
|
2
|
+
export { v as CdlDiagramView, w as CdlEventBinding, x as CdlEventKind, y as CdlFormula, z as CdlLegendItem, A as CdlPhase, D as ChartPieForm, F as ChartSlopeForm, G as EDGE_HEADS, H as EDGE_HEAD_DEFAULT, I as EDGE_HEAD_FILLS, K as EDGE_HEAD_FILL_DEFAULT, M as EDGE_REVEALS, O as EDGE_REVEAL_DEFAULT, P as EDGE_STYLES, U as EdgeReveal, V as InteractiveHandlerMap, W as InteractiveSignalsAccessor, X as LEGEND_MARKS, Y as LaidLane, Z as LaidLegendItem, _ as LegendMark, $ as NODE_KINDS, a0 as RELATION_FOCUSES, a1 as RELATION_FOCUS_DEFAULT, a2 as RelationFocus, a3 as ScrollProgressHandle, a4 as TONES, a5 as computeEventBindingKey, a6 as computeFormulaKey, a7 as computeInputSignalKey, a8 as computeScrollTriggerKey, a9 as computed, aa as createInteractiveSignalsAccessor, ab as createScrollProgressHandle, ac as createScrollProgressSignals, ad as hasInteractivePrimitives, ae as resolveLang, af as sequenceBoardMetrics, ag as sequenceStepId, ah as signal } from './render-7yEHIUK1.cjs';
|
|
3
3
|
import { JSX } from 'react';
|
|
4
4
|
|
|
5
5
|
declare function effect(fn: () => void | (() => void)): () => void;
|
|
@@ -1238,6 +1238,8 @@ declare function diagram(id: string, options: {
|
|
|
1238
1238
|
* この図がどの種類か (#645)。 詳しくは `CdlDiagram.type` の説明を参照。
|
|
1239
1239
|
*/
|
|
1240
1240
|
type?: string;
|
|
1241
|
+
/** SVG 内の図の下へ置く共通凡例。 */
|
|
1242
|
+
legend?: CdlDiagram["legend"];
|
|
1241
1243
|
}): DiagramBuilder;
|
|
1242
1244
|
|
|
1243
1245
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CdlDiagram, S as Signal, a as CdlInput, b as CdlLane, c as CdlNode, T as Tone, d as Side, E as EdgeStyle, e as EdgeRole, f as EdgeHead, g as EdgeHeadFill, h as EdgeRouting, i as CdlState, j as CdlInputOption, k as CdlEventTarget, l as CdlLang, m as CdlTextMetrics, n as Computed, o as CdlDerivedValue, p as CdlScrollTrigger, L as LaidDiagram, q as CdlDiagramViewProps, r as LaidEdge, s as LaidNode, t as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey, u as TreeNodePayload } from './render-
|
|
2
|
-
export { v as CdlDiagramView, w as CdlEventBinding, x as CdlEventKind, y as CdlFormula, z as
|
|
1
|
+
import { C as CdlDiagram, S as Signal, a as CdlInput, b as CdlLane, c as CdlNode, T as Tone, d as Side, E as EdgeStyle, e as EdgeRole, f as EdgeHead, g as EdgeHeadFill, h as EdgeRouting, i as CdlState, j as CdlInputOption, k as CdlEventTarget, l as CdlLang, m as CdlTextMetrics, n as Computed, o as CdlDerivedValue, p as CdlScrollTrigger, L as LaidDiagram, q as CdlDiagramViewProps, r as LaidEdge, s as LaidNode, t as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey, u as TreeNodePayload } from './render-7yEHIUK1.js';
|
|
2
|
+
export { v as CdlDiagramView, w as CdlEventBinding, x as CdlEventKind, y as CdlFormula, z as CdlLegendItem, A as CdlPhase, D as ChartPieForm, F as ChartSlopeForm, G as EDGE_HEADS, H as EDGE_HEAD_DEFAULT, I as EDGE_HEAD_FILLS, K as EDGE_HEAD_FILL_DEFAULT, M as EDGE_REVEALS, O as EDGE_REVEAL_DEFAULT, P as EDGE_STYLES, U as EdgeReveal, V as InteractiveHandlerMap, W as InteractiveSignalsAccessor, X as LEGEND_MARKS, Y as LaidLane, Z as LaidLegendItem, _ as LegendMark, $ as NODE_KINDS, a0 as RELATION_FOCUSES, a1 as RELATION_FOCUS_DEFAULT, a2 as RelationFocus, a3 as ScrollProgressHandle, a4 as TONES, a5 as computeEventBindingKey, a6 as computeFormulaKey, a7 as computeInputSignalKey, a8 as computeScrollTriggerKey, a9 as computed, aa as createInteractiveSignalsAccessor, ab as createScrollProgressHandle, ac as createScrollProgressSignals, ad as hasInteractivePrimitives, ae as resolveLang, af as sequenceBoardMetrics, ag as sequenceStepId, ah as signal } from './render-7yEHIUK1.js';
|
|
3
3
|
import { JSX } from 'react';
|
|
4
4
|
|
|
5
5
|
declare function effect(fn: () => void | (() => void)): () => void;
|
|
@@ -1238,6 +1238,8 @@ declare function diagram(id: string, options: {
|
|
|
1238
1238
|
* この図がどの種類か (#645)。 詳しくは `CdlDiagram.type` の説明を参照。
|
|
1239
1239
|
*/
|
|
1240
1240
|
type?: string;
|
|
1241
|
+
/** SVG 内の図の下へ置く共通凡例。 */
|
|
1242
|
+
legend?: CdlDiagram["legend"];
|
|
1241
1243
|
}): DiagramBuilder;
|
|
1242
1244
|
|
|
1243
1245
|
/**
|