初始化
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { ButtonConfig } from '../../../../index.type';
|
||||
import type { BimEngine } from '../../../../../../bim-engine';
|
||||
import { getIcon } from '../../../../../../utils/icon-manager';
|
||||
|
||||
/**
|
||||
* 漫游按钮配置(普通按钮,不带子菜单)
|
||||
@@ -11,7 +12,7 @@ export const createWalkMenuButton = (engine: BimEngine): ButtonConfig => {
|
||||
type: 'button',
|
||||
label: 'toolbar.walk',
|
||||
align: 'vertical',
|
||||
icon: '<svg width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" 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>',
|
||||
icon: getIcon('漫游'),
|
||||
onClick: () => {
|
||||
console.log('漫游按钮被点击');
|
||||
engine.walkControl?.show();
|
||||
|
||||
Reference in New Issue
Block a user