This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
v0.8.0
Bug fixes
view.Matcher#getElementName()
now returns proper value when named function is used as a pattern. Closes #850. (93f41c5)- Collapsed
model.Range
no longer sticks to its neighbour node when that node is moved. Closes #852. (ccd23d1) - Default
remove()
converter no longer removesview.UIElements
that are next to removed nodes. Closes #854. (c054ded) dev-utils/model#setData()
should work with custom roots. Closes #815. (0ad3074)- You can now return
null
from the element creators in converters for selection attributes and markers. It does not crash the conversion anymore. Closes #833. (8ffa038)
Features
- Integrated
Schema#limits
withDataController
's methods. Closes #818. (e3c3e33) - Introduced
is()
method in model and view tree nodes and document fragments. Closes #809. (1525bde) - Introduced
model.Selection#getSelectedBlocks()
. Closes #811. (9f3f35f) - Introduced
Schema#limits
map. See #818. (a66bcdd) - Introduced
view.Document#selectionChangeDone
event. Closes #791. (3a15236) - Introduced
view.Range#getEnlarged()
,view.Range#getTrimmed()
,view.Position#getLastMatchingPosition()
,model.Position#getLastMatchingPosition()
,view.TreeWalker#skip()
,model.TreeWalker#skip()
. Closes #789. (973f2ba) - Introduced
view.UIElement
class andview.writer.clear()
method. Closes #788. (64be1f6) - Introduced debugging tools for the engine. Closes #808. (7b56e4a)
- Introduced converters from model markers to
view.UIElement
. Closes #792. (1731e69)
Other changes
ModelConversionDispatcher
now usesremove
+insert
events to convertmove
andrename
changes, instead of dedicatedmove
andrename
events. Closes #837. (f63657c)view.Range.enlarge()
andview.Range.shrink()
should not pass the container limit because theview.Writer
expects that the whole range is in the same container. Closes #830. (8d4a1ca)
BREAKING CHANGES
ModelConversionDispatcher
no longer firesmove
andrename
events. This means that feature converters added as callbacks to those should be replaced byremove
andinsert
converters.- Removed
view.DocumentFragment#getAncestors()
. Closes #803. Closes #805. Position.getAncestors()
should return elements in the same order asNode.getAncestors()
.
NOTE
- It is advised to use either
Range#getTrimmed()
orRange#getEnlarged()
before operating on a range returned fromMapper
.