@zenuml/core 4.5.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
package/types/index.d.ts CHANGED
@@ -33,6 +33,14 @@ export declare function renderToSvg(
33
33
  */
34
34
  export declare function ensureDiagramFontsLoaded(): Promise<void>;
35
35
 
36
+ /**
37
+ * Load the participant icons `code` uses that `renderToSvg()` does not build
38
+ * in (e.g. `@VPC`, `@RDS` and the other cloud icons), so the next
39
+ * `renderToSvg(code)` draws them. Await it before `renderToSvg()`. Never
40
+ * rejects: an unknown or failing icon falls back to the text label.
41
+ */
42
+ export declare function ensureDiagramIconsLoaded(code: string): Promise<void>;
43
+
36
44
  /** Font families whose file URL can be set with {@link setDiagramFontUrl}. */
37
45
  export type DiagramFontFamily = "IBM Plex Sans" | "MS Sans Serif";
38
46