Get the plugin
1. Try the plugin online
The online demo shows the plugin in OpenSCD. Open an SCL file with Open File, then open the Stencil plugin.
The demo shows the latest version of the main branch.
2. Add the plugin to an OpenSCD distribution
The plugin is an editor plugin.
It uses the OpenSCD plugin API, which oscd-shell and the newer OpenSCD distributions use.
The person who maintains the distribution adds the plugin. Give them this information:
-
The npm package is
@openpowershift/oscd-editor-stencil. -
The plugin needs an open document.
-
The plugin has translations in German and Portuguese.
This is an example of the plugin entry for a distribution built on oscd-shell:
import OscdEditorStencil from '@openpowershift/oscd-editor-stencil';
registry.define('oscd-editor-stencil', OscdEditorStencil);
const plugins = {
editor: [
{
name: 'Stencil',
translations: { de: 'Schablone', pt: 'Modelo' },
icon: 'draw_collage',
requireDoc: true,
tagName: 'oscd-editor-stencil'
}
]
};
For more information, refer to Development.