@cardenelabs/cdl 0.31.1 → 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;
@@ -24341,52 +24341,52 @@ function ChartPieNode({
24341
24341
  const y0 = node.cy - node.h / 2;
24342
24342
  const data = resolveChartData(node.chartData ?? [], stateValues);
24343
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";
24344
24352
  const PAD_TOP2 = 20;
24345
24353
  const PAD_BOTTOM2 = 20;
24346
24354
  const PAD_SIDE = 20;
24347
24355
  const chartAreaH = node.h - PAD_TOP2 - PAD_BOTTOM2;
24348
- const \u540D\u672D\u306E\u7D1A = 14;
24349
- const \u6570\u5024\u306E\u7D1A = 13;
24356
+ const \u5272\u5408\u306E\u7D1A = 19;
24357
+ const \u540D\u524D\u306E\u7D1A = 12;
24350
24358
  const \u5F15\u304D\u51FA\u3057 = 18;
24351
24359
  const \u5B57\u307E\u3067\u306E\u9593 = 26;
24352
24360
  const \u540D\u672D\u306E\u7E26\u306E\u5F35\u308A\u51FA\u3057 = 20;
24353
- const \u5272\u5408\u306E\u6587\u5B57 = data.map((d) => \u5272\u5408\u8868\u8A18(d.value / total));
24354
- 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
+ }
24355
24371
  const \u540D\u672D\u5E45 = Math.max(
24356
24372
  0,
24357
24373
  ...data.map(
24358
- (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
+ )
24359
24378
  )
24360
24379
  );
24361
24380
  const \u7E26\u304B\u3089 = chartAreaH / 2 - \u5F15\u304D\u51FA\u3057 - \u540D\u672D\u306E\u7E26\u306E\u5F35\u308A\u51FA\u3057;
24362
24381
  const \u6A2A\u304B\u3089 = (node.w - PAD_SIDE * 2) / 2 - \u5F15\u304D\u51FA\u3057 - \u5B57\u307E\u3067\u306E\u9593 - \u540D\u672D\u5E45;
24363
24382
  const radius = Math.max(24, Math.min(\u7E26\u304B\u3089, \u6A2A\u304B\u3089));
24364
- 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;
24365
24386
  const cx = node.w / 2;
24366
24387
  const cy = PAD_TOP2 + chartAreaH / 2;
24367
- let cumAngle = -Math.PI / 2;
24368
- let cumFrac = 0;
24369
- const slices = data.map((d) => {
24370
- const frac = d.value / total;
24371
- const angle = frac * Math.PI * 2;
24372
- const a0 = cumAngle;
24373
- const a1 = cumAngle + angle;
24374
- cumAngle = a1;
24375
- const startFrac = cumFrac;
24376
- cumFrac += frac;
24377
- const x1 = cx + radius * Math.cos(a0);
24378
- const y1 = cy + radius * Math.sin(a0);
24379
- const x2 = cx + radius * Math.cos(a1);
24380
- const y2 = cy + radius * Math.sin(a1);
24381
- const x3 = cx + \u5185\u534A\u5F84 * Math.cos(a1);
24382
- const y3 = cy + \u5185\u534A\u5F84 * Math.sin(a1);
24383
- const x4 = cx + \u5185\u534A\u5F84 * Math.cos(a0);
24384
- const y4 = cy + \u5185\u534A\u5F84 * Math.sin(a0);
24385
- const large = angle > Math.PI ? 1 : 0;
24386
- 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`;
24387
- const \u4E2D\u592E\u89D2 = (a0 + a1) / 2;
24388
- return { d, frac, path, startFrac, \u4E2D\u592E\u89D2 };
24389
- });
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);
24390
24390
  const \u958B\u304D = \u9032\u307F\u3092\u7573\u3080(drawing, progress);
24391
24391
  const \u5207\u308A\u629C\u304Did = `cdl-pie-draw-${instanceId}`;
24392
24392
  const \u5F71id = `cdl-pie-shadow-${instanceId}`;
@@ -24410,19 +24410,34 @@ function ChartPieNode({
24410
24410
  drawing && /* @__PURE__ */ jsx("clipPath", { id: \u5207\u308A\u629C\u304Did, children: \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, radius + 2, \u958B\u304D) }),
24411
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" }) })
24412
24412
  ] }),
24413
- /* @__PURE__ */ jsx("g", { ...drawing ? { clipPath: `url(#${\u5207\u308A\u629C\u304Did})` } : {}, filter: `url(#${\u5F71id})`, children: slices.map((s, idx) => /* @__PURE__ */ jsx(
24414
- "path",
24415
- {
24416
- "data-cdl-role": "chart-pie-slice",
24417
- "data-cdl-unresolved": s.d.unresolved ? "true" : void 0,
24418
- d: s.path,
24419
- fill: sliceColor(s.d.tone, idx),
24420
- stroke: "var(--cdl-node-fill, #ffffff)",
24421
- strokeWidth: 3,
24422
- strokeLinejoin: "round"
24423
- },
24424
- `slice-${idx}`
24425
- )) }),
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
+ ] }),
24426
24441
  /* @__PURE__ */ jsx(
24427
24442
  "text",
24428
24443
  {
@@ -24432,7 +24447,7 @@ function ChartPieNode({
24432
24447
  fontSize: Math.round(radius * 0.26),
24433
24448
  fontWeight: 600,
24434
24449
  fill: "var(--cdl-text, #1a1f2a)",
24435
- children: \u5B9F\u5024\u8868\u8A18(Math.round(total))
24450
+ children: \u5B9F\u5024\u8868\u8A18(Math.round(\u524D\u3042\u308A ? \u4ECA\u306E\u5408\u8A08 : total))
24436
24451
  }
24437
24452
  ),
24438
24453
  /* @__PURE__ */ jsx(
@@ -24469,12 +24484,12 @@ function ChartPieNode({
24469
24484
  "text",
24470
24485
  {
24471
24486
  x: \u5B57x,
24472
- y: \u6298\u308Cy - 3,
24487
+ y: \u6298\u308Cy - 1,
24473
24488
  textAnchor: \u53F3 ? "start" : "end",
24474
- fontSize: \u540D\u672D\u306E\u7D1A,
24489
+ fontSize: \u5272\u5408\u306E\u7D1A,
24475
24490
  fontWeight: 600,
24476
24491
  fill: "var(--cdl-text, #1a1f2a)",
24477
- children: s.d.label
24492
+ children: \u5272\u5408\u306E\u6587\u5B57[idx]
24478
24493
  }
24479
24494
  ),
24480
24495
  /* @__PURE__ */ jsx(
@@ -24483,15 +24498,275 @@ function ChartPieNode({
24483
24498
  x: \u5B57x,
24484
24499
  y: \u6298\u308Cy + 15,
24485
24500
  textAnchor: \u53F3 ? "start" : "end",
24486
- fontSize: \u6570\u5024\u306E\u7D1A,
24501
+ fontSize: \u540D\u524D\u306E\u7D1A,
24487
24502
  fill: "var(--cdl-text-dim, #5a6270)",
24488
- children: \u6570\u5024\u306E\u6587\u5B57[idx]
24503
+ children: \u540D\u524D\u306E\u6587\u5B57[idx]
24489
24504
  }
24490
24505
  )
24491
24506
  ] }, `callout-${idx}`);
24492
24507
  })
24493
24508
  ] });
24494
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
+ }
24495
24770
  function \u6247\u5F62\u306E\u5207\u308A\u629C\u304D(cx, cy, r, \u958B\u304D) {
24496
24771
  if (\u958B\u304D <= 0) return null;
24497
24772
  if (\u958B\u304D >= 1) return /* @__PURE__ */ jsx("circle", { cx, cy, r });
@@ -24693,8 +24968,8 @@ function ChartRadialNode({
24693
24968
  frac,
24694
24969
  \u4E2D\u5FC3\u534A\u5F84,
24695
24970
  // 軌道は全周。 1 周ちょうどは弧で表せないので、 わずかに欠かして描く
24696
- \u8ECC\u9053: \u5F27\u306E\u9053(\u5F27\u306Ecx, cy, \u4E2D\u5FC3\u534A\u5F84, \u5E2F\u306E\u5E45, 0.9999),
24697
- \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))
24698
24973
  };
24699
24974
  });
24700
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;
@@ -24765,7 +25040,7 @@ function ChartRadialNode({
24765
25040
  ] });
24766
25041
  }
24767
25042
  var \u5370\u306E\u5E45 = 18;
24768
- 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) {
24769
25044
  const \u5916 = \u4E2D\u5FC3\u534A\u5F84 + \u5E45 / 2;
24770
25045
  const \u5185 = Math.max(0.5, \u4E2D\u5FC3\u534A\u5F84 - \u5E45 / 2);
24771
25046
  const a0 = -Math.PI / 2;
@@ -24811,12 +25086,12 @@ function ChartStatNode({
24811
25086
  }
24812
25087
  ),
24813
25088
  data.map((d, idx) => {
24814
- const \u67A0 = \u533A\u753B.\u67A0(idx);
25089
+ const \u67A02 = \u533A\u753B.\u67A0(idx);
24815
25090
  const frac = total > 0 ? d.value / total : 0;
24816
25091
  const \u8272 = \u5370\u306E\u8272(d.tone, idx);
24817
25092
  const \u6570\u5024 = \u5B9F\u5024\u8868\u8A184(d.value);
24818
- 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);
24819
- 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: [
24820
25095
  idx > 0 && /* @__PURE__ */ jsx(
24821
25096
  "line",
24822
25097
  {
@@ -24824,7 +25099,7 @@ function ChartStatNode({
24824
25099
  x1: 0,
24825
25100
  y1: \u533A\u753B.\u4F59\u767D,
24826
25101
  x2: 0,
24827
- y2: \u67A0.h - \u533A\u753B.\u4F59\u767D,
25102
+ y2: \u67A02.h - \u533A\u753B.\u4F59\u767D,
24828
25103
  stroke: "var(--cdl-divider, #d4d4d8)",
24829
25104
  strokeWidth: 1
24830
25105
  }
@@ -24833,7 +25108,7 @@ function ChartStatNode({
24833
25108
  "text",
24834
25109
  {
24835
25110
  "data-cdl-role": "chart-stat-label",
24836
- x: \u67A0.w / 2,
25111
+ x: \u67A02.w / 2,
24837
25112
  y: \u533A\u753B.\u540D\u524D\u306Ey,
24838
25113
  fontSize: \u533A\u753B.\u540D\u524D\u306E\u7D1A,
24839
25114
  fontWeight: 700,
@@ -24847,7 +25122,7 @@ function ChartStatNode({
24847
25122
  {
24848
25123
  "data-cdl-role": "chart-stat-value",
24849
25124
  "data-cdl-unresolved": d.unresolved ? "true" : void 0,
24850
- x: \u67A0.w / 2,
25125
+ x: \u67A02.w / 2,
24851
25126
  y: \u533A\u753B.\u6570\u5024\u306Ey,
24852
25127
  fontSize: \u6570\u5024\u306E\u7D1A,
24853
25128
  fontWeight: 700,
@@ -24860,7 +25135,7 @@ function ChartStatNode({
24860
25135
  "circle",
24861
25136
  {
24862
25137
  "data-cdl-role": "chart-stat-track",
24863
- cx: \u67A0.w / 2,
25138
+ cx: \u67A02.w / 2,
24864
25139
  cy: \u533A\u753B.\u5F27\u306Ey,
24865
25140
  r: \u533A\u753B.\u5F27\u306E\u534A\u5F84,
24866
25141
  fill: "none",
@@ -24873,7 +25148,7 @@ function ChartStatNode({
24873
25148
  "path",
24874
25149
  {
24875
25150
  "data-cdl-role": "chart-stat-arc",
24876
- 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)),
24877
25152
  fill: "none",
24878
25153
  stroke: \u8272,
24879
25154
  strokeWidth: \u533A\u753B.\u5F27\u306E\u592A\u3055,
@@ -24884,7 +25159,7 @@ function ChartStatNode({
24884
25159
  "text",
24885
25160
  {
24886
25161
  "data-cdl-role": "chart-stat-share",
24887
- x: \u67A0.w / 2,
25162
+ x: \u67A02.w / 2,
24888
25163
  y: \u533A\u753B.\u5272\u5408\u306Ey,
24889
25164
  fontSize: \u533A\u753B.\u5272\u5408\u306E\u7D1A,
24890
25165
  textAnchor: "middle",
@@ -24929,7 +25204,7 @@ function \u53CE\u3081\u308B\u7D1A(\u5B57, \u4F7F\u3048\u308B\u5E452, \u521D\u671
24929
25204
  while (\u7D1A > \u4E0B\u9650 && textWidth(\u5B57, \u7D1A) > \u4F7F\u3048\u308B\u5E452) \u7D1A -= 1;
24930
25205
  return \u7D1A;
24931
25206
  }
24932
- function \u5F27\u306E\u90532(cx, cy, r, \u5272\u5408) {
25207
+ function \u5F27\u306E\u90533(cx, cy, r, \u5272\u5408) {
24933
25208
  const a0 = -Math.PI / 2;
24934
25209
  const a1 = a0 + \u5272\u5408 * Math.PI * 2;
24935
25210
  const large = \u5272\u5408 > 0.5 ? 1 : 0;