@cardenelabs/cdl 0.38.0 → 0.40.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/react.cjs CHANGED
@@ -9526,7 +9526,11 @@ var DRAW_KINDS = /* @__PURE__ */ new Set([
9526
9526
  "mind-map",
9527
9527
  "tree-hierarchy",
9528
9528
  "gantt-timeline",
9529
- "funnel-stages"
9529
+ "funnel-stages",
9530
+ "chart-gauge",
9531
+ "chart-radial",
9532
+ "chart-stacked-bar",
9533
+ "chart-waffle"
9530
9534
  ]);
9531
9535
  var KINDS = new Set(NODE_KINDS);
9532
9536
  var ENG_BANNED = /\b(FUNCTION|STORAGE|EVENT LOG|BALANCES MAPPING|READ|WRITE|EMIT|CALL)\b/;
@@ -11855,6 +11859,15 @@ function interpolateColor(template, stateValues, fallback) {
11855
11859
  if (!template) return fallback;
11856
11860
  return interpolate(template, stateValues);
11857
11861
  }
11862
+ function \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, r, \u958B\u304D, \u8D77\u70B9 = -Math.PI / 2, \u5168\u5468 = Math.PI * 2) {
11863
+ if (\u958B\u304D <= 0) return null;
11864
+ if (\u958B\u304D >= 1 && \u5168\u5468 >= Math.PI * 2) return /* @__PURE__ */ jsxRuntime.jsx("circle", { cx, cy, r });
11865
+ const a0 = \u8D77\u70B9;
11866
+ const a1 = a0 + Math.min(1, \u958B\u304D) * \u5168\u5468;
11867
+ const large = a1 - a0 > Math.PI ? 1 : 0;
11868
+ 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`;
11869
+ return /* @__PURE__ */ jsxRuntime.jsx("path", { d });
11870
+ }
11858
11871
 
11859
11872
  // src/kinds/chart-number.ts
11860
11873
  function \u5B9F\u5024\u8868\u8A18(v) {
@@ -12302,15 +12315,6 @@ function \u8F2A\u306E\u9053(cx, cy, R, r, a0, a1) {
12302
12315
  const large = a1 - a0 > Math.PI ? 1 : 0;
12303
12316
  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`;
12304
12317
  }
12305
- function \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, r, \u958B\u304D) {
12306
- if (\u958B\u304D <= 0) return null;
12307
- if (\u958B\u304D >= 1) return /* @__PURE__ */ jsxRuntime.jsx("circle", { cx, cy, r });
12308
- const a0 = -Math.PI / 2;
12309
- const a1 = a0 + \u958B\u304D * Math.PI * 2;
12310
- const large = \u958B\u304D > 0.5 ? 1 : 0;
12311
- 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`;
12312
- return /* @__PURE__ */ jsxRuntime.jsx("path", { d });
12313
- }
12314
12318
  function sliceColor(tone, idx) {
12315
12319
  if (tone) return TONE[tone];
12316
12320
  return chartSeriesColor(idx);
@@ -12318,7 +12322,9 @@ function sliceColor(tone, idx) {
12318
12322
  function ChartGaugeNode({
12319
12323
  node,
12320
12324
  active,
12321
- stateValues = {}
12325
+ stateValues = {},
12326
+ drawing = false,
12327
+ progress = 1
12322
12328
  }) {
12323
12329
  const x0 = node.cx - node.w / 2;
12324
12330
  const y0 = node.cy - node.h / 2;
@@ -12363,6 +12369,21 @@ function ChartGaugeNode({
12363
12369
  const \u898B\u51FA\u3057\u306E\u7D1A = Math.max(9, Math.round(\u5408\u8A08\u306E\u7D1A * 0.38));
12364
12370
  const \u5185\u8A33\u306E\u5E45 = \u4F7F\u3048\u308B\u5E452 / Math.max(data.length, 1);
12365
12371
  const \u5185\u8A33\u306Ey = cy + \u5F27\u3068\u5185\u8A33\u306E\u9593;
12372
+ const \u4F38\u3073 = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
12373
+ const \u5207\u308A\u629C\u304Did = `cdl-gauge-draw-${react.useId().replace(/[^A-Za-z0-9_-]/g, "")}`;
12374
+ const \u5F27\u305F\u3061 = slices.map((s, idx) => /* @__PURE__ */ jsxRuntime.jsx(
12375
+ "path",
12376
+ {
12377
+ "data-cdl-role": "chart-gauge-arc",
12378
+ "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
12379
+ d: s.path,
12380
+ fill: arcColor(s.d.tone, idx),
12381
+ stroke: "var(--cdl-node-fill, #ffffff)",
12382
+ strokeWidth: 3,
12383
+ strokeLinejoin: "round"
12384
+ },
12385
+ `arc-${idx}`
12386
+ ));
12366
12387
  return /* @__PURE__ */ jsxRuntime.jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
12367
12388
  /* @__PURE__ */ jsxRuntime.jsx(
12368
12389
  "rect",
@@ -12378,19 +12399,8 @@ function ChartGaugeNode({
12378
12399
  strokeWidth: active ? 3 : 1.25
12379
12400
  }
12380
12401
  ),
12381
- slices.map((s, idx) => /* @__PURE__ */ jsxRuntime.jsx(
12382
- "path",
12383
- {
12384
- "data-cdl-role": "chart-gauge-arc",
12385
- "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
12386
- d: s.path,
12387
- fill: arcColor(s.d.tone, idx),
12388
- stroke: "var(--cdl-node-fill, #ffffff)",
12389
- strokeWidth: 3,
12390
- strokeLinejoin: "round"
12391
- },
12392
- `arc-${idx}`
12393
- )),
12402
+ drawing && /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.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) }) }),
12403
+ drawing ? /* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: `url(#${\u5207\u308A\u629C\u304Did})`, children: \u5F27\u305F\u3061 }) : \u5F27\u305F\u3061,
12394
12404
  /* @__PURE__ */ jsxRuntime.jsx(
12395
12405
  "text",
12396
12406
  {
@@ -12455,7 +12465,9 @@ function arcColor(tone, idx) {
12455
12465
  function ChartRadialNode({
12456
12466
  node,
12457
12467
  active,
12458
- stateValues = {}
12468
+ stateValues = {},
12469
+ drawing = false,
12470
+ progress = 1
12459
12471
  }) {
12460
12472
  const x0 = node.cx - node.w / 2;
12461
12473
  const y0 = node.cy - node.h / 2;
@@ -12494,6 +12506,20 @@ function ChartRadialNode({
12494
12506
  };
12495
12507
  });
12496
12508
  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;
12509
+ const \u958B\u304D = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
12510
+ const \u5207\u308A\u629C\u304Did = `cdl-radial-draw-${react.useId().replace(/[^A-Za-z0-9_-]/g, "")}`;
12511
+ const \u53D6\u308A\u5206\u305F\u3061 = rings.map(
12512
+ (r, idx) => r.\u53D6\u308A\u5206 === null ? null : /* @__PURE__ */ jsxRuntime.jsx(
12513
+ "path",
12514
+ {
12515
+ "data-cdl-role": "chart-radial-arc",
12516
+ "data-cdl-unresolved": r.d.unresolved ? "true" : void 0,
12517
+ d: r.\u53D6\u308A\u5206,
12518
+ fill: arcColor2(r.d.tone, idx)
12519
+ },
12520
+ `arc-${idx}`
12521
+ )
12522
+ );
12497
12523
  return /* @__PURE__ */ jsxRuntime.jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
12498
12524
  /* @__PURE__ */ jsxRuntime.jsx(
12499
12525
  "rect",
@@ -12519,18 +12545,8 @@ function ChartRadialNode({
12519
12545
  },
12520
12546
  `track-${idx}`
12521
12547
  )),
12522
- rings.map(
12523
- (r, idx) => r.\u53D6\u308A\u5206 === null ? null : /* @__PURE__ */ jsxRuntime.jsx(
12524
- "path",
12525
- {
12526
- "data-cdl-role": "chart-radial-arc",
12527
- "data-cdl-unresolved": r.d.unresolved ? "true" : void 0,
12528
- d: r.\u53D6\u308A\u5206,
12529
- fill: arcColor2(r.d.tone, idx)
12530
- },
12531
- `arc-${idx}`
12532
- )
12533
- ),
12548
+ drawing && /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.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) }) }),
12549
+ drawing ? /* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: `url(#${\u5207\u308A\u629C\u304Did})`, children: \u53D6\u308A\u5206\u305F\u3061 }) : \u53D6\u308A\u5206\u305F\u3061,
12534
12550
  data.map((d, idx) => {
12535
12551
  const y = \u4E00\u89A7\u306E\u59CB\u307E\u308A + \u884C\u306E\u9AD8\u3055 * idx;
12536
12552
  return /* @__PURE__ */ jsxRuntime.jsxs("g", { "data-cdl-role": "chart-radial-item", children: [
@@ -12748,7 +12764,9 @@ function \u5370\u306E\u5272\u4ED8(\u5024) {
12748
12764
  function ChartWaffleNode({
12749
12765
  node,
12750
12766
  active,
12751
- stateValues = {}
12767
+ stateValues = {},
12768
+ drawing = false,
12769
+ progress = 1
12752
12770
  }) {
12753
12771
  const x0 = node.cx - node.w / 2;
12754
12772
  const y0 = node.cy - node.h / 2;
@@ -12777,6 +12795,7 @@ function ChartWaffleNode({
12777
12795
  \u914D\u5206.forEach((n, idx) => {
12778
12796
  for (let k = 0; k < n; k++) \u6301\u3061\u4E3B.push(idx);
12779
12797
  });
12798
+ const \u57CB\u307E\u3063\u305F = Math.round(\u9032\u307F\u3092\u7573\u3080(drawing, progress) * WAFFLE_TOTAL);
12780
12799
  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;
12781
12800
  return /* @__PURE__ */ jsxRuntime.jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
12782
12801
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -12797,6 +12816,7 @@ function ChartWaffleNode({
12797
12816
  const \u884C = Math.floor(k / WAFFLE_COLS);
12798
12817
  const \u5217 = k % WAFFLE_COLS;
12799
12818
  const owner = \u6301\u3061\u4E3B[k];
12819
+ const \u57CB\u307E\u3063\u3066\u3044\u308B = owner !== void 0 && k < \u57CB\u307E\u3063\u305F;
12800
12820
  return /* @__PURE__ */ jsxRuntime.jsx(
12801
12821
  "rect",
12802
12822
  {
@@ -12807,8 +12827,8 @@ function ChartWaffleNode({
12807
12827
  width: \u5370,
12808
12828
  height: \u5370,
12809
12829
  rx: 2,
12810
- fill: owner === void 0 ? "var(--cdl-divider, #d4d4d8)" : \u5370\u306E\u82722(data[owner].tone, owner),
12811
- fillOpacity: owner === void 0 ? 0.35 : 1
12830
+ fill: \u57CB\u307E\u3063\u3066\u3044\u308B ? \u5370\u306E\u82722(data[owner].tone, owner) : "var(--cdl-divider, #d4d4d8)",
12831
+ fillOpacity: \u57CB\u307E\u3063\u3066\u3044\u308B ? 1 : 0.35
12812
12832
  },
12813
12833
  `cell-${k}`
12814
12834
  );
@@ -12853,7 +12873,9 @@ var SLICE_MIN_W_FOR_VALUE = 84;
12853
12873
  function ChartStackedBarNode({
12854
12874
  node,
12855
12875
  active,
12856
- stateValues = {}
12876
+ stateValues = {},
12877
+ drawing = false,
12878
+ progress = 1
12857
12879
  }) {
12858
12880
  const x0 = node.cx - node.w / 2;
12859
12881
  const y0 = node.cy - node.h / 2;
@@ -12871,6 +12893,8 @@ function ChartStackedBarNode({
12871
12893
  const \u4E00\u89A7\u306E\u9AD8\u3055 = 26;
12872
12894
  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;
12873
12895
  const \u4E0A\u7AEF = Math.max(PAD, (node.h - \u5168\u4F53\u306E\u9AD8\u3055) / 2);
12896
+ const \u4F38\u3073 = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
12897
+ const \u5207\u308A\u629C\u304Did = `cdl-stacked-bar-draw-${react.useId().replace(/[^A-Za-z0-9_-]/g, "")}`;
12874
12898
  return /* @__PURE__ */ jsxRuntime.jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
12875
12899
  /* @__PURE__ */ jsxRuntime.jsx(
12876
12900
  "rect",
@@ -12886,6 +12910,7 @@ function ChartStackedBarNode({
12886
12910
  strokeWidth: active ? 3 : 1.25
12887
12911
  }
12888
12912
  ),
12913
+ drawing && /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: \u5207\u308A\u629C\u304Did, children: /* @__PURE__ */ jsxRuntime.jsx("rect", { x: 0, y: 0, width: \u5E2F\u306E\u5DE6 + \u5E2F\u306E\u5E45 * \u4F38\u3073, height: node.h }) }) }),
12889
12914
  \u5E2F\u305F\u3061.map((\u5E2F, \u6BB5) => {
12890
12915
  const y = \u4E0A\u7AEF + \u6BB5 * (\u5E2F\u306E\u9AD8\u3055 + \u5E2F\u306E\u9593);
12891
12916
  let \u5DE6 = \u5E2F\u306E\u5DE6;
@@ -12902,68 +12927,62 @@ function ChartStackedBarNode({
12902
12927
  children: \u5E2F.\u540D\u524D
12903
12928
  }
12904
12929
  ),
12905
- \u5E2F.\u533A\u753B.map((s, idx) => {
12906
- const w = \u5E2F\u306E\u5E45 * s.\u5272\u5408;
12907
- const x = \u5DE6;
12908
- \u5DE6 += w;
12909
- const \u8272 = \u5370\u306E\u82723(s.tone, idx);
12910
- return /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
12911
- /* @__PURE__ */ jsxRuntime.jsx(
12912
- "rect",
12913
- {
12914
- "data-cdl-role": "chart-stacked-bar-slice",
12915
- "data-cdl-unresolved": s.unresolved ? "true" : void 0,
12916
- x,
12917
- y,
12918
- width: Math.max(0, w),
12919
- height: \u5E2F\u306E\u9AD8\u3055,
12920
- fill: \u8272
12921
- }
12922
- ),
12923
- w >= SLICE_MIN_W_FOR_TEXT && /* @__PURE__ */ jsxRuntime.jsx(
12924
- "text",
12925
- {
12926
- "data-cdl-role": "chart-stacked-bar-slice-text",
12927
- x: x + w / 2,
12928
- y: y + \u5E2F\u306E\u9AD8\u3055 / 2 + (w >= SLICE_MIN_W_FOR_VALUE ? -2 : 4),
12929
- fontSize: \u533A\u753B\u306E\u7D1A,
12930
- fontWeight: 700,
12931
- textAnchor: "middle",
12932
- fill: "#ffffff",
12933
- children: \u5272\u5408\u8868\u8A18(s.\u5272\u5408)
12934
- }
12935
- ),
12936
- w >= SLICE_MIN_W_FOR_VALUE && /* @__PURE__ */ jsxRuntime.jsx(
12937
- "text",
12938
- {
12939
- "data-cdl-role": "chart-stacked-bar-slice-value",
12940
- x: x + w / 2,
12941
- y: y + \u5E2F\u306E\u9AD8\u3055 / 2 + 13,
12942
- fontSize: \u533A\u753B\u306E\u7D1A - 1,
12943
- textAnchor: "middle",
12944
- fill: "#ffffff",
12945
- fillOpacity: 0.85,
12946
- children: \u5B9F\u5024\u8868\u8A18(s.\u5B9F\u5024)
12947
- }
12948
- )
12949
- ] }, `slice-${idx}`);
12950
- })
12930
+ (() => {
12931
+ const \u533A\u753B\u305F\u3061 = \u5E2F.\u533A\u753B.map((s, idx) => {
12932
+ const w = \u5E2F\u306E\u5E45 * s.\u5272\u5408;
12933
+ const x = \u5DE6;
12934
+ \u5DE6 += w;
12935
+ const \u8272 = \u5370\u306E\u82723(s.tone, idx);
12936
+ return /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
12937
+ /* @__PURE__ */ jsxRuntime.jsx(
12938
+ "rect",
12939
+ {
12940
+ "data-cdl-role": "chart-stacked-bar-slice",
12941
+ "data-cdl-unresolved": s.unresolved ? "true" : void 0,
12942
+ x,
12943
+ y,
12944
+ width: Math.max(0, w),
12945
+ height: \u5E2F\u306E\u9AD8\u3055,
12946
+ fill: \u8272
12947
+ }
12948
+ ),
12949
+ w >= SLICE_MIN_W_FOR_TEXT && /* @__PURE__ */ jsxRuntime.jsx(
12950
+ "text",
12951
+ {
12952
+ "data-cdl-role": "chart-stacked-bar-slice-text",
12953
+ x: x + w / 2,
12954
+ y: y + \u5E2F\u306E\u9AD8\u3055 / 2 + (w >= SLICE_MIN_W_FOR_VALUE ? -2 : 4),
12955
+ fontSize: \u533A\u753B\u306E\u7D1A,
12956
+ fontWeight: 700,
12957
+ textAnchor: "middle",
12958
+ fill: "#ffffff",
12959
+ children: \u5272\u5408\u8868\u8A18(s.\u5272\u5408)
12960
+ }
12961
+ ),
12962
+ w >= SLICE_MIN_W_FOR_VALUE && /* @__PURE__ */ jsxRuntime.jsx(
12963
+ "text",
12964
+ {
12965
+ "data-cdl-role": "chart-stacked-bar-slice-value",
12966
+ x: x + w / 2,
12967
+ y: y + \u5E2F\u306E\u9AD8\u3055 / 2 + 13,
12968
+ fontSize: \u533A\u753B\u306E\u7D1A - 1,
12969
+ textAnchor: "middle",
12970
+ fill: "#ffffff",
12971
+ fillOpacity: 0.85,
12972
+ children: \u5B9F\u5024\u8868\u8A18(s.\u5B9F\u5024)
12973
+ }
12974
+ )
12975
+ ] }, `slice-${idx}`);
12976
+ });
12977
+ return drawing ? /* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: `url(#${\u5207\u308A\u629C\u304Did})`, children: \u533A\u753B\u305F\u3061 }) : \u533A\u753B\u305F\u3061;
12978
+ })()
12951
12979
  ] }, `bar-${\u6BB5}`);
12952
12980
  }),
12953
12981
  \u4E00\u89A7\u306E\u4E26\u3073(data, \u5E2F\u306E\u5DE6, node.w - PAD, \u540D\u524D\u306E\u7D1A).map(({ d, idx, x, \u884C }) => {
12954
12982
  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;
12955
12983
  return /* @__PURE__ */ jsxRuntime.jsxs("g", { "data-cdl-role": "chart-stacked-bar-legend", children: [
12956
12984
  /* @__PURE__ */ jsxRuntime.jsx("rect", { x, y: y - 5, width: 10, height: 10, rx: 2, fill: \u5370\u306E\u82723(d.tone, idx) }),
12957
- /* @__PURE__ */ jsxRuntime.jsx(
12958
- "text",
12959
- {
12960
- x: x + 16,
12961
- y: y + 4,
12962
- fontSize: \u540D\u524D\u306E\u7D1A,
12963
- fill: "var(--cdl-text, #1a1f2a)",
12964
- children: d.label
12965
- }
12966
- )
12985
+ /* @__PURE__ */ jsxRuntime.jsx("text", { x: x + 16, y: y + 4, fontSize: \u540D\u524D\u306E\u7D1A, fill: "var(--cdl-text, #1a1f2a)", children: d.label })
12967
12986
  ] }, `legend-${idx}`);
12968
12987
  })
12969
12988
  ] });
@@ -17924,9 +17943,27 @@ function CdlNodeView({
17924
17943
  }
17925
17944
  );
17926
17945
  case "chart-gauge":
17927
- return /* @__PURE__ */ jsxRuntime.jsx(ChartGaugeNode, { node: resolvedNode, active, stateValues });
17946
+ return /* @__PURE__ */ jsxRuntime.jsx(
17947
+ ChartGaugeNode,
17948
+ {
17949
+ node: resolvedNode,
17950
+ active,
17951
+ stateValues,
17952
+ drawing,
17953
+ progress
17954
+ }
17955
+ );
17928
17956
  case "chart-stacked-bar":
17929
- return /* @__PURE__ */ jsxRuntime.jsx(ChartStackedBarNode, { node: resolvedNode, active, stateValues });
17957
+ return /* @__PURE__ */ jsxRuntime.jsx(
17958
+ ChartStackedBarNode,
17959
+ {
17960
+ node: resolvedNode,
17961
+ active,
17962
+ stateValues,
17963
+ drawing,
17964
+ progress
17965
+ }
17966
+ );
17930
17967
  case "chart-slope":
17931
17968
  return /* @__PURE__ */ jsxRuntime.jsx(
17932
17969
  ChartSlopeNode,
@@ -17939,11 +17976,29 @@ function CdlNodeView({
17939
17976
  }
17940
17977
  );
17941
17978
  case "chart-waffle":
17942
- return /* @__PURE__ */ jsxRuntime.jsx(ChartWaffleNode, { node: resolvedNode, active, stateValues });
17979
+ return /* @__PURE__ */ jsxRuntime.jsx(
17980
+ ChartWaffleNode,
17981
+ {
17982
+ node: resolvedNode,
17983
+ active,
17984
+ stateValues,
17985
+ drawing,
17986
+ progress
17987
+ }
17988
+ );
17943
17989
  case "chart-stat":
17944
17990
  return /* @__PURE__ */ jsxRuntime.jsx(ChartStatNode, { node: resolvedNode, active, stateValues });
17945
17991
  case "chart-radial":
17946
- return /* @__PURE__ */ jsxRuntime.jsx(ChartRadialNode, { node: resolvedNode, active, stateValues });
17992
+ return /* @__PURE__ */ jsxRuntime.jsx(
17993
+ ChartRadialNode,
17994
+ {
17995
+ node: resolvedNode,
17996
+ active,
17997
+ stateValues,
17998
+ drawing,
17999
+ progress
18000
+ }
18001
+ );
17947
18002
  case "chart-bar":
17948
18003
  return /* @__PURE__ */ jsxRuntime.jsx(
17949
18004
  ChartBarNode,