@cardenelabs/cdl 0.38.0 → 0.39.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/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 CdlState, i as CdlEventTarget, j as Computed, k as CdlDerivedValue, l as CdlScrollTrigger, L as LaidDiagram, m as CdlDiagramViewProps, n as LaidEdge, o as LaidNode, p as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey } from './render-BYdmSviQ.cjs';
2
- export { q as CdlDiagramView, r as CdlEventBinding, s as CdlEventKind, t as CdlFormula, u as CdlPhase, v as ChartPieForm, w as ChartSlopeForm, x as EDGE_HEADS, y as EDGE_HEAD_DEFAULT, z as EDGE_HEAD_FILLS, A as EDGE_HEAD_FILL_DEFAULT, D as EDGE_REVEALS, F as EDGE_REVEAL_DEFAULT, G as EDGE_STYLES, H as EdgeReveal, I as InteractiveHandlerMap, K as InteractiveSignalsAccessor, M as LaidLane, O as NODE_KINDS, P as ScrollProgressHandle, U as TONES, V as computeEventBindingKey, W as computeFormulaKey, X as computeInputSignalKey, Y as computeScrollTriggerKey, Z as computed, _ as createInteractiveSignalsAccessor, $ as createScrollProgressHandle, a0 as createScrollProgressSignals, a1 as hasInteractivePrimitives, a2 as sequenceBoardMetrics, a3 as sequenceStepId, a4 as signal } from './render-BYdmSviQ.cjs';
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 CdlState, i as CdlEventTarget, j as Computed, k as CdlDerivedValue, l as CdlScrollTrigger, L as LaidDiagram, m as CdlDiagramViewProps, n as LaidEdge, o as LaidNode, p as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey } from './render-B1ArenZ7.cjs';
2
+ export { q as CdlDiagramView, r as CdlEventBinding, s as CdlEventKind, t as CdlFormula, u as CdlPhase, v as ChartPieForm, w as ChartSlopeForm, x as EDGE_HEADS, y as EDGE_HEAD_DEFAULT, z as EDGE_HEAD_FILLS, A as EDGE_HEAD_FILL_DEFAULT, D as EDGE_REVEALS, F as EDGE_REVEAL_DEFAULT, G as EDGE_STYLES, H as EdgeReveal, I as InteractiveHandlerMap, K as InteractiveSignalsAccessor, M as LaidLane, O as NODE_KINDS, P as ScrollProgressHandle, U as TONES, V as computeEventBindingKey, W as computeFormulaKey, X as computeInputSignalKey, Y as computeScrollTriggerKey, Z as computed, _ as createInteractiveSignalsAccessor, $ as createScrollProgressHandle, a0 as createScrollProgressSignals, a1 as hasInteractivePrimitives, a2 as sequenceBoardMetrics, a3 as sequenceStepId, a4 as signal } from './render-B1ArenZ7.cjs';
3
3
  import { JSX } from 'react';
4
4
 
5
5
  declare function effect(fn: () => void | (() => void)): () => void;
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 CdlState, i as CdlEventTarget, j as Computed, k as CdlDerivedValue, l as CdlScrollTrigger, L as LaidDiagram, m as CdlDiagramViewProps, n as LaidEdge, o as LaidNode, p as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey } from './render-BYdmSviQ.js';
2
- export { q as CdlDiagramView, r as CdlEventBinding, s as CdlEventKind, t as CdlFormula, u as CdlPhase, v as ChartPieForm, w as ChartSlopeForm, x as EDGE_HEADS, y as EDGE_HEAD_DEFAULT, z as EDGE_HEAD_FILLS, A as EDGE_HEAD_FILL_DEFAULT, D as EDGE_REVEALS, F as EDGE_REVEAL_DEFAULT, G as EDGE_STYLES, H as EdgeReveal, I as InteractiveHandlerMap, K as InteractiveSignalsAccessor, M as LaidLane, O as NODE_KINDS, P as ScrollProgressHandle, U as TONES, V as computeEventBindingKey, W as computeFormulaKey, X as computeInputSignalKey, Y as computeScrollTriggerKey, Z as computed, _ as createInteractiveSignalsAccessor, $ as createScrollProgressHandle, a0 as createScrollProgressSignals, a1 as hasInteractivePrimitives, a2 as sequenceBoardMetrics, a3 as sequenceStepId, a4 as signal } from './render-BYdmSviQ.js';
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 CdlState, i as CdlEventTarget, j as Computed, k as CdlDerivedValue, l as CdlScrollTrigger, L as LaidDiagram, m as CdlDiagramViewProps, n as LaidEdge, o as LaidNode, p as CdlEdge, B as BBox, R as RowMark, N as NodeKind, J as JourneyEmotion, Q as QuadrantKey } from './render-B1ArenZ7.js';
2
+ export { q as CdlDiagramView, r as CdlEventBinding, s as CdlEventKind, t as CdlFormula, u as CdlPhase, v as ChartPieForm, w as ChartSlopeForm, x as EDGE_HEADS, y as EDGE_HEAD_DEFAULT, z as EDGE_HEAD_FILLS, A as EDGE_HEAD_FILL_DEFAULT, D as EDGE_REVEALS, F as EDGE_REVEAL_DEFAULT, G as EDGE_STYLES, H as EdgeReveal, I as InteractiveHandlerMap, K as InteractiveSignalsAccessor, M as LaidLane, O as NODE_KINDS, P as ScrollProgressHandle, U as TONES, V as computeEventBindingKey, W as computeFormulaKey, X as computeInputSignalKey, Y as computeScrollTriggerKey, Z as computed, _ as createInteractiveSignalsAccessor, $ as createScrollProgressHandle, a0 as createScrollProgressSignals, a1 as hasInteractivePrimitives, a2 as sequenceBoardMetrics, a3 as sequenceStepId, a4 as signal } from './render-B1ArenZ7.js';
3
3
  import { JSX } from 'react';
4
4
 
5
5
  declare function effect(fn: () => void | (() => void)): () => void;
package/dist/index.js CHANGED
@@ -20806,7 +20806,10 @@ var DRAW_KINDS = /* @__PURE__ */ new Set([
20806
20806
  "mind-map",
20807
20807
  "tree-hierarchy",
20808
20808
  "gantt-timeline",
20809
- "funnel-stages"
20809
+ "funnel-stages",
20810
+ "chart-gauge",
20811
+ "chart-radial",
20812
+ "chart-stacked-bar"
20810
20813
  ]);
20811
20814
  var KINDS = new Set(NODE_KINDS);
20812
20815
  var ENG_BANNED = /\b(FUNCTION|STORAGE|EVENT LOG|BALANCES MAPPING|READ|WRITE|EMIT|CALL)\b/;
@@ -24352,6 +24355,15 @@ function interpolateColor(template, stateValues, fallback) {
24352
24355
  if (!template) return fallback;
24353
24356
  return interpolate(template, stateValues);
24354
24357
  }
24358
+ function \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, r, \u958B\u304D, \u8D77\u70B9 = -Math.PI / 2, \u5168\u5468 = Math.PI * 2) {
24359
+ if (\u958B\u304D <= 0) return null;
24360
+ if (\u958B\u304D >= 1 && \u5168\u5468 >= Math.PI * 2) return /* @__PURE__ */ jsx("circle", { cx, cy, r });
24361
+ const a0 = \u8D77\u70B9;
24362
+ const a1 = a0 + Math.min(1, \u958B\u304D) * \u5168\u5468;
24363
+ const large = a1 - a0 > Math.PI ? 1 : 0;
24364
+ const d = `M ${cx} ${cy} L ${cx + r * Math.cos(a0)} ${cy + r * Math.sin(a0)} A ${r} ${r} 0 ${large} 1 ${cx + r * Math.cos(a1)} ${cy + r * Math.sin(a1)} Z`;
24365
+ return /* @__PURE__ */ jsx("path", { d });
24366
+ }
24355
24367
 
24356
24368
  // src/kinds/chart-number.ts
24357
24369
  function \u5B9F\u5024\u8868\u8A18(v) {
@@ -24799,15 +24811,6 @@ function \u8F2A\u306E\u9053(cx, cy, R, r, a0, a1) {
24799
24811
  const large = a1 - a0 > Math.PI ? 1 : 0;
24800
24812
  return `M ${cx + R * Math.cos(a0)} ${cy + R * Math.sin(a0)} A ${R} ${R} 0 ${large} 1 ${cx + R * Math.cos(a1)} ${cy + R * Math.sin(a1)} L ${cx + r * Math.cos(a1)} ${cy + r * Math.sin(a1)} A ${r} ${r} 0 ${large} 0 ${cx + r * Math.cos(a0)} ${cy + r * Math.sin(a0)} Z`;
24801
24813
  }
24802
- function \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, r, \u958B\u304D) {
24803
- if (\u958B\u304D <= 0) return null;
24804
- if (\u958B\u304D >= 1) return /* @__PURE__ */ jsx("circle", { cx, cy, r });
24805
- const a0 = -Math.PI / 2;
24806
- const a1 = a0 + \u958B\u304D * Math.PI * 2;
24807
- const large = \u958B\u304D > 0.5 ? 1 : 0;
24808
- const d = `M ${cx} ${cy} L ${cx + r * Math.cos(a0)} ${cy + r * Math.sin(a0)} A ${r} ${r} 0 ${large} 1 ${cx + r * Math.cos(a1)} ${cy + r * Math.sin(a1)} Z`;
24809
- return /* @__PURE__ */ jsx("path", { d });
24810
- }
24811
24814
  function sliceColor(tone, idx) {
24812
24815
  if (tone) return TONE[tone];
24813
24816
  return chartSeriesColor(idx);
@@ -24815,7 +24818,9 @@ function sliceColor(tone, idx) {
24815
24818
  function ChartGaugeNode({
24816
24819
  node,
24817
24820
  active,
24818
- stateValues = {}
24821
+ stateValues = {},
24822
+ drawing = false,
24823
+ progress = 1
24819
24824
  }) {
24820
24825
  const x0 = node.cx - node.w / 2;
24821
24826
  const y0 = node.cy - node.h / 2;
@@ -24860,6 +24865,21 @@ function ChartGaugeNode({
24860
24865
  const \u898B\u51FA\u3057\u306E\u7D1A = Math.max(9, Math.round(\u5408\u8A08\u306E\u7D1A * 0.38));
24861
24866
  const \u5185\u8A33\u306E\u5E45 = \u4F7F\u3048\u308B\u5E452 / Math.max(data.length, 1);
24862
24867
  const \u5185\u8A33\u306Ey = cy + \u5F27\u3068\u5185\u8A33\u306E\u9593;
24868
+ const \u4F38\u3073 = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
24869
+ const \u5207\u308A\u629C\u304Did = `cdl-gauge-draw-${useId().replace(/[^A-Za-z0-9_-]/g, "")}`;
24870
+ const \u5F27\u305F\u3061 = slices.map((s, idx) => /* @__PURE__ */ jsx(
24871
+ "path",
24872
+ {
24873
+ "data-cdl-role": "chart-gauge-arc",
24874
+ "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
24875
+ d: s.path,
24876
+ fill: arcColor(s.d.tone, idx),
24877
+ stroke: "var(--cdl-node-fill, #ffffff)",
24878
+ strokeWidth: 3,
24879
+ strokeLinejoin: "round"
24880
+ },
24881
+ `arc-${idx}`
24882
+ ));
24863
24883
  return /* @__PURE__ */ jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
24864
24884
  /* @__PURE__ */ jsx(
24865
24885
  "rect",
@@ -24875,19 +24895,8 @@ function ChartGaugeNode({
24875
24895
  strokeWidth: active ? 3 : 1.25
24876
24896
  }
24877
24897
  ),
24878
- slices.map((s, idx) => /* @__PURE__ */ jsx(
24879
- "path",
24880
- {
24881
- "data-cdl-role": "chart-gauge-arc",
24882
- "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
24883
- d: s.path,
24884
- fill: arcColor(s.d.tone, idx),
24885
- stroke: "var(--cdl-node-fill, #ffffff)",
24886
- strokeWidth: 3,
24887
- strokeLinejoin: "round"
24888
- },
24889
- `arc-${idx}`
24890
- )),
24898
+ drawing && /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: \u5207\u308A\u629C\u304Did, children: \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, radius + 2, \u4F38\u3073, Math.PI, Math.PI) }) }),
24899
+ drawing ? /* @__PURE__ */ jsx("g", { clipPath: `url(#${\u5207\u308A\u629C\u304Did})`, children: \u5F27\u305F\u3061 }) : \u5F27\u305F\u3061,
24891
24900
  /* @__PURE__ */ jsx(
24892
24901
  "text",
24893
24902
  {
@@ -24952,7 +24961,9 @@ function arcColor(tone, idx) {
24952
24961
  function ChartRadialNode({
24953
24962
  node,
24954
24963
  active,
24955
- stateValues = {}
24964
+ stateValues = {},
24965
+ drawing = false,
24966
+ progress = 1
24956
24967
  }) {
24957
24968
  const x0 = node.cx - node.w / 2;
24958
24969
  const y0 = node.cy - node.h / 2;
@@ -24991,6 +25002,20 @@ function ChartRadialNode({
24991
25002
  };
24992
25003
  });
24993
25004
  const \u4E00\u89A7\u306E\u59CB\u307E\u308A = PAD + (\u4F7F\u3048\u308B\u9AD8\u3055 - \u884C\u306E\u9AD8\u3055 * data.length) / 2 + \u884C\u306E\u9AD8\u3055 / 2;
25005
+ const \u958B\u304D = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
25006
+ const \u5207\u308A\u629C\u304Did = `cdl-radial-draw-${useId().replace(/[^A-Za-z0-9_-]/g, "")}`;
25007
+ const \u53D6\u308A\u5206\u305F\u3061 = rings.map(
25008
+ (r, idx) => r.\u53D6\u308A\u5206 === null ? null : /* @__PURE__ */ jsx(
25009
+ "path",
25010
+ {
25011
+ "data-cdl-role": "chart-radial-arc",
25012
+ "data-cdl-unresolved": r.d.unresolved ? "true" : void 0,
25013
+ d: r.\u53D6\u308A\u5206,
25014
+ fill: arcColor2(r.d.tone, idx)
25015
+ },
25016
+ `arc-${idx}`
25017
+ )
25018
+ );
24994
25019
  return /* @__PURE__ */ jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
24995
25020
  /* @__PURE__ */ jsx(
24996
25021
  "rect",
@@ -25016,18 +25041,8 @@ function ChartRadialNode({
25016
25041
  },
25017
25042
  `track-${idx}`
25018
25043
  )),
25019
- rings.map(
25020
- (r, idx) => r.\u53D6\u308A\u5206 === null ? null : /* @__PURE__ */ jsx(
25021
- "path",
25022
- {
25023
- "data-cdl-role": "chart-radial-arc",
25024
- "data-cdl-unresolved": r.d.unresolved ? "true" : void 0,
25025
- d: r.\u53D6\u308A\u5206,
25026
- fill: arcColor2(r.d.tone, idx)
25027
- },
25028
- `arc-${idx}`
25029
- )
25030
- ),
25044
+ drawing && /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: \u5207\u308A\u629C\u304Did, children: \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(\u5F27\u306Ecx, cy, \u5916\u534A\u5F84 + \u5E2F\u306E\u5E45, \u958B\u304D) }) }),
25045
+ drawing ? /* @__PURE__ */ jsx("g", { clipPath: `url(#${\u5207\u308A\u629C\u304Did})`, children: \u53D6\u308A\u5206\u305F\u3061 }) : \u53D6\u308A\u5206\u305F\u3061,
25031
25046
  data.map((d, idx) => {
25032
25047
  const y = \u4E00\u89A7\u306E\u59CB\u307E\u308A + \u884C\u306E\u9AD8\u3055 * idx;
25033
25048
  return /* @__PURE__ */ jsxs("g", { "data-cdl-role": "chart-radial-item", children: [
@@ -25350,7 +25365,9 @@ var SLICE_MIN_W_FOR_VALUE = 84;
25350
25365
  function ChartStackedBarNode({
25351
25366
  node,
25352
25367
  active,
25353
- stateValues = {}
25368
+ stateValues = {},
25369
+ drawing = false,
25370
+ progress = 1
25354
25371
  }) {
25355
25372
  const x0 = node.cx - node.w / 2;
25356
25373
  const y0 = node.cy - node.h / 2;
@@ -25368,6 +25385,8 @@ function ChartStackedBarNode({
25368
25385
  const \u4E00\u89A7\u306E\u9AD8\u3055 = 26;
25369
25386
  const \u5168\u4F53\u306E\u9AD8\u3055 = \u5E2F\u305F\u3061.length * \u5E2F\u306E\u9AD8\u3055 + (\u5E2F\u305F\u3061.length - 1) * \u5E2F\u306E\u9593 + 16 + \u4E00\u89A7\u306E\u9AD8\u3055;
25370
25387
  const \u4E0A\u7AEF = Math.max(PAD, (node.h - \u5168\u4F53\u306E\u9AD8\u3055) / 2);
25388
+ const \u4F38\u3073 = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
25389
+ const \u5207\u308A\u629C\u304Did = `cdl-stacked-bar-draw-${useId().replace(/[^A-Za-z0-9_-]/g, "")}`;
25371
25390
  return /* @__PURE__ */ jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
25372
25391
  /* @__PURE__ */ jsx(
25373
25392
  "rect",
@@ -25383,6 +25402,7 @@ function ChartStackedBarNode({
25383
25402
  strokeWidth: active ? 3 : 1.25
25384
25403
  }
25385
25404
  ),
25405
+ drawing && /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: \u5207\u308A\u629C\u304Did, children: /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: \u5E2F\u306E\u5DE6 + \u5E2F\u306E\u5E45 * \u4F38\u3073, height: node.h }) }) }),
25386
25406
  \u5E2F\u305F\u3061.map((\u5E2F, \u6BB5) => {
25387
25407
  const y = \u4E0A\u7AEF + \u6BB5 * (\u5E2F\u306E\u9AD8\u3055 + \u5E2F\u306E\u9593);
25388
25408
  let \u5DE6 = \u5E2F\u306E\u5DE6;
@@ -25399,68 +25419,62 @@ function ChartStackedBarNode({
25399
25419
  children: \u5E2F.\u540D\u524D
25400
25420
  }
25401
25421
  ),
25402
- \u5E2F.\u533A\u753B.map((s, idx) => {
25403
- const w = \u5E2F\u306E\u5E45 * s.\u5272\u5408;
25404
- const x = \u5DE6;
25405
- \u5DE6 += w;
25406
- const \u8272 = \u5370\u306E\u82723(s.tone, idx);
25407
- return /* @__PURE__ */ jsxs("g", { children: [
25408
- /* @__PURE__ */ jsx(
25409
- "rect",
25410
- {
25411
- "data-cdl-role": "chart-stacked-bar-slice",
25412
- "data-cdl-unresolved": s.unresolved ? "true" : void 0,
25413
- x,
25414
- y,
25415
- width: Math.max(0, w),
25416
- height: \u5E2F\u306E\u9AD8\u3055,
25417
- fill: \u8272
25418
- }
25419
- ),
25420
- w >= SLICE_MIN_W_FOR_TEXT && /* @__PURE__ */ jsx(
25421
- "text",
25422
- {
25423
- "data-cdl-role": "chart-stacked-bar-slice-text",
25424
- x: x + w / 2,
25425
- y: y + \u5E2F\u306E\u9AD8\u3055 / 2 + (w >= SLICE_MIN_W_FOR_VALUE ? -2 : 4),
25426
- fontSize: \u533A\u753B\u306E\u7D1A,
25427
- fontWeight: 700,
25428
- textAnchor: "middle",
25429
- fill: "#ffffff",
25430
- children: \u5272\u5408\u8868\u8A18(s.\u5272\u5408)
25431
- }
25432
- ),
25433
- w >= SLICE_MIN_W_FOR_VALUE && /* @__PURE__ */ jsx(
25434
- "text",
25435
- {
25436
- "data-cdl-role": "chart-stacked-bar-slice-value",
25437
- x: x + w / 2,
25438
- y: y + \u5E2F\u306E\u9AD8\u3055 / 2 + 13,
25439
- fontSize: \u533A\u753B\u306E\u7D1A - 1,
25440
- textAnchor: "middle",
25441
- fill: "#ffffff",
25442
- fillOpacity: 0.85,
25443
- children: \u5B9F\u5024\u8868\u8A18(s.\u5B9F\u5024)
25444
- }
25445
- )
25446
- ] }, `slice-${idx}`);
25447
- })
25422
+ (() => {
25423
+ const \u533A\u753B\u305F\u3061 = \u5E2F.\u533A\u753B.map((s, idx) => {
25424
+ const w = \u5E2F\u306E\u5E45 * s.\u5272\u5408;
25425
+ const x = \u5DE6;
25426
+ \u5DE6 += w;
25427
+ const \u8272 = \u5370\u306E\u82723(s.tone, idx);
25428
+ return /* @__PURE__ */ jsxs("g", { children: [
25429
+ /* @__PURE__ */ jsx(
25430
+ "rect",
25431
+ {
25432
+ "data-cdl-role": "chart-stacked-bar-slice",
25433
+ "data-cdl-unresolved": s.unresolved ? "true" : void 0,
25434
+ x,
25435
+ y,
25436
+ width: Math.max(0, w),
25437
+ height: \u5E2F\u306E\u9AD8\u3055,
25438
+ fill: \u8272
25439
+ }
25440
+ ),
25441
+ w >= SLICE_MIN_W_FOR_TEXT && /* @__PURE__ */ jsx(
25442
+ "text",
25443
+ {
25444
+ "data-cdl-role": "chart-stacked-bar-slice-text",
25445
+ x: x + w / 2,
25446
+ y: y + \u5E2F\u306E\u9AD8\u3055 / 2 + (w >= SLICE_MIN_W_FOR_VALUE ? -2 : 4),
25447
+ fontSize: \u533A\u753B\u306E\u7D1A,
25448
+ fontWeight: 700,
25449
+ textAnchor: "middle",
25450
+ fill: "#ffffff",
25451
+ children: \u5272\u5408\u8868\u8A18(s.\u5272\u5408)
25452
+ }
25453
+ ),
25454
+ w >= SLICE_MIN_W_FOR_VALUE && /* @__PURE__ */ jsx(
25455
+ "text",
25456
+ {
25457
+ "data-cdl-role": "chart-stacked-bar-slice-value",
25458
+ x: x + w / 2,
25459
+ y: y + \u5E2F\u306E\u9AD8\u3055 / 2 + 13,
25460
+ fontSize: \u533A\u753B\u306E\u7D1A - 1,
25461
+ textAnchor: "middle",
25462
+ fill: "#ffffff",
25463
+ fillOpacity: 0.85,
25464
+ children: \u5B9F\u5024\u8868\u8A18(s.\u5B9F\u5024)
25465
+ }
25466
+ )
25467
+ ] }, `slice-${idx}`);
25468
+ });
25469
+ return drawing ? /* @__PURE__ */ jsx("g", { clipPath: `url(#${\u5207\u308A\u629C\u304Did})`, children: \u533A\u753B\u305F\u3061 }) : \u533A\u753B\u305F\u3061;
25470
+ })()
25448
25471
  ] }, `bar-${\u6BB5}`);
25449
25472
  }),
25450
25473
  \u4E00\u89A7\u306E\u4E26\u3073(data, \u5E2F\u306E\u5DE6, node.w - PAD, \u540D\u524D\u306E\u7D1A).map(({ d, idx, x, \u884C }) => {
25451
25474
  const y = \u4E0A\u7AEF + \u5E2F\u305F\u3061.length * (\u5E2F\u306E\u9AD8\u3055 + \u5E2F\u306E\u9593) - \u5E2F\u306E\u9593 + 16 + \u4E00\u89A7\u306E\u9AD8\u3055 / 2 + \u884C * \u4E00\u89A7\u306E\u9AD8\u3055;
25452
25475
  return /* @__PURE__ */ jsxs("g", { "data-cdl-role": "chart-stacked-bar-legend", children: [
25453
25476
  /* @__PURE__ */ jsx("rect", { x, y: y - 5, width: 10, height: 10, rx: 2, fill: \u5370\u306E\u82723(d.tone, idx) }),
25454
- /* @__PURE__ */ jsx(
25455
- "text",
25456
- {
25457
- x: x + 16,
25458
- y: y + 4,
25459
- fontSize: \u540D\u524D\u306E\u7D1A,
25460
- fill: "var(--cdl-text, #1a1f2a)",
25461
- children: d.label
25462
- }
25463
- )
25477
+ /* @__PURE__ */ jsx("text", { x: x + 16, y: y + 4, fontSize: \u540D\u524D\u306E\u7D1A, fill: "var(--cdl-text, #1a1f2a)", children: d.label })
25464
25478
  ] }, `legend-${idx}`);
25465
25479
  })
25466
25480
  ] });
@@ -30421,9 +30435,27 @@ function CdlNodeView({
30421
30435
  }
30422
30436
  );
30423
30437
  case "chart-gauge":
30424
- return /* @__PURE__ */ jsx(ChartGaugeNode, { node: resolvedNode, active, stateValues });
30438
+ return /* @__PURE__ */ jsx(
30439
+ ChartGaugeNode,
30440
+ {
30441
+ node: resolvedNode,
30442
+ active,
30443
+ stateValues,
30444
+ drawing,
30445
+ progress
30446
+ }
30447
+ );
30425
30448
  case "chart-stacked-bar":
30426
- return /* @__PURE__ */ jsx(ChartStackedBarNode, { node: resolvedNode, active, stateValues });
30449
+ return /* @__PURE__ */ jsx(
30450
+ ChartStackedBarNode,
30451
+ {
30452
+ node: resolvedNode,
30453
+ active,
30454
+ stateValues,
30455
+ drawing,
30456
+ progress
30457
+ }
30458
+ );
30427
30459
  case "chart-slope":
30428
30460
  return /* @__PURE__ */ jsx(
30429
30461
  ChartSlopeNode,
@@ -30440,7 +30472,16 @@ function CdlNodeView({
30440
30472
  case "chart-stat":
30441
30473
  return /* @__PURE__ */ jsx(ChartStatNode, { node: resolvedNode, active, stateValues });
30442
30474
  case "chart-radial":
30443
- return /* @__PURE__ */ jsx(ChartRadialNode, { node: resolvedNode, active, stateValues });
30475
+ return /* @__PURE__ */ jsx(
30476
+ ChartRadialNode,
30477
+ {
30478
+ node: resolvedNode,
30479
+ active,
30480
+ stateValues,
30481
+ drawing,
30482
+ progress
30483
+ }
30484
+ );
30444
30485
  case "chart-bar":
30445
30486
  return /* @__PURE__ */ jsx(
30446
30487
  ChartBarNode,