@peter.prib/renderengine 0.14.0 → 0.15.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 +45 -19
- package/bin/renderengine.mjs +157 -0
- package/dist/renderengine-workspace.umd.js +49391 -39748
- package/dist/renderengine.umd.js +25366 -15650
- package/documentation/REFERENCE.md +38 -0
- package/package.json +6 -1
- package/src/CanvasRenderer.js +225 -200
- package/src/SVGRenderer.js +476 -454
- package/src/archimate.js +22 -2
- package/src/archimateArchiFormat.js +1735 -1701
- package/src/archimateArchive.js +36 -7
- package/src/archimateCSV.js +93 -37
- package/src/archimateDrawio.js +2 -0
- package/src/archimateExchangeFormat.js +3 -1
- package/src/chartCatalog.js +219 -0
- package/src/charting/Annotations.js +169 -0
- package/src/charting/ArchimateDiagramEditor.js +54 -10
- package/src/charting/Axis.js +217 -5
- package/src/charting/Chart.js +99 -9
- package/src/charting/Chart3D.js +3 -0
- package/src/charting/ChartBox.js +8 -1
- package/src/charting/ColorPalette.js +42 -4
- package/src/charting/DiagramEditor.js +174 -39
- package/src/charting/DiagramEditorCommands.js +28 -0
- package/src/charting/Edge.js +7 -0
- package/src/charting/Hierarchy.js +114 -0
- package/src/charting/InteractionManager.js +4 -0
- package/src/charting/ModelFileFormat.js +5 -1
- package/src/charting/SettingsManager.js +35 -0
- package/src/charting/ShapePaths.js +82 -10
- package/src/charting/archimate/ArchimateCsvFileFormat.js +51 -12
- package/src/charting/archimate/ArchimateElementTemplate.js +235 -231
- package/src/charting/charts/AlluvialDiagram.js +311 -0
- package/src/charting/charts/AreaChart.js +52 -15
- package/src/charting/charts/BarChart.js +38 -3
- package/src/charting/charts/BarChart3D.js +5 -3
- package/src/charting/charts/BarChartBase.js +26 -6
- package/src/charting/charts/BeeswarmChart.js +164 -0
- package/src/charting/charts/BoxPlotChart.js +23 -1
- package/src/charting/charts/CalendarHeatmapChart.js +2 -1
- package/src/charting/charts/CandlestickChart.js +172 -4
- package/src/charting/charts/ChordDiagram.js +105 -2
- package/src/charting/charts/CirclePackChart.js +81 -0
- package/src/charting/charts/ComboChart.js +233 -0
- package/src/charting/charts/ContourChart.js +310 -0
- package/src/charting/charts/DonutChart3D.js +13 -0
- package/src/charting/charts/DumbbellChart.js +217 -0
- package/src/charting/charts/EcdfChart.js +150 -0
- package/src/charting/charts/FunnelChart.js +4 -1
- package/src/charting/charts/GeoMapChart.js +132 -11
- package/src/charting/charts/GroupedBarChart.js +44 -3
- package/src/charting/charts/GroupedDistributionChart.js +26 -1
- package/src/charting/charts/HeatmapChart.js +2 -2
- package/src/charting/charts/HexbinChart.js +137 -0
- package/src/charting/charts/HierarchyChart.js +77 -3
- package/src/charting/charts/HorizonChart.js +105 -0
- package/src/charting/charts/KagiChart.js +167 -0
- package/src/charting/charts/LineChart.js +74 -18
- package/src/charting/charts/OhlcChart.js +79 -0
- package/src/charting/charts/ParallelCoordinatesChart.js +9 -1
- package/src/charting/charts/PieChart.js +195 -17
- package/src/charting/charts/PieChart3D.js +137 -0
- package/src/charting/charts/PointAndFigureChart.js +198 -0
- package/src/charting/charts/PolarAreaChart.js +189 -0
- package/src/charting/charts/RadarChart.js +7 -1
- package/src/charting/charts/RadialBarChart.js +5 -2
- package/src/charting/charts/RenkoChart.js +178 -0
- package/src/charting/charts/RidgelineChart.js +113 -0
- package/src/charting/charts/SankeyDiagram.js +127 -4
- package/src/charting/charts/ScatterChart.js +13 -0
- package/src/charting/charts/ScatterMatrixChart.js +119 -0
- package/src/charting/charts/SlopegraphChart.js +205 -0
- package/src/charting/charts/SparklineTableChart.js +166 -0
- package/src/charting/charts/StackedBarChart.js +48 -5
- package/src/charting/charts/StackedBarChart3DOrbit.js +10 -5
- package/src/charting/charts/StreamGraphChart.js +10 -3
- package/src/charting/charts/SunburstChart.js +27 -7
- package/src/charting/charts/SurfaceChart3D.js +157 -0
- package/src/charting/charts/TreemapChart.js +28 -8
- package/src/charting/charts/ViolinChart.js +18 -0
- package/src/charting/datamodel/ArchimateDataLink.js +70 -0
- package/src/charting/datamodel/DataLineage.js +150 -0
- package/src/charting/datamodel/DataModel.js +83 -1
- package/src/charting/datamodel/ModelMapping.js +87 -0
- package/src/charting/datamodel/SqlDdl.js +110 -85
- package/src/charting/datamodel/index.js +3 -0
- package/src/charting/decision/DecisionWorkbench.js +295 -0
- package/src/charting/diagrams/ArchimateDiagram.js +25 -9
- package/src/charting/diagrams/ArchimateModel.js +1382 -1238
- package/src/charting/diagrams/GraphDiagram.js +1424 -1350
- package/src/charting/diagrams/SketchView.js +121 -0
- package/src/charting/diagrams/sketchBoxKinds.js +30 -0
- package/src/charting/modelTree/AnalysisPanel.js +101 -23
- package/src/charting/modelTree/NavigatorModel.js +410 -0
- package/src/charting/modelTree/NavigatorPanel.js +453 -0
- package/src/charting/pivot/PivotChart.js +109 -4
- package/src/charting/pivot/PivotGridChart.js +321 -33
- package/src/charting/pivot/PivotView.js +82 -0
- package/src/charting/report/TemplatedReport.js +547 -0
- package/src/charting/templates/BoxTemplate.js +28 -27
- package/src/charting/templates/PackageTemplate.js +26 -25
- package/src/charting/templates/SwimlaneTemplate.js +19 -18
- package/src/charting/templates/Template.js +219 -212
- package/src/cli.js +146 -0
- package/src/index.js +3370 -2995
- package/src/workspace/Workspace.js +126 -7
- package/src/workspace/archimateServices.js +4 -0
- package/src/workspace/parts/ArchimateCanvasPart.js +1 -1
- package/src/workspace/styles.js +36 -1
package/src/archimate.js
CHANGED
|
@@ -292,9 +292,11 @@ const ELEMENT_TYPE_ROWS = [
|
|
|
292
292
|
['plateau', 'implementation', 'other', '🏔️', 'stack', '#E0FFE0', 'A relatively stable state of the architecture that exists during a limited period of time.'],
|
|
293
293
|
['gap', 'implementation', 'other', '⚠️', 'gap-circle', '#E0FFE0', 'A statement of difference between two plateaus, typically between baseline and target architecture.'],
|
|
294
294
|
// Composite / Other
|
|
295
|
-
['location', 'composite', 'other', '📍', 'pin',
|
|
295
|
+
['location', 'composite', 'other', '📍', 'pin', '#FFFFE0', 'A conceptual or physical place where elements are situated or where behavior takes place.'],
|
|
296
296
|
['grouping', 'composite', 'other', '🗂️', 'grouping-box', '#FFFFFF', 'A generic way to group any set of elements that belong together for analysis or presentation.'],
|
|
297
|
-
['junction', 'composite', 'other', '
|
|
297
|
+
['junction', 'composite', 'other', '●', 'junction', undefined, 'A point at which relationships can be split or joined; used to connect multiple elements in a single flow.'],
|
|
298
|
+
['and-junction', 'composite', 'other', '●', 'junction', undefined, 'An And junction: conjunctive split or join of multiple flows (solid dot).'],
|
|
299
|
+
['or-junction', 'composite', 'other', '○', 'junction-or', undefined, 'An Or junction: disjunctive split or join of multiple flows (hollow circle).'],
|
|
298
300
|
];
|
|
299
301
|
for (const [name, layerKey, aspect, icon, notationShape, ownColor, description] of ELEMENT_TYPE_ROWS) {
|
|
300
302
|
ELEMENT_TYPES_V3_2.set(name, new ArchimateElementType(name, LAYERS[layerKey], aspect, icon, notationShape, ownColor, description));
|
|
@@ -570,6 +572,24 @@ export const ArchimateNotation = {
|
|
|
570
572
|
},
|
|
571
573
|
|
|
572
574
|
|
|
575
|
+
/**
|
|
576
|
+
* Default fill color for an element type at ersion (default ), with optional
|
|
577
|
+
* type-level overrides ({ [typeName]: color }).
|
|
578
|
+
*/
|
|
579
|
+
defaultColor(typeName, version = '4', { elementColors = {} } = {}) {
|
|
580
|
+
if (elementColors?.[typeName]) return elementColors[typeName];
|
|
581
|
+
const type = this.elementType(typeName, version);
|
|
582
|
+
if (type?.color) return type.color;
|
|
583
|
+
const layerName = this.elementLayer({ type: typeName }, version);
|
|
584
|
+
return this.layer(layerName)?.color || this.layer('other')?.color || '#E8E8E8';
|
|
585
|
+
},
|
|
586
|
+
|
|
587
|
+
/** Set type-level default fill color override on an ArchimateElementType. */
|
|
588
|
+
setElementTypeColor(typeName, color, version = '4') {
|
|
589
|
+
const type = this.elementType(typeName, version);
|
|
590
|
+
if (type) type.ownColor = color;
|
|
591
|
+
},
|
|
592
|
+
|
|
573
593
|
migrateElementToV4,
|
|
574
594
|
archimate32Type,
|
|
575
595
|
};
|