refactor: 重命名SDK为iflow-engine,使用npm包引入第三方引擎
- 将包名从 @fishdingding/bim-engine-sdk 改为 iflow-engine - 将构建输出文件从 bim-engine-sdk.*.js 改为 iflow-engine.*.js - 将全局变量从 LyzBimEngineSDK 改为 IflowEngine - 将第三方引擎SDK从本地引入改为npm包引入 (iflow-engine-base) - 移除本地 src/engine_base 目录,移至回收站 - 更新所有文档和demo中的引用
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ThemeConfig } from './types';
|
||||
|
||||
/**
|
||||
* Tailwind CSS Color Palette Reference (for maintainers)
|
||||
* Tailwind CSS 调色板参考(维护者参考)
|
||||
*
|
||||
* Slate: #f8fafc #f1f5f9 #e2e8f0 #cbd5e1 #94a3b8 #64748b #475569 #334155 #1e293b #0f172a
|
||||
* Blue: #eff6ff #dbeafe #bfdbfe #93c5fd #60a5fa #3b82f6 #2563eb #1d4ed8 #1e40af #1e3a8a
|
||||
@@ -94,6 +94,17 @@ export const lightTheme: ThemeConfig = {
|
||||
floatingIconColor: '#334155',
|
||||
floatingIconColorHover: '#1e293b',
|
||||
|
||||
panelBg: 'rgba(255, 255, 255, 0.95)',
|
||||
panelBorder: 'rgba(226, 232, 240, 0.6)',
|
||||
panelHeaderBg: 'rgba(248, 250, 252, 0.9)',
|
||||
panelRadius: '12px',
|
||||
|
||||
tabBg: '#f1f5f9',
|
||||
tabItemBg: 'transparent',
|
||||
tabItemBgHover: 'rgba(255, 255, 255, 0.6)',
|
||||
tabItemBgActive: '#ffffff',
|
||||
tabItemTextActive: '#2563eb',
|
||||
|
||||
overrides: {
|
||||
dialog: {
|
||||
headerBg: '#f8fafc',
|
||||
@@ -195,6 +206,17 @@ export const darkTheme: ThemeConfig = {
|
||||
floatingIconColor: '#e2e8f0',
|
||||
floatingIconColorHover: '#f8fafc',
|
||||
|
||||
panelBg: 'rgba(15, 23, 42, 0.95)',
|
||||
panelBorder: 'rgba(51, 65, 85, 0.5)',
|
||||
panelHeaderBg: 'rgba(15, 23, 42, 0.9)',
|
||||
panelRadius: '12px',
|
||||
|
||||
tabBg: 'rgba(30, 41, 59, 0.6)',
|
||||
tabItemBg: 'transparent',
|
||||
tabItemBgHover: 'rgba(51, 65, 85, 0.5)',
|
||||
tabItemBgActive: 'rgba(51, 65, 85, 0.8)',
|
||||
tabItemTextActive: '#60a5fa',
|
||||
|
||||
overrides: {
|
||||
dialog: {
|
||||
headerBg: '#0f172a',
|
||||
|
||||
@@ -253,6 +253,34 @@ export interface ThemeConfig {
|
||||
/** 浮动组件图标悬停颜色 */
|
||||
floatingIconColorHover: ColorToken;
|
||||
|
||||
// =========================================================================
|
||||
// Panel Layer (对话框、面板等容器)
|
||||
// =========================================================================
|
||||
|
||||
/** 面板背景 (支持毛玻璃) */
|
||||
panelBg: ColorToken;
|
||||
/** 面板边框 */
|
||||
panelBorder: ColorToken;
|
||||
/** 面板 Header 背景 */
|
||||
panelHeaderBg: ColorToken;
|
||||
/** 面板圆角 */
|
||||
panelRadius: string;
|
||||
|
||||
// =========================================================================
|
||||
// Tab Component (选项卡)
|
||||
// =========================================================================
|
||||
|
||||
/** Tab 容器背景 */
|
||||
tabBg: ColorToken;
|
||||
/** Tab 项背景 */
|
||||
tabItemBg: ColorToken;
|
||||
/** Tab 项悬停背景 */
|
||||
tabItemBgHover: ColorToken;
|
||||
/** Tab 激活项背景 */
|
||||
tabItemBgActive: ColorToken;
|
||||
/** Tab 激活项文字颜色 */
|
||||
tabItemTextActive: ColorToken;
|
||||
|
||||
// =========================================================================
|
||||
// Specific Component Overrides (Optional)
|
||||
// These allow fine-grained control when semantic tokens aren't enough
|
||||
@@ -409,6 +437,19 @@ export const CSS_VAR_MAP: Record<keyof Omit<ThemeConfig, 'name' | 'overrides'>,
|
||||
floatingBtnShadowHover: '--bim-floating-btn-shadow-hover',
|
||||
floatingIconColor: '--bim-floating-icon-color',
|
||||
floatingIconColorHover: '--bim-floating-icon-color-hover',
|
||||
|
||||
// Panel
|
||||
panelBg: '--bim-panel-bg',
|
||||
panelBorder: '--bim-panel-border',
|
||||
panelHeaderBg: '--bim-panel-header-bg',
|
||||
panelRadius: '--bim-panel-radius',
|
||||
|
||||
// Tab
|
||||
tabBg: '--bim-tab-bg',
|
||||
tabItemBg: '--bim-tab-item-bg',
|
||||
tabItemBgHover: '--bim-tab-item-bg-hover',
|
||||
tabItemBgActive: '--bim-tab-item-bg-active',
|
||||
tabItemTextActive: '--bim-tab-item-text-active',
|
||||
};
|
||||
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user