Change note to diagram-model-note and group to diagram-model-group
Ignore case on ArchimateRelationshipProxy#setAccessType() values
[PreferencePage] Initialise font to current font in font chooser dialog
Version 0.8.0 - June 23 2020
Add setTextAlignment() and setTextPosition() methods for visual objects
Add setBorderType() for Note and Group objects
Add function exec() to execute system commands and programs
Allow setting of console font in Preferences -> Scripting -> Console Font
Use a monospaced font for Console by default
Add a context menu option in the Scripts Manager to not show a folder in Scripts context menus
Add __SCRIPTS_DIR__ global for the scripts folder
Script exceptions are written to the console rather than Archi's .log file
Copy an object's Features on ArchimateConceptProxy#setType()
If setting width or height to -1 then use the values from user's preferences
Sort folders before files in Script context menus on Mac
The exit() function no longer reports the line number as this was incorrect
Version 0.7.2 - February 28 2020
Add outlineOpacity to objects - DiagramModelObjectProxy#setOutlineOpacity(int)
Add labelVisible to connections - DiagramModelConnectionProxy#setLabelVisible(boolean)
Add function getArgs() to retrieve command line arguments
Version 0.7.1 - January 31 2020
Add DiagramModelProxy#createViewReference()
Add DiagramModelObjectProxy#createViewReference()
Fix Nashorn message written to console
Version 0.7.0 - January 13 2020
Add model query functions - $.model.isModelLoaded(model) and $.model.getLoadedModels()
Add Association relationship directed attribute - relation.setAssociationDirected(boolean) and relation.isAssociationDirected()
Fix DiagramModelObjectProxy.children() and DiagramModelProxy.children() returning wrong class
Better folder icon
Add extension point for other languages that conform to JSR 223. Groovy and Ruby extensions are available as source in the jArchi GitHub repository but are unsupported
Version 0.6.0 - October 20 2019
Add API to merge concepts
Fix setting a Note's content not using the Command Stack
When setting new concept type diagram objects use figure type as set in Preferences
Allow to set and get ArchiMate Diagram Object figure type
FolderProxy#add() supports adding Concepts, Views and Folders
Check integrity of model when saving
Fix "class.name" selector for name containing dots
Add ArchimateModelProxy#children to allow access to first level folders
Some ES6 support (experimental)
Version 0.5.0 - July 12 2019
Add autoNest boolean option to ArchimateDiagramModelProxy.add(element, x, y, width, height, autoNest)
Add autoNest boolean option to DiagramModelProxy.createObject(type, x, y, width, height, autoNest)
Add Add Relative Bendpoints API to Connections
Allow selector of id # on model and add diagram object selectors
Improve EObjectProxyCollection methods' speed by using a LinkedHashSet
Ensure that source and target diagram components belong to the correct parent diagram model
Compare file names in menu and file viewer so that they are in alphabetical order on Mac
Improve the speed of script Undo/Redo if the Models Tree is open
Version 0.4.5 - April 16 2019
Fix setOpacity() not put on Undo/Redo Command Stack (regression in 0.4.4)
Set the current active part on startup if available
CurrentModel throws exception if model is null in UI (this is better than a NPE)
Console View moves Caret to end of text
Version 0.4.4 - March 22 2019
Add getPath() to ArchimateModelProxy
Add getters and setters for Access Type and Influence Strength
[Console] Add Scroll Lock option and add new Toolbar icons
Add option to refresh UI when running a script
Version 0.4.3 - February 12 2019
Don't show hidden files in Scripts Manager
Fix regression of exported images x2 on hires screens on Windows
Version 0.4.2 - February 1 2019
find() no longer returns connected relationships on diagram components
Don't scale exported images x2 on hires screens
Fix exception on activating scripts menu if the user scripts directory does not exist
Version 0.4.1 - October 26 2018
Calling exit() now exits gracefully with a message to console log
Add getOpacity() and setOpacity() to View Objects
setBounds() now returns self
Add setViewpoint(id) and getViewpoint() to ArchiMate Views
Add isAllowedConceptForViewpoint(conceptName) to ArchiMate Views
Add createObject(type, x, y, width, height) function to View and View Objects
Add add(element, x, y, width, height) function to View and View Objects
Add add(relation, sourceDiagramComponent, targetDiagramComponent) to View
concept.setType(type) now copies documentation
Version 0.3.0 - July 23 2018
Add new examples to premium content
Add model.createArchimateView(name)
Add model.createSketchView(name)
Add model.createCanvasView(name)
getType() now returns kebab-case class name
Relationship setSource() and setTarget() now updates all view instances of connections
Rename model.addElement() and model.addRelationship() to model.createElement() and model.createRelationship()
Added folder.add(concept) and folder.createFolder(name)
Rename DiagramComponent#getDiagramModel() to DiagramComponent#getView()
Console.log() can print JavaScript map-type objects (example - "{x:10 y:20}")
Use a map of options (scale, margin) for $.model.renderViewAsBase64(options)
Show script name in Undo/Redo menu
Scripts Manager sorts properly alphabetically on Linux
Version 0.2.0 - July 12 2018
Add new examples to premium content
Rename getArchimateConcept() to getConcept()
Add diagram object and connection get/set functions: fontColor, fontName, fontSize, fontStyle, lineColor, lineWidth, fillColor. These are now camel case and can be used in attr() functions.
Add set/get bounds function to view objects and use a JS object for x, y, width, height
Add $.model.renderViewAsBase64(view, format, options) function
Simplify Browser object API
Add options to prompt and file dialogs
Fix drag and drop not working at top level in Scripts Manager