初始化

This commit is contained in:
yuding
2025-12-25 18:57:09 +08:00
parent 9b6959585d
commit bb82a1c555
45 changed files with 484 additions and 36938 deletions

View File

@@ -35,6 +35,7 @@
cursor: pointer;
transition: all 0.2s;
color: var(--bim-icon-color, #ccc);
padding: 8px;
}
.walk-icon-btn:hover {
@@ -46,8 +47,8 @@
}
.walk-icon-btn svg {
width: 24px;
height: 24px;
width: 32px;
height: 32px;
}
/* 中间设置区 */

View File

@@ -4,6 +4,7 @@ import { IBimComponent } from '../../types/component';
import { localeManager, t } from '../../services/locale';
import { themeManager } from '../../services/theme';
import type { WalkControlPanelOptions, WalkControlState, WalkControlMode, CharacterModel, WalkMode } from './types';
import { getIcon } from '../../utils/icon-manager';
export class WalkControlPanel implements IBimComponent {
public element!: HTMLElement;
@@ -378,9 +379,9 @@ export class WalkControlPanel implements IBimComponent {
private getIconSVG(type: string): string {
const icons: Record<string, string> = {
'plan-view': '<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2L2 7v10c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V7l-10-5z"/></svg>',
'path': '<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>',
'walk': '<svg viewBox="0 0 24 24" fill="currentColor"><path d="M9 22V8.775q-2.275-.6-3.637-2.512T4 2h2q0 2.075 1.338 3.538T10.75 7h2.5q.75 0 1.4.275t1.175.8L20.35 12.6l-1.4 1.4L15 10.05V22h-2v-6h-2v6zm3-16q-.825 0-1.412-.587T10 4t.588-1.412T12 2t1.413.588T14 4t-.587 1.413T12 6"/></svg>'
'plan-view': getIcon('地图'),
'path': getIcon('地图'),
'walk': getIcon('漫游')
};
return icons[type] || '';
}