xtermjs/xterm.js

Support 'px' format in lineHeight option

オープン

#2,612 opened on 2019/12/06

 (5 件のコメント) (1 件のリアクション) (1 人の担当者)TypeScript (1,574 件のフォーク)batch import
good first issuehelp wantedtype/enhancement

Repository metrics

Stars
 (16,196 個のスター)
PR merge metrics
 (平均マージ 2d 10h) (30d で 16 merged PRs)

説明

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

コントリビューターガイド