jgraph-drawio
- Description:
Unleash your creativity with draw.io, the ultimate diagramming tool for visual storytelling and dynamic whiteboarding. Effortlessly craft, design, and export your ideas with a seamless, intuitive interface.
- Copyright:
- 2025 Eyevinn Technology AB
Methods
(async, static) createJgraphDrawioInstance(context, body) → {JgraphDrawio}
- Description:
Create a new draw.io instance
Example
import { Context } from '@osaas/client-core';
import { createJgraphDrawioInstance } from '@osaas/client-services';
const ctx = new Context();
const body: JgraphDrawioConfig = { name: 'myinstance', ... };
const instance = await createJgraphDrawioInstance(ctx, body);
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
JgraphDrawioConfig | Service instance configuration |
Returns:
- Service instance
- Type
- JgraphDrawio
(async, static) getJgraphDrawioInstance(context, name) → {JgraphDrawio}
- Description:
Get a draw.io instance
Example
import { Context } from '@osaas/client-core';
import { getJgraphDrawioInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getJgraphDrawioInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the editor to be retrieved |
Returns:
- Service instance
- Type
- JgraphDrawio
(async, static) removeJgraphDrawioInstance(context, name)
- Description:
Remove a draw.io instance
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the editor to be removed |