@miragon/wardley-renderer 0.6.3 → 0.8.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.
Files changed (169) hide show
  1. package/README.md +131 -1
  2. package/dist/Modeler.d.ts +5 -0
  3. package/dist/Modeler.d.ts.map +1 -1
  4. package/dist/NavigatedViewer.d.ts.map +1 -1
  5. package/dist/WardleyBaseViewer.d.ts +90 -12
  6. package/dist/WardleyBaseViewer.d.ts.map +1 -1
  7. package/dist/a11y/canvasFocus.d.ts +17 -0
  8. package/dist/a11y/canvasFocus.d.ts.map +1 -0
  9. package/dist/a11y/describeCanvas.d.ts +8 -0
  10. package/dist/a11y/describeCanvas.d.ts.map +1 -0
  11. package/dist/a11y/index.d.ts +5 -0
  12. package/dist/a11y/index.d.ts.map +1 -0
  13. package/dist/append/WardleyAppendBehavior.d.ts +7 -6
  14. package/dist/append/WardleyAppendBehavior.d.ts.map +1 -1
  15. package/dist/collaborative/CollaborativeWardley.d.ts +27 -0
  16. package/dist/collaborative/CollaborativeWardley.d.ts.map +1 -0
  17. package/dist/collaborative/index.d.ts +2 -0
  18. package/dist/collaborative/index.d.ts.map +1 -0
  19. package/dist/color-picker/WardleyColorPicker.d.ts +10 -3
  20. package/dist/color-picker/WardleyColorPicker.d.ts.map +1 -1
  21. package/dist/context-pad/WardleyContextPad.d.ts +30 -0
  22. package/dist/context-pad/WardleyContextPad.d.ts.map +1 -0
  23. package/dist/context-pad/WardleyContextPadProvider.d.ts +23 -1
  24. package/dist/context-pad/WardleyContextPadProvider.d.ts.map +1 -1
  25. package/dist/context-pad/index.d.ts +1 -0
  26. package/dist/context-pad/index.d.ts.map +1 -1
  27. package/dist/draw/WardleyRenderer.d.ts +8 -0
  28. package/dist/draw/WardleyRenderer.d.ts.map +1 -1
  29. package/dist/draw/deprecated-icons.d.ts +35 -0
  30. package/dist/draw/deprecated-icons.d.ts.map +1 -0
  31. package/dist/draw/icons.d.ts +9 -26
  32. package/dist/draw/icons.d.ts.map +1 -1
  33. package/dist/draw/index.d.ts +2 -1
  34. package/dist/draw/index.d.ts.map +1 -1
  35. package/dist/draw/label-layout.d.ts +59 -0
  36. package/dist/draw/label-layout.d.ts.map +1 -0
  37. package/dist/draw/palette-icons.d.ts +1 -0
  38. package/dist/draw/palette-icons.d.ts.map +1 -1
  39. package/dist/draw/styles.d.ts +16 -17
  40. package/dist/draw/styles.d.ts.map +1 -1
  41. package/dist/draw-tool/WardleyDrawTool.d.ts +14 -1
  42. package/dist/draw-tool/WardleyDrawTool.d.ts.map +1 -1
  43. package/dist/draw-tool/WardleyDrawingHandles.d.ts +4 -1
  44. package/dist/draw-tool/WardleyDrawingHandles.d.ts.map +1 -1
  45. package/dist/editor-state.d.ts +56 -0
  46. package/dist/editor-state.d.ts.map +1 -0
  47. package/dist/evolution-grid/EvolutionConstraintBehavior.d.ts +58 -24
  48. package/dist/evolution-grid/EvolutionConstraintBehavior.d.ts.map +1 -1
  49. package/dist/evolution-grid/EvolutionGrid.d.ts +2 -0
  50. package/dist/evolution-grid/EvolutionGrid.d.ts.map +1 -1
  51. package/dist/evolution-grid/index.d.ts.map +1 -1
  52. package/dist/evolve/WardleyEvolveDragging.d.ts +3 -1
  53. package/dist/evolve/WardleyEvolveDragging.d.ts.map +1 -1
  54. package/dist/evolve/constants.d.ts +3 -0
  55. package/dist/evolve/constants.d.ts.map +1 -0
  56. package/dist/evolve/index.d.ts +1 -0
  57. package/dist/evolve/index.d.ts.map +1 -1
  58. package/dist/free-rect/FreeRect.d.ts +34 -0
  59. package/dist/free-rect/FreeRect.d.ts.map +1 -0
  60. package/dist/free-rect/index.d.ts +6 -0
  61. package/dist/free-rect/index.d.ts.map +1 -0
  62. package/dist/index.d.ts +28 -4
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +4967 -1941
  65. package/dist/index.js.map +1 -1
  66. package/dist/io/WardleyExporter.d.ts +3 -1
  67. package/dist/io/WardleyExporter.d.ts.map +1 -1
  68. package/dist/io/WardleyImporter.d.ts.map +1 -1
  69. package/dist/io/WardleySourceOrder.d.ts +23 -0
  70. package/dist/io/WardleySourceOrder.d.ts.map +1 -0
  71. package/dist/io/exportBounds.d.ts +15 -0
  72. package/dist/io/exportBounds.d.ts.map +1 -0
  73. package/dist/io/index.d.ts +5 -0
  74. package/dist/io/index.d.ts.map +1 -1
  75. package/dist/io/rasterize.d.ts +25 -0
  76. package/dist/io/rasterize.d.ts.map +1 -0
  77. package/dist/io/saveSvg.d.ts +1 -1
  78. package/dist/io/saveSvg.d.ts.map +1 -1
  79. package/dist/io/types.d.ts +5 -0
  80. package/dist/io/types.d.ts.map +1 -1
  81. package/dist/keyboard/WardleyKeyboard.d.ts +47 -4
  82. package/dist/keyboard/WardleyKeyboard.d.ts.map +1 -1
  83. package/dist/label-drag/WardleyLabelDragging.d.ts +58 -0
  84. package/dist/label-drag/WardleyLabelDragging.d.ts.map +1 -0
  85. package/dist/label-drag/index.d.ts +5 -0
  86. package/dist/label-drag/index.d.ts.map +1 -0
  87. package/dist/label-editing/WardleyLabelEditing.d.ts +63 -6
  88. package/dist/label-editing/WardleyLabelEditing.d.ts.map +1 -1
  89. package/dist/label-editing/fieldError.d.ts +13 -0
  90. package/dist/label-editing/fieldError.d.ts.map +1 -0
  91. package/dist/label-editing/index.d.ts +1 -0
  92. package/dist/label-editing/index.d.ts.map +1 -1
  93. package/dist/link-editing/WardleyLinkEditing.d.ts +40 -0
  94. package/dist/link-editing/WardleyLinkEditing.d.ts.map +1 -0
  95. package/dist/link-editing/index.d.ts +6 -0
  96. package/dist/link-editing/index.d.ts.map +1 -0
  97. package/dist/link-editing/link-url.d.ts +14 -0
  98. package/dist/link-editing/link-url.d.ts.map +1 -0
  99. package/dist/map-menu/AxisLabelsPopover.d.ts +10 -0
  100. package/dist/map-menu/AxisLabelsPopover.d.ts.map +1 -0
  101. package/dist/map-menu/MapSizePopover.d.ts +10 -0
  102. package/dist/map-menu/MapSizePopover.d.ts.map +1 -0
  103. package/dist/map-menu/ShortcutsDialog.d.ts +14 -0
  104. package/dist/map-menu/ShortcutsDialog.d.ts.map +1 -0
  105. package/dist/map-menu/TitleDialog.d.ts +12 -0
  106. package/dist/map-menu/TitleDialog.d.ts.map +1 -0
  107. package/dist/map-menu/dialog.d.ts +41 -0
  108. package/dist/map-menu/dialog.d.ts.map +1 -0
  109. package/dist/map-menu/dom.d.ts +9 -0
  110. package/dist/map-menu/dom.d.ts.map +1 -0
  111. package/dist/map-menu/index.d.ts +14 -0
  112. package/dist/map-menu/index.d.ts.map +1 -0
  113. package/dist/map-menu/menu.d.ts +68 -0
  114. package/dist/map-menu/menu.d.ts.map +1 -0
  115. package/dist/map-menu/popover.d.ts +52 -0
  116. package/dist/map-menu/popover.d.ts.map +1 -0
  117. package/dist/map-menu/shortcuts.d.ts +48 -0
  118. package/dist/map-menu/shortcuts.d.ts.map +1 -0
  119. package/dist/map-resize/MapProjection.d.ts +84 -0
  120. package/dist/map-resize/MapProjection.d.ts.map +1 -0
  121. package/dist/map-resize/MapResizeHandles.d.ts +59 -0
  122. package/dist/map-resize/MapResizeHandles.d.ts.map +1 -0
  123. package/dist/map-resize/ResizeAwareAutoScroll.d.ts +15 -0
  124. package/dist/map-resize/ResizeAwareAutoScroll.d.ts.map +1 -0
  125. package/dist/map-resize/index.d.ts +14 -0
  126. package/dist/map-resize/index.d.ts.map +1 -0
  127. package/dist/model/WardleyElementFactory.d.ts +36 -2
  128. package/dist/model/WardleyElementFactory.d.ts.map +1 -1
  129. package/dist/modeling/WardleyCopyPaste.d.ts +9 -5
  130. package/dist/modeling/WardleyCopyPaste.d.ts.map +1 -1
  131. package/dist/modeling/WardleyModeling.d.ts +16 -2
  132. package/dist/modeling/WardleyModeling.d.ts.map +1 -1
  133. package/dist/modeling/cmd/ResizeMapHandler.d.ts +24 -0
  134. package/dist/modeling/cmd/ResizeMapHandler.d.ts.map +1 -0
  135. package/dist/modeling/cmd/UpdateConfigHandler.d.ts +42 -0
  136. package/dist/modeling/cmd/UpdateConfigHandler.d.ts.map +1 -0
  137. package/dist/modeling/index.d.ts +2 -0
  138. package/dist/modeling/index.d.ts.map +1 -1
  139. package/dist/ordering/WardleyOrderingProvider.d.ts +1 -1
  140. package/dist/ordering/WardleyOrderingProvider.d.ts.map +1 -1
  141. package/dist/palette/WardleyPaletteKeyboard.d.ts +26 -0
  142. package/dist/palette/WardleyPaletteKeyboard.d.ts.map +1 -0
  143. package/dist/palette/WardleyPaletteProvider.d.ts +20 -1
  144. package/dist/palette/WardleyPaletteProvider.d.ts.map +1 -1
  145. package/dist/palette/index.d.ts +2 -1
  146. package/dist/palette/index.d.ts.map +1 -1
  147. package/dist/pan-constraint/PanConstraint.d.ts +24 -2
  148. package/dist/pan-constraint/PanConstraint.d.ts.map +1 -1
  149. package/dist/pipeline/PipelineGroupBehavior.d.ts +24 -0
  150. package/dist/pipeline/PipelineGroupBehavior.d.ts.map +1 -0
  151. package/dist/pipeline/index.d.ts +6 -0
  152. package/dist/pipeline/index.d.ts.map +1 -0
  153. package/dist/pipeline/pipelineMembership.d.ts +23 -0
  154. package/dist/pipeline/pipelineMembership.d.ts.map +1 -0
  155. package/dist/popup/WardleyElementSettingsProvider.d.ts +2 -1
  156. package/dist/popup/WardleyElementSettingsProvider.d.ts.map +1 -1
  157. package/dist/read-only/WardleyReadOnly.d.ts +27 -0
  158. package/dist/read-only/WardleyReadOnly.d.ts.map +1 -0
  159. package/dist/read-only/index.d.ts +7 -0
  160. package/dist/read-only/index.d.ts.map +1 -0
  161. package/dist/rules/WardleyRules.d.ts.map +1 -1
  162. package/dist/snapping/StageSnapping.d.ts +6 -2
  163. package/dist/snapping/StageSnapping.d.ts.map +1 -1
  164. package/dist/theme/index.d.ts +1 -1
  165. package/dist/theme/index.d.ts.map +1 -1
  166. package/dist/theme/palette.d.ts +28 -29
  167. package/dist/theme/palette.d.ts.map +1 -1
  168. package/dist/wardley.css +1 -1
  169. package/package.json +10 -9
@@ -1 +1 @@
1
- {"version":3,"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,IAAI;IAI1C,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAO1C,SAAS,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAOlE,gFAAgF;IAChF,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,IAAI;IAQzF,0FAA0F;IAC1F,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CAGjE"}
@@ -0,0 +1,24 @@
1
+ import { default as CommandHandler } from 'diagram-js/lib/command/CommandHandler';
2
+ import { ElementLike } from 'diagram-js/lib/core/Types';
3
+ import { MapSize } from '@miragon/wardley-schema-model';
4
+ import { MapProjection } from '../../map-resize/index.js';
5
+ export interface ResizeMapContext {
6
+ /** New explicit size; `undefined` removes the `size` line (default plot). */
7
+ size: MapSize | undefined;
8
+ /** set internally by the handler (for revert). */
9
+ oldSize?: MapSize | undefined;
10
+ oldRawPassthrough?: readonly string[] | undefined;
11
+ }
12
+ /**
13
+ * Undoable map resize: changes `config.size` and re-projects the existing shapes in place from
14
+ * their normalized model. Only the size (and superseded raw `size` lines) is touched, so the DSL
15
+ * changes in exactly one line.
16
+ */
17
+ export default class ResizeMapHandler implements CommandHandler {
18
+ private readonly projection;
19
+ static $inject: string[];
20
+ constructor(projection: MapProjection);
21
+ execute(context: ResizeMapContext): ElementLike[];
22
+ revert(context: ResizeMapContext): ElementLike[];
23
+ }
24
+ //# sourceMappingURL=ResizeMapHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResizeMapHandler.d.ts","sourceRoot":"","sources":["../../../src/modeling/cmd/ResizeMapHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,uCAAuC,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,gBAAgB;IAC/B,6EAA6E;IAC7E,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CACnD;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,cAAc;IAGjD,OAAO,CAAC,QAAQ,CAAC,UAAU;IAFvC,MAAM,CAAC,OAAO,WAA4B;gBAEb,UAAU,EAAE,aAAa;IAEtD,OAAO,CAAC,OAAO,EAAE,gBAAgB,GAAG,WAAW,EAAE;IAejD,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,WAAW,EAAE;CAUjD"}
@@ -0,0 +1,42 @@
1
+ import { default as CommandHandler } from 'diagram-js/lib/command/CommandHandler';
2
+ import { default as Canvas } from 'diagram-js/lib/core/Canvas';
3
+ import { default as EventBus } from 'diagram-js/lib/core/EventBus';
4
+ import { ElementLike } from 'diagram-js/lib/core/Types';
5
+ import { MapConfig } from '@miragon/wardley-schema-model';
6
+ import { default as EvolutionGrid } from '../../evolution-grid/EvolutionGrid.js';
7
+ /**
8
+ * Config fields a `wardley.config.update` may change; `undefined` removes the field. The size is
9
+ * excluded on purpose: it needs the re-projection of `wardley.map.resize`.
10
+ */
11
+ export type MapConfigUpdate = {
12
+ -readonly [Key in Exclude<keyof MapConfig, 'size'>]?: MapConfig[Key] | undefined;
13
+ };
14
+ export interface UpdateConfigContext {
15
+ properties: MapConfigUpdate;
16
+ /** set internally by the handler (for revert). */
17
+ oldProperties?: MapConfigUpdate;
18
+ }
19
+ /**
20
+ * Writes `update` into the root's config (`undefined` removes a field; `size` is left alone, it
21
+ * needs the re-projection of `wardley.map.resize`), redraws the axes and fires
22
+ * `wardley.config.changed`. Returns the previous values of exactly the written fields. The one place
23
+ * a config changes in place: the undoable command and the viewers' direct path both use it.
24
+ */
25
+ export declare function applyConfigUpdate(canvas: Canvas, grid: EvolutionGrid, eventBus: EventBus, update: MapConfigUpdate, options?: {
26
+ transient?: boolean;
27
+ }): MapConfigUpdate;
28
+ /**
29
+ * Undoable change of map config fields (title, evolution labels, …). Only the given fields are
30
+ * swapped, so it composes with any other config change in the undo history.
31
+ */
32
+ export default class UpdateConfigHandler implements CommandHandler {
33
+ private readonly canvas;
34
+ private readonly grid;
35
+ private readonly eventBus;
36
+ static $inject: string[];
37
+ constructor(canvas: Canvas, grid: EvolutionGrid, eventBus: EventBus);
38
+ execute(context: UpdateConfigContext): ElementLike[];
39
+ revert(context: UpdateConfigContext): ElementLike[];
40
+ private apply;
41
+ }
42
+ //# sourceMappingURL=UpdateConfigHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateConfigHandler.d.ts","sourceRoot":"","sources":["../../../src/modeling/cmd/UpdateConfigHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,uCAAuC,CAAC;AACxE,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC;AAGvE;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,UAAU,GAAG,IAAI,OAAO,CAAC,MAAM,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,SAAS;CACjF,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,eAAe,CAAC;IAC5B,kDAAkD;IAClD,aAAa,CAAC,EAAE,eAAe,CAAC;CACjC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,eAAe,EACvB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,eAAe,CAoBjB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,YAAW,cAAc;IAI9D,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAL3B,MAAM,CAAC,OAAO,WAA2C;gBAGtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,aAAa,EACnB,QAAQ,EAAE,QAAQ;IAGrC,OAAO,CAAC,OAAO,EAAE,mBAAmB,GAAG,WAAW,EAAE;IAKpD,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,WAAW,EAAE;IAKnD,OAAO,CAAC,KAAK;CAGd"}
@@ -3,5 +3,7 @@ import { ModuleDeclaration } from 'didi';
3
3
  export declare const wardleyModelingModule: ModuleDeclaration;
4
4
  export { default as WardleyModeling } from './WardleyModeling.js';
5
5
  export { default as WardleyCopyPaste } from './WardleyCopyPaste.js';
6
+ export { RESIZE_MAP, UPDATE_CONFIG } from './WardleyModeling.js';
6
7
  export type { EvolveOptions } from './WardleyModeling.js';
8
+ export type { MapConfigUpdate } from './cmd/UpdateConfigHandler.js';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modeling/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAM9C,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,EAAE,iBAMnC,CAAC;AAEF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modeling/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAO9C,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,EAAE,iBAMnC,CAAC;AAEF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC"}
@@ -3,7 +3,7 @@ import { default as EventBus } from 'diagram-js/lib/core/EventBus';
3
3
  import { ElementLike, ShapeLike } from 'diagram-js/lib/model/Types';
4
4
  /**
5
5
  * Keeps the z-order stable for INTERACTIVELY created/moved elements, matching the import order:
6
- * frames (attitude/pipeline) at the back, connections in the middle, nodes on top. Without this,
6
+ * frames (attitude/pipeline) at the back, then dependencies, then flows, nodes on top. Without this,
7
7
  * connections drawn in the editor would land above the nodes (unlike imported ones).
8
8
  */
9
9
  export default class WardleyOrderingProvider extends OrderingProvider {
@@ -1 +1 @@
1
- {"version":3,"file":"WardleyOrderingProvider.d.ts","sourceRoot":"","sources":["../../src/ordering/WardleyOrderingProvider.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAYzE;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,gBAAgB;IACnE,OAAgB,OAAO,WAAgB;gBAE3B,QAAQ,EAAE,QAAQ;IAIrB,WAAW,CAClB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,SAAS,GACnB;QAAE,MAAM,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;CAiBzC"}
1
+ {"version":3,"file":"WardleyOrderingProvider.d.ts","sourceRoot":"","sources":["../../src/ordering/WardleyOrderingProvider.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAYzE;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,gBAAgB;IACnE,OAAgB,OAAO,WAAgB;gBAE3B,QAAQ,EAAE,QAAQ;IAIrB,WAAW,CAClB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,SAAS,GACnB;QAAE,MAAM,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;CAqBzC"}
@@ -0,0 +1,26 @@
1
+ import { default as EventBus } from 'diagram-js/lib/core/EventBus';
2
+ import { default as Palette } from 'diagram-js/lib/features/palette/Palette';
3
+ import { Injector } from 'didi';
4
+ import { default as WardleyPaletteProvider } from './WardleyPaletteProvider.js';
5
+ /**
6
+ * Makes the palette a keyboard-operable toolbar (WAI-ARIA toolbar pattern): one Tab stop with a
7
+ * roving tabindex, arrow keys / Home / End move between tools, Enter or Space activates the focused
8
+ * one. A create tool has no pointer position to attach the new element to, so it is placed at the
9
+ * centre of the free rectangle instead (see `WardleyPaletteProvider.createAtFreeCenter`). Only for
10
+ * hosts without the Miragon modeler shell, which brings these keys itself.
11
+ */
12
+ export default class WardleyPaletteKeyboard {
13
+ private readonly palette;
14
+ private readonly provider;
15
+ static $inject: string[];
16
+ private container;
17
+ private activeAction;
18
+ constructor(eventBus: EventBus, palette: Palette, provider: WardleyPaletteProvider, injector: Injector);
19
+ private attach;
20
+ private entries;
21
+ private entryOf;
22
+ private updateTabStops;
23
+ private onKeydown;
24
+ private activate;
25
+ }
26
+ //# sourceMappingURL=WardleyPaletteKeyboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WardleyPaletteKeyboard.d.ts","sourceRoot":"","sources":["../../src/palette/WardleyPaletteKeyboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,yCAAyC,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAQtE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAsB;IAQvC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAR3B,MAAM,CAAC,OAAO,WAAiE;IAE/E,OAAO,CAAC,SAAS,CAA0B;IAC3C,OAAO,CAAC,YAAY,CAAqB;gBAGvC,QAAQ,EAAE,QAAQ,EACD,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,EACjD,QAAQ,EAAE,QAAQ;IAapB,OAAO,CAAC,MAAM;IAkBd,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,SAAS;IA2BjB,OAAO,CAAC,QAAQ;CAYjB"}
@@ -4,13 +4,32 @@ import { default as LassoTool } from 'diagram-js/lib/features/lasso-tool/LassoTo
4
4
  import { default as WardleyDrawTool } from '../draw-tool/WardleyDrawTool.js';
5
5
  import { PaletteEntries, default as PaletteProvider } from 'diagram-js/lib/features/palette/PaletteProvider';
6
6
  import { default as WardleyElementFactory } from '../model/WardleyElementFactory.js';
7
+ import { Injector } from 'didi';
8
+ import { WardleyShape } from '../model/di-types.js';
7
9
  export default class WardleyPaletteProvider implements PaletteProvider {
8
10
  private readonly create;
9
11
  private readonly factory;
10
12
  private readonly lassoTool;
11
13
  private readonly drawTool;
14
+ private readonly injector;
12
15
  static $inject: string[];
13
- constructor(palette: Palette, create: Create, factory: WardleyElementFactory, lassoTool: LassoTool, drawTool: WardleyDrawTool);
16
+ /**
17
+ * diagram-js >= 15.28 renders `title` + `shortcut` as a styled tooltip, and the Miragon modeler
18
+ * shell shows its chrome tooltip instead; only without either does an entry need a native title.
19
+ */
20
+ private readonly needsNativeTitle;
21
+ constructor(palette: Palette, create: Create, factory: WardleyElementFactory, lassoTool: LassoTool, drawTool: WardleyDrawTool, injector: Injector);
14
22
  getPaletteEntries(): PaletteEntries;
23
+ /**
24
+ * Keyboard path for a create entry (guide §5.5): places the new element in the centre of the
25
+ * free rectangle (no pointer position to attach it to), 24px further diagonally while that spot
26
+ * is taken, selects it and opens its label editor, or focuses the canvas where there is nothing
27
+ * to name. Returns the created shape, or undefined for non-create entries.
28
+ */
29
+ createAtFreeCenter(entryId: string): WardleyShape | undefined;
30
+ private createShapeFor;
31
+ private freeCenterPosition;
32
+ private describe;
33
+ private entryHtml;
15
34
  }
16
35
  //# sourceMappingURL=WardleyPaletteProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WardleyPaletteProvider.d.ts","sourceRoot":"","sources":["../../src/palette/WardleyPaletteProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,yCAAyC,CAAC;AACnE,OAAO,KAAK,MAAM,MAAM,uCAAuC,CAAC;AAChE,OAAO,KAAK,SAAS,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,eAAe,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EACV,cAAc,EAE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,CAAC,QAAQ,CAAC,QAAQ;IArB3B,MAAM,CAAC,OAAO,WAOZ;IAEF;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAU;gBAGzC,OAAO,EAAE,OAAO,EACC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,qBAAqB,EAC9B,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,QAAQ;IAUrC,iBAAiB,IAAI,cAAc;IA0CnC;;;;;OAKG;IACH,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAwB7D,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,kBAAkB;IA+C1B,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,SAAS;CAQlB"}
@@ -1,5 +1,6 @@
1
1
  import { ModuleDeclaration } from 'didi';
2
- /** Tool palette (drag-to-create). */
2
+ /** Tool palette (drag-to-create, keyboard-operable toolbar). */
3
3
  export declare const wardleyPaletteModule: ModuleDeclaration;
4
4
  export { default as WardleyPaletteProvider } from './WardleyPaletteProvider.js';
5
+ export { default as WardleyPaletteKeyboard } from './WardleyPaletteKeyboard.js';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAG9C,qCAAqC;AACrC,eAAO,MAAM,oBAAoB,EAAE,iBAGlC,CAAC;AAEF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAI9C,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,EAAE,iBAIlC,CAAC;AAEF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,18 +1,40 @@
1
1
  import { default as EventBus } from 'diagram-js/lib/core/EventBus';
2
2
  import { default as Canvas } from 'diagram-js/lib/core/Canvas';
3
+ import { Injector } from 'didi';
3
4
  import { default as EvolutionGrid } from '../evolution-grid/EvolutionGrid.js';
5
+ type Bounds = {
6
+ x: number;
7
+ y: number;
8
+ width: number;
9
+ height: number;
10
+ };
4
11
  /**
5
12
  * Keeps the map in view while scrolling and zooming.
6
13
  * Without this the user could scroll the map completely off-screen into empty space.
7
14
  * After every move we pull the visible area back so it stays close to the map,
8
- * leaving only a small margin of empty space around it.
15
+ * leaving only a small margin of empty space around it. "The map" is the plot plus any content
16
+ * reaching beyond it (long labels at the commodity edge, notes in the margin): `contentBounds()`,
17
+ * which hosts also fit the view to.
9
18
  */
10
19
  export default class PanConstraint {
11
20
  private readonly canvas;
12
21
  private readonly grid;
13
22
  static $inject: string[];
14
23
  private applying;
15
- constructor(eventBus: EventBus, canvas: Canvas, grid: EvolutionGrid);
24
+ /** Content bounds are measured lazily (getBBox), at most once per change of the map. */
25
+ private measured;
26
+ /** A config change (resize) happened; re-check once its elements are redrawn. */
27
+ private constrainAfterCommand;
28
+ private readonly freeRect;
29
+ constructor(eventBus: EventBus, canvas: Canvas, grid: EvolutionGrid, injector: Injector);
30
+ /**
31
+ * The plot (with its axis margins) united with everything drawn on it or beyond it, tight (no
32
+ * padding): what a host fits the view to.
33
+ */
34
+ contentBounds(): Bounds;
35
+ /** The margins around the content the view may show, in diagram px at the view's scale. */
36
+ private pads;
16
37
  private constrain;
17
38
  }
39
+ export {};
18
40
  //# sourceMappingURL=PanConstraint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PanConstraint.d.ts","sourceRoot":"","sources":["../../src/pan-constraint/PanConstraint.ts"],"names":[],"m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AAE,QAAQ,EACD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,aAAa,EACpC,QAAQ,EAAE,QAAQ;IA4BpB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAKvB,2FAA2F;IAC3F,OAAO,CAAC,IAAI;IAcZ,OAAO,CAAC,SAAS;CAyClB"}
@@ -0,0 +1,24 @@
1
+ import { default as CommandInterceptor } from 'diagram-js/lib/command/CommandInterceptor';
2
+ import { default as EventBus } from 'diagram-js/lib/core/EventBus';
3
+ import { default as ElementRegistry } from 'diagram-js/lib/core/ElementRegistry';
4
+ import { default as Canvas } from 'diagram-js/lib/core/Canvas';
5
+ import { Injector } from 'didi';
6
+ export declare const DROP_TARGET_MARKER = "wardley-drop-target";
7
+ /**
8
+ * Makes a pipeline behave like a group (diagram-js AttachSupport pattern): dragging or nudging the
9
+ * box carries its member components and its anchor component, dragging the anchor component shows
10
+ * the box following vertically (the constraint behavior moves it on drop), and a dragged component
11
+ * highlights the pipeline it would join.
12
+ */
13
+ export default class PipelineGroupBehavior extends CommandInterceptor {
14
+ private readonly elementRegistry;
15
+ private readonly canvas;
16
+ static $inject: string[];
17
+ constructor(eventBus: EventBus, elementRegistry: ElementRegistry, canvas: Canvas, injector: Injector);
18
+ private withFollowers;
19
+ /** Pipelines (and their members) whose anchor component is dragged without them. */
20
+ private carriedVertically;
21
+ private dropTargetFor;
22
+ private markDropTarget;
23
+ }
24
+ //# sourceMappingURL=PipelineGroupBehavior.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PipelineGroupBehavior.d.ts","sourceRoot":"","sources":["../../src/pipeline/PipelineGroupBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,2CAA2C,CAAC;AAC3E,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAiCrC,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AA2BxD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,kBAAkB;IAKjE,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,OAAgB,OAAO,WAAyD;gBAG9E,QAAQ,EAAE,QAAQ,EACD,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,MAAM,EAC/B,QAAQ,EAAE,QAAQ;IAmFpB,OAAO,CAAC,aAAa;IASrB,oFAAoF;IACpF,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,cAAc;CAQvB"}
@@ -0,0 +1,6 @@
1
+ import { ModuleDeclaration } from 'didi';
2
+ /** Pipelines move as groups with their members and anchor component (editor-only). */
3
+ export declare const pipelineGroupModule: ModuleDeclaration;
4
+ export { default as PipelineGroupBehavior, DROP_TARGET_MARKER } from './PipelineGroupBehavior.js';
5
+ export { anchorComponentOf, centerOf, membersOf, pipelineAnchoredBy, pipelineAt, pipelineFollowers, } from './pipelineMembership.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pipeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAG9C,sFAAsF;AACtF,eAAO,MAAM,mBAAmB,EAAE,iBAGjC,CAAC;AAEF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,iBAAiB,GAClB,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { default as ElementRegistry } from 'diagram-js/lib/core/ElementRegistry';
2
+ import { WardleyShape } from '../model/di-types.js';
3
+ interface Point {
4
+ x: number;
5
+ y: number;
6
+ }
7
+ export declare function centerOf(shape: WardleyShape): Point;
8
+ export declare function pipelineContains(pipeline: WardleyShape, point: Point): boolean;
9
+ export declare function allPipelines(registry: ElementRegistry): WardleyShape[];
10
+ export declare function membersOf(registry: ElementRegistry, pipeline: WardleyShape): WardleyShape[];
11
+ /** The OWM anchor: the standalone component written under the pipeline's name. */
12
+ export declare function anchorComponentOf(registry: ElementRegistry, pipeline: WardleyShape): WardleyShape | undefined;
13
+ /** The pipeline a component anchors (same name, not one of its members). */
14
+ export declare function pipelineAnchoredBy(registry: ElementRegistry, component: WardleyShape): WardleyShape | undefined;
15
+ /** Everything that moves together with a pipeline box: its members and its anchor component. */
16
+ export declare function pipelineFollowers(registry: ElementRegistry, pipeline: WardleyShape): WardleyShape[];
17
+ /**
18
+ * The pipeline a component would join when its centre sits at `point`. The pipeline it anchors is
19
+ * never a candidate, and its current pipeline wins over overlapping boxes.
20
+ */
21
+ export declare function pipelineAt(registry: ElementRegistry, component: WardleyShape, point: Point, excluded?: ReadonlySet<unknown>): WardleyShape | undefined;
22
+ export {};
23
+ //# sourceMappingURL=pipelineMembership.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipelineMembership.d.ts","sourceRoot":"","sources":["../../src/pipeline/pipelineMembership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAElF,UAAU,KAAK;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,KAAK,CAEnD;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAO9E;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,eAAe,GAAG,YAAY,EAAE,CAEtE;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAI3F;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,YAAY,GACrB,YAAY,GAAG,SAAS,CAK1B;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,YAAY,GACtB,YAAY,GAAG,SAAS,CAM1B;AAED,gGAAgG;AAChG,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,YAAY,GACrB,YAAY,EAAE,CAGhB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,YAAY,EACvB,KAAK,EAAE,KAAK,EACZ,QAAQ,GAAE,WAAW,CAAC,OAAO,CAAa,GACzC,YAAY,GAAG,SAAS,CAQ1B"}
@@ -1,3 +1,4 @@
1
+ import { default as EventBus } from 'diagram-js/lib/core/EventBus';
1
2
  import { default as PopupMenu, PopupMenuTarget } from 'diagram-js/lib/features/popup-menu/PopupMenu';
2
3
  import { PopupMenuEntries, default as PopupMenuProvider } from 'diagram-js/lib/features/popup-menu/PopupMenuProvider';
3
4
  import { default as WardleyModeling } from '../modeling/WardleyModeling.js';
@@ -10,7 +11,7 @@ export declare const POPUP_PROVIDER_ID = "wardley-element-settings";
10
11
  export default class WardleyElementSettingsProvider implements PopupMenuProvider {
11
12
  private readonly modeling;
12
13
  static $inject: string[];
13
- constructor(popupMenu: PopupMenu, modeling: WardleyModeling);
14
+ constructor(popupMenu: PopupMenu, modeling: WardleyModeling, eventBus: EventBus);
14
15
  getPopupMenuEntries(target: PopupMenuTarget): PopupMenuEntries;
15
16
  private componentEntries;
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WardleyElementSettingsProvider.d.ts","sourceRoot":"","sources":["../../src/popup/WardleyElementSettingsProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,KAAK,EACV,gBAAgB,EAChB,OAAO,IAAI,iBAAiB,EAC7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,KAAK,eAAe,MAAM,gCAAgC,CAAC;AAElE,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAU5D;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,8BAA+B,YAAW,iBAAiB;IAK5E,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,MAAM,CAAC,OAAO,WAAoC;gBAGhD,SAAS,EAAE,SAAS,EACH,QAAQ,EAAE,eAAe;IAK5C,mBAAmB,CAAC,MAAM,EAAE,eAAe,GAAG,gBAAgB;IAM9D,OAAO,CAAC,gBAAgB;CAgDzB"}
1
+ {"version":3,"file":"WardleyElementSettingsProvider.d.ts","sourceRoot":"","sources":["../../src/popup/WardleyElementSettingsProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,SAAS,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,KAAK,EACV,gBAAgB,EAChB,OAAO,IAAI,iBAAiB,EAC7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,KAAK,eAAe,MAAM,gCAAgC,CAAC;AAElE,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAmB5D;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,8BAA+B,YAAW,iBAAiB;IAK5E,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,MAAM,CAAC,OAAO,WAAgD;gBAG5D,SAAS,EAAE,SAAS,EACH,QAAQ,EAAE,eAAe,EAC1C,QAAQ,EAAE,QAAQ;IAWpB,mBAAmB,CAAC,MAAM,EAAE,eAAe,GAAG,gBAAgB;IAM9D,OAAO,CAAC,gBAAgB;CAgDzB"}
@@ -0,0 +1,27 @@
1
+ import { default as RuleProvider } from 'diagram-js/lib/features/rules/RuleProvider';
2
+ import { default as Canvas } from 'diagram-js/lib/core/Canvas';
3
+ import { default as EventBus } from 'diagram-js/lib/core/EventBus';
4
+ import { Injector } from 'didi';
5
+ /** Fired with `{ readOnly }` whenever the lock changes. */
6
+ export declare const READ_ONLY_CHANGED = "wardley.readOnly.changed";
7
+ /**
8
+ * Locks every edit on the canvas while a host cannot save what the canvas would change: an
9
+ * invalid file in an IDE shows the last valid map read-only until the text is valid again (guide
10
+ * §13.5). The rules veto move, resize, create, connect and delete; the context pad, the label,
11
+ * link and colour editors, the evolve, label and drawing handles, the map-size handles, the draw
12
+ * tool and the edit keys ask `isReadOnly()`. Selection, zoom, pan, copy and export stay.
13
+ */
14
+ export default class WardleyReadOnly extends RuleProvider {
15
+ private readonly canvas;
16
+ private readonly injector;
17
+ static $inject: string[];
18
+ private locked;
19
+ constructor(eventBus: EventBus, canvas: Canvas, injector: Injector);
20
+ init(): void;
21
+ isReadOnly(): boolean;
22
+ setReadOnly(readOnly: boolean): void;
23
+ /** Whatever is open or running would otherwise still change the map. */
24
+ private endInteractions;
25
+ private outerContainer;
26
+ }
27
+ //# sourceMappingURL=WardleyReadOnly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WardleyReadOnly.d.ts","sourceRoot":"","sources":["../../src/read-only/WardleyReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAErC,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAiC5D;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,YAAY;IAOrD,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAP3B,OAAgB,OAAO,WAAsC;IAE7D,OAAO,CAAC,MAAM,CAAS;gBAGrB,QAAQ,EAAE,QAAQ,EACD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ;IAK5B,IAAI,IAAI,IAAI;IAKrB,UAAU,IAAI,OAAO;IAIrB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAQpC,wEAAwE;IACxE,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,cAAc;CAIvB"}
@@ -0,0 +1,7 @@
1
+ import { Injector, ModuleDeclaration } from 'didi';
2
+ /** The edit lock of a canvas that shows a map the host cannot save (guide §13.5). */
3
+ export declare const readOnlyModule: ModuleDeclaration;
4
+ /** Whether the canvas is locked; false where the editor has no lock. */
5
+ export declare function isReadOnly(injector: Injector): boolean;
6
+ export { default as WardleyReadOnly, READ_ONLY_CHANGED } from './WardleyReadOnly.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/read-only/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAG9C,qFAAqF;AACrF,eAAO,MAAM,cAAc,EAAE,iBAG5B,CAAC;AAEF,wEAAwE;AACxE,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAED,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WardleyRules.d.ts","sourceRoot":"","sources":["../../src/rules/WardleyRules.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AAmBzD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,OAAgB,OAAO,WAAgB;gBAE3B,QAAQ,EAAE,QAAQ;IAIrB,IAAI,IAAI,IAAI;CAwBtB"}
1
+ {"version":3,"file":"WardleyRules.d.ts","sourceRoot":"","sources":["../../src/rules/WardleyRules.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AAqBzD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,OAAgB,OAAO,WAAgB;gBAE3B,QAAQ,EAAE,QAAQ;IAIrB,IAAI,IAAI,IAAI;CAgCtB"}
@@ -1,13 +1,17 @@
1
+ import { default as Canvas } from 'diagram-js/lib/core/Canvas';
1
2
  import { default as EventBus } from 'diagram-js/lib/core/EventBus';
2
3
  import { default as EvolutionGrid } from '../evolution-grid/EvolutionGrid.js';
4
+ /** Snap distance in SCREEN px, so the pull feels the same at every zoom level. */
5
+ export declare const SNAP_TOLERANCE_SCREEN_PX = 8;
3
6
  /**
4
- * Snaps the X position (evolution) during move/create/resize to the stage boundaries.
7
+ * Snaps the X position (evolution) during move/create/resize to the stage boundaries, within
8
+ * `SNAP_TOLERANCE_SCREEN_PX` on screen (converted to diagram units with the current zoom).
5
9
  * Disabled while the Shift key is held. Important: `x` and `dx` must be adjusted TOGETHER
6
10
  * (like diagram-js' `setSnapped`) — move takes the final position from `dx`, so a mutated
7
11
  * `x` alone would have no effect.
8
12
  */
9
13
  export default class StageSnapping {
10
14
  static $inject: string[];
11
- constructor(eventBus: EventBus, grid: EvolutionGrid);
15
+ constructor(eventBus: EventBus, grid: EvolutionGrid, canvas: Canvas);
12
16
  }
13
17
  //# sourceMappingURL=StageSnapping.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StageSnapping.d.ts","sourceRoot":"","sources":["../../src/snapping/StageSnapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,aAAa,MAAM,oCAAoC,CAAC;AAYpE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,MAAM,CAAC,OAAO,WAAiC;gBAEnC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa;CA4CpD"}
1
+ {"version":3,"file":"StageSnapping.d.ts","sourceRoot":"","sources":["../../src/snapping/StageSnapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,aAAa,MAAM,oCAAoC,CAAC;AAEpE,kFAAkF;AAClF,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAU1C;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,MAAM,CAAC,OAAO,WAA2C;gBAE7C,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM;CA+CpE"}
@@ -1,2 +1,2 @@
1
- export { MIRAGON, CHROME_VARS, DARK_MAP_VARS } from './palette.js';
1
+ export { MIRAGON } from './palette.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -1,19 +1,21 @@
1
1
  /**
2
- * Miragon design tokens — the single source of truth for every colour in the renderer.
2
+ * Miragon design tokens — the single source of truth for every colour the renderer draws.
3
3
  *
4
4
  * Values mirror the Miragon design system — the `miragon-brand:modeler-tool-design` skill in
5
- * `Miragon/corporate-identity` (its vendored `cd-tokens.generated.css` defines the `--cd-*`
6
- * variables, generated from `brand/tokens.json`). Re-copy from the skill to update; never fork the
7
- * hex values by hand. WHY this file exists: colours used to live in three
8
- * hand-duplicated places (the SVG `COLORS` object, the `--wardley-*` CSS variables, and the webapp's
9
- * own `:root`). Here they are declared once. `draw/styles.ts` derives the public `COLORS`/`FONT`/…
10
- * from `MIRAGON`; `assets/wardley.css` mirrors the `CHROME_VARS` / `DARK_MAP_VARS` maps (a unit test,
11
- * `test/theme.sync.test.ts`, fails if the CSS drifts).
5
+ * `Miragon/corporate-identity`, whose files are vendored unchanged next to this module
6
+ * (`cd-tokens.generated.css`, `cd-tokens.generated.json`, `cd-canvas.css`; design system 1.13.0).
7
+ * Re-copy them from the skill to update; never fork the hex values by hand. The SVG drawing needs
8
+ * literal values (exports carry presentation attributes, never `var()`), so `draw/styles.ts`
9
+ * derives the public `COLORS`/`FONT`/… from `MIRAGON`; the in-canvas chrome in
10
+ * `assets/wardley.css` reads the `--cd-ui-*` roles directly. The unit test
11
+ * `test/theme.sync.test.ts` fails if a `MIRAGON` value drifts from its `--cd-*` counterpart or the
12
+ * CSS declares a colour of its own.
12
13
  *
13
14
  * Pure data — no DOM, no imports — so it stays inside the P1 DOM-free discipline.
14
15
  *
15
- * There is one theme (the CI defines no dark theme). Brand rule: blue leads (`blau` — surfaces,
16
- * buttons, links), green accents (`gruen` — key visual, highlights; never body text on white).
16
+ * The renderer draws light only (the modelers switch to dark together, guide §13.3). Brand rule:
17
+ * blue leads (`blau` — surfaces, buttons, links), green accents (`gruen` — key visual, highlights;
18
+ * never body text on white).
17
19
  */
18
20
  /** Raw Miragon brand ramp — exact `brand/tokens.json` values. */
19
21
  export declare const MIRAGON: {
@@ -21,7 +23,7 @@ export declare const MIRAGON: {
21
23
  readonly blau: "#335DE5";
22
24
  /** Deeper blue for links / accent text on white (WCAG AA, ~5.5:1). */
23
25
  readonly blauLink: "#2B50D4";
24
- /** Lightened blue for links / accents on dark surfaces (the opt-in "dark map"). */
26
+ /** Lightened blue for links / accents on dark surfaces. */
25
27
  readonly blauHell: "#6B8AFF";
26
28
  /** Accent: key visual, highlights, one emphasised word. Bright — a fill, never text on white. */
27
29
  readonly gruen: "#00E676";
@@ -30,26 +32,23 @@ export declare const MIRAGON: {
30
32
  /** Text on light, monochrome logo. Not pure black. */
31
33
  readonly schwarz: "#1D1D1D";
32
34
  readonly weiss: "#FFFFFF";
33
- /** Functional / status layer (own layer beside the brand palette; AA as text on white). */
34
- readonly success: "#0B7A55";
35
- readonly warning: "#92610A";
36
- readonly danger: "#C92A2A";
37
- readonly info: "#2B50D4";
38
- /** Dark base — the CI hero / nav-glass colour (rgb 8,10,32). Used only by the opt-in "dark map". */
35
+ /**
36
+ * Status layer (guide §3.3): the brand colours plus amber and red. Fills, borders, icons and
37
+ * dots; as text on white only `danger` and `info` reach AA.
38
+ */
39
+ readonly success: "#00E676";
40
+ readonly warning: "#FFB000";
41
+ readonly danger: "#CD1839";
42
+ readonly info: "#335DE5";
43
+ /** UI grey (`--cd-linie`) for hairlines, guides and decorative borders. The CI allows no other greys. */
44
+ readonly linie: "#E6E2E2";
45
+ /** Structural strokes that must stay visible (≥ 3:1 on white): axes, dependency edges. */
46
+ readonly kontur: "#8F8A8A";
47
+ /** Secondary text (≥ 4.5:1 on white and on paper). */
48
+ readonly textLeise: "#6B6666";
49
+ /** Dark base — the CI hero / nav-glass colour (rgb 8,10,32). The canvas never draws it. */
39
50
  readonly navy: "#080A20";
40
51
  /** Signature brand gradient — hero, large surfaces, brand moments. Use verbatim. */
41
52
  readonly gradientBrand: "linear-gradient(120deg, #335DE5 30%, #00E676)";
42
53
  };
43
- /**
44
- * Chrome CSS variables (`--wardley-*`) authored in `assets/wardley.css`. The drift test keeps them in
45
- * sync. WHY a separate map from `COLORS`: chrome needs surface/brand/danger/shadow that the plot does
46
- * not, and only a subset of the canvas colours.
47
- */
48
- export declare const CHROME_VARS: Record<string, string>;
49
- /**
50
- * The per-document `style dark` map directive (`.wardley-container.wardley-dark`) overrides only the
51
- * surround. This is the ONLY dark surface — there is no app-level dark mode. The plot stays "paper",
52
- * so exports stay stable.
53
- */
54
- export declare const DARK_MAP_VARS: Record<string, string>;
55
54
  //# sourceMappingURL=palette.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,iEAAiE;AACjE,eAAO,MAAM,OAAO;IAClB,sDAAsD;;IAEtD,sEAAsE;;IAEtE,mFAAmF;;IAEnF,iGAAiG;;IAEjG,6CAA6C;;IAE7C,sDAAsD;;;IAGtD,2FAA2F;;;;;IAK3F,oGAAoG;;IAEpG,oFAAoF;;CAE5E,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEhD,CAAC"}
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,2FAA2F;;IAE3F,oFAAoF;;CAE5E,CAAC"}