+
+ Realtime Canvas
+
+
+ {statusBadge.label}
+
+
+ 延迟 {adaptiveThrottleMs}ms
+
+
+
+
+
+
+
+ {standalone ? (
+
+ ) : null}
+
+
+
+
+
+
+
+
+
+
+
+
+
setBrushColor(event.target.value)}
+ className="sr-only"
+ title="自定义颜色"
+ />
+
+ {brushColor}
+
+
+
+ 粗细 {brushSize}
+
+ setBrushSize(val)}
+ className="min-w-[140px] flex-1 [&>span:first-child]:h-2.5 [&>span:first-child]:bg-zinc-200 [&>span:first-child]:shadow-inner [&>span:first-child>span]:bg-sky-500 [&>span:last-child]:h-5 [&>span:last-child]:w-5 [&>span:last-child]:border-2 [&>span:last-child]:border-sky-500 [&>span:last-child]:bg-white"
+ />
+
+
+ {CANVAS_BACKGROUND_PRESETS.map((color) => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
setPrompt(e.target.value)}
+ onBlur={() => scheduleFlush(true, false)}
+ placeholder="输入指令,基于当前画布实时生成"
+ className="h-10 min-w-[180px] flex-1 border-0 bg-transparent px-2 text-sm shadow-none focus-visible:ring-0"
+ />
+
+
+
+ {statusMessage}
+
+
+