Daniel Imms
80f13792a3
Ensure renderer uses latest options at open
...
Fixes #1194
2018-01-16 06:34:22 -08:00
Daniel Imms
f6da87f3b4
Merge remote-tracking branch 'origin/master' into 1118_dpi_change
2018-01-05 14:19:21 -08:00
Daniel Imms
b66578a4ca
Merge branch 'master' into 880_renderer_pause
2018-01-05 11:00:11 -08:00
Daniel Imms
72d946e089
Use a more robust solution to changing devicePixelRatio
2017-12-29 13:54:01 -08:00
Thomas Zilz
b4e52b2334
Fix fit() sizing and also support letterSpacing, enhanced ( #1157 )
...
Fixes #1081
* Make sure character dimensions are available right after calling term.open()
* Do not assume var assignments are global anymore, webpack will isolate them
* Use DocumentFragment to build Viewport and helpers before attaching them to the DOM
* Shield term.focus call from crashing when used before term.open
2017-12-20 20:06:23 +01:00
Daniel Imms
47a50acc55
Use IntersectionObserver to turn off renderer when hidden
...
Fixes #880
2017-12-11 15:16:13 -08:00
Daniel Imms
eb57cc3e9e
Clip rows using the row's cell height, not char height
2017-10-09 20:10:13 -07:00
Daniel Imms
1b2bac7aef
Add letterSpacing option
...
This provides an option for fonts to be more spaced out. This is particularly useful
for fonts that can seem crammed due to not allowing floating point numbers when
drawing, such as Monoid or Operator Mono.
2017-10-09 20:07:30 -07:00
Daniel Imms
a8174398f5
Calculate mouse coordinates using correct char dimensions
...
Previously the Mouse class was using raw CSS pixels, we need CSS pixels based
on the amount of space the cells take up on the canvas
See Microsoft/vscode#35114
2017-09-28 17:23:45 -04:00
Daniel Imms
aca7ab63e8
Set background color on Renderer immediately
...
Prevents black flash on init
2017-09-14 00:22:57 -07:00
Daniel Imms
3656617044
Start merging fg/bg layers, draw using SP-AA
2017-09-13 15:21:40 -07:00
Daniel Imms
5538481833
Draw characters to a grid
2017-09-13 15:07:01 -07:00
Daniel Imms
403fd3cd4f
Draw text using decimal numbers
...
Fixes #972
2017-09-12 18:55:59 -07:00
Daniel Imms
ae741348a6
Fix several issues with line height
...
Fixes #966
Fixes #967
2017-09-10 10:31:19 -07:00
Daniel Imms
75b91c618e
Update license text
2017-09-08 10:16:42 -07:00
Daniel Imms
ea8dbbd29f
Underline links on hover
2017-09-07 10:20:48 -07:00
Daniel Imms
b69ff5d31a
Redraw terminal when devicePixelRatio changes
2017-09-06 10:22:33 -07:00
Daniel Imms
46b0857ef6
Resolve TODOs
2017-09-04 14:13:41 -07:00
Daniel Imms
1f38c2f467
Remove unused file
2017-09-04 09:53:53 -07:00
Daniel Imms
36778186e1
Fix tests
2017-09-03 14:34:50 -07:00
Daniel Imms
2d1a1bfb76
Fix inconsistency with lineHeight
2017-09-03 09:05:26 -07:00
Daniel Imms
deb47e29bf
Fix canvas resizing with non-1 lineHeight
2017-09-03 07:41:18 -07:00
Daniel Imms
5a4851630e
Prevent updating of invalid terminal row ranges
2017-09-03 07:27:52 -07:00
Daniel Imms
4f81cdfe8c
Make the terminal background theme aware
2017-09-02 13:59:22 -07:00
Daniel Imms
c92a2f964a
Support lineHeight
2017-09-02 12:27:09 -07:00
Daniel Imms
cf7237d2a4
Fix remaining cursor animation state issues
2017-09-01 23:47:17 -07:00
Daniel Imms
dc1e727613
Support blurred cursor
2017-09-01 22:42:31 -07:00
Daniel Imms
6ee8e9126a
Remove some old dead code
2017-09-01 21:38:35 -07:00
Daniel Imms
de4fcb9241
Merge render layer interface types
2017-09-01 16:54:26 -07:00
Daniel Imms
62fea4d3ed
Add theme support
2017-09-01 15:50:18 -07:00
Daniel Imms
076156b66e
Properly support blinking cursors
2017-09-01 12:59:18 -07:00
Daniel Imms
882d7e4a30
Add basic support for cursor blinking
2017-09-01 11:34:52 -07:00
Daniel Imms
81d93b8fbf
Ensure CharMeasure exposes integers
2017-08-31 23:23:04 -07:00
Daniel Imms
510940389c
Provide convenience draw methods that deal with cells
2017-08-31 23:01:17 -07:00
Daniel Imms
15c73ef94f
Add fontSize and fontFamily options
2017-08-31 22:42:39 -07:00
Daniel Imms
a91380a76f
Pull common parts into BaseRenderLayer
2017-08-31 17:13:15 -07:00
Daniel Imms
fd18f7cba7
Support basic cursor
2017-08-31 17:02:24 -07:00
Daniel Imms
3d1bb2c60f
Support selection
2017-08-31 00:09:23 -07:00
Daniel Imms
7aff45c2dc
Remove additional frame skipping as rendering is so fast now
2017-08-30 23:39:33 -07:00
Daniel Imms
a224ed7cc7
Move canvas Renderer into folder
2017-08-30 23:06:55 -07:00