@peter.prib/renderengine 0.5.0 → 0.7.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 (71) hide show
  1. package/README.md +4 -0
  2. package/REFERENCE.md +252 -17
  3. package/dist/renderengine-workspace.umd.js +4995 -2932
  4. package/dist/renderengine.umd.js +3985 -2193
  5. package/examples/archimate.html +8 -28
  6. package/examples/data-model.html +45 -556
  7. package/package.json +70 -70
  8. package/src/archimateArchiFormat.js +11 -3
  9. package/src/archimateExchangeFormat.js +17 -9
  10. package/src/charting/ArchimateDiagramEditor.js +1 -1
  11. package/src/charting/Axis.js +20 -0
  12. package/src/charting/DiagramEditor.js +35 -3
  13. package/src/charting/Dialog.js +195 -0
  14. package/src/charting/DuplicatesDialog.js +108 -0
  15. package/src/charting/FormDialog.js +28 -97
  16. package/src/charting/InteractionManager.js +3 -0
  17. package/src/charting/Legend.js +45 -2
  18. package/src/charting/MergeCompareDialog.js +81 -0
  19. package/src/charting/PopupMenu.js +12 -3
  20. package/src/charting/SettingsDialog.js +6 -2
  21. package/src/charting/SettingsManager.js +14 -1
  22. package/src/charting/archimate/ArchimateCanvasEditor.js +190 -15
  23. package/src/charting/archimate/ArchimatePalette.js +1 -1
  24. package/src/charting/charts/AreaChart.js +5 -2
  25. package/src/charting/charts/BarChart.js +5 -3
  26. package/src/charting/charts/BarChart3DOrbit.js +5 -7
  27. package/src/charting/charts/BubbleChart.js +5 -7
  28. package/src/charting/charts/BubbleChart3D.js +5 -7
  29. package/src/charting/charts/CandlestickChart.js +3 -1
  30. package/src/charting/charts/DensityChart.js +4 -6
  31. package/src/charting/charts/GroupedBarChart.js +2 -2
  32. package/src/charting/charts/LineChart.js +5 -2
  33. package/src/charting/charts/ParallelCoordinatesChart.js +2 -2
  34. package/src/charting/charts/PipeChart.js +4 -6
  35. package/src/charting/charts/RadarChart.js +5 -6
  36. package/src/charting/charts/ScatterChart.js +5 -7
  37. package/src/charting/charts/StackedBarChart.js +4 -2
  38. package/src/charting/charts/StackedBarChart3DOrbit.js +5 -7
  39. package/src/charting/charts/StreamGraphChart.js +5 -2
  40. package/src/charting/charts/WaterfallChart.js +2 -1
  41. package/src/charting/content/ContentSource.js +129 -0
  42. package/src/charting/content/ContentSources.js +77 -0
  43. package/src/charting/datamodel/DataModel.js +116 -0
  44. package/src/charting/diagrams/ArchimateModel.js +38 -3
  45. package/src/charting/diagrams/ArchimateModelChecker.js +13 -4
  46. package/src/charting/diagrams/MergeElementsCommand.js +124 -101
  47. package/src/charting/diagrams/SvgZoom.js +20 -1
  48. package/src/charting/diagrams/duplicates.js +95 -13
  49. package/src/charting/duplicateSearchForm.js +58 -0
  50. package/src/charting/modelTree/ModelTree.js +239 -202
  51. package/src/charting/modelTree/ModelTreePanel.js +955 -919
  52. package/src/charting/modelTree/TreeBuilder.js +93 -45
  53. package/src/charting/modelTree/TreeViewMode.js +9 -6
  54. package/src/charting/modelTree/viewFolders.js +15 -6
  55. package/src/icons/IconSet.js +86 -0
  56. package/src/icons/index.js +59 -0
  57. package/src/index.js +65 -9
  58. package/src/workspace/dom.js +56 -42
  59. package/src/workspace/index.js +1 -1
  60. package/src/workspace/nav/NavEntry.js +42 -0
  61. package/src/workspace/nav/NavGroup.js +43 -0
  62. package/src/workspace/nav/NavItem.js +53 -0
  63. package/src/workspace/nav/NavMenu.js +143 -0
  64. package/src/workspace/nav/NavSection.js +17 -0
  65. package/src/workspace/nav/index.js +5 -0
  66. package/src/workspace/parts/ArchimateCanvasPart.js +8 -3
  67. package/src/workspace/parts/DataModelPart.js +91 -0
  68. package/src/workspace/parts/EditorPart.js +8 -0
  69. package/src/workspace/parts/ModelHosted.js +1 -0
  70. package/src/workspace/parts/ModelsPart.js +765 -622
  71. package/src/workspace/styles.js +28 -1
@@ -27,42 +27,22 @@ function runModeller() {
27
27
  registerBuiltinParts(ws);
28
28
  ws.registerPart(ArchimateCanvasPart);
29
29
 
30
- // The models open at once: a tab each. The first is this sample; New model makes empty ones.
31
- // keep: every model is kept in this browser as it is edited, and those open reopen next time;
32
- // File > This browser backs them up (to a folder chosen once, such as one OneDrive or Google Drive syncs).
30
+ // A tab per model; New model makes empty ones. Its models come from modelengine, kept apart from
31
+ // the tools: with modelengine checked out beside renderengine its bundle loads below, and on a first
32
+ // visit its first ArchiMate model opens; File > Open from lists the rest by domain. Without it the
33
+ // modeller starts empty. keep: every model is kept in this browser as it is edited, and those open
34
+ // reopen next time; File > This browser backs them up (to a folder chosen once, such as one OneDrive
35
+ // or Google Drive syncs).
33
36
  ws.addParts([{
34
37
  id: 'models', type: 'models', editorType: 'archimate-canvas', newModel: { analysis: true }, keep: true,
35
- models: [{
36
- id: 'modeller', name: 'Sample model', analysis: true,
37
- elements: [
38
- { id: 'customer', name: 'Customer', layer: 'business', type: 'business-actor', icon: '👤' },
39
- { id: 'order', name: 'Order Process', layer: 'business', type: 'business-process' },
40
- { id: 'order-svc', name: 'Order Service', layer: 'application', type: 'application-service' },
41
- { id: 'db', name: 'Database', layer: 'technology', type: 'node', icon: '🗄️' },
42
- ],
43
- relationships: [
44
- { source: 'customer', target: 'order', kind: 'assignment' },
45
- { source: 'order-svc', target: 'order', kind: 'serving' },
46
- { source: 'db', target: 'order-svc', kind: 'serving' },
47
- ],
48
- views: [{
49
- id: 'default',
50
- name: 'Default View',
51
- elementIds: ['customer', 'order', 'order-svc', 'db'],
52
- layout: {
53
- customer: { x: 80, y: 80 },
54
- order: { x: 300, y: 80 },
55
- 'order-svc': { x: 300, y: 200 },
56
- db: { x: 80, y: 200 },
57
- },
58
- }],
59
- }],
38
+ openContent: 'first',
60
39
  }]);
61
40
 
62
41
  ws.registerPerspective('Modelling', { type: 'part', partId: 'models' });
63
42
  ws.activatePerspective('Modelling');
64
43
  }
65
44
  </script>
45
+ <script src="../../modelengine/dist/modelengine.js"></script>
66
46
  <script src="../dist/renderengine-workspace.umd.js" onload="runModeller()"></script>
67
47
  </body>
68
48
  </html>