This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Thomas Klok Rohde | |
Description: Selection sensitive menu system for curated scripts | |
History: | |
October 2, 2022 : Created with base set of scripts | |
*/ | |
console.show(); | |
console.clear(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* HeatMap by Property Value | |
* | |
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
* | |
* Version 1: Set colour to red, amber or green based on value of given property. | |
* Version 2: Pull out all Properties used in Elements in view, present all possible values of that Property to assign RAG colours | |
* Version 3: Error handling and key generation | |
* Version 4: Updated for dynamic colour selection and support for more than 3 colours | |
* Version 5: If there are less than 5 values, buttons are used instead of the menu. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This script attemps to import a draw.io (aka diagrams.net) diagram into an Archi model by | |
* empirically mapping the observable attributes of the XML elements exported from draw.io to Archimate | |
* elements and relationships. Please note that this mapping is fragile, because draw.io doesn't seem | |
* to generate the XML attributes in a very consistent way; also, we must unfortunately use element color | |
* as a key differentiator, to compensate for the lack of usable archimate information in the XML file. | |
* All of this means that minor changes in the draw.io XML format can break the mapping... | |
* Notes: | |
* -- To generate the draw.io file, export it as an *uncompressed* XML file. | |
* -- When running the script, make sure you have set the current model to import it in (e.g. by selecting a view in the model) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************** | |
* Step by Step JArchi script examples * | |
* v0.1 * | |
* Francois Coudeville * | |
* May 2021 #jArchi * | |
* #Beginner #Guide #Tutorial #Example * | |
****************************************/ | |
//--------- | |
// 1 Utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@ts-check | |
/** | |
* Test of a dialog box in jarchi, SWT style | |
*/ | |
/** | |
* @typedef {any} JavaClass | |
* @typedef {Object<string, function>} JavaObject | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |