@cardenelabs/cdl 0.31.0 → 0.32.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-D6wVFGfI.cjs';
2
- export { q as CdlDiagramView, r as CdlEventBinding, s as CdlEventKind, t as CdlFormula, u as CdlPhase, v as EDGE_HEADS, w as EDGE_HEAD_DEFAULT, x as EDGE_HEAD_FILLS, y as EDGE_HEAD_FILL_DEFAULT, z as EDGE_REVEALS, A as EDGE_REVEAL_DEFAULT, D as EDGE_STYLES, F as EdgeReveal, I as InteractiveHandlerMap, G as InteractiveSignalsAccessor, H as LaidLane, K as NODE_KINDS, M as ScrollProgressHandle, O as TONES, P as computeEventBindingKey, U as computeFormulaKey, V as computeInputSignalKey, W as computeScrollTriggerKey, X as computed, Y as createInteractiveSignalsAccessor, Z as createScrollProgressHandle, _ as createScrollProgressSignals, $ as hasInteractivePrimitives, a0 as sequenceBoardMetrics, a1 as sequenceStepId, a2 as signal } from './render-D6wVFGfI.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-DjnLKv2Q.cjs';
2
+ export { q as CdlDiagramView, r as CdlEventBinding, s as CdlEventKind, t as CdlFormula, u as CdlPhase, v as ChartPieForm, w as EDGE_HEADS, x as EDGE_HEAD_DEFAULT, y as EDGE_HEAD_FILLS, z as EDGE_HEAD_FILL_DEFAULT, A as EDGE_REVEALS, D as EDGE_REVEAL_DEFAULT, F as EDGE_STYLES, G as EdgeReveal, I as InteractiveHandlerMap, H as InteractiveSignalsAccessor, K as LaidLane, M as NODE_KINDS, O as ScrollProgressHandle, P as TONES, U as computeEventBindingKey, V as computeFormulaKey, W as computeInputSignalKey, X as computeScrollTriggerKey, Y as computed, Z as createInteractiveSignalsAccessor, _ as createScrollProgressHandle, $ as createScrollProgressSignals, a0 as hasInteractivePrimitives, a1 as sequenceBoardMetrics, a2 as sequenceStepId, a3 as signal } from './render-DjnLKv2Q.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-D6wVFGfI.js';
2
- export { q as CdlDiagramView, r as CdlEventBinding, s as CdlEventKind, t as CdlFormula, u as CdlPhase, v as EDGE_HEADS, w as EDGE_HEAD_DEFAULT, x as EDGE_HEAD_FILLS, y as EDGE_HEAD_FILL_DEFAULT, z as EDGE_REVEALS, A as EDGE_REVEAL_DEFAULT, D as EDGE_STYLES, F as EdgeReveal, I as InteractiveHandlerMap, G as InteractiveSignalsAccessor, H as LaidLane, K as NODE_KINDS, M as ScrollProgressHandle, O as TONES, P as computeEventBindingKey, U as computeFormulaKey, V as computeInputSignalKey, W as computeScrollTriggerKey, X as computed, Y as createInteractiveSignalsAccessor, Z as createScrollProgressHandle, _ as createScrollProgressSignals, $ as hasInteractivePrimitives, a0 as sequenceBoardMetrics, a1 as sequenceStepId, a2 as signal } from './render-D6wVFGfI.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-DjnLKv2Q.js';
2
+ export { q as CdlDiagramView, r as CdlEventBinding, s as CdlEventKind, t as CdlFormula, u as CdlPhase, v as ChartPieForm, w as EDGE_HEADS, x as EDGE_HEAD_DEFAULT, y as EDGE_HEAD_FILLS, z as EDGE_HEAD_FILL_DEFAULT, A as EDGE_REVEALS, D as EDGE_REVEAL_DEFAULT, F as EDGE_STYLES, G as EdgeReveal, I as InteractiveHandlerMap, H as InteractiveSignalsAccessor, K as LaidLane, M as NODE_KINDS, O as ScrollProgressHandle, P as TONES, U as computeEventBindingKey, V as computeFormulaKey, W as computeInputSignalKey, X as computeScrollTriggerKey, Y as computed, Z as createInteractiveSignalsAccessor, _ as createScrollProgressHandle, $ as createScrollProgressSignals, a0 as hasInteractivePrimitives, a1 as sequenceBoardMetrics, a2 as sequenceStepId, a3 as signal } from './render-DjnLKv2Q.js';
3
3
  import { JSX } from 'react';
4
4
 
5
5
  declare function effect(fn: () => void | (() => void)): () => void;
package/dist/index.js CHANGED
@@ -15918,10 +15918,10 @@ function countEdgeCrossings(edges, warnAt = 3) {
15918
15918
  if (isNearAny(p, a.ends, SAME_POINT_TOL) || isNearAny(p, b.ends, SAME_POINT_TOL))
15919
15919
  continue;
15920
15920
  if (\u5171\u6709\u5074.length > 0) {
15921
- const \u67A0 = Math.min(MAX_CHECKS - checks, MAX_CHECKS_PER_PAIR - pairChecks);
15922
- const \u4E88\u7B97 = { \u6B8B\u308A: Math.max(0, \u67A0) };
15921
+ const \u67A02 = Math.min(MAX_CHECKS - checks, MAX_CHECKS_PER_PAIR - pairChecks);
15922
+ const \u4E88\u7B97 = { \u6B8B\u308A: Math.max(0, \u67A02) };
15923
15923
  const \u5224\u5B9A = mergesTowardShared(a.flat, b.flat, p, \u5171\u6709\u5074, MERGE_TOL, \u4E88\u7B97);
15924
- const \u4F7F\u3063\u305F = Math.max(0, \u67A0) - \u4E88\u7B97.\u6B8B\u308A;
15924
+ const \u4F7F\u3063\u305F = Math.max(0, \u67A02) - \u4E88\u7B97.\u6B8B\u308A;
15925
15925
  checks += \u4F7F\u3063\u305F;
15926
15926
  pairChecks += \u4F7F\u3063\u305F;
15927
15927
  if (\u5224\u5B9A === "merged") continue;
@@ -22470,6 +22470,20 @@ function ChartLineNode({
22470
22470
  }
22471
22471
  const gridTicks = scale.ticks.map((value) => ({ y: yAt(value), value }));
22472
22472
  return /* @__PURE__ */ jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
22473
+ /* @__PURE__ */ jsx(
22474
+ "rect",
22475
+ {
22476
+ "data-cdl-role": "node-body",
22477
+ x: 0,
22478
+ y: 0,
22479
+ width: node.w,
22480
+ height: node.h,
22481
+ rx: 16,
22482
+ fill: "var(--cdl-node-fill, #ffffff)",
22483
+ stroke: "var(--cdl-divider, #d4d4d8)",
22484
+ strokeWidth: active ? 1.5 : 1
22485
+ }
22486
+ ),
22473
22487
  gridTicks.map((t, i) => /* @__PURE__ */ jsxs("g", { children: [
22474
22488
  /* @__PURE__ */ jsx(
22475
22489
  "line",
@@ -24327,52 +24341,52 @@ function ChartPieNode({
24327
24341
  const y0 = node.cy - node.h / 2;
24328
24342
  const data = resolveChartData(node.chartData ?? [], stateValues);
24329
24343
  const total = data.reduce((acc, d) => acc + d.value, 0) || 1;
24344
+ const \u524D\u3042\u308A = data.some((d) => d.previous !== void 0);
24345
+ const \u4ECA\u306E\u5024 = data.map((d) => Math.max(0, d.value));
24346
+ const \u524D\u306E\u5024 = data.map((d) => Math.max(0, d.previous ?? 0));
24347
+ const \u4ECA\u306E\u5408\u8A08 = \u4ECA\u306E\u5024.reduce((acc, value) => acc + value, 0);
24348
+ const \u524D\u306E\u5408\u8A08 = \u524D\u306E\u5024.reduce((acc, value) => acc + value, 0);
24349
+ const \u4ECA\u306E\u5272\u5408 = \u524D\u3042\u308A ? \u4ECA\u306E\u5024.map((value) => \u4ECA\u306E\u5408\u8A08 > 0 ? value / \u4ECA\u306E\u5408\u8A08 : 0) : data.map((d) => d.value / total);
24350
+ const \u524D\u306E\u5272\u5408 = \u524D\u306E\u5024.map((value) => \u524D\u306E\u5408\u8A08 > 0 ? value / \u524D\u306E\u5408\u8A08 : 0);
24351
+ const \u5F62 = node.chartPieForm === "arcs" || node.chartPieForm === "table" ? node.chartPieForm : "ring";
24330
24352
  const PAD_TOP2 = 20;
24331
24353
  const PAD_BOTTOM2 = 20;
24332
24354
  const PAD_SIDE = 20;
24333
24355
  const chartAreaH = node.h - PAD_TOP2 - PAD_BOTTOM2;
24334
- const \u540D\u672D\u306E\u7D1A = 14;
24335
- const \u6570\u5024\u306E\u7D1A = 13;
24356
+ const \u5272\u5408\u306E\u7D1A = 19;
24357
+ const \u540D\u524D\u306E\u7D1A = 12;
24336
24358
  const \u5F15\u304D\u51FA\u3057 = 18;
24337
24359
  const \u5B57\u307E\u3067\u306E\u9593 = 26;
24338
24360
  const \u540D\u672D\u306E\u7E26\u306E\u5F35\u308A\u51FA\u3057 = 20;
24339
- const \u5272\u5408\u306E\u6587\u5B57 = data.map((d) => \u5272\u5408\u8868\u8A18(d.value / total));
24340
- const \u6570\u5024\u306E\u6587\u5B57 = data.map((d, i) => `${\u5B9F\u5024\u8868\u8A18(d.value)} ${\u5272\u5408\u306E\u6587\u5B57[i]}`);
24361
+ const \u5272\u5408\u306E\u6587\u5B57 = \u4ECA\u306E\u5272\u5408.map(\u5272\u5408\u8868\u8A18);
24362
+ const \u540D\u524D\u306E\u6587\u5B57 = data.map((d, i) => {
24363
+ const \u540D = d.label ?? "";
24364
+ if (\u524D\u3042\u308A) return `${\u540D} ${\u5B9F\u5024\u8868\u8A18(\u524D\u306E\u5024[i])} \u2192 ${\u5B9F\u5024\u8868\u8A18(\u4ECA\u306E\u5024[i])}`;
24365
+ return `${\u5B9F\u5024\u8868\u8A18(d.value)}%` === \u5272\u5408\u306E\u6587\u5B57[i] ? \u540D : `${\u540D} ${\u5B9F\u5024\u8868\u8A18(d.value)}`;
24366
+ });
24367
+ if (\u5F62 !== "ring") {
24368
+ const \u5171\u901A = { node, active, data, \u5272\u5408: \u4ECA\u306E\u5272\u5408, x0, y0, drawing, progress, instanceId };
24369
+ return \u5F62 === "arcs" ? \u5F27\u306E\u5F62(\u5171\u901A) : \u8868\u306E\u5F62(\u5171\u901A);
24370
+ }
24341
24371
  const \u540D\u672D\u5E45 = Math.max(
24342
24372
  0,
24343
24373
  ...data.map(
24344
- (d, i) => Math.max(textWidth(d.label ?? "", \u540D\u672D\u306E\u7D1A), textWidth(\u6570\u5024\u306E\u6587\u5B57[i] ?? "", \u6570\u5024\u306E\u7D1A))
24374
+ (_d, i) => Math.max(
24375
+ textWidth(\u5272\u5408\u306E\u6587\u5B57[i] ?? "", \u5272\u5408\u306E\u7D1A),
24376
+ textWidth(\u540D\u524D\u306E\u6587\u5B57[i] ?? "", \u540D\u524D\u306E\u7D1A)
24377
+ )
24345
24378
  )
24346
24379
  );
24347
24380
  const \u7E26\u304B\u3089 = chartAreaH / 2 - \u5F15\u304D\u51FA\u3057 - \u540D\u672D\u306E\u7E26\u306E\u5F35\u308A\u51FA\u3057;
24348
24381
  const \u6A2A\u304B\u3089 = (node.w - PAD_SIDE * 2) / 2 - \u5F15\u304D\u51FA\u3057 - \u5B57\u307E\u3067\u306E\u9593 - \u540D\u672D\u5E45;
24349
24382
  const radius = Math.max(24, Math.min(\u7E26\u304B\u3089, \u6A2A\u304B\u3089));
24350
- const \u5185\u534A\u5F84 = radius * 0.58;
24383
+ const \u5916\u306E\u5185\u534A\u5F84 = radius * (\u524D\u3042\u308A ? 0.75 : 0.58);
24384
+ const \u524D\u306E\u5916\u534A\u5F84 = radius * 0.67;
24385
+ const \u524D\u306E\u5185\u534A\u5F84 = radius * 0.42;
24351
24386
  const cx = node.w / 2;
24352
24387
  const cy = PAD_TOP2 + chartAreaH / 2;
24353
- let cumAngle = -Math.PI / 2;
24354
- let cumFrac = 0;
24355
- const slices = data.map((d) => {
24356
- const frac = d.value / total;
24357
- const angle = frac * Math.PI * 2;
24358
- const a0 = cumAngle;
24359
- const a1 = cumAngle + angle;
24360
- cumAngle = a1;
24361
- const startFrac = cumFrac;
24362
- cumFrac += frac;
24363
- const x1 = cx + radius * Math.cos(a0);
24364
- const y1 = cy + radius * Math.sin(a0);
24365
- const x2 = cx + radius * Math.cos(a1);
24366
- const y2 = cy + radius * Math.sin(a1);
24367
- const x3 = cx + \u5185\u534A\u5F84 * Math.cos(a1);
24368
- const y3 = cy + \u5185\u534A\u5F84 * Math.sin(a1);
24369
- const x4 = cx + \u5185\u534A\u5F84 * Math.cos(a0);
24370
- const y4 = cy + \u5185\u534A\u5F84 * Math.sin(a0);
24371
- const large = angle > Math.PI ? 1 : 0;
24372
- const path = `M ${x1} ${y1} A ${radius} ${radius} 0 ${large} 1 ${x2} ${y2} L ${x3} ${y3} A ${\u5185\u534A\u5F84} ${\u5185\u534A\u5F84} 0 ${large} 0 ${x4} ${y4} Z`;
24373
- const \u4E2D\u592E\u89D2 = (a0 + a1) / 2;
24374
- return { d, frac, path, startFrac, \u4E2D\u592E\u89D2 };
24375
- });
24388
+ const \u524D\u306Eslices = \u524D\u3042\u308A ? \u8F2A\u3092\u7D44\u3080(data, cx, cy, \u524D\u306E\u5916\u534A\u5F84, \u524D\u306E\u5185\u534A\u5F84, \u524D\u306E\u5272\u5408) : [];
24389
+ const slices = \u8F2A\u3092\u7D44\u3080(data, cx, cy, radius, \u5916\u306E\u5185\u534A\u5F84, \u4ECA\u306E\u5272\u5408);
24376
24390
  const \u958B\u304D = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
24377
24391
  const \u5207\u308A\u629C\u304Did = `cdl-pie-draw-${instanceId}`;
24378
24392
  const \u5F71id = `cdl-pie-shadow-${instanceId}`;
@@ -24396,19 +24410,34 @@ function ChartPieNode({
24396
24410
  drawing && /* @__PURE__ */ jsx("clipPath", { id: \u5207\u308A\u629C\u304Did, children: \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, radius + 2, \u958B\u304D) }),
24397
24411
  /* @__PURE__ */ jsx("filter", { id: \u5F71id, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ jsx("feDropShadow", { dx: "0", dy: "6", stdDeviation: "10", floodColor: "#0b1220", floodOpacity: "0.16" }) })
24398
24412
  ] }),
24399
- /* @__PURE__ */ jsx("g", { ...drawing ? { clipPath: `url(#${\u5207\u308A\u629C\u304Did})` } : {}, filter: `url(#${\u5F71id})`, children: slices.map((s, idx) => /* @__PURE__ */ jsx(
24400
- "path",
24401
- {
24402
- "data-cdl-role": "chart-pie-slice",
24403
- "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
24404
- d: s.path,
24405
- fill: sliceColor(s.d.tone, idx),
24406
- stroke: "var(--cdl-node-fill, #ffffff)",
24407
- strokeWidth: 3,
24408
- strokeLinejoin: "round"
24409
- },
24410
- `slice-${idx}`
24411
- )) }),
24413
+ /* @__PURE__ */ jsxs("g", { ...drawing ? { clipPath: `url(#${\u5207\u308A\u629C\u304Did})` } : {}, filter: `url(#${\u5F71id})`, children: [
24414
+ \u524D\u306Eslices.map((s, idx) => /* @__PURE__ */ jsx(
24415
+ "path",
24416
+ {
24417
+ "data-cdl-role": "chart-pie-slice-previous",
24418
+ "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
24419
+ d: s.path,
24420
+ fill: sliceColor(s.d.tone, idx),
24421
+ stroke: "var(--cdl-node-fill, #ffffff)",
24422
+ strokeWidth: 3,
24423
+ strokeLinejoin: "round"
24424
+ },
24425
+ `slice-previous-${idx}`
24426
+ )),
24427
+ slices.map((s, idx) => /* @__PURE__ */ jsx(
24428
+ "path",
24429
+ {
24430
+ "data-cdl-role": "chart-pie-slice",
24431
+ "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
24432
+ d: s.path,
24433
+ fill: sliceColor(s.d.tone, idx),
24434
+ stroke: "var(--cdl-node-fill, #ffffff)",
24435
+ strokeWidth: 3,
24436
+ strokeLinejoin: "round"
24437
+ },
24438
+ `slice-${idx}`
24439
+ ))
24440
+ ] }),
24412
24441
  /* @__PURE__ */ jsx(
24413
24442
  "text",
24414
24443
  {
@@ -24418,7 +24447,7 @@ function ChartPieNode({
24418
24447
  fontSize: Math.round(radius * 0.26),
24419
24448
  fontWeight: 600,
24420
24449
  fill: "var(--cdl-text, #1a1f2a)",
24421
- children: \u5B9F\u5024\u8868\u8A18(Math.round(total))
24450
+ children: \u5B9F\u5024\u8868\u8A18(Math.round(\u524D\u3042\u308A ? \u4ECA\u306E\u5408\u8A08 : total))
24422
24451
  }
24423
24452
  ),
24424
24453
  /* @__PURE__ */ jsx(
@@ -24455,12 +24484,12 @@ function ChartPieNode({
24455
24484
  "text",
24456
24485
  {
24457
24486
  x: \u5B57x,
24458
- y: \u6298\u308Cy - 3,
24487
+ y: \u6298\u308Cy - 1,
24459
24488
  textAnchor: \u53F3 ? "start" : "end",
24460
- fontSize: \u540D\u672D\u306E\u7D1A,
24489
+ fontSize: \u5272\u5408\u306E\u7D1A,
24461
24490
  fontWeight: 600,
24462
24491
  fill: "var(--cdl-text, #1a1f2a)",
24463
- children: s.d.label
24492
+ children: \u5272\u5408\u306E\u6587\u5B57[idx]
24464
24493
  }
24465
24494
  ),
24466
24495
  /* @__PURE__ */ jsx(
@@ -24469,15 +24498,275 @@ function ChartPieNode({
24469
24498
  x: \u5B57x,
24470
24499
  y: \u6298\u308Cy + 15,
24471
24500
  textAnchor: \u53F3 ? "start" : "end",
24472
- fontSize: \u6570\u5024\u306E\u7D1A,
24501
+ fontSize: \u540D\u524D\u306E\u7D1A,
24473
24502
  fill: "var(--cdl-text-dim, #5a6270)",
24474
- children: \u6570\u5024\u306E\u6587\u5B57[idx]
24503
+ children: \u540D\u524D\u306E\u6587\u5B57[idx]
24475
24504
  }
24476
24505
  )
24477
24506
  ] }, `callout-${idx}`);
24478
24507
  })
24479
24508
  ] });
24480
24509
  }
24510
+ function \u8F2A\u3092\u7D44\u3080(data, cx, cy, \u5916\u534A\u5F84, \u5185\u534A\u5F84, \u5272\u5408) {
24511
+ let cumAngle = -Math.PI / 2;
24512
+ let cumFrac = 0;
24513
+ return data.map((d, idx) => {
24514
+ const frac = \u5272\u5408[idx] ?? 0;
24515
+ const angle = frac * Math.PI * 2;
24516
+ const a0 = cumAngle;
24517
+ const a1 = cumAngle + angle;
24518
+ cumAngle = a1;
24519
+ const startFrac = cumFrac;
24520
+ cumFrac += frac;
24521
+ const x1 = cx + \u5916\u534A\u5F84 * Math.cos(a0);
24522
+ const y1 = cy + \u5916\u534A\u5F84 * Math.sin(a0);
24523
+ const x2 = cx + \u5916\u534A\u5F84 * Math.cos(a1);
24524
+ const y2 = cy + \u5916\u534A\u5F84 * Math.sin(a1);
24525
+ const x3 = cx + \u5185\u534A\u5F84 * Math.cos(a1);
24526
+ const y3 = cy + \u5185\u534A\u5F84 * Math.sin(a1);
24527
+ const x4 = cx + \u5185\u534A\u5F84 * Math.cos(a0);
24528
+ const y4 = cy + \u5185\u534A\u5F84 * Math.sin(a0);
24529
+ const large = angle > Math.PI ? 1 : 0;
24530
+ const path = `M ${x1} ${y1} A ${\u5916\u534A\u5F84} ${\u5916\u534A\u5F84} 0 ${large} 1 ${x2} ${y2} L ${x3} ${y3} A ${\u5185\u534A\u5F84} ${\u5185\u534A\u5F84} 0 ${large} 0 ${x4} ${y4} Z`;
24531
+ return { d, frac, path, startFrac, \u4E2D\u592E\u89D2: (a0 + a1) / 2 };
24532
+ });
24533
+ }
24534
+ function \u67A0(node, active) {
24535
+ return /* @__PURE__ */ jsx(
24536
+ "rect",
24537
+ {
24538
+ "data-cdl-role": "node-body",
24539
+ x: 0,
24540
+ y: 0,
24541
+ width: node.w,
24542
+ height: node.h,
24543
+ rx: 16,
24544
+ fill: "var(--cdl-node-fill, #ffffff)",
24545
+ stroke: active ? "var(--cdl-tone-accent, #2d6a8f)" : "var(--cdl-divider, #d4d4d8)",
24546
+ strokeWidth: active ? 3 : 1.25
24547
+ }
24548
+ );
24549
+ }
24550
+ function \u5F27\u306E\u5F62({ node, active, data, \u5272\u5408, x0, y0, drawing, progress }) {
24551
+ const PAD = 20;
24552
+ const \u540D\u524D\u306E\u7D1A = 14;
24553
+ const \u5272\u5408\u306E\u7D1A = 24;
24554
+ const \u5370\u304B\u3089\u540D\u524D\u307E\u30672 = 18;
24555
+ const \u540D\u524D\u304B\u3089\u5272\u5408\u307E\u3067 = 24;
24556
+ const \u5272\u5408\u306E\u6587\u5B57 = \u5272\u5408.map(\u5272\u5408\u8868\u8A18);
24557
+ const \u4E00\u89A7\u5E45 = 10 + \u5370\u304B\u3089\u540D\u524D\u307E\u30672 + Math.max(0, ...data.map((d) => textWidth(d.label ?? "", \u540D\u524D\u306E\u7D1A))) + \u540D\u524D\u304B\u3089\u5272\u5408\u307E\u3067 + Math.max(0, ...\u5272\u5408\u306E\u6587\u5B57.map((t) => textWidth(t, \u5272\u5408\u306E\u7D1A)));
24558
+ const \u7E26\u304B\u3089 = (node.h - PAD * 2) / 2;
24559
+ const \u6A2A\u304B\u3089 = (node.w - PAD * 2 - \u4E00\u89A7\u5E45 - 28) / 2;
24560
+ const R = Math.max(24, Math.min(\u7E26\u304B\u3089, \u6A2A\u304B\u3089));
24561
+ const cx = PAD + R;
24562
+ const cy = node.h / 2;
24563
+ const \u7A74 = R * 0.34;
24564
+ const \u523B\u307F = (R - \u7A74) / Math.max(1, data.length);
24565
+ const \u592A\u3055 = Math.max(3, \u523B\u307F * 0.6);
24566
+ const \u958B\u304D = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
24567
+ const \u4E00\u89A7\u5DE6 = node.w - PAD - \u4E00\u89A7\u5E45;
24568
+ const \u884C\u306E\u9593 = Math.min(56, (node.h - PAD * 2) / Math.max(1, data.length));
24569
+ const \u4E00\u89A7\u4E0A = node.h / 2 - \u884C\u306E\u9593 * (data.length - 1) / 2;
24570
+ return /* @__PURE__ */ jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
24571
+ \u67A0(node, active),
24572
+ data.map((d, idx) => {
24573
+ const r = R - \u592A\u3055 / 2 - idx * \u523B\u307F;
24574
+ if (r <= \u592A\u3055 / 2) return null;
24575
+ const \u53D6\u308A\u5206 = (\u5272\u5408[idx] ?? 0) * (drawing ? \u958B\u304D : 1);
24576
+ return /* @__PURE__ */ jsxs("g", { children: [
24577
+ /* @__PURE__ */ jsx(
24578
+ "circle",
24579
+ {
24580
+ "data-cdl-role": "chart-pie-arc-track",
24581
+ cx,
24582
+ cy,
24583
+ r,
24584
+ fill: "none",
24585
+ stroke: "var(--cdl-divider, #d4d4d8)",
24586
+ strokeWidth: \u592A\u3055
24587
+ }
24588
+ ),
24589
+ /* @__PURE__ */ jsx(
24590
+ "path",
24591
+ {
24592
+ "data-cdl-role": "chart-pie-arc",
24593
+ "data-cdl-unresolved": d.unresolved ? "true" : void 0,
24594
+ d: \u5F27\u306E\u9053(cx, cy, r, \u53D6\u308A\u5206),
24595
+ fill: "none",
24596
+ stroke: sliceColor(d.tone, idx),
24597
+ strokeWidth: \u592A\u3055,
24598
+ strokeLinecap: "round"
24599
+ }
24600
+ )
24601
+ ] }, `arc-${idx}`);
24602
+ }),
24603
+ data.map((d, idx) => {
24604
+ const y = \u4E00\u89A7\u4E0A + \u884C\u306E\u9593 * idx;
24605
+ return /* @__PURE__ */ jsxs("g", { children: [
24606
+ /* @__PURE__ */ jsx(
24607
+ "rect",
24608
+ {
24609
+ x: \u4E00\u89A7\u5DE6,
24610
+ y: y - 9,
24611
+ width: 10,
24612
+ height: 10,
24613
+ rx: 2,
24614
+ fill: sliceColor(d.tone, idx)
24615
+ }
24616
+ ),
24617
+ /* @__PURE__ */ jsx(
24618
+ "text",
24619
+ {
24620
+ x: \u4E00\u89A7\u5DE6 + \u5370\u304B\u3089\u540D\u524D\u307E\u30672,
24621
+ y,
24622
+ fontSize: \u540D\u524D\u306E\u7D1A,
24623
+ fill: "var(--cdl-text, #1a1f2a)",
24624
+ children: d.label
24625
+ }
24626
+ ),
24627
+ /* @__PURE__ */ jsx(
24628
+ "text",
24629
+ {
24630
+ x: node.w - PAD,
24631
+ y: y + 4,
24632
+ textAnchor: "end",
24633
+ fontSize: \u5272\u5408\u306E\u7D1A,
24634
+ fontWeight: 600,
24635
+ fill: "var(--cdl-text, #1a1f2a)",
24636
+ children: \u5272\u5408\u306E\u6587\u5B57[idx]
24637
+ }
24638
+ )
24639
+ ] }, `row-${idx}`);
24640
+ })
24641
+ ] });
24642
+ }
24643
+ function \u8868\u306E\u5F62({ node, active, data, \u5272\u5408, x0, y0, drawing, progress, instanceId }) {
24644
+ const PAD = 20;
24645
+ const \u898B\u51FA\u3057\u306E\u7D1A = 11;
24646
+ const \u540D\u524D\u306E\u7D1A = 15;
24647
+ const \u5272\u5408\u306E\u7D1A = 17;
24648
+ const \u5B9F\u6570\u306E\u7D1A = 15;
24649
+ const \u5370\u304B\u3089\u540D\u524D\u307E\u30672 = 18;
24650
+ const \u5272\u5408\u306E\u6587\u5B57 = \u5272\u5408.map(\u5272\u5408\u8868\u8A18);
24651
+ const \u5B9F\u6570\u306E\u6587\u5B57 = data.map((d) => \u5B9F\u5024\u8868\u8A18(d.value));
24652
+ const \u540D\u524D\u5E45 = Math.max(0, ...data.map((d) => textWidth(d.label ?? "", \u540D\u524D\u306E\u7D1A)));
24653
+ const \u5272\u5408\u5E45 = Math.max(textWidth("\u5272\u5408", \u898B\u51FA\u3057\u306E\u7D1A), ...\u5272\u5408\u306E\u6587\u5B57.map((t) => textWidth(t, \u5272\u5408\u306E\u7D1A)));
24654
+ const \u5B9F\u6570\u5E45 = Math.max(textWidth("\u5024", \u898B\u51FA\u3057\u306E\u7D1A), ...\u5B9F\u6570\u306E\u6587\u5B57.map((t) => textWidth(t, \u5B9F\u6570\u306E\u7D1A)));
24655
+ const \u8868\u5E45 = 10 + \u5370\u304B\u3089\u540D\u524D\u307E\u30672 + \u540D\u524D\u5E45 + 28 + \u5272\u5408\u5E45 + 24 + \u5B9F\u6570\u5E45;
24656
+ const \u7E26\u304B\u3089 = (node.h - PAD * 2) / 2;
24657
+ const \u6A2A\u304B\u3089 = (node.w - PAD * 2 - \u8868\u5E45 - 28) / 2;
24658
+ const R = Math.max(24, Math.min(\u7E26\u304B\u3089, \u6A2A\u304B\u3089));
24659
+ const \u5185\u534A\u5F84 = R * 0.58;
24660
+ const cx = PAD + R;
24661
+ const cy = node.h / 2;
24662
+ const \u8868\u5DE6 = node.w - PAD - \u8868\u5E45;
24663
+ const \u53F3\u7AEF = node.w - PAD;
24664
+ const \u5272\u5408\u53F3 = \u53F3\u7AEF - \u5B9F\u6570\u5E45 - 24;
24665
+ const \u884C\u306E\u9593 = Math.min(52, (node.h - PAD * 2 - 40) / Math.max(1, data.length));
24666
+ const \u898B\u51FA\u3057\u306Ey = node.h / 2 - \u884C\u306E\u9593 * data.length / 2 - 14;
24667
+ const \u958B\u304D = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
24668
+ const \u5207\u308A\u629C\u304Did = `cdl-pie-draw-${instanceId}`;
24669
+ const \u958B\u304D\u59CB\u3081\u305F = (\u59CB\u307E\u308A) => !drawing || \u958B\u304D > \u59CB\u307E\u308A;
24670
+ let \u89D2 = -Math.PI / 2;
24671
+ let \u7D2F\u8A08 = 0;
24672
+ const \u6247\u305F\u3061 = data.map((d, idx) => {
24673
+ const frac = \u5272\u5408[idx] ?? 0;
24674
+ const a0 = \u89D2;
24675
+ const a1 = \u89D2 + frac * Math.PI * 2;
24676
+ \u89D2 = a1;
24677
+ const \u59CB\u307E\u308A = \u7D2F\u8A08;
24678
+ \u7D2F\u8A08 += frac;
24679
+ return { d, idx, \u59CB\u307E\u308A, path: \u8F2A\u306E\u9053(cx, cy, R, \u5185\u534A\u5F84, a0, a1) };
24680
+ });
24681
+ return /* @__PURE__ */ jsxs("g", { transform: `translate(${x0} ${y0})`, children: [
24682
+ \u67A0(node, active),
24683
+ drawing && /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: \u5207\u308A\u629C\u304Did, children: \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, R + 2, \u958B\u304D) }) }),
24684
+ /* @__PURE__ */ jsx("g", { ...drawing ? { clipPath: `url(#${\u5207\u308A\u629C\u304Did})` } : {}, children: \u6247\u305F\u3061.map((s) => /* @__PURE__ */ jsx(
24685
+ "path",
24686
+ {
24687
+ "data-cdl-role": "chart-pie-slice",
24688
+ "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
24689
+ d: s.path,
24690
+ fill: sliceColor(s.d.tone, s.idx),
24691
+ stroke: "var(--cdl-node-fill, #ffffff)",
24692
+ strokeWidth: 3,
24693
+ strokeLinejoin: "round"
24694
+ },
24695
+ `slice-${s.idx}`
24696
+ )) }),
24697
+ /* @__PURE__ */ jsx(
24698
+ "text",
24699
+ {
24700
+ x: cx,
24701
+ y: cy - 2,
24702
+ textAnchor: "middle",
24703
+ fontSize: Math.round(R * 0.26),
24704
+ fontWeight: 600,
24705
+ fill: "var(--cdl-text, #1a1f2a)",
24706
+ children: \u5B9F\u5024\u8868\u8A18(Math.round(data.reduce((acc, d) => acc + d.value, 0)))
24707
+ }
24708
+ ),
24709
+ /* @__PURE__ */ jsx(
24710
+ "text",
24711
+ {
24712
+ x: cx,
24713
+ y: cy + Math.round(R * 0.2),
24714
+ textAnchor: "middle",
24715
+ fontSize: Math.round(R * 0.12),
24716
+ fill: "var(--cdl-text-dim, #5a6270)",
24717
+ children: "\u5408\u8A08"
24718
+ }
24719
+ ),
24720
+ /* @__PURE__ */ jsx("text", { x: \u8868\u5DE6, y: \u898B\u51FA\u3057\u306Ey, fontSize: \u898B\u51FA\u3057\u306E\u7D1A, fill: "var(--cdl-text-dim, #5a6270)", children: "\u5185\u8A33" }),
24721
+ /* @__PURE__ */ jsx("text", { x: \u5272\u5408\u53F3, y: \u898B\u51FA\u3057\u306Ey, textAnchor: "end", fontSize: \u898B\u51FA\u3057\u306E\u7D1A, fill: "var(--cdl-text-dim, #5a6270)", children: "\u5272\u5408" }),
24722
+ /* @__PURE__ */ jsx("text", { x: \u53F3\u7AEF, y: \u898B\u51FA\u3057\u306Ey, textAnchor: "end", fontSize: \u898B\u51FA\u3057\u306E\u7D1A, fill: "var(--cdl-text-dim, #5a6270)", children: "\u5024" }),
24723
+ /* @__PURE__ */ jsx(
24724
+ "line",
24725
+ {
24726
+ "data-cdl-role": "chart-pie-table-rule",
24727
+ x1: \u8868\u5DE6,
24728
+ y1: \u898B\u51FA\u3057\u306Ey + 10,
24729
+ x2: \u53F3\u7AEF,
24730
+ y2: \u898B\u51FA\u3057\u306Ey + 10,
24731
+ stroke: "var(--cdl-text, #1a1f2a)",
24732
+ strokeWidth: 1.2
24733
+ }
24734
+ ),
24735
+ \u6247\u305F\u3061.map((s) => {
24736
+ if (!\u958B\u304D\u59CB\u3081\u305F(s.\u59CB\u307E\u308A)) return null;
24737
+ const y = \u898B\u51FA\u3057\u306Ey + 40 + \u884C\u306E\u9593 * s.idx;
24738
+ return /* @__PURE__ */ jsxs("g", { children: [
24739
+ /* @__PURE__ */ jsx("rect", { x: \u8868\u5DE6, y: y - 10, width: 10, height: 10, rx: 2, fill: sliceColor(s.d.tone, s.idx) }),
24740
+ /* @__PURE__ */ jsx("text", { x: \u8868\u5DE6 + \u5370\u304B\u3089\u540D\u524D\u307E\u30672, y, fontSize: \u540D\u524D\u306E\u7D1A, fill: "var(--cdl-text, #1a1f2a)", children: s.d.label }),
24741
+ /* @__PURE__ */ jsx("text", { x: \u5272\u5408\u53F3, y, textAnchor: "end", fontSize: \u5272\u5408\u306E\u7D1A, fontWeight: 600, fill: "var(--cdl-text, #1a1f2a)", children: \u5272\u5408\u306E\u6587\u5B57[s.idx] }),
24742
+ /* @__PURE__ */ jsx("text", { x: \u53F3\u7AEF, y, textAnchor: "end", fontSize: \u5B9F\u6570\u306E\u7D1A, fill: "var(--cdl-text-dim, #5a6270)", children: \u5B9F\u6570\u306E\u6587\u5B57[s.idx] }),
24743
+ /* @__PURE__ */ jsx(
24744
+ "line",
24745
+ {
24746
+ "data-cdl-role": "chart-pie-table-rule",
24747
+ x1: \u8868\u5DE6,
24748
+ y1: y + 16,
24749
+ x2: \u53F3\u7AEF,
24750
+ y2: y + 16,
24751
+ stroke: "var(--cdl-divider, #d4d4d8)",
24752
+ strokeWidth: 1
24753
+ }
24754
+ )
24755
+ ] }, `row-${s.idx}`);
24756
+ })
24757
+ ] });
24758
+ }
24759
+ function \u5F27\u306E\u9053(cx, cy, r, \u53D6\u308A\u5206) {
24760
+ const \u5B9F\u52B9 = Math.max(0, Math.min(0.9999, \u53D6\u308A\u5206));
24761
+ const a0 = -Math.PI / 2;
24762
+ const a1 = a0 + \u5B9F\u52B9 * Math.PI * 2;
24763
+ const large = \u5B9F\u52B9 > 0.5 ? 1 : 0;
24764
+ 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)}`;
24765
+ }
24766
+ function \u8F2A\u306E\u9053(cx, cy, R, r, a0, a1) {
24767
+ const large = a1 - a0 > Math.PI ? 1 : 0;
24768
+ 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`;
24769
+ }
24481
24770
  function \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, r, \u958B\u304D) {
24482
24771
  if (\u958B\u304D <= 0) return null;
24483
24772
  if (\u958B\u304D >= 1) return /* @__PURE__ */ jsx("circle", { cx, cy, r });
@@ -24679,8 +24968,8 @@ function ChartRadialNode({
24679
24968
  frac,
24680
24969
  \u4E2D\u5FC3\u534A\u5F84,
24681
24970
  // 軌道は全周。 1 周ちょうどは弧で表せないので、 わずかに欠かして描く
24682
- \u8ECC\u9053: \u5F27\u306E\u9053(\u5F27\u306Ecx, cy, \u4E2D\u5FC3\u534A\u5F84, \u5E2F\u306E\u5E45, 0.9999),
24683
- \u53D6\u308A\u5206: frac <= 0 ? null : \u5F27\u306E\u9053(\u5F27\u306Ecx, cy, \u4E2D\u5FC3\u534A\u5F84, \u5E2F\u306E\u5E45, Math.min(frac, 0.9999))
24971
+ \u8ECC\u9053: \u5F27\u306E\u90532(\u5F27\u306Ecx, cy, \u4E2D\u5FC3\u534A\u5F84, \u5E2F\u306E\u5E45, 0.9999),
24972
+ \u53D6\u308A\u5206: frac <= 0 ? null : \u5F27\u306E\u90532(\u5F27\u306Ecx, cy, \u4E2D\u5FC3\u534A\u5F84, \u5E2F\u306E\u5E45, Math.min(frac, 0.9999))
24684
24973
  };
24685
24974
  });
24686
24975
  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;
@@ -24751,7 +25040,7 @@ function ChartRadialNode({
24751
25040
  ] });
24752
25041
  }
24753
25042
  var \u5370\u306E\u5E45 = 18;
24754
- function \u5F27\u306E\u9053(cx, cy, \u4E2D\u5FC3\u534A\u5F84, \u5E45, \u5272\u5408) {
25043
+ function \u5F27\u306E\u90532(cx, cy, \u4E2D\u5FC3\u534A\u5F84, \u5E45, \u5272\u5408) {
24755
25044
  const \u5916 = \u4E2D\u5FC3\u534A\u5F84 + \u5E45 / 2;
24756
25045
  const \u5185 = Math.max(0.5, \u4E2D\u5FC3\u534A\u5F84 - \u5E45 / 2);
24757
25046
  const a0 = -Math.PI / 2;
@@ -24797,12 +25086,12 @@ function ChartStatNode({
24797
25086
  }
24798
25087
  ),
24799
25088
  data.map((d, idx) => {
24800
- const \u67A0 = \u533A\u753B.\u67A0(idx);
25089
+ const \u67A02 = \u533A\u753B.\u67A0(idx);
24801
25090
  const frac = total > 0 ? d.value / total : 0;
24802
25091
  const \u8272 = \u5370\u306E\u8272(d.tone, idx);
24803
25092
  const \u6570\u5024 = \u5B9F\u5024\u8868\u8A184(d.value);
24804
- const \u6570\u5024\u306E\u7D1A = \u53CE\u3081\u308B\u7D1A(\u6570\u5024, \u67A0.w - \u533A\u753B.\u4F59\u767D * 2, \u533A\u753B.\u6570\u5024\u306E\u7D1A, \u533A\u753B.\u540D\u524D\u306E\u7D1A + 1);
24805
- return /* @__PURE__ */ jsxs("g", { "data-cdl-role": "chart-stat-item", transform: `translate(${\u67A0.x} ${\u67A0.y})`, children: [
25093
+ const \u6570\u5024\u306E\u7D1A = \u53CE\u3081\u308B\u7D1A(\u6570\u5024, \u67A02.w - \u533A\u753B.\u4F59\u767D * 2, \u533A\u753B.\u6570\u5024\u306E\u7D1A, \u533A\u753B.\u540D\u524D\u306E\u7D1A + 1);
25094
+ return /* @__PURE__ */ jsxs("g", { "data-cdl-role": "chart-stat-item", transform: `translate(${\u67A02.x} ${\u67A02.y})`, children: [
24806
25095
  idx > 0 && /* @__PURE__ */ jsx(
24807
25096
  "line",
24808
25097
  {
@@ -24810,7 +25099,7 @@ function ChartStatNode({
24810
25099
  x1: 0,
24811
25100
  y1: \u533A\u753B.\u4F59\u767D,
24812
25101
  x2: 0,
24813
- y2: \u67A0.h - \u533A\u753B.\u4F59\u767D,
25102
+ y2: \u67A02.h - \u533A\u753B.\u4F59\u767D,
24814
25103
  stroke: "var(--cdl-divider, #d4d4d8)",
24815
25104
  strokeWidth: 1
24816
25105
  }
@@ -24819,7 +25108,7 @@ function ChartStatNode({
24819
25108
  "text",
24820
25109
  {
24821
25110
  "data-cdl-role": "chart-stat-label",
24822
- x: \u67A0.w / 2,
25111
+ x: \u67A02.w / 2,
24823
25112
  y: \u533A\u753B.\u540D\u524D\u306Ey,
24824
25113
  fontSize: \u533A\u753B.\u540D\u524D\u306E\u7D1A,
24825
25114
  fontWeight: 700,
@@ -24833,7 +25122,7 @@ function ChartStatNode({
24833
25122
  {
24834
25123
  "data-cdl-role": "chart-stat-value",
24835
25124
  "data-cdl-unresolved": d.unresolved ? "true" : void 0,
24836
- x: \u67A0.w / 2,
25125
+ x: \u67A02.w / 2,
24837
25126
  y: \u533A\u753B.\u6570\u5024\u306Ey,
24838
25127
  fontSize: \u6570\u5024\u306E\u7D1A,
24839
25128
  fontWeight: 700,
@@ -24846,7 +25135,7 @@ function ChartStatNode({
24846
25135
  "circle",
24847
25136
  {
24848
25137
  "data-cdl-role": "chart-stat-track",
24849
- cx: \u67A0.w / 2,
25138
+ cx: \u67A02.w / 2,
24850
25139
  cy: \u533A\u753B.\u5F27\u306Ey,
24851
25140
  r: \u533A\u753B.\u5F27\u306E\u534A\u5F84,
24852
25141
  fill: "none",
@@ -24859,7 +25148,7 @@ function ChartStatNode({
24859
25148
  "path",
24860
25149
  {
24861
25150
  "data-cdl-role": "chart-stat-arc",
24862
- d: \u5F27\u306E\u90532(\u67A0.w / 2, \u533A\u753B.\u5F27\u306Ey, \u533A\u753B.\u5F27\u306E\u534A\u5F84, Math.min(frac, 0.9999)),
25151
+ d: \u5F27\u306E\u90533(\u67A02.w / 2, \u533A\u753B.\u5F27\u306Ey, \u533A\u753B.\u5F27\u306E\u534A\u5F84, Math.min(frac, 0.9999)),
24863
25152
  fill: "none",
24864
25153
  stroke: \u8272,
24865
25154
  strokeWidth: \u533A\u753B.\u5F27\u306E\u592A\u3055,
@@ -24870,7 +25159,7 @@ function ChartStatNode({
24870
25159
  "text",
24871
25160
  {
24872
25161
  "data-cdl-role": "chart-stat-share",
24873
- x: \u67A0.w / 2,
25162
+ x: \u67A02.w / 2,
24874
25163
  y: \u533A\u753B.\u5272\u5408\u306Ey,
24875
25164
  fontSize: \u533A\u753B.\u5272\u5408\u306E\u7D1A,
24876
25165
  textAnchor: "middle",
@@ -24915,7 +25204,7 @@ function \u53CE\u3081\u308B\u7D1A(\u5B57, \u4F7F\u3048\u308B\u5E452, \u521D\u671
24915
25204
  while (\u7D1A > \u4E0B\u9650 && textWidth(\u5B57, \u7D1A) > \u4F7F\u3048\u308B\u5E452) \u7D1A -= 1;
24916
25205
  return \u7D1A;
24917
25206
  }
24918
- function \u5F27\u306E\u90532(cx, cy, r, \u5272\u5408) {
25207
+ function \u5F27\u306E\u90533(cx, cy, r, \u5272\u5408) {
24919
25208
  const a0 = -Math.PI / 2;
24920
25209
  const a1 = a0 + \u5272\u5408 * Math.PI * 2;
24921
25210
  const large = \u5272\u5408 > 0.5 ? 1 : 0;