feat: add settings dialog with render mode selection

- Add SettingDialogManager with radio-style render mode picker (simple/balance/advanced)
- Add getRenderMode/setRenderMode API to Engine and EngineManager layers
- Wire setting toolbar button to toggle the settings dialog
- Add i18n keys for settings dialog (zh-CN/en-US)
- Add version display at bottom-right of engine wrapper
- Bump version to 1.1.7, rebuild and sync demo libs
This commit is contained in:
yuding
2026-02-28 11:26:59 +08:00
parent a9c8317b10
commit 837177f3f2
15 changed files with 875 additions and 525 deletions

View File

@@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { resolve } from 'path';
import cssInjectedByJs from 'vite-plugin-css-injected-by-js';
import pkg from './package.json';
export default defineConfig(() => {
return {
@@ -25,6 +26,9 @@ export default defineConfig(() => {
open: '/demo/index.html',
allowedHosts: true,
},
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),