@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.
- package/README.md +4 -0
- package/REFERENCE.md +252 -17
- package/dist/renderengine-workspace.umd.js +4995 -2932
- package/dist/renderengine.umd.js +3985 -2193
- package/examples/archimate.html +8 -28
- package/examples/data-model.html +45 -556
- package/package.json +70 -70
- package/src/archimateArchiFormat.js +11 -3
- package/src/archimateExchangeFormat.js +17 -9
- package/src/charting/ArchimateDiagramEditor.js +1 -1
- package/src/charting/Axis.js +20 -0
- package/src/charting/DiagramEditor.js +35 -3
- package/src/charting/Dialog.js +195 -0
- package/src/charting/DuplicatesDialog.js +108 -0
- package/src/charting/FormDialog.js +28 -97
- package/src/charting/InteractionManager.js +3 -0
- package/src/charting/Legend.js +45 -2
- package/src/charting/MergeCompareDialog.js +81 -0
- package/src/charting/PopupMenu.js +12 -3
- package/src/charting/SettingsDialog.js +6 -2
- package/src/charting/SettingsManager.js +14 -1
- package/src/charting/archimate/ArchimateCanvasEditor.js +190 -15
- package/src/charting/archimate/ArchimatePalette.js +1 -1
- package/src/charting/charts/AreaChart.js +5 -2
- package/src/charting/charts/BarChart.js +5 -3
- package/src/charting/charts/BarChart3DOrbit.js +5 -7
- package/src/charting/charts/BubbleChart.js +5 -7
- package/src/charting/charts/BubbleChart3D.js +5 -7
- package/src/charting/charts/CandlestickChart.js +3 -1
- package/src/charting/charts/DensityChart.js +4 -6
- package/src/charting/charts/GroupedBarChart.js +2 -2
- package/src/charting/charts/LineChart.js +5 -2
- package/src/charting/charts/ParallelCoordinatesChart.js +2 -2
- package/src/charting/charts/PipeChart.js +4 -6
- package/src/charting/charts/RadarChart.js +5 -6
- package/src/charting/charts/ScatterChart.js +5 -7
- package/src/charting/charts/StackedBarChart.js +4 -2
- package/src/charting/charts/StackedBarChart3DOrbit.js +5 -7
- package/src/charting/charts/StreamGraphChart.js +5 -2
- package/src/charting/charts/WaterfallChart.js +2 -1
- package/src/charting/content/ContentSource.js +129 -0
- package/src/charting/content/ContentSources.js +77 -0
- package/src/charting/datamodel/DataModel.js +116 -0
- package/src/charting/diagrams/ArchimateModel.js +38 -3
- package/src/charting/diagrams/ArchimateModelChecker.js +13 -4
- package/src/charting/diagrams/MergeElementsCommand.js +124 -101
- package/src/charting/diagrams/SvgZoom.js +20 -1
- package/src/charting/diagrams/duplicates.js +95 -13
- package/src/charting/duplicateSearchForm.js +58 -0
- package/src/charting/modelTree/ModelTree.js +239 -202
- package/src/charting/modelTree/ModelTreePanel.js +955 -919
- package/src/charting/modelTree/TreeBuilder.js +93 -45
- package/src/charting/modelTree/TreeViewMode.js +9 -6
- package/src/charting/modelTree/viewFolders.js +15 -6
- package/src/icons/IconSet.js +86 -0
- package/src/icons/index.js +59 -0
- package/src/index.js +65 -9
- package/src/workspace/dom.js +56 -42
- package/src/workspace/index.js +1 -1
- package/src/workspace/nav/NavEntry.js +42 -0
- package/src/workspace/nav/NavGroup.js +43 -0
- package/src/workspace/nav/NavItem.js +53 -0
- package/src/workspace/nav/NavMenu.js +143 -0
- package/src/workspace/nav/NavSection.js +17 -0
- package/src/workspace/nav/index.js +5 -0
- package/src/workspace/parts/ArchimateCanvasPart.js +8 -3
- package/src/workspace/parts/DataModelPart.js +91 -0
- package/src/workspace/parts/EditorPart.js +8 -0
- package/src/workspace/parts/ModelHosted.js +1 -0
- package/src/workspace/parts/ModelsPart.js +765 -622
- package/src/workspace/styles.js +28 -1
package/examples/archimate.html
CHANGED
|
@@ -27,42 +27,22 @@ function runModeller() {
|
|
|
27
27
|
registerBuiltinParts(ws);
|
|
28
28
|
ws.registerPart(ArchimateCanvasPart);
|
|
29
29
|
|
|
30
|
-
//
|
|
31
|
-
//
|
|
32
|
-
//
|
|
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
|
-
|
|
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>
|