Skip to content

Latest commit

 

History

History
287 lines (187 loc) · 6.61 KB

changelog.md

File metadata and controls

287 lines (187 loc) · 6.61 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[0.34.0-dev]

  • Fix shape.Container width, wrap to grouped objects
  • Add C4 example

[0.33.0] 2023-10-21

  • Use gregoryv/web v0.25.0

[0.32.0] 2023-10-08

  • Enable scaling of diagrams and shapes, e.g. Diagram.SetScale(1.5)
  • Shapes no longer implement fmt.Stringer
  • Hide field Note.Text

[0.31.0] 2023-10-08

  • Hide field Label.Text
  • Remove aliased types and defaults in package shape
  • Hide field Diagram.Caption

[0.30.0] 2023-08-02

  • Add shape.Labeled to simplify labeling any shape
  • Group.WriteSVG writes all grouped shapes

[0.29.0] 2023-08-02

  • Add draw.DefaultFontFamily used in default classes
  • Add shape.Hidden for hiding shapes
  • Add shape.Anchor for linking shapes

[0.28.0] 2023-08-25

  • Add shape.Group and shape.Container
  • shape.Card default width is 310px
  • shape.Card takes optional note and text

[0.27.0] 2023-08-20

  • Add package draw/goviz for generating frame sequence diagrams

[0.26.1] 2023-02-20

  • Update dependencies

[0.26.0] 2022-12-28

  • Improve default link label positions
  • Add shap.Card
  • Consider a slice struct field of any type to be an aggregate. Ie. before []*Something was considered an aggregate whereas []Something was not. Now both are considered aggregates.
  • Hide X, Y fields of shapes, use SetX, SetY and Position

[0.25.0] 2022-04-21

  • Draw relations of embedded interface fields

[0.24.0] 2021-12-05

  • Add Diagram.Note helper method
  • Label shape supports linebreaks
  • Add shapes Process, Store

[0.23.0] 2021-09-04

  • NewStyle does not take writer, defaults to ioutil.Discard. Use Style.SetOutput
  • Add SequenceDiagram.Return method for drawing dashed arrows

[0.22.1] 2021-06-14

  • Fix arrows in sequence diagram, bug introduced in v0.22.0

[0.22.0] 2021-06-10

  • Update dependencies
  • Remove func draw.Inline(), moved to design as private
  • Remove type Arrow, use Line

[0.21.2] 2021-04-21

[0.21.1] 2021-04-21

[0.21.0] 2021-04-21

  • Line and arrow Height and Width methods consider head and tail shapes
  • Diamond.Position returns top left
  • Triangle points upwards and Position returns top left
  • Replace ActivityDiagram.If with Or when switching decision
  • Replace ActivityDiagram.Then with Trans and add TransRight methods
  • Activity diagram default spacing increased from 40 to 60

[0.20.0] 2021-04-16

  • Add Label.SetHref and Component.SetHref
  • Rename type xy.Position to xy.Point
  • Show relations between slices and structs in ClassDiagram
  • Add SequenceDiagram.Skip method for adding a dashed spacing
  • Replace draw.TagWriter with nexus.Printer

[0.19.0] 2021-04-05

  • Add labeled hexagon shape
  • Fix label alignment
  • Adjuster respects diagram style.Spacing
  • NewDiagram returns a pointer to diagram
  • Diagram variations embed reference to diagram

[0.18.0] 2021-01-23

  • Include slice methods in VRecord
  • Remove double padding for record titles
  • Improve label alignment in Diagram.Link method

[0.17.0] 2020-12-16

  • Fix Class diagram to show pointer receiver methods
  • Add SequenceDiagram.Group method for grouping columns with a labeled text area

[0.16.0] 2020-10-30

  • Diagrams Stringer implementations no longer inline css, use Inline method
  • Add VRecord.Slice method for slice composition and aggregates

[0.15.1] 2020-10-27

  • Fix missing relations in inlined class diagrams

[0.15.0] 2020-10-27

  • Diagrams implement stringer interface
  • AdaptSize makes width and height +1 pixel
  • Add Inline method to diagrams
  • Add type ClassAttributes with CSS method for easy inlining in HTML

[0.14.0] 2020-10-06

  • Fix VRecord to show pointer methods if pointer to struct given

[0.13.0] 2020-09-12

  • Add shape.Internet
  • Add default spacing to shape.Adjuster
  • Move type shape.Style to package draw
  • Rename NewSvg to NewSVG

[0.12.0] 2020-09-09

Changed

  • Moved draw/shape/design package to draw/design
  • Renamed type Svg to SVG
  • Renamed type SvgWriter to SVGWriter
  • Renamed WriteSvg to WriteSVG

[0.11.0] 2020-03-17

Changed

  • Generic design.NewVRecord for both structs and interfaces

Removed

  • Specific methods for creating struct and interface methods.

[0.10.0] 2020-02-03

Added

  • Ganttchart weekly view
  • Cylinder and database shapes
  • Func shape.SetClass for setting class of many shapes

Fixed

  • Component and rect labels use class + "-title"

[0.9.0] 2020-01-02

Added

  • ActivityDiagram helper methods, e.g Start, Then, If and Exit
  • Mark current day by default in gantt chart

Changed

  • Renamed Direction constants LR and RL to RightDir and LeftDir
  • NewGanttChart constructor uses date.String
  • Exposed TagWriter
  • shape.Svg moved to draw.Svg

Fixed

  • Label positioned correctly in activity diagram for vertical arrows

[0.8.0] 2019-12-18

Added

  • Aggregate relation when pointer to specific type is used
  • Gantt chart
  • Actor shape

Changed

  • Label is optional when creating links with func Link
  • Hide Height, Width attributes in Diagram
  • shape.NewDot defaults to radius 10

[0.7.0] - 2019-12-15

Changed

  • Namespace from gregoryv/go-design to gregoryv/draw. Fix your imports import "github.com/gregoryv/draw/shape/design"

[0.6.0] - 2019-12-15

Added

  • Activity diagram examples
  • Labeled links in plain diagrams
  • State shape
  • PlaceGrid to quickly place many shapes into a grid layout

[0.5.0] - 2019-12-13

Added

  • Link method to generic diagram
  • Rect, Dot, ExitDot and Component shapes

Changed

  • Label and circle has an edge
  • Circle shape is stroked by default

[0.4.0] - 2019-12-04

Fixed

  • Caption in sequence diagrams

Changed

  • Default color of records is white with pale lines

[0.3.0] - 2019-10-12

Fixed

  • Arrows point to edge irrelevant of angle

Added

  • Diagrams have optional bottom centered caption
  • Class diagram shows composition using diamond for tail
  • Note shape with multiline support

Changed

  • Font size decoupled from class attributes
  • Arrow for realizing interface is dashed
  • Label and circle position is top left corner
  • Hide methods realized by visible interfaces and structs

[0.2.0] - 2019-10-03

Changed

  • All shapes can have a class
  • Arrows in class diagrams attach to edge and point to center

Fixed

  • RightOf and LeftOf adjustments sets matching y position
  • Use class for non self arrows

Removed

  • SvgWriterShape interface

[0.1.0] - 2019-09-21

Added

  • Sequence diagram
  • Class diagram
  • Record shape with fields and methods
  • Arrow, line and label shapes