@belonguniverseai/react-sdk 0.6.2 → 0.6.4

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.
Files changed (81) hide show
  1. package/dist/api/agent-grants.d.ts +23 -8
  2. package/dist/api/client.d.ts +53 -4
  3. package/dist/api/queries.d.ts +2 -0
  4. package/dist/app/call-summary.d.ts +30 -0
  5. package/dist/component/abnfDiagram-N423BO3Z-DR3fMT7g.js +90 -0
  6. package/dist/component/arc-DJkYOSuJ.js +86 -0
  7. package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-BIp4IBPk.js} +1872 -1785
  8. package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-BqryGqC6.js} +895 -894
  9. package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-GktlF-Di.js} +3 -3
  10. package/dist/component/{channel-CYFijF_t.js → channel-3CusDaXb.js} +2 -2
  11. package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-DMTs6j_c.js} +5 -5
  12. package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-CIU34hPH.js} +2 -2
  13. package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-Ds3vF1Mv.js} +399 -378
  14. package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-DGxDkIm6.js} +2 -2
  15. package/dist/component/chunk-6Q2QTUOP-BI8oZt98.js +673 -0
  16. package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-D-36xUd5.js} +244 -239
  17. package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-8N_wQ762.js} +2 -2
  18. package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-ChxxpkWc.js} +2 -2
  19. package/dist/component/chunk-RYQCIY6F-CSY-95OP.js +316 -0
  20. package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-BQd9yyE1.js} +2 -2
  21. package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-BOq63iUL.js} +3 -3
  22. package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-BOq63iUL.js} +3 -3
  23. package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-B9x8cp5w.js} +2 -2
  24. package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
  25. package/dist/component/cynefinDiagram-MW4NZA55-OF6l99SS.js +302 -0
  26. package/dist/component/dagre-VZM6K2ZE-CELO1hFb.js +343 -0
  27. package/dist/component/diagram-7IWD3JNH-COzvm6E2.js +353 -0
  28. package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DR9KMRGw.js} +24 -24
  29. package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-D47Zqm-k.js} +23 -23
  30. package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-Key1bw_Y.js} +197 -197
  31. package/dist/component/diagram-UB23O5K3-Cxf-sZnK.js +222 -0
  32. package/dist/component/ebnfDiagram-BXEA7PRR-C8uURt_x.js +112 -0
  33. package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-CpCxe8Ib.js} +142 -131
  34. package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-urFG2I71.js} +268 -258
  35. package/dist/component/ganttDiagram-PKOTCBZU-8nA9faYf.js +2714 -0
  36. package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-u4cbNW8o.js} +33 -33
  37. package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
  38. package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-Bo-15uvJ.js} +2 -2
  39. package/dist/component/index.js +2 -2
  40. package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-ZAv4gZpA.js} +4 -4
  41. package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-CvB6evSz.js} +27 -27
  42. package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-M5BRYuPr.js} +5 -5
  43. package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-LL6GkmVe.js} +35 -35
  44. package/dist/component/layout-Br2UjHRU.js +1522 -0
  45. package/dist/component/{linear-BT4blD8s.js → linear-DVg61V66.js} +13 -13
  46. package/dist/component/map-CdwokNh2.js +227 -0
  47. package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-C2L7fCIM.js} +29577 -29128
  48. package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-BBZzsLh7.js} +26 -26
  49. package/dist/component/pegDiagram-VL7TDLO6-BEG86cY8.js +98 -0
  50. package/dist/component/pieDiagram-7S7Q4E2Y-BTkrNjAi.js +210 -0
  51. package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-BsjBAd4w.js} +14 -15
  52. package/dist/component/railroadDiagram-AXF67PYL-DuE0ZFxj.js +80 -0
  53. package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-CcshEEMy.js} +15 -15
  54. package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-CFn011ig.js} +2 -2
  55. package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-DmMZNJDw.js} +960 -963
  56. package/dist/component/sizeCapture-X5ZJPWSS-Ce4PhIAO.js +49 -0
  57. package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DDVzQKaO.js} +5 -5
  58. package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DeeW8PDA.js} +3 -3
  59. package/dist/component/swimlanes-SLNWSIFB-CZh2_vzg.js +5335 -0
  60. package/dist/component/swimlanesDiagram-ULZ7WXOC-Wb0Ri7qR.js +16 -0
  61. package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-rfiLwdTR.js} +15 -15
  62. package/dist/component/vennDiagram-T6HMQDX7-D8l7hqNb.js +1581 -0
  63. package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-7YqmpmtC.js} +15 -15
  64. package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-Dx2ECqt8.js} +464 -418
  65. package/dist/embed/voice/line-slots.d.ts +37 -2
  66. package/dist/embed/voice-call.d.ts +12 -0
  67. package/dist/i18n/messages/en.d.ts +1 -2
  68. package/dist/lib/web-storage.d.ts +8 -0
  69. package/dist/stream/belong-chat-transport.d.ts +1 -0
  70. package/dist/stream/belong-data-parts.d.ts +2 -0
  71. package/dist/stream/stream-state-store.d.ts +13 -0
  72. package/dist/types/public.d.ts +3 -0
  73. package/package.json +1 -1
  74. package/dist/component/arc-TLcl3N8_.js +0 -86
  75. package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
  76. package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
  77. package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
  78. package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
  79. package/dist/component/layout-Bu6nRdWm.js +0 -1731
  80. package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
  81. package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
@@ -19,11 +19,40 @@
19
19
  * switch must not hand a slot from workspace A to a session that actually
20
20
  * belongs to workspace B.
21
21
  *
22
- * localStorage is a perimeter: the persisted bag is zod-validated on read and
22
+ * TAB isolation multi-tab), the same two tiers and the same rules
23
+ * `stream-state-store.ts` uses for the session pointer:
24
+ *
25
+ * • AUTHORITATIVE bag → `sessionStorage` (PER TAB). What this tab's rail
26
+ * rehydrates from, `runId`s included. Survives a same-tab reload (§41),
27
+ * invisible to every other tab.
28
+ * • SEED → `localStorage` (SHARED). The same bag with every `runId` stripped.
29
+ * A brand-new tab with no bag of its own adopts it ONCE so it comes up
30
+ * holding the user's agents (today's UX, and what a returning visitor
31
+ * expects after closing the browser).
32
+ *
33
+ * The tiers exist because the rail used to live entirely in `localStorage`,
34
+ * which made three tabs of one workspace share ONE set of bindings. Whichever
35
+ * tab last moved an agent silently re-pointed every other tab's rail;
36
+ * `closeAgentLine` wiped the agent everywhere at once; and a boot
37
+ * `reattachPendingLineRuns()` (BelongDock) could open a reader — one that also
38
+ * drives host route navigation — against a `runId` a DIFFERENT tab was
39
+ * driving. Field report (Simetrik, 2026-08-05): "al cerrar el agente o
40
+ * intentar abrir el mismo chat en otra pestaña … el contenido no se carga
41
+ * correctamente — mostrando el contenido de otro chat activo".
42
+ *
43
+ * Stripping `runId` from the seed is what makes cross-tab adoption safe: a
44
+ * brand-new tab inherits WHO the agents are, never a live run it owns no
45
+ * reader for. A genuine same-tab reload still rehydrates its own in-flight
46
+ * runs, because it reads its own `sessionStorage` bag rather than the seed.
47
+ *
48
+ * Web Storage is a perimeter: the persisted bag is zod-validated on read and
23
49
  * any junk (corrupted JSON, wrong shape, storage disabled) degrades to "no
24
50
  * slots" — the switchboard just starts fresh, same as a first-ever call. The
25
51
  * schema is back-compatible with the pre-line-1 bag: a persisted object with
26
52
  * only `line2`/`line3` still parses fine, `line1` just defaults to `null`.
53
+ * It is also back-compatible ACROSS this change: an existing localStorage bag
54
+ * is exactly what the seed looks like, so an upgrading tab adopts the agents
55
+ * it already had.
27
56
  *
28
57
  * `runId` (F3/R4 — reload must not lie about a still-running background
29
58
  * line): the durable half of `bindLineRun`'s in-memory tracking, written by
@@ -98,6 +127,12 @@ export declare const readAllLineSlots: () => readonly {
98
127
  readonly line: SlotLine;
99
128
  readonly slot: LineSlot;
100
129
  }[];
101
- /** Test-only: drop every persisted slot for the current workspace scope. */
130
+ /** Test-only: drop every persisted slot for the current workspace scope, in
131
+ * BOTH tiers, and forget this realm's provenance/seed bookkeeping — so the
132
+ * next read behaves like a brand-new tab with nothing to adopt. */
102
133
  export declare const __clearLineSlotsForTest: () => void;
134
+ /** Test-only: re-mint this module's PAGE-REALM state (provenance + seed cache)
135
+ * without touching Web Storage, so a test can model a fresh page load while
136
+ * choosing for itself which storage tiers carry over. */
137
+ export declare const __resetLineSlotsProvenanceForTest: () => void;
103
138
  export {};
@@ -36,6 +36,18 @@ export type CallState = {
36
36
  readonly assistantCaption: string;
37
37
  /** True from a send_to_belong_agent dispatch until its reply is delivered. */
38
38
  readonly agentBusy: boolean;
39
+ /**
40
+ * What the agent was ASKED to do, verbatim, from dispatch until the run
41
+ * reaches a terminal state; `null` when nothing is in flight.
42
+ *
43
+ * State rather than a timeline row on purpose. It is the summary card's
44
+ * HEADLINE, so a row saying the same thing rendered it twice on one screen —
45
+ * and it counted toward "Worked · N steps", which must count what the agent
46
+ * DID, not what it was asked. Stored WHOLE and untrimmed (the exact string
47
+ * the delegate listeners got): the card truncates for display in CSS, and
48
+ * `callSummary` blank-guards it.
49
+ */
50
+ readonly currentRequest: string | null;
39
51
  /** Current tool phase of the delegated run (drives the orb's work badge). */
40
52
  readonly workPhase: "coding" | "files" | "actions" | null;
41
53
  /** True while the voice model is producing a spoken response. */
@@ -535,8 +535,7 @@ export declare const en: {
535
535
  readonly lineFailed: "Couldn't finish";
536
536
  readonly lineIdle: "Ready";
537
537
  readonly activity: "Activity";
538
- readonly showConversationLog: "Show what was said";
539
- readonly hideConversationLog: "Hide what was said";
538
+ readonly conversation: "Conversation";
540
539
  readonly ambientTypingCode: "Typing code…";
541
540
  readonly ambientReviewingDiff: "Reviewing the diff…";
542
541
  readonly ambientRunningChecks: "Running checks…";
@@ -0,0 +1,8 @@
1
+ /** The small Web Storage surface used by the SDK's durable browser state. */
2
+ type WebStorage = Pick<Storage, "getItem" | "setItem" | "removeItem">;
3
+ export declare const getSessionStorage: () => WebStorage | null;
4
+ export declare const getLocalStorage: () => WebStorage | null;
5
+ export declare const readWebStorage: (store: WebStorage | null, key: string) => string | null;
6
+ export declare const writeWebStorage: (store: WebStorage | null, key: string, value: string) => void;
7
+ export declare const removeWebStorage: (store: WebStorage | null, key: string) => void;
8
+ export {};
@@ -133,6 +133,7 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
133
133
  data: z.ZodObject<{
134
134
  provider: z.ZodString;
135
135
  scopeExternalId: z.ZodString;
136
+ sourceTrigger: z.ZodOptional<z.ZodLiteral<"reactive_reconnect">>;
136
137
  }, z.core.$strip>;
137
138
  }, z.core.$strip>, z.ZodObject<{
138
139
  type: z.ZodLiteral<"data-navigation">;
@@ -175,6 +175,8 @@ export type UiActionData = {
175
175
  export type CliReconnectData = {
176
176
  readonly provider: string;
177
177
  readonly scopeExternalId: string;
178
+ /** Present on reactive reconnects; optional while older stream history replays. */
179
+ readonly sourceTrigger?: "reactive_reconnect" | undefined;
178
180
  };
179
181
  export type NavigationData = {
180
182
  readonly routeName: string;
@@ -23,6 +23,19 @@ export declare const peekGenerationLostSession: () => string | null;
23
23
  * consumed, or superseded by a newer loss) — a stale reconciler can never
24
24
  * clear a loss it did not actually adopt. */
25
25
  export declare const consumeGenerationLostSession: (sessionId: string) => void;
26
+ /**
27
+ * May per-tab state found at the FIRST read of this page realm keep a live run
28
+ * id? True only for a navigation that PROVES the writing realm is gone (a
29
+ * genuine reload, bfcache/back-forward, or an environment with no Performance
30
+ * API to ask). A `navigate` load is what "Duplicate Tab" performs, and the
31
+ * original tab is still there consuming its own runs.
32
+ *
33
+ * Exported because `sessionStorage` now carries TWO per-tab tiers that both
34
+ * name live runs — the session pointer + parked cursors here, and the rail's
35
+ * agent-line slots (`embed/voice/line-slots.ts`). One duplicate-tab rule for
36
+ * both, so a clone can never double-attach to a run from either direction.
37
+ */
38
+ export declare const mayKeepClonedRunIds: () => boolean;
26
39
  /**
27
40
  * The tab's active stream state.
28
41
  *
@@ -246,6 +246,9 @@ export type BelongGlobal = {
246
246
  userCaption?: string;
247
247
  assistantCaption?: string;
248
248
  agentBusy?: boolean;
249
+ /** What the agent was ASKED to do — the call summary card's headline when
250
+ * no plan step is in flight. State, not a timeline row. */
251
+ currentRequest?: string | null;
249
252
  workPhase?: "coding" | "files" | "actions" | null;
250
253
  speaking?: boolean;
251
254
  thinking?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belonguniverseai/react-sdk",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Belong — embeddable React AI assistant dock. Mount <BelongWidget> in your app tree with getToken dependency-injection auth.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,86 +0,0 @@
1
- import { O as ln, P as an, Q as g, S as on, T as Z, V as w, W as _, X as sn, Y as rn, Z as z, $ as t, a0 as V, a1 as un, a2 as tn, a3 as fn } from "./mermaid-GHXKKRXX-DXPXjnb7.js";
2
- globalThis.process = globalThis.process || { env: {} };
3
- globalThis.global = globalThis.global || globalThis;
4
- function cn(l) {
5
- return l.innerRadius;
6
- }
7
- function gn(l) {
8
- return l.outerRadius;
9
- }
10
- function yn(l) {
11
- return l.startAngle;
12
- }
13
- function pn(l) {
14
- return l.endAngle;
15
- }
16
- function dn(l) {
17
- return l && l.padAngle;
18
- }
19
- function hn(l, x, q, O, v, T, W, a) {
20
- var D = q - l, u = O - x, n = W - v, p = a - T, s = p * D - n * u;
21
- if (!(s * s < g))
22
- return s = (n * (x - T) - p * (l - v)) / s, [l + s * D, x + s * u];
23
- }
24
- function J(l, x, q, O, v, T, W) {
25
- var a = l - q, D = x - O, u = (W ? T : -T) / z(a * a + D * D), n = u * D, p = -u * a, s = l + n, i = x + p, f = q + n, c = O + p, X = (s + f) / 2, o = (i + c) / 2, d = f - s, y = c - i, A = d * d + y * y, R = v - T, b = s * c - f * i, E = (y < 0 ? -1 : 1) * z(fn(0, R * R * A - b * b)), I = (b * y - d * E) / A, Q = (-b * d - y * E) / A, P = (b * y + d * E) / A, h = (-b * d + y * E) / A, m = I - X, e = Q - o, r = P - X, Y = h - o;
26
- return m * m + e * e > r * r + Y * Y && (I = P, Q = h), {
27
- cx: I,
28
- cy: Q,
29
- x01: -n,
30
- y01: -p,
31
- x11: I * (v / R - 1),
32
- y11: Q * (v / R - 1)
33
- };
34
- }
35
- function xn() {
36
- var l = cn, x = gn, q = V(0), O = null, v = yn, T = pn, W = dn, a = null, D = ln(u);
37
- function u() {
38
- var n, p, s = +l.apply(this, arguments), i = +x.apply(this, arguments), f = v.apply(this, arguments) - an, c = T.apply(this, arguments) - an, X = sn(c - f), o = c > f;
39
- if (a || (a = n = D()), i < s && (p = i, i = s, s = p), !(i > g)) a.moveTo(0, 0);
40
- else if (X > on - g)
41
- a.moveTo(i * Z(f), i * w(f)), a.arc(0, 0, i, f, c, !o), s > g && (a.moveTo(s * Z(c), s * w(c)), a.arc(0, 0, s, c, f, o));
42
- else {
43
- var d = f, y = c, A = f, R = c, b = X, E = X, I = W.apply(this, arguments) / 2, Q = I > g && (O ? +O.apply(this, arguments) : z(s * s + i * i)), P = _(sn(i - s) / 2, +q.apply(this, arguments)), h = P, m = P, e, r;
44
- if (Q > g) {
45
- var Y = un(Q / s * w(I)), B = un(Q / i * w(I));
46
- (b -= Y * 2) > g ? (Y *= o ? 1 : -1, A += Y, R -= Y) : (b = 0, A = R = (f + c) / 2), (E -= B * 2) > g ? (B *= o ? 1 : -1, d += B, y -= B) : (E = 0, d = y = (f + c) / 2);
47
- }
48
- var $ = i * Z(d), j = i * w(d), C = s * Z(R), F = s * w(R);
49
- if (P > g) {
50
- var G = i * Z(y), H = i * w(y), K = s * Z(A), L = s * w(A), S;
51
- if (X < rn)
52
- if (S = hn($, j, K, L, G, H, C, F)) {
53
- var M = $ - S[0], N = j - S[1], U = G - S[0], k = H - S[1], nn = 1 / w(tn((M * U + N * k) / (z(M * M + N * N) * z(U * U + k * k))) / 2), en = z(S[0] * S[0] + S[1] * S[1]);
54
- h = _(P, (s - en) / (nn - 1)), m = _(P, (i - en) / (nn + 1));
55
- } else
56
- h = m = 0;
57
- }
58
- E > g ? m > g ? (e = J(K, L, $, j, i, m, o), r = J(G, H, C, F, i, m, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), m < P ? a.arc(e.cx, e.cy, m, t(e.y01, e.x01), t(r.y01, r.x01), !o) : (a.arc(e.cx, e.cy, m, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, i, t(e.cy + e.y11, e.cx + e.x11), t(r.cy + r.y11, r.cx + r.x11), !o), a.arc(r.cx, r.cy, m, t(r.y11, r.x11), t(r.y01, r.x01), !o))) : (a.moveTo($, j), a.arc(0, 0, i, d, y, !o)) : a.moveTo($, j), !(s > g) || !(b > g) ? a.lineTo(C, F) : h > g ? (e = J(C, F, G, H, s, -h, o), r = J($, j, K, L, s, -h, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), h < P ? a.arc(e.cx, e.cy, h, t(e.y01, e.x01), t(r.y01, r.x01), !o) : (a.arc(e.cx, e.cy, h, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, s, t(e.cy + e.y11, e.cx + e.x11), t(r.cy + r.y11, r.cx + r.x11), o), a.arc(r.cx, r.cy, h, t(r.y11, r.x11), t(r.y01, r.x01), !o))) : a.arc(0, 0, s, R, A, o);
59
- }
60
- if (a.closePath(), n) return a = null, n + "" || null;
61
- }
62
- return u.centroid = function() {
63
- var n = (+l.apply(this, arguments) + +x.apply(this, arguments)) / 2, p = (+v.apply(this, arguments) + +T.apply(this, arguments)) / 2 - rn / 2;
64
- return [Z(p) * n, w(p) * n];
65
- }, u.innerRadius = function(n) {
66
- return arguments.length ? (l = typeof n == "function" ? n : V(+n), u) : l;
67
- }, u.outerRadius = function(n) {
68
- return arguments.length ? (x = typeof n == "function" ? n : V(+n), u) : x;
69
- }, u.cornerRadius = function(n) {
70
- return arguments.length ? (q = typeof n == "function" ? n : V(+n), u) : q;
71
- }, u.padRadius = function(n) {
72
- return arguments.length ? (O = n == null ? null : typeof n == "function" ? n : V(+n), u) : O;
73
- }, u.startAngle = function(n) {
74
- return arguments.length ? (v = typeof n == "function" ? n : V(+n), u) : v;
75
- }, u.endAngle = function(n) {
76
- return arguments.length ? (T = typeof n == "function" ? n : V(+n), u) : T;
77
- }, u.padAngle = function(n) {
78
- return arguments.length ? (W = typeof n == "function" ? n : V(+n), u) : W;
79
- }, u.context = function(n) {
80
- return arguments.length ? (a = n ?? null, u) : a;
81
- }, u;
82
- }
83
- export {
84
- xn as d
85
- };
86
- //# sourceMappingURL=arc-TLcl3N8_.js.map