Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@toast-ui/editor-plugin-uml
Advanced tools
Readme
This is a plugin of TOAST UI Editor to render UML.
- node_modules/
- @toast-ui/
- editor-plugin-uml/
- dist/
- toastui-editor-plugin-uml.js
The bundle files include all dependencies of this plugin.
- uicdn.toast.com/
- editor-plugin-uml/
- latest/
- toastui-editor-plugin-uml.js
- toastui-editor-plugin-uml.min.js
To use the plugin, @toast-ui/editor
must be installed.
Ref. Getting Started
$ npm install @toast-ui/editor-plugin-uml
import uml from '@toast-ui/editor-plugin-uml';
const uml = require('@toast-ui/editor-plugin-uml');
import Editor from '@toast-ui/editor';
import uml from '@toast-ui/editor-plugin-uml';
const editor = new Editor({
// ...
plugins: [uml]
});
import Viewer from '@toast-ui/editor/dist/toustui-editor-viewer';
import uml from '@toast-ui/editor-plugin-uml';
const viewer = new Viewer({
// ...
plugins: [uml]
});
or
import Editor from '@toast-ui/editor';
import uml from '@toast-ui/editor-plugin-uml';
const viewer = Editor.factory({
// ...
plugins: [uml],
viewer: true
});
To use the plugin, the CDN files(CSS, Script) of @toast-ui/editor
must be included.
...
<body>
...
<!-- Editor -->
<script src="https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js"></script>
<!-- Editor's Plugin -->
<script src="https://uicdn.toast.com/editor-plugin-uml/latest/toastui-editor-plugin-uml.min.js"></script>
...
</body>
...
const { Editor } = toastui;
const { uml } = Editor.plugin;
const editor = new Editor({
// ...
plugins: [uml]
});
const Viewer = toastui.Editor;
const { uml } = Viewer.plugin;
const viewer = new Viewer({
// ...
plugins: [uml]
});
or
const { Editor } = toastui;
const { uml } = Editor.plugin;
const viewer = Editor.factory({
// ...
plugins: [uml],
viewer: true
});
The uml
plugin can set options when used. Just add the plugin function and options related to the plugin to the array([pluginFn, pluginOptions]
) and push them to the plugins
option of the editor.
The following option is available in the uml
plugin.
Name | Type | Default Value | Description |
---|---|---|---|
rendererURL | string | 'http://www.plantuml.com/plantuml/png/' | URL of plant uml renderer |
// ...
import Editor from '@toast-ui/editor';
import uml from '@toast-ui/editor-plugin-uml';
const umlOptions = {
rendererURL: // ...
};
const editor = new Editor({
// ...
plugins: [[uml, umlOptions]]
});
FAQs
TOAST UI Editor : UML Plugin
The npm package @toast-ui/editor-plugin-uml receives a total of 950 weekly downloads. As such, @toast-ui/editor-plugin-uml popularity was classified as not popular.
We found that @toast-ui/editor-plugin-uml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.