xtermjs/xterm.js

Support 'px' format in lineHeight option

Aperta

#2612 aperta il 6 dic 2019

 (5 commenti) (1 reazione) (1 assegnatario)TypeScript (1574 fork)batch import
good first issuehelp wantedtype/enhancement

Metriche repository

Star
 (16.196 stelle)
Metriche merge PR
 (Merge medio 2g 10h) (16 PR mergiate in 30 g)

Descrizione

Now the LineHeight can only be propagated to the number type like 1.2.

There is a very uncomfortable scenario:

I chose to use DOM to render,Then the contents of the subdiv of xterm-rows, as shown below, are determined based on the configuration items, such as 1.2, and the calculated value is 21px:

image

I want to set LineHeight to 23px, then I need to set LineHeight to 1.3, but I don't know how to turn 23 to 1.3

Guida contributor