@@ -62,18 +62,27 @@ export interface Expander extends HTMLElement {
6262 previousSibling: Topic ;
6363}
6464
65+ // @public (undocumented)
66+ export type Locale = ' cn' | ' zh_CN' | ' zh_TW' | ' en' | ' ru' | ' ja' | ' pt' | ' it' | ' es' ;
67+
6568// @public (undocumented)
6669export type MainLineParams = {
67- x1: number ;
68- y1: number ;
69- x2: number ;
70- y2: number ;
70+ pT: number ;
71+ pL: number ;
72+ pW: number ;
73+ pH: number ;
74+ cT: number ;
75+ cL: number ;
76+ cW: number ;
77+ cH: number ;
7178 direction: ' lhs' | ' rhs' ;
79+ containerHeight: number ;
7280};
7381
7482// @public
7583export const methods: {
7684 init(this : MindElixirInstance , data : MindElixirData ): Error | undefined ;
85+ destroy(this : Partial <MindElixirInstance >): void ;
7786 exportSvg: (this : MindElixirInstance , noForeignObject ? : boolean , injectCss ? : string | undefined ) => Blob ;
7887 exportPng: (this : MindElixirInstance , noForeignObject ? : boolean , injectCss ? : string | undefined ) => Promise <Blob | null >;
7988 createSummary: (this : MindElixirInstance ) => void ;
@@ -89,7 +98,7 @@ export const methods: {
8998 removeArrow: (this : MindElixirInstance , linkSvg ? : CustomSvg | undefined ) => void ;
9099 selectArrow: (this : MindElixirInstance , link : CustomSvg ) => void ;
91100 unselectArrow: (this : MindElixirInstance ) => void ;
92- mainToSub : (this : MindElixirInstance , tpc : Topic ) => Promise <void >;
101+ rmSubline : (this : MindElixirInstance , tpc : Topic ) => Promise <void >;
93102 reshapeNode: (this : MindElixirInstance , tpc : Topic , patchData : NodeObj ) => Promise <void >;
94103 insertSibling: (this : MindElixirInstance , type : " before" | " after" , el ? : Topic | undefined , node ? : NodeObj | undefined ) => Promise <void >;
95104 insertParent: (this : MindElixirInstance , el ? : Topic | undefined , node ? : NodeObj | undefined ) => Promise <void >;
@@ -123,7 +132,7 @@ export const methods: {
123132 initLeft: (this : MindElixirInstance ) => void ;
124133 initRight: (this : MindElixirInstance ) => void ;
125134 initSide: (this : MindElixirInstance ) => void ;
126- setLocale: (this : MindElixirInstance , locale : string ) => void ;
135+ setLocale: (this : MindElixirInstance , locale : Locale ) => void ;
127136 expandNode: (this : MindElixirInstance , el : Topic , isExpand ? : boolean | undefined ) => void ;
128137 refresh: (this : MindElixirInstance , data ? : MindElixirData | undefined ) => void ;
129138 getObjById: (id : string , data : NodeObj ) => NodeObj | null ;
@@ -187,6 +196,8 @@ export interface MindElixirInstance extends MindElixirMethods {
187196 // (undocumented)
188197 direction: number ;
189198 // (undocumented)
199+ disposable: Array <() => void >;
200+ // (undocumented)
190201 draggable: boolean ;
191202 // (undocumented)
192203 editable: boolean ;
@@ -221,7 +232,7 @@ export interface MindElixirInstance extends MindElixirMethods {
221232 // (undocumented)
222233 linkSvgGroup: SVGElement ;
223234 // (undocumented)
224- locale: string ;
235+ locale: Locale ;
225236 // (undocumented)
226237 mainBranchStyle: number ;
227238 // (undocumented)
@@ -311,7 +322,7 @@ export type NodeObjExport = Omit<NodeObj, 'parent'>;
311322export type Options = {
312323 el: string | HTMLElement ;
313324 direction? : number ;
314- locale? : string ;
325+ locale? : Locale ;
315326 draggable? : boolean ;
316327 editable? : boolean ;
317328 contextMenu? : boolean ;
@@ -441,7 +452,7 @@ export interface Wrapper extends HTMLElement {
441452// Warnings were encountered during analysis:
442453//
443454// dist/types/arrow.d.ts:6:5 - (ae-forgotten-export) The symbol "Uid" needs to be exported by the entry point docs.d.ts
444- // dist/types/methods.d.ts:18 :5 - (ae-forgotten-export) The symbol "summary" needs to be exported by the entry point docs.d.ts
455+ // dist/types/methods.d.ts:19 :5 - (ae-forgotten-export) The symbol "summary" needs to be exported by the entry point docs.d.ts
445456
446457// (No @packageDocumentation comment for this package)
447458
0 commit comments