All notable changes to diagram-js are documented here. We use semantic versioning for releases.
_Note: Yet to be released changes appear here._
FIX
: prevent HTML injection in search component (#362)FEAT
: add basic grid snapping (f987bafe
)FEAT
: layout connections on start/end reconnection (f7cc7a8f
)FIX
: use reference point when resizing (95bef2f6
)FEAT
: trigger layout after connection reconnect (#317)FIX
: bump tiny-svg
dependency to workaround MS Edge translate bug (657da2c3
)Reverts changes in v3.1.1
, as they were unnecessary.
FIX
: use correct reference argument for DOM related insert operations (47ca05ca
)FIX
: don't swallow event listeners on EventBus#only
(#293)CHORE
: rework EventBus
internals, fixing various issues (#308)FIX
: make main export an ES moduleFIX
: correct IE11 delete key binding (d529a676
)FEAT
: make ContextPad
accessible and scaling configurable (#282)FEAT
: make PopupMenu
accessible and scaling configurable (#284)FEAT
: allow Keyboard
listener overrides using priorities (#226)FEAT
: add ability to move selected elements with keyboard arrows (9e62bdd
)FEAT
: require Ctrl/Cmd
modififer to move canvas via keyboard arrows (571efb9
)FEAT
: make KeyboardMove
and KeyboardMoveSelection
speed configurableFEAT
: speed up moving elements / canvas using keyboard errors if SHIFT
modifier is pressedFEAT
: add editorAction.init
event to register editor actions (a9089ad
)FEAT
: only bind Keyboard
shortcuts for existing editor actions (aa308fd
)FEAT
: rely on rules during GlobalConnect
start (1efb277
)FEAT
: expose KeyboardEvent
to keyboard listeners instead of (keyCode, event)
(94b5e26
)FEAT
: automatically resize parent elements when children are expanded or replaced (#287)CHORE
: drop implicit feature dependencies in EditorActions
(a9089ad
)GlobalConnect#registerProvider
got removed without replacement. Implement a connection.start
rule to control whether it is allowed to start connection with GlobalConnect
(1efb277
)Keyboard
now passes the KeyboardEvent
to listeners as the only argument rather than (keyCode, event)
(94b5e26
)listeners
property from Keyboard
lifecycle events (4d72e38
)Ctrl/Cmd
modifiers to be pressed; without the modifiers selected elements will be moved, if the KeyboardMoveSelection
feature is provided (571efb9
)EditorActions
does not implicitly pull in feature dependencies anymore, ensure you include all desired features with your editor (a9089ad
)FIX
: ignore vertical padding when layouting text with middle
alignmentCHORE
: normalize drag coordinates to full pixel coordinates (#271)FIX
: circumvent IE 9 viewer bug (e1f3c65c
)FEAT
: extend manhattan layout helper to support explicit trbl
direction and layout U-turns, if needed (fd4c6028
)FIX
: ensure all labels / attachers are moved before triggering connection layoutCHORE
: move attachers / labels along with move closure (16882649
)FEAT
: add ability to remove multiple events via EventBus#off
FEAT
: hide palette toggle in expanded state (a none-feature, technically) (#257)FIX
: take top/bottom padding into account when rendering text (#259)FIX
: don't throw error on out-of-canvas lasso tool releaseFEAT
: support lineHeight
in text render util (#256)FIX
: correct code snippet to ES5FEAT
: add support for multiple labels (#202)FEAT
: allow multiple classes to be passed to popup menu entriesFEAT
: refactor popup menu to allow multiple providers and simplify API (b1852e1d
)PopupMenu
API got rewritten, cf. b1852e1d
This release accidently introduced backwards incompatible changes. Unpublished; Use v2.0.0
instead.
CHORE
: bump object-refs versionFIX
: correct side-effects config to not include *.css
filesFEAT
: emit popup menu life-cycle eventsFIX
: prevent default click action on dragend, if trapClick: true
is specifiedFIX
: escape ids in CSS selectorsDOCS
: migrate example to ES modulesCHORE
: update utility toolbeltCHORE
: convert code base to ES modules (e26b034
)FEAT
: remove EventBus.Event
in favor of EventBus#createEvent
API (91899cf6
)EventBus#createEvent
to instantiate eventsCHORE
: bump tiny-svg versionCheck git log
for earlier history.