Releases: ditrit/leto-modelizer-plugin-core
Releases · ditrit/leto-modelizer-plugin-core
Release version 0.22.0
[0.22.0] - 2023/10/19
Added
- Add
isFolderTypeDiagram
attribute inDefaultConfiguration
.
Changed
- Merge
folder
andfileName
params inaddComponent
method insideDefaultPlugin
andDefaultData
.
Release version 0.21.0
[0.21.0] - 2023/09/08
Added
- Add
addComponent
to Plugin to drop new component in parent container. - Add to the demo a button to drop a new component at the given coordinates.
- Add
resetDrawerActions
method inDefaultDrawer
andDefaultPlugin
.
Release version 0.20.0
[0.20.0] - 2023/08/30
Added
- Add optional containerId argument to
DefaultLayout.rearrangeComponentsPosition
. - Add
repositionComponent
method inDefaultDrawer
,DefaultPlugin
andDefaultLayout
. - Add a default implementation for
repositionComponent
inElkLayout
. - Add to the demo a button to log components position.
Removed
- In
ComponentAttribute
methodsgetReferenceValue
,setReferenceValue
,getLinkValue
,addLink
,removeLink
andreplaceLink
. - In
DefaultData
methodgetComponentIdFromValue
.
Changed
- Move ELK parameters from ElkLayout to DefautConfiguration.
Fixed
- Fix link generation, fix this bug.
Release version 0.19.0
[0.19.0] - 2023/08/16
Added
- Rename component feature:
- Add
getReferenceValue
,setReferenceValue
,getLinkValue
,addLink
,removeLink
andreplaceLink
insideComponentAttribute.js
. - Add
setId
,createAttribute
andgetAttributesByType
insideComponent.js
. - Add
renameComponentId
insideDefaultData.js
.
- Add
- Add
arrangeComponentsPosition
method inDefaultDrawer
andDefaultPlugin
. - Add inheritable class
DefaultLayout
for automatic layout in the diagram (does nothing). - Add inherited class
ElkLayout
for automatic layout in the diagram, using ELK. - Add HTML attribute equality as a Cypress step definition in
html.js
. - Add
elkjs
andweb-worker
as package dependencies.
Fixed
getDefinedAttributesByType
will now return nested attributes inside object, fix this bug.
Release version 0.18.0
[0.18.0] - 2023/07/20
Added
- Add class
Variable
for variable handling. - Add properties
name
,type
,value
andcategory
inVariable
. - Add
isVariable
getter inComponentAttribute
to check if the attribute is a variable. - Add methods in
DefaultData
:getAttributeValue
used to get the value of an attribute.getLinkedComponentsIds
used to get the ID of the linked component.getVariableValue
used to get the value of a variable.setVariableValue
used to set the value of a variable.getComponentIdFromValue
used to get the ID of a linked resource.
Changed
- Change
getLinks
method inDefaultData
Release version 0.17.0
[0.17.0] - 2023/07/05
Added
- Add
Tag
class withtype
andvalue
for tag. - Add diagram file information in:
parse
method ofDefaultParser
.parseConfiguration
method ofDefaultParser
.renderConfiguration
method ofDefaultRender
.parse
method ofDefaultPlugin
.render
method ofDefaultPlugin
.
- Add
restrictiveFolder
inDefaultConfiguration
. - Add manual resizing feature for container components.
Removed
- Method
getModelFolders
fromDefaultPlugin
andDefautParser
.
Release version 0.16.0
[0.16.0] - 2023/06/06
Added
- Add
defaultFileExtension
attribute inDefaultConfiguration
. - Move
defaultFileName
fromDefaultData
toDefaultConfiguration
. - Make
DefaultData
haveDefaultConfiguration
in constructor. - Add method
getModelFolders
inDefaultParser
. - Add delete shortcut to remove components or links.
- Add read-only option to draw function.
- Add resizing on draw function when read-only is activated.
- Add
tags
attribute inDefaultConfiguration
.
Release version 0.15.2
[0.15.2] - 2023/04/18
Fixed
- Export missing
DefaultConfiguration
class.
Release version 0.15.1
[0.15.1] - 2023/04/17
Fixed
- Fixed the bug that made the plugin core crash when reloading with a selected component not yet displayed
Release version 0.15.0
[0.15.0] - 2023/03/31
Added
- Migration guides.
- Rework on all events.
- Store of event logs.
DefaultConfiguration
inDefaultPlugin
to store all plugin configurations.- Documentation to build a svg template.
- Add
translate.x
andtranslate.y
properties inDefaultDrawer
to get the position of the root container. - Add method
getModels
inDefaultParser
andDefaultPlugin
.
Changed
- Remove old events management in
DefaultDrawer
. - The
y
position of the component container is now set in the model and not by the drawer. - The width and height of
#root svg
is now equal of#root
width and height.
Fixed
- Prevent auto-updating of dependencies in package-lock with
=
suffix. - Fix Firefox behavior of component outline property when it is selected.
- Fix
DefaultContainer
in demo resources to have a correct behavior on Firefox.
Removed
- Remove
width
andheight
fromDefaultDrawer
class and constructoroptions
. - Remove viewBox initialization from
DefaultDrawer
.