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
0dafd0a38b
Merge branch 'v3' into 1000_fix_horz_offset
2017-09-28 17:21:37 -04:00
Daniel Imms
313d1e6fec
Merge pull request #1005 from Tyriar/fix_validation_callback
...
Fix validation callback to use the uri, not whole row
2017-09-25 13:24:45 -07:00
Daniel Imms
a4485b8c09
Merge pull request #999 from Tyriar/vscode34493
...
Only refresh char atlas when char dimensions are valid
2017-09-25 06:14:58 -07:00
Daniel Imms
a2389d5c5b
Fix validation callback to use the uri, not whole row
2017-09-24 10:59:38 -07:00
Daniel Imms
79c07d436e
Fix selection horizontal offset
...
Fixes #1000
2017-09-20 11:53:19 +09:00
Daniel Imms
40fdd00b9e
Correct if statement, ensure charAtlas exists
2017-09-20 09:02:21 +09:00
Thomas Zilz
c4da8325ac
Allow all overflowing characters to extend to the next cell if followed by a space (Emojis etc) ( #997 )
...
* Measure characters and thread them if they are overlapping
* Fix whitespace
* Use charData and ctx.save/restore, code cleanup
* Fix trailing whitespace
2017-09-17 10:39:09 +02:00
Thomas Zilz
c815310418
Fix inverted cells, make sure inverted cells are cleared correctly ( #996 )
...
* Corretly inverse foreground and background. Be more conservative when clearing
* add missing space
* Re-enable optimisation with better checks
* Fix insversed check
2017-09-16 20:36:55 +02:00
Daniel Imms
9b6c4e046f
Only refresh char atlas when char dimensions are valid
...
See Microsoft/vscode#34493
2017-09-16 10:57:49 -07:00
Daniel Imms
691ab2b02c
Merge remote-tracking branch 'ups/v3' into 986_selection_exception
2017-09-14 09:06:00 -07:00
Daniel Imms
0cf9f1d536
Fix tests
2017-09-14 09:05:50 -07:00
Daniel Imms
bc824ad6a5
Fix tests
2017-09-14 09:03:41 -07:00
Daniel Imms
b9872c9a67
Merge remote-tracking branch 'ups/v3' into 963_cursor_accent
2017-09-14 09:02:32 -07:00
Daniel Imms
ea0c2285bc
Merge remote-tracking branch 'ups/v3' into 963_cursor_accent
2017-09-14 09:02:00 -07:00
Daniel Imms
a611fee7af
Merge pull request #976 from Tyriar/975_mousezone_leave
...
Ensure leave is called when leaving a MouseZone
2017-09-14 09:01:28 -07:00
Daniel Imms
c2502bf0b0
Merge pull request #978 from Tyriar/953_user_scrolling_fix
...
Improve scrolling while user has scrolled up
2017-09-14 09:01:13 -07:00
Daniel Imms
8bdc8fb7a2
Remove log
2017-09-14 01:00:19 -07: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
c2b765f3ff
Redraw background on text layer after a resize
2017-09-13 23:56:35 -07:00
Daniel Imms
068c0743a1
Support non-#000 background colors in char atlas
2017-09-13 23:54:45 -07:00
Daniel Imms
0a58628f74
Clear text layer to the background color on creation
...
Prevents a black flash before the first draw
2017-09-13 23:49:37 -07:00
Daniel Imms
b225866c27
Clear cells properly for text layer
2017-09-13 23:21:24 -07:00
Daniel Imms
872c007a29
Finish merging bg and fg layers
2017-09-13 23:15:21 -07:00
Daniel Imms
402cebc76c
Support bold in non cached text drawing
...
Fixes #987
2017-09-13 22:50:48 -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
a52b9feeea
Ensure mouse coordinates are always within rows/cols
...
Fixes #986
2017-09-13 14:03:40 -07:00
Daniel Imms
136c82f9ad
Merge pull request #981 from Tyriar/974_fix_wide_arrow
...
Treat \u279C arrow as ambiguous width char (like emoji)
2017-09-13 11:01:40 -07:00
Daniel Imms
ead45fe4d0
Add a TODO
2017-09-13 10:59:55 -07:00
Daniel Imms
69982dc16a
Merge pull request #983 from Tyriar/remove_log
...
Remove log
2017-09-13 10:54:10 -07:00
Daniel Imms
d030206195
Merge pull request #980 from Tyriar/972_decimal_text
...
Draw text using decimal numbers
2017-09-13 10:53:49 -07:00
Daniel Imms
30cac21003
Remove log
2017-09-13 10:34:58 -07:00
Daniel Imms
73d3164426
Fix alt+selection while mouse events are enabled
...
Fixes #970
2017-09-12 20:00:25 -07:00
Daniel Imms
cf32452917
Treat \u279C arrow as ambiguous width char (like emoji)
...
Fixes #974
2017-09-12 19:23:26 -07:00
Daniel Imms
403fd3cd4f
Draw text using decimal numbers
...
Fixes #972
2017-09-12 18:55:59 -07:00
Daniel Imms
6899e01fc1
Improve scrolling while user has scrolled up
...
Fixes #953
2017-09-12 15:06:23 -07:00
Daniel Imms
2114bc4837
Ensure leave is called when leaving a MouseZone
...
Fixes #975
2017-09-11 11:12:51 -07:00
Daniel Imms
1897f0f51a
Merge pull request #968 from Tyriar/line_height_fixes
...
Fix several issues with line height
2017-09-11 09:42:06 -07:00
Daniel Imms
903ed1917e
Remove viewport test
...
It's not tightly linked to renderer and depends on devicePixelRatio.
2017-09-10 10:43:33 -07:00
Daniel Imms
ac23be134b
Simplify viewport
2017-09-10 10:38:08 -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
6c06d83525
Support theming cursor accent color
...
Fixes #963
2017-09-10 08:01:16 -07:00
Daniel Imms
0e3518409e
Fix issues with link state
...
- Scrolling will now clear the link renderer
- Refreshing a single line will now recalculate only that line
Fixes #959
Fixes #960
2017-09-09 19:06:30 -07:00
Daniel Imms
948eedba89
Merge pull request #938 from Tyriar/canvas_render
...
Render using canvas
2017-09-08 11:07:59 -07:00
Daniel Imms
0c19bc9c28
Fix tests
2017-09-08 11:06:15 -07:00
Daniel Imms
75b91c618e
Update license text
2017-09-08 10:16:42 -07:00
Thomas Zilz
48391c3108
Merge pull request #952 from mofux/delete-line-fix
...
Fix CSI Ps M to delete the correct line
2017-09-08 14:00:24 +02:00
Daniel Imms
ea8dbbd29f
Underline links on hover
2017-09-07 10:20:48 -07:00
Thomas Zilz
4eb356f6be
Fix CSI Ps M to delete the correct line
2017-09-07 17:13:15 +02:00