@@ -111,12 +111,12 @@ export const selectParent: CommonSelectFunc = function () {
111111/**
112112 * @function
113113 * @instance
114- * @name getAllDataString
114+ * @name getDataString
115115 * @description Get all node data as string.
116116 * @memberof MapInteraction
117117 * @return {string }
118118 */
119- export const getAllDataString : GetDataStringFunc = function ( ) {
119+ export const getDataString : GetDataStringFunc = function ( ) {
120120 const data = collectData ( this )
121121 return JSON . stringify ( data , ( k , v ) => {
122122 if ( k === 'parent' ) return undefined
@@ -128,24 +128,24 @@ export const getAllDataString: GetDataStringFunc = function () {
128128/**
129129 * @function
130130 * @instance
131- * @name getAllData
131+ * @name getData
132132 * @description Get all node data as object.
133133 * @memberof MapInteraction
134134 * @return {Object }
135135 */
136- export const getAllData : GetDataFunc = function ( ) {
137- return JSON . parse ( this . getAllDataString ( ) )
136+ export const getData : GetDataFunc = function ( ) {
137+ return JSON . parse ( this . getDataString ( ) )
138138}
139139
140140/**
141141 * @function
142142 * @instance
143- * @name getAllDataMd
143+ * @name getDataMd
144144 * @description Get all node data as markdown.
145145 * @memberof MapInteraction
146146 * @return {String }
147147 */
148- export const getAllDataMd : GetDataStringFunc = function ( ) {
148+ export const getDataMd : GetDataStringFunc = function ( ) {
149149 const data = collectData ( this ) . nodeData
150150 let mdString = '# ' + data . topic + '\n\n'
151151 function writeMd ( children , deep ) {
0 commit comments