Skip to content

Commit

Permalink
fix CMD update performace issue #961
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Sep 4, 2024
1 parent 9ab8127 commit 7867ae9
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 27 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## 2.43.0
### Features
* add support for `--rows` CSS custom property [#956](https://github.com/jcubic/jquery.terminal/issues/956)
### Bugfix
* fix CMD update performace issue [#961](https://github.com/jcubic/jquery.terminal/issues/961)

## 2.42.2
### Bugfix
Expand Down
18 changes: 10 additions & 8 deletions js/jquery.terminal-2.42.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
* \___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
* \/ /____/ version 2.42.2
* \/ /____/ version DEV
*
* This file is part of jQuery Terminal. https://terminal.jcubic.pl
*
Expand Down Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Fri, 12 Jul 2024 11:52:01 +0000
* Date: Wed, 04 Sep 2024 18:42:23 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5311,8 +5311,8 @@
}
// -------------------------------------------------------------------------
$.terminal = {
version: '2.42.2',
date: 'Fri, 12 Jul 2024 11:52:01 +0000',
version: 'DEV',
date: 'Wed, 04 Sep 2024 18:42:23 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -12369,12 +12369,14 @@
resize();
function resize() {
if (self.is(':visible')) {
var width = scroller.width();
var width = filler.width();
var height = filler.height();
pixel_density = get_pixel_size();
css(self[0], {
'--pixel-density': pixel_density
});
if (old_pixel_density !== pixel_density) {
css(self[0], {
'--pixel-density': pixel_density
});
}
if (need_char_size_recalculate) {
need_char_size_recalculate = !terminal_ready(self);
if (!need_char_size_recalculate) {
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal-2.42.2.min.js

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -12369,12 +12369,14 @@
resize();
function resize() {
if (self.is(':visible')) {
var width = scroller.width();
var width = filler.width();
var height = filler.height();
pixel_density = get_pixel_size();
css(self[0], {
'--pixel-density': pixel_density
});
if (old_pixel_density !== pixel_density) {
css(self[0], {
'--pixel-density': pixel_density
});
}
if (need_char_size_recalculate) {
need_char_size_recalculate = !terminal_ready(self);
if (!need_char_size_recalculate) {
Expand Down
18 changes: 10 additions & 8 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
* \___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
* \/ /____/ version 2.42.2
* \/ /____/ version DEV
*
* This file is part of jQuery Terminal. https://terminal.jcubic.pl
*
Expand Down Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Fri, 12 Jul 2024 11:52:01 +0000
* Date: Wed, 04 Sep 2024 18:42:23 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5311,8 +5311,8 @@
}
// -------------------------------------------------------------------------
$.terminal = {
version: '2.42.2',
date: 'Fri, 12 Jul 2024 11:52:01 +0000',
version: 'DEV',
date: 'Wed, 04 Sep 2024 18:42:23 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -12369,12 +12369,14 @@
resize();
function resize() {
if (self.is(':visible')) {
var width = scroller.width();
var width = filler.width();
var height = filler.height();
pixel_density = get_pixel_size();
css(self[0], {
'--pixel-density': pixel_density
});
if (old_pixel_density !== pixel_density) {
css(self[0], {
'--pixel-density': pixel_density
});
}
if (need_char_size_recalculate) {
need_char_size_recalculate = !terminal_ready(self);
if (!need_char_size_recalculate) {
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit 7867ae9

Please sign in to comment.