redraft-local 0.3.0 → 0.3.2

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 (76) hide show
  1. package/README.md +14 -5
  2. package/dist/assets/{arc-Bx_jbFSO.js → arc-CtizfBQQ.js} +1 -1
  3. package/dist/assets/{architectureDiagram-3BPJPVTR-DjViQx0O.js → architectureDiagram-3BPJPVTR-DbpaKzoo.js} +1 -1
  4. package/dist/assets/{blockDiagram-GPEHLZMM-DTCH35T-.js → blockDiagram-GPEHLZMM-CkLhNd3N.js} +1 -1
  5. package/dist/assets/{c4Diagram-AAUBKEIU-D5QclxBl.js → c4Diagram-AAUBKEIU-CukSDIea.js} +1 -1
  6. package/dist/assets/channel-B7j7nBsx.js +1 -0
  7. package/dist/assets/{chunk-2J33WTMH-mfns4_-x.js → chunk-2J33WTMH-B0Yy4Onf.js} +1 -1
  8. package/dist/assets/{chunk-4BX2VUAB-B61uUGMe.js → chunk-4BX2VUAB-DGK1OqoI.js} +1 -1
  9. package/dist/assets/{chunk-55IACEB6-DA6e9MgI.js → chunk-55IACEB6-C9RD_nka.js} +1 -1
  10. package/dist/assets/{chunk-727SXJPM-BpqsaEKK.js → chunk-727SXJPM-Ckdg_y0-.js} +1 -1
  11. package/dist/assets/{chunk-AQP2D5EJ-BpA21YaX.js → chunk-AQP2D5EJ-Iqf7yZyw.js} +1 -1
  12. package/dist/assets/{chunk-FMBD7UC4-B2Ooo6PY.js → chunk-FMBD7UC4-CZfqL2kd.js} +1 -1
  13. package/dist/assets/{chunk-ND2GUHAM-BXrYGaJ8.js → chunk-ND2GUHAM-CBrI82kE.js} +1 -1
  14. package/dist/assets/{chunk-QZHKN3VN-BibzV1lc.js → chunk-QZHKN3VN-FT2rpaoP.js} +1 -1
  15. package/dist/assets/classDiagram-4FO5ZUOK-CSTMqP8F.js +1 -0
  16. package/dist/assets/classDiagram-v2-Q7XG4LA2-CSTMqP8F.js +1 -0
  17. package/dist/assets/{cose-bilkent-S5V4N54A-B3L_ap3d.js → cose-bilkent-S5V4N54A-BOgP2HKl.js} +1 -1
  18. package/dist/assets/{dagre-BM42HDAG-DINnYhJj.js → dagre-BM42HDAG-vRlkQPb1.js} +1 -1
  19. package/dist/assets/{diagram-2AECGRRQ-DKkMzolj.js → diagram-2AECGRRQ-DxNVqXZJ.js} +1 -1
  20. package/dist/assets/{diagram-5GNKFQAL-C-qGYHLO.js → diagram-5GNKFQAL-C2wOd4AA.js} +1 -1
  21. package/dist/assets/{diagram-KO2AKTUF-D_YywoHO.js → diagram-KO2AKTUF-C6RHUZpj.js} +1 -1
  22. package/dist/assets/{diagram-LMA3HP47-AEU6Wn4e.js → diagram-LMA3HP47-Uj75ANbt.js} +1 -1
  23. package/dist/assets/{diagram-OG6HWLK6-YD2sPLDn.js → diagram-OG6HWLK6-AOPQIteg.js} +1 -1
  24. package/dist/assets/{erDiagram-TEJ5UH35-D0LN3ezf.js → erDiagram-TEJ5UH35-In-vAKrQ.js} +1 -1
  25. package/dist/assets/{flowDiagram-I6XJVG4X-CXlehrNY.js → flowDiagram-I6XJVG4X-Cb2dcq0r.js} +1 -1
  26. package/dist/assets/{ganttDiagram-6RSMTGT7-C9nvnDAY.js → ganttDiagram-6RSMTGT7-B_7uPfLD.js} +1 -1
  27. package/dist/assets/{gitGraphDiagram-PVQCEYII-D7ZroEN3.js → gitGraphDiagram-PVQCEYII-BiGx2oFk.js} +1 -1
  28. package/dist/assets/{graph-CE-se89a.js → graph-xuKpjy49.js} +1 -1
  29. package/dist/assets/{index-qsbINBhr.js → index-BD0SuTSe.js} +1 -1
  30. package/dist/assets/{index-BCL8kGum.js → index-BFV-LgC1.js} +1 -1
  31. package/dist/assets/{index-BhuIF3I3.js → index-BKZT9qnp.js} +64 -64
  32. package/dist/assets/{index-D_3FPuNW.js → index-BNl6vqtJ.js} +1 -1
  33. package/dist/assets/{index-ASrd2Wik.js → index-Bw9S7eZm.js} +1 -1
  34. package/dist/assets/{index-C4PHx-Ir.js → index-CDCZ4ADj.js} +1 -1
  35. package/dist/assets/{index-rPcj-Gx2.js → index-CMIA50ZI.js} +1 -1
  36. package/dist/assets/{index-_I9OSuqo.js → index-CQLu6KWj.js} +1 -1
  37. package/dist/assets/{index-xGMsFCHl.js → index-CRc05z5f.js} +1 -1
  38. package/dist/assets/{index-6NUw7hAj.js → index-CuzNm-Ar.js} +1 -1
  39. package/dist/assets/{index-DhjaRjYm.js → index-CvEO07HR.js} +1 -1
  40. package/dist/assets/{index-Bmay4cy6.js → index-Cw_eFu0l.js} +1 -1
  41. package/dist/assets/{index-Mx22hCLl.js → index-D0YrBwVT.js} +1 -1
  42. package/dist/assets/{index-nFXe-aH0.js → index-D4vAZ0aX.js} +1 -1
  43. package/dist/assets/{index-1qrnqL9_.js → index-DG3WdO12.js} +1 -1
  44. package/dist/assets/{index-DC2NcJNs.js → index-DgUC_hAG.js} +1 -1
  45. package/dist/assets/{index-hKBKonfI.js → index-DgjqzWC4.js} +1 -1
  46. package/dist/assets/{index-BrgcB8UX.js → index-DhieV5_E.js} +1 -1
  47. package/dist/assets/{index-BNihLXv8.js → index-DsKku2lL.js} +1 -1
  48. package/dist/assets/{index-BGb5UavJ.js → index-DzbJijCS.js} +1 -1
  49. package/dist/assets/{index-da2592jx.js → index-KsktlT41.js} +1 -1
  50. package/dist/assets/{index-DujzHA84.js → index-jxCRllCp.js} +1 -1
  51. package/dist/assets/{index-drqy7sPe.js → index-wyvfyeQa.js} +1 -1
  52. package/dist/assets/{infoDiagram-5YYISTIA-CV6G_t-j.js → infoDiagram-5YYISTIA-L207xqBe.js} +1 -1
  53. package/dist/assets/{ishikawaDiagram-YF4QCWOH-D6sL9j9e.js → ishikawaDiagram-YF4QCWOH-0muVT5-F.js} +1 -1
  54. package/dist/assets/{journeyDiagram-JHISSGLW-CI5swLIH.js → journeyDiagram-JHISSGLW-BTmOQjYc.js} +1 -1
  55. package/dist/assets/{kanban-definition-UN3LZRKU-D888RYZs.js → kanban-definition-UN3LZRKU-D_F0JZJI.js} +1 -1
  56. package/dist/assets/{layout-9d3Xovxi.js → layout-DIg-HGqB.js} +1 -1
  57. package/dist/assets/{linear-DQU338XI.js → linear-DtPsvWUz.js} +1 -1
  58. package/dist/assets/{mindmap-definition-RKZ34NQL-AksJikmW.js → mindmap-definition-RKZ34NQL-OLfBfIsD.js} +1 -1
  59. package/dist/assets/{pieDiagram-4H26LBE5-DvIRic1J.js → pieDiagram-4H26LBE5-Cff0AKXq.js} +1 -1
  60. package/dist/assets/{quadrantDiagram-W4KKPZXB-CUzLA5Mr.js → quadrantDiagram-W4KKPZXB-CpCngqRp.js} +1 -1
  61. package/dist/assets/{requirementDiagram-4Y6WPE33-0lCsM2Z0.js → requirementDiagram-4Y6WPE33-V9XuCZN7.js} +1 -1
  62. package/dist/assets/{sankeyDiagram-5OEKKPKP-CtZX8ASr.js → sankeyDiagram-5OEKKPKP-BiVVD80B.js} +1 -1
  63. package/dist/assets/{sequenceDiagram-3UESZ5HK-GETLRQod.js → sequenceDiagram-3UESZ5HK-BX7XjSPc.js} +1 -1
  64. package/dist/assets/{stateDiagram-AJRCARHV-BtTa97TK.js → stateDiagram-AJRCARHV-DjwDQ563.js} +1 -1
  65. package/dist/assets/stateDiagram-v2-BHNVJYJU-DSyaqDM0.js +1 -0
  66. package/dist/assets/{timeline-definition-PNZ67QCA-CvA7jkPZ.js → timeline-definition-PNZ67QCA-DJS8Rt_s.js} +1 -1
  67. package/dist/assets/{vennDiagram-CIIHVFJN-CMzWVwtX.js → vennDiagram-CIIHVFJN-D4rv5HqL.js} +1 -1
  68. package/dist/assets/{wardley-L42UT6IY-DbHZ1ZTL.js → wardley-L42UT6IY-BUoGA5po.js} +1 -1
  69. package/dist/assets/{wardleyDiagram-YWT4CUSO-Beh7T2eb.js → wardleyDiagram-YWT4CUSO-DLOLLe6c.js} +1 -1
  70. package/dist/assets/{xychartDiagram-2RQKCTM6-B2ZT9iKb.js → xychartDiagram-2RQKCTM6-CmzYSbAc.js} +1 -1
  71. package/dist/index.html +1 -1
  72. package/package.json +3 -2
  73. package/dist/assets/channel-DVcOphtD.js +0 -1
  74. package/dist/assets/classDiagram-4FO5ZUOK-Ba4S_4Bd.js +0 -1
  75. package/dist/assets/classDiagram-v2-Q7XG4LA2-Ba4S_4Bd.js +0 -1
  76. package/dist/assets/stateDiagram-v2-BHNVJYJU-CtJkPcip.js +0 -1
package/README.md CHANGED
@@ -15,11 +15,11 @@ ReDraft is a review workspace for markdown documents. It lets teams browse repos
15
15
  - Supports inline comment threads, replies, and resolution
16
16
  - Lets different users work in the mode that fits them best
17
17
 
18
- | Mode | Best for | Data source | Editing style |
19
- |---|---|---|---|
20
- | **Remote WYSIWYG** | Non-technical reviewers | GitHub repository | Rich-text editing in the browser |
21
- | **Remote Markdown** | Technical contributors | GitHub repository | Raw markdown + preview |
22
- | **Local + AI** | Power users and AI agents | Local files on disk | Browser UI + direct file edits |
18
+ | Mode | Best for | Data source | Editing style |
19
+ | ------------------- | ------------------------- | ------------------- | -------------------------------- |
20
+ | **Remote WYSIWYG** | Non-technical reviewers | GitHub repository | Rich-text editing in the browser |
21
+ | **Remote Markdown** | Technical contributors | GitHub repository | Raw markdown + preview |
22
+ | **Local + AI** | Power users and AI agents | Local files on disk | Browser UI + direct file edits |
23
23
 
24
24
  ---
25
25
 
@@ -32,6 +32,7 @@ Remote mode is the hosted GitHub-backed experience. You connect ReDraft to a rep
32
32
  Use **View** and **WYSIWYG** modes when you want to read, comment, and make light edits without working directly in markdown syntax.
33
33
 
34
34
  Typical workflow:
35
+
35
36
  1. Open the hosted ReDraft site.
36
37
  2. Enter a fine-grained GitHub PAT and `owner/repo`.
37
38
  3. Choose a document from the tree.
@@ -43,6 +44,7 @@ Typical workflow:
43
44
  Use **Raw** mode when you want direct markdown control while still keeping the browser review workflow.
44
45
 
45
46
  Typical workflow:
47
+
46
48
  1. Connect to the target repository.
47
49
  2. Open a document from the tree.
48
50
  3. Switch between **View**, **WYSIWYG**, and **Raw** as needed.
@@ -52,10 +54,12 @@ Typical workflow:
52
54
  ### Remote mode requirements
53
55
 
54
56
  ReDraft expects a fine-grained GitHub PAT with:
57
+
55
58
  - **Contents: Read/Write**
56
59
  - **Metadata: Read**
57
60
 
58
61
  Repository conventions:
62
+
59
63
  - Markdown documents can live anywhere in the repo
60
64
  - Comment threads live under `.redraft/comments/<mirrored-path>.comments.json`
61
65
  - Document content and comment files are written with SHA checks for conflict detection
@@ -105,7 +109,10 @@ npm run build
105
109
  npm run serve
106
110
  ```
107
111
 
112
+ `npm install` also wires up pre-commit hooks via `git config core.hooksPath .githooks`. The hook runs `format:check` and `lint` before every commit. To activate manually: `npm run prepare`.
113
+
108
114
  What local mode gives you:
115
+
109
116
  - No PAT prompt
110
117
  - Direct read/write access to local `.md` files
111
118
  - Structured review threads stored under `.redraft/comments/`
@@ -117,10 +124,12 @@ What local mode gives you:
117
124
  Local mode is the intended environment for AI-assisted document workflows.
118
125
 
119
126
  The design target is:
127
+
120
128
  - Agents edit markdown documents directly on disk
121
129
  - Agents use the local ReDraft API for structured comment operations
122
130
 
123
131
  Planned/common AI workflows include:
132
+
124
133
  - Review unresolved comment threads one by one
125
134
  - Draft or post replies
126
135
  - Resolve completed threads
@@ -1 +1 @@
1
- import{a8 as ln,a9 as an,aa as g,ab as tn,ac as G,ad as j,ae as _,af as un,ag as rn,ah as K,ai as o,aj as z,ak as sn,al as on,am as fn}from"./index-BhuIF3I3.js";function cn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,E,q,v,A,B,a){var I=E-l,i=q-h,n=B-v,d=a-A,u=d*I-n*i;if(!(u*u<g))return u=(n*(h-A)-d*(l-v))/u,[l+u*I,h+u*i]}function V(l,h,E,q,v,A,B){var a=l-E,I=h-q,i=(B?A:-A)/K(a*a+I*I),n=i*I,d=-i*a,u=l+n,s=h+d,f=E+n,c=q+d,C=(u+f)/2,t=(s+c)/2,m=f-u,y=c-s,R=m*m+y*y,T=v-A,P=u*c-f*s,O=(y<0?-1:1)*K(fn(0,T*T*R-P*P)),S=(P*y-m*O)/R,k=(-P*m-y*O)/R,w=(P*y+m*O)/R,p=(-P*m+y*O)/R,x=S-C,e=k-t,r=w-C,F=p-t;return x*x+e*e>r*r+F*F&&(S=w,k=p),{cx:S,cy:k,x01:-n,y01:-d,x11:S*(v/T-1),y11:k*(v/T-1)}}function hn(){var l=cn,h=gn,E=z(0),q=null,v=yn,A=dn,B=mn,a=null,I=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,C=un(c-f),t=c>f;if(a||(a=n=I()),s<u&&(d=s,s=u,u=d),!(s>g))a.moveTo(0,0);else if(C>tn-g)a.moveTo(s*G(f),s*j(f)),a.arc(0,0,s,f,c,!t),u>g&&(a.moveTo(u*G(c),u*j(c)),a.arc(0,0,u,c,f,t));else{var m=f,y=c,R=f,T=c,P=C,O=C,S=B.apply(this,arguments)/2,k=S>g&&(q?+q.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+E.apply(this,arguments)),p=w,x=w,e,r;if(k>g){var F=sn(k/u*j(S)),L=sn(k/s*j(S));(P-=F*2)>g?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(O-=L*2)>g?(L*=t?1:-1,m+=L,y-=L):(O=0,m=y=(f+c)/2)}var H=s*G(m),J=s*j(m),M=u*G(T),N=u*j(T);if(w>g){var Q=s*G(y),U=s*j(y),W=u*G(R),X=u*j(R),D;if(C<rn)if(D=pn(H,J,W,X,Q,U,M,N)){var Y=H-D[0],Z=J-D[1],$=Q-D[0],b=U-D[1],nn=1/j(on((Y*$+Z*b)/(K(Y*Y+Z*Z)*K($*$+b*b)))/2),en=K(D[0]*D[0]+D[1]*D[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}O>g?x>g?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(H,J),a.arc(0,0,s,m,y,!t)):a.moveTo(H,J),!(u>g)||!(P>g)?a.lineTo(M,N):p>g?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-rn/2;return[G(d)*n,j(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:z(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:z(+n),i):h},i.cornerRadius=function(n){return arguments.length?(E=typeof n=="function"?n:z(+n),i):E},i.padRadius=function(n){return arguments.length?(q=n==null?null:typeof n=="function"?n:z(+n),i):q},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:z(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:z(+n),i):A},i.padAngle=function(n){return arguments.length?(B=typeof n=="function"?n:z(+n),i):B},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
1
+ import{a8 as ln,a9 as an,aa as g,ab as tn,ac as G,ad as j,ae as _,af as un,ag as rn,ah as K,ai as o,aj as z,ak as sn,al as on,am as fn}from"./index-BKZT9qnp.js";function cn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,E,q,v,A,B,a){var I=E-l,i=q-h,n=B-v,d=a-A,u=d*I-n*i;if(!(u*u<g))return u=(n*(h-A)-d*(l-v))/u,[l+u*I,h+u*i]}function V(l,h,E,q,v,A,B){var a=l-E,I=h-q,i=(B?A:-A)/K(a*a+I*I),n=i*I,d=-i*a,u=l+n,s=h+d,f=E+n,c=q+d,C=(u+f)/2,t=(s+c)/2,m=f-u,y=c-s,R=m*m+y*y,T=v-A,P=u*c-f*s,O=(y<0?-1:1)*K(fn(0,T*T*R-P*P)),S=(P*y-m*O)/R,k=(-P*m-y*O)/R,w=(P*y+m*O)/R,p=(-P*m+y*O)/R,x=S-C,e=k-t,r=w-C,F=p-t;return x*x+e*e>r*r+F*F&&(S=w,k=p),{cx:S,cy:k,x01:-n,y01:-d,x11:S*(v/T-1),y11:k*(v/T-1)}}function hn(){var l=cn,h=gn,E=z(0),q=null,v=yn,A=dn,B=mn,a=null,I=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,C=un(c-f),t=c>f;if(a||(a=n=I()),s<u&&(d=s,s=u,u=d),!(s>g))a.moveTo(0,0);else if(C>tn-g)a.moveTo(s*G(f),s*j(f)),a.arc(0,0,s,f,c,!t),u>g&&(a.moveTo(u*G(c),u*j(c)),a.arc(0,0,u,c,f,t));else{var m=f,y=c,R=f,T=c,P=C,O=C,S=B.apply(this,arguments)/2,k=S>g&&(q?+q.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+E.apply(this,arguments)),p=w,x=w,e,r;if(k>g){var F=sn(k/u*j(S)),L=sn(k/s*j(S));(P-=F*2)>g?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(O-=L*2)>g?(L*=t?1:-1,m+=L,y-=L):(O=0,m=y=(f+c)/2)}var H=s*G(m),J=s*j(m),M=u*G(T),N=u*j(T);if(w>g){var Q=s*G(y),U=s*j(y),W=u*G(R),X=u*j(R),D;if(C<rn)if(D=pn(H,J,W,X,Q,U,M,N)){var Y=H-D[0],Z=J-D[1],$=Q-D[0],b=U-D[1],nn=1/j(on((Y*$+Z*b)/(K(Y*Y+Z*Z)*K($*$+b*b)))/2),en=K(D[0]*D[0]+D[1]*D[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}O>g?x>g?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(H,J),a.arc(0,0,s,m,y,!t)):a.moveTo(H,J),!(u>g)||!(P>g)?a.lineTo(M,N):p>g?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-rn/2;return[G(d)*n,j(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:z(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:z(+n),i):h},i.cornerRadius=function(n){return arguments.length?(E=typeof n=="function"?n:z(+n),i):E},i.padRadius=function(n){return arguments.length?(q=n==null?null:typeof n=="function"?n:z(+n),i):q},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:z(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:z(+n),i):A},i.padAngle=function(n){return arguments.length?(B=typeof n=="function"?n:z(+n),i):B},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};