Thomas Zilz
aaadefa548
Move WidthCache measure container to helper container
2023-09-15 10:51:31 +02:00
Daniel Imms
3b15fb6211
Fix block cursor rendering in DOM renderer
...
Fixes #4773
2023-09-10 08:27:18 -07:00
tisilent
393a8b3a86
When DomRenderer blue,perform rendering.
2023-09-08 18:08:14 +08:00
tisilent
c03cb2b016
When DomRenderer focus,render the cursor line.
2023-09-07 23:44:36 +08:00
Daniel Imms
843bdc4d55
Revert "Merge pull request #4611 from SimonSiefke/constructed-stylesheets"
...
This reverts commit 5889344dd2 , reversing
changes made to 679c149164 .
2023-08-15 08:33:42 -07:00
Daniel Imms
530f758905
Restrict comments to 100 characters
...
This is a rule I try enforce in PR but it's a bit of a hassle, this will
give a lint warning when it happens resulting in:
- Yellow underline in supported editors when eslint is installed
- Compilation will succeed since it's a warning not an error
- CI will fail as it does not allow lint warnings
Special case comments are ignored which includes @vt comments, table
comments and commented out code.
2023-08-12 09:04:41 -07:00
tisilent
5c1e6dce99
Add block to cursorInactiveStyle,
...
change line to bar
2023-08-11 11:36:40 +08:00
tisilent
0321bcb715
Remove special classes.
...
Add xterm-cursor-outline class.
2023-08-11 09:40:06 +08:00
tisilent
482dad3036
Add cursorInactiveStyle option
2023-08-10 16:11:04 +08:00
Jörg Breitbart
ae84ee39f3
Merge branch 'master' into faster_dom
2023-08-01 19:21:30 +02:00
jerch
73e60586c9
Merge pull request #4584 from dlech/fix-underline-style
...
use border-bottom instead of box-shadow for underline cursor in DOM renderer
2023-08-01 19:15:41 +02:00
Jörg Breitbart
c796514de8
apply weight settings in width cache
2023-07-31 16:49:58 +02:00
Jörg Breitbart
702c3578a3
re-add explicit span stylesheet
2023-07-30 19:03:54 +02:00
Jörg Breitbart
e9058b7498
implement default letter spacing
2023-07-30 18:46:33 +02:00
Jörg Breitbart
b358754b46
respect dpr/charWidth changes, more accurate base measuring
2023-07-30 13:27:28 +02:00
Jörg Breitbart
64d04f0712
optimization: remove document fragment
2023-07-29 23:58:15 +02:00
Jörg Breitbart
664a110fd1
Merge branch 'master' into faster_dom
2023-07-29 18:07:47 +02:00
Jörg Breitbart
3b5044b55b
readd doc notes on link underline handling
2023-07-29 17:54:14 +02:00
Jörg Breitbart
e848151b50
change to width cache
2023-07-29 17:25:49 +02:00
Jörg Breitbart
91197bd1aa
disable font kerning
2023-07-29 15:37:01 +02:00
Jörg Breitbart
5bdd5022b2
some cleanup, use faster str join for classes
2023-07-28 19:33:38 +02:00
Jörg Breitbart
370bad1380
better caching:
...
- own cache class with flat and holey cache
- use letter spacing
- on-demand measuring
2023-07-28 18:36:01 +02:00
Simon Siefke
b225b9a710
fix eslint
2023-07-27 17:39:15 +02:00
Simon Siefke
1c0a25d01b
feature: use constructed style sheets for dom render so that it works with csp style-src 'self'
2023-07-27 13:08:22 +02:00
Jörg Breitbart
a5df5e7333
first unit tests
2023-07-27 11:25:57 +02:00
Jörg Breitbart
ad145541af
exclude bold&italic variants from merge, limit glyph calc to latin + latin supplement
2023-07-25 12:47:35 +02:00
Jörg Breitbart
37153018b9
fix BCE
2023-07-24 16:06:19 +02:00
Jörg Breitbart
097879b839
faster metrics calc
2023-07-23 23:36:25 +02:00
Jörg Breitbart
521dc915dc
fix weblink tests
2023-07-23 12:36:15 +02:00
Jörg Breitbart
5ea669f091
batch metrics calc
2023-07-23 00:08:40 +02:00
Jörg Breitbart
aa6e8d91c2
cleanup
2023-07-22 22:50:05 +02:00
Jörg Breitbart
089dc282c3
fix hover underline
2023-07-22 22:18:12 +02:00
Jörg Breitbart
bd7f76190c
fix superfluous selection.refresh calls
2023-07-22 15:12:37 +02:00
Jörg Breitbart
f36954764d
faster DOM updates
2023-07-22 11:00:12 +02:00
David Lechner
96634298e4
use border-bottom instead of box-shadow for underline cursor
...
In rare cases, box-shadow can cause aliasing artifacts on the top and
sides of the cursor box when only the bottom should be filled in to
create an underline.
This replaces the box-shadow style with border-bottom which should be
pixel perfect in all cases.
Fixes: https://github.com/xtermjs/xterm.js/issues/4580
2023-07-05 16:48:42 +00:00
Jörg Breitbart
90ccc815cb
more verbose comments to get the idea of the code
2023-06-05 12:23:56 +02:00
Jörg Breitbart
8de7bd5850
rename lneX to maxY
2023-06-04 21:11:55 +02:00
Jörg Breitbart
9fed8e2a3a
defensive underline event coords handling in DOM renderer
2023-06-04 21:06:26 +02:00
Daniel Imms
e9b0593298
Merge pull request #4525 from Tyriar/4161_dim
...
Don't apply dim to background color
2023-05-20 09:43:16 -07:00
Daniel Imms
539fed4daa
Don't apply dim to background color
...
Fixes #4161
2023-05-20 08:13:50 -07:00
Daniel Imms
854e2736f6
Move inject into _handleOptionsChanged
2023-05-07 06:27:56 -07:00
Kelvin
2a9ec8fd1d
Re-render browser DOM style onOptionsChanged, fixes xtermjs#4474
...
Fixes https://github.com/xtermjs/xterm.js/issues/4474
2023-04-11 13:43:32 -04:00
tisilent
e1d852c86a
Adjust DomRenderer cursor style
2023-03-22 21:09:28 +08:00
tisilent
455c744ab1
Uniform cursor unfocused rendering. #4441
2023-03-22 20:54:58 +08:00
Daniel Imms
b3fb8db6b3
Replace dom helper with HTMLElement.remove()
2023-01-05 09:14:16 -08:00
Jörg Breitbart
becec91e98
better regexp, fix offset issue in #4294
2022-12-08 17:35:45 +01:00
Jörg Breitbart
3bf72cdefc
DOM renderer fix with much better performance
2022-12-05 15:50:29 +01:00
Jörg Breitbart
39c2e57ad3
hack around DOM renderer issue, fix api tests
2022-12-04 22:26:29 +01:00
Sebastian Malton
11e90591f9
Change clearing innerText to using replaceChildren to fix testing using jsdom
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-10-19 10:09:12 -04:00
Daniel Imms
22e8a2f8e7
Remove old dimension properties
2022-10-15 18:07:05 -07:00