This change log covers only the client part of Sprotty. See also the change logs of sprotty-server, sprotty-theia and sprotty-layout.
Breaking API changes:
- Upgrade to snabbdom 3.0.3. The imports of snabbdom functions have changed. The main snabbdom package exports all of the public API.This means consumers of the snabbdom package need to update their imports.
before
import { h } from 'snabbdom/h'
import { VNode } from 'snabbdom/vnode'
after
import { h, VNode } from 'snabbdom'
- snabbdom now supports jsx, so snabbdom-jsx has been removed. On the other hand, to maintain the ability to treat attribute prefixes as data keys, it is used via a wrapper called lib/jsx.
before
/** @jsx svg */
import { svg } from 'snabbdom-jsx';
after
/** @jsx svg */
import { svg } from 'sprotty';
- The
on
function API ofvnode-utils
has been changed due to the API change of snabbdom's event listner. Listners mustbind
elements. (see snabbdom/snabbdom#802)
New features:
Fixed issues: https://github.com/eclipse/sprotty/milestone/4?closed=1
New features:
- CenterAction retains zoom level (#138)
- Cycling through command palettes (#141)
- Context menus (#139#144)
- Use element subtype as css style (#145)
- Improve loading indicator of command palette (#148, #151)
- Reset previous hover feedback on mouseover (#153)
- Edge changes are animated (#158)
- Fix scrolling on all browsers (#163)
- Multi-line Label editing and ForeignObjects (#171, #173)
Fixed issues: https://github.com/eclipse/sprotty/milestone/3?closed=1
Breaking API changes:
DeleteContextMenuProviderRegistry
has been renamed toDeleteContextMenuProvider
(#157)MenuItem.isEnabled()
,MenuItem.isToggled()
andMenuItem.isVisible()
no longer return promises (#157)IUIExtension.id
andIUIExtension.containerClass
have become methods (#171)EdgeSnapshot
additionally storesroutedPoints
(#158)
New features:
- Command palette (#63)
- UI extensions (#63)
- Snap-to-grid (#87)
- Label editing (#88)
- Request-response actions (#103)
- Configure features as parameter to
configureModelElement
(#109) - New function
loadDefaultModules
(#111) - New function
configureActionHandler
(#117)
Fixed issues: https://github.com/eclipse/sprotty/milestone/2?closed=1
Breaking API changes:
- Split
Viewer
in three classesModelViewer
,HiddenModelViewer
,PopupModelViewer
(#103). - Renamed
CommandResult
type toCommandReturn
(#103). - Renamed
IVNodeDecorator
toIVNodePostprocessor
(#113, #116). - Changed
ComputedBoundsAction
(#119) SGraphFactory
is deprecated (#109).
First release of Sprotty with the Eclipse Foundation. The previous repository location was theia-ide/sprotty.