updated plugins api docs

This commit is contained in:
Natalia
2025-05-29 16:14:36 +03:00
parent a164113be9
commit 66b435d177
3 changed files with 26 additions and 25 deletions

View File

@ -1909,7 +1909,7 @@
}; };
/** /**
* Add button to the specified content controls track * Adds a button to the specified content controls track.
* @undocumented * @undocumented
* @memberof Api * @memberof Api
* @typeofeditors ["CDE"] * @typeofeditors ["CDE"]
@ -1993,7 +1993,7 @@
}; };
/** /**
* Update an item to the toolbar menu. * Updates the toolbar menu item.
* @undocumented * @undocumented
* @memberof Api * @memberof Api
* @typeofeditors ["CDE", "CSE", "CPE"] * @typeofeditors ["CDE", "CSE", "CPE"]
@ -2165,7 +2165,7 @@
}; };
/** /**
* Catch AI event from plugin * Catch AI event from plugin.
* @memberof Api * @memberof Api
* @undocumented * @undocumented
* @typeofeditors ["CDE", "CSE", "CPE", "PDF"] * @typeofeditors ["CDE", "CSE", "CPE", "PDF"]
@ -2185,7 +2185,7 @@
}; };
/** /**
* Get local image path for image. * Returns the local path to the image.
* @memberof Api * @memberof Api
* @undocumented * @undocumented
* @typeofeditors ["CDE", "CSE", "CPE", "PDF"] * @typeofeditors ["CDE", "CSE", "CPE", "PDF"]

View File

@ -35,16 +35,16 @@
(function(window, undefined) (function(window, undefined)
{ {
/** /**
* Options for replace page content by html * Options to replace the HTML page content.
* @typedef {Object} ReplaceHtmlOptions * @typedef {Object} ReplaceHtmlOptions
* @property {string} content - html content to replace * @property {string} content - The HTML content to replace.
* @property {boolean} [separateParagraphs=true] - will each paragraph be created a separate shape * @property {boolean} [separateParagraphs=true] - Specifies whether each paragraph will be created in a separate shape.
*/ */
/** /**
* Options for replace page content by html * Options to replace the XML page content.
* @typedef {Object} ReplaceXmlOptions * @typedef {Object} ReplaceXmlOptions
* @property {string[]} content - array with xml shapes to replace * @property {string[]} content - An array with XML shapes to be replaced.
*/ */
@ -57,7 +57,7 @@
let Api = window["asc_docs_api"]; let Api = window["asc_docs_api"];
/** /**
* Gets current page index * Returns the current page index.
* @memberof Api * @memberof Api
* @typeofeditors ["PDFE"] * @typeofeditors ["PDFE"]
* @alias GetCurrentPage * @alias GetCurrentPage
@ -69,16 +69,16 @@
}; };
/** /**
* Gets page image * Returns the page image.
* @memberof Api * @memberof Api
* @typeofeditors ["PDFE"] * @typeofeditors ["PDFE"]
* @alias GetPageImage * @alias GetPageImage
* @param {number} nPage - page index * @param {number} nPage - The page index.
* @param {object} [oParams={}] - image params * @param {object} [oParams={}] - The image parameters.
* @param {number} [oParams.maxSize] - the size of the larger side in pixels * @param {number} [oParams.maxSize] - The size of the larger image side in pixels.
* @param {boolean} [oParams.annotations=false] - will annotations be rendered * @param {boolean} [oParams.annotations=false] - Specifies whether the annotations will be rendered.
* @param {boolean} [oParams.fields=false] - will fields be rendered * @param {boolean} [oParams.fields=false] - Specifies whether the fields will be rendered.
* @param {boolean} [oParams.drawings=false] - will drawings be rendered * @param {boolean} [oParams.drawings=false] - Specifies whether the drawings will be rendered.
* @returns {canvas} * @returns {canvas}
* @see office-js-api/Examples/Plugins/PDF/Api/Methods/GetPageImage.js * @see office-js-api/Examples/Plugins/PDF/Api/Methods/GetPageImage.js
*/ */
@ -145,14 +145,14 @@
}; };
/** /**
* Replace page content by params * Replaces the page content with the specified parameters.
* @memberof Api * @memberof Api
* @typeofeditors ["PDFE"] * @typeofeditors ["PDFE"]
* @alias ReplacePageContent * @alias ReplacePageContent
* @param {number} nPage - page index * @param {number} nPage - The page index.
* @param {object} oParams - replace params * @param {object} oParams - The replacement parameters.
* @param {"xml" | "html"} oParams.type - type of content to replace (xml / html) * @param {"xml" | "html"} oParams.type - The type of content to be replaced (XML / HTML).
* @param {ReplaceXmlOptions | ReplaceHtmlOptions} oParams.options - replace content options * @param {ReplaceXmlOptions | ReplaceHtmlOptions} oParams.options - The content replacement options.
* @returns {boolean} * @returns {boolean}
* @see office-js-api/Examples/Plugins/PDF/Api/Methods/ReplacePageContent.js * @see office-js-api/Examples/Plugins/PDF/Api/Methods/ReplacePageContent.js
*/ */

View File

@ -126,10 +126,11 @@
*/ */
/** /**
* Content control list element * The content control list element.
* @typedef {Object} ContentControlListElement * @typedef {Object} ContentControlListElement
* @property {string} Display - element display text * @property {string} Display - The element display text.
* @property {string} Value - element value * @property {string} Value - The element value.
* @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlListElement.js
*/ */
var Api = window["asc_docs_api"]; var Api = window["asc_docs_api"];