Files
bim_engine/src/components/button-group/toolbar/buttons/info/index.ts
yuding 191c571f40 refactor: sync managers and section box actions
Wire section box scale/reverse/reset to clipping APIs and sync demo artifacts.
2026-02-04 18:20:30 +08:00

20 lines
564 B
TypeScript

import type { ButtonConfig } from '../../../index.type';
import { getIcon } from '../../../../../utils/icon-manager';
import { ManagerRegistry } from '../../../../../core/manager-registry';
export const createInfoButton = (): ButtonConfig => {
const registry = ManagerRegistry.getInstance();
return {
id: 'info',
groupId: 'group-2',
type: 'button',
label: 'toolbar.info',
icon: getIcon('信息'),
keepActive: false,
onClick: () => {
registry.engineInfo?.show();
}
};
};