Commit Graph

235 Commits

Author SHA1 Message Date
Antonio Scandurra
b03aa4bf40 Merge branch 'master' into as-cjk-soft-wrap
# Conflicts:
#	spec/display-buffer-spec.coffee
2015-10-16 10:23:44 +02:00
Antonio Scandurra
4766c98bbe Treat Korean characters as different kinds of chars 2015-10-15 21:02:21 +02:00
Antonio Scandurra
7394cc531c Measure half width characters 2015-10-15 20:06:38 +02:00
Antonio Scandurra
abf306943a 🐛 Measure latin chars with subpixel font scaling 2015-10-15 18:49:54 +02:00
Antonio Scandurra
4c66341624 Measure double width char widths 2015-10-15 18:08:35 +02:00
Nathan Sobo
4c51d29868 Merge remote-tracking branch 'origin/master' into ns-alternative-test-env 2015-10-07 16:10:29 -05:00
Antonio Scandurra
534f038631 Don't use atom globals in TokenIterator 2015-10-07 15:25:02 -05:00
Antonio Scandurra
eba18092fb Don't use atom globals in LinesComponent 2015-10-07 15:25:02 -05:00
Antonio Scandurra
61892f932b Use cached text nodes instead of NodeIterator 2015-10-06 10:43:32 +02:00
Antonio Scandurra
56488748db 🔥 Remove dead code 2015-10-05 14:37:22 +02:00
Antonio Scandurra
72093da1a7 🔥 🎉 Remove scoped character width 2015-09-29 17:32:20 +02:00
Antonio Scandurra
eb80a393a8 Merge branch 'master' into as-double-reflow-measurements 2015-09-21 11:17:05 +02:00
Antonio Scandurra
13f82280a0 💚 Fix presenter specs 2015-09-21 11:05:35 +02:00
Antonio Scandurra
4318de43c9 wip 2015-09-20 21:02:25 +02:00
Antonio Scandurra
af41b71cd8 Redesign LinesYardstick 2015-09-20 12:10:09 +02:00
Nathan Sobo
2fdd40bd05 Remove SpacePen from lines-component 2015-09-18 20:48:49 -06:00
Antonio Scandurra
91bb8f518d Merge branch 'master' into as-continuous-reflow 2015-09-17 16:58:37 +02:00
Antonio Scandurra
f86c9b2331 Let TextEditorComponent manage DOMElementPool 2015-09-15 10:58:24 +02:00
Antonio Scandurra
c8c69a99b9 Release free nodes after destroying TextEditor 2015-09-15 10:36:47 +02:00
Antonio Scandurra
f0bc6ca23a 🎨 Some renaming 2015-09-14 20:27:25 +02:00
Antonio Scandurra
ece15b2a24 Recycle tile nodes (and descendants) 2015-09-14 14:48:30 +02:00
Antonio Scandurra
9eed6c7834 Add "Continuous Reflow" mode 2015-09-07 13:25:13 +02:00
Antonio Scandurra
b5c0f5ac0b Change lines container height based on boundingClientRect 2015-08-26 16:21:51 +02:00
Antonio Scandurra
9a81d2ec62 🐛 Create new stacking context for tiles
To create a new stacking context we need to isolate the container div. This
fixes a visual glitch on the wrap-guide whenever there are more than 5 tiles.
2015-07-28 16:00:46 +02:00
Antonio Scandurra
4e412755bf Put tiles into a separate div
So that a new stacking context is created and tiles won’t overlap other
elements, such as cursors or the wrap-guide.
2015-07-27 20:29:02 +02:00
Antonio Scandurra
a7ff49ebaa 🎨 2015-06-13 17:36:20 +02:00
Antonio Scandurra
e893b5105b Remove presenter as a dependency where possible
Although we have a couple of components which still access it, we
agreed it would have been just better to avoid relying on
`TextEditorPresenter` where possible and use it purposefully in other
places (e.g. `LinesComponent` which needs it to store text
measurements).

/cc: @jssln
2015-06-13 14:18:36 +02:00
Antonio Scandurra
b6049857ed 🎨 2015-06-12 19:00:15 +02:00
Antonio Scandurra
374aaac7b5 Rename to LinesTileComponent 2015-06-12 18:32:40 +02:00
Antonio Scandurra
119f297280 Merge branch 'master' into as-tiled-gutter
Conflicts:
	src/lines-component.coffee
	src/text-editor-presenter.coffee
2015-06-09 11:22:25 +02:00
Antonio Scandurra
cec6959e08 Extend highlights to the full editor width 2015-06-08 18:58:04 +02:00
Antonio Scandurra
da05e1e234 wip 2015-06-05 16:05:30 +02:00
Antonio Scandurra
8abdc67e7e Revert "Use clientHeight for line-numbers and lines containers"
This reverts commit f2bab35f57c05d5a0bb21e9fb02117f802ff278b. It didn't actually
improve performance, nor memory usage, therefore I decided to avoid changing it
for the time being.
2015-06-04 15:19:42 +02:00
Antonio Scandurra
57fd553c69 Use clientHeight for line-numbers and lines containers 2015-06-04 15:18:10 +02:00
Antonio Scandurra
44991f1fb3 Make LineNumberGutterComponent a TiledComponent 2015-06-04 15:17:39 +02:00
Antonio Scandurra
7769c464da Extract TiledComponent 2015-06-04 15:17:38 +02:00
Antonio Scandurra
c9a159aab3 🔥 Remove unused requires 2015-05-21 11:16:28 +02:00
Antonio Scandurra
1a5e2fe5dd 🎨 2015-05-21 10:48:04 +02:00
Antonio Scandurra
efeb129cff Rename LinesComponent to TileComponent 2015-05-21 10:47:23 +02:00
Antonio Scandurra
299ee5dbf3 Merge branch 'master' into as-tiled-rendering
# Conflicts:
#	spec/text-editor-presenter-spec.coffee
#	src/lines-component.coffee
#	src/text-editor-presenter.coffee
2015-05-21 10:46:52 +02:00
Antonio Scandurra
f49078d394 wip 2015-05-21 10:40:37 +02:00
Antonio Scandurra
1a18cda000 💚 Fix remaining specs 2015-05-21 10:00:46 +02:00
Nathan Sobo
2beb6c0fe0 Pass TokenIterator reference instead of using global singleton
Adds an extra reference to each tokenized line but is also more sane.

/cc @maxbrunsfeld
2015-05-20 19:29:38 +02:00
Antonio Scandurra
dbc57abeb0 🔥 Remove obsolete node pool 2015-05-18 11:50:13 +02:00
Nathan Sobo
4235c15dd8 🔥 debugger 2015-05-14 21:43:45 +02:00
Antonio Scandurra
5201e4547b 🎨 2015-05-14 19:36:05 +02:00
Antonio Scandurra
723bf5a302 Reimplement lineNodeForScreenRow 2015-05-14 18:30:29 +02:00
Antonio Scandurra
6be88fd645 Scroll every single tile left/right 2015-05-14 11:36:20 +02:00
Nathan Sobo
0ca967d6b0 Switch character measurement to TokenIterator
Instead of using TokenizedLine::tokens shim
2015-05-14 01:10:29 +02:00
Nathan Sobo
121e42deba Use TokenIterator to build line HTML 2015-05-14 00:55:06 +02:00