Skip to content

Releases: ditrit/leto-modelizer-plugin-core

Release version 0.14.0

01 Mar 10:31
537b4c6
Compare
Choose a tag to compare

[0.14.0] - 2023/03/01

Added

  • Add method getAttribute to get attribute by name for a component in model template.
  • Add getUsedLinkDefinition in DefaultData.js to get the link definitions used by components.
  • Add __initializeArrowMarker method in DefaultDrawer.js.
  • Add actions.zoom.scale in constructor of DefaultDrawer.js to get the zoom scale.
  • Add marker definition in ComponentLinkDefinition to define the marker of the link.

Changed

  • Change drawLinks method in DefaultDrawer.js to draw arrow markers on links extremities.

Fixed

  • Fix the links width by multiplying it by the zoom scale.
  • Fix hasError in ComponentAttribute.js to return false when the value of attribute is empty.

Release version 0.13.0

09 Feb 16:51
10c3f83
Compare
Choose a tag to compare

[0.13.0] - 2023/02/09

Added

  • Add menu to create a new linkable component from selected component.
  • Add getDefinedAttributesByType method in Component.js.

Fixed

  • Fix Component.checkRequiredAttributes method fails when required attribute is Boolean or Number.

Release version 0.12.1

07 Feb 10:54
4302547
Compare
Choose a tag to compare

[0.12.1] - 2023/02/07

Fixed

  • Fix throw exception for Object or Array attribute in checkRequiredAttributes method in Component.js.

Release version 0.12.0

02 Feb 13:33
be6ebbf
Compare
Choose a tag to compare

[0.12.0] - 2023/02/02

Added

  • Add a lot of e2e tests to improve e2e coverage
  • Added layout line length overrides.
  • Added workflow display type.
    • It is designed for containers where children ordering is significant.
    • Drag and drop reordering of children is supported within these containers
  • Add getDragTarget method to DefaultDrawer.js.
  • Add an id to the component's icons for cypress tests.
  • Add hasError method to Component.js to check if a component has an error
  • Add methods checking error for all types to ComponentAttribute.js
  • Add error icon on component SVGs.
  • Add defaultFileName attribute to manage the default file name of the new components.
  • Add method generateComponentId in DefaultData.js to generate id from definition type.
  • Add helper properties for component and attribute: displayName, description and url.

Changed

  • Replace esdoc by jsdoc
  • Make configuration readable by user in the configuration file.
  • Save component's positions after the layout is automatically generated.
  • Change ComponentAttributeDefinition. containerRef's type from array to string.
  • Change parameter of method addComponent in DefaultData.js to accept now the definition and optional folder path and optional fileName path.
  • Method render of DefaultPlugin.js now includes the configuration file.

Fixed

  • Save configuration even if the file content is null.
  • Fix drag and drop for e2e tests
  • Fix component drag behavior when the mouse click on component's icon or text.
  • Fix zoom centered on the mouse.
  • Fix cypress tests to works with new drag action.
  • Fix error in setReferenceAttribute when there are attributes without definition.

Release version 0.11.0

07 Dec 10:59
f3ea77a
Compare
Choose a tag to compare

[0.11.0] - 2022/12/07

Added

  • Method getchildren by component id in DefaultData.
  • Method getContainerId on Component.
  • Add files parameter in method render of DefaultRender and DefaultPlugin to list all files managed by the plugin.
  • Add UpdateEvent to notify modelizer of all updates on components made by user.
  • Add attributes in ComponentAttributeDefinition to manage customization of link:
    • LinkColor to define the color of the link, default black.
    • LinkWidth to define the width of the link, default 2px.
    • LinkDashStyle to define the dash style of the link, default null for a line link.

Removed

  • Remove attribute children of Component to transform components tree in components Array.
  • Remove EditEvent and DeleteEvent in DefaultDrawer.

Changed

  • Updated drawLinks to dynamically select curve type based on components relative positions.
  • Replace method render by renderFiles as method to be overridden by plugin.

Fixed

  • Method render in DefaultRender now returns files that are no longer linked to components.
  • Fixed disabled style application when the origin could have multiple targets.

Release version 0.10.0

28 Nov 14:58
415416f
Compare
Choose a tag to compare

[0.10.0] - 2022/11/28

Added

  • Add save and retrieve position of component in DefaultPlugin:
    • Add configuration file in first argument of method parse in DefaultPlugin.
    • Add configuration file in argument of method render in DefaultPlugin.
  • Add support for manual component positioning.
  • Add support for top and bottom link anchors.

Release version 0.9.1

24 Nov 14:38
a2a1531
Compare
Choose a tag to compare

[0.9.1] - 2022/11/24

Fixed

  • Fix display of action menu.
  • Emit EditEvent only for Component.

Release version 0.9.0

24 Nov 10:32
5d43c48
Compare
Choose a tag to compare

[0.9.0] - 2022/11/24

Added

  • Add drawLinks, getAnchorPoint methods in DefaultDrawer.js.
  • Create a new draw method that executes the drawLinks and drawComponents methods.
  • Add method setReferenceAttribute and removeAllReferenceAttributes in Component to update container attribute.
  • Add default model DefaultData to manage all data of the plugin.
  • Add default model DefaultPlugin to simplify the plugin usage.
  • Add method setEvents in DefaultDrawer.
  • Add zoom and pan support.
  • Add the method addLink in DefaultDrawer.js that adds a new link between two components.
  • Add options prop to DefaultDrawer constructor to control rendering behavior.
  • Add createRenderingContext method to DefaultDrawer.
  • Add SVGToScreen and screenToSVG methods to DefaultDrawer.
  • Add setDisabledStyle and unsetAllDisabledStyles methods to DefaultDrawer.
  • Add dragHandler, setupDragBehavior and handleDropEvent methods to DefaultDrawer to control drag and drop interaction.
  • Add startLinkCreationInteraction and cancelLinkCreationInteraction methods to DefaultDrawer.
  • Add buildTree, setupTiles and __buildLines methods to DefaultDrawer to control the component layout.
  • Add method getLinks in DefaultData to generate all links from all components attributes.
  • Add method getComponentsByType in DefaultData.
  • Add method getAttributeByName in Component.
  • Add method initLinkDefinitions in DefaultData and call it in init in DefaultPlugin.
  • Add method removeLink in DefaultData.
  • Add attribute name for method removeLinkAttribute of Component.
  • Add getMenuAction that contains all action handler.

Changed

  • Rename the draw method to drawComponents.
  • Switch action menu position parameter from absolute to fixed.
  • Update constructor of DefaultDrawer, DefaultRenderer, DefaultParser and DefaultMetadata to use DefaultData.
  • Update draw method of DefaultDrawer to only use the container id.
  • Rename method getDefinitions of DefaultMetadata to parse and make it update directly the plugin data.
  • Make the method parse of DefaultParser update directly the plugin data instead of return components, links and errors.
  • DefaultDrawer constructor props re-ordered to (pluginData, resources, events, rootId, options) based on the likelihood of each prop being changed by the user.
  • Update drawComponents to make full use of d3's api.
  • Rename method removeLinkAttributeById of Component in removeLinkAttribute.
  • Rework the action menu to have more visual feedback, improve positioning comportment and adapt his content with available actions.

Removed

  • Remove method addChild from Component.
  • Remove interactjs and bin-pack dependencies.
  • Remove arguments of method render of DefaultRender to directly use the plugin data.
  • Remove links from DefaultData.

Fixed

  • Fix indentation in DefaultDrawer.

Release version 0.8.1

12 Oct 15:17
5561e86
Compare
Choose a tag to compare

[0.8.1] - 2022-10-12

Fixed

  • Fix action-menu events (trash & edit)

Release version 0.8.0

12 Oct 12:22
0fb87f5
Compare
Choose a tag to compare

[0.8.0] - 2022-10-12

Added

  • Add a feature that displays an action menu when a component is selected.
  • Update constructor of Drawer to receive an events object.
  • Emit an event on edit, selection and delete components.