Creating a custom plugin for draw.io (also known as diagrams.net) desktop version requires some knowledge of JavaScript and the draw.io plugin architecture. Here's a step-by-step guide on how to create a custom plugin to add two custom menus that export the opened file in draw.io editor into uncompressed XML format:
Familiarize yourself with the draw.io plugin documentation: The documentation for draw.io plugins can be found in their GitHub repository: https://github.com/jgraph/drawio/wiki/Plugins
Create the plugin JavaScript file: Create a new JavaScript file, for example customExportPlugin.js, and include the following code:
This code creates a custom plugin that adds two menu items to the "Plugins" menu. Each menu item exports the opened diagram as an uncompressed XML file with different filenames.
Now you should see two new menu items "Export as uncompressed XML 1" and "Export as uncompressed XML 2" under the "Plugins" menu. Clicking on these menu items will export the opened diagram as an uncompressed XML file.
For further information on draw.io API, you can refer to the following resources:
You can use these resources to learn more about draw.io API and how to create custom plugins for specific requirements.