Skip to content

Commit a045cf0

Browse files
committed
✏️ 修改语法错误
1 parent 76edbda commit a045cf0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

app/src/core/render/canvas2d/basicRenderer/textRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class TextRenderer {
8585
if (text.trim().length === 0) return;
8686
text = Settings.protectingPrivacy ? replaceTextWhenProtect(text) : text;
8787

88-
if (!Settings.cacheTextBitmap) {
88+
if (!Settings.cacheTextAsBitmap) {
8989
// 如果不开启位图渲染,则直接渲染
9090
this.renderTempText(text, location, size, color);
9191
return;

app/src/core/service/Settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const settingsSchema = z.object({
3232
isPauseRenderWhenManipulateOvertime: z.boolean().default(true),
3333
renderOverTimeWhenNoManipulateTime: z.number().min(1).max(10).int().default(5),
3434
ignoreTextNodeTextRenderLessThanCameraScale: z.number().min(0.01).max(0.3).default(0.065),
35-
cacheTextBitmap: z.boolean().default(false),
35+
cacheTextAsBitmap: z.boolean().default(false),
3636
textCacheSize: z.number().default(100),
3737
textScalingBehavior: z
3838
.union([z.literal("temp"), z.literal("nearestCache"), z.literal("cacheEveryTick")])

app/src/core/service/SettingsIcons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const settingsIcons = {
109109
isPauseRenderWhenManipulateOvertime: Hourglass,
110110
renderOverTimeWhenNoManipulateTime: Hourglass,
111111
ignoreTextNodeTextRenderLessThanCameraScale: ScanText,
112-
cacheTextBitmap: Layers,
112+
cacheTextAsBitmap: Layers,
113113
textCacheSize: MemoryStick,
114114
textScalingBehavior: Text,
115115
antialiasing: Calculator,

app/src/locales/zh_CN.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ settings:
605605
密钥将会明文存储在本地
606606
aiModel:
607607
title: AI 模型
608-
cacheTextBitmap:
608+
cacheTextAsBitmap:
609609
title: 开启位图式渲染文本
610610
description: |
611611
开启后,文本节点的位图缓存将会被保留,以提升渲染速度

app/src/sub/SettingsWindow/settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const categories = {
191191
"renderOverTimeWhenNoManipulateTime",
192192
"scaleExponent",
193193
"ignoreTextNodeTextRenderLessThanCameraScale",
194-
"cacheTextBitmap",
194+
"cacheTextAsBitmap",
195195
"textCacheSize",
196196
"textScalingBehavior",
197197
"antialiasing",

0 commit comments

Comments
 (0)