Skip to main content
When this API operates on the current page, call getPageDisplaySize first to get the current page display size. Do not call PluginFileAPI.getPageSize to get the file page size, otherwise the position data may not match.
deleteNumList deletes by in-page index (numInPage) and doesn’t involve the cache. The elements part inserts new elements, typically from createElement or existing elements read from elsewhere; uuid stays the same before and after insertion, and this requires those elements to still be present in the native cache — elements that can’t be found in the cache are silently skipped instead of causing a separate error. See Element Caching and Release for details. Parameters Returns Throws
  • Throws a parameter validation error when deleteNumList is not a valid integer array
  • Throws a parameter validation error when elements is not a valid element array
  • Throws a parameter validation error when page is not an integer greater than or equal to 0
  • Throws a parameter validation error when layer is provided but is not an integer in the range 0-3

Example