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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
Script Name: alignVertically | |
Purpose: Sorts selected visual elements within a view by ID (alphabetically) and stacks them in a vertical layout | |
Builds on the AlignSpreadHorizontally script by Rob Kamp (https://gist.github.com/robkamp/fac2b2d80ee44e7085c70738de544341) | |
Thomas Rischbeck, rischbeck@itmc.ch, (C) ITMC 2021 | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */// Author: Rob Kamp |
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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
Script Name: sort-and-layout-assessments | |
Purpose: Sorts selected assessments within a view by ID and stacks them in a vertical layout | |
Builds on the AlignSpreadVertically script by Rob Kamp | |
Thomas Rischbeck, rischbeck@itmc.ch, (C) ITMC 2021 | |
v2 all assessments same size and with label expression |
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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
Script Name: colorAssessments | |
Purpose: Color all assessment elements in the model according to a given property. | |
Dependening on this property's value the color is set on a red-yellow-green scale. | |
default values: property_name = "bewertung"; min_value = -10 (weak); max_value = 10 (strong) | |
Thomas Rischbeck, rischbeck@itmc.ch, (C) ITMC 2021 | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
Script Name: exportToExcelCSV | |
Purpose: Export all elements from the current model (including their properties) to a CSV file which | |
can be opened in Excel. This also works for special characters and for German locale. | |
Export uses latin encoding and replaces some characters so that Excel can directly open the CSV | |
(double-click). | |
This works in conjunction with smileham's importFromCSV to reimport changes (but doesn't require PapaParse), | |
see https://gist.github.com/smileham/1e57a5946235e780dee5a824f664aa3d |