@lvce-editor/renderer-process 30.81.1 → 30.81.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2019,7 +2019,7 @@ const initialize = () => {
|
|
|
2019
2019
|
};
|
|
2020
2020
|
|
|
2021
2021
|
const views = new Map();
|
|
2022
|
-
const normalize = value => typeof value === 'number' && Number.isFinite(value) && value >= 1 && value <=
|
|
2022
|
+
const normalize = value => typeof value === 'number' && Number.isFinite(value) && value >= 1 && value <= 10 ? value : 1;
|
|
2023
2023
|
const register$2 = (uid, listeners, speed = 1) => {
|
|
2024
2024
|
const commands = new Map();
|
|
2025
2025
|
for (const {
|
|
@@ -5352,18 +5352,20 @@ const remove$2 = id => {
|
|
|
5352
5352
|
const addCssStyleSheet = (id, text) => {
|
|
5353
5353
|
const existing = get$5(id);
|
|
5354
5354
|
if (existing) {
|
|
5355
|
-
|
|
5356
|
-
|
|
5355
|
+
if (typeof text !== 'string' || getText(id) !== text) {
|
|
5356
|
+
existing.replaceSync(text);
|
|
5357
|
+
setText$1(id, text);
|
|
5358
|
+
}
|
|
5357
5359
|
if (id === 'ContributedColorTheme') {
|
|
5358
5360
|
window.dispatchEvent(new Event('color-theme-changed'));
|
|
5359
5361
|
}
|
|
5360
5362
|
return;
|
|
5361
5363
|
}
|
|
5362
5364
|
const sheet = new CSSStyleSheet({});
|
|
5363
|
-
set$6(id, sheet);
|
|
5364
|
-
setText$1(id, text);
|
|
5365
5365
|
sheet.replaceSync(text);
|
|
5366
5366
|
document.adoptedStyleSheets.push(sheet);
|
|
5367
|
+
set$6(id, sheet);
|
|
5368
|
+
setText$1(id, text);
|
|
5367
5369
|
if (id === 'ContributedColorTheme') {
|
|
5368
5370
|
window.dispatchEvent(new Event('color-theme-changed'));
|
|
5369
5371
|
}
|