@miragon/wardley-renderer 0.11.0 → 0.12.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/README.md +4 -9
- package/dist/WardleyBaseViewer.d.ts +0 -7
- package/dist/WardleyBaseViewer.d.ts.map +1 -1
- package/dist/collaborative/CollaborativeWardley.d.ts +0 -7
- package/dist/collaborative/CollaborativeWardley.d.ts.map +1 -1
- package/dist/draw/icons.d.ts +4 -9
- package/dist/draw/icons.d.ts.map +1 -1
- package/dist/draw-tool/WardleyDrawTool.d.ts +5 -4
- package/dist/draw-tool/WardleyDrawTool.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1083 -1097
- package/dist/index.js.map +1 -1
- package/dist/keyboard/WardleyKeyboard.d.ts +1 -1
- package/dist/keyboard/WardleyKeyboard.d.ts.map +1 -1
- package/dist/theme/palette.d.ts +0 -6
- package/dist/theme/palette.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/draw/deprecated-icons.d.ts +0 -35
- package/dist/draw/deprecated-icons.d.ts.map +0 -1
|
@@ -10,7 +10,7 @@ import { default as Modeling } from 'diagram-js/lib/features/modeling/Modeling';
|
|
|
10
10
|
import { Injector } from 'didi';
|
|
11
11
|
import { default as WardleyCopyPaste } from '../modeling/WardleyCopyPaste.js';
|
|
12
12
|
import { default as WardleyElementFactory } from '../model/WardleyElementFactory.js';
|
|
13
|
-
/** Diagram config `wardleyKeyboard` (
|
|
13
|
+
/** Diagram config `wardleyKeyboard` (viewer option `undoRedoKeys`). */
|
|
14
14
|
export interface WardleyKeyboardConfig {
|
|
15
15
|
/**
|
|
16
16
|
* Handle Cmd/Ctrl+Z, Cmd/Ctrl+Shift+Z and Cmd/Ctrl+Y on the canvas (default true). Hosts that own
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WardleyKeyboard.d.ts","sourceRoot":"","sources":["../../src/keyboard/Wardley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are const MIRAGON: {
|
|
|
46
46
|
readonly kontur: "#8F8A8A";
|
|
47
47
|
/** Secondary text (≥ 4.5:1 on white and on paper). */
|
|
48
48
|
readonly textLeise: "#6B6666";
|
|
49
|
-
/**
|
|
50
|
-
* Dark base: the CI hero / nav-glass colour (rgb 8,10,32). The canvas never draws it.
|
|
51
|
-
* @deprecated The design system has no navy surface (guide §3.1: dark blue only inside the
|
|
52
|
-
* gradient); this key goes in a later minor.
|
|
53
|
-
*/
|
|
54
|
-
readonly navy: "#080A20";
|
|
55
49
|
/** Signature brand gradient — hero, large surfaces, brand moments. Use verbatim. */
|
|
56
50
|
readonly gradientBrand: "linear-gradient(120deg, #335DE5 30%, #00E676)";
|
|
57
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,iEAAiE;AACjE,eAAO,MAAM,OAAO;IAClB,sDAAsD;;IAEtD,sEAAsE;;IAEtE,2DAA2D;;IAE3D,iGAAiG;;IAEjG,6CAA6C;;IAE7C,sDAAsD;;;IAGtD;;;OAGG;;;;;IAKH,yGAAyG;;IAEzG,0FAA0F;;IAE1F,sDAAsD;;IAEtD
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,iEAAiE;AACjE,eAAO,MAAM,OAAO;IAClB,sDAAsD;;IAEtD,sEAAsE;;IAEtE,2DAA2D;;IAE3D,iGAAiG;;IAEjG,6CAA6C;;IAE7C,sDAAsD;;;IAGtD;;;OAGG;;;;;IAKH,yGAAyG;;IAEzG,0FAA0F;;IAE1F,sDAAsD;;IAEtD,oFAAoF;;CAE5E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miragon/wardley-renderer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Render and display Wardley maps in the browser, with a viewer and modeler built on diagram-js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"jsdom": "30.1.3",
|
|
54
54
|
"tiny-svg": "4.1.4",
|
|
55
55
|
"typescript": "6.0.3",
|
|
56
|
-
"vite": "8.3.
|
|
56
|
+
"vite": "8.3.5",
|
|
57
57
|
"vite-plugin-dts": "5.1.2",
|
|
58
58
|
"vitest": "5.0.5",
|
|
59
59
|
"zod": "4.6.7"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/** @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
2
|
-
export declare const ICON_UNDO = "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z";
|
|
3
|
-
/** @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
4
|
-
export declare const ICON_REDO = "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z";
|
|
5
|
-
/** data_object — JSON. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
6
|
-
export declare const ICON_DATA_OBJECT = "M4 7v2c0 .55-.45 1-1 1H2v2h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h1v-2H7c-.55 0-1-.45-1-1v-2c0-.84-.35-1.61-.92-2.18L4.85 12l.23-.82C5.65 10.61 6 9.84 6 9V7c0-.55.45-1 1-1h1V4H7C5.35 4 4 5.35 4 7zm16 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-1v2h1c.55 0 1 .45 1 1v2c0 .84.35 1.61.92 2.18l.23.82-.23.82c-.57.57-.92 1.34-.92 2.18v2c0 .55-.45 1-1 1h-1v2h1c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-2h-1z";
|
|
7
|
-
/** code — DSL. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
8
|
-
export declare const ICON_CODE = "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z";
|
|
9
|
-
/** download — Export. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
10
|
-
export declare const ICON_DOWNLOAD = "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z";
|
|
11
|
-
/** share — share link. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
12
|
-
export declare const ICON_SHARE = "M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z";
|
|
13
|
-
/** folder_open — open file. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
14
|
-
export declare const ICON_FOLDER_OPEN = "M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z";
|
|
15
|
-
/** image — PNG/image. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
16
|
-
export declare const ICON_IMAGE = "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z";
|
|
17
|
-
/** note_add — new / clear. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
18
|
-
export declare const ICON_NEW = "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z";
|
|
19
|
-
/** aspect_ratio — map size. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
20
|
-
export declare const ICON_ASPECT_RATIO = "M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z";
|
|
21
|
-
/** menu — hamburger (main menu). @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
22
|
-
export declare const ICON_MENU = "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z";
|
|
23
|
-
/** add — append component. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
24
|
-
export declare const ICON_ADD = "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z";
|
|
25
|
-
/** visibility — eye (show example). @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
26
|
-
export declare const ICON_VISIBILITY = "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z";
|
|
27
|
-
/** @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
28
|
-
export declare const ICON_PERSON: string;
|
|
29
|
-
/** @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
30
|
-
export declare const ICON_EDIT: string;
|
|
31
|
-
/** @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
32
|
-
export declare const ICON_DELETE: string;
|
|
33
|
-
/** Returns an icon as an HTML SVG string, colour = currentColor. @deprecated Chrome icons come from @miragon/modeler-shell (Lucide, guide §5.14); this export goes in a later minor. */
|
|
34
|
-
export declare function iconMarkup(path: string, size?: number): string;
|
|
35
|
-
//# sourceMappingURL=deprecated-icons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-icons.d.ts","sourceRoot":"","sources":["../../src/draw/deprecated-icons.ts"],"names":[],"mappings":"AAaA,0HAA0H;AAC1H,eAAO,MAAM,SAAS,mJAC4H,CAAC;AAEnJ,0HAA0H;AAC1H,eAAO,MAAM,SAAS,oJAC6H,CAAC;AAEpJ,8IAA8I;AAC9I,eAAO,MAAM,gBAAgB,+YACiX,CAAC;AAE/Y,sIAAsI;AACtI,eAAO,MAAM,SAAS,+FACwE,CAAC;AAE/F,6IAA6I;AAC7I,eAAO,MAAM,aAAa,8CAA8C,CAAC;AAEzE,8IAA8I;AAC9I,eAAO,MAAM,UAAU,oWAC4U,CAAC;AAEpW,mJAAmJ;AACnJ,eAAO,MAAM,gBAAgB,gHACkF,CAAC;AAEhH,6IAA6I;AAC7I,eAAO,MAAM,UAAU,6HACqG,CAAC;AAE7H,kJAAkJ;AAClJ,eAAO,MAAM,QAAQ,yIACmH,CAAC;AAEzI,mJAAmJ;AACnJ,eAAO,MAAM,iBAAiB,iJACkH,CAAC;AAEjJ,wJAAwJ;AACxJ,eAAO,MAAM,SAAS,kDAAkD,CAAC;AAEzE,kJAAkJ;AAClJ,eAAO,MAAM,QAAQ,wCAAwC,CAAC;AAE9D,2JAA2J;AAC3J,eAAO,MAAM,eAAe,sNACyL,CAAC;AAEtN,0HAA0H;AAC1H,eAAO,MAAM,WAAW,EAAE,MAAmB,CAAC;AAE9C,0HAA0H;AAC1H,eAAO,MAAM,SAAS,EAAE,MAAiB,CAAC;AAE1C,0HAA0H;AAC1H,eAAO,MAAM,WAAW,EAAE,MAAmB,CAAC;AAE9C,wLAAwL;AACxL,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9D"}
|