@peter.prib/renderengine 0.2.4 → 0.2.5
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/REFERENCE.md +7 -3
- package/dist/renderengine-workspace.umd.js +3875 -3838
- package/dist/renderengine.umd.js +3823 -3786
- package/package.json +1 -1
- package/src/charting/DiagramEditor.js +3330 -3330
- package/src/charting/DiagramTypeRegistry.js +361 -326
- package/src/charting/Palette.js +119 -119
- package/src/charting/TemplateCatalog.js +61 -59
package/REFERENCE.md
CHANGED
|
@@ -1940,8 +1940,11 @@ Each ArchiMate relationship type gives its notation as line style values:
|
|
|
1940
1940
|
`{ lineStyle: 'solid', startMarker: 'diamond', endMarker: 'none' }`; arrowheads come back as marker keys
|
|
1941
1941
|
(`realization` ends in `'trianglehollow'`).
|
|
1942
1942
|
|
|
1943
|
-
`DIAGRAM_TYPES` (
|
|
1944
|
-
Business, Ideas) decides which templates the palette offers. `
|
|
1943
|
+
`DIAGRAM_TYPES` (20 categories in the groups General, Process, UML, Data, Infrastructure,
|
|
1944
|
+
Business, Ideas) decides which templates the palette offers. An entry may say what it is (`description`), shown
|
|
1945
|
+
when the pointer rests on its tile. **Enterprise Ontology** (`'enterprise-ontology'`, in Data) offers the
|
|
1946
|
+
universal concepts enterprise data models are built from, each described: Party, Role, Arrangement, Resource,
|
|
1947
|
+
Event, Account / Ledger, Classification, Place, Time, Measure and Rule. `editor.initPaletteForDiagramType(container, key)`
|
|
1945
1948
|
renders a grouped category picker above a grid of draggable tiles. `editor.setPaletteCategory(key)`
|
|
1946
1949
|
switches category, and `onTemplateTypeChange(key)` (a constructor option) reports the switch.
|
|
1947
1950
|
Unknown keys fall back to `'generic'` (Basic Shapes).
|
|
@@ -1962,7 +1965,8 @@ class ChevronTemplate extends PolygonTemplate {
|
|
|
1962
1965
|
|
|
1963
1966
|
DIAGRAM_TYPES['value-chain'] = {
|
|
1964
1967
|
name: 'Value Chain', group: 'Business', description: 'Primary activities in sequence',
|
|
1965
|
-
templates: [{ id: 'activity', name: 'Activity',
|
|
1968
|
+
templates: [{ id: 'activity', name: 'Activity', description: 'A step that adds value',
|
|
1969
|
+
factory: (id, x, y) => new ChevronTemplate(id, 'Activity', { x, y }) }],
|
|
1966
1970
|
};
|
|
1967
1971
|
|
|
1968
1972
|
console.log(DIAGRAM_TYPES['value-chain'].templates[0].factory('a1', 100, 50).points().length); // 6
|