Commit Graph

19 Commits

Author SHA1 Message Date
Antonio Scandurra
6a083e14a2 Schedule component updates directly from the model
The only event-based APIs we kept are for listening to changes in block
decoration markers.
2017-05-05 09:29:29 +02:00
Nathan Sobo
b242f034b4 Don't render decorations for invalidated markers 2017-05-05 09:29:29 +02:00
Antonio Scandurra
1d01d499a9 Fix spec/text-editor-spec.coffee 2017-05-05 09:29:29 +02:00
Antonio Scandurra
a99237b33b Fix lint errors and delete dead code 2017-05-05 09:29:29 +02:00
Antonio Scandurra
4cd9a36594 Handle inserting and updating block decorations 2017-05-05 09:29:28 +02:00
Nathan Sobo
1b1cffb32d ⬆️ etch to allow arbitrary objects as keys 2017-05-05 09:29:28 +02:00
Nathan Sobo
90c326b985 Fix clearing of marker-specific properties for layer decorations 2017-05-05 09:29:28 +02:00
Nathan Sobo
68659d9698 When decorating a MarkerLayer, get its corresponding DisplayMarkerLayer
This fixes 'folded' line number decorations.
2017-05-05 09:29:27 +02:00
Nathan Sobo
ff325c0151 Render line and line number decorations 2017-05-05 09:29:27 +02:00
Nathan Sobo
dbbf23d3a5 Store decorations in sets instead of arrays 2017-05-05 09:29:27 +02:00
Nathan Sobo
fbf21e09d6 Remove decorationsForId from DecorationManager 2017-05-05 09:29:27 +02:00
Nathan Sobo
69d5b63e9d Replace layerUpdateDisposablesByLayerId with a weak map keyed by layer 2017-05-05 09:29:27 +02:00
Nathan Sobo
a1faf66a85 Replace decorationCountsByLayerId with a map keyed by layer 2017-05-05 09:29:27 +02:00
Nathan Sobo
18acf8bb19 Replace decorationsByMarkerLayerId with map keyed by layer 2017-05-05 09:29:27 +02:00
Nathan Sobo
acf057e002 Replace overlayDecorationsById with overlayDecorations set 2017-05-05 09:29:27 +02:00
Nathan Sobo
f426471910 Replace decorationsByMarkerId with map keyed by decoration 2017-05-05 09:29:27 +02:00
Nathan Sobo
f8a0058f06 Convert DecorationManager to standard style and remove unused method 2017-05-05 09:29:27 +02:00
Nathan Sobo
b713210b0c Emit didUpdateDecorations events synchronously
The rendering layer can be asynchronous instead, plus layer decorations
should remove the need to emit lots of individual events.
2017-05-05 09:29:27 +02:00
Nathan Sobo
30cd83f7aa Convert DecorationManager to JS 2017-05-05 09:29:27 +02:00